/* =========================================
   🎨 ORANGE + RED THEME VARIABLES
   ========================================= */

   
:root {
    --orange: #FF6B00;
    --orange-light: #FF8C42;
    --red: #D32F2F;
    --red-dark: #B71C1C;

    --white: #FFFFFF;
    --text-dark: #212121;
    --text-light: #F5F5F5;

    --bg-light: #FFF8F3;
    --bg-card: #FFFFFF;

    --shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
body.dark-mode {
    --text-dark: #E0E0E0;
    --bg-light: #121212;
    --bg-card: #1E1E1E;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* =========================================
   GLOBAL RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Yatra One", system-ui;
      color: var(--text-dark);
    line-height: 1.6;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.main-header {
    background: linear-gradient(135deg, var(--red-dark), var(--red), var(--orange));
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--orange);
    background: var(--white);
}

.org-name h1 {
    font-size: 1.5rem;
    color: #FFD180;
    font-weight: 700;
}

/* =========================================
   🍔 HAMBURGER BUTTON (Mobile)
   ========================================= */

   
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hamburger animation when open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================
   NAVIGATION LINKS (Desktop - Horizontal)
   ========================================= */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--orange);
    color: var(--white);
}

#theme-toggle {
    background: none;
    border: 1px solid var(--orange);
    color: var(--orange);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

#theme-toggle:hover {
    background: var(--orange);
    color: var(--white);
}

/* =========================================
   🌑 OVERLAY (Mobile Sidebar Background)
   ========================================= */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Close button inside sidebar */
.nav-close-btn {
    display: none;
    align-self: flex-end;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px 15px;
    color: var(--white);
    margin-bottom: 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--orange) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.hero-section h2 {
    font-size: 2.8rem;
    color: #FFD180;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.15rem;
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff6ef 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--orange);
}

body.dark-mode .stat-card {
    background: linear-gradient(180deg, #1e1e1e 0%, #2a2a2a 100%);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--red);
}

.stat-card p {
    color: #555;
}

body.dark-mode .stat-card p {
    color: #aaa;
}

/* =========================================
   BRANCH SECTION
   ========================================= */
.branch-section {
    padding: 60px 0;
}

.branch-section h2 {
    text-align: center;
    color: var(--red);
    margin-bottom: 30px;
    font-size: 2rem;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.branch-btn {
    background: var(--bg-card);
    border: 2px solid var(--red);
    color: var(--red);
    padding: 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.branch-btn:hover {
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-color: var(--orange);
    color: var(--white);
    transform: translateY(-5px);
}

.branch-count {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: normal;
}

/* Branch Overview Cards (Home Page) */
.branch-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--red);
}

.branch-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--orange);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.branch-card h3 {
    color: var(--red);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.branch-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

body.dark-mode .branch-stats {
    color: #aaa;
}

/* =========================================
   FILTER SECTION
   ========================================= */
.filter-section {
    background: linear-gradient(180deg, #ffffff 0%, #fff6ef 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

body.dark-mode .filter-section {
    background: linear-gradient(180deg, #1e1e1e 0%, #2a2a2a 100%);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
   padding: 20px;
}

.filter-grid input,
.filter-grid select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: var(--bg-light);
    color: var(--text-dark);
}

/* =========================================
   FAMILY CARDS
   ========================================= */
.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.family-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff6ef 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--orange);
    transition: var(--transition);
}

body.dark-mode .family-card {
    background: linear-gradient(180deg, #1e1e1e 0%, #2a2a2a 100%);
}

.family-card:hover {
    transform: translateY(-5px);
}

.family-card h3 {
    color: var(--red);
    margin-bottom: 10px;
}

.family-card p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.family-card .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: var(--red);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.9rem;
}

.family-card .btn:hover {
    background: var(--orange);
}

/* =========================================
   FAMILY DETAILS
   ========================================= */
.family-details-container {
    background: linear-gradient(180deg, #ffffff 0%, #fff6ef 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

body.dark-mode .family-details-container {
    background: linear-gradient(180deg, #1e1e1e 0%, #2a2a2a 100%);
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: 600;
    color: var(--red);
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.members-table th,
.members-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.members-table th {
    background: var(--red);
    color: var(--white);
}

/* =========================================
   COMMITTEE CARDS
   ========================================= */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.committee-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--orange);
}

.committee-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--orange);
    margin: 0 auto 15px;
}

.committee-card h3 {
    color: var(--red);
    margin-bottom: 5px;
}

.committee-card .designation {
    color: var(--orange);
    font-weight: bold;
    margin-bottom: 10px;
}

.committee-card .detail {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #555;
}

body.dark-mode .committee-card .detail {
    color: #aaa;
}

.committee-card .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =========================================
   BUTTONS
   ========================================= */
.action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--red-dark);
}

