/* General Styles */
body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* New Header Styles */
.site-header {
    background: linear-gradient(to right, #FF9933, #FFFFFF, #138808);
    color: #000;
    padding: 10px 20px;
    position: relative;
    border-bottom: 5px solid #000080;
}

.language-switcher {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
}

.language-switcher a {
    color: #000080;
    background-color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    border: 1px solid #000080;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.language-switcher a:hover {
    background-color: #000080;
    color: white;
}

.leader-images {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px;
}

.leader-images img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #000080;
    object-fit: cover;
}

.leader-images .ahilya-bai-img {
    width: 80px; /* Larger size */
    height: 80px;
    border-width: 3px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 10px 0;
    gap: 20px;
}

.header-logo-left {
    display: flex;
    align-items: center;
    padding-right: 20px;
}

.header-logo-left .header-logo {
    width: 130px;
    height: auto;
}

.header-text {
    flex-grow: 1;
}

.main-title {
    color: #000080; /* Blue color for the text */
    font-size: 2.8em;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.sub-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 5px 0;
    color: #333;
}

.title-hr {
    border: 0;
    height: 2px;
    background-color: #000080;
    margin: 10px auto;
    width: 80%;
}

.contact-info, .address {
    margin: 5px 0;
    font-size: 1em;
    color: #000;
    font-weight: 500;
}

.header-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
}

.header-logo {
    width: 130px; /* Increased logo size */
    height: auto;
}

.reg-text {
    margin-top: 5px;
    font-weight: bold;
    color: #000;
}

