/* ==========================================================
   IMPACT & LEGACY COLLECTIVE
   Professional Stylesheet (deduplicated)
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --primary: #5B1220;
    --primary-dark: #48101A;
    --gold: #F0D27F;
    --cream: #F8F6F1;
    --white: #FFFFFF;
    --text: #222222;
    --grey: #4A3F3D;
    --radius: 18px;
    --shadow: 0 15px 40px rgba(0,0,0,.12);
    --transition: .35s;
}

/* ========================= BASE / COMPONENT RULES ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color .3s ease,
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins',sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    transition: transform .4s ease;
}

a {
    text-decoration: none;
}

section,
.content-section {
    padding: 70px 0;
}

.custom-navbar {
    background: var(--primary);
    height: 100px;
    padding: 0 40px;
    transition: background-color .3s, box-shadow .3s;
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
    width: 100%;
    overflow: visible;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    width: 69px;
    margin-right: 15px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    color: white;
    font-size: clamp(22px, .75vw + 19px, 30px);
    font-family: 'Playfair Display',serif;
    font-weight: 700;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu {
    margin: 0 15px !important;
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu .nav-item {
    margin: 0 1px;
    white-space: nowrap;
}

.nav-menu .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14.5px;
    transition: .3s;
    padding: 8px 6px;
    display: inline-block;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu .nav-link:hover {
    color: #d4af37 !important;
}

.nav-menu .nav-link.active {
    color: #d4af37 !important;
    border-bottom: 2px solid #d4af37;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-login-btn {
    border: 2px solid white;
    color: white;
    padding: 8px 12px;
    border-radius: 50px;
    transition: .3s;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.nav-login-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,.18);
}

.nav-apply-btn {
    background: #F0D27F !important;
    color: #5B1220 !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-weight: 700;
    transition: background-color .3s ease,
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
    display: inline-block !important;
    background-color: #D4AF37 !important;
    text-decoration: none !important;
    white-space: nowrap;
    border: none !important;
    box-shadow: none;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
}

.nav-apply-btn:hover {
    background: #D4AF37 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    background-color: #c19b2e !important;
    color: #FFFFFF !important;
}

.hero {
    margin-top: 0;
    overflow: hidden;
}

.hero-row {
    min-height: 620px;
}

.hero-left {
    background: var(--primary);
    display: flex;
    align-items: center;
    padding: 70px;
}

.hero-content {
    max-width: 700px;
}

.hero-right,
body.template-2 .hero-right,
body.template-3 .hero-right {
    background: var(--cream);
}

.hero-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 700;
    margin-bottom: 35px;
}

.hero h1 {
    color: white;
    font-family: 'Playfair Display',serif;
    font-size: clamp(28px, 3.4vw + 15px, 64px);
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero p {
    color: white;
    font-size: 20px;
    line-height: 1.9;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-primary-btn {
    background: #F0D27F !important;
    color: #5B1220 !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    font-weight: 700;
    transition: background-color .3s ease,
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
    display: inline-block !important;
    border: none !important;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    min-width: 0;
}

.hero-primary-btn:hover,
.section-btn:hover,
.cta-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    background: #D4AF37 !important;
    color: #FFFFFF !important;
}

.hero-secondary-btn {
    border: none !important;
    color: #5B1220 !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    transition: background-color .3s ease,
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
    display: inline-block !important;
    background: #F0D27F !important;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    min-width: 0;
}

.hero-secondary-btn:hover {
    background: #D4AF37 !important;
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    background: #F1E4B8;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.gold-label {
    background: rgba(212,175,55,.15);
    color: #D4AF37;
}

.section-title h2 {
    font-family: 'Playfair Display',serif;
    font-size: clamp(26px, 1.5vw + 20px, 42px);
    color: var(--primary);
    margin-bottom: 25px;
}

.light-title h2 {
    color: white;
}

.section-title p {
    max-width: 760px;
    margin: auto;
    color: var(--grey);
    font-size: 18px;
    line-height: 1.9;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    transition: all .35s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    border-top: 5px solid transparent;
}

.info-card:hover {
    transform: translateY(-10px);
    border-top: 5px solid var(--gold);
    box-shadow: 0 25px 45px rgba(0,0,0,.15);
}

.card-icon {
    width: 75px;
    height: 75px;
    background: rgba(212,175,55,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.card-icon i {
    font-size: 34px;
    color: var(--gold);
}

.info-card h4 {
    font-family: 'Playfair Display',serif;
    color: var(--primary);
    margin-bottom: 18px;
}

.info-card p,
.membership-card p {
    color: var(--grey);
    line-height: 1.8;
}

.card-link {
    margin-top: 20px;
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
}

.card-link:hover,
.footer-links a:hover {
    color: var(--gold);
}

.founding-belief,
.momentum-section {
    background: white;
}

.belief-panel {
    background: linear-gradient(135deg,#5B1220,#48101A);
    color: white;
    border-radius: 25px;
    padding: 70px 50px;
    text-align: center;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow);
}

.belief-panel span {
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 14px;
    margin: 15px 0;
}

.belief-panel h3 {
    font-family: 'Playfair Display',serif;
    font-size: clamp(28px, .75vw + 25px, 36px);
    margin: 30px 0;
}

.section-btn {
    display: inline-block !important;
    margin-top: 30px;
    background: #F0D27F !important;
    color: #5B1220 !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    font-weight: 700;
    transition: background-color .3s ease,
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
    border: none !important;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
}

.programme-section {
    background: linear-gradient(135deg,#5B1220,#48101A);
}

.programme-card {
    background: white;
    border-radius: 18px;
    padding: 35px;
    text-align: center;
    transition: .3s;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.programme-card:hover,
.event-card:hover {
    transform: translateY(-8px);
}

.programme-card i {
    color: #D4AF37;
    font-size: 42px;
    margin-bottom: 20px;
}

.programme-card h4 {
    color: #5B1220;
    margin-bottom: 18px;
    font-family: 'Playfair Display',serif;
    margin-top: 20px;
}

.membership-section {
    background: #FCFBF8;
}

.membership-card {
    background: white;
    border-radius: 25px;
    padding: 45px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    position: relative;
    height: 100%;
    transition: all .35s ease;
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,.15);
}

.membership-card.featured {
    border: 3px solid var(--gold);
}

.featured-badge {
    position: absolute;
    top: -18px;
    right: 30px;
    background: var(--gold);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
}

.membership-type {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.membership-card h3 {
    font-family: 'Playfair Display',serif;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 34px;
}

.membership-card ul {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.membership-card li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.membership-card li i {
    color: var(--gold);
    margin-right: 12px;
    font-size: 18px;
}

.membership-btn {
    display: inline-block !important;
    background: #F0D27F !important;
    color: #5B1220 !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    font-weight: 700;
    transition: background-color .3s ease,
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
    margin-top: 25px;
    text-decoration: none !important;
    border: none !important;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
}

.membership-btn:hover {
    background: #D4AF37 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    color: #FFFFFF !important;
}

.momentum-date {
    color: var(--gold);
    font-weight: 700;
    font-size: 18px;
    margin: 25px 0;
}

.momentum-card {
    background: linear-gradient(135deg,#5B1220,#48101A);
    color: white;
    border-radius: 25px;
    padding: 60px;
    text-align: center;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.momentum-card i {
    font-size: 70px;
    color: var(--gold);
    margin-bottom: 25px;
}

.momentum-card h3 {
    font-family: 'Playfair Display',serif;
    margin-bottom: 25px;
    font-size: clamp(26px, .75vw + 23px, 34px);
}

.partner-section,
::-webkit-scrollbar-track,
body.theme-warm::-webkit-scrollbar-track {
    background: #F8F6F1;
}

.partner-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partner-value {
    background: white;
    border-radius: 18px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: all .35s ease;
}

.partner-value:hover {
    transform: translateX(8px);
}

.partner-value i {
    width: 60px;
    height: 60px;
    background: rgba(212,175,55,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 28px;
    margin-right: 20px;
}

.partner-value span {
    font-weight: 600;
    color: var(--primary);
}

.cta-section {
    background: linear-gradient(135deg,#5B1220,#48101A);
    color: white;
    padding: 90px 0;
}

.cta-small {
    display: inline-block;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
}

.cta-section h2 {
    font-family: 'Playfair Display',serif;
    font-size: clamp(32px, 1.7vw + 26px, 50px);
    margin-bottom: 25px;
}

.cta-section p {
    max-width: 700px;
    margin: auto;
    line-height: 1.9;
    margin-bottom: 45px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.cta-primary-btn {
    background: #F0D27F !important;
    color: #5B1220 !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    font-weight: 700;
    display: inline-block !important;
    border: none !important;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .3s ease,
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
    min-width: 0;
}

.cta-secondary-btn {
    border: 2px solid white;
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
}

.cta-secondary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,.18);
}

.main-footer {
    background: #2A0B12;
    color: white;
    padding: 90px 0 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    width: 75px;
    margin-right: 15px;
}

.footer-brand h3 {
    font-family: 'Playfair Display',serif;
    color: white;
}

.main-footer h5 {
    color: var(--gold);
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: white;
    transition: .3s;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: .3s;
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--primary);
}

.footer-divider {
    margin: 60px 0 30px;
    border-color: rgba(255,255,255,.15);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #d5d5d5;
    font-size: 15px;
}

img:hover,
.event-gallery img:hover {
    transform: scale(1.03);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #5B1220;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover,
body.theme-warm::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

.hero-panel h3 {
    color: #5B1220;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.hero-panel h4 {
    color: #222222;
}

.hero-panel p {
    color: #D4AF37;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.hero-panel hr {
    border-color: #D4AF37;
}

.accordion-button:not(.collapsed) {
    background: #5B1220;
    color: #fff;
}

.accordion-button:focus {
    box-shadow: none;
}

.event-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: .3s;
    height: 100%;
}

.event-card h3 {
    color: #5B1220;
    margin: 20px 0;
    font-family: 'Playfair Display', serif;
}

.event-date {
    display: inline-block;
    background: #D4AF37;
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
}

.event-gallery img {
    border-radius: 18px;
    transition: .3s;
}

.hero-panel {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    color: #222;
    margin: 60px 20px;
}

.hero-panel p:last-child {
    border-bottom: none;
}

.founding-belief h2 {
    font-size: 1.6rem;
    line-height: 1.6;
    font-weight: 500;
}

.login-section {
    min-height: 100vh;
    padding: 160px 0 100px;
    background: linear-gradient(
            135deg,
            #f8f6f1 0%,
            #ffffff 50%,
            #f3eee7 100%
        );
}

.login-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    border-top: 5px solid #d4af37;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.login-header .section-label {
    display: block;
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.login-header h1 {
    font-family: 'Playfair Display', serif;
    color: #5b1220;
    font-size: clamp(2.2rem, .75vw + 2rem, 2.7rem);
    margin-bottom: 12px;
}

.login-header p {
    color: var(--grey);
    line-height: 1.7;
}

.login-card .form-label {
    color: #5b1220;
    font-weight: 600;
}

.input-group-text {
    background: #5b1220;
    color: #d4af37;
    border: 1px solid #5b1220;
}

.login-card .form-control {
    padding: 13px 15px;
    border: 1px solid #ddd;
}

.login-card .form-control:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212,175,55,.15);
}

.password-toggle {
    border: 1px solid #ddd;
    border-left: none;
    background: white;
    padding: 0 16px;
    color: #5b1220;
}

.password-toggle:hover,
.forgot-password:hover,
.login-footer a:hover,
.nav-login-btn.active {
    color: #d4af37;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 25px;
    font-size: 14px;
}

.forgot-password {
    color: #5b1220;
    text-decoration: none;
    font-weight: 600;
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #d4af37;
    color: #2b0a11;
    font-weight: 700;
    font-size: 16px;
    transition: .3s;
}

.login-submit-btn:hover {
    background: #5b1220;
    color: white;
    transform: translateY(-3px);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.login-footer p {
    margin: 0;
    color: var(--grey);
}

.login-footer a {
    color: #5b1220;
    font-weight: 700;
    text-decoration: none;
}

.login-message {
    text-align: center;
}

.member-nav,
body.theme-light .custom-navbar,
body.theme-warm .custom-navbar,
body.theme-warm .main-footer {
    background: #5B1220 !important;
}

.member-nav .navbar-nav .nav-link {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    transition: color 0.3s ease;
}

.member-nav .navbar-nav .nav-link i {
    color: #FFFFFF !important;
    transition: color 0.3s ease;
}

.member-nav .navbar-nav .nav-link:hover,
.member-nav .navbar-nav .nav-link:hover i,
.member-nav .navbar-nav .nav-link.active,
.member-nav .navbar-nav .nav-link.active i,
.member-nav .small,
.custom-navbar .nav-menu a.nav-link[href="contact.html"]:hover,
body.theme-warm .cta-small,
body.theme-warm .card-icon i,
body.theme-warm .programme-card i,
body.theme-warm .membership-card li i,
body.theme-warm .partner-value i {
    color: #D4AF37 !important;
}

.member-nav .btn-outline-secondary {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

.member-nav .btn-outline-secondary:hover {
    background: #FFFFFF !important;
    color: #5B1220 !important;
}

.member-nav .navbar-toggler {
    border-color: #FFFFFF !important;
}

.member-nav .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.hero-buttons .nav-apply-btn {
    display: inline-block !important;
    animation: launchTicketAttention 2s ease-in-out infinite !important;
}

.purpose-section .section-title h2 {
    font-size: 2.2rem;
}

.purpose-section .section-title p,
.membership-section .section-title p,
.momentum-section p,
.partner-section p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.purpose-section {
    padding-top: 5px;
}

.founding-belief p {
    font-size: 1.10rem;
    line-height: 1.8;
}

.brand-text small {
    display: block;
    color: #D4AF37;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1;
    margin-top: 3px;
    margin-left: 25px;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background-color: #D4AF37;
    transition: width 0.3s ease;
}

.nav-menu .nav-link:hover::after,
.nav-menu .nav-link.active::after {
    width: 100%;
}

.custom-navbar .nav-menu a.nav-link[href="contact.html"] {
    color: #ffffff !important;
    text-decoration: none !important;
}

body.template-2 {
    --primary: #6B2333;
    --primary-dark: #4A1723;
    --gold: #C9A227;
    --cream: #F7F2E8;
    --white: #FFFFFF;
    --text: #292525;
    --grey: #6F6A65;
}

body.template-2 .custom-navbar,
body.template-2 .hero-left,
body.template-2 .programme-section,
body.template-2 .cta-section,
body.template-3 .custom-navbar,
body.template-3 .hero-left,
body.template-3 .programme-section,
body.template-3 .cta-section {
    background: var(--primary);
}

body.template-2 .main-footer {
    background: #351018;
}

body.template-2 .section-title h2,
body.template-2 .info-card h4,
body.template-2 .membership-card h3,
body.template-2 .programme-card h4,
body.template-3 .section-title h2,
body.template-3 .info-card h4,
body.template-3 .membership-card h3,
body.template-3 .programme-card h4 {
    color: var(--primary);
}

body.template-3 {
    --primary: #4E1825;
    --primary-dark: #35101A;
    --gold: #D8B45A;
    --cream: #FBF8F2;
    --white: #FFFFFF;
    --text: #292525;
    --grey: #706A66;
}

body.template-3 .main-footer {
    background: #321019;
}

body.theme-light,
body.theme-warm {
    background: #F8F6F1;
    color: #222222;
}

body.theme-light .hero-left,
body.theme-light .hero-right,
body.theme-light .purpose-section,
body.theme-light .programme-section,
body.theme-light .momentum-section,
body.theme-warm .hero-left,
body.theme-warm .difference-section,
body.theme-warm .programme-section,
body.theme-warm .membership-section,
body.theme-warm .partner-section,
body.theme-warm .cta-section,
body.theme-warm .content-section.bg-light,
.partnership-process-section {
    background: #F8F6F1 !important;
}

body.theme-light .hero h1,
body.theme-light .hero p,
body.theme-light .cta-small,
body.theme-warm .hero h1,
body.theme-warm .hero p,
body.theme-warm .purpose-section .section-title h2,
body.theme-warm .belief-panel span,
body.theme-warm .belief-panel h3,
body.theme-warm .programme-section .section-title h2,
body.theme-warm .momentum-card i,
body.theme-warm .cta-section h2,
body.theme-warm .cta-section p,
body.theme-warm .section-title h2,
body.theme-warm .content-section h2 {
    color: #5B1220 !important;
}

body.theme-light .hero-tag {
    background: #D4AF37 !important;
    color: #5B1220 !important;
}

body.theme-light .difference-section,
body.theme-light .founding-belief,
body.theme-light .membership-section,
body.theme-light .partner-section,
body.theme-light .info-card,
body.theme-light .programme-card,
body.theme-light .membership-card,
body.theme-light .partner-value,
body.theme-warm .hero-right,
body.theme-warm .purpose-section,
body.theme-warm .founding-belief,
body.theme-warm .experience-section,
body.theme-warm .momentum-section,
body.theme-warm .info-card,
body.theme-warm .programme-card,
body.theme-warm .membership-card,
body.theme-warm .partner-value {
    background: #FFFFFF !important;
}

body.theme-light .belief-panel {
    background: linear-gradient(
        135deg,
        #5B1220,
        #48101A
    ) !important;
}

body.theme-light .cta-section {
    background: #F8F6F1 !important;
    color: #222222 !important;
}

body.theme-light .cta-section h2,
body.theme-light .cta-section p {
    color: #222222 !important;
}

body.theme-light .section-title h2,
body.theme-light .content-section h2 {
    color: #5B1220;
}

body.theme-light .main-footer {
    background: #2A0B12 !important;
}

body.theme-warm .nav-menu .nav-link {
    color: #FFFFFF !important;
}

body.theme-warm .nav-menu .nav-link:hover,
body.theme-warm .nav-menu .nav-link.active,
body.theme-warm .main-footer h5 {
    color: #E5C158 !important;
}

body.theme-warm .nav-login-btn {
    border-color: #E5C158 !important;
    color: #FFFFFF !important;
}

body.theme-warm .nav-login-btn:hover,
body.theme-warm .nav-apply-btn,
body.theme-warm .hero-tag,
body.theme-warm .featured-badge,
body.theme-warm .hero-primary-btn,
body.theme-warm .membership-btn,
body.theme-warm .section-btn,
body.theme-warm .cta-primary-btn {
    background: #E5C158 !important;
    color: #5B1220 !important;
}

body.theme-warm .belief-panel,
body.theme-warm .momentum-card {
    background: linear-gradient(
        135deg,
        #F0D27F,
        #F0D27F
    ) !important;
    color: #5B1220 !important;
}

body.theme-warm .programme-section .section-title p {
    color: var(--grey) !important;
}

body.theme-warm .membership-card.featured {
    border-color: #E5C158 !important;
}

body.theme-warm .section-label {
    background: rgba(229,193,88,.18) !important;
    color: #8A6B16 !important;
}

body.theme-warm .gold-label {
    background: rgba(212,175,55,.18) !important;
    color: #8A6B16 !important;
}

body.theme-warm .card-icon {
    background: rgba(229,193,88,.16) !important;
}

body.theme-warm .hero-primary-btn:hover,
body.theme-warm .membership-btn:hover,
body.theme-warm .section-btn:hover,
body.theme-warm .cta-primary-btn:hover {
    background: #D4AF37 !important;
    color: #FFFFFF !important;
}

body.theme-warm::-webkit-scrollbar-thumb {
    background: #E5C158;
}

.nav-menu .navbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.experience-section .section-btn,
.partner-section .section-btn {
    margin-top: 30px;
}

.event-card .section-btn {
    margin-top: 25px;
}

.hero-primary-btn:focus,
.hero-secondary-btn:focus,
.membership-btn:focus,
.section-btn:focus,
.nav-apply-btn:focus,
.cta-primary-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(240,210,127,.35);
}

body.theme-warm .hero .hero-primary-btn,
body.theme-warm .hero .hero-secondary-btn,
body.theme-warm .cta-section .cta-primary-btn,
body.theme-warm .cta-section .cta-secondary-btn {
    display: inline-block;
    background: #F0D27F !important;
    color: #5B1220 !important;
    padding: 14px 30px;
    border-radius: 50px;
    border: none !important;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

body.theme-warm .hero .hero-primary-btn:hover,
body.theme-warm .hero .hero-secondary-btn:hover,
body.theme-warm .cta-section .cta-primary-btn:hover,
body.theme-warm .cta-section .cta-secondary-btn:hover {
    background: #D4AF37 !important;
    color: #FFFFFF !important;
    border: none !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(91,18,32,.18);
}

body.theme-warm .programme-section .section-label {
    display: inline-block;
    background: #E8DDBF !important;
    color: #8A6B16 !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

body.theme-warm .cta-section .cta-small {
    display: inline-block;
    background: #E8DDBF !important;
    color: #8A6B16 !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.partnership-process-card {
    background: #FFFFFF;
    padding: 35px 25px;
    border-radius: 18px;
    text-align: center;
    height: 100%;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: all .3s ease;
}

.partnership-process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.partnership-process-card .process-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #E8DDBF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partnership-process-card .process-icon i {
    font-size: 32px;
    color: #8A6B16;
}

.partnership-process-card .process-number {
    display: inline-block;
    color: #D4AF37;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.partnership-process-card h4 {
    color: #5B1220;
    margin-top: 10px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.partnership-process-card p {
    color: #555;
    margin-bottom: 0;
    line-height: 1.7;
}

/* ========================= MEDIA QUERIES ========================= */

