/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e5f7a; /* Dark teal */
    --secondary-color: #2d7a9f; /* Medium teal */
    --accent-blue: #2563eb; /* Blue for logo */
    --accent-green: #10b981; /* Green for logo */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #e6f2f8; /* Light blue */
    --border-color: #e2e8f0;
    --teal-dark: #0f4c5c; /* Dark teal for banners */
    --nav-bg: #d9eef5;
    --nav-text: #0f4c5c;
    --nav-text-muted: #1e5f7a;
    --logo-teal: #005a5b;
    --nav-cta: #4a8585;
    --nav-cta-hover: #3d7171;
    --nav-cta-rgb: 74, 133, 133;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --nav-shadow: 0 2px 8px rgba(15, 76, 92, 0.08);
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Main headings ??? unified serif family */
main h1,
main h2,
main h3.community-title,
.hero-slide-title,
.home-blog-title,
.hs-title,
.vm-heading,
.section-title,
.section-heading,
.page-title {
    font-family: var(--font-heading);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--nav-bg);
    box-shadow: var(--nav-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.125rem 0;
    gap: 1.5rem;
}

.logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    display: block;
    height: 64px;
    width: auto;
    max-width: 220px;
    min-width: 140px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: left center;
}

.header-nav-group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
    transition: color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--nav-cta);
    opacity: 1;
}

.main-nav a.active {
    font-weight: 500;
}

/* About Us dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    color: var(--nav-text);
    font-family: inherit;
    font-weight: 400;
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-active .nav-dropdown-toggle {
    color: var(--nav-cta);
    opacity: 1;
}

.nav-dropdown.is-active .nav-dropdown-toggle {
    font-weight: 500;
}

.nav-dropdown-icon {
    font-size: 0.625rem;
    transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 220px;
    margin: 0;
    padding: 0.625rem 0 0.5rem;
    list-style: none;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
}

/* Invisible bridge so hover is not lost between toggle and menu */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.625rem;
    background: transparent;
}

.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #ffffff;
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.04);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-menu li {
    width: 100%;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.625rem 1.25rem;
    color: #1a1f24 !important;
    font-size: 0.875rem;
    opacity: 1 !important;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.nav-dropdown-menu a:hover {
    background: rgba(var(--nav-cta-rgb, 74, 133, 133), 0.1);
    color: var(--nav-cta, #4a8585) !important;
}

.nav-dropdown-menu a.active {
    color: var(--nav-cta, #4a8585) !important;
    font-weight: 600;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    background: var(--nav-cta);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    border-radius: 9999px;
    white-space: nowrap;
    transition: background 0.2s ease;
    flex-shrink: 0;
    border: none;
    outline: none;
    box-shadow: none;
}

.nav-cta-btn:hover,
.nav-cta-btn:focus,
.nav-cta-btn.is-active {
    background: var(--nav-cta-hover);
    color: #ffffff;
    border: none;
    outline: none;
    box-shadow: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--nav-text);
    padding: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--teal-dark);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.blog-listing-section {
    padding: 3rem 0 5rem;
    background: #f8fafb;
}

.blog-listing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: -1rem 0 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: var(--teal-dark);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    margin-bottom: 0.5rem;
}

.blog-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--teal-dark);
    text-decoration: none;
    font-weight: 500;
}

/* Membership Page */
.membership-page {
    padding: 3rem 0;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.membership-plans {
    margin-bottom: 3rem;
}

.membership-plans h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.plan-card:hover,
.plan-card.selected {
    border-color: var(--teal-dark);
    box-shadow: var(--shadow-lg);
}

.plan-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--teal-dark);
    margin-bottom: 0.5rem;
}

