/* --------- Featured Gallery Badge --------- */
.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color, #00b3e6);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    gap: 0.4em;
    z-index: 2;
    letter-spacing: 0.03em;
}

.featured-badge i {
    color: #fff;
    margin-right: 0.3em;
}

.featured-badge.expanded {
    position: static;
    margin-top: 1em;
    margin-bottom: 0.5em;
    box-shadow: none;
}

.gallery-item.featured {
    border: 2.5px solid var(--accent-color, #00b3e6);
    box-shadow: 0 0 0 2px rgba(0, 179, 230, 0.18);
}

/* ============================================
   JCI Senate San Juan - Main Stylesheet
   ============================================ */

/* --------- CSS Variables --------- */
:root {
    /* JCI Official Colors */
    --primary-color: #2f566f;
    --primary-dark: #224154;
    --primary-light: #5d8096;
    --secondary-color: #7fc4d9;
    --accent-color: #f2b95d;
    --accent-dark: #d89b35;

    /* Neutrals */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* --------- Reset & Base --------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* --------- Utilities --------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --------- Buttons --------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* --------- Preloader --------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: var(--space-lg);
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* --------- Header & Navigation --------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header.scrolled .nav-link {
    color: var(--gray-700);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary-color);
}

.navbar {
    padding: var(--space-md) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-logo img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.header.scrolled .logo-main {
    color: var(--primary-color);
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: var(--space-sm);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta .btn {
    padding: var(--space-sm) var(--space-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-normal);
}

.header.scrolled .hamburger,
.header.scrolled .hamburger::before,
.header.scrolled .hamburger::after {
    background: var(--primary-color);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* --------- Hero Section --------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/assets/images/hero-water-bg.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 102, 0.5);
}

.hero-overlay::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: var(--space-xl);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-wrap: balance;
}

#heroTitle {
    white-space: nowrap;
}

#heroTitle .hero-mobile-break {
    display: none;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--accent-color);
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes waterDrift {
    0% {
        background-position: 10% 16%, 88% 78%, center;
    }

    100% {
        background-position: 12% 19%, 85% 81%, center;
    }
}

@keyframes waterDriftSoft {
    0% {
        background-position: 84% 18%, 14% 82%, 30% 30%, 68% 58%;
    }

    100% {
        background-position: 82% 22%, 16% 79%, 32% 33%, 66% 61%;
    }
}

/* --------- About Section --------- */
.about {
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.about-body {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.badge-year {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

/* --------- Mission Vision Section --------- */
.mission-vision {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.mv-grid {
    display: flex;
    gap: 0;
    transition: transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.mv-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    cursor: grab;
    touch-action: pan-y;
}

.mv-slider.grabbing {
    cursor: grabbing;
}

.mv-slider.grabbing .mv-grid {
    transition: none;
}

.mv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(13, 63, 117, 0.55);
    color: #ffffff;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 180ms ease, transform 180ms ease;
}

.mv-arrow:hover {
    background: rgba(13, 63, 117, 0.85);
}

.mv-arrow:active {
    transform: translateY(-50%) scale(0.97);
}

.mv-arrow-prev {
    left: 12px;
}

.mv-arrow-next {
    right: 12px;
}

.mv-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: var(--space-lg);
}

.mv-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #0B3D91;
    background: rgba(11, 61, 145, 0.08);
    cursor: pointer;
    transition: all 220ms ease;
}

.mv-dot.active {
    background: #0B3D91;
    border-color: #0B3D91;
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .mv-arrow {
        display: none;
    }
}

.mv-card {
    min-width: 100%;
    flex: 0 0 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-normal);
}