.btn-secondary {
    background: var(--orange);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--orange-light);
}

.print-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.print-btn:hover {
    background: var(--red-dark);
}

/* =========================================
   FLOATING BUTTONS
   ========================================= */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--orange);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
    border: none;
    box-shadow: var(--shadow);
}

.scroll-top:hover {
    background: var(--red);
}

.scroll-top.visible {
    opacity: 1;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: var(--shadow);
}

/* =========================================
   🦶 FOOTER (Orange + Red Theme)
   ========================================= */
.main-footer {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3,
.footer-col h4 {
    color: #FFD180;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #FFD180;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* =========================================
   🖨️ PRINT STYLES
   ========================================= */
@media print {
    .no-print,
    header,
    footer,
    .branch-section,
    .filter-section,
    .pagination,
    #theme-toggle,
    .scroll-top,
    .whatsapp-float,
    .action-buttons {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .family-details-container {
        box-shadow: none !important;
        border: 2px solid #000;
        padding: 20px;
        margin: 0;
    }

    .detail-row {
        border-bottom: 1px solid #000;
    }

    .detail-label {
        color: #000;
    }

    .members-table th {
        background-color: #ddd !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }

    .committee-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .family-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}



   /* =========================================
   📱 MOBILE DROPDOWN MENU (Header के नीचे)
   ========================================= */
@media (max-width: 768px) {
    /* Show hamburger button */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Dropdown Container - Full Width, Hidden by default */
    .mobile-dropdown {
        display: none;
        position: absolute;
        top: 100%; /* ठीक header के नीचे */
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Show dropdown when active class is added */
    .mobile-dropdown.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Vertical List */
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
        gap: 0;
    }

    .nav-links li {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 16px 20px;
        font-size: 1.1rem;
        color: var(--white);
        transition: var(--transition);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--orange);
        padding-left: 30px; /* Hover पर थोड़ा slide effect */
    }

    /* Theme Toggle Button in Dropdown */
    #theme-toggle {
        width: 100%;
        padding: 16px 20px;
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 1.1rem;
        text-align: center;
        cursor: pointer;
        transition: var(--transition);
    }

    #theme-toggle:hover {
        background: var(--orange);
    }

    /* Header text adjustment for mobile */
    .org-name h1 {
        font-size: 1.1rem;
    }

    .logo {
        width: 50px;
        height: 50px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .org-name h1 {
        font-size: 0.95rem;
    }
    .logo {
        width: 40px;
        height: 40px;
    }
    .header-content {
        padding: 12px 15px;
    }
}

/* =========================================
   📖 ABOUT PAGE STYLES
   ========================================= */

/* About Hero Banner */
.about-hero {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--orange) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.about-hero h2 {
    font-size: 2.5rem;
    color: #FFD180;
    margin-bottom: 10px;
}

.about-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Breadcrumb */
.breadcrumb {
    margin: 20px 0;
    font-size: 0.95rem;
    color: #666;
    padding: 10px 15px;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--orange);
}

.breadcrumb a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 600;
}

body.dark-mode .breadcrumb {
    background: var(--bg-card);
    color: #ccc;
}

body.dark-mode .breadcrumb .current {
    color: #fff;
}

/* About Cards Grid (History, Mission, Vision) */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.about-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff6ef 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--orange);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.15);
    border-top-color: var(--red);
}

body.dark-mode .about-card {
    background: linear-gradient(180deg, #1e1e1e 0%, #2a2a2a 100%);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    background: linear-gradient(135deg, var(--orange), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.about-card h3 {
    color: var(--red);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 107, 0, 0.2);
}

body.dark-mode .about-card h3 {
    color: var(--orange);
}

.about-card p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

/* Objectives Section */
.objectives-section {
    margin: 50px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(211, 47, 47, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 0, 0.1);
}

body.dark-mode .objectives-section {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08) 0%, rgba(211, 47, 47, 0.08) 100%);
    border-color: rgba(255, 107, 0, 0.2);
}