.plan-duration {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.registration-form-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.membership-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.required {
    color: var(--danger-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal-dark);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Single Post */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.single-post h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.post-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
}

.post-content {
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.post-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.tag {
    display: inline-block;
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    margin: 0.25rem;
    font-size: 0.875rem;
}

/* Footer */
.main-footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .header-nav-group {
        gap: 1.25rem;
    }

    .main-nav > ul {
        gap: 1.25rem;
    }

    .nav-cta-btn {
        font-size: 0.75rem;
        padding: 0.45rem 1rem;
    }
}

@media (max-width: 768px) {
    .header-nav-group {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--nav-bg);
        padding: 1rem 1.25rem 1.25rem;
        box-shadow: var(--nav-shadow);
        border-top: 1px solid rgba(15, 76, 92, 0.12);
    }

    .header-nav-group.is-open {
        display: flex;
    }

    .main-header .container {
        position: relative;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(15, 76, 92, 0.1);
    }

    .main-nav a {
        display: block;
        padding: 0.875rem 0;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.875rem 0;
        font-size: 0.9375rem;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0.5rem 1rem;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, visibility 0.25s ease;
        pointer-events: none;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        visibility: visible;
        max-height: 280px;
        pointer-events: auto;
    }

    .nav-dropdown-menu a {
        color: var(--nav-text-muted) !important;
        padding: 0.5rem 0;
        font-size: 0.875rem;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a.active {
        background: transparent;
        color: var(--nav-cta) !important;
        opacity: 1 !important;
    }

    .nav-cta-btn {
        width: 100%;
        margin-top: 1rem;
        text-align: center;
        white-space: normal;
        line-height: 1.4;
        padding: 0.75rem 1.25rem;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Admin Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar a {
    display: block;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-sidebar-group {
    list-style: none;
}

.admin-sidebar-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-sidebar-group-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-sidebar-chevron {
    font-size: 0.7rem;
    opacity: 0.75;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.admin-sidebar-group.is-open > .admin-sidebar-group-toggle > .admin-sidebar-chevron,
.admin-sidebar-nested-group.is-open > .admin-sidebar-nested-toggle > .admin-sidebar-chevron {
    transform: rotate(180deg);
}

.admin-sidebar-group.is-active .admin-sidebar-group-toggle,
.admin-sidebar-group-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-sidebar-submenu {
    list-style: none;
    display: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.15);
}

.admin-sidebar-group.is-open .admin-sidebar-submenu {
    display: block;
}

.admin-sidebar-submenu a {
    padding: 0.75rem 2rem 0.75rem 2.75rem;
    font-size: 0.9rem;
}

.admin-sidebar-submenu a i {
    width: 1.1rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.admin-sidebar-nested-group {
    list-style: none;
}

.admin-sidebar-nested-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 0.45rem;
    padding: 0.75rem 1.15rem 0.75rem 2.75rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.admin-sidebar-nested-toggle:hover,
.admin-sidebar-nested-group.is-active > .admin-sidebar-nested-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-sidebar-nested-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.admin-sidebar-nested-label > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-sidebar-nested-label i {
    width: 1.15rem;
    font-size: 0.85rem;
    text-align: center;
    flex: 0 0 1.15rem;
    opacity: 0.85;
}

.admin-sidebar-nested-toggle > .admin-sidebar-chevron {
    margin-left: auto;
    flex: 0 0 auto;
}

.admin-sidebar-nested-submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-sidebar-nested-group.is-open > .admin-sidebar-nested-submenu {
    display: block;
}

.admin-sidebar-nested-submenu a {
    padding: 0.65rem 1.25rem 0.65rem 3.85rem;
    font-size: 0.85rem;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-light);
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-light);
    font-weight: 600;
}

.admin-table-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.admin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    color: #475569;
    background: #f1f5f9;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.admin-icon-btn:hover {
    transform: translateY(-1px);
}

.admin-icon-btn--edit:hover {
    background: rgba(74, 133, 133, 0.15);
    color: var(--nav-cta, #4a8585);
}

.admin-icon-btn--delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.admin-icon-btn--view:hover,
.admin-icon-btn--muted:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.admin-icon-btn i {
    font-size: 0.875rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--teal-dark);
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
    display: none; /* Hidden by default */
}

.cookie-consent.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent.hidden {
    display: none !important;
}

.cookie-consent h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: white;
}

.cookie-consent p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-consent-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-consent-btn.decline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn.decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-consent-btn.accept {
    background: white;
    color: var(--teal-dark);
    border: 1px solid white;
}

.cookie-consent-btn.accept:hover {
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Vision & Objectives ??? staggered pill layout */
.vision-objectives-section {
    padding: 5rem 0;
    background: #ffffff;
    overflow: hidden;
}

.vm-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
    align-items: start;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 520px;
}

.vm-panel {
    background: var(--nav-cta, #4a8585);
    color: #ffffff;
    text-align: center;
    padding: 2.75rem 2.25rem;
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.vm-panel-vision {
    justify-self: start;
    border-radius: 0 999px 999px 0;
    padding-right: 4.5rem;
    margin-right: -3.5rem;
    margin-top: 0.5rem;
}

.vm-panel-objectives {
    justify-self: end;
    border-radius: 999px 0 0 999px;
    padding-left: 4.5rem;
    margin-left: -3.5rem;
    margin-top: 7rem;
}

.vm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: #e66c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
}

.vm-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    color: #ffffff;
}

.vm-text {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    margin: 0;
}

.vm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.vm-list li {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.92);
    padding: 0.15rem 0;
}

