@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Noto+Sans+SC:wght@300;400;500;700&family=Playfair+Display:wght@700&display=swap');

:root {
    /* Palette: "Obsidian Prestige" (Black & Gold) */
    --color-primary: #D4AF37;
    /* Metallic Gold */
    --color-secondary: #334155;
    /* Slate Grey (Neutral Authority) */
    --color-accent: #FFFFFF;
    /* Pure White */

    --color-bg-dark: #050505;
    /* Purest Black */
    --color-bg-card: #141414;
    /* Dark Grey Card */
    --color-bg-section: #0F0F0F;
    /* Off-Black Section */

    --color-text-main: #F8FAFC;
    /* White Text */
    --color-text-muted: #94A3B8;
    /* Cool Grey Text */

    --border-color: rgba(212, 175, 55, 0.4);
    /* Stronger Gold Border */

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #0F0F0F 0%, #222 100%);
    --grad-gold: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Noto Sans SC', sans-serif;

    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --radius-soft: 2px;
    --radius-pill: 50px;

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.15);
    /* Gold Glow Only */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed header */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

/* =========================================
   Typography & Elements
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--color-primary);
    /* Gold Headers */
    font-weight: 700;
    letter-spacing: 0.02em;
}

.display-text {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-accent);
    /* Clean, commanding text */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    /* Gold Background */
    color: #050505;
    /* Black Text */
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: 0.3s all;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-weight: 600;
    border: 1px solid var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* =========================================
   Layout Containers
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Keep subtle divider */
}

/* Removed alternating background for uniform Obsidian look */
.section:nth-child(even) {
    background-color: transparent;
}

/* Subtle background pattern */
.section::before {
    display: none;
    /* Remove SVG pattern for cleaner look */
}

.bg-dark {
    background-color: var(--color-bg-dark);
}


.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* =========================================
   Navigation
   ========================================= */
/* =========================================
   Navigation
   ========================================= */
.edu-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    /* Deep Black/Dark */
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    /* Subtle Gold Border */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-left: 12%;
    padding-right: 5%;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.05em;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text-main);
    opacity: 0.8;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient with slight red tint for warmth */
    background: radial-gradient(circle, rgba(10, 5, 5, 0.5) 0%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-text-main);
    max-width: 800px;
    padding: 0 1rem;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-primary);
    /* Use Gold */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-muted);
}

/* =========================================
   History Cards
   ========================================= */
.history-block {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.history-block:nth-child(even) {
    flex-direction: row-reverse;
}

.history-img {
    flex: 1;
    height: 350px;
    border-radius: var(--radius-soft);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.history-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.history-img:hover img {
    transform: scale(1.05);
}

.history-text {
    flex: 1;
}

.history-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* =========================================
   Type Cards (Scrolls)
   ========================================= */
.type-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-top: 4px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.type-img {
    height: 250px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.type-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.type-card:hover .type-img img {
    transform: scale(1.08);
}

.type-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.type-info h3 {
    margin-bottom: 0.8rem;
    color: var(--color-primary);
    font-size: 1.25rem;
    line-height: 1.4;
}

.type-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: auto;
    /* Pushes text to align if needed, or ensures spacing */
}

/* =========================================
   FAQ & Safety Styling
   ========================================= */
.page-header {
    height: 40vh;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.page-header h1 {
    color: var(--color-accent);
    font-size: 3rem;
    z-index: 2;
}

.content-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--radius-soft);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--color-primary);
    color: var(--color-text-main);
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: var(--color-bg-dark);
    color: #888;
    text-align: center;
    padding: 3rem 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid #333;
}

footer h2 {
    color: var(--color-text-main);
    font-family: var(--font-display);
    margin-bottom: 1rem;
}


/* =========================================
   RESPONSIVE DESIGN - Mobile First
   ========================================= */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .nav-container {
        padding-left: 5%;
        padding-right: 5%;
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {

    /* Typography Scaling */
    html {
        font-size: 15px;
        /* Slightly smaller base */
    }

    h1,
    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    h2,
    .section-title {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Navigation - Compact */
    .nav-menu ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-menu a {
        padding-bottom: 3px;
    }

    /* Hero Section */
    .hero-section {
        height: 70vh;
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1rem;
        max-width: 100%;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Buttons - Larger Touch Targets */
    .btn-primary,
    .btn-outline {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        min-height: 48px;
        /* iOS recommended touch target */
    }

    /* Grid Layout */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Festival Cards - Stack Vertically */
    .history-block {
        flex-direction: column !important;
    }

    .history-img {
        height: 250px !important;
    }

    /* Sections - Reduce Padding */
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Content Cards */
    .content-card {
        padding: 1.5rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {

    /* Even More Compact Typography */
    html {
        font-size: 14px;
    }

    h1,
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2,
    .section-title {
        font-size: 1.6rem;
    }

    /* Navigation - Full Width */
    .nav-container {
        padding-left: 3%;
        padding-right: 3%;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-menu ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }

    /* Hero Section - Compact */
    .hero-section {
        height: 60vh;
    }

    .hero-content h1 {
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        margin: 0.5rem auto;
        display: block;
    }

    /* Festival Images - Smaller */
    .history-img {
        height: 200px !important;
    }

    /* Sections - More Compact */
    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Catalogue Cards - Better Mobile Spacing */
    .card {
        padding: 1rem !important;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    /* Content Cards */
    .content-card {
        padding: 1rem;
    }

    /* FAQ - Better Mobile Layout */
    .content-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem;
    }
}

/* Landscape Mobile (e.g., iPhone rotated) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 90vh;
    }

    .edu-header {
        padding: 0.5rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Ensure images look crisp */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}