/* ===================================
   Rotary District 3060 - Global Styles
   =================================== */

:root {
    --rotary-blue: #0077C8;
    --rotary-navy: #01426A;
    --rotary-yellow: #F7A81B;
    --rotary-light-blue: #E8F4FA;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    color: var(--rotary-navy);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 119, 200, 0.08);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 119, 200, 0.12);
}

.navbar.scrolled::before {
    opacity: 1;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: var(--transition);
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 119, 200, 0.3));
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rotary-navy);
    line-height: 1.2;
}

.nav-logo-subtitle {
    font-size: 0.85rem;
    color: var(--rotary-blue);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--rotary-blue);
    background: rgba(0, 119, 200, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--rotary-blue);
    background: rgba(0, 119, 200, 0.12);
    font-weight: 600;
}

/* Icon-only nav links (like home icon) */
.nav-link-icon {
    padding: 8px 12px;
}

.nav-link-icon:hover {
    background: transparent;
    color: var(--rotary-blue);
}

.nav-link-icon.active {
    background: transparent;
    color: var(--rotary-blue);
}

.nav-dropdown-icon {
    font-size: 0.7rem;
    transition: var(--transition);
}

.nav-item:hover .nav-dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12),
        0 0 1px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    min-width: 240px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: var(--transition);
    margin-top: 12px;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-item {
    display: block;
    padding: 14px 18px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.nav-dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 119, 200, 0.1) 50%,
            transparent 100%);
    transition: left 0.5s ease;
}

.nav-dropdown-item:hover::before {
    left: 100%;
}

.nav-dropdown-item:hover {
    background: rgba(232, 244, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--rotary-blue);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 119, 200, 0.15);
}

.nav-dropdown-divider {
    height: 1px;
    background: #E0E0E0;
    margin: 8px 0;
}

/* CTA Button in Nav */
.nav-cta {
    background: linear-gradient(135deg,
            rgba(247, 168, 27, 0.95) 0%,
            rgba(255, 185, 51, 0.95) 100%);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: var(--rotary-navy);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(247, 168, 27, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
    font-size: 0.98rem;
    letter-spacing: 0.3px;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.nav-cta:hover::before {
    transform: scale(1);
}

.nav-cta:hover {
    background: linear-gradient(135deg,
            rgba(255, 185, 51, 0.98) 0%,
            rgba(247, 168, 27, 0.98) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(247, 168, 27, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 20px rgba(247, 168, 27, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--rotary-navy);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle:hover span {
    background: var(--rotary-blue);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   HERO SECTION - MODERN RESPONSIVE DESIGN
   =================================== */

.hero {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rotary-navy) 0%, var(--rotary-blue) 100%);
    color: var(--white);
    overflow: hidden;
    margin-top: 100px;
    padding: 3rem 0;
    transition: all 0.3s ease;
}

/* Home Page Full Hero */
body.home-page .hero {
    min-height: calc(100vh - 80px);
    padding: 4rem 0;
}

/* Background Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

/* Hero Content Container */
.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Text */
.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-text p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--rotary-yellow);
    color: var(--rotary-navy);
    box-shadow: 0 4px 15px rgba(247, 168, 27, 0.4);
}

.btn-primary:hover {
    background: #FFB933;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 168, 27, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--rotary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Back Button */


/* Icon-only Back Button */
.back-btn-icon-only {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    z-index: 20;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 50%;
}

.back-btn-icon-only:hover {
    color: var(--white);
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.back-btn-icon-only svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Hero Graphic */
.hero-graphic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-card h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: var(--rotary-yellow);
    font-weight: 700;
}

.hero-card p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    opacity: 0.95;
    line-height: 1.5;
}

/* Directory Page Hero Styles */
.hero-directory {
    min-height: 250px;
    margin-top: 100px;
}

.hero-content-directory {
    grid-template-columns: 1fr;
    text-align: center;
}

/* ===================================
   CARDS (UNIVERSAL)
   =================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    color: var(--rotary-navy);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.card-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid #E0E0E0;
}

.card-badge {
    background: var(--rotary-light-blue);
    color: var(--rotary-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Committee Category Cards */
.committee-category-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 2px solid transparent;
}

.committee-category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rotary-blue);
}

.committee-category-icon {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--rotary-light-blue) 0%, rgba(232, 244, 250, 0.5) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.committee-category-card:hover .committee-category-icon {
    background: linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-navy) 100%);
    transform: scale(1.1);
}

.committee-category-title {
    font-size: 1.6rem;
    color: var(--rotary-navy);
    font-weight: 700;
    margin: 0;
}

.committee-category-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.committee-category-count {
    background: var(--rotary-yellow);
    color: var(--rotary-navy);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* ===================================
   DIRECTORY CARDS (Enhanced)
   =================================== */

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.directory-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(1, 66, 106, 0.08);
}

.directory-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(1, 66, 106, 0.2);
    border-color: var(--rotary-blue);
}

.directory-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.directory-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.directory-card:hover .directory-card-image img {
    transform: scale(1.1);
}

.directory-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(1, 66, 106, 0.1) 0%,
            rgba(1, 66, 106, 0.6) 100%);
    transition: opacity 0.4s ease;
}

.directory-card:hover .directory-card-overlay {
    opacity: 0.8;
}

.directory-card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.directory-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-navy) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(1, 66, 106, 0.2);
}

.directory-card-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.directory-card:hover .directory-card-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(1, 66, 106, 0.35);
}

