/* Premium Modern School Website Styles */
:root {
    /* Refined Color Palette */
    --brand-primary: #0f172a;
    --brand-secondary: #2563eb;
    --brand-accent: #f59e0b;
    --brand-accent-hover: #d97706;
    
    --text-main: #1e293b;
    --text-light: #64748b;
    --text-inverse: #ffffff;
    
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-alt: #f1f5f9;
    
    --border-color: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    /* Spacing */
    --section-spacing: 5rem;
    --element-spacing: 2rem;
    
    /* Visuals */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-primary);
    line-height: 1.2;
    font-weight: 700;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--brand-secondary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-accent {
    background-color: var(--brand-accent);
    color: var(--text-inverse);
}
.btn-accent:hover {
    background-color: var(--brand-accent-hover);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-inverse);
    color: var(--text-inverse);
}
.btn-outline:hover {
    background-color: var(--text-inverse);
    color: var(--brand-primary);
}

/* Header & Navigation */
.premium-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
    padding: 1.5rem 0;
}
.premium-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-inverse);
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.premium-header.scrolled .brand-logo {
    color: var(--brand-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}
.premium-header.scrolled .nav-link {
    color: var(--text-main);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-accent);
    transition: var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link:hover { color: var(--text-inverse); }
.premium-header.scrolled .nav-link:hover { color: var(--brand-secondary); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-inverse);
    font-size: 1.5rem;
    cursor: pointer;
}
.premium-header.scrolled .mobile-toggle {
    color: var(--brand-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding-top: 80px;
    overflow: hidden;
}
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.4;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--text-inverse);
}
.hero-eyebrow {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--brand-accent);
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-inverse);
}
.hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Sections */
.section-padding { padding: var(--section-spacing) 0; }
.section-bg-alt { background-color: var(--bg-alt); }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-eyebrow {
    color: var(--brand-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-desc {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Cards & Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-secondary);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-secondary);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}
.feature-card:hover .feature-icon {
    background: var(--brand-secondary);
    color: white;
}
.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.feature-text {
    color: var(--text-light);
}

/* Split Layouts (Academics / Facilities) */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.split-content { flex: 1; }
.split-visual {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.split-visual.reversed { order: -1; }

/* Timeline / Lists (Notices & Events) */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.timeline-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    align-items: flex-start;
}
.timeline-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-secondary);
}
.timeline-date {
    background: var(--bg-alt);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 80px;
}
.timeline-date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
}
.timeline-date-month {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.25rem;
}
.timeline-content { flex: 1; }
.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--brand-primary);
}
.timeline-title a { color: inherit; }
.timeline-title a:hover { color: var(--brand-secondary); }
.timeline-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Page Header (Internal Pages) */
.internal-page-header {
    background: var(--brand-primary);
    padding: 10rem 0 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.internal-page-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.internal-page-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Footer */
.premium-footer {
    background-color: var(--brand-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: block;
}
.footer-title {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

/* Notice Details */
.notice-detail-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.notice-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.875rem;
}
.notice-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-main);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .split-section { flex-direction: column; }
    .split-visual { width: 100%; min-height: 300px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        display: none;
        gap: 1rem;
    }
    .nav-menu.active { display: flex; }
    .nav-link { color: var(--text-main) !important; }
    .mobile-toggle { display: block; }
    .premium-header { padding: 1rem 0; background: var(--brand-primary); }
    .premium-header.scrolled { background: var(--bg-surface); }
    .premium-header .brand-logo { color: var(--text-inverse); }
    .premium-header.scrolled .brand-logo { color: var(--brand-primary); }
    
    .hero-title { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .notice-detail-card { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
