@supports (scrollbar-width: thin) {
    html{scrollbar-width:thin;scrollbar-color:#c1a5b0 #f0f0f0}
}
*::-webkit-scrollbar{width:8px;height:8px}
*::-webkit-scrollbar-track{background:#f0f0f0;border-radius:8px}
*::-webkit-scrollbar-thumb{background-color:#c1a5b0;border-radius:8px;border:2px solid #f0f0f0}
/* === Typography: Adobe Fonts (global) === */
:root {
  --font-body: "alegreya-sans", "Alegreya Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "rucksack", "Alegreya Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Base text (paragraphs, UI copy, links) = Alegreya Sans Bold */
html, body,
button, input, select, textarea,
a {
  font-family: var(--font-body);
  font-weight: 700;
}

/* Headings & subheadings (fix broken selector list) */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.stats-subtitle,
.feature-card h3,
.event-title,
.footer-section h4,
.stat-number,
.stat-label {
  font-family: var(--font-heading, "rucksack", sans-serif);
  font-weight: 900;
  letter-spacing: 0.2px;
}

/* Anchor offset for fixed header (separate rule, not inside selector list) */
section[id] { scroll-margin-top: 120px; }
@media (max-width: 768px) { section[id] { scroll-margin-top: 95px; } }

/* Ensure components inherit bold body where needed */
.nav-link,
.feature-link,
.login-link,
.follow-link,
.btn {
  font-family: var(--font-body);
  font-weight: 700;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

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

/* Header Styles */
.header {
    background-color: #3D1825;
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: visible;
    transition: padding 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

/* Header container: logo left, hamburger right */
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    max-width: 1400px; /* wider to accommodate menu */
    padding: 0 24px;  /* mirror global container gutter */
    margin: 0 auto;
    overflow: visible;
}

/* Logo sizing */
.logo-link { display: inline-flex; align-items: center; }
.logo picture, .logo-img { display: block; }
.logo {
  flex-shrink: 0;
}
.logo-img {
  height: 110px; /* desktop */
  width: auto;
  filter: brightness(0) invert(1); /* keep desktop white */
    transition: height 0.25s ease;
}

/* Navigation Menu (Left) */
.nav-menu {
    justify-self: start;
    margin-left: 0;
    min-width: 0;
    flex: 1 1 auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 0.35rem 0.65rem;
    border-radius: 25px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Header Right Section (Login + Social Icons) */
.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    overflow: visible;
    flex-shrink: 0;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 0.4rem 0.75rem; /* was 0.5rem 1rem */
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255,255,255,0.1);
}

/* User menu (desktop) */
.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 1002;
}

.user-trigger {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.user-trigger i { font-size: 1.5rem; }
.user-trigger:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    max-width: min(260px, calc(100vw - 24px));
    background: #fff;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.16);
    padding: 0.5rem;
    display: none;
    z-index: 2000;
}

.user-menu.open .user-dropdown { display: block; }

.user-menu-link {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    color: #3D1825;
    text-decoration: none;
    font-weight: 700;
}

.user-menu-link:hover { background: rgba(61,24,37,0.08); }

.login-link:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.login-link i {
    font-size: 1rem;
}

.login-link span {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Follow (Linktree) button - next to login */
.follow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem; /* was 0.55rem 0.9rem */
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 8px; /* same as login button (rounded rectangle) */
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.follow-link:hover,
.follow-link:focus {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

.follow-link i {
  font-size: 0.95rem;
  line-height: 1;
}

@media (max-width: 768px) {
  /* If header-right is visible on mobile, hide the label to save space */
  .follow-link span { display: none; }
}

/* Social Icons (Right) */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: transparent;
  border: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;                 /* space between lines */
  width: 44px;
  height: 44px;
  padding: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #A4AEF7; /* requested color */
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background-color .3s ease;
  transform-origin: center;
}

/* Active (X) */
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Overlay (already styled below; keep for context) */
/* .menu-overlay { ... } */

/* Show hamburger on mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: inline-flex; }
}

/* Hero Section */
.hero {
    margin-top: 120px; /* was 100px; accommodates taller header/logo */
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%), url('../Images/Herro_GMCP.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding: 2rem 2rem 2rem 10rem;
    z-index: 2;
    max-width: 1200px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Roboto Slab', serif;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =================
   UNIFIED BUTTON SYSTEM
   ================= */

.btn {
    /* Base button styles */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
    /* Sizing */
    padding: 1rem 2rem;
    min-width: 140px;
    
    /* Typography */
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    line-height: 1;
    
    /* Appearance */
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    
    /* Transitions */
    transition: all 0.3s ease;
    
    /* Accessibility */
    outline: none;
}

/* Button States */
.btn:active { 
    transform: translateY(1px); 
}

.btn:focus-visible { 
    box-shadow: 0 0 0 3px rgba(61,24,37,0.25); 
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* =================
   BUTTON VARIANTS
   ================= */

/* PRIMARY BUTTON */
.btn-primary {
    background: #3D1825;
    color: #ffffff;
    border-color: #3D1825;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #5D2D3F;
    border-color: #5D2D3F;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 24, 37, 0.3);
}

/* SECONDARY BUTTON */
.btn-secondary {
    background: transparent;
    color: #3D1825;
    border-color: #3D1825;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: #3D1825;
    color: #ffffff;
    border-color: #3D1825;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 24, 37, 0.2);
}

/* OUTLINE BUTTON */
.btn-outline {
    background: transparent;
    color: #666666;
    border-color: #dddddd;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: #f8f9fa;
    color: #3D1825;
    border-color: #3D1825;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(61, 24, 37, 0.1);
}

/* =================
   SIZE VARIATIONS
   ================= */

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    min-width: 200px;
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: 120px;
}

/* =================
   CONTEXT OVERRIDES
   ================= */

/* Membership section buttons - larger by default */
.membership-cta .btn {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    min-width: 200px;
}

/* Events calendar button - larger by default */
.events-calendar .btn {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    min-width: 200px;
}

/* Hero section buttons - larger for prominence */
.hero-buttons .btn {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    min-width: 180px;
}

/* Videos CTA button - larger for prominence */
.videos-cta .btn {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    min-width: 200px;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: #f8f9ff;
}

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

/* Carousel Styles for Mobile */
.features-carousel {
    position: relative;
}

.carousel-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(61, 24, 37, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #3D1825;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(164, 174, 247, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(164, 174, 247, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3D1825, #5D2D3F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    margin-bottom: 1rem;
}

.feature-link {
    color: #3D1825;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: #5D2D3F;
}

/* About Us Section */
.about-us {
    padding: 5rem 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding: 2rem 0;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
    color: #3D1825;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.about-text .btn {
    margin-top: 1rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(61, 24, 37, 0.15);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-10px);
}

/* Values Section - Mobile First Design */
.values {
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
}

.values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 24, 37, 0.1), transparent);
}

.values-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.values-header .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #3D1825;
    margin-bottom: 1rem;
    position: relative;
}

