/* ==========================================================================
   💎 THE LUXURY ACADEMY FRAMEWORK - UNIFIED COHESION SYSTEM
   ========================================================================== */

/* --- Universal Reset & Luxury Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: "Didot", "Playfair Display", "Bodoni MT", -apple-system, BlinkMacSystemFont, "Segoe UI", serif;
    background-color: #faf9f6; /* Premium gallery alabaster white */
    color: #111111; /* Sharp luxury black */
    line-height: 1.8;
    letter-spacing: 0.03em;
    
    /* 🚀 THE FIXED PROPERTIES */
    display: flex !important;
    flex-direction: column !important; /* Forces layout sections to stack top-to-bottom */
    min-height: 100vh; /* Pushes content down naturally */
}

/* --- High-End Header Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 24px 60px;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
}

.nav-logo {
    font-family: "Didot", "Bodoni MT", serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #111111;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.1rem;
    filter: grayscale(100%); /* Keeps branding completely high-fashion */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #666666;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Sliding underscore interaction rules */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #111111;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover {
    color: #111111;
}

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

.nav-links a.active {
    color: #111111;
    font-weight: 700;
}

.coming-soon {
    font-style: italic;
    color: #999999 !important;
    opacity: 0.7;
}

/* --- Cinema Header Banner System --- */
.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111111; /* Premium solid backup canvas */
    height: 380px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 40px;
}

.hero-overlay h1 {
    font-size: 3.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.subtitle {
    font-family: -apple-system, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #eaeaea;
}

.date-updated {
    font-family: -apple-system, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #cccccc;
    opacity: 0.8;
}
/* --- Balanced Layout Structural Margins --- */
.content-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
}

/* --- Clean Frame Form Integration --- */
.form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 80px;
}

.form-instruction-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #111111;
    margin-bottom: 20px;
}

.form-wrapper {
    width: 100%;
    max-width: 850px;
    border: 1px solid #e5e5e5;
    border-radius: 0px; /* Sharp editorial cuts across all platforms */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
}

/* --- Editorial Review Header Alignment --- */
.review-section {
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: center;
}

/* Unified, Framed Luxury Score Badges */
.score-badge {
    display: inline-block;
    background-color: #111111;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 0px; /* Fixed: Completely standard crisp cuts across all tabs */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 20px;
}

/* Unified Profile Block Quotes */
.personal-note {
    font-size: 1.05rem;
    color: #333333;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 0px;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #111111;
    line-height: 2;
    text-align: justify;
}

/* --- Premium Resource Cards Architecture (Uniform Alignment) --- */
.resources-section h2, .weighting-section h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #111111;
    font-weight: 400;
    margin-bottom: 12px;
}

