/* ==========================================================================
   EESA JSPM UNIVERSITY - HERALDIC ACADEMIC DESIGN SYSTEM
   Palette: Navy (#1F3B8C), Crimson (#C8202F), Gold (#F5B700), White (#FFFFFF), Gray (#F4F6FA)
   Typography: Playfair Display (Headings) & Inter (UI/Body)
   ========================================================================== */

:root {
    /* Heraldic Palette */
    --navy: #1F3B8C;
    --navy-dark: #14285F;
    --navy-light: #2C4FB5;
    --navy-soft: #EEF3FD;

    --crimson: #C8202F;
    --crimson-dark: #9F1723;
    --crimson-light: #E03544;
    --crimson-soft: #FDECEE;

    --gold: #F5B700;
    --gold-dark: #D49D00;
    --gold-light: #FFCA28;
    --gold-soft: #FFF9E6;

    --white: #FFFFFF;
    --bg-light: #F4F6FA;
    --card-bg: #FFFFFF;
    --border-color: #E2E7F1;
    --border-subtle: #EDF1F7;

    --text-primary: #1A2035;
    --text-secondary: #4A5568;
    --text-muted: #718096;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    /* Shadows */
    --shadow-sm: 0 2px 6px rgba(31, 59, 140, 0.05);
    --shadow-md: 0 4px 16px rgba(31, 59, 140, 0.08);
    --shadow-lg: 0 10px 30px rgba(31, 59, 140, 0.12);
    --shadow-card: 0 6px 24px rgba(31, 59, 140, 0.07);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-card: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

button, input, select, textarea {
    font-family: inherit;
}

/* ==========================================================================
   STICKY WHITE HERALDIC NAVBAR
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(31, 59, 140, 0.06);
    transition: var(--transition);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Brand Emblem & Wordmark */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-crest-wrapper {
    position: relative;
    width: 44px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 4px;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(31, 59, 140, 0.15));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.brand-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

/* Center Nav Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-dark);
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--crimson);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--crimson);
}

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

.nav-link.active {
    color: var(--navy);
}

/* Right Nav CTA (Gold Button) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-primary {
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(245, 183, 0, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--gold-dark);
}

.btn-nav-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(245, 183, 0, 0.45);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    gap: 4px;
}

.toggle-bar {
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION (HERALDIC GRADIENT & TORCH WATERMARK)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 70px 24px 60px;
    background: linear-gradient(135deg, rgba(31, 59, 140, 0.04) 0%, #FFFFFF 55%, rgba(200, 32, 47, 0.03) 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-watermark {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 480px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}

.watermark-svg {
    width: 100%;
    height: 100%;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.8px;
    margin-bottom: 24px;
}

.badge-shield {
    font-size: 14px;
}

.hero-heading {
    font-family: var(--font-serif);
    font-size: 46px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-heading .highlight {
    color: var(--crimson);
    position: relative;
    display: inline-block;
}

.hero-heading .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(245, 183, 0, 0.28);
    z-index: -1;
    border-radius: 2px;
}

.hero-subtext {
    max-width: 780px;
    margin: 0 auto 36px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.btn-hero-gold {
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(245, 183, 0, 0.4);
    border: 1px solid var(--gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 183, 0, 0.5);
}

.btn-hero-outline {
    background: var(--white);
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--navy);
    box-shadow: var(--shadow-sm);
}

.btn-hero-outline:hover {
    background: var(--navy-soft);
    border-color: var(--navy-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   STATS STRIP (4 NUMBERS WITH GOLD ACCENTS)
   ========================================================================== */
.stats-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 24px 30px;
    box-shadow: var(--shadow-md);
    max-width: 980px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 4px;
}

.gold-plus {
    color: var(--gold);
    font-weight: 900;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: var(--border-color);
}

/* ==========================================================================
   HERALDIC LAUREL & TORCH DIVIDER
   ========================================================================== */
.heraldic-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1120px;
    margin: 40px auto;
    padding: 0 24px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.divider-emblem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    font-size: 16px;
}

.emblem-shield {
    color: var(--navy);
    font-size: 12px;
}

.emblem-torch {
    font-size: 20px;
}

/* ==========================================================================
   COMMON SECTION STYLES
   ========================================================================== */
.section {
    padding: 60px 24px;
}