.vm-center {
    position: relative;
    z-index: 2;
    padding: 1rem 0;
    align-self: center;
    width: 300px;
    min-height: 440px;
}

.vm-pill {
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.vm-pill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(230, 108, 44, 0) 35%, rgba(230, 108, 44, 0.55) 100%);
    pointer-events: none;
}

.vm-pill img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vm-pill-vision {
    width: 260px;
    height: 400px;
    margin: 0 auto;
}

.vm-pill-objectives {
    width: 200px;
    height: 280px;
    position: absolute;
    right: -2.5rem;
    bottom: -1rem;
    z-index: 3;
}

/* Shared section headings (other pages) */
.section-heading {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 300;
}

@media (max-width: 1099px) {
    .vm-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }

    .vm-panel {
        max-width: none;
        margin: 0 !important;
        border-radius: 1.5rem !important;
        padding: 2.5rem 2rem !important;
    }

    .vm-panel-objectives {
        margin-top: 0;
    }

    .vm-center {
        order: -1;
        width: auto;
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .vm-pill-vision {
        width: 220px;
        height: 340px;
    }

    .vm-pill-objectives {
        position: static;
        width: 180px;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .vision-objectives-section {
        padding: 3rem 0;
    }

    .vm-heading {
        font-size: 1.65rem;
    }

    .vm-pill-vision {
        width: 200px;
        height: 300px;
    }

    .vm-pill-objectives {
        width: 160px;
        height: 220px;
    }
}

/* History Section ??? timeline layout */
.history-section {
    padding: 4rem 0 0;
    background: #f3f4f6;
    overflow: hidden;
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 320px;
    background: radial-gradient(ellipse 70% 80% at 85% 10%, rgba(230, 108, 31, 0.05) 0%, transparent 65%);
    pointer-events: none;
}

.history-section .container {
    position: relative;
    z-index: 1;
}

.hs-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto 2.5rem;
    padding: 0 0 1rem;
}

.hs-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

.hs-header-media {
    display: flex;
    justify-content: flex-end;
}

.hs-pill-media {
    width: min(100%, 420px);
    height: 120px;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hs-pill-img {
    overflow: hidden;
}

.hs-pill-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(15%);
}

.hs-pill-accent {
    background: linear-gradient(90deg, rgba(230, 108, 31, 0.35) 0%, #e66c1f 100%);
}

.hs-timeline {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 0 0.5rem;
}

.hs-milestones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 2;
    padding-bottom: 0.5rem;
}

.hs-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hs-year-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.75rem;
}

.hs-arc {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-65%);
    width: 52px;
    height: 28px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-left-color: currentColor;
    border-radius: 100% 0 0 0;
    opacity: 0.85;
}

.hs-milestone:nth-child(odd) .hs-arc {
    color: #5a6f8d;
}

.hs-milestone:nth-child(even) .hs-arc {
    color: #e66c1f;
}

.hs-year {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.hs-year-navy {
    background: #5a6f8d;
}

.hs-year-orange {
    background: #e66c1f;
    font-size: 1.1rem;
}

.hs-stem {
    width: 2px;
    height: 28px;
    background: #d1d5db;
    margin-top: 0.25rem;
}

.hs-axis {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(96px + 2.5rem);
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.hs-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: -7px;
    position: relative;
    z-index: 3;
    box-shadow: 0 0 0 3px #ffffff;
}

.hs-node-navy {
    background: #5a6f8d;
}

.hs-node-orange {
    background: #e66c1f;
}

.hs-content-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: #eaf1f7;
    margin-top: 2rem;
    padding: 2.25rem 2rem 2.5rem;
    position: relative;
    border-radius: 0.75rem 0.75rem 0 0;
    box-shadow: 0 -4px 24px rgba(90, 111, 141, 0.14);
}