@media (max-width:1200px) {

    .hero-left {
        padding: 56px;
    }

}

@media (max-width:992px) {

    .custom-navbar {
        height: auto;
        padding: 15px 10px;
    }

    .nav-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-menu {
        margin-top: 20px;
    }

    .nav-actions {
        margin-top: 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        margin-top: 100px;
    }

    .hero-row {
        min-height: auto;
    }

    .hero-left {
        padding: 56px 40px;
    }

    .hero-right {
        display: none;
    }

    .hero p {
        font-size: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

}

@media (max-width:768px) {

    .nav-logo {
        width: 98px;
        height: 80px;
        object-fit: contain;
    }

    .hero-left {
        padding: 40px 25px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        display: inline-block;
        width: auto;
        max-width: 100%;
        text-align: center;
        white-space: nowrap;
    }

    .info-card,
    .programme-card,
    .membership-card {
        padding: 30px;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-primary-btn,
    .cta-secondary-btn {
        width: 100%;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

}

@media (max-width:480px) {

    .hero-tag {
        font-size: 13px;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        width: auto;
        max-width: 100%;
        white-space: normal;
    }

}

@media (max-width: 576px) {

    .login-section {
        padding: 130px 15px 70px;
    }

    .login-card {
        padding: 30px 22px;
    }

    .login-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .hero {
        margin-top: 84px;
    }

    .hero-left {
        padding: 28px 25px;
    }

}

/* Short-height screens (small/landscape phones) still had excess
   space above the hero tag even at normal widths — trim the same
   two properties here without touching width-based breakpoints. */
@media (max-height: 700px) and (max-width: 992px) {

    .hero {
        margin-top: 84px;
    }

    .hero-left {
        padding: 28px 25px;
    }

}

@media (max-width: 768px) {

    .hero-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }

    .hero-primary-btn,
    .hero-secondary-btn,
    .section-btn,
    .membership-btn,
    .cta-primary-btn {
        width: auto !important;
        max-width: 100%;
        display: inline-block !important;
        padding: 13px 24px !important;
        font-size: 14px;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

}

@media (max-width: 480px) {

    .hero-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        width: auto !important;
        padding: 12px 18px !important;
        font-size: 13px;
    }

    .section-btn,
    .membership-btn,
    .cta-primary-btn {
        width: auto !important;
        padding: 12px 20px !important;
        font-size: 13px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .cta-primary-btn,
    .cta-buttons .cta-secondary-btn {
        width: auto !important;
    }

}

/* ========================= KEYFRAMES ========================= */

@keyframes launchTicketAttention {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.45);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}


/* =========================================================
   EVENTS PAGE — CLOSE GAP: "Become a Member" -> "Events Lists"
   .hero-left only reaches col-lg-12 when there's no hero-right
   panel beside it (currently only events.html), so this stays
   scoped to that layout without needing a body class.
========================================================= */

.hero-row .col-lg-12.hero-left {
    align-items: flex-start;
    padding-bottom: 28px;
}

body.events-page .hero {
    padding-bottom: 0;
}

.hero + #upcoming {
    padding-top: 20px;
}

/* =========================================================
   MEMBERSHIPS PAGE — REDUCE BLANK GAPS BETWEEN SECTIONS
   Scoped to body.memberships-page only. Same pattern as the
   events page: .hero was inheriting the generic 70px top/bottom
   section padding, and every section below it stacks the same
   70px again, so gaps compound. Nav clearance (.hero's top
   padding) is left alone; only the excess between sections is
   trimmed.
========================================================= */

body.memberships-page section:not(.hero) {
    padding-top: 48px;
    padding-bottom: 0;
}

body.memberships-page .hero {
    padding-bottom: 0;
}

body.memberships-page .hero + section {
    padding-top: 20px;
}

body.memberships-page .section-title {
    margin-bottom: 34px;
}

/* =========================================================
   PARTNERS PAGE — MATCH EVENTS/MEMBERSHIPS TREATMENT
   Scoped to body.partners-page only. Same reasoning as the
   memberships page: sections only get top padding so gaps
   don't compound between adjacent sections, and the hero's
   own trailing padding is removed (top clearance for the
   fixed nav is untouched).
========================================================= */

body.partners-page section:not(.hero) {
    padding-top: 48px;
    padding-bottom: 0;
}

body.partners-page .hero {
    padding-bottom: 0;
}

body.partners-page .hero + section {
    padding-top: 20px;
}

body.partners-page .section-title {
    margin-bottom: 34px;
}

/* =========================================================
   LAUNCH ANNOUNCEMENT BAR (homepage only)
   Sits directly below the fixed navbar, so it needs its own
   top clearance rather than relying on .hero's padding.
========================================================= */

.launch-banner {
    background: var(--gold);
    padding-top: calc(var(--navbar-h, 100px) + 16px);
    padding-bottom: 14px;
}

.launch-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    text-align: center;
}