.directory-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rotary-navy);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.directory-card-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.directory-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(1, 66, 106, 0.1);
}

.directory-card-count {
    background: linear-gradient(135deg, var(--rotary-light-blue) 0%, rgba(232, 244, 250, 0.6) 100%);
    color: var(--rotary-navy);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(1, 66, 106, 0.15);
}

.directory-card-arrow {
    font-size: 1.5rem;
    color: var(--rotary-blue);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.directory-card:hover .directory-card-arrow {
    transform: translateX(5px);
}


/* ===================================
   STATS SECTION
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-navy) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--rotary-yellow);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ===================================
   LEADER CARDS
   =================================== */

.leader-card {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(0, 119, 200, 0.09), transparent 55%),
        radial-gradient(circle at bottom right, rgba(247, 168, 27, 0.11), transparent 55%),
        var(--white);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(1, 66, 106, 0.16);
    overflow: hidden;
    transition: var(--transition);
    text-align: left;
    padding: 2.25rem 2rem 1.8rem;
    border: 1px solid rgba(1, 66, 106, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.leader-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 22px 55px rgba(1, 66, 106, 0.22);
}

.leader-card:hover::before {
    opacity: 1;
}

.leader-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.leader-photos {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.leader-avatar-spouse .leader-image {
    width: 80px;
    height: 80px;
}

.leader-avatar {
    position: relative;
    flex-shrink: 0;
}

.leader-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-light);
    border: 4px solid var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.leader-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rotary-light-blue), rgba(232, 244, 250, 0.95));
    color: var(--rotary-navy);
    font-weight: 700;
    font-size: 1.4rem;
}

.leader-avatar-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rotary-yellow), #ffce57);
    color: var(--rotary-navy);
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(247, 168, 27, 0.55);
}

.leader-info {
    flex: 1;
    padding: 0;
}

.leader-name {
    font-size: 1.15rem;
    color: var(--rotary-navy);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
}

.leader-designation {
    color: var(--rotary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.leader-club {
    color: var(--text-light);
    font-size: 0.9rem;
}

.leader-details {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(1, 66, 106, 0.16);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
}

.leader-detail-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    box-shadow: 0 6px 18px rgba(1, 66, 106, 0.12);
    border: 1px solid rgba(1, 66, 106, 0.06);
}

.leader-detail-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rotary-blue);
    margin-bottom: 0.75rem;
}

.leader-detail-section .leader-detail-row+.leader-detail-row {
    margin-top: 0.35rem;
}

.leader-detail-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.1rem;
    color: var(--text-light);
}

.leader-detail-icon {
    font-size: 1rem;
}

.leader-detail-label {
    font-weight: 600;
    color: var(--rotary-navy);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.leader-detail-value {
    font-size: 0.9rem;
    word-break: break-word;
}

.leader-contact {
    margin-top: 1.1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.leader-contact a {
    color: var(--rotary-blue);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 119, 200, 0.06);
    transition: var(--transition);
}

.leader-contact a:hover {
    background: var(--rotary-blue);
    color: var(--white);
}

/* ===================================
   FILTER BAR
   =================================== */

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--white);
    border: 2px solid var(--rotary-blue);
    color: var(--rotary-blue);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--rotary-blue);
    color: var(--white);
}

.section-search {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.search-box {
    max-width: 500px;
    margin: 0 auto 0.5rem;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--rotary-blue);
}

/* ===================================
   CAROUSEL
   =================================== */

.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--rotary-blue) var(--bg-light);
}

.carousel-wrapper::-webkit-scrollbar {
    height: 8px;
}

.carousel-wrapper::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.carousel-wrapper::-webkit-scrollbar-thumb {
    background: var(--rotary-blue);
    border-radius: 10px;
}

.carousel-card {
    min-width: 300px;
    flex-shrink: 0;
}

/* ===================================
   GALLERY
   =================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: var(--white);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===================================
   LIGHTBOX
   =================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
}

/* ===================================
   CALENDAR
   =================================== */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day:hover {
    background: var(--rotary-light-blue);
}

.calendar-day.has-event {
    background: var(--rotary-blue);
    color: var(--white);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--rotary-navy);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--rotary-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--rotary-yellow);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--rotary-yellow);
    color: var(--rotary-navy);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===================================
   DISTRICT GOVERNOR MESSAGE
   =================================== */

.dg-message-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.dg-message-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: center;
    transition: var(--transition);
}

.dg-message-card:hover {
    box-shadow: var(--shadow-lg);
}

.dg-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.dg-content {
    padding: 2rem;
}