/* New Navigation Bar Styles */
.main-navbar {
    background-color: #000080; /* Navy blue */
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links li {
    margin: 5px 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.nav-links a:hover, .nav-links a.active {
    background-color: white;
    color: #000080;
}

.nav-toggle {
    display: none; /* Hidden by default */
    color: white;
    font-size: 2em;
    cursor: pointer;
    text-align: center;
}

/* Marquee */
.marquee {
    width: 100%;
    background-color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.marquee p {
    display: inline-block;
    padding-left: 100%;
    margin: 0;
    animation: marquee-scroll 45s linear infinite;
}

.marquee a {
    color: #000080; /* Blue color for links */
    text-decoration: none;
    font-weight: 600;
}

.marquee a:hover {
    text-decoration: underline;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Main Content */
main {
    padding: 20px 0;
}

.about-section, .contact-form-section, .join-form-section {
    text-align: center;
    padding: 20px 0;
}

.welcome-section {
    text-align: center;
    padding: 0px 10px 10px 10px;
    background: transparent;
    color: #333333;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 25px;
    box-shadow: none;
    border: none;
}

.welcome-section h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #000080; /* Navy blue welcome text */
}

.welcome-section p {
    font-size: 1.15em;
    color: #555555;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-section .btn {
    background-color: #FF9933;
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 1.05em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 153, 51, 0.3);
    transition: background-color 0.3s, transform 0.2s;
}

.welcome-section .btn:hover {
    background-color: #e07b12;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 153, 51, 0.5);
}

.btn {
    background-color: #000080; /* Blue */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #0000CD; /* MediumBlue */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Slider Section */
.slider-section {
    position: relative;
    width: 100%;
    max-width: 90%;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 1.8em;
    z-index: 100;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Gallery Section */
.gallery-section {
    padding: 20px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 25px;
    margin-top: 20px;
}

.gallery-item {
    margin: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 10px 12px;
    color: #333;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.4;
    background: #fff;
    text-align: left;
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 10px;
    text-align: left;
    box-sizing: border-box;
}

.news-section .card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

footer {
    text-align: center;
    background: linear-gradient(to right, #FF9933, #FFFFFF, #138808);
    border-top: 5px solid #000080;
    color: #000000;
    margin-top: 30px;
}

/* Form Specific Styles (for joinus.html and contact.html) */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

/* --- Team Display Styles (Premium and Interactive Table) --- */
.team-results-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.team-results-table th, .team-results-table td {
    padding: 14px 16px;
    text-align: left;
    transition: all 0.2s ease;
}

.team-results-table th {
    background-color: #000080;
    color: white;
    font-weight: 600;
    font-size: 0.95em;
    border-bottom: 3px solid #FF9933;
}

.team-results-table td {
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 0.92em;
}

.team-results-table tbody tr:last-child td {
    border-bottom: none;
}

.team-results-table tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

.team-results-table tbody tr {
    transition: background-color 0.2s ease;
}

.team-results-table tbody tr:hover {
    background-color: #f1f3f9;
}


/* --- National Core Team Card Styles --- */
.team-display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.team-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.member-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    width: 280px; /* Fixed width for cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.member-image-container {
    width: 100%;
    height: 250px; /* Fixed height for image container */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.member-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image cover the area without distortion */
}

.member-details {
    text-align: left;
}

.member-details h3 {
    margin: 0 0 5px 0;
    color: #000080;
    font-size: 1.2em;
}

.member-details p {
    margin: 3px 0;
    color: #333;
    font-size: 0.95em;
}

.member-details .position {
    font-weight: bold;
    color: #000;
}


/* --- Responsive Styles --- */
@media (max-width: 1200px) {
    .main-title { font-size: 2.4em; }
    .header-logo { width: 130px; }
}

@media (max-width: 992px) {
    .header-main {
        flex-direction: column-reverse; /* Stack logo, then text, then members */
        gap: 15px;
    }
    .header-logo-container {
        padding: 10px 0 0 0;
    }
    .header-side-members {
        flex-direction: row; /* Side by side on smaller screens */
        justify-content: center;
        margin-top: 10px;
        gap: 20px;
    }
    .main-title {
        font-size: 2em;
    }
    .nav-toggle {
        display: block; /* Show hamburger menu icon */
    }
    .main-navbar {
        padding-top: 0;
    }
    .nav-links {
        display: none; /* Hide nav links by default */
        flex-direction: column;
        width: 100%;
    }
    .nav-links.nav-active {
        display: flex; /* Show nav links when toggled */
    }
    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .leader-images {
        display: none; /* Hide leader images on mobile */
    }
    .main-title {
        font-size: 1.8em;
    }
    .sub-title {
        font-size: 1em;
    }
    .contact-info, .address {
        font-size: 0.9em;
    }
    .header-logo {
        width: 110px;
    }
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    .language-switcher a {
        padding: 4px 8px;
        font-size: 0.9em;
    }
    .header-side-members {
        gap: 10px;
    }
    .side-member-card img {
        width: 70px;
    }
    .slide {
        max-height: 60vh; /* **ADJUSTED** for smaller screens */
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5em;
    }
    .sub-title {
        font-size: 0.9em;
    }
    .header-side-members {
        flex-direction: column;
    }
    .side-member-card img {
        width: 60px;
    }
    .contact-info, .address {
        font-size: 0.8em;
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .slide {
        max-height: 50vh; /* **ADJUSTED** for very small screens */
        aspect-ratio: 16 / 9;
    }
}

/* --- Form Layout & Modal Styles --- */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    min-width: 240px;
    margin-bottom: 0;
}

.gender-group {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px 0;
}

.gender-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    cursor: pointer;
}

.gender-group input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.purpose-note {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 5px;
    text-align: left;
}

/* Custom Modal Popups */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.custom-modal.show {
    display: flex;
}

.custom-modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: customModalSlideIn 0.3s ease-out;
    text-align: left;
    box-sizing: border-box;
}

@keyframes customModalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.custom-modal-header {
    border-bottom: 2px solid #000080;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-header h3 {
    margin: 0;
    color: #000080;
    font-size: 1.5em;
    font-weight: bold;
}

.custom-modal-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.custom-modal-close-btn:hover {
    color: #000;
}

.custom-modal-body {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.6;
}

.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.terms-list {
    padding-left: 20px;
    margin: 10px 0;
}

.terms-list li {
    margin-bottom: 10px;
}

.app-id-display {
    background-color: #f1f3f9;
    border: 2px dashed #000080;
    color: #000080;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    letter-spacing: 1px;
}

/* --- Admin Panel Dashboard Styles --- */
.admin-dashboard {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
    align-items: start;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .admin-dashboard {
        grid-template-columns: 1fr;
    }
}

.admin-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.request-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.loading {
    text-align: center;
    padding: 20px;
    font-weight: 500;
    color: #666;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9em;
    min-width: 250px;
}

.excel-btn {
    background-color: #138808;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.excel-btn:hover {
    background-color: #0f6c06;
}

/* --- Social Connect Section --- */
.social-connect-section {
    margin-top: 40px;
    margin-bottom: 20px;
}

.social-connect-section h3 {
    font-size: 1.3em;
    color: #000080;
    margin-bottom: 15px;
    font-weight: 600;
}

.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 15px;
}

.social-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.social-icon-wrapper {
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.fb-icon { color: #1877F2 !important; }
.tw-icon { color: #000000 !important; }
.insta-icon { color: #E1306C !important; }
.telegram-icon { color: #0088cc !important; }
.wa-icon { color: #25d366 !important; }

.card-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Facebook Dropdown Menu Styles */
.fb-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    margin-top: 5px;
    overflow: hidden;
    box-sizing: border-box;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fb-dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333333 !important;
    font-size: 0.88em;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s, color 0.2s;
    text-align: left;
}

.fb-dropdown-item:last-child {
    border-bottom: none;
}

.fb-dropdown-item i {
    color: #1877F2;
    font-size: 1.1em;
}

.fb-dropdown-item:hover {
    background-color: rgba(24, 119, 242, 0.08) !important;
    color: #1877F2 !important;
}

.card-title {
    font-weight: 600;
    font-size: 0.9em;
}

.card-subtitle {
    font-size: 0.7em;
    color: #666666;
}

/* --- Main Footer Section --- */
.main-footer {
    background: linear-gradient(to right, #FF9933, #FFFFFF, #138808);
    border-top: 5px solid #000080;
    color: #000000;
    padding: 40px 0 20px 0;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: #000080;
    font-size: 1.1em;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #000080;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-links ul li {
    margin-bottom: 10px;
}

.footer-col-links ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.2s;
}

.footer-col-links ul li a:hover {
    color: #000080;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    border-radius: 50%;
    color: #000000;
    font-size: 1.1em;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.footer-social-icon:hover {
    transform: scale(1.1);
}

.footer-social-icon.fb:hover { background-color: #1877F2; color: #fff; }
.footer-social-icon.insta:hover { background-color: #E1306C; color: #fff; }
.footer-social-icon.tw:hover { background-color: #000000; color: #fff; }
.footer-social-icon.telegram:hover { background-color: #0088cc; color: #fff; }
.footer-social-icon.wa:hover { background-color: #25d366; color: #fff; }

.footer-contact-details p {
    margin: 10px 0;
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.footer-contact-details i {
    color: #000080;
    font-size: 1.1em;
}

.footer-form input, .footer-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 0.9em;
    font-family: inherit;
    box-sizing: border-box;
    background: #ffffff;
}

.btn-footer-submit {
    background-color: #000080;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-footer-submit:hover {
    background-color: #0000CD;
}

/* --- Footer Bottom Bar --- */
.footer-divider {
    border: 0;
    height: 1px;
    background-color: rgba(0, 0, 80, 0.2);
    margin: 25px 0 15px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    font-size: 0.9em;
    color: #000000;
    margin: 0;
}

.dev-contact-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dev-text {
    font-size: 0.85em;
    color: #000000;
    font-weight: 500;
}

.btn-whatsapp-dev {
    background-color: #25d366;
    color: white !important;
    text-decoration: none;
    font-size: 0.85em;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.btn-whatsapp-dev:hover {
    background-color: #1ebe57;
}

@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    .dev-contact-container {
        justify-content: center;
    }
}

/* --- Admin Panel Tab Layout & Styling --- */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    border-bottom: 2px solid #000080;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: #f1f3f9;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    background-color: #e2e8f0;
    color: #000080;
}

.tab-btn.active {
    background-color: #000080;
    color: white;
    border-color: #000080;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-btn .badge {
    background-color: #FF9933;
    color: white;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 15px;
    text-align: center;
}

.admin-grid-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.gallery-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-card-admin {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: #fff;
}

.gallery-card-admin img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.gallery-card-admin .delete-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
}

.news-card-admin, .event-card-admin {
    display: flex;
    gap: 20px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.news-card-admin img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

/* Force bold tags in Quill and Modals to render as bold */
.ql-editor strong, 
.ql-editor b, 
#modalNewsDesc strong, 
#modalNewsDesc b,
.news-grid-card strong,
.news-grid-card b {
    font-weight: 700 !important;
}

/* --- Homepage Split Layout & Responsive Custom CSS --- */
.homepage-split-container {
    display: grid;
    grid-template-columns: 1.7fr 1.3fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Custom Scrollbar for Vertical News Feed */
.vertical-news-feed::-webkit-scrollbar {
    width: 6px;
}
.vertical-news-feed::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.vertical-news-feed::-webkit-scrollbar-thumb {
    background: #000080;
    border-radius: 4px;
}
.vertical-news-feed::-webkit-scrollbar-thumb:hover {
    background: #000060;
}

/* Custom Scrollbar for Horizontal Members Carousel Slider */
.members-carousel-container::-webkit-scrollbar {
    height: 8px;
}
.members-carousel-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.members-carousel-container::-webkit-scrollbar-thumb {
    background: #FF9933;
    border-radius: 4px;
}
.members-carousel-container::-webkit-scrollbar-thumb:hover {
    background: #e08820;
}

/* Leader Cards CSS */
.leader-profile-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.leader-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09) !important;
}

/* Double Team Carousels - Member Cards */
.carousel-member-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}
.carousel-member-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Grievance Complaint & Donation Forms Layout */
.donors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Team directory responsive card grid */
.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.member-card-new {
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

/* Newly Appointed Officers Carousel Styles & 3-Column Grid */
.unified-sliders-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.sliders-3col-grid {
    display: grid;
    grid-template-columns: 1fr 2.2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.col-slider {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    box-sizing: border-box;
    min-width: 0; /* Prevents grid column stretching from carousel tracks */
}

.column-slider-title {
    text-align: center;
    color: #000080;
    margin: 0 0 15px 0;
    font-size: 1.15em;
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Set equal height for slider tracks */
.officers-carousel-inner-box, .gallery-carousel-outer {
    height: 380px; /* Fixed height for all three slider tracks */
    box-sizing: border-box;
}

.officers-carousel-outer {
    width: 100%;
    margin: 0 auto;
}

.officers-carousel-inner-box {
    background-color: #000080; /* Dark Navy Blue */
    border-radius: 10px;
    padding: 25px 15px 15px 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.officers-carousel-track-container {
    width: 100%;
    overflow: hidden;
}

.officers-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.officer-slide-card {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.officer-photo-wrapper {
    width: 150px;
    height: 150px;
    border: 4px solid #ffffff; /* Solid white border */
    border-radius: 4px;
    background-color: #f0f0f0;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.officer-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.officer-info {
    color: #ffffff; /* White text */
}

.officer-name {
    margin: 5px 0;
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.officer-position {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Slide arrows inside the card */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 1.2em;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}

.carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

/* Indicators */
.carousel-indicators {
    display: none !important;
}

.carousel-indicator-bar {
    width: 22px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s, width 0.3s;
}

.carousel-indicator-bar.active {
    background-color: #ffffff;
    width: 30px;
}

.carousel-view-all {
    text-align: center;
    margin-top: 15px;
}

.carousel-view-all a {
    color: #000080;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05em;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.carousel-view-all a:hover {
    color: #0000CD;
    border-bottom-color: #0000CD;
}

/* Center Gallery Slider Styles */
.gallery-carousel-outer {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: #000; /* Black background for photos */
}

.gallery-carousel-track-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.gallery-slide-card {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-slide-card img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.gallery-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 10px 15px;
    font-size: 0.88em;
    text-align: center;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    font-size: 1.4em;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.08);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

/* Gallery Indicators */
.gallery-indicators {
    display: none !important;
}

.gallery-indicator-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.gallery-indicator-dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .homepage-split-container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .donors-grid {
        grid-template-columns: 1fr !important;
    }
    .header-main {
        flex-direction: column;
        gap: 15px;
    }
    .header-logo-left {
        padding-right: 0;
    }
    .sliders-3col-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .center-gallery-col {
        order: -1; /* Put gallery at the top on tablet/mobile! */
    }
}

@media (max-width: 600px) {
    .leader-profile-card {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }
    .leader-profile-card div {
        text-align: center !important;
    }
    .officers-carousel-outer {
        max-width: 100%;
        padding: 0;
    }
    .officer-photo-wrapper {
        width: 150px;
        height: 150px;
    }
}