.section-subtitle {
    color: #777777;
    margin-bottom: 40px;
    font-size: 0.9rem;
    font-family: -apple-system, sans-serif;
    letter-spacing: 0.05em;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.resource-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0px;
    padding: 35px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.resource-card h3 {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #111111;
    margin-bottom: 15px;
}

.resource-card p {
    font-family: -apple-system, sans-serif;
    font-size: 0.88rem;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.card-action {
    font-family: -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #111111;
    transition: transform 0.3s ease;
}

/* Premium micro-animations */
.resource-card:hover {
    transform: translateY(-5px);
    border-color: #111111;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.resource-card:hover .card-action {
    display: inline-block;
    transform: translateX(6px);
}

/* Fine jewelry colored accent bars (Perfected layout markers) */
.resource-card.important { border-left: 3px solid #111111; }
.resource-card.gem { border-left: 3px solid #d4af37; } /* Champagne Gold */
.resource-card.warning { border-left: 3px solid #8e8e93; }

/* Callout Text Bar Modifiers */
.general-callout {
    background-color: #f4f4f4;
    border-radius: 0px;
    padding: 24px 35px;
    color: #111111;
    margin-bottom: 40px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-left: 3px solid #111111;
}
/* --- AP WORLD & HISTORICAL DETAILS --- */
.apworld-hero { background-color: #111111; }
.history-text { color: #111111 !important; font-weight: 700; }
.history-callout { background-color: #ffffff; border: 1px solid #e5e5e5; border-left: 3px solid #d4af37; color: #111111; }

.worksheet-alert {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    border: 1px solid #111111;
    border-radius: 0px;
    padding: 30px;
    margin: 40px auto;
    max-width: 900px;
}
.worksheet-alert p {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* --- APCSA & TECHNICAL LAYOUTS --- */
.apcsa-hero { background-color: #111111; }
.java-text { color: #111111 !important; font-weight: 700; }

.codehs-panel {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #d4af37;
    border-radius: 0px;
    padding: 30px;
    margin-top: 30px;
}
.codehs-content h4 { color: #111111; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }

/* --- WAYS TO STUDY (Editorial Notebook Layout) --- */
.study-hero { background-color: #111111; }
.methods-header h2 { font-size: 2rem; color: #111111; text-transform: uppercase; letter-spacing: 0.15em; }
.divider-line { background-color: #111111; width: 40px; }

.methods-container { gap: 30px; }
.method-card { border-radius: 0px; padding: 40px; border: 1px solid #e5e5e5; background: #ffffff; }
.method-badge { background-color: #111111; color: #ffffff; border-radius: 0px; top: 25px; right: 25px; }
.method-card h3 { font-size: 1.35rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #e5e5e5; padding-bottom: 10px; }
.step-list > li::marker { color: #111111; font-weight: bold; }
.sub-list li::before { color: #d4af37; }

/* --- TESTS AND BOOKS (Luxury Vault Table System) --- */
.books-hero { 
    background-color: #111111; 
}
.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 50px 0;
}
.dashboard-card {
    flex: 1;
    min-width: 340px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0px;
    padding: 45px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}
.dashboard-card h3 {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
}
.info-list {
    list-style: none !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    color: #444444;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eeeeee;
}
.info-list li:last-child {
    border-bottom: none;
}
.price-value { 
    background-color: #111111 !important; 
    color: #ffffff !important; 
    border-radius: 0px; 
    font-size: 0.8rem; 
    font-weight: 600;
    padding: 6px 14px;
    letter-spacing: 0.05em;
}
.collection-list li {
    justify-content: flex-start;
    border-bottom: none;
    padding-bottom: 5px;
    font-weight: 400;
}
.collection-list li::before { 
    content: "📘";
    font-size: 0.9rem;
    margin-right: 12px;
    filter: grayscale(100%); 
}

/* 🌟 EYE-CATCHING: Luxury Highlighted Callout Banner for Amazon Prices */
.luxury-market-note {
    background-color: #111111; /* Sharp contrasting deep dark background container */
    border: 1px solid #111111;
    border-radius: 0px;
    padding: 24px 40px;
    margin: 40px auto;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.luxury-market-note p {
    font-family: "Didot", "Playfair Display", serif;
    font-style: italic;
    font-size: 1.15rem;
    color: #ffffff !important; /* Striking high-contrast white text display */
    letter-spacing: 0.08em;
    display: inline-block;
}
/* --- VAULT UTILITIES & BUTTON ACTIONS --- */
.links-action-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px auto 60px auto;
}

.action-link-btn {
    background-color: #ffffff; /* Clean minimalist look */
    color: #111111;
    border-radius: 0px;
    padding: 18px 30px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    border: 1px solid #e5e5e5;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.action-link-btn:hover { 
    background-color: #111111; 
    color: #ffffff; 
    border-color: #111111;
    transform: translateY(-2px);
}

/* --- SEMINARS (Gala Exhibition Layout Fix) --- */
.seminars-hero { background-color: #111111; }

.poster-banner {
    position: relative;
    background: #111111; 
    border-radius: 0px;
    padding: 80px 40px;
    text-align: center;
    color: #ffffff !important; 
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.poster-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    margin: 0 auto;
}

.poster-content h2 {
    color: #ffffff !important; 
    font-size: 2.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

.poster-description {
    color: #cccccc !important; 
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.8;
    margin-bottom: 35px;
}

.live-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important; 
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* 🌟 Luxury Floating Gold Leaf Physics Engine Animation Particles */
.confetti { 
    position: absolute; 
    width: 6px !important; 
    height: 6px !important; 
    background-color: #d4af37 !important; 
    border-radius: 50% !important; 
    top: -20px;
    opacity: 0;
    pointer-events: none;
    animation: luxuryFall 5s infinite linear;
}

.confetti:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 4s; }
.confetti:nth-child(2) { left: 18%; animation-delay: 1.5s; animation-duration: 5.5s; }
.confetti:nth-child(3) { left: 28%; animation-delay: 0.4s; animation-duration: 4.2s; }
.confetti:nth-child(4) { left: 38%; animation-delay: 2.2s; animation-duration: 6s; }
.confetti:nth-child(5) { left: 48%; animation-delay: 0.8s; animation-duration: 3.8s; }
.confetti:nth-child(6) { left: 58%; animation-delay: 3s; animation-duration: 5.2s; }
.confetti:nth-child(7) { left: 68%; animation-delay: 1.2s; animation-duration: 4.5s; }
.confetti:nth-child(8) { left: 78%; animation-delay: 2.5s; animation-duration: 5.8s; }
.confetti:nth-child(9) { left: 88%; animation-delay: 0.2s; animation-duration: 4.1s; }
.confetti:nth-child(10){ left: 95%; animation-delay: 1.9s; animation-duration: 4.9s; }

@keyframes luxuryFall {
    0% { top: -10px; transform: translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { top: 105%; transform: translateX(25px) rotate(360deg); opacity: 0; }
}

.register-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #111111;
    border-radius: 0px;
    padding: 16px 40px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.register-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(255,255,255,0.15); }

/* --- COMING SOON (Luxury Portfolio Showcase Fix) --- */
.coming-hero { background-color: #111111; }

.junior-year-dashboard {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin: 60px auto;
    max-width: 1000px;
}

.courses-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 220px);
    grid-template-rows: repeat(2, 220px);
    gap: 20px;
}

.soon-card {
    border-radius: 0px;
    border: 1px solid #e5e5e5;
    background-color: #ffffff !important; 
    color: #111111 !important;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s ease;
}

.soon-card:hover { border-color: #111111; transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.03); }
.card-icon { font-size: 2.2rem; margin-bottom: 15px; filter: grayscale(100%); }
.soon-card h3 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; line-height: 1.5; }

.junior-info-panel { flex: 1; min-width: 280px; }
.junior-info-panel h2 { font-family: "Didot", "Playfair Display", serif; font-size: 2.2rem; color: #111111; line-height: 1.3; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 15px; }
.accent-bar { background-color: #111111; width: 40px; height: 2px; margin-bottom: 25px; }
.junior-info-panel p { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; color: #555555; line-height: 1.8; }

/* High-Luxury Custom Home CTA Button Component */
.luxury-cta-section { display: flex; justify-content: center; margin: 80px auto; max-width: 750px; text-align: center; }
.cta-card { background-color: #ffffff; border: 1px solid #e5e5e5; padding: 60px 40px; width: 100%; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02); }
.cta-card h3 { font-family: "Didot", "Playfair Display", serif; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.15em; color: #111111; font-weight: 400; margin-bottom: 15px; }
.cta-card p { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.95rem; color: #666666; max-width: 550px; margin: 0 auto 35px auto; line-height: 1.8; }
.luxury-connect-btn { display: inline-block; background-color: #111111; color: #ffffff; text-decoration: none; font-family: -apple-system, sans-serif; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; padding: 18px 45px; border: 1px solid #111111; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.luxury-connect-btn:hover { background-color: #ffffff; color: #111111; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06); }

/* --- Minimalist Vogue Footer Layout --- */
.site-footer {
    background-color: #ffffff;
    padding: 60px 40px;
    border-top: 1px solid #e5e5e5;
    font-family: -apple-system, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #999999;
}
.disclaimer { max-width: 800px; line-height: 1.8; margin-bottom: 25px; text-align: left; }
.copyright { text-transform: uppercase; letter-spacing: 0.1em; color: #111111; text-align: left; }

/* Media Queries for Responsive Behavior */
@media (max-width: 768px) {
    .junior-year-dashboard { flex-direction: column-reverse; text-align: center; padding: 0 20px; }
    .accent-bar { margin: 0 auto 25px auto; }
    .courses-grid-2x2 { grid-template-columns: repeat(2, 160px); grid-template-rows: repeat(2, 160px); }
    .navbar { padding: 20px 30px; flex-direction: column; gap: 15px; }
}
/* --- Global Footer Alignment Correction --- */
.site-footer {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    text-align: left !important;
    padding: 60px 40px !important;
    margin-top: 80px !important;
    background-color: #ffffff !important;
    border-top: 1px solid #e5e5e5 !important;
}

.site-footer p {
    text-align: left !important;
    width: 100% !important;
    max-width: 800px;
}
/* --- Master Footer Reset Rules --- */
.site-footer {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin-top: auto !important; /* Automatically anchors to page bottom if content is short */
    background-color: #ffffff !important;
    padding: 60px 40px !important;
    border-top: 1px solid #e5e5e5 !important;
}