.values-lead {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

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

.value-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(61, 24, 37, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(61, 24, 37, 0.05);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5D2D3F, #8B4A6B);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(61, 24, 37, 0.15);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #5D2D3F, #8B4A6B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.value-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #5D2D3F, #8B4A6B);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card:hover .value-icon::after {
    opacity: 0.2;
}

.value-icon i {
    font-size: 1.5rem;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon i {
    transform: scale(1.1);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3D1825;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.value-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .values {
        padding: 4rem 0 5rem;
    }
    
    .values-header {
        margin-bottom: 3rem;
        padding: 0 2rem;
    }
    
    .values-header .section-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .values-lead {
        font-size: 1.1rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .value-card {
        padding: 2.5rem 2rem;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 2rem;
    }
    
    .value-icon i {
        font-size: 1.75rem;
    }
    
    .value-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    .value-text {
        font-size: 1rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .values {
        padding: 5rem 0 6rem;
    }
    
    .values-header {
        margin-bottom: 4rem;
    }
    
    .values-header .section-title {
        font-size: 3rem;
    }
    
    .values-lead {
        font-size: 1.2rem;
        max-width: 700px;
    }
    
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .value-card {
        padding: 3rem 2.5rem;
    }
    
    .value-card:nth-child(n+7) {
        grid-column: span 1;
    }
    
    /* Center the last card if it's alone */
    .value-card:nth-child(7):last-child {
        grid-column: 2 / 3;
    }
    
    .value-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 2.5rem;
    }
    
    .value-icon i {
        font-size: 2rem;
    }
    
    .value-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .value-text {
        font-size: 1.05rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
    .values-grid {
        max-width: 1400px;
        gap: 3rem;
    }
    
    .value-card {
        padding: 3.5rem 3rem;
    }
    
    .value-icon {
        width: 90px;
        height: 90px;
    }
    
    .value-icon i {
        font-size: 2.25rem;
    }
}

/* Upcoming Events Section */
.upcoming-events {
    padding: 5rem 0;
    background-color: #f8f9ff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

/* Events Carousel Styles for Mobile */
.events-carousel {
    position: relative;
}

.events-carousel-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.events-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(61, 24, 37, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.events-dot.active {
    background-color: #3D1825;
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(61, 24, 37, 0.1);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(61, 24, 37, 0.2);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #3D1825, #5D2D3F);
    color: white;
    padding: 0.8rem;
    border-radius: 12px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 4px 15px rgba(61, 24, 37, 0.3);
}

.event-date-badge .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}

.event-content {
    padding: 1.5rem;
}

.event-datetime {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.event-datetime p {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
}

.event-datetime i {
    color: #3D1825;
    width: 12px;
}

.event-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #333;
    line-height: 1.3;
}

.event-instructor {
    color: #3D1825;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-instructor i {
    width: 12px;
}

.event-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.event-location {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-location i {
    color: #3D1825;
    width: 12px;
}

.events-calendar {
    text-align: center;
    padding-top: 2rem;
}

.events-placeholder,
.events-error,
.upcoming-events .no-events {
    text-align: center;
    color: #555;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(61, 24, 37, 0.08);
}

.events-error {
    color: #a94442;
}

.upcoming-events .no-events .btn {
    margin-top: 1rem;
}

/* Industry Statistics Section */
.industry-stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
}

.stats-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Grid (no carousel) */
.stats-carousel { /* container retained for structure */
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

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

.stats-carousel-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.stats-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(61, 24, 37, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.stats-dot.active {
    background-color: #3D1825;
}

/* Desktop: single row with all cards visible */
@media (min-width: 769px) {
    .stats-carousel {
        overflow: visible;
    }
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
        transform: none !important;
    }
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3D1825, #5D2D3F);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(61, 24, 37, 0.15);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card.highlight {
    border-color: #3D1825;
    background: linear-gradient(135deg, #3D1825 0%, #5D2D3F 100%);
    color: white;
}

.stat-card.highlight .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-card.growth {
    border-color: #28a745;
}

.stat-card.growth .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.stat-card.ranking {
    border-color: #ffc107;
}

.stat-card.ranking .stat-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3D1825, #5D2D3F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Roboto Slab', serif;
    color: inherit;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: inherit;
}

.stat-note {
    font-size: 0.9rem;
    color: rgba(102, 102, 102, 0.8);
    line-height: 1.4;
    display: block;
}

.stat-card.highlight .stat-note {
    color: rgba(255, 255, 255, 0.8);
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #3D1825, #5D2D3F);
    color: white;
    padding: 4rem 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer */
.footer {
    background-color: #A4AEF7; /* updated */
    color: #3D1825;            /* better contrast on light bg */
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #3D1825;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #3D1825;            /* was #ccc */
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section a:hover {
    color: #5D2D3F;            /* darker accent on hover */
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #3D1825;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #5D2D3F;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(61, 24, 37, 0.25); /* subtle divider on light bg */
    color: #3D1825;
}

.footer-accessibility {
    margin: 1.5rem 0 0;
    padding: 1.25rem 1rem;
    background: rgba(61, 24, 37, 0.06);
    border-radius: 10px;
    color: #3D1825;
    line-height: 1.55;
}

.footer-accessibility h4 {
    margin-bottom: 0.75rem;
}

.footer-accessibility p {
    margin: 0.35rem 0;
}

.footer-accessibility a {
    color: #3D1825;
    text-decoration: underline;
}

/* Videos (Recordings/Films) – modern vertical layout */
.videos { padding: 5rem 0; }
.videos-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 1.75rem;
}
.videos .section-title { margin-bottom: 0.5rem; }
.videos-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* Big, centered video */
.responsive-video {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(61, 24, 37, 0.18);
}
.responsive-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* CTA under video */
.videos-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .videos { padding: 3rem 0; }
  .videos-header { margin-bottom: 1.25rem; padding: 0 0.5rem; }
  .videos-lead { font-size: 1rem; line-height: 1.6; }
  .responsive-video { border-radius: 12px; max-width: 100%; }
  .videos-cta { margin-top: 1.25rem; }
}

/* Team */
.team {
  padding: 5rem 0;
  background: #fff;
}
.team .section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #3D1825;
}
.team-grid {
  --team-gap: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--team-gap);
}

/* First two cards: 50% each; rest: 33.333% each */
.team-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(61,24,37,0.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:nth-child(-n+2) { flex: 0 0 calc(50% - var(--team-gap) / 2); }
.team-card:nth-child(n+3)  { flex: 0 0 calc(33.333% - (2 * var(--team-gap) / 3)); }

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(61,24,37,0.18);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #F3F4F8;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-photo.placeholder {
  font-family: var(--font-heading, "rucksack", sans-serif);
  font-weight: 900;
  font-size: 1.5rem;
  color: #3D1825;
  background: #E7EAFB;
}

.team-name {
  margin: 0.25rem 0 0.25rem;
  color: #3D1825;
}
.team-role {
  margin: 0;
}

/* CTA */
.team-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Tablet */
@media (max-width: 1024px) {
  .team-card:nth-child(-n+2) { flex: 0 0 calc(50% - var(--team-gap) / 2); }
  .team-card:nth-child(n+3)  { flex: 0 0 calc(50% - var(--team-gap) / 2); }
  .team-card:nth-child(5)    { flex: 0 0 100%; }
}

/* Mobile */
@media (max-width: 768px) {
  .team { padding: 3rem 0; }
  .team-card,
  .team-card:nth-child(-n+2),
  .team-card:nth-child(n+3) {
    flex: 0 0 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }
    
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding-right: 1rem; /* Optional: ensure the header container has some right padding on mobile */
    }
    
    .logo {
        order: 1;
    }
    
    .logo-img {
        height: 72px;  /* mobile size */
        filter: none;  /* mobile icon is already the correct color */
    }

    /* Shrink header on scroll for mobile to free vertical space */
    .header.mobile-compact {
        padding: 0.5rem 0;
        box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    }
    .header.mobile-compact .logo-img {
        height: 28px;
    }

    .hero {
        margin-top: 95px; /* was 80px */
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .nav-link {
        padding: 0.6rem 1.2rem; /* keep mobile tap-friendly while tighter than before */
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: #3D1825;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -4px 0 15px rgba(0,0,0,0.2);
        padding-top: 80px;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 2rem 0 1rem 0;
        margin: 0;
        list-style: none;
        padding-bottom: 140px; /* room for the footer block */
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
        text-align: left;
        color: white;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(255,255,255,0.1);
        transform: none;
    }
    
    .header-right {
        display: none;
    }
    
    .login-link span {
        display: none;
    }
    
    /* Mobile Menu Footer Styles */
    .mobile-menu-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 2rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        background-color: rgba(0,0,0,0.1);
    }
    
    .mobile-login-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #fff;
        text-decoration: none;
        padding: 0.6rem 0.9rem;
        border-radius: 8px;
        background: rgba(255,255,255,0.12);
        transition: background .25s ease, transform .2s ease;
    }
    .mobile-login-link:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
}

/* Extra small screens - Portrait phones */
@media (max-width: 480px) {
    .feature-card {
        width: calc(100vw - 30px); /* Much wider for small screens */
        margin: 0 8px;
    }
    
    .event-card {
        width: calc(100vw - 30px); /* Much wider for small screens */
        margin: 0 8px;
    }
    
    .about-us {
        padding: 3rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-text {
        order: 1;
        padding: 1rem 0;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    .events-carousel {
        overflow: hidden;
        position: relative;
        margin: 0 -20px; /* Negative margin to use full container width */
    }
    
    .events-grid {
        display: flex;
        transition: transform 0.3s ease;
        gap: 0;
        padding: 0 20px; /* Add padding back */
        margin-bottom: 2rem;
    }
    
    .event-card {
        width: calc(100vw - 40px); /* Wider cards for mobile */
        max-width: 350px;
        flex-shrink: 0;
        margin: 0 10px;
    }
    
    .events-carousel-dots {
        display: flex;
    }
    
    .events-calendar {
        padding-top: 2.5rem;
    }
    
    .stats-carousel {
        overflow: hidden;
        position: relative;
    }
    
    .stats-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding-bottom: 0.5rem; /* avoid overlay by scrollbar */
    }

    /* Hide scrollbar */
    .stats-grid::-webkit-scrollbar {
        display: none;
    }
    /* Optional: hide scrollbar on modern browsers */
    .stats-grid {
        -ms-overflow-style: none; /* IE and old Edge */
    }
    
    .stat-card {
        flex: 0 0 100%;
        width: auto;
        flex-shrink: 0;
        padding: 1.5rem;
        box-sizing: border-box;
        margin: 0;
        scroll-snap-align: start;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stats-carousel-dots {
        display: flex;
    }
    
    .stats-carousel-nav {
        display: none;
    }
    
    .event-datetime {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Mobile side-drawer nav */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed !important;
    top: 0;
    right: -320px;          /* hidden off-screen */
    width: 300px;
    height: 100vh;
    background: #3D1825;
    z-index: 1000;
    padding: 100px 16px 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,.35);
    transition: right .3s ease;
    overflow-y: auto;
  }
  .nav-menu.active { right: 0 !important; }

  .nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 140px; /* room for the footer block */
  }
  .nav-menu a {
    display: block;
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    background: transparent;
  }
  .nav-menu a:hover { background: rgba(255,255,255,.12); }
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 999;
}
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hamburger: reset + 3 lines in #A4AEF7 */
.mobile-menu-toggle {
  background: transparent;
  border: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;                 /* space between lines */
  width: 44px;
  height: 44px;
  padding: 6px 14px 6px 6px; /* keep your right padding */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #A4AEF7; /* requested color */
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background-color .3s ease;
  transform-origin: center;
}

/* Active (X) */
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Ensure visible on mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: inline-flex; }
}