.section-container {
    max-width: 1180px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 46px;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--crimson);
    background: var(--crimson-soft);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    border: 1px solid rgba(200, 32, 47, 0.15);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   QUICK-LINKS: 2X2 HERALDIC QUADRANT GRID
   Alternating Crimson (#C8202F) & Navy (#1F3B8C) cards with white line icons
   ========================================================================== */
.quadrants-section {
    background: var(--bg-light);
}

.quadrants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.quadrant-card {
    position: relative;
    border-radius: var(--radius-card);
    padding: 36px 32px;
    color: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.quadrant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(31, 59, 140, 0.18);
}

.quad-navy {
    background: linear-gradient(145deg, #1F3B8C 0%, #152A68 100%);
    border-left: 5px solid var(--gold);
}

.quad-crimson {
    background: linear-gradient(145deg, #C8202F 0%, #9E1522 100%);
    border-left: 5px solid var(--gold);
}

.quad-corner-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at top right, rgba(245, 183, 0, 0.25), transparent 70%);
}

.quad-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.quad-svg {
    width: 26px;
    height: 26px;
    stroke: var(--white);
}

.quad-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.quadrant-card h4 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.quadrant-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 24px;
    flex-grow: 1;
}

.quad-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quad-link:hover {
    color: var(--white);
    transform: translateX(4px);
}

/* ==========================================================================
   ABOUT & WORKS SECTIONS (WHITE CARDS, SOFT SHADOW, 12PX CORNERS)
   ========================================================================== */
.heraldic-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.heraldic-card:hover {
    box-shadow: var(--shadow-card);
    border-color: rgba(31, 59, 140, 0.2);
    transform: translateY(-3px);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.about-card {
    padding: 32px 28px;
    text-align: center;
}

.card-shield-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--navy-soft);
    border: 1px solid rgba(31, 59, 140, 0.15);
    border-radius: 50%;
}

.about-card h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* Domains Ribbon */
.heraldic-panel {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 28px 32px;
    text-align: center;
}

.domains-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 18px;
}

.domain-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.domain-pill {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-dark);
    box-shadow: 0 1px 3px rgba(31, 59, 140, 0.04);
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-card {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
}

.work-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.work-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 4px;
}

.badge-crimson {
    background: var(--crimson-soft);
    color: var(--crimson);
    border: 1px solid rgba(200, 32, 47, 0.2);
}

.badge-navy {
    background: var(--navy-soft);
    color: var(--navy);
    border: 1px solid rgba(31, 59, 140, 0.2);
}

.work-year {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.work-card h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.35;
}

.work-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 22px;
    flex-grow: 1;
}

.work-stats {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
}

/* ==========================================================================
   EVENTS HUB & LIVE REGISTRATION SECTION
   ========================================================================== */
.events-section {
    background: var(--bg-light);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.filter-btn {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--navy);
    background: var(--navy-soft);
}

.filter-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    box-shadow: 0 2px 8px rgba(31, 59, 140, 0.25);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 16px;
    border: 3px solid var(--border-color);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Dynamic Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.event-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border-top: 4px solid var(--navy);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-top-color: var(--crimson);
}

.event-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.event-category-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
    background: var(--navy-soft);
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.status-active {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.status-closed {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.event-card h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.event-card-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.5;
}

.event-card-meta {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.event-price {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 800;
    color: var(--crimson);
}

.btn-event-action {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-event-action:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(31, 59, 140, 0.25);
}

/* ==========================================================================
   FIND MY PASS / TICKET DESK (PASS LOOKUP)
   ========================================================================== */
.pass-lookup-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 38px 34px;
}

.lookup-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-dark);
}

.req {
    color: var(--crimson);
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

input:focus,
select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(31, 59, 140, 0.12);
}

.btn-lookup-gold {
    width: 100%;
    background: var(--gold);
    color: var(--navy-dark);
    border: 1px solid var(--gold-dark);
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(245, 183, 0, 0.35);
    transition: var(--transition);
}

.btn-lookup-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 183, 0, 0.45);
}

/* Pass Results List */
.passes-results-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pass-result-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--navy);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.pass-result-info h4 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.pass-result-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   MODALS (ACADEMIC REGISTRATION & EVENT DETAILS)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(20, 40, 95, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(20, 40, 95, 0.3);
    border: 1px solid var(--border-color);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--crimson-soft);
    color: var(--crimson);
}

.modal-header {
    margin-bottom: 18px;
}

.badge-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--crimson);
    background: var(--crimson-soft);
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.modal-header h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
}