.section-title {
    text-align: center;
    color: var(--red);
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--red));
    border-radius: 2px;
}

body.dark-mode .section-title {
    color: var(--orange);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.objective-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--orange);
    transition: var(--transition);
}

.objective-item:hover {
    transform: translateX(5px);
    border-left-color: var(--red);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.15);
}

.obj-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(211, 47, 47, 0.1));
    border-radius: 12px;
}

.obj-content h4 {
    color: var(--red);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

body.dark-mode .obj-content h4 {
    color: var(--orange);
}

.obj-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* Call to Action Section */
.about-cta {
    margin: 50px 0;
    padding: 50px 30px;
    background: linear-gradient(135deg, var(--red-dark), var(--red), var(--orange));
    border-radius: 12px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow);
}

.about-cta h3 {
    font-size: 2rem;
    color: #FFD180;
    margin-bottom: 10px;
}

.about-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--red);
}

.cta-buttons .btn-primary:hover {
    background: #FFD180;
    color: var(--red-dark);
    transform: translateY(-3px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--red);
    transform: translateY(-3px);
}

/* =========================================
   📱 ABOUT PAGE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .about-hero {
        padding: 40px 20px;
    }

    .about-hero h2 {
        font-size: 1.8rem;
    }

    .about-hero p {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-card {
        padding: 25px 20px;
    }

    .about-card h3 {
        font-size: 1.3rem;
    }

    .objectives-section {
        padding: 30px 20px;
        margin: 30px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .objective-item {
        padding: 15px;
    }

    .obj-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }

    .obj-content h4 {
        font-size: 1.05rem;
    }

    .about-cta {
        padding: 35px 20px;
        margin: 30px 0;
    }

    .about-cta h3 {
        font-size: 1.5rem;
    }

    .about-cta p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }

    .breadcrumb {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .about-hero h2 {
        font-size: 1.5rem;
    }

    .about-icon {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* Print Styles for About Page */
@media print {
    .about-hero {
        background: white !important;
        color: black !important;
        padding: 20px 0;
        border-bottom: 2px solid #000;
    }

    .about-hero h2 {
        color: black !important;
    }

    .about-card,
    .objective-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .about-cta {
        display: none !important;
    }
}
.branch-btn {
    background: var(--bg-card);
    border: 2px solid var(--saffron);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 300px;
    margin: 0.5rem;
}
.branch-btn:hover {
    background: var(--saffron);
    color: white;
    transform: translateY(-3px);
}
.branch-count {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}
.branch-btn:hover .branch-count {
    color: rgba(255,255,255,0.9);
}

/* 🎯 Compact Committee Grid (10-12 members) */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Denser columns */
    gap: 12px;
}

