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

body {
    background: #020108;
    color: #f0ede0;
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
    position: relative;
    max-width: 100%;
}

/* ===== WATERMARK (logo.jpg) ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('logo.jpg');
    background-repeat: repeat;
    background-size: 180px;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}

/* Ensure all content sits above watermark */
.hero, .great-hall, .testimonials, .book-showcase, .extra-sections, .contact, .footer-links, .copyright, .navbar-wrapper, .student-reviews-section {
    position: relative;
    z-index: 1;
}

/* ===== SKIP LINK (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #D4AF37;
    color: #0a0500;
    padding: 8px 16px;
    z-index: 1000;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 10px;
}

/* ===== COMING SOON BUTTON ===== */
.btn-coming-soon {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(212, 175, 55, 0.3);
    color: rgba(212, 175, 55, 0.7);
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    cursor: default;
    text-align: center;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #0a0508;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-title-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 900px;
    pointer-events: none;
}

/* ===== HERO TITLE STYLES ===== */
.hero-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 6px;
    color: rgba(212, 175, 55, 0.7);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.2rem;
    text-shadow: 0 1px 8px rgba(212, 175, 55, 0.15);
}

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 5.5vw, 4.2rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.ht-the {
    font-size: 0.5em;
    font-weight: 400;
    letter-spacing: 6px;
    color: rgba(212, 175, 55, 0.6);
    text-transform: uppercase;
}

.ht-horseman {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 25%, #E8C84A 50%, #D4AF37 75%, #B8860B 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleShine 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    font-size: 1em;
}

.ht-journal {
    font-size: 1.15em;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #E8C84A 0%, #D4AF37 50%, #CD7F32 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleShine 5s ease-in-out infinite 0.5s;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.35));
}

@keyframes titleShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin: 1.2rem 0;
}

.hero-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37, #CD7F32, transparent);
}

.hero-gem {
    width: 10px;
    height: 10px;
    background: #D4AF37;
    transform: rotate(45deg);
    box-shadow: 0 0 15px #D4AF37;
    animation: gemPulse 2.5s ease-in-out infinite;
}

@keyframes gemPulse {
    0%, 100% { box-shadow: 0 0 8px #D4AF37; transform: rotate(45deg) scale(1); }
    50% { box-shadow: 0 0 30px #FFD700; transform: rotate(45deg) scale(1.2); }
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: rgba(240,230,200,0.85);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    border-right: 1px solid rgba(212,175,55,0.3);
    padding-right: 2.5rem;
}

.hero-stat:last-child { border-right: none; padding-right: 0; }

.hero-stat-number {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.3rem;
    color: #D4AF37;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212,175,55,0.3);
}

.hero-stat-label {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 4px;
    color: rgba(240,230,200,0.7);
    text-transform: uppercase;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    cursor: pointer;
    animation: scrollFloat 2.5s ease-in-out infinite;
}

@keyframes scrollFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

.hero-scroll span {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 8px;
    color: #D4AF37;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.hero-scroll svg { width: 20px; stroke: #D4AF37; }

/* ===== HALL EMBLEM ===== */
.hall-emblem {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 5;
}

.hall-emblem canvas {
    display: inline-block;
    opacity: 0.85;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    animation: emblemFloat 5s ease-in-out infinite;
}

@keyframes emblemFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== NAVBAR 3D STYLES ===== */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    padding: 1rem 1rem 0;
    pointer-events: none;
}

.navbar-wrapper * {
    pointer-events: auto;
}

.scene {
    perspective: 700px;
    perspective-origin: 50% 60%;
    width: 100%;
    max-width: 1020px;
}

.nav3d {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(28deg) rotateY(0deg);
    transition: transform .5s cubic-bezier(.23, 1, .32, 1);
    height: 64px;
}

.nav3d:hover {
    transform: rotateX(8deg) rotateY(2deg);
}

.face {
    position: absolute;
    border-radius: 18px;
}

.face-top {
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(212, 175, 55, 0.06) 40%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-bottom-color: rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 0 60px rgba(212, 175, 55, 0.06);
    z-index: 4;
}

.face-back {
    inset: 0;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transform: translateZ(-36px);
    z-index: 1;
}

.face-bottom-wall {
    left: 18px;
    right: 18px;
    bottom: -36px;
    height: 36px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.18) 0%, rgba(100, 60, 0, 0.08) 60%, rgba(0, 0, 0, 0.02) 100%);
    border-left: 1px solid rgba(212, 175, 55, 0.15);
    border-right: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 0 0 12px 12px;
    transform-origin: top center;
    transform: rotateX(-90deg);
    z-index: 2;
}