.launch-banner-text {
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    font-size: 15px;
}

.launch-banner-btn {
    display: inline-block;
    background: var(--primary);
    color: #FFFFFF;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .3s ease, box-shadow .3s ease;
}

.launch-banner-btn:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

@media (max-width: 576px) {
    .launch-banner-inner {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================================
   LAUNCH EVENT CARD (homepage only)
========================================================= */

.launch-card-section {
    padding-top: 20px;
    padding-bottom: 0;
    background: var(--cream);
}

.launch-card {
    background: #FFFFFF;
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.launch-card-label {
    display: inline-block;
    background: #F1E4B8;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.launch-card-info h3 {
    font-family: 'Playfair Display',serif;
    color: var(--primary);
    font-size: 26px;
    margin-bottom: 12px;
}

.launch-card-line {
    color: var(--grey);
    margin-bottom: 6px;
    font-size: 15px;
}

.launch-card-prices {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
}

.launch-card-action {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .launch-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 24px;
    }
    .launch-card-action {
        width: 100%;
    }
    .launch-card-action .launch-banner-btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   HOMEPAGE — REDUCE BLANK GAPS BETWEEN SECTIONS
   Scoped to body.home-page only, same pattern used on
   events/memberships/partners: sections only carry top
   padding so adjacent sections don't stack two gaps into one.
   .launch-card-section is excluded here since it already has
   its own tuned values (edited directly above).
========================================================= */

body.home-page .hero {
    padding-top: 20px;
    padding-bottom: 0;
}

body.home-page .hero-left {
    align-items: flex-start;
    padding-top: 28px;
}

body.home-page section:not(.hero):not(.launch-card-section) {
    padding-top: 48px;
    padding-bottom: 0;
}

body.home-page .section-title {
    margin-bottom: 34px;
}

/* =========================================================
   MEMBERSHIP PRICING TIERS (Connect / Elevate / Influence)
   .price, .monthly, .join-btn, .badge had no styling before —
   styled here to match the site's palette. Cards use Bootstrap's
   h-100/d-flex/flex-column + mt-auto on the button so all three
   tiers align evenly regardless of bullet-list length, at every
   breakpoint down to small phones.
========================================================= */

.price {
    font-family: 'Playfair Display',serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0 4px;
    line-height: 1.2;
}

.price small {
    font-size: 15px;
    font-weight: 500;
    color: var(--grey);
    margin-left: 4px;
}

.monthly {
    color: var(--grey);
    font-size: 14px;
    margin-bottom: 16px;
}

.tier-desc {
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 12px;
}

.join-btn {
    background: var(--gold);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 14px 20px;
    font-weight: 700;
    transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.join-btn:hover {
    background: #D4AF37;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.membership-note {
    text-align: center;
    color: var(--grey);
    font-size: 14px;
    line-height: 1.7;
    max-width: 800px;
    margin: 40px auto 0;
}

@media (max-width: 480px) {
    .price {
        font-size: 30px;
    }
}

/* =========================================================
   FOUNDING CIRCLE (About page)
   By-invitation-only advisory cohort — profile cards with
   photo, name, role and a short bio. No apply/join action.
========================================================= */

.founding-circle-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.founding-circle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.founding-circle-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    margin: 0 auto 20px;
}

.founding-circle-card h4 {
    font-family: 'Playfair Display',serif;
    color: var(--primary);
    margin-bottom: 6px;
}

.founding-circle-role {
    display: block;
    color: var(--gold);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .5px;
    margin-bottom: 14px;
}

.founding-circle-card p {
    color: var(--grey);
    line-height: 1.7;
}

/* =========================================================
   APPLY PAGE — billing cycle selector + gap reduction
   Scoped to body.apply-page, same pattern as the other pages.
========================================================= */

.billing-cycle-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.billing-cycle-option {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #E5DDD0;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: border-color .3s ease, background-color .3s ease;
    flex: 1;
    min-width: 160px;
}

.billing-cycle-option:has(input:checked) {
    border-color: var(--gold);
    background: rgba(212,175,55,.08);
}

.billing-cycle-option input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.billing-cycle-save {
    color: var(--grey);
    font-weight: 500;
    font-size: 13px;
}

body.apply-page .hero {
    padding-bottom: 0;
}

body.apply-page .hero + section {
    padding-top: 20px;
}

/* =========================================================
   MEMBER AREA DASHBOARD
========================================================= */

.member-dashboard-section {
    padding-top: 130px;
}

.member-welcome-heading {
    font-family: 'Playfair Display',serif;
    color: var(--primary);
    font-size: clamp(28px, 2vw + 18px, 42px);
    margin: 15px 0 10px;
}

.member-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.member-card i {
    font-size: 34px;
    color: var(--gold);
    margin-bottom: 18px;
    display: block;
}

.member-card h4 {
    font-family: 'Playfair Display',serif;
    color: var(--primary);
    margin-bottom: 12px;
}

.member-card p {
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 18px;
}

.member-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.member-card-link:hover {
    color: var(--gold);
}

.member-coming-soon {
    margin-top: 50px;
    padding: 30px;
    background: #FFFFFF;
    border-radius: 20px;
    border: 2px dashed #E5DDD0;
}

.member-coming-soon p {
    color: var(--grey);
    line-height: 1.7;
    margin-top: 10px;
    margin-bottom: 0;
}

/* =========================================================
   INSIGHTS & LEARNING PAGE
========================================================= */

.insights-topic-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.insights-topic-tag {
    display: inline-block;
    background: #F1E4B8;
    color: var(--primary);
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: .5px;
}

.insights-card-topic {
    display: inline-block;
    background: rgba(212,175,55,.15);
    color: #8A6B16;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.insights-card-byline {
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.insights-modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.insights-modal-content .modal-header {
    background: var(--primary);
    color: #FFFFFF;
    border-bottom: none;
}

.insights-modal-content .btn-close {
    filter: brightness(0) invert(1);
}

.insights-modal-note {
    color: var(--grey);
    font-size: 13px;
    margin-bottom: 0;
}

/* =========================================================
   NAV ROW SPACE FIX
   8 menu items + the longer "Member Area" label (was "Login")
   made the desktop row too tight, pushing the Apply button
   past the edge at medium desktop widths. Scoped to the navbar
   context specifically so it doesn't shrink .nav-apply-btn's
   other uses (e.g. the homepage hero's "Get Launch Tickets").
========================================================= */

.nav-actions .nav-apply-btn {
    padding: 8px 16px !important;
    font-size: 14px;
}

@media (min-width: 992px) and (max-width: 1300px) {

    .nav-logo {
        width: 50px;
        height: 58px;
    }

    .nav-menu {
        margin: 0 4px !important;
    }

    .nav-menu .nav-item {
        margin: 0;
    }

    .nav-menu .nav-link {
        font-size: 13.5px;
        padding: 8px 5px;
    }

    .nav-login-btn {
        padding: 7px 10px;
        font-size: 13px;
    }

    .nav-actions .nav-apply-btn {
        padding: 7px 14px !important;
        font-size: 13px;
    }

    .nav-actions {
        gap: 4px;
    }

}

/* =========================================================
   INSIGHTS & LEARNING PAGE — REDUCE BLANK GAPS
   Same pattern as events/memberships/partners: sections only
   carry top padding so adjacent sections don't stack two gaps
   into one. Scoped to body.insights-page only.
========================================================= */

body.insights-page .hero {
    padding-bottom: 0;
}

body.insights-page .hero + section {
    padding-top: 20px;
}

body.insights-page section:not(.hero) {
    padding-top: 48px;
    padding-bottom: 0;
}

body.insights-page .section-title {
    margin-bottom: 34px;
}

/* =========================================================
   CONTACT PAGE — REDUCE BLANK GAPS
   Same pattern as the other converted pages.
========================================================= */

body.contact-page .hero {
    padding-bottom: 0;
}

body.contact-page .hero + section {
    padding-top: 20px;
}

body.contact-page section:not(.hero) {
    padding-top: 48px;
    padding-bottom: 0;
}

/* =========================================================
   LEADERSHIP LABS PAGE — REDUCE BLANK GAPS
   Same pattern as the other converted pages. Hero keeps its
   hero-right panel here (not asked to remove it on this page).
========================================================= */

body.leadership-labs-page .hero {
    padding-bottom: 0;
}

body.leadership-labs-page .hero + section {
    padding-top: 20px;
}

body.leadership-labs-page section:not(.hero) {
    padding-top: 48px;
    padding-bottom: 0;
}

/* =========================================================
   PARTNERSHIP OPTIONS & LAUNCH EXPERIENCE PARTNERS
========================================================= */

.partnership-tier-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.partnership-tier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.partnership-tier-card i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 14px;
    display: block;
}

.partnership-tier-card h4 {
    font-family: 'Playfair Display',serif;
    color: var(--primary);
    font-size: 17px;
    margin-bottom: 0;
}

.partnership-tier-card-launch {
    border: 2px solid var(--gold);
    position: relative;
}

.partnership-tier-badge {
    display: inline-block;
    margin-top: 10px;
    background: rgba(212,175,55,.15);
    color: #8A6B16;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.launch-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.launch-partner-slot {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 24px 30px;
    min-width: 180px;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.launch-partner-slot-open {
    border: 2px dashed var(--gold);
    color: var(--gold);
    background: transparent;
    box-shadow: none;
}

/* =========================================================
   PARTNER ENQUIRY CONFIRMATION PAGE
========================================================= */

.partner-success-section {
    padding-top: 150px;
    padding-bottom: 100px;
}

.partner-success-icon {
    font-size: 64px;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.partner-success-message {
    max-width: 640px;
    margin: 0 auto 30px;
    color: var(--grey);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* =========================================================
   EVENTS PAGE — WHY ATTEND: consistent centering + equal
   height/alignment across all four blocks, desktop and mobile.
   Scoped to .why-attend-section so it doesn't affect
   .programme-card on other pages (index, leadership-labs,
   partners).
========================================================= */

.why-attend-section .programme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.why-attend-section .programme-card i {
    margin-bottom: 16px;
}

.why-attend-section .programme-card h4 {
    margin-bottom: 10px;
}

.why-attend-section .programme-card p {
    margin-bottom: 0;
    color: var(--grey);
}

.why-attend-section .row > [class*="col-"] {
    display: flex;
}

/* =========================================================
   PAST EVENT HIGHLIGHTS (events.html + dedicated highlights page)
========================================================= */

.past-event-highlight h3 {
    font-family: 'Playfair Display',serif;
    color: var(--primary);
    font-size: clamp(24px, 1.5vw + 18px, 32px);
    margin: 14px 0 18px;
}

.past-event-highlights-heading {
    color: var(--primary);
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
}

.past-event-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.past-event-highlights-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    color: var(--grey);
    line-height: 1.6;
}

.past-event-highlights-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.past-event-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.past-event-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,.1);
}

.past-event-photo-main {
    grid-column: 1 / 3;
    aspect-ratio: 16 / 9;
}

.past-event-photo-grid .past-event-photo:not(.past-event-photo-main) {
    aspect-ratio: 1 / 1;
}

.legacy-highlights-feature-photo {
    aspect-ratio: 3 / 4;
}

/* =========================================================
   LEGACY IN BLOOM HIGHLIGHTS PAGE — reduce gaps
   Same pattern as the other converted pages.
========================================================= */

body.legacy-highlights-page .hero {
    padding-bottom: 0;
}

body.legacy-highlights-page .hero + section {
    padding-top: 20px;
}

body.legacy-highlights-page section:not(.hero) {
    padding-top: 48px;
    padding-bottom: 0;
}

/* =========================================================
   PAST EVENT SUMMARY CARDS (events.html "Past Highlights")
   Repeatable card — duplicate the HTML block for each
   additional past event. Full recap/photo gallery lives on
   each event's own dedicated highlights page instead.
========================================================= */

.past-event-summary-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}

.past-event-summary-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.past-event-summary-photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.past-event-summary-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.past-event-summary-body h3 {
    font-family: 'Playfair Display',serif;
    color: var(--primary);
    font-size: clamp(20px, 1vw + 16px, 24px);
    margin: 10px 0 12px;
}

.past-event-summary-body p {
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.past-event-summary-body .section-btn {
    align-self: flex-start;
    margin-top: 0;
}

/* =========================================================
   PRIVACY POLICY / LEGAL CONTENT
========================================================= */

.legal-content {
    max-width: 850px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: 'Playfair Display',serif;
    color: var(--primary);
    font-size: clamp(20px, 1.2vw + 16px, 26px);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 18px;
}

.legal-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

body.legal-page .hero {
    padding-bottom: 0;
}

body.legal-page .hero + section {
    padding-top: 20px;
}

/* =========================================================
   POPIA CONSENT (apply.html) — embedded policy dropdown
   with a checkbox that unlocks only once the policy has
   been opened at least once.
========================================================= */

.popia-consent-block {
    border: 2px solid #E5DDD0;
    border-radius: 16px;
    padding: 20px 24px;
    background: var(--cream);
}

.popia-policy-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.popia-policy-toggle-chevron {
    margin-left: auto;
    transition: transform .3s ease;
}

.popia-policy-toggle[aria-expanded="true"] .popia-policy-toggle-chevron {
    transform: rotate(180deg);
}

.popia-policy-collapse {
    margin-top: 16px;
}

.popia-policy-text {
    max-height: 340px;
    overflow-y: auto;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid #E5DDD0;
}

.popia-policy-text.legal-content h2 {
    font-size: 17px;
    margin-top: 24px;
    margin-bottom: 10px;
}

.popia-policy-text.legal-content p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.popia-consent-hint {
    display: block;
    color: var(--grey);
    font-size: 12px;
    margin-top: 2px;
}

.popia-consent-block .form-check-input:disabled ~ .form-check-label {
    color: var(--grey);
    opacity: .7;
}

.popia-consent-block .form-check-input:disabled ~ .form-check-label .popia-consent-hint {
    color: #B5453A;
}

.popia-consent-block .form-check-input:not(:disabled) ~ .form-check-label .popia-consent-hint {
    display: none;
}

/* =========================================================
   PAYMENT PAGE (pay.php)
========================================================= */

body.pay-page .hero {
    padding-bottom: 0;
}

body.pay-page .hero + section {
    padding-top: 20px;
}

.pay-summary-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.pay-summary-card h3 {
    font-family: 'Playfair Display',serif;
    color: var(--primary);
    margin-bottom: 20px;
}

.pay-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--text);
}

.pay-summary-amount {
    font-size: 20px;
    color: var(--primary);
}

.pay-manual-notice p {
    color: var(--grey);
    line-height: 1.7;
}

.pay-bank-details {
    background: var(--cream);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 16px 0;
}

.pay-bank-details p {
    margin-bottom: 6px;
    color: var(--text);
}

/* =========================================================
   NAVBAR — MOVE BRAND CLOSER TO LEFT EDGE
   ========================================================= */

.custom-navbar {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.custom-navbar .nav-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.custom-navbar .navbar-brand {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

@media (max-width: 991.98px) {
    .custom-navbar {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .custom-navbar .nav-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .custom-navbar .navbar-brand {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* =========================================================
   MOBILE NAVBAR — FINAL OVERRIDE
   ========================================================= */

@media screen and (max-width: 991.98px) {

    .custom-navbar {
        padding-left: 0 !important;
        padding-right: 10px !important;
    }

    .custom-navbar > .nav-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;

        width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .custom-navbar .navbar-brand {
        display: flex !important;
        align-items: center !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        order: 1 !important;
    }

    .custom-navbar .navbar-toggler {
        display: block !important;
        margin-left: auto !important;
        order: 2 !important;
    }

    .custom-navbar .navbar-collapse {
        order: 3 !important;
        flex-basis: 100% !important;
        width: 100% !important;
    }
}

.event-video {
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
}

.event-video video {
    width: 100%;
    height: auto;
    display: block;
}