.hs-content-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5a6f8d 0%, #e66c1f 50%, #5a6f8d 100%);
    opacity: 0.35;
}

.hs-desc {
    padding: 0 0.5rem;
    border-right: 1px solid rgba(90, 111, 141, 0.2);
}

.hs-desc:last-child {
    border-right: none;
}

.hs-desc p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #334155;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 992px) {
    .hs-header {
        grid-template-columns: 1fr;
    }

    .hs-header-media {
        justify-content: flex-start;
    }

    .hs-milestones {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2rem;
    }

    .hs-content-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .hs-desc:nth-child(2) {
        border-right: none;
    }

    .hs-axis {
        display: none;
    }
}

@media (max-width: 576px) {
    .history-section {
        padding: 3rem 0 0;
    }

    .hs-milestones {
        grid-template-columns: 1fr;
    }

    .hs-content-bar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.75rem 1.25rem;
    }

    .hs-desc {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1.25rem;
    }

    .hs-desc:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hs-year {
        width: 80px;
        height: 80px;
        font-size: 1.1rem;
    }

    .hs-pill-media {
        height: 100px;
    }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Scrolling Banner */
.scrolling-banner {
    background: linear-gradient(90deg, #1a1f24 0%, #243040 35%, #1e4a5c 65%, #1a1f24 100%);
    padding: 1.125rem 0;
    overflow: hidden;
    position: relative;
    border-top: 3px solid var(--nav-cta, #0dbcd3);
    border-bottom: 3px solid #e66c1f;
}

.scrolling-banner::before,
.scrolling-banner::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.scrolling-banner::before {
    left: 0;
    background: linear-gradient(90deg, #1a1f24 15%, transparent);
}

.scrolling-banner::after {
    right: 0;
    background: linear-gradient(270deg, #1a1f24 15%, transparent);
}

.scrolling-banner-track {
    display: flex;
    width: max-content;
    animation: banner-scroll 40s linear infinite;
}

.scrolling-banner:hover .scrolling-banner-track {
    animation-play-state: paused;
}

.banner-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.banner-text {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 3rem;
    white-space: nowrap;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.banner-highlight {
    color: var(--nav-cta, #0dbcd3);
    font-weight: 700;
}

.banner-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 1.25rem;
    color: #e66c1f;
    font-size: 0.75rem;
    opacity: 0.95;
}

.banner-message {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.8vw, 1.05rem);
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.01em;
}

@keyframes banner-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* TMA Communities Section */
.tma-communities-section {
    padding: 4.5rem 0;
    background: #ffffff;
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.community-card {
    height: 100%;
}

.community-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.community-card-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06), 0 20px 40px rgba(15, 23, 42, 0.1);
}

.community-card--women .community-card-inner {
    border-top: 4px solid var(--nav-cta, #0dbcd3);
}

.community-card--nextgen .community-card-inner {
    border-top: 4px solid #f97316;
}

.community-brand {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
}

.community-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.community-card--women .community-icon {
    background: rgba(var(--nav-cta-rgb), 0.15);
    color: var(--nav-cta, #0dbcd3);
}

.community-card--nextgen .community-icon {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

.community-logo {
    margin-bottom: 0;
}

.logo-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: lowercase;
    margin-bottom: 0.35rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.logo-main {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    text-transform: lowercase;
    letter-spacing: -0.04em;
}

.logo-part-gray {
    color: #6b7280;
}

.logo-part-purple {
    color: var(--nav-cta, #0dbcd3);
}

.logo-part-orange {
    color: #f97316;
}

.community-content {
    flex: 1;
    padding: 1.75rem 2rem 2.25rem;
    text-align: center;
    background: #ffffff;
}

.community-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.community-card--women .community-title {
    color: var(--primary-color, #1e5f7a);
}

.community-card--nextgen .community-title {
    color: #c2410c;
}

.community-description {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #4b5563;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

/* Responsive for Communities */
@media (max-width: 968px) {
    .communities-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        max-width: 520px;
    }

    .logo-main {
        font-size: 2.5rem;
    }

    .banner-text {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .banner-text {
        padding: 0 1.5rem;
    }

    .banner-sep {
        margin: 0 0.75rem;
    }

    .scrolling-banner::before,
    .scrolling-banner::after {
        width: 48px;
    }
    
    .logo-main {
        font-size: 2rem;
    }
}