/* Desktop header layout: menu | logo | actions */
@media (min-width: 769px) {
  .header .container.header-grid {
    display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
    .header .container.header-grid > * { min-width: 0; }
  .logo { justify-self: center; }
  .header-right {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 0.75rem;
  }
  .mobile-menu-toggle { display: none !important; }

  /* Reset nav from mobile drawer to horizontal */
  .nav-menu {
    position: static !important;
    width: auto; height: auto; right: auto;
    background: transparent; box-shadow: none; padding: 0; overflow: visible;
    transition: none;
        min-width: 0;
  }
  .nav-menu ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem 0.6rem;
        max-width: 100%;
  }
  .nav-menu a { padding: 0.35rem 0.5rem; border-radius: 25px; font-size: 0.9rem; white-space: nowrap; }
  .nav-menu.active { right: auto !important; }
  .menu-overlay { display: none; }

  /* Desktop logo size/color */
  .logo-img { height: 110px; width: auto; filter: none; }
}

/* Mobile: keep current behavior (logo left, hamburger right, actions hidden) */
@media (max-width: 768px) {
  .header .container.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Order: logo (left) | nav (hidden drawer) | hamburger (right) */
  .logo { order: 1; margin-right: auto; }
  .nav-menu { order: 2; }
  .mobile-menu-toggle { order: 3; margin-left: auto; padding-right: 16px; }

  /* Smaller mobile logo */
  .logo-img {
    height: 56px;   /* was 72px */
    width: auto;
    filter: none;
  }
}

/* Ensure nav not pulled left by any old negative margins */
.nav-menu { margin-left: 0 !important; }

/* Mobile drawer login footer: hidden by default (desktop) */
.mobile-menu-footer { display: none; }

/* Mobile only: show login in the drawer and add spacing */
@media (max-width: 768px) {
  .nav-menu ul { padding-bottom: 120px; } /* room for footer */

  .mobile-menu-footer {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  .mobile-login-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    transition: background .25s ease, transform .2s ease;
  }
  .mobile-login-link:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
}

/* Alternating section backgrounds starting at About Us */
.about-us { background: #fff !important; }
.upcoming-events { background: #f8f9ff !important; }
.industry-stats { background: #fff !important; background-image: none !important; }
.videos { background: #f8f9ff !important; }
.team { background: #fff !important; }
.newsletter {
  background: #fff !important;
  color: #3D1825;
}

/* Newsletter on light background */
.newsletter-content h2 { color: #3D1825; }
.newsletter-content p { color: #3D1825; opacity: .85; }

.newsletter-form input {
  border: 2px solid rgba(61,24,37,0.25);
  background: #fff;
  color: #3D1825;
}
.newsletter-form input::placeholder { color: rgba(61,24,37,0.55); }
.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61,24,37,0.18);
}

/* Membership */
.membership {
  position: relative;
  padding: 6rem 0;
  background: url('../Images/Members_Section_BG.jpg') center/cover no-repeat !important;
  color: #fff;
  isolation: isolate; /* overlay is contained */
}
.membership::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(61,24,37,0.55) 0%,
              rgba(61,24,37,0.65) 40%,
              rgba(61,24,37,0.7) 100%);
  z-index: -1;
}
@media (min-width: 1025px) {
  .membership { background-attachment: fixed; } /* subtle parallax on large screens */
}

.membership-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}
.membership .section-title { 
    color: #fff; margin-bottom: .5rem; 
}
.membership-lead {
    color: #fff; opacity: .95; 
}

/* Glass panel for content */
.membership-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.membership-card::before { display: none; } /* remove old top accent bar */

.membership-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(164,174,247,0.25);
  border: 1px solid rgba(164,174,247,0.6);
  color: #fff;
}

/* Benefits become light, airy pills */
.benefits-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 12px;
}
@media (min-width: 1025px) {
  .benefits-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.9rem 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.benefit i { color: #A4AEF7; margin-top: 2px; }

/* Buttons: primary (white -> burgundy on hover) and secondary (burgundy -> white on hover) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(61,24,37,0.25); }

/* Primary: white bg, burgundy text/border; hover inverted */
.btn-primary {
  background: #fff;
  color: #3D1825;
  border-color: #3D1825;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #3D1825;
  color: #fff;
  border-color: #3D1825;
}

/* Secondary: burgundy bg; hover inverted */
.btn-secondary {
  background: #3D1825;
  color: #fff;
  border-color: #3D1825;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fff;
  color: #3D1825;
  border-color: #3D1825;
}

/* Ensure membership section uses same button scheme (overrides any earlier section-specific styles) */
.membership .btn-primary {
  background: #fff;
  color: #3D1825;
  border-color: #3D1825;
}
.membership .btn-primary:hover,
.membership .btn-primary:focus-visible {
  background: #3D1825;
  color: #fff;
  border-color: #3D1825;
}
.membership .btn-secondary {
  background: #3D1825;
  color: #fff;
  border-color: #3D1825;
}
.membership .btn-secondary:hover,
.membership .btn-secondary:focus-visible {
  background: #fff;
  color: #3D1825;
  border-color: #3D1825;
}

/* Membership CTA - wider and centered button */
.membership-cta {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.membership-cta .btn {
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .membership-cta .btn {
    min-width: 180px;
    width: 100%;
    max-width: 300px;
  }
}

/* Membership Plans Section */
.membership-plans {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.membership-plans-header {
    text-align: left;
    margin-bottom: 3rem;
}

.membership-plans-lead {
    font-size: 1.125rem;
    color: #6b7280;
    margin-top: 1rem;
    max-width: 600px;
}

/* Plans Grid - Mobile First */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

/* Plan Cards */
.plan-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(61, 24, 37, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3D1825 0%, #5D2D3F 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(61, 24, 37, 0.15);
    border-color: #3D1825;
}

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

/* Featured Plan (Popular) */
.plan-card.featured {
    border-color: #3D1825;
    transform: scale(1.02);
}

.plan-card.featured::before {
    opacity: 1;
}

.plan-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

/* Plan Badge */
.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #3D1825 0%, #5D2D3F 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.student-plan .plan-badge {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.premium-plan .plan-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

/* Plan Header */
.plan-header {
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3D1825;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3D1825;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Plan Features */
.plan-features {
    margin-bottom: 2rem;
}

.plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
}

.plan-feature i {
    color: #3D1825;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.plan-feature span {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

.plan-feature strong {
    color: #3D1825;
    font-weight: 600;
}

/* Plan Add-on (special feature) */
.plan-addon {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 12px;
    border-left: 4px solid #3D1825;
}

.plan-addon i {
    color: #3D1825;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.plan-addon span {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
    font-style: italic;
}

/* Highlighted Feature */
.plan-feature.highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid #f59e0b;
}

.plan-feature.highlight i {
    color: #f59e0b;
}

.plan-feature.highlight span {
    color: #92400e;
    font-weight: 500;
}

/* Plan Note */
.plan-note {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #d1d5db;
}

.plan-note small {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Plan CTA */
.plan-cta {
    margin-top: auto;
    padding-top: 1rem;
}

.plan-cta .btn {
    width: 100%;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tablet Layout */
@media (min-width: 768px) {
    .membership-plans {
        padding: 5rem 0;
    }
    
    .membership-plans-header {
        text-align: center;
        margin-bottom: 4rem;
    }
    
    .membership-plans-lead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .plan-card {
        padding: 2.5rem;
    }
    
    .plan-title {
        font-size: 1.75rem;
    }
    
    .price-amount {
        font-size: 3rem;
    }
}

/* Desktop Layout */
@media (min-width: 1024px) {
    .membership-plans {
        padding: 6rem 0;
    }
    
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .plan-card {
        padding: 3rem;
        display: flex;
        flex-direction: column;
    }
    
    .plan-title {
        font-size: 2rem;
    }
    
    .price-amount {
        font-size: 3.5rem;
    }
    
    .plan-features {
        flex-grow: 1;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .plans-grid {
        max-width: 1400px;
        gap: 3.5rem;
    }
    
    .plan-card {
        padding: 3.5rem;
    }
}

    /* Experts Section */
    .experts {
        padding: 72px 0;
        background: #f9f7f6;
    }

    .experts-header {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 28px;
    }

    .experts-lead {
        color: #4b2a32;
        max-width: 760px;
    }

    .experts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
        position: relative;
    }
    
    /* Hide experts beyond first 3 rows on desktop (12 items for 4-column layout) */
    @media (min-width: 769px) {
        .experts-grid:not(.show-all) .expert-card:nth-child(n+13) {
            display: none;
        }
    }
    
    .experts-show-more-wrapper {
        display: none;
        text-align: center;
        margin-top: 32px;
    }
    
    .experts-show-more-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
    }
    
    .experts-show-more-btn i {
        transition: transform 0.3s ease;
    }

    .experts-show-more-btn .show-less-text,
    .experts-show-more-btn .show-less-icon {
        display: none;
    }
    
    .experts-show-more-btn:hover .show-more-icon {
        transform: translateY(2px);
    }
    
    .experts-show-more-btn:hover .show-less-icon {
        transform: translateY(-2px);
    }

    .experts-placeholder {
        padding: 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
        color: #555;
    }

    .expert-card {
        position: relative;
        overflow: hidden;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(0,0,0,0.08);
        isolation: isolate;
    }

    .expert-thumb {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }

    .expert-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .expert-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.6) 100%);
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 6px;
        padding: 18px;
        transform: translateY(12%);
        opacity: 0;
        transition: transform 0.35s ease, background 0.35s ease, opacity 0.35s ease;
    }

    .expert-overlay h3 {
        margin: 0;
        font-size: 1.05rem;
        letter-spacing: 0.2px;
    }

    .expert-overlay p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.35;
        color: #f3f3f3;
    }

    .expert-card:hover .expert-overlay,
    .expert-card:focus-within .expert-overlay {
        transform: translateY(0);
        background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 100%);
        opacity: 1;
    }

    .expert-card:hover img,
    .expert-card:focus-within img {
        transform: scale(1.05);
    }

    @media (max-width: 768px) {
        .experts {
            padding: 56px 0;
        }
        .experts-grid {
            display: flex;
            grid-template-columns: none;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            gap: 16px;
            padding-bottom: 12px;
        }
        .experts-grid::-webkit-scrollbar {
            display: none;
        }
        .expert-card {
            flex: 0 0 280px;
            scroll-snap-align: start;
            scroll-snap-stop: always;
        }
        .expert-overlay {
            padding: 14px;
        }
    }