.committee-card {
    padding: 10px 8px;
    text-align: center;
    background: var(--bg-card, #fff);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.committee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* 🔽 Smaller Image */
.committee-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 6px;
    display: block;
    border: 2px solid var(--saffron, #ff9933);
}

/* 📝 Compact Text */
.committee-card h3 {
    font-size: 0.9rem;
    margin: 4px 0 2px;
    color: var(--dark-blue, #1a237e);
    line-height: 1.2;
}

.committee-card .designation {
    font-size: 0.75rem;
    color: var(--saffron, #ff9933);
    font-weight: 600;
    margin: 2px 0;
}

.committee-card .detail {
    font-size: 0.7rem;
    color: #555;
    margin: 2px 0;
    line-height: 1.3;
}

/* 💬 Compact WhatsApp Button */
.committee-card .whatsapp-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    font-size: 0.7rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.committee-card .whatsapp-btn:hover {
    background: #128C7E;
}

/* 📱 Mobile: Stack in 2 columns */
@media (max-width: 480px) {
    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* 📢 Announcement Modal Styles */
.modal-content {
    animation: modalSlide 0.3s ease-out;
}
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

#ann-status {
    min-height: 24px;
    font-size: 0.95rem;
}

/* Floating Add Button */
#open-ann-modal {
    transition: transform 0.2s, box-shadow 0.2s;
}
#open-ann-modal:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}
#open-ann-modal:active {
    transform: scale(0.95);
}

/* Dark Mode Support */
body.dark-mode .modal-content {
    background: var(--bg-card);
    color: var(--text-dark);
}
body.dark-mode #ann-title,
body.dark-mode #ann-desc,
body.dark-mode #ann-date,
body.dark-mode #ann-link {
    background: #2a2a2a;
    border-color: #444;
    color: var(--text-dark);
}

/* 📢 Modal Transitions */
.modal { transition: opacity 0.2s ease; }
.modal[style*="display: flex"] { animation: modalFadeIn 0.2s; }
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Input Focus States */
#announcement-modal input:focus,
#announcement-modal textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

/* Dark Mode Support */
body.dark-mode #announcement-modal input,
body.dark-mode #announcement-modal textarea {
    background: #2a2a2a;
    border-color: #444;
    color: var(--text-dark);
}
/* 🗑️ Delete Modal Styles */
.announcement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 3px solid var(--orange);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.announcement-item:hover { border-left-color: var(--red); }
.announcement-info { flex: 1; min-width: 0; }
.announcement-title { font-weight: 600; color: var(--red); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announcement-date { font-size: 0.8rem; color: #666; }
.announcement-delete {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s;
}
.announcement-delete:hover { background: #c0392b; }
.announcement-delete:disabled { background: #95a5a6; cursor: not-allowed; }

/* Modal Shared Styles (if not already present) */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { background: var(--bg-card); padding: 25px; border-radius: 12px; width: 90%; max-width: 450px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 1.8rem; color: var(--red); cursor: pointer; }
/* 👥 Committee Member Item (No Photo) */
.committee-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin: 6px 0;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 3px solid var(--orange);
    font-size: 0.9rem;
}
.committee-member-info { flex: 1; min-width: 0; }
.committee-member-name { font-weight: 600; color: var(--red); }
.committee-member-role { font-size: 0.85rem; color: var(--orange); font-weight: 500; }
.committee-member-detail { font-size: 0.8rem; color: #666; margin-top: 2px; }
.committee-member-delete {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 8px;
}
.committee-member-delete:hover { background: #c0392b; }

/* Branch Page Committee Grid (No Photo) */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.committee-card {
    background: var(--bg-card);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--orange);
}
.committee-card h3 {
    color: var(--red);
    font-size: 1.1rem;
    margin: 0 0 5px;
}
.committee-card .designation {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.committee-card .detail {
    font-size: 0.85rem;
    color: #555;
    margin: 4px 0;
}
body.dark-mode .committee-card .detail { color: #aaa; }
.committee-card .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #25D366;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    margin-top: 10px;
    font-size: 0.8rem;
    text-decoration: none;
}
.committee-card .whatsapp-btn:hover { background: #128C7E; }

/* 🏢 Branch Admin Form Styles */

        .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
        .form-grid input, .form-grid select { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; }
        .form-grid label { display: block; margin-bottom: 4px; font-weight: 500; color: var(--dark-blue); }
        .member-row { background: #f8f9fa; padding: 1rem; border-radius: 8px; margin-bottom: 1rem; position: relative; border-left: 4px solid var(--saffron); }
        .remove-member { position: absolute; top: 8px; right: 8px; background: #e74c3c; color: white; border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-size: 1.2rem; line-height: 1; }
        .btn-submit { width: 100%; padding: 14px; background: var(--saffron); color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; margin-top: 1.5rem; transition: background 0.3s; }
        .btn-submit:hover { background: #d35400; }
        .btn-submit:disabled { background: #95a5a6; cursor: not-allowed; }
        .section-title { color: var(--saffron); margin: 1.5rem 0 1rem; display: flex; justify-content: space-between; align-items: center; }
        .checkbox-wrapper { display: flex; align-items: center; gap: 0.5rem; }
        .checkbox-wrapper input { width: auto; }
        
        /* 🔐 Auth Styles */
        #auth-container { max-width: 400px; margin: 3rem auto; padding: 2rem; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); text-align: center; }
        #auth-container input { width: 100%; padding: 10px; margin: 8px 0; border: 1px solid #ddd; border-radius: 6px; }
        #auth-container .btn { width: 100%; padding: 12px; background: var(--dark-blue); color: rgb(255, 255, 255); border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; margin-top: 1rem; }
        #auth-container .btn { background: #1a237e; }
        #auth-error { color: #e74c3c; margin: 10px 0; font-size: 0.9rem; }
      #admin-content { display: block; } /* ✅ Always visible on this page */
        #logout-btn { background: #e74c3c; padding: 8px 16px; border: none; border-radius: 6px; color: white; cursor: pointer; margin-left: 1rem; }
        @media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
    /* =========================================
   📱 admin dashboard
   ========================================= */
   