.face-top-wall {
    left: 18px;
    right: 18px;
    top: -5px;
    height: 5px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(212, 175, 55, 0.2));
    border-radius: 18px 18px 0 0;
    transform-origin: bottom center;
    transform: rotateX(90deg);
    z-index: 3;
}

.face-left-wall {
    top: 4px;
    bottom: 4px;
    left: -36px;
    width: 36px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px 0 0 12px;
    transform-origin: right center;
    transform: rotateY(-90deg);
    z-index: 2;
}

.face-right-wall {
    top: 4px;
    bottom: 4px;
    right: -36px;
    width: 36px;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 0 12px 12px 0;
    transform-origin: left center;
    transform: rotateY(90deg);
    z-index: 2;
}

.nav-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    transform: translateZ(1px);
    flex-wrap: wrap;
    gap: 0.3rem;
}

.brand {
    font-family: 'Cinzel', serif;
    font-size: .75rem;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.8), 0 0 60px rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
    text-decoration: none;
}

.brand small {
    display: inline-block;
    font-size: .45rem;
    letter-spacing: 3px;
    color: rgba(212, 175, 55, 0.4);
    font-weight: 400;
    margin-left: 0.3rem;
}

.links {
    display: flex;
    gap: 0.1rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.links li a {
    display: block;
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255, 240, 180, 0.5);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 8px;
    transition: all .25s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    position: relative;
    white-space: nowrap;
}

.links li a:hover,
.links li a.active {
    color: #FFF8DC;
    background: rgba(255, 255, 255, 0.07);
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.9);
}

.portal-scene {
    perspective: 300px;
    flex-shrink: 0;
}

.portal-btn {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(22deg);
    transition: transform .25s;
    display: inline-block;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.portal-btn:hover {
    transform: rotateX(5deg) translateY(-2px);
}

.portal-btn:active {
    transform: rotateX(30deg) translateY(2px);
}

.portal-top {
    display: block;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(212, 175, 55, 0.35) 50%, rgba(180, 120, 0, 0.25) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.7);
    border-bottom-color: rgba(212, 175, 55, 0.2);
    border-radius: 100px;
    font-family: 'Raleway', sans-serif;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFF8DC;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.9);
    position: relative;
    z-index: 3;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.portal-wall {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(140, 90, 0, 0.6), rgba(60, 30, 0, 0.4));
    border-radius: 100px;
    transform: translateZ(-14px);
    z-index: 2;
    border: 1px solid rgba(120, 70, 0, 0.5);
}

.portal-glow {
    position: absolute;
    inset: -4px;
    border-radius: 100px;
    background: transparent;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 60px rgba(212, 175, 55, 0.15);
    transform: translateZ(-7px);
    z-index: 1;
}

/* ===== GREAT HALL SECTION ===== */
.great-hall {
    position: relative;
    background: linear-gradient(180deg, #0a0508 0%, #120a10 20%, #0a0508 100%);
    padding: 5rem 2rem 4rem;
    z-index: 10;
}

.hall-inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hall-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hall-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.hall-heading {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #D4AF37;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.hall-sub {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: rgba(240,230,200,0.35);
}

.hall-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hall-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.8rem 2rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(212,175,55,0.06);
    transition: all 0.4s ease;
}

.hall-card:hover {
    background: linear-gradient(90deg, rgba(212,175,55,0.08), transparent);
    padding-left: 2.8rem;
}

.hall-card-num {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    color: rgba(212,175,55,0.15);
    min-width: 65px;
    font-weight: 400;
}

.hall-card-name {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #e8dfc7;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
}

.hall-card:hover .hall-card-name {
    color: #D4AF37;
}

.hall-card-desc {
    font-family: 'EB Garamond', serif;
    font-size: 0.85rem;
    color: rgba(240,230,200,0.4);
    line-height: 1.4;
}

.hall-card-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s;
    color: #D4AF37;
}

.hall-card:hover .hall-card-arrow {
    opacity: 0.6;
    transform: translateX(5px);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: linear-gradient(180deg, #0a0508 0%, #0d060a 100%);
    padding: 5rem 2rem;
    border-top: 1px solid rgba(212,175,55,0.08);
    border-bottom: 1px solid rgba(212,175,55,0.08);
}

.testimonials-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    color: #D4AF37;
    letter-spacing: 3px;
}

.testimonials-sub {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: rgba(240,230,200,0.4);
}

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

.testimonial-card {
    background: rgba(20,12,18,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 24px;
    padding: 1.8rem;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,175,55,0.3);
    background: rgba(20,12,18,0.8);
}