.fee-badge-lg {
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
    color: var(--navy);
    background: var(--navy-soft);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.modal-sub {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.security-callout {
    background: var(--navy-soft);
    border: 1px solid rgba(31, 59, 140, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 12px;
    color: var(--navy);
    line-height: 1.4;
}

.btn-primary-block {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(31, 59, 140, 0.25);
    transition: var(--transition);
}

.btn-primary-block:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(31, 59, 140, 0.35);
}

.btn-primary-block:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Status Message Alert */
.status-msg {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.status-msg.error {
    background: var(--crimson-soft);
    color: var(--crimson-dark);
    border: 1px solid rgba(200, 32, 47, 0.25);
}

.status-msg.success {
    background: #E8F5E9;
    color: #1B5E20;
    border: 1px solid #C8E6C9;
}

.status-msg.info {
    background: var(--navy-soft);
    color: var(--navy-dark);
    border: 1px solid rgba(31, 59, 140, 0.25);
}

/* ==========================================================================
   TICKET MODAL & VERIFIED PASS DESIGN
   ========================================================================== */
.ticket-modal-card {
    max-width: 640px;
    padding: 32px 28px;
    background: var(--white);
}

.ticket-card {
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: 0 6px 20px rgba(31, 59, 140, 0.1);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 2px dashed var(--border-color);
    margin-bottom: 18px;
}

.ticket-title-area h3 {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.ticket-title-area span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.ticket-verified {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.ticket-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.ticket-qr-area {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    flex-shrink: 0;
}

.ticket-qr-area img {
    width: 140px;
    height: 140px;
    display: block;
}

.ticket-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-grow: 1;
    font-size: 12px;
}

.ticket-field span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 2px;
}

.ticket-field strong {
    color: var(--navy);
    font-size: 13px;
}

.ticket-field code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--crimson);
    font-weight: 700;
}

.ticket-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-ticket-download {
    background: var(--navy);
    color: var(--white);
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    flex: 1;
}

.btn-ticket-download:hover {
    background: var(--navy-dark);
}

.btn-ticket-print {
    background: var(--gold);
    color: var(--navy-dark);
    border: 1px solid var(--gold-dark);
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    flex: 1;
}

.btn-ticket-print:hover {
    background: var(--gold-light);
}

/* ==========================================================================
   HERALDIC NAVY FOOTER
   ========================================================================== */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 24px 30px;
    font-size: 13px;
    border-top: 4px solid var(--gold);
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr;
    gap: 40px;
}

.footer-brand-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-torch {
    font-size: 20px;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}

.footer-tagline {
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 4px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 16px;
    letter-spacing: 0.4px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.footer-contact p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.88);
    transition: var(--transition);
}

.footer-contact-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.footer-laurel-ornament {
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

/* Utility */
.hidden {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 3px solid var(--navy);
        flex-direction: column;
        padding: 20px 24px;
        gap: 12px;
        box-shadow: 0 15px 30px rgba(31, 59, 140, 0.15);
    }

    .nav-menu.mobile-open {
        display: flex;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero-heading {
        font-size: 36px;
    }

    .hero-watermark {
        opacity: 0.05;
        width: 320px;
    }

    .stats-strip {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

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

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

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .hero-heading {
        font-size: 28px;
    }

    .hero-subtext {
        font-size: 15px;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .btn-hero-gold,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

    .stats-strip {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .lookup-inputs {
        grid-template-columns: 1fr;
    }

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

    .ticket-content {
        flex-direction: column;
    }

    .ticket-details {
        grid-template-columns: 1fr;
    }

    .ticket-actions-row {
        flex-direction: column;
    }
}

/* ==========================================================================
   PRINT / PDF STYLES - STRICT SINGLE-PAGE PASS PRINTING
   ========================================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    body > *:not(#ticketModal),
    header,
    nav,
    main,
    footer,
    .navbar,
    .site-footer,
    .hero-section,
    .about-section,
    .works-section,
    .events-section,
    .passes-section,
    #eventDetailsModal,
    #registrationModal,
    .modal-close-btn,
    .ticket-actions-row {
        display: none !important;
        visibility: hidden !important;
    }

    #ticketModal {
        display: block !important;
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 auto !important;
        box-shadow: none !important;
    }

    #ticketModal .modal-card {
        display: block !important;
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 auto !important;
        max-width: 650px !important;
        width: 100% !important;
    }

    #printableTicket {
        display: block !important;
        background: #ffffff !important;
        color: #111827 !important;
        border: 2px solid #1F3B8C !important;
        border-radius: 12px !important;
        padding: 24px 28px !important;
        margin: 20px auto !important;
        max-width: 620px !important;
        width: 100% !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    #printableTicket .ticket-header {
        border-bottom: 2px solid #E2E7F1 !important;
    }

    #printableTicket .ticket-qr-area {
        background: #F4F6FA !important;
        border: 1px solid #CBD5E1 !important;
    }

    #printableTicket .ticket-qr-area img {
        width: 150px !important;
        height: 150px !important;
        display: block !important;
    }
}