/* ==============================================================================
   Pulikkal Palliative Care Clinic (PPCA) - Custom Stylesheet
   Celebrating 21 Years of Service (2005 - 2026)
   Theme Palette:
   - Primary Deep Blue: #0F4C81
   - Sky Blue: #38B6FF
   - Light Green: #2ECC71
   - Accent Red: #E74C3C
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@400;600;700;800&display=swap');

:root {
    --primary-blue: #0F4C81;
    --primary-blue-dark: #0A3358;
    --sky-blue: #38B6FF;
    --sky-blue-light: #EBF7FF;
    --light-green: #2ECC71;
    --light-green-dark: #27AE60;
    --accent-red: #E74C3C;
    --text-dark: #2C3E50;
    --text-muted: #6C757D;
    --bg-light: #F8F9FA;
    --card-shadow: 0 10px 30px rgba(15, 76, 129, 0.08);
}

html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #FAFCFE;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

/* 100% Width Top Emergency Banner */
.top-emergency-bar {
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(90deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.top-emergency-bar a {
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 600;
}
.anniversary-pill {
    background: rgba(56, 182, 255, 0.2);
    border: 1px solid var(--sky-blue);
    color: #ffffff;
    font-size: 0.8rem;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* 100% Width Main Navigation Bar */
.navbar-custom {
    width: 100% !important;
    max-width: 100% !important;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
    box-sizing: border-box;
}
.navbar-custom .container-fluid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    flex-shrink: 0;
}
.navbar-brand img {
    height: 48px;
}
.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
}
.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Multi-line Navigation Menu Wrapping */
.navbar-custom .navbar-collapse {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}
.navbar-custom .navbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    row-gap: 6px;
    column-gap: 3px;
}
.navbar-custom .navbar-nav .nav-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 7px 10px !important;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: all 0.25s ease;
    border-radius: 8px;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-blue) !important;
    background-color: rgba(15, 76, 129, 0.06);
}

/* Language Toggle Switch Pill */
.lang-switcher-toggle {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.lang-switcher-toggle .btn {
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Responsive Multi-line Navigation Adjustments */
@media (min-width: 1200px) and (max-width: 1440px) {
    .nav-link {
        padding: 5px 8px !important;
        font-size: 0.86rem;
    }
    .navbar-custom .navbar-nav {
        row-gap: 6px;
    }
}
@media (max-width: 1199px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 16px 20px;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 12px;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .navbar-custom .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }
    .nav-link {
        padding: 10px 14px !important;
        font-size: 0.95rem;
        border-bottom: 1px solid #f2f4f8;
        width: 100%;
    }
    .lang-switcher-toggle {
        margin-top: 14px;
        justify-content: center;
        width: 100%;
    }
}

/* Hero Carousel & Slider Section */
.hero-slider-wrapper {
    width: 100% !important;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    background: #0A3358;
}
.hero-carousel-item {
    min-height: 520px;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0 110px 0;
}
.hero-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 51, 88, 0.88) 0%, rgba(15, 76, 129, 0.75) 100%);
    z-index: 1;
}
.hero-carousel-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 25px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
.hero-carousel-control {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    top: 45%;
    transform: translateY(-50%);
    opacity: 0.85;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.hero-carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
}
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: #ffffff;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: none;
}
.carousel-indicators .active {
    width: 32px;
    border-radius: 10px;
    opacity: 1;
    background-color: var(--sky-blue);
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.9rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-carousel-item {
        min-height: 480px;
        padding: 50px 0 90px 0;
    }
    .hero-carousel-control {
        display: none;
    }
}

/* Quick Action Cards overlaying Hero */
.quick-cards-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}
.action-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--sky-blue);
}
.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(15, 76, 129, 0.15);
}
.action-card.card-donate { border-top-color: var(--light-green); }
.action-card.card-volunteer { border-top-color: var(--sky-blue); }
.action-card.card-request { border-top-color: var(--primary-blue); }
.action-card.card-emergency { border-top-color: var(--accent-red); }

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.bg-sky-light { background-color: var(--sky-blue-light); color: var(--primary-blue); }
.bg-green-light { background-color: #E8F8F5; color: var(--light-green-dark); }
.bg-red-light { background-color: #FDEDEC; color: var(--accent-red); }

/* Statistics Counter Section */
.stats-section {
    padding: 70px 0;
    background-color: #ffffff;
}
.stat-card {
    text-align: center;
    padding: 24px;
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-blue);
}
.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Service Cards */
.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid #F0F4F8;
    transition: all 0.3s ease;
    height: 100%;
}
.service-card:hover {
    border-color: var(--sky-blue);
    transform: translateY(-5px);
}

/* Bank Details Banner */
.bank-card {
    background: linear-gradient(135deg, #F8FAFC 0%, #EBF5FF 100%);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid #D6E4F0;
    box-shadow: var(--card-shadow);
}
.qr-box img {
    max-width: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Floating CTAs */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-floating {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    text-decoration: none;
}
.btn-floating:hover {
    transform: scale(1.1);
    color: #ffffff;
}
.btn-whatsapp { background-color: #25D366; }
.btn-donate-float { background-color: var(--light-green); }
.btn-back-top { background-color: var(--primary-blue); }

/* 100% Width Footer */
.footer-main {
    width: 100% !important;
    max-width: 100% !important;
    background-color: var(--primary-blue-dark);
    color: #ffffff;
    padding: 70px 0 30px 0;
    box-sizing: border-box;
}
.footer-main a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-main a:hover {
    color: var(--sky-blue);
}