.testimonial-stars {
    color: #D4AF37;
    font-size: 0.7rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(240,230,200,0.85);
}

.testimonial-author {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #D4AF37;
    margin-top: 1rem;
}

.testimonial-role {
    font-family: 'EB Garamond', serif;
    font-size: 0.6rem;
    color: rgba(240,230,200,0.3);
}

/* ===== BOOK SHOWCASE ===== */
.book-showcase {
    background: linear-gradient(180deg, #0d060a 0%, #0a0508 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.book-showcase-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.book-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.book-hardcover-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.book-glow {
    position: absolute;
    width: 200px;
    height: 260px;
    background: radial-gradient(ellipse, rgba(212,175,55,0.22) 0%, rgba(212,175,55,0.06) 40%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bookGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bookGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.book-hardcover {
    position: relative;
    width: 180px;
    height: 240px;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.book-hardcover:hover {
    transform: translateY(-8px);
}

.book-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 100%;
    background: linear-gradient(90deg, #080808 0%, #151515 40%, #0a0a0a 60%, #111111 100%);
    border-radius: 3px 0 0 3px;
    z-index: 3;
    box-shadow: inset -1px 0 2px rgba(0,0,0,0.6);
}

.book-spine::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 30%;
    background: rgba(212,175,55,0.4);
}
.book-spine::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 30%;
    background: rgba(212,175,55,0.4);
}

.book-cover-front {
    position: absolute;
    top: 0;
    left: 18px;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, #1a1a1a 0%, #0c0c0c 30%, #050505 60%, #111111 100%);
    border-radius: 0 5px 5px 0;
    box-shadow: 6px 8px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02), inset 0 0 0 1px rgba(212,175,55,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 4;
}

.book-cover-front::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.006) 3px, rgba(255,255,255,0.006) 4px), repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(255,255,255,0.004) 4px, rgba(255,255,255,0.004) 5px);
    border-radius: inherit;
    pointer-events: none;
    z-index: 5;
}

.book-cover-front::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 2px;
    pointer-events: none;
    z-index: 6;
}

.book-cover-logo {
    position: relative;
    z-index: 7;
    width: 150px;
    height: auto;
    max-width: 90%;
    filter: drop-shadow(0 0 12px rgba(212,175,55,0.4));
    opacity: 0.92;
    transition: all 0.4s ease;
}

.book-hardcover:hover .book-cover-logo {
    filter: drop-shadow(0 0 14px rgba(212,175,55,0.5));
    opacity: 1;
}

.book-pages {
    position: absolute;
    top: 3px;
    right: -8px;
    width: 12px;
    bottom: 3px;
    background: linear-gradient(90deg, #f2edd8 0%, #e5dfc5 20%, #f0ebd5 40%, #dbd3b4 60%, #f0ebd5 80%, #e5dfc5 100%);
    border-radius: 0 4px 4px 0;
    z-index: 1;
    box-shadow: -1px 0 1px rgba(0,0,0,0.3);
}

.book-pages::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(170,160,130,0.12) 2px, rgba(170,160,130,0.12) 3px);
    border-radius: 0 3px 3px 0;
}

.book-pages-bottom {
    position: absolute;
    bottom: -5px;
    left: 18px;
    right: -8px;
    height: 8px;
    background: linear-gradient(180deg, #e5dfc5 0%, #d5cba8 50%, #e8e0c8 100%);
    border-radius: 0 0 3px 3px;
    z-index: 1;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

.book-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.book-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(212, 175, 55, 0.8);
    border-radius: 50%;
    animation: bookParticleRise 4.5s linear infinite;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

@keyframes bookParticleRise {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    8% { opacity: 0.9; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-180px) translateX(25px) scale(0.2); opacity: 0; }
}

.book-details {
    text-align: left;
}

.book-showcase-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #D4AF37;
    letter-spacing: 4px;
    margin-bottom: 0.4rem;
}