.dg-name {
    font-size: 1.8rem;
    color: var(--rotary-navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dg-title {
    color: var(--rotary-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.dg-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.dg-signature {
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 1.5rem;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE
   =================================== */

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .nav-container {
        max-width: 100%;
        padding: 0 30px;
    }

    .container {
        padding: 0 30px;
    }

    /* Prevent overlapping - General Fixes */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure cards don't overflow */
    .card,
    .leader-card,
    .committee-category-card,
    .stat-card,
    .dg-message-card {
        max-width: 100%;
        overflow: hidden;
    }

    /* Prevent text overflow */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    a,
    div {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Ensure grids are responsive */
    .card-grid,
    .stats-grid,
    .gallery-grid {
        width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 968px) {
    .nav-container {
        height: 70px;
        padding: 0 20px;
    }

    .nav-logo-img {
        height: 45px;
        width: auto;
    }

    .nav-menu {
        position: static; /* Keep in normal flow instead of fixed */
        flex-direction: row; /* Keep horizontal layout */
        background: transparent; /* Remove background */
        width: auto; /* Auto width instead of 100% */
        text-align: left;
        box-shadow: none; /* Remove shadow */
        padding: 0; /* Remove padding */
        gap: 0.3rem;
        max-height: none; /* Remove height restriction */
        overflow-y: visible;
        z-index: auto;
    }

    .nav-item {
        width: auto; /* Auto width instead of 100% */
    }

    .nav-link {
        width: auto; /* Auto width instead of 90% */
        margin: 0;
        justify-content: center;
        padding: 8px 12px; /* Match desktop icon padding */
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(232, 244, 250, 0.5);
        margin-top: 0.5rem;
        display: none;
    }

    .nav-item.mobile-open .nav-dropdown {
        display: block;
    }

    .nav-toggle {
        display: none; /* Hide hamburger menu on mobile */
    }


    .hero {
        margin-top: 70px;
        min-height: 500px;
        padding: 3rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-graphic {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .filter-bar {
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: center;
    }

    .filter-btn {
        flex: 0 1 auto;
        min-width: 120px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .leader-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .nav-container {
        height: 60px;
    }

    .nav-logo-img {
        height: 40px;
        width: auto;
    }

    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
    }

    .hero {
        margin-top: 60px;
        min-height: 600px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-graphic {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .filter-bar {
        gap: 0.6rem;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .carousel-wrapper {
        gap: 1rem;
    }

    .carousel-card {
        min-width: 280px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .nav-logo-img {
        height: 40px;
        width: auto;
    }

    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
        padding: 1.5rem 0;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .hero {
        margin-top: 60px;
        min-height: 350px;
        padding: 2rem 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-card h3 {
        font-size: 2rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .card-content {
        padding: 1.2rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .filter-bar {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-width: 90px;
        flex: 1 1 calc(50% - 0.25rem);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .carousel-card {
        min-width: 250px;
    }

    .search-box {
        margin-bottom: 1.5rem;
    }

    .search-input {
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    .leader-card {
        max-width: 100%;
    }

    .leader-card-header {
        align-items: flex-start;
    }

    .leader-image {
        width: 80px;
        height: 80px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-links {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .nav-container {
        height: 55px;
    }

    .nav-logo-img {
        height: 50px;
        width: 50px;
    }

    .nav-menu {
        top: 55px;
    }

    .hero {
        margin-top: 55px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .filter-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }
}

.back-btn-minimal {
    position: absolute;
    top: 20px;
    left: 30px;
    right: auto;
    padding: 8px;
    background: transparent;
    border-radius: 50%;
    backdrop-filter: none;
    z-index: 20;
    border: none;
}

.back-btn-minimal:hover {
    color: var(--white);
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.back-btn-minimal svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}



/* ===================================
   ENHANCED MOBILE RESPONSIVE STYLES
   =================================== */

/* Tablet and Small Desktop (max-width: 968px) */
@media (max-width: 968px) {

    /* Navigation Enhancements */
    .nav-logo-title {
        font-size: 1.2rem;
    }

    .nav-logo-subtitle {
        font-size: 0.75rem;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
        width: 90%;
        text-align: center;
    }

    /* Hero Section */
    body.home-page .hero {
        min-height: 600px;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    /* Committee Cards */
    .committee-category-card {
        padding: 2rem 1.5rem;
    }

    .committee-category-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }

    .committee-category-title {
        font-size: 1.4rem;
    }

    /* Directory Cards */
    .directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .directory-card-image {
        height: 180px;
    }

    .directory-card-content {
        padding: 1.5rem;
    }

    .directory-card-title {
        font-size: 1.3rem;
    }

    .directory-card-desc {
        font-size: 0.9rem;
    }

    /* Leader Cards */
    .leader-card-header {
        flex-direction: column;
        text-align: center;
    }

    .leader-info {
        text-align: center;
    }

    .leader-contact {
        justify-content: center;
    }

    /* Back Button */
    .back-btn-minimal {
        top: 15px;
        left: 20px;
        right: auto;
        font-size: 0.85rem;
        padding: 6px;
        background: transparent;
        border: none;
    }

    .back-btn-minimal:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .back-btn-icon-only {
        top: 10px;
        left: 10px;
    }

    /* Calendar */
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .calendar-day {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* District Governor Message */
    .dg-message-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dg-image {
        height: 300px;
        border-radius: 15px 15px 0 0;
    }

    .dg-content {
        padding: 1.5rem;
    }

    .dg-name {
        font-size: 1.6rem;
    }

    .dg-title {
        font-size: 1rem;
    }
}

/* Mobile Landscape and Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    /* Navigation */
    .nav-logo-text {
        display: none;
    }

    .nav-logo-img {
        height: 55px;
    }

    /* Hero Adjustments */
    .hero-card {
        padding: 1.5rem;
    }

    .hero-card h3 {
        font-size: 2rem;
    }

    .hero-card p {
        font-size: 0.85rem;
    }

    /* Cards */
    .card-image {
        height: 180px;
    }

    /* Committee Cards */
    .committee-category-card {
        padding: 1.8rem 1.2rem;
    }

    .committee-category-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .committee-category-title {
        font-size: 1.3rem;
    }

    .committee-category-desc {
        font-size: 0.9rem;
    }

    /* Leader Cards */
    .leader-image {
        width: 80px;
        height: 80px;
    }

    .leader-name {
        font-size: 1.05rem;
    }

    .leader-designation {
        font-size: 0.9rem;
    }

    .leader-detail-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.3rem;
    }

    /* Calendar */
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .calendar-day {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .social-icons {
        justify-content: center;
    }

    /* Search Box */
    .search-box {
        max-width: 100%;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    /* District Governor Message */
    .dg-image {
        height: 250px;
    }

    .dg-content {
        padding: 1.2rem;
    }

    .dg-name {
        font-size: 1.4rem;
    }

    .dg-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .dg-text {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
}

/* Mobile Portrait (max-width: 600px) */
@media (max-width: 600px) {

    /* Container */
    .container {
        padding: 0 16px;
    }

    /* Navigation */
    .nav-logo-img {
        height: 38px;
    }

    .nav-toggle span {
        width: 24px;
        height: 2.5px;
    }

    /* Hero */
    body.home-page .hero {
        min-height: 500px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 0.95rem;
        line-height: 1.5;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .hero-card {
        padding: 1.2rem;
    }

    .hero-card h3 {
        font-size: 1.8rem;
    }

    .hero-card p {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Cards */
    .card-grid {
        gap: 1.2rem;
        padding: 0;
        width: 100%;
    }

    .card-image {
        height: 160px;
    }

    .card-content {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .card-description {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .card-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .card-badge {
        padding: 4px 10px;
        font-size: 0.8rem;
    }

    /* Committee Cards */
    .committee-category-card {
        padding: 1.5rem 1rem;
    }

    .committee-category-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .committee-category-title {
        font-size: 1.2rem;
    }

    .committee-category-desc {
        font-size: 0.85rem;
    }

    .committee-category-count {
        padding: 6px 16px;
        font-size: 0.85rem;
    }

    /* Directory Cards */
    .directory-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .directory-card-image {
        height: 160px;
    }

    .directory-card-content {
        padding: 1.25rem;
    }

    .directory-card-icon {
        width: 45px;
        height: 45px;
    }

    .directory-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .directory-card-title {
        font-size: 1.2rem;
    }

    .directory-card-desc {
        font-size: 0.88rem;
    }

    .directory-card-count {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    /* Leader Cards */
    .leader-card {
        padding: 1.5rem 1.2rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .leader-image {
        width: 70px;
        height: 70px;
        border-width: 3px;
    }

    .leader-avatar-badge {
        min-width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    .leader-name {
        font-size: 1rem;
    }

    .leader-designation {
        font-size: 0.85rem;
    }

    .leader-club {
        font-size: 0.85rem;
    }

    .leader-details {
        margin-top: 1rem;
        padding-top: 1rem;
        gap: 0.4rem;
    }

    .leader-detail-value {
        font-size: 0.85rem;
    }

    .leader-contact a {
        font-size: 0.8rem;
        padding: 0.35rem 0.8rem;
    }

    /* Stats */
    .stat-card {
        padding: 1.2rem 0.8rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .gallery-overlay {
        padding: 1rem;
    }

    .gallery-overlay p {
        font-size: 0.85rem;
    }

    /* Carousel */
    .carousel-card {
        min-width: 250px;
    }

    /* Calendar */
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .calendar-day {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Filter Bar */
    .filter-bar {
        gap: 0.4rem;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 90px;
    }

    /* Lightbox */
    .lightbox img {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 32px;
    }

    /* Back Button */
    .back-btn-minimal {
        top: 12px;
        left: 15px;
        right: auto;
        font-size: 0.8rem;
        padding: 6px;
        border-radius: 50%;
        background: transparent;
        border: none;
    }

    .back-btn-minimal:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .back-btn-minimal svg {
        width: 20px;
        height: 20px;
    }

    /* Hero Content */
    .hero-content {
        padding: 0 0.5rem;
    }


    /* District Governor Message */
    .dg-message-wrapper {
        max-width: 100%;
    }

    .dg-image {
        height: 220px;
    }

    .dg-content {
        padding: 1rem;
    }

    .dg-name {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .dg-title {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .dg-text {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.7rem;
    }

    .dg-signature {
        font-size: 0.95rem;
        margin-top: 1rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {

    /* Typography */
    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Navigation */
    .nav-container {
        height: 55px;
        padding: 0 12px;
    }

    .nav-logo-img {
        height: 50px;
    }

    .nav-menu {
        top: 55px;
        max-height: calc(100vh - 55px);
        padding: 1rem 0;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    /* Hero Section - Mobile Optimized */
    .hero {
        min-height: 180px;
        padding: 2.5rem 0;
        margin-top: 55px;
    }

    .hero-directory {
        min-height: 180px;
        margin-top: 55px;
    }

    body.home-page .hero {
        min-height: 400px;
        padding: 3rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .hero-text {
        max-width: 100%;
        padding: 0;
        width: 100%;
    }

    .hero-text h1 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        margin-bottom: 0.8rem;
        text-align: center;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .hero-text p {
        font-size: clamp(0.85rem, 3vw, 1rem);
        margin-bottom: 1.5rem;
        text-align: center;
        max-width: 100%;
        line-height: 1.5;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: normal;
        padding: 0 5px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .back-btn-minimal {
        top: 10px;
        left: 10px;
        right: auto;
        font-size: 0.85rem;
        padding: 6px;
        border-radius: 50%;
        background: transparent;
        border: none;
    }

    .back-btn-minimal:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .back-btn-minimal svg {
        width: 20px;
        height: 20px;
    }

    .back-btn-icon-only {
        top: 10px;
        left: 10px;
        padding: 6px;
    }

    .back-btn-icon-only svg {
        width: 24px;
        height: 24px;
    }

    .hero-graphic {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .hero-card h3 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 0.5rem;
    }

    .hero-card p {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Sections */
    .section {
        padding: 30px 0;
    }

    /* Cards */
    .card-grid {
        gap: 1rem;
    }

    .card-image {
        height: 140px;
    }

    .card-content {
        padding: 0.9rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }

    /* Committee Cards */
    .committee-category-card {
        padding: 1.2rem 0.8rem;
    }

    .committee-category-icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .committee-category-title {
        font-size: 1.1rem;
    }

    .committee-category-desc {
        font-size: 0.8rem;
    }

    /* Leader Cards */
    .leader-card {
        padding: 1.2rem 1rem;
    }

    .leader-card-header {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .leader-image {
        width: 60px;
        height: 60px;
    }

    .leader-name {
        font-size: 0.95rem;
    }

    .leader-designation {
        font-size: 0.8rem;
    }

    .leader-club {
        font-size: 0.8rem;
    }

    /* Stats */
    .stat-card {
        padding: 1rem 0.6rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    /* Carousel */
    .carousel-card {
        min-width: 220px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-links li {
        margin-bottom: 0.6rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    /* District Governor Message */
    .dg-image {
        height: 200px;
    }

    .dg-content {
        padding: 0.9rem;
    }

    .dg-name {
        font-size: 1.1rem;
    }

    .dg-title {
        font-size: 0.85rem;
    }

    .dg-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .dg-signature {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (max-width: 400px) */
@media (max-width: 400px) {

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Navigation */
    .nav-container {
        height: 50px;
        padding: 0 10px;
    }

    .nav-logo-img {
        height: 45px;
    }

    .nav-menu {
        top: 50px;
        max-height: calc(100vh - 50px);
    }

    /* Hero Section - Extra Small Mobile */
    .hero {
        min-height: 160px;
        padding: 2.5rem 0;
        margin-top: 50px;
    }

    .hero-directory {
        min-height: 160px;
        margin-top: 50px;
    }

    body.home-page .hero {
        min-height: 350px;
        padding: 2.5rem 0;
    }

    .hero-content {
        padding: 0 0.75rem;
        gap: 1.25rem;
    }

    .hero-text h1 {
        font-size: clamp(1.3rem, 5vw, 1.5rem);
        margin-bottom: 0.7rem;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        text-align: center;
    }

    .hero-text p {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
        margin-bottom: 1.2rem;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: normal;
        padding: 0 0.5rem;
        text-align: center;
    }

    .hero-text {
        padding: 0;
        width: 100%;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .back-btn-minimal {
        top: 12px;
        right: 12px;
        font-size: 0;
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .back-btn-minimal svg {
        width: 16px;
        height: 16px;
    }

    .hero-card h3 {
        font-size: 1.4rem;
    }

    /* Hero Content */
    .hero-content {
        padding: 0 0.25rem;
    }

    /* Typography */
    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* Cards */
    .card-image {
        height: 120px;
    }

    .card-content {
        padding: 0.8rem;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-description {
        font-size: 0.8rem;
    }

    /* Committee Cards */
    .committee-category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    .committee-category-title {
        font-size: 1rem;
    }

    /* Leader Cards */
    .leader-image {
        width: 55px;
        height: 55px;
    }

    .leader-name {
        font-size: 0.9rem;
    }

    /* Stats */
    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        padding: 9px 18px;
        font-size: 0.85rem;
    }

    /* Filter Buttons */
    .filter-btn {
        padding: 7px 10px;
        font-size: 0.8rem;
        min-width: 80px;
    }

    /* Carousel */
    .carousel-card {
        min-width: 200px;
    }
}

/* Landscape Orientation Fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 350px !important;
    }

    body.home-page .hero {
        min-height: 400px !important;
    }

    .nav-menu {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .nav-link {
        padding: 14px 20px;
    }

    .btn {
        min-height: 44px;
    }

    .filter-btn {
        min-height: 40px;
    }

    .social-icon {
        min-width: 44px;
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
    }

    .hero-card:hover {
        transform: none;
    }

    .stat-card:hover {
        transform: none;
    }
}

/* ===================================
   DETAILED LEADER CARD (Minimal & Professional)
   =================================== */

.leader-card.detailed-card {
    padding: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.leader-card.detailed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 119, 200, 0.3);
}

/* Header Section */
.leader-card-header {
    background: #f8f9fa;
    /* Light gray background for header */
    padding: 1rem 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.leader-card.detailed-card .leader-card-header {
    gap: 0.8rem;
}

/* Photos Container */
.leader-photos-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.2rem;
    height: 100px;
    /* Fixed height for consistency */
    width: 100%;
}

.leader-photos-container.has-spouse {
    width: 140px;
    /* Height is inherited/consistent now */
}

.leader-photo-wrapper {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.leader-photo-wrapper img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Overlapping effect for spouse */
.leader-photos-container.has-spouse .member-photo {
    position: absolute;
    left: 10px;
    z-index: 2;
}

.leader-photos-container.has-spouse .spouse-photo {
    position: absolute;
    right: 10px;
    z-index: 1;
}

.leader-photos-container.has-spouse:hover .member-photo {
    transform: translateX(-5px);
    z-index: 3;
}

.leader-photos-container.has-spouse:hover .spouse-photo {
    transform: translateX(5px);
    z-index: 3;
}

/* Header Info */
.leader-header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    width: 100%;
}

.leader-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
}

.leader-designation {
    font-size: 0.8rem;
    color: var(--rotary-blue);
    font-weight: 600;
    margin: 0;
    background: rgba(0, 119, 200, 0.08);
    /* Visible badge background */
    padding: 3px 10px;
    border-radius: 10px;
}

.leader-club {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
}

.leader-club svg {
    color: var(--rotary-yellow);
    width: 12px;
    height: 12px;
}

/* Body Section */
.leader-body {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--white);
}

.leader-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.leader-grid-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
}

/* Info Items */
.info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.5rem;
    /* Added horizontal padding */
    border-radius: 8px;
    /* Rounded corners */
    background: #f8f9fa;
    /* Light gray background for items */
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    margin-bottom: 0.3rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item:hover {
    transform: translateX(2px);
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-icon-wrapper {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    /* White background for icon wrapper */
    color: var(--text-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-icon-wrapper svg {
    width: 12px;
    height: 12px;
}

/* Subtle colorful icons */
.phone-icon {
    color: #4CAF50;
}

.email-icon {
    color: #2196F3;
}

.dob-icon {
    color: #9C27B0;
}

.anniversary-icon {
    color: #E91E63;
}

.info-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    flex: 1;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0;
    min-width: 65px;
}

.info-value {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.2;
    text-align: right;
}

/* Spouse Section */
.spouse-section {
    margin-top: 0.4rem;
    background: #fff8e1;
    /* Very light yellow/orange background */
    border-radius: 10px;
    padding: 0.6rem;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.spouse-header {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #d35400;
    font-weight: 700;
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.spouse-header svg {
    color: #ff9800;
    width: 12px;
    height: 12px;
}

.spouse-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.spouse-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    padding-bottom: 0.2rem;
}

.spouse-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spouse-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.75rem;
}

.spouse-value {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .leader-grid-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .info-item {
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .leader-card-header {
        padding: 1rem 0.8rem;
    }

    .leader-name {
        font-size: 1rem;
    }

    .leader-body {
        padding: 0.6rem;
    }

    .leader-photos-container.has-spouse {
        width: 130px;
        height: 90px;
    }

    .leader-photo-wrapper img {
        width: 60px;
        height: 60px;
    }
}

/* Committee Detail Page Mobile Adjustments */
@media (max-width: 768px) {
    .committee-detail-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .committee-detail-container .leader-card {
        max-width: 100%;
    }
}

/* ===================================
   STICKY HEADER
   =================================== */
/* ===================================
   STICKY HEADER
   =================================== */
.sticky-header {
    position: fixed;
    top: 80px;
    /* Default Navbar Height */
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--rotary-navy) 0%, var(--rotary-blue) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 900;
    padding: 10px 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
    color: var(--white);
}

.sticky-header.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sticky-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.sticky-back-btn {
    position: static;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.sticky-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateX(-3px);
}

.sticky-back-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.sticky-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    /* Allow flex item to shrink below content size */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-search-box {
    width: 300px;
    position: relative;
    flex-shrink: 0;
}

.sticky-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transition: var(--transition);
}

.sticky-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.sticky-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments for Sticky Header */
@media (max-width: 968px) {
    .sticky-header {
        top: 70px;
        /* Navbar is 70px */
    }
}

@media (max-width: 768px) {
    .sticky-header-content {
        gap: 0.5rem;
    }

    .sticky-search-box {
        width: 180px;
        /* Reduce width on tablets */
    }
}

@media (max-width: 600px) {
    .sticky-header {
        top: 120px;
        /* Navbar is 60px */
        padding: 8px 0;
    }

    .sticky-back-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .sticky-title {
        font-size: 1rem;
    }

    .sticky-search-box {
        width: 140px;
        /* Smaller search box on mobile */
    }

    .sticky-search-input {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .sticky-header {
        top: 110px;
        /* Navbar is 55px */
    }

    .sticky-title {
        font-size: 0.9rem;
    }

    .sticky-search-box {
        width: 120px;
    }
}

@media (max-width: 400px) {
    .sticky-header {
        top: 110px;
        /* Navbar is 50px */
    }

    .sticky-title {
        display: block;
        font-size: 0.85rem;
    }

    .sticky-search-box {
        width: 110px;
        /* Compact search box */
    }

    .sticky-search-input {
        padding: 6px 10px;
    }
}

/* ===================================
   ULTRA-COMPACT DASHBOARD CARDS
   =================================== */
/* ... (existing styles) ... */

/* Member Count Badge */
.dash-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #F8FAFC;
    color: var(--card-accent);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 5;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.dash-card:hover .dash-badge {
    background: var(--card-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dashboard-section {
    padding: 60px 0;
    background-color: #F8F9FA;
    position: relative;
    overflow: hidden;
}

/* Abstract background shapes */
.dashboard-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 119, 200, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(247, 168, 27, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.dashboard-header h2 {
    font-size: 2.25rem;
    color: #01426A;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #01426A 0%, #0077C8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-header p {
    color: #64748B;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.dash-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    border: 1px solid #E2E8F0; /* Visible border */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* The "Glow" Shadow Effect */
.dash-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 15px 30px -5px var(--card-glow-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.dash-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.dash-card:hover::after {
    opacity: 0.3;
}

/* Animated Gradient Orb Background - More visible now */
.dash-bg-orb {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: var(--card-gradient);
    filter: blur(45px);
    border-radius: 50%;
    opacity: 0.25; /* Increased visibility */
    transition: all 0.5s ease;
    transform: scale(1);
}

.dash-card:hover .dash-bg-orb {
    transform: scale(1.4) translate(-10px, 10px);
    opacity: 0.35;
}

/* Icon Styling */
.dash-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.dash-card:hover .dash-icon-container {
    transform: scale(1.05) rotate(-3deg);
    box-shadow:
        0 8px 16px -4px var(--card-glow-color),
        inset 0 1px 1px rgba(255, 255, 255, 1);
}

.dash-icon-container svg {
    width: 24px;
    height: 24px;
    fill: var(--card-accent);
    transition: all 0.3s ease;
}

/* Content Styling */
.dash-content {
    position: relative;
    z-index: 2;
}

.dash-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 4px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.dash-card:hover .dash-title {
    color: var(--card-accent);
}

.dash-subtitle {
    font-size: 0.85rem;
    color: #64748B;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Arrow */
.dash-action {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--card-accent);
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.dash-card:hover .dash-action {
    opacity: 1;
    transform: translateY(0);
}

.dash-action span {
    position: relative;
}

.dash-action span::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: width 0.3s ease;
}

.dash-card:hover .dash-action span::after {
    width: 100%;
}

/* Card Themes */
.theme-blue {
    --card-accent: #0077C8;
    --card-gradient: linear-gradient(135deg, #0077C8, #01426A);
    --card-glow-color: rgba(0, 119, 200, 0.3);
}

.theme-gold {
    --card-accent: #F7A81B;
    --card-gradient: linear-gradient(135deg, #F7A81B, #FFD700);
    --card-glow-color: rgba(247, 168, 27, 0.3);
}

.theme-teal {
    --card-accent: #1ABC9C;
    --card-gradient: linear-gradient(135deg, #1ABC9C, #16A085);
    --card-glow-color: rgba(26, 188, 156, 0.3);
}

.theme-purple {
    --card-accent: #9B59B6;
    --card-gradient: linear-gradient(135deg, #9B59B6, #8E44AD);
    --card-glow-color: rgba(155, 89, 182, 0.3);
}

.theme-orange {
    --card-accent: #E67E22;
    --card-gradient: linear-gradient(135deg, #E67E22, #D35400);
    --card-glow-color: rgba(230, 126, 34, 0.3);
}

.theme-green {
    --card-accent: #27AE60;
    --card-gradient: linear-gradient(135deg, #2ECC71, #27AE60);
    --card-glow-color: rgba(39, 174, 96, 0.3);
}

.theme-red {
    --card-accent: #E74C3C;
    --card-gradient: linear-gradient(135deg, #E74C3C, #C0392B);
    --card-glow-color: rgba(231, 76, 60, 0.3);
}

/* Featured Card (Span 2 & 3) */
.dash-card.featured,
.dash-card.span-2 {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.dash-card.span-3 {
    grid-column: span 3;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    min-height: 180px;
}

.dash-card.featured .dash-bg-orb,
.dash-card.span-2 .dash-bg-orb,
.dash-card.span-3 .dash-bg-orb {
    width: 250px;
    height: 250px;
    top: -60px;
    right: -60px;
    opacity: 0.15;
}

.dash-card.featured .dash-icon-container,
.dash-card.span-2 .dash-icon-container,
.dash-card.span-3 .dash-icon-container {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.dash-card.featured .dash-icon-container svg,
.dash-card.span-2 .dash-icon-container svg,
.dash-card.span-3 .dash-icon-container svg {
    width: 30px;
    height: 30px;
}

.dash-card.featured .dash-content,
.dash-card.span-2 .dash-content,
.dash-card.span-3 .dash-content {
    flex-grow: 1;
}

.dash-card.featured .dash-action,
.dash-card.span-2 .dash-action,
.dash-card.span-3 .dash-action {
    margin-top: 8px;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-card.featured,
    .dash-card.span-2,
    .dash-card.span-3 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .dashboard-header h2 {
        font-size: 1.8rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dash-card.featured,
    .dash-card.span-2,
    .dash-card.span-3 {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .dash-card.featured .dash-icon-container,
    .dash-card.span-2 .dash-icon-container,
    .dash-card.span-3 .dash-icon-container {
        margin-bottom: 12px;
    }
}


/* ===================================
   MODERN PREMIUM MEMBER CARD
   =================================== */

.member-card-modern {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.member-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 119, 200, 0.15);
}

/* Header Section */
.modern-header {
    padding: 24px 24px 16px;
    background: linear-gradient(to bottom, #f8fbfe 0%, #ffffff 100%);
}

.header-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    height: 24px; /* Reserve space */
}

.modern-badge {
    background: linear-gradient(135deg, var(--rotary-yellow) 0%, #FFB933 100%);
    color: var(--rotary-navy);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(247, 168, 27, 0.3);
}

.member-profile {
    display: flex;
    gap: 20px;
    align-items: center;
}

.modern-photo-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 20px; /* Squircle */
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    background: white;
}

.modern-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-photo-wrapper:hover .modern-photo {
    transform: scale(1.1);
}

.modern-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 119, 200, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.modern-photo-wrapper:hover .modern-overlay {
    opacity: 1;
}

/* Initials Avatar Styles */
.modern-photo-wrapper.initials-avatar {
    background: linear-gradient(135deg, #0077C8 0%, #01426A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.initials-circle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modern-photo-wrapper.initials-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 119, 200, 0.3);
}

.member-intro {
    flex-grow: 1;
    min-width: 0; /* For text truncation */
}

.modern-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rotary-navy);
    margin-bottom: 4px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.modern-classification {
    font-size: 0.9rem;
    color: var(--rotary-blue);
    font-weight: 600;
    margin-bottom: 6px;
}

.modern-club {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.modern-club svg {
    color: var(--text-light);
    opacity: 0.7;
}

/* Actions Section */
.modern-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 8px 24px 20px;
}

.modern-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-light);
    background: #f1f5f9;
    border: 1px solid transparent;
}

.modern-action-btn:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.modern-action-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.modern-action-btn.call:hover { background: #4CAF50; border-color: #4CAF50; }
.modern-action-btn.message:hover { background: #2196F3; border-color: #2196F3; }
.modern-action-btn.whatsapp:hover { background: #25D366; border-color: #25D366; }
.modern-action-btn.email:hover { background: #F44336; border-color: #F44336; }

/* Details Grid */
.modern-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 24px 20px;
}

.modern-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f8fbfe;
    padding: 10px 4px;
    border-radius: 12px;
    border: 1px solid rgba(0, 119, 200, 0.05);
}

.detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rotary-navy);
}

/* Spouse Section */
.modern-spouse-section {
    margin-top: auto;
    padding: 0 24px 20px;
}

.modern-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
    margin-bottom: 16px;
}

.spouse-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 4px 0 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.spouse-left-section {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.spouse-photo-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.spouse-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spouse-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 1px;
}

.spouse-label {
    font-size: 0.6rem;
    color: var(--rotary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spouse-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rotary-navy);
}

.spouse-dob {
    font-size: 0.7rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.spouse-actions {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
    padding-left: 76px; /* 56px photo + 20px gap */
    margin-top: -4px;
}

.spouse-action-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--rotary-blue);
    background: transparent;
    border: none;
    padding: 0;
}

.spouse-action-btn:hover {
    transform: translateY(-2px);
    color: var(--rotary-navy);
}

.spouse-action-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .modern-details-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .modern-detail-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 16px;
    }

    .detail-label {
        margin-bottom: 0;
    }
}
/* ===================================
   New Card Styles & Lightbox
   =================================== */

/* Post Banner */
.member-post-banner {
    background: linear-gradient(135deg, var(--rotary-navy) 0%, var(--rotary-blue) 100%);
    color: var(--white);
    padding: 12px 20px;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: 100%;
    border-bottom: 3px solid var(--rotary-yellow);
}

/* Adjust card padding since we have a banner now */
.member-card-modern {
    padding: 0 !important; /* Override existing padding */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure banner stays inside rounded corners */
}

.modern-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.modern-actions {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-top: 1rem;
}

.modern-details-grid {
    padding: 1.5rem;
}

.modern-spouse-section {
    padding: 0 1.5rem 1rem 1.5rem;
}

/* Separator Visibility */
.modern-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 0.75rem 0;
    width: 100%;
    position: relative;
}

.modern-separator::before,
.modern-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 119, 200, 0.2), transparent);
}

.modern-separator span {
    padding: 0 10px;
    font-size: 0.65rem;
    color: var(--rotary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spouse-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 4px 0 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.spouse-left-section {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.spouse-photo-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.spouse-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.spouse-photo-wrapper:hover img {
    transform: scale(1.1);
}

.spouse-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 2px;
}

.spouse-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rotary-navy);
}

.spouse-dob {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.spouse-actions {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
    padding-left: 92px; /* 72px photo + 20px gap */
    margin-top: -4px;
}

/* Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Cursor pointer for image */
.modern-photo-wrapper {
    cursor: pointer;
}

/* ===================================
   Updated Member Intro Styles
   =================================== */

.modern-rotary-id {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.modern-designation-inline {
    font-size: 0.95rem;
    color: var(--rotary-blue);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ===================================
   Minimal Dates Section
   =================================== */

.minimal-dates-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the items */
    gap: 1rem;
    padding: 1rem 1.5rem 0.5rem 1.5rem; /* Adjusted padding */
    margin-top: 0;
}

.minimal-date-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    background: rgba(0,0,0,0.03);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.minimal-date-item:hover {
    background: rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.minimal-date-item svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .minimal-dates-grid {
        gap: 0.5rem;
    }

    .minimal-date-item {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}
/* ===================================
   STICKY SEARCH CONTAINER
   =================================== */
.sticky-search-container {
    position: fixed;
    top: 140px; /* Below the sticky header (80px + ~60px) */
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--rotary-navy) 0%, var(--rotary-blue) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 899; /* Just below header */
    padding: 10px 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
    color: var(--white);
}

.sticky-search-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sticky-search-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the search box */
}

/* Adjust sticky header to not rely on search box for spacing */
.sticky-header-content {
    justify-content: space-between; /* Keep back button and title separated */
}

/* Responsive adjustments for sticky search */
@media (max-width: 968px) {
    .sticky-search-container {
        top: 130px; /* 70px + 60px */
    }
}

@media (max-width: 600px) {
    .sticky-search-container {
        top: 110px; /* 60px + 50px */
    }
}

@media (max-width: 480px) {
    .sticky-search-container {
        top: 100px; /* 55px + 45px */
    }
}

@media (max-width: 400px) {
    .sticky-search-container {
        top: 90px; /* 50px + 40px */
    }
}

/* Ensure Sticky Header is visible and on top */
.sticky-header {
    z-index: 1001 !important; /* Above navbar (1000) */
}