.mv-card:hover {
    transform: none;
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.mv-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.mv-title {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.mv-text {
    opacity: 0.9;
    line-height: 1.8;
}

/* --------- History Timeline --------- */
.history {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: var(--space-lg);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: var(--space-3xl);
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: var(--space-3xl);
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: var(--space-xl);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: var(--gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.timeline-content h4 {
    margin-bottom: var(--space-sm);
}

.timeline-content p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* --------- Leadership Section --------- */
.leadership {
    background: var(--gray-50);
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-4xl);
}

.board-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.board-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.board-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.board-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.board-card:hover .board-card-image img {
    transform: scale(1.1);
}

.board-card-content {
    padding: var(--space-lg);
    text-align: center;
}

.board-card-name {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.board-card-position {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.board-card-year {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.past-presidents-section {
    text-align: center;
}

.subsection-title {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.subsection-subtitle {
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
}

.past-presidents-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.past-president-item {
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-width: 200px;
}

.past-president-name {
    font-weight: 600;
    color: var(--gray-800);
}

.past-president-year {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.members-section {
    margin-top: var(--space-3xl);
    text-align: center;
}

.members-pager {
    /* Desktop: horizontal pager centered under the grid. Mobile keeps the stacked grid layout. */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: var(--space-xl);
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.members-pager-pages {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    /* keep page buttons in a single row */
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* place arrows and pages in the center column of the pager grid */
.members-pager-arrow:first-of-type {
    grid-column: 2;
    grid-row: 1;
}

.members-pager-pages {
    grid-column: 2;
    grid-row: 2;
}

.members-pager-arrow:last-of-type {
    grid-column: 2;
    grid-row: 3;
}

.members-pager-arrow,
.members-pager-page {
    width: 44px;
    height: 44px;
    border: 1px solid #e6edf6;
    border-radius: 10px;
    background: #ffffff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(11, 61, 145, 0.035);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.members-pager-arrow:hover,
.members-pager-page:hover {
    border-color: #c4a24e;
    color: #0b3d91;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(11, 61, 145, 0.05);
}

.members-pager-arrow:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.members-pager-page.active {
    /* Active page: deep-blue square with white text and a subtle shadow */
    background: #0B3D91;
    /* deep blue */
    border-color: #0B3D91;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(11, 61, 145, 0.18), 0 1px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(0);
}

.members-pager-ellipsis {
    min-width: 24px;
    color: #6b7280;
    font-weight: 700;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
    align-items: start;
    justify-items: center;
}

.member-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: 0;
    width: 100%;
    max-width: 360px;
}

.member-card-content {
    padding: 0.7rem 0.9rem 0.8rem;
}

.member-card-content.no-photo {
    padding: 0.65rem 0.95rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #1e4e9a 0%, #0c3573 100%);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 14px 32px rgba(6, 30, 78, 0.20);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

/* Make all content inside member card white and add a thin gold outline */
.member-card-content.no-photo,
.member-card-content.no-photo * {
    color: #ffffff !important;
}

.member-card-content.no-photo {
    border: 2px solid #FFD36B;
    /* thin, visible gold outline */
    box-shadow: 0 14px 32px rgba(6, 30, 78, 0.20), 0 2px 0 rgba(0, 0, 0, 0.04);
    position: relative;
}

/* subtle gold glow to make outline pop */
.member-card-content.no-photo::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(255, 211, 107, 0.08);
}

/* With-photo member card layout */
.member-card-content.with-photo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #1e4e9a 0%, #0c3573 100%);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(6, 30, 78, 0.20);
    border: 2px solid #FFD36B !important;
}

.member-photo {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(236, 253, 2, 0.12);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-info {
    flex: 1 1 auto;
    min-width: 0;
}

.member-card-content.with-photo .member-card-name {
    text-align: left;
}

.member-card-content.with-photo .member-card-position,
.member-card-content.with-photo .member-card-served,
.member-card-content.with-photo .member-card-number {
    text-align: left;
    color: rgba(255, 255, 255, 0.95);
}

/* Make both photo and no-photo cards share the same static size and outline */
.member-card-content {
    position: relative;
    display: flex;
    align-items: stretch;
    /* let children stretch to fill vertical space */
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    /* reduce internal padding to make the card visually thinner */
    border-radius: 14px;
    background: linear-gradient(180deg, #1e4e9a 0%, #0c3573 100%);
    color: #ffffff;
    /* primary shadow + stronger outer gold stroke so photo cards show the outline */
    box-shadow: 0 14px 32px rgba(6, 30, 78, 0.20), 0 0 0 3px rgba(255, 211, 107, 0.45);
    border: 2px solid #FFD36B;
    min-height: 84px;
    /* slightly smaller minimum to reduce empty space */
}

/* Universal gold outline for member cards (keeps consistent with no-photo variant) */
.member-card-content::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(255, 211, 107, 0.12);
    z-index: 2;
    /* place the glow above the background so it's visible even under photos */
}

/* Ensure card children sit above the outline and text is solid white */
.member-card-content {
    position: relative;
    display: flex;
    align-items: flex-start;
    /* allow the content to grow vertically when name wraps */
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #1e4e9a 0%, #0c3573 100%);
    color: #ffffff;
    /* primary shadow + stronger outer gold stroke so photo cards show the outline */
    box-shadow: 0 14px 32px rgba(6, 30, 78, 0.20), 0 0 0 3px rgba(255, 211, 107, 0.45);
    border: 2px solid #FFD36B;
    min-height: auto;
    /* allow height to be determined by content */
}

.member-card-content.with-photo .member-card-position,
.member-card-content.with-photo .member-card-number,
.member-card-content.with-photo .member-card-served {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* No-photo cards: hide the photo slot and center the text so the card visually matches the photo-less design */
.member-card-content.no-photo {
    justify-content: center;
    text-align: center;
    align-items: center;
    /* vertically center content for no-photo cards */
}

.member-card-content.no-photo .member-photo {
    display: none;
}

.member-photo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    position: relative;
}

.member-photo.member-photo-empty {
    background: rgba(255, 255, 255, 0.04);
}

.member-photo::after {
    /* gold ring effect */
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 211, 107, 0.10);
    pointer-events: none;
}

.member-photo img {
    border: 3px solid #ffffff;
    /* thin white ring */
}

.member-info {
    flex: 1 1 auto;
    min-width: 0;
}

/* Truncate long names to two lines */
.member-card-name {
    font-size: 0.92rem;
    margin: 0;
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
    /* allow long names to wrap */
}

.member-card-position,
.member-card-number,
.member-card-served {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.15rem;
}

.member-card-name {
    font-size: 0.92rem;
    margin: 0;
    color: #ffffff !important;
    font-weight: 700;
}

.member-card-number {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.25rem 0 0.15rem;
    line-height: 1;
}

.member-card-served {
    font-size: 0.78rem;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.95);
}

.member-card-position {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    margin: 0.2rem 0 0.1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.15;
}

.member-card-year {
    display: none;
}

/* Responsive columns: 3 on medium, 2 on small */
@media (max-width: 1100px) {
    .members-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    /* Use two columns on small screens but keep rows equal height */
    .members-grid {
        grid-template-columns: 1fr;
        /* single column on small screens */
        gap: 0.9rem;
        /* increase vertical rhythm between stacked cards */
        align-items: stretch;
        justify-items: center;
    }

    .members-pager {
        /* use a 3-row grid so arrows can sit above and below the numbered pages (mobile layout) */
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto auto;
        align-items: center;
        justify-items: center;
        gap: 0.45rem;
        width: 100%;
    }

    /* place the previous arrow at the top center */
    .members-pager-arrow:first-of-type {
        grid-column: 2;
        grid-row: 1;
    }

    /* pages sit in the middle row, centered */
    .members-pager-pages {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        gap: 0.45rem;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* place the next arrow at the bottom center */
    .members-pager-arrow:last-of-type {
        grid-column: 2;
        grid-row: 3;
    }

    .members-pager-arrow,
    .members-pager-page {
        width: 40px;
        height: 40px;
        border-radius: 7px;
        font-size: 0.88rem;
    }

    .member-card {
        display: block;
        /* let cards size to their content */
    }

    .member-card-content.no-photo {
        padding: 0.55rem 0.7rem;
        border-radius: 12px;
        min-height: 64px;
    }

    /* Mobile adjustments: two-column cards, photos and spacing adjusted */
    .member-card-content {
        padding: 0.32rem 0.4rem;
        /* make the mobile card slimmer */
        display: flex;
        flex-direction: row;
        align-items: stretch;
        /* let children stretch vertically */
        width: 100%;
        height: 100%;
        /* fill the card so all cards in a row get same height */
    }

    .member-photo {
        flex: 0 0 40px;
        /* portrait becomes slightly smaller on mobile */
        width: 40px;
        height: 40px;
        margin-right: 0.18rem;
        /* reduce gap between photo and text */
        border-radius: 8px;
        /* square with small rounded corners */
        overflow: hidden;
    }

    .member-info {
        padding-right: 0.1rem;
        /* allow text to use more of the card width */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* keep the name and position close together */
        gap: 0.06rem;
        height: 100%;
    }

    .member-card-content .member-card-name {
        color: #ffffff !important;
        opacity: 1 !important;
        margin-bottom: 0.04rem;
        line-height: 1.03;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    }

    .member-card-content .member-card-position {
        margin-top: 0;
    }

    .member-info .member-bottom {
        margin-top: 0.05rem;
        display: flex;
        flex-direction: column;
        gap: 0.03rem;
    }

    .member-photo img {
        border: 2px solid #ffffff;
        /* slightly thinner white ring on mobile */
    }

    .member-photo::after {
        inset: -2px;
        /* reduce ring spread on mobile */
        border-radius: 10px;
        /* match rectangular ring */
        box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.08);
    }

    .member-card-name {
        font-size: 0.75rem;
    }

    .member-card-number {
        font-size: 0.72rem;
    }

    .member-card-served {
        font-size: 0.58rem;
    }

    .member-card-position {
        font-size: 0.58rem;
        margin-bottom: 0;
    }
}

/* --------- Gallery Section --------- */
.gallery {
    background: var(--white);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.filter-btn {
    background: var(--gray-100);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-carousel {
    flex: 1;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.gallery-nav:hover {
    background: rgba(15, 23, 42, 1);
    transform: scale(1.05);
}

.gallery-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gallery-nav i {
    font-size: 0.9rem;
}

.gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    padding: 0.5rem 0;
    align-items: stretch;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Normal gallery item */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
    flex: 0 0 calc((100% - 2.5rem) / 3);
    max-width: calc((100% - 2.5rem) / 3);
}

.gallery-item:not(.expanded):hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.gallery-preview {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    padding: 0.55rem;
    overflow: hidden;
}

.gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.gallery-item:not(.expanded):hover .gallery-preview img {
    transform: scale(1.05);
}

.gallery-hover {
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-hover i {
    font-size: 1.5rem;
    color: #fff;
}

.gallery-photo-count {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    z-index: 2;
}

.gallery-item:not(.expanded):hover .gallery-hover {
    opacity: 1;
}

.gallery-card-info {
    padding: 1rem 1.25rem;
    background: #fff;
}

.gallery-card-info .gallery-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hidden expanded section */
.gallery-expanded {
    display: none;
}

/* Expanded state */
.gallery-item.expanded {
    position: relative;
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    min-height: 420px;
    cursor: default;
    border-radius: 20px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    border: 1px solid #dbe4ef;
    outline: none;
    overflow: hidden;
    background: #fff;
}

.gallery-item.expanded .gallery-preview,
.gallery-item.expanded .gallery-card-info {
    display: none;
}

.gallery-grid.gallery-expanded-open .gallery-item:not(.expanded) {
    display: none;
}

.gallery-item.expanded .gallery-expanded {
    display: flex;
    position: relative;
    animation: expandIn 0.25s ease-out;
    min-height: 420px;
    background: #ffffff;
}

.gallery-item.expanded .gallery-expanded-image,
.gallery-item.expanded .gallery-expanded-info {
    min-width: 0;
}

@keyframes expandIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gallery-expanded-image {
    flex: 1;
    min-width: 0;
    max-width: 52%;
    background: radial-gradient(circle at top, #1f2937 0%, #0f172a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    aspect-ratio: 1 / 1;
    /* force square area for expanded image */
}

.gallery-expanded-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    object-fit: cover;
    /* crop to fill the square */
    object-position: center;
    display: block;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

.gallery-expanded-info {
    flex: 1;
    min-width: 0;
    padding: 1.25rem;
    border-left: 1px solid #e2e8f0;
    display: flex;
    align-items: stretch;
    background: #f8fafc;
    overflow: auto;
}

.gallery-info-box {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.gallery-item.expanded .gallery-collapse-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
}

@media (max-width: 900px) {
    .gallery-item.expanded {
        min-height: 0;
    }

    .gallery-item.expanded .gallery-expanded {
        flex-direction: column;
        min-height: 0;
    }

    .gallery-expanded-image {
        max-width: none;
        flex: 0 0 52%;
    }

    .gallery-expanded-info {
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
}

.gallery-expanded-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.gallery-expanded-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.gallery-photo-strip {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    margin-top: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.gallery-photo-thumb {
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    flex: 0 0 92px;
    width: 92px;
}

.gallery-photo-thumb img {
    display: block;
    width: 100%;
    height: 92px;
    object-fit: cover;
}

.gallery-photo-thumb.active {
    outline: 3px solid #fde68a;
    /* yellow highlight */
    transform: translateY(-2px);
}

.gallery-collapse-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    font-size: 1.125rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gallery-collapse-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.gallery-collapse-btn:active {
    transform: scale(0.95);
}

/* Mobile expanded */
@media (max-width: 768px) {
    .gallery-carousel-wrapper {
        gap: 0.75rem;
    }

    .gallery-grid {
        gap: 0.9rem;
    }

    .gallery-item {
        flex: 0 0 calc((100% - 0.9rem) / 2);
        max-width: calc((100% - 0.9rem) / 2);
    }

    .gallery-item {
        border-radius: 12px;
    }

    .gallery-card-info {
        padding: 0.75rem 1rem;
    }

    .gallery-card-info .gallery-title {
        font-size: 0.8125rem;
    }

    .gallery-item.expanded {
        border-radius: 16px;
    }

    /* Simplified animation for mobile - no transform, just opacity */
    .gallery-item.expanded .gallery-expanded {
        flex-direction: column;
        animation: none;
        min-height: 0;
    }

    @keyframes expandInMobile {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .gallery-item.expanded .gallery-expanded {
        animation: expandInMobile 0.2s ease-out;
    }

    .gallery-expanded-image {
        max-width: 100%;
        padding: 0.75rem;
        border-radius: 12px;
    }

    .gallery-expanded-image img {
        min-height: 0;
        max-width: 90vw;
        max-height: 60vh;
        object-fit: contain;
        border-radius: 10px;
        padding: 0.25rem;
    }

    .gallery-expanded-info {
        padding: 0.75rem;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }

    .gallery-info-box {
        padding: 1.25rem;
    }

    .gallery-expanded-title {
        font-size: 1rem;
    }

    .gallery-expanded-desc {
        font-size: 0.875rem;
    }
}

/* --------- Events Section --------- */
.events {
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.event-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.event-date-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-lg);
    text-align: center;
    min-width: 100px;
}

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

.event-date-month {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.event-content {
    padding: var(--space-lg);
    flex: 1;
}

.event-sponsor-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: var(--space-sm);
}

.event-type {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.event-title {
    margin-bottom: var(--space-sm);
}

.event-description {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--gray-500);
}

.event-meta i {
    width: 20px;
    color: var(--secondary-color);
}

.event-speaker-block {
    margin-top: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.8rem;
    border: 1px solid rgba(47, 86, 111, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.75);
}

.event-speaker-photo-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(216, 155, 53, 0.85);
    box-shadow: 0 0 0 2px rgba(47, 86, 111, 0.25);
    flex: 0 0 88px;
    background: var(--gray-100);
}

.event-speaker-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-speaker-photo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--primary-color);
    font-size: 1.6rem;
}

.event-speaker-copy {
    min-width: 0;
}

.event-speaker-title {
    margin: 0 0 0.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.event-speaker-name {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.event-speaker-topic {
    margin: 0.25rem 0 0;
    color: var(--gray-700);
    font-size: 0.92rem;
    line-height: 1.4;
}

.event-sponsor-block {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
    display: grid;
    gap: var(--space-sm);
}

.event-sponsor-label {
    display: inline-flex;
    width: fit-content;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(47, 86, 111, 0.1);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-sponsor-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-50);
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    flex: initial;
    border: 1px solid rgba(196, 145, 57, 0.55);
    box-shadow: 0 0 0 2px rgba(196, 145, 57, 0.2), 0 10px 22px rgba(24, 38, 62, 0.18);
}

.event-sponsor-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(120deg, rgba(173, 121, 37, 0.75), rgba(255, 235, 163, 0.9), rgba(173, 121, 37, 0.75));
    background-size: 230% 230%;
    animation: sponsorGoldShine 3.4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.event-sponsor-layout {
    display: flex;
    gap: var(--space-md);
    align-items: stretch;
    width: 100%;
}

.event-sponsor-copy {
    display: grid;
    min-width: 0;
    flex: 1;
}

.event-sponsor-copy-card {
    display: grid;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(47, 86, 111, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    min-height: 220px;
    height: 100%;
    align-content: start;
    justify-items: start;
}

.event-sponsor-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.event-sponsor-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.event-sponsor-image-link:hover .event-sponsor-image {
    transform: scale(1.03);
}

.event-sponsor-name {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.event-sponsor-divider {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d89b35, #f2b95d);
}

.event-sponsor-description {
    margin: 0;
    color: var(--gray-600);
}

.event-sponsor-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.event-sponsor-link:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .event-speaker-block {
        align-items: flex-start;
    }

    .event-speaker-photo-wrap {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .event-sponsor-gallery {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-sm);
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .event-sponsor-gallery .event-sponsor-image-wrap {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 1 / 1;
        scroll-snap-align: none;
    }

    .event-sponsor-image-wrap {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: none;
        flex: initial;
    }

    .event-sponsor-image {
        transform: none;
    }
}

@keyframes sponsorGoldShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 180% 50%;
    }
}

.event-sponsor-form-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.sponsor-settings {
    display: none;
    gap: 1rem;
}

.sponsor-settings.active {
    display: grid;
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.toggle-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

/* --------- Downloads Section --------- */
.downloads {
    background: var(--white);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.download-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    transition: all var(--transition-normal);
}

.download-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.download-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.download-content {
    flex: 1;
}

.download-title {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.download-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.download-btn:hover {
    color: var(--primary-color);
}

/* --------- Join Us Section --------- */
.join-us {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.join-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.join-text h2 {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.join-text p {
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.join-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.join-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.join-benefits i {
    color: var(--accent-color);
}

.join-form-container {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.join-form h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--primary-color);
}

/* --------- Contact Section --------- */
.contact {
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-card {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--outline-gold);
    line-height: 1;
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.contact-details p,
.contact-details a {
    color: var(--gray-600);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--outline-gold);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: var(--outline-gold);
}

.social-link i,
.footer-social a i {
    color: var(--outline-gold) !important;
}

.contact-form-container {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

/* --------- Forms --------- */
.form-group {
    margin-bottom: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --------- Map --------- */
.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    display: block;
}

/* --------- Footer --------- */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-4xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--outline-gold);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--accent-color);
}

/* --------- Lightbox --------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: flex-end;
    justify-content: center;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-panel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px 24px 0 0;
    display: flex;
    overflow: hidden;
    box-shadow:
        0 -10px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.lightbox.active .lightbox-panel {
    transform: translateY(0);
    opacity: 1;
}

.lightbox.mobile-hide-nav .lightbox-nav {
    display: none !important;
}

.lightbox-image-container {
    position: relative;
    flex: 1.5;
    min-width: 0;
    background: #0f0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image-container img {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.lightbox.active .lightbox-image-container img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-info {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 280px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.lightbox-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.lightbox.active .lightbox-title {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-description {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 2rem 0;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.lightbox.active .lightbox-description {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-counter {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.lightbox.active .lightbox-counter {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-counter span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.lightbox-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

/* Mobile lightbox - stack vertically */
@media (max-width: 768px) {
    .lightbox {
        padding: 0;
    }

    .lightbox-panel {
        flex-direction: column;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
    }

    .lightbox-image-container {
        flex: none;
        height: 50vh;
        min-height: 250px;
    }

    .lightbox-image-container img {
        max-height: 50vh;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 0.75rem;
    }

    .lightbox-next {
        right: 0.75rem;
    }

    .lightbox-info {
        flex: 1;
        min-width: unset;
        padding: 1.5rem 1.25rem 2rem;
        overflow-y: auto;
    }

    .lightbox-title {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

    .lightbox-description {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }

    .lightbox-counter {
        padding-top: 1rem;
    }

    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* --------- Toast Notifications --------- */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-tooltip);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: slideIn 0.3s ease;
    min-width: 300px;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast i {
    font-size: 1.25rem;
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--error);
}

.toast.warning i {
    color: var(--warning);
}

.toast.info i {
    color: var(--info);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --------- Back to Top --------- */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* --------- Loading Placeholder --------- */
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl);
    color: var(--gray-500);
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    display: block;
}

/* --------- Empty State --------- */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--gray-500);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

/* --------- Responsive Styles --------- */
@media (max-width: 1024px) {

    .about-grid,
    .join-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-image {
        order: -1;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(68vw, 260px);
        max-width: 260px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 72px 14px 18px;
        gap: var(--space-md);
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--gray-700);
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        z-index: calc(var(--z-fixed) + 2);
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .nav-logo {
        max-width: calc(100% - 72px);
        flex: 0 1 auto;
    }

    .nav-logo img {
        width: 68px;
        height: 68px;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-marker {
        left: 10px !important;
        right: auto !important;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .events-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
    }

    .toast {
        min-width: auto;
    }

    .back-to-top {
        right: var(--space-md);
        bottom: var(--space-md);
    }

    .hero-title {
        max-width: 12ch;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        line-height: 1.12;
        word-break: keep-all;
    }

    .nav-logo img {
        width: 64px;
        height: 64px;
    }

    .nav-menu {
        width: min(64vw, 230px);
        max-width: 230px;
        padding: 68px 12px 16px;
    }

    .nav-menu .nav-link {
        font-size: 1.125rem;
        padding: 9px 0;
    }
}

/* --------- Shop Section --------- */
.shop {
    background: var(--gray-50);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

/* Normal shop item (collapsed) */
.shop-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border: 2px solid var(--outline-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-item:not(.expanded):hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.shop-preview {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 0;
}

/* Force preview image to exact square size */
.shop-carousel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-preview img,
.shop-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

/* Carousel controls overlay placed inside preview */
.shop-prev,
.shop-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
}

.shop-prev {
    left: 12px;
}

.shop-next {
    right: 12px;
}

.shop-prev:hover,
.shop-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Hide carousel controls until the item is expanded */
.shop-item:not(.expanded) .shop-prev,
.shop-item:not(.expanded) .shop-next {
    display: none;
}

.shop-thumb-strip {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.shop-thumb {
    width: 64px;
    height: 48px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.shop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

.shop-thumb.active {
    border-color: #FFD36B;
    box-shadow: 0 6px 18px rgba(255, 211, 107, 0.08);
}

/* Hide small thumbnail strip (remove small pictures from shop items) */
.shop-thumb-strip {
    display: none !important;
}

.shop-item:not(.expanded):hover .shop-preview img {
    transform: none;
}

.shop-hover {
    display: none;
    pointer-events: none;
}

.shop-card-info {
    padding: 1rem 1.25rem;
    background: #fff;
}

.shop-card-info .shop-card-name {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-card-info .shop-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Hidden expanded section */
.shop-expanded {
    display: none;
}

/* Expanded state */
.shop-item.expanded {
    grid-column: 1 / -1;
    cursor: default;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--outline-gold);
    outline: 3px solid rgba(212, 175, 55, 0.35);
    outline-offset: 2px;
}

.shop-item.expanded .shop-preview,
.shop-item.expanded .shop-card-info {
    display: none;
}

.shop-item.expanded .shop-expanded {
    display: flex;
    position: relative;
    animation: shopExpandIn 0.25s ease-out;
}

@keyframes shopExpandIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.shop-expanded-image {
    flex: 1;
    min-width: 0;
    max-width: 45%;
    background: #f1f5f9;
    position: relative;
    aspect-ratio: 1 / 1;
}

.shop-expanded-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
}

.shop-expanded-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
}

.shop-info-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shop-expanded-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.shop-expanded-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.shop-expanded-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

/* ---------- Shop Contact Details ---------- */
.shop-expanded-contacts {
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.contact-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.contact-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.shop-contact-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.shop-contact-text:hover {
    color: var(--primary);
}

.shop-contact-text i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.contact-social-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.shop-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.shop-social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.platform-buttons {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.platform-btn.shopee {
    background: #ee4d2d;
}

.platform-btn.tiktok {
    background: #111827;
}

.platform-btn.lazada {
    background: #0f5ed7;
}

.platform-btn:hover {
    filter: brightness(0.95);
    color: #fff;
}

.shop-no-platform {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.shop-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

.shop-buy-btn i {
    font-size: 1.125rem;
}

.shop-collapse-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    font-size: 1.125rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.shop-collapse-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.shop-collapse-btn:active {
    transform: scale(0.95);
}

/* Mobile shop expanded */
@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .shop-item {
        border-radius: 12px;
        position: relative;
    }

    .shop-card-info {
        padding: 0.75rem 1rem;
    }

    .shop-card-info .shop-card-name {
        font-size: 0.8125rem;
    }

    .shop-card-info .shop-card-price {
        font-size: 0.875rem;
    }

    .shop-item.expanded {
        border-radius: 16px;
    }

    .shop-item.expanded .shop-expanded {
        flex-direction: column;
    }

    .shop-expanded-image {
        max-width: 100%;
    }

    .shop-expanded-image img {
        max-height: 300px;
    }

    .shop-expanded-info {
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }

    .shop-info-box {
        padding: 1.25rem;
    }

    .shop-expanded-title {
        font-size: 1.0625rem;
    }

    .shop-expanded-desc {
        font-size: 0.875rem;
    }

    .shop-expanded-price {
        font-size: 1.25rem;
    }
}

/* --------- Global Background Override --------- */
:root {
    --outline-gold: #d4af37;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.08) 100%),
        linear-gradient(180deg, #0f4f96 0%, #1569b5 48%, #0d4a8c 100%);
    color: #eaf4ff;
}

.section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.08) 100%), linear-gradient(135deg, #0f4f96 0%, #1a6fc1 100%) !important;
}

.about {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(135deg, #1060ab 0%, #2b83c7 100%) !important;
}

.mission-vision {
    background: linear-gradient(135deg, rgba(6, 28, 52, 0.76) 0%, rgba(6, 28, 52, 0.58) 100%), url('/assets/images/new.png') center/cover no-repeat !important;
}

.history {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(135deg, #0e5aa0 0%, #1f6fb3 100%) !important;
}

.leadership-gallery-wrap {
    background: linear-gradient(135deg, rgba(7, 30, 55, 0.72) 0%, rgba(7, 30, 55, 0.56) 100%), url('/assets/images/teal.png') center/cover no-repeat;
}

.leadership {
    background: transparent !important;
}

.gallery {
    background: #FDF6D8 !important;
}

.events {
    background: #ffffff !important;
}

.shop {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.23) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(135deg, #0f5999 0%, #2272b2 100%) !important;
}

.contact {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.09) 100%), linear-gradient(135deg, #0f5492 0%, #2a7abd 100%) !important;
}

.footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 100%), linear-gradient(135deg, #0d467f 0%, #1662a8 100%) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.subsection-title,
.about-intro,
.about-body,
.mv-text,
.timeline-content h4,
.event-title,
.board-card-name,
.past-president-name,
.contact-details h4,
.footer-title,
.shop-card-name,
.shop-expanded-title {
    color: #f3f8ff;
}

p,
.section-subtitle,
.section-intro,
.subsection-subtitle,
.event-description,
.board-card-position,
.contact-details p,
.footer-description,
.timeline-year,
.shop-expanded-desc {
    color: #eaf4ff;
}

.header.scrolled {
    background: rgba(15, 79, 150, 0.95);
}

.header.scrolled .nav-link,
.header.scrolled .logo-main {
    color: #f3f8ff;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: #8fd1ff;
}

.header.scrolled .hamburger,
.header.scrolled .hamburger::before,
.header.scrolled .hamburger::after {
    background: #f3f8ff;
}

.hero-description {
    color: #ffffff;
    opacity: 1;
}

.stat-item {
    background: #f6f7f8;
}

.stat-label {
    color: #5f6b78;
}

.gallery-filters .filter-btn {
    background: #f2f4f6;
    color: #2f3c4a;
    border: 1px solid #cfd8df;
}

.gallery-filters .filter-btn:hover,
.gallery-filters .filter-btn.active {
    background: #2d7fc9;
    color: #ffffff;
    border-color: #2d7fc9;
}

@media (max-width: 768px) {
    .nav-menu {
        background: #1a67b1;
        border-left: 1px solid #4d8fce;
    }

    .nav-menu .nav-link {
        color: #f3f8ff;
        border-bottom-color: #4d8fce;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: #8fd1ff;
    }

    .nav-toggle.active .hamburger::before,
    .nav-toggle.active .hamburger::after {
        background: #f3f8ff;
    }

    .hero-overlay {
        background-size: 116px 116px, 86px 86px, cover;
        background-position: 6% 12%, 90% 82%, center;
    }

    .hero-overlay::before {
        background-size: 78px 78px, 56px 56px;
        background-position: 88% 14%, 8% 84%;
        opacity: 0.62;
    }
}

.timeline-content {
    background: #1a67b1;
    border: 1px solid #4d8fce;
}

.timeline-content h4,
.timeline-content p {
    color: #f3f8ff;
}

.timeline-year {
    background: #4d8fce;
    color: #f3f8ff;
}

.board-card,
.board-card-content,
.past-president-item {
    background: #ffffff;
    border: 1px solid #cfe0f2;
}

.board-card-image {
    background: #f5f9ff;
}

.board-card-name,
.board-card-year,
.past-president-name,
.past-president-year {
    color: #1f2d3d;
}

.board-card-position,
.past-president-position {
    color: #355a7c;
}

.event-card {
    background: #6eb3e2;
    border: 1px solid var(--outline-gold);
}

.event-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.08) 100%), #6eb3e2;
}

.event-date-badge {
    background: #0d3f75;
    color: #f3f8ff;
}

.event-type {
    color: #08334a;
    background: #f2d06b;
}

.event-title,
.event-description,
.event-meta,
.event-meta span {
    color: #08334a;
}

.event-meta i {
    color: #0f4f96;
}

.events .event-title,
.events .event-description,
.events .event-meta,
.events .event-meta span {
    color: #113b58 !important;
}

.events .section-title,
.events .section-subtitle {
    color: #1a1a1a !important;
}

.events .section-badge {
    color: #ffffff !important;
}

.events .event-meta i {
    color: #1e5e8f !important;
}

.timeline-content,
.event-meta span,
.past-president-year,
.footer-contact p,
.footer-links a,
.contact-details a {
    color: #eaf4ff;
}

.about-stats .stat-item .stat-label {
    color: #5f6b78 !important;
}

.about-stats .stat-item {
    border: 2px solid var(--outline-gold) !important;
}

.about-image img {
    border: 2px solid var(--outline-gold) !important;
}

.about-image-badge {
    border: 2px solid var(--outline-gold) !important;
}

/* Global gold outlines for themed public sections */
.section *,
.about *,
.mission-vision *,
.history *,
.leadership *,
.gallery *,
.events *,
.shop *,
.contact *,
.footer * {
    border-color: var(--outline-gold) !important;
}

/* Keep expanded shop text readable on light info panel */
.shop-item.expanded .shop-info-box .shop-expanded-title {
    color: #12324c;
}

.shop-item.expanded .shop-info-box .shop-expanded-desc {
    color: #425e78;
}

.shop-item.expanded .shop-info-box .shop-expanded-price {
    color: #0f4f96;
}

.shop-item.expanded .shop-info-box .shop-no-platform {
    color: #5c7084;
}

/* White-toned sections while keeping blue-compatible accents */
.about,
.history,
.contact {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.96) 100%) !important;
}

.about .section-title,
.about .section-subtitle,
.about .about-intro,
.about .about-body,
.history .section-title,
.history .section-subtitle,
.history .section-intro,
.history h4,
.history p,
.contact .section-title,
.contact .section-subtitle,
.contact h4,
.contact p,
.contact a {
    color: #1e3448 !important;
}

.contact .form-group label {
    color: #2a4358 !important;
}

.contact .form-group input,
.contact .form-group textarea,
.contact .form-group select {
    background: #ffffff;
    color: #1e3448;
    border-color: #b9d0e3;
}

.contact .form-group input::placeholder,
.contact .form-group textarea::placeholder {
    color: #6f8598;
}

/* Keep history timeline card text readable on blue cards */
.history .timeline-content h4,
.history .timeline-content p,
.history .timeline-year {
    color: #f3f8ff !important;
}

.history .timeline-content {
    background: #ffffff !important;
}

.history .timeline-content h4,
.history .timeline-content p {
    color: #1e3448 !important;
}

.history .timeline-content .timeline-year {
    color: #ffffff !important;
}

/* ============================================
   2026 Main Page Redesign (Sample-inspired)
   ============================================ */

:root {
    --primary-color: #0B3D91;
    --primary-dark: #072f72;
    --secondary-color: #0B3D91;
    --accent-color: #C9A227;
    --accent-dark: #af8d22;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: #333;
    background: #ffffff;
}

body.menu-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.subsection-title,
.hero-title,
.event-title,
.board-card-name,
.shop-item-name,
.gallery-title {
    font-family: var(--font-heading) !important;
    color: #0B3D91 !important;
}

.container {
    max-width: 1200px;
    padding-left: 5%;
    padding-right: 5%;
}

.section {
    padding: 60px 0;
    background: #ffffff !important;
}

/* Thin gold divider between sections */
.section {
    border-top: 3px solid #C9A227;
}

.section-header {
    margin-bottom: 36px;
}

.section-badge {
    background: #0B3D91 !important;
    color: #ffffff !important;
    border: none !important;
}

.section-subtitle,
.section-intro,
.about-intro,
.about-body,
.mv-text,
.event-description,
.board-card-position,
.past-president-year,
.contact-details p,
.footer-brand p,
.timeline-content p,
.shop-item-description {
    color: #465466 !important;
}

.header,
.header.scrolled {
    background: #0B3D91 !important;
    box-shadow: none !important;
}

.navbar {
    padding: 20px 0;
}

.nav-logo {
    gap: 12px;
}

.nav-logo img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.logo-main,
.header.scrolled .logo-main {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
}

.logo-sub {
    color: #d8e7ff !important;
    font-size: 0.72rem;
}

.nav-link,
.header.scrolled .nav-link {
    color: #ffffff !important;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active,
.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: #f4d97b !important;
}

.hero {
    min-height: 78vh;
    padding-top: 120px;
}

.hero-bg {
    background: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat !important;
}

.hero-overlay {
    background: linear-gradient(rgba(11, 61, 145, 0.85), rgba(11, 61, 145, 0.85)) !important;
}

.hero-overlay::before {
    display: none !important;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.18) !important;
    border: none !important;
    color: #ffffff !important;
}

.hero-title,
.hero-subtitle,
.hero-description {
    color: #ffffff !important;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.hero-scroll {
    display: none;
}

.credibility-strip {
    background: #F5F6F8;
    color: #23354f;
    text-align: center;
    font-weight: 600;
    padding: 22px 5%;
    border-top: 1px solid #e6ebf2;
    border-bottom: 1px solid #e6ebf2;
}

.btn,
.btn-primary {
    background: #C9A227 !important;
    color: #ffffff !important;
    border: 1px solid #C9A227 !important;
    border-radius: 4px;
    font-weight: 600;
}

.btn:hover,
.btn-primary:hover {
    background: #af8d22 !important;
    border-color: #af8d22 !important;
    transform: translateY(-1px);
}

.btn-outline {
    background: #ffffff !important;
    color: #0B3D91 !important;
    border-color: #ffffff !important;
}

.btn-outline:hover {
    background: #eaf1ff !important;
    color: #0B3D91 !important;
}

.about,
.history,
.gallery,
.shop {
    background: #FDF6D8 !important;
}

.mission-vision,
.leadership,
.events {
    background: #ffffff !important;
}

.contact {
    background: #ffffff !important;
}

.leadership-gallery-wrap {
    background: #F5F6F8 !important;
}

.gallery {
    background: #FDF6D8 !important;
}

.about-image img,
.board-card,
.event-card,
.shop-item,
.gallery-item,
.timeline-content,
.mv-card,
.contact-card,
.past-president-item,
.shop-item.expanded,
.gallery-item.expanded {
    background: #ffffff !important;
    border: 1px solid #e2e7ef !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
}

.contact-card {
    padding-right: 12px;
}

.contact-details {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
}

.contact-details p,
.contact-details a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-date-badge,
.timeline-year,
.mv-icon,
.contact-icon,
.shop-item-price {
    background: #0B3D91 !important;
    color: #ffffff !important;
}

.event-type,
.featured-badge,
.shop-item-category {
    background: #C9A227 !important;
    color: #ffffff !important;
    border: none !important;
}

.gallery-filters .filter-btn {
    background: #ffffff;
    color: #0B3D91;
    border: 1px solid #d6dce6;
}

.gallery-filters .filter-btn:hover,
.gallery-filters .filter-btn.active {
    background: #0B3D91;
    color: #ffffff;
    border-color: #0B3D91;
}

.footer {
    background: #0B3D91 !important;
    color: #ffffff !important;
}

.footer *,
.footer p,
.footer a,
.footer h4,
.footer-title,
.footer-contact p,
.footer-links a {
    color: #ffffff !important;
}

.footer a:hover {
    color: #f4d97b !important;
}

.back-to-top {
    background: #0B3D91;
    color: #ffffff;
}

@media (max-width: 768px) {
    .nav-menu {
        background: #0B3D91 !important;
        border-left: none;
    }

    .nav-menu .nav-link {
        border-bottom-color: rgba(255, 255, 255, 0.2) !important;
    }

    .nav-logo img {
        width: 58px;
        height: 58px;
    }

    .credibility-strip {
        font-size: 0.92rem;
        line-height: 1.5;
    }
}

/* --------- Layout Stabilization Pass --------- */
:root {
    --outline-gold: #d6deea;
}

.navbar .container {
    max-width: none;
    padding-left: 3%;
    padding-right: 3%;
}

.nav-menu {
    margin-left: auto;
}

.header {
    backdrop-filter: none;
}

.navbar {
    min-height: 76px;
}

.nav-logo img {
    width: 46px;
    height: 46px;
}

.logo-main {
    font-size: 1rem;
}

.logo-sub {
    font-size: 0.7rem;
}

.hero {
    min-height: 72vh;
    padding-top: 132px;
}

.hero-content {
    max-width: 760px;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.hero-title {
    font-size: clamp(2.1rem, 4.8vw, 3.2rem);
    line-height: 1.15;
}

.hero-description {
    max-width: 680px;
    margin-left: 0;
    margin-right: 0;
}

.hero-buttons {
    justify-content: flex-start;
}

.credibility-strip {
    font-size: 0.96rem;
    padding-top: 18px;
    padding-bottom: 18px;
}

.section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.section-header {
    margin-bottom: 30px;
}

.mv-slider,
.timeline-content,
.contact-form,
.map-container {
    border-radius: 8px;
}

@media (max-width: 992px) {
    .logo-text {
        display: none;
    }

    .navbar {
        min-height: 70px;
    }
}

@media (max-width: 768px) {
    .nav-logo img {
        width: 42px;
        height: 42px;
    }

    .nav-menu {
        width: min(60vw, 260px);
        max-width: 260px;
        padding-top: 78px;
    }

    .nav-menu .nav-link {
        font-size: 1rem;
        padding: 12px 0;
        width: 100%;
    }

    .hero {
        min-height: 64vh;
        padding-top: 116px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    #heroTitle {
        white-space: normal;
    }

    #heroTitle .hero-mobile-break {
        display: block;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-buttons {
        align-items: flex-start;
    }

    .credibility-strip {
        font-size: 0.86rem;
        padding: 14px 20px;
    }

    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 58vh;
        padding-top: 108px;
    }

    .hero-content {
        padding: 0;
        text-align: left;
    }

    .hero-title {
        font-size: clamp(1.55rem, 8.5vw, 2.1rem);
    }

    .btn-lg {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
}

/* --------- Reference Match Pass --------- */
.navbar .container {
    max-width: none;
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.nav-logo {
    margin-left: 0;
    flex: 0 0 auto;
}

.nav-menu {
    margin-left: auto;
}

.hero {
    display: block;
    min-height: auto;
    padding: 140px 5% 120px;
}

.hero .container {
    max-width: 1200px;
    padding-left: 0;
    padding-right: 0;
}

.hero-content {
    max-width: 980px;
    text-align: left;
    margin-left: 0;
}

.hero-badge {
    display: none !important;
}

.hero-title {
    font-size: clamp(2.7rem, 5.2vw, 4.5rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    display: none;
}

.hero-description {
    font-size: 2rem;
    line-height: 1.5;
    max-width: 1020px;
    margin-bottom: 2rem;
}

.hero-buttons {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
}

.credibility-strip {
    font-size: 1.45rem;
    font-weight: 600;
    padding: 26px 5%;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: clamp(2.1rem, 5.4vw, 3.1rem);
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .credibility-strip {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
        padding-top: 12px;
        box-shadow: -8px 0 24px rgba(11, 61, 145, 0.25);
    }

    .nav-logo img {
        width: 46px;
        height: 46px;
    }

    .hero {
        padding: 96px 5% 72px;
        min-height: calc(100vh - 165px);
        display: flex;
        align-items: center;
    }

    .hero .container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero-content {
        max-width: 640px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: clamp(1.7rem, 8.8vw, 2.6rem);
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.55;
        max-width: 34ch;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: auto;
        min-width: 200px;
    }

    .credibility-strip {
        font-size: 0.88rem;
        line-height: 1.5;
        padding: 14px 16px;
    }

    .contact-card {
        align-items: center;
        padding: 0 10px 0 10px;
    }

    .contact-details {
        padding-right: 8px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: calc(100vh - 145px);
        padding: 92px 5% 64px;
    }
}

/* --------- Anchor Offset Fix --------- */
html {
    scroll-padding-top: 92px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 76px;
    }
}

/* --------- Leadership Text Contrast Fix --------- */
.leadership .section-title,
.leadership .subsection-title,
.leadership .board-card-name,
.leadership .past-president-name {
    color: #123a70 !important;
}

.leadership .member-card-name,
.member-card-content .member-card-name {
    color: #ffffff !important;
}

.leadership .section-subtitle,
.leadership .subsection-subtitle,
.leadership .board-card-position,
.leadership .board-card-year,
.leadership .past-president-year,
.leadership .member-card-position,
.leadership .member-card-served,
.leadership .member-card-year {
    color: #3f5872 !important;
}

/* Override leadership contrast fix for member cards with no-photo variant
   Ensure white text and visible gold outline for member tiles as requested */
.leadership .member-card-content.no-photo,
.leadership .member-card-content.no-photo * {
    color: #ffffff !important;
}

.leadership .member-card-content.no-photo {
    border: 2px solid #FFD36B !important;
}

/* --------- Mobile Board Card Resize --------- */
@media (max-width: 768px) {
    .board-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--space-md);
    }

    .board-card-image {
        height: 180px;
    }

    .board-card-content {
        padding: var(--space-md);
    }

    .board-card-name {
        font-size: 1rem;
        margin-bottom: var(--space-xs);
    }

    .board-card-position {
        font-size: 0.85rem;
    }

    /* --------- Mobile Stats Grid Format --------- */
    .about-stats {
        gap: 0;
        background: var(--white);
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: var(--shadow-md);
        border: 2px solid #384c94 !important;
        /* Fix Safari clipping issue safely */
        transform: translateZ(0);
    }

    .about-stats .stat-item {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: var(--space-lg) var(--space-xs);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .about-stats .stat-item:nth-child(1),
    .about-stats .stat-item:nth-child(2) {
        border-bottom: 2px solid #1d0fb8 !important;
    }

    .about-stats .stat-item:nth-child(1),
    .about-stats .stat-item:nth-child(3) {
        border-right: 2px solid #1d0fb8 !important;
    }
}

/* --------- Shopify Headless Buy Button Styles --------- */
.shopify-checkout-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all var(--transition-normal) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem !important;
    width: 100%;
}

.shopify-checkout-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.shopify-checkout-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}