/* Firefox-only scrollbars for experts grid on mobile */
@supports (scrollbar-width: none) {
  @media (max-width: 768px) {
    .experts-grid { scrollbar-width: none; }
  }
}

/* Partners Section */
.partners {
    padding: 72px 0;
    background: #fff;
}

.partners-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.partners-lead {
    color: #555;
    max-width: 880px;
    font-size: 0.95rem;
    line-height: 1.7;
}

    .partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: center;
    justify-items: center;
}

.partners-placeholder {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
    color: #555;
}

.partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 8px;
    border-radius: 12px;
    background: #f9f9f9;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
}

.partner-logo {
    width: 100%;
    height: 100%;
    max-width: 180px;
    max-height: 140px;
    object-fit: contain;
}

.partner-link:hover {
    background: #f3f3f3;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

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

    .partners-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 16px;
        padding-bottom: 10px;
    }
    .partners-grid::-webkit-scrollbar { display: none; }
    .partner-link { flex: 0 0 40%; scroll-snap-align: start; }

    .partners-lead {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .partner-link { flex: 0 0 60%; }
}

/* Firefox-only scrollbars for partners grid on mobile */
@supports (scrollbar-width: none) {
    @media (max-width: 768px) {
        .partners-grid { scrollbar-width: none; }
    }
}

/* Registration Modal (shared across pages) */
.registration-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.registration-modal-backdrop.active { display: flex; }

.registration-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.registration-modal header {
    padding: 1rem 1.5rem;
    background: #3D1825;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.registration-modal header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 900;
}

.registration-modal .modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

.registration-modal .modal-body { padding: 1.5rem; }

.registration-form { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.registration-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.registration-form label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 700;
    display: block;
    margin-bottom: 0.375rem;
}

.registration-form input,
.registration-form textarea,
.registration-form select {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    background: #fff;
}

.registration-form .checkbox-row { display: flex; align-items: center; gap: 0.5rem; }

.company-fields { display: none; margin-top: 0.5rem; border-top: 1px solid #eee; padding-top: 1rem; }

.registration-modal .modal-footer { padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; border-top: 1px solid #eee; }