.book-showcase-subtitle {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: rgba(240,230,200,0.45);
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.book-description {
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(240,230,200,0.75);
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-read-more {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: #D4AF37 !important;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 40px;
    border: 1px solid rgba(212,175,55,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-read-more:hover {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.7);
    transform: translateY(-2px);
    color: #D4AF37 !important;
}

/* ===== EXTRA SECTIONS ===== */
.extra-sections {
    padding: 3rem 2rem;
    background: linear-gradient(180deg, #0a0508 0%, #0d060a 100%);
    border-top: 1px solid rgba(212,175,55,0.06);
    border-bottom: 1px solid rgba(212,175,55,0.06);
}

.extra-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.newsletter-box, .contact-form-box {
    flex: 1;
    background: rgba(20,12,18,0.5);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212,175,55,0.1);
}

.newsletter-box h3, .contact-form-box h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #D4AF37;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.newsletter-form input, .contact-form input, .contact-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(212,175,55,0.2);
    padding: 0.7rem;
    margin-bottom: 0.8rem;
    color: #f0ede0;
    border-radius: 12px;
    font-family: 'EB Garamond', serif;
}

.newsletter-form button, .contact-form button {
    background: #D4AF37;
    color: #0a0500;
    border: none;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    border-radius: 40px;
    font-family: 'Cinzel', serif;
    transition: 0.3s;
}

.newsletter-form button:hover, .contact-form button:hover {
    transform: translateY(-2px);
    background: #e6c34c;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 4rem 2rem;
    text-align: center;
    background: #0a0508;
}

.contact-heading {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: #D4AF37;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    text-decoration: none;
    color: rgba(240,230,200,0.5);
    transition: 0.3s;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link:hover {
    color: #D4AF37;
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
    position: relative;
    z-index: 1;
}

.footer-links {
    text-align: center;
    padding: 2rem;
    font-size: 0.7rem;
    color: rgba(240,230,200,0.25);
    border-top: 1px solid rgba(212,175,55,0.06);
}

.footer-links a {
    color: #D4AF37;
    text-decoration: none;
    margin: 0 0.5rem;
}

.copyright {
    text-align: center;
    padding: 1rem 2rem 2rem;
    font-size: 0.65rem;
    color: rgba(240,230,200,0.15);
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0a0718e6;
    backdrop-filter: blur(12px);
    padding: 0.8rem;
    text-align: center;
    z-index: 1000;
    font-size: 0.75rem;
    transform: translateY(100%);
    transition: transform 0.3s;
    border-top: 1px solid rgba(212,175,55,0.2);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent button {
    background: #D4AF37;
    border: none;
    padding: 0.2rem 1rem;
    margin-left: 0.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
}

/* ===== LANTERNS CONTAINER ===== */
#lanterns {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    overflow: visible;
}

@keyframes lanternBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.lantern-glow {
    transition: box-shadow 0.4s, filter 0.4s, background 0.2s;
}

.lantern-label {
    transition: opacity 0.35s;
}

/* ===== HALL PARTICLES ===== */
#hallParticles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hall-bg-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    animation: hallParticleRise 12s linear infinite;
}

@keyframes hallParticleRise {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* ===== FORM STATUS MESSAGES ===== */
.form-status {
    margin-top: 0.8rem;
    font-size: 0.7rem;
    font-family: 'EB Garamond', serif;
    color: #D4AF37;
    text-align: center;
    transition: all 0.2s;
}
.form-status.error {
    color: #cd7f32;
}

/* ===== STUDENT REVIEWS SECTION ===== */
.student-reviews-section {
  background: linear-gradient(180deg, #0a0508 0%, #0d060a 100%);
  padding: 5rem 2rem;
  border-top: 1px solid rgba(212,175,55,0.08);
  border-bottom: 1px solid rgba(212,175,55,0.08);
  position: relative;
  z-index: 1;
}

.student-reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

.student-reviews-header {
  text-align: center;
  margin-bottom: 3rem;
}

.student-reviews-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.8rem;
  color: #D4AF37;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.student-reviews-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: rgba(240,230,200,0.4);
}

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

.student-review-card {
  background: rgba(20,12,18,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 24px;
  padding: 1.8rem;
  transition: all 0.4s ease;
}

.student-review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,0.3);
  background: rgba(20,12,18,0.8);
}

.student-review-stars {
  color: #D4AF37;
  font-size: 0.7rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.student-review-text {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(240,230,200,0.85);
  margin-bottom: 1rem;
}

.student-review-author {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #D4AF37;
  margin-top: 1rem;
}

.student-review-year {
  font-family: 'EB Garamond', serif;
  font-size: 0.6rem;
  color: rgba(240,230,200,0.3);
  margin-top: 0.2rem;
}

.loading-reviews {
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: rgba(240,230,200,0.5);
  padding: 2rem;
  grid-column: 1 / -1;
}

/* Student Review Form */
.student-review-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(20,12,18,0.5);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(212,175,55,0.1);
}

.student-form-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: #D4AF37;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-align: center;
}

.student-form-note {
  font-family: 'EB Garamond', serif;
  font-size: 0.75rem;
  color: rgba(240,230,200,0.4);
  text-align: center;
  margin-bottom: 1.5rem;
}

.student-review-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.student-form-row {
  display: flex;
  gap: 1rem;
}

.student-form-row .student-form-group {
  flex: 1;
}

.student-review-form .student-form-group input,
.student-review-form .student-form-group textarea {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(212,175,55,0.2);
  padding: 0.8rem;
  color: #f0ede0;
  border-radius: 12px;
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
}

.student-review-form .student-form-group input:focus,
.student-review-form .student-form-group textarea:focus {
  outline: none;
  border-color: rgba(212,175,55,0.5);
}

.submit-student-review {
  background: #D4AF37;
  color: #0a0500;
  border: none;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border-radius: 40px;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  transition: 0.3s;
  margin-top: 0.5rem;
}

.submit-student-review:hover {
  transform: translateY(-2px);
  background: #e6c34c;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
    .navbar-wrapper {
        padding: 0.5rem;
        overflow-x: visible;
    }
    .scene {
        perspective: none;
        width: 100%;
    }
    .nav3d {
        height: auto;
        transform: rotateX(0deg) !important;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 20px;
        backdrop-filter: blur(12px);
    }
    .nav3d:hover {
        transform: rotateX(0deg) !important;
    }
    .face-top {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(212, 175, 55, 0.2);
    }
    .face-bottom-wall,
    .face-top-wall,
    .face-left-wall,
    .face-right-wall,
    .face-back {
        display: none;
    }
    .nav-content {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.6rem;
        justify-content: center;
    }
    .brand {
        font-size: 0.55rem;
        text-align: center;
        width: 100%;
        margin-bottom: 0.2rem;
    }
    .brand small {
        font-size: 0.35rem;
        display: inline-block;
    }
    .links {
        gap: 0.2rem;
        justify-content: center;
        width: 100%;
    }
    .links li a {
        font-size: 0.45rem;
        padding: 3px 5px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .portal-scene {
        position: static;
        margin-top: 0.2rem;
    }
    .portal-top {
        font-size: 0.45rem;
        padding: 3px 8px;
    }
    
    /* Mobile hero centering fix */
    .hero {
        height: 100vh;
        min-height: 100vh;
    }
    .hero-title-container {
        top: 48%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 94%;
        padding: 0 0.5rem;
        text-align: center;
    }
    .hero-eyebrow {
        font-size: 0.5rem;
        letter-spacing: 4px;
        margin-bottom: 1rem;
    }
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2.4rem);
        gap: 0.1rem;
        text-align: center;
    }
    .ht-the {
        font-size: 0.45em;
        letter-spacing: 4px;
    }
    .ht-horseman {
        font-size: 1em;
    }
    .ht-journal {
        font-size: 1.1em;
        letter-spacing: 4px;
    }
    .hero-tagline {
        font-size: 0.75rem;
        max-width: 90%;
        line-height: 1.5;
    }
    .hero-stats {
        gap: 1.2rem;
        margin-top: 1.2rem;
    }
    .hero-stat {
        padding-right: 1.2rem;
        border-right: 1px solid rgba(212,175,55,0.2);
    }
    .hero-stat-number {
        font-size: 1rem;
    }
    .hero-stat-label {
        font-size: 0.45rem;
        letter-spacing: 2px;
    }
    .hero-divider {
        margin: 0.8rem 0;
    }
    .hero-line {
        width: 50px;
    }
    
    .hall-emblem canvas {
        width: 90px;
        height: 90px;
    }
    .great-hall {
        padding: 2rem 1rem 3rem;
    }
    .hall-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
        text-align: left;
    }
    .hall-card-num {
        font-size: 1.2rem;
        min-width: auto;
    }
    .hall-card-name {
        font-size: 0.95rem;
    }
    .hall-card-desc {
        font-size: 0.8rem;
    }
    .hall-card-arrow {
        display: none;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .book-showcase-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .book-details {
        text-align: center;
    }
    .book-description {
        max-width: 100%;
    }
    .book-actions {
        justify-content: center;
    }
    .extra-grid {
        flex-direction: column;
    }
    #lanterns .lantern-glow {
        width: 18px !important;
        height: 24px !important;
    }
    #lanterns .lantern-label span {
        font-size: 0.45rem !important;
        letter-spacing: 1px !important;
    }
    .great-hall, .testimonials, .book-showcase, .extra-sections, .contact {
        overflow-x: hidden;
    }
    .student-reviews-section {
        padding: 3rem 1rem;
    }
    .student-reviews-title {
        font-size: 1.4rem;
    }
    .student-form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 400px) {
    .hero-title-container {
        width: 96%;
    }
    .hero-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
    .hero-stats {
        gap: 0.8rem;
    }
    .hero-stat {
        padding-right: 0.8rem;
    }
    .hero-stat-number {
        font-size: 0.85rem;
    }
}
