/* =========================================
   CSS Variables & Theming
   ========================================= */
:root {
    --hue-primary: 215;
    --hue-secondary: 150;
    --color-primary: hsl(var(--hue-primary), 85%, 35%);
    --color-secondary: hsl(var(--hue-secondary), 60%, 35%);
    --color-accent: hsl(35, 100%, 55%);
    
    --bg-base: #ffffff;
    --bg-surface: #f4f7f6;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-light: rgba(0, 0, 0, 0.08);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    
    --step--1: clamp(0.83rem, calc(0.78rem + 0.29vw), 1.00rem);
    --step-0: clamp(1.00rem, calc(0.91rem + 0.43vw), 1.25rem);
    --step-1: clamp(1.20rem, calc(1.07rem + 0.63vw), 1.56rem);
    --step-2: clamp(1.44rem, calc(1.26rem + 0.89vw), 1.95rem);
    --step-3: clamp(1.73rem, calc(1.48rem + 1.24vw), 2.44rem);
    --step-4: clamp(2.07rem, calc(1.73rem + 1.70vw), 3.05rem);
    --step-5: clamp(2.49rem, calc(2.03rem + 2.31vw), 3.82rem);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100vw;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --nav-height: 80px;
}

[data-theme="dark"] {
    --bg-base: #0b0f19;
    --bg-surface: #111827;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
    
    --glass-bg: rgba(17, 24, 39, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* =========================================
   Base & Resets
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Lato', sans-serif; color: var(--text-main); background-color: var(--bg-base); line-height: 1.6; font-size: var(--step-0); transition: background-color 0.3s ease, color 0.3s ease; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.1; color: var(--text-main); letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
img, picture { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.focusable:focus { position: static; width: auto; height: auto; clip: auto; white-space: normal; background: var(--color-primary); color: #fff; padding: 1rem; z-index: 9999; }
*:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }

/* Layout Containers */
.container { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: clamp(1rem, 5vw, 3rem); }
.section { padding-block: clamp(4rem, 10vw, 8rem); position: relative; z-index: 2; }
.bg-surface { background-color: var(--bg-surface); }

/* Typography Centering */
.display-title, .section-title, .section-description { text-align: center; margin-left: auto; margin-right: auto; max-width: 800px; }
.display-title { font-size: var(--step-5); color: #fff; margin-bottom: 1rem; text-wrap: balance; }
.section-title { font-size: var(--step-3); margin-bottom: 1rem; }
.section-description { font-size: var(--step-1); color: var(--text-muted); margin-bottom: 3rem; }

/* Exception: Keeps the split-layout section left-aligned */
#campus-overview .section-title, #campus-overview .section-description { text-align: left; margin-left: 0; }

/* =========================================
   Header & Navigation
   ========================================= */
.header { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); z-index: 1000; transition: var(--transition-smooth); background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); display: flex; align-items: center; }

/* Scrolled State (Triggered by JS) */
.header.scrolled {
    --nav-height: 70px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .header.scrolled {
    background: rgba(11, 15, 25, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar { display: flex; justify-content: space-between; align-items: center; height: 100%; width: 100%; }
.logo img { max-height: 50px; width: auto; transition: var(--transition-smooth); display: block; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links > li > a { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: var(--step--1); display: flex; align-items: center; gap: 0.25rem; color: var(--text-main); }
.nav-links > li > a:hover { color: var(--color-primary); }
.nav-links .material-symbols-outlined { font-size: 1.2rem; transition: transform 0.3s ease; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--bg-base); border-radius: var(--radius-md); box-shadow: var(--glass-shadow); border: 1px solid var(--border-light); padding: 0.5rem 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition-smooth); list-style: none; display: flex; flex-direction: column; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown:hover > a .material-symbols-outlined { transform: rotate(180deg); }
.dropdown-menu a { display: block; padding: 0.75rem 1.5rem; font-size: var(--step--1); color: var(--text-muted); }
.dropdown-menu a:hover { background: var(--bg-surface); color: var(--color-primary); padding-left: 2rem; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
#theme-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-surface); color: var(--text-main); transition: var(--transition-smooth); }
#theme-toggle:hover { transform: scale(1.1); background: var(--border-light); }
.menu-toggle { display: none; width: 40px; height: 40px; color: var(--text-main); align-items: center; justify-content: center; }

/* =========================================
   Cinematic Hero Section
   ========================================= */
.hero-cinematic { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: var(--nav-height); overflow: hidden; z-index: 1; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-cinematic::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%); }
.hero-overlay { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; color: #fff; width: 100%; }
.hero-text-content { max-width: 900px; text-align: center; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; width: 100%; }

/* =========================================
   Buttons & Effects
   ========================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; border-radius: var(--radius-pill); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: var(--step--1); transition: var(--transition-smooth); text-align: center; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-secondary); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-secondary { background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: var(--border-light); }
.btn-glass { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-glass:hover { background: rgba(255,255,255,0.25); transform: translateY(-3px); }

/* Background Orbs */
.bg-decorations { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; animation: float 20s infinite ease-in-out alternate; }
.orb-1 { width: 600px; height: 600px; background: var(--color-primary); top: -10%; right: -10%; }
.orb-2 { width: 500px; height: 500px; background: var(--color-secondary); bottom: -20%; left: -10%; animation-delay: -10s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-100px, 50px) scale(1.2); } }

/* =========================================
   Grids & Layouts
   ========================================= */
.glass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.glass-card { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: var(--glass-shadow); transition: var(--transition-smooth); overflow: hidden; }
.glass-card:hover { transform: translateY(-10px); border-color: var(--color-primary); }
.glass-card-inner { padding: 3rem 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; height: 100%; }
.card-icon { font-size: 3rem; color: var(--color-primary); }
.glass-card h3 { font-size: var(--step-1); }
.glass-card p { color: var(--text-muted); font-size: var(--step--1); }

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.bento-item { background: var(--bg-base); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 2rem; display: flex; align-items: center; gap: 1.5rem; transition: var(--transition-smooth); position: relative; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.bento-item:hover { transform: translateY(-5px); border-color: var(--color-primary); box-shadow: var(--glass-shadow); }
.bento-icon-wrapper { width: 60px; height: 60px; border-radius: var(--radius-md); background: var(--bg-surface); display: flex; align-items: center; justify-content: center; color: var(--color-primary); transition: var(--transition-smooth); flex-shrink: 0; }
.bento-item:hover .bento-icon-wrapper { background: var(--color-primary); color: #fff; }
.bento-text { display: flex; flex-direction: column; gap: 0.25rem; flex-grow: 1; text-align: left; }
.bento-text strong { font-family: 'Poppins', sans-serif; font-size: var(--step-1); color: var(--text-main); }
.bento-text span { font-size: var(--step--1); color: var(--text-muted); }
.bento-arrow { color: var(--color-primary); transition: var(--transition-smooth); transform: translateX(-10px); opacity: 0; }
.bento-item:hover .bento-arrow { transform: translateX(0); opacity: 1; }

.bento-item.stacked { flex-direction: column; text-align: center; justify-content: center; padding: 3rem 2rem; }
.bento-item.stacked .bento-text { align-items: center; text-align: center; }

/* Masonry Grid */
.masonry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.masonry-item { break-inside: avoid; position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-surface); margin-bottom: 0; }
.masonry-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; display: block; }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-item figcaption { position: absolute; bottom: 0; left: 0; width: 100%; padding: 3rem 1.5rem 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff; font-family: 'Poppins', sans-serif; font-size: var(--step-0); font-weight: 600; transform: translateY(20px); opacity: 0; transition: var(--transition-smooth); pointer-events: none; }
.masonry-item:hover figcaption { transform: translateY(0); opacity: 1; }

.map-container { width: 100%; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); box-shadow: 0 4px 6px rgba(0,0,0,0.02); background: var(--bg-base); }
.map-container iframe { display: block; filter: grayscale(0.2) contrast(1.1); transition: var(--transition-smooth); }[data-theme="dark"] .map-container iframe { filter: invert(90%) hue-rotate(180deg) grayscale(0.2) contrast(1.1); }

/* =========================================
   FAQ Accordion
   ========================================= */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-base); border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: 0 4px 6px rgba(0,0,0,0.02); overflow: hidden; transition: var(--transition-smooth); }
.faq-item:hover { border-color: var(--color-primary); }
.faq-question { width: 100%; text-align: left; padding: 1.5rem; background: transparent; font-family: 'Poppins', sans-serif; font-size: var(--step-0); font-weight: 600; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; cursor: pointer; border: none; }
.faq-question::after { content: 'expand_more'; font-family: 'Material Symbols Outlined'; font-size: 1.5rem; color: var(--color-primary); transition: transform 0.3s ease; }
.faq-question[aria-expanded="true"]::after, .faq-item.active .faq-question::after { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.4s ease; padding: 0 1.5rem; background: var(--bg-surface); }
.faq-answer p { color: var(--text-muted); margin: 0; }
.faq-question[aria-expanded="true"] + .faq-answer, .faq-item.active .faq-answer { max-height: 1000px; padding-top: 1rem; padding-bottom: 1.5rem; transition: max-height 0.6s ease-in-out, padding 0.4s ease; }

/* =========================================
   Footer & Modals
   ========================================= */
.footer { background: var(--bg-surface); border-top: 1px solid var(--border-light); padding-top: 5rem; position: relative; z-index: 2; }

/* 4-Column Grid for Desktop */
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }

.footer-brand h2 { font-size: var(--step-1); margin-bottom: 1rem; color: var(--text-main); }
.footer-brand address, .footer-brand p { color: var(--text-muted); font-style: normal; margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-brand a { transition: color 0.3s ease; }
.footer-brand a:hover { color: var(--color-primary); }

.footer-socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-socials a { color: var(--text-muted); transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.footer-socials a:hover { color: var(--color-primary); transform: translateY(-3px); }

.footer-links-group h3 { font-size: var(--step-0); margin-bottom: 1.5rem; color: var(--text-main); }
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; }
.footer-links-group li { margin-bottom: 0.8rem; } /* Added vertical breathing room */

.footer-links-group a { 
    color: var(--text-muted); 
    font-size: 0.9rem; /* Slightly smaller for a cleaner look */
    transition: var(--transition-smooth); 
    display: inline-block; 
}
.footer-links-group a:hover { 
    color: var(--color-primary); 
    transform: translateX(4px); /* Smooth slide effect */
}

.footer-bottom { border-top: 1px solid var(--border-light); padding-block: 2rem; text-align: center; color: var(--text-muted); font-size: var(--step--1); }

/* Tablet Layout (2 Columns) */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}

/* Mobile Layout (1 Column) */
@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Native HTML5 Dialog Modal */
.native-modal { margin: auto; padding: 0; border: none; border-radius: var(--radius-lg); background: var(--bg-base); color: var(--text-main); width: 90%; max-width: 500px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); opacity: 0; transform: translateY(20px); transition: var(--transition-smooth); }
.native-modal[open] { opacity: 1; transform: translateY(0); }
.native-modal::backdrop { background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.4s ease; }
.native-modal[open]::backdrop { opacity: 1; }
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: var(--step-1); margin: 0; }
.close-btn { color: var(--text-muted); transition: var(--transition-smooth); }
.close-btn:hover { color: var(--color-primary); transform: rotate(90deg); }
.modal-form { padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: var(--step--1); font-weight: 600; }
.form-group input, .form-group select { width: 100%; padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-light); background: var(--bg-surface); color: var(--text-main); font-family: inherit; transition: var(--transition-smooth); }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1); }
.form-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 1rem; }

/* Scroll Reveal Utility */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 1024px) {
    .hero-text-content { max-width: 100%; text-align: center; }
    .hero-overlay { align-items: center; }
    .hero-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .header .logo img { max-height: 40px; }
    
    .menu-toggle { display: flex; }
    .nav-links { position: fixed; top: var(--nav-height); left: 0; width: 100%; height: calc(100vh - var(--nav-height)); background: var(--bg-base); flex-direction: column; padding: 2rem; gap: 0; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); overflow-y: auto; }
    .nav-links.active { transform: translateX(0); }
    .nav-links > li { width: 100%; border-bottom: 1px solid var(--border-light); height: auto; display: block; }
    .nav-links > li > a { padding-block: 1.5rem; justify-content: space-between; font-size: var(--step-1); height: auto; }
    .dropdown-menu { position: static; box-shadow: none; border: none; background: transparent; opacity: 1; visibility: visible; pointer-events: auto; transform: none; -webkit-transform: none; display: none; padding: 0 0 1.5rem 1rem; }
    .dropdown.active .dropdown-menu { display: flex; }
    .footer-content { grid-template-columns: 1fr; gap: 3rem; }
}

/* =========================================
   Subpage Headers & Course Cards
   ========================================= */
.page-header {
    padding: calc(var(--nav-height) + 4rem) 1rem 3rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-surface), var(--bg-base));
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4rem;
}

.page-title {
    font-size: var(--step-4);
    color: var(--text-main);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.page-subtitle {
    font-size: var(--step-0);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Course Layout */
.course-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.course-card:hover {
    box-shadow: var(--glass-shadow);
    border-color: var(--color-primary);
}

.course-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (min-width: 768px) {
    .course-card {
        grid-template-columns: 1fr 1fr;
        padding: 4rem;
        gap: 4rem;
    }
    .course-card.alt-layout .course-image {
        order: -1;
    }
}

.course-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.course-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(13, 71, 161, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(13, 71, 161, 0.2);
    border-radius: var(--radius-pill);
    font-size: var(--step--1);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.course-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
    width: 100%;
}

.course-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.course-feature-item .material-symbols-outlined {
    color: var(--color-secondary);
    font-size: 1.5rem;
    flex-shrink: 0;
    background: var(--bg-base);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
}

.course-feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.2rem;
}

.course-feature-text strong {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    font-size: var(--step--1);
    line-height: 1.2;
}

.course-feature-text span {
    color: var(--text-muted);
    font-size: var(--step--1);
}

/* =========================================
   Call to Action (CTA) Banner
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-section h2 {
    color: #fff;
    font-size: var(--step-3);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--step-0);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--color-primary);
}

.cta-section .btn-primary:hover {
    background: var(--bg-surface);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* =========================================
   Modern Tabs System
   ========================================= */
.tabs-container {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    padding: 2rem;
    margin-bottom: 2rem;
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-button {
    padding: 1rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: var(--step-0);
    color: var(--text-muted);
    background: transparent;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.tab-button:hover {
    color: var(--color-primary);
    background: var(--bg-surface);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-button.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    display: none;
    animation: fadeInTab 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content.active { display: block; }

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Premium Data Tables
   ========================================= */
.responsive-table-wrapper {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow-x: auto;
    margin-bottom: 2.5rem;
}

.syllabus-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: left;
}

.syllabus-table th, .syllabus-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--step--1);
    color: var(--text-main);
}

.syllabus-table th {
    background: var(--bg-surface);
    color: var(--color-primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.syllabus-table tbody tr { transition: background-color 0.2s ease; }
.syllabus-table tbody tr:hover { background: rgba(13, 71, 161, 0.03); }
.syllabus-table tr:last-child td { border-bottom: none; }   

/* =========================================
   Award-Winning Editorial Blog Layout
   ========================================= */
.blog-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.blog-card {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    text-align: left;
    position: relative;
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(13, 71, 161, 0.08);
    border-color: var(--color-primary);
}

.blog-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.blog-card:hover .blog-image-wrapper img { transform: scale(1.05); }

.blog-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.blog-meta span { display: flex; align-items: center; gap: 0.3rem; }
.blog-meta .material-symbols-outlined { font-size: 1.1rem; color: var(--color-primary); }

.blog-title {
    font-size: var(--step-1);
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title { color: var(--color-primary); }

.blog-excerpt {
    color: var(--text-muted);
    font-size: var(--step--1);
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: var(--step--1);
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.blog-read-more .material-symbols-outlined {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-read-more .material-symbols-outlined { transform: translateX(6px); }

@media (min-width: 992px) {
    .blog-card.featured {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: stretch;
    }
    .blog-card.featured .blog-image-wrapper {
        width: 55%;
        aspect-ratio: auto;
        height: 100%;
    }
    .blog-card.featured .blog-content {
        width: 45%;
        padding: 3.5rem 4rem;
        justify-content: center;
    }
    .blog-card.featured .blog-title { font-size: var(--step-3); }
    .blog-card.featured .blog-excerpt {
        font-size: var(--step-0);
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}

/* =========================================
   Editorial / Wiki Style Article Layout
   ========================================= */
.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem 1.5rem;
}

.article-header { text-align: left; margin-bottom: 3rem; }

.article-header h1 {
    font-size: var(--step-4);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.article-content {
    font-family: 'Lato', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--step-2);
    color: var(--text-main);
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
}

.article-content p { margin-bottom: 1.75rem; }

.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-primary);
    background: var(--bg-surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.article-content blockquote strong {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content figure {
    margin: 3rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.article-content img { width: 100%; height: auto; display: block; }

.article-content figcaption {
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-base);
    border-top: 1px solid var(--border-light);
    font-family: 'Poppins', sans-serif;
}

.editorial-callout {
    background: rgba(13, 71, 161, 0.03);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0 2.5rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.editorial-callout strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
}

/* =========================================
   Dark Mode Typography Fixes
   ========================================= */[data-theme="dark"] p,
[data-theme="dark"] .article-content,[data-theme="dark"] .article-content p,
[data-theme="dark"] .blog-excerpt,[data-theme="dark"] .bento-text span,
[data-theme="dark"] .section-description {
    color: #e2e8f0;
}

[data-theme="dark"] .article-content blockquote {
    color: #cbd5e1; 
    background: rgba(255, 255, 255, 0.05);
}[data-theme="dark"] .editorial-callout {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

/* =========================================
   Wiki-Style Author Profile Layout
   ========================================= */
.author-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0 5rem 0;
}

@media (min-width: 768px) {
    .author-profile {
        grid-template-columns: 300px 1fr;
        align-items: start;
    }
}

.author-infobox {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.author-infobox img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1.5rem auto; 
    border: 3px solid var(--bg-base);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.author-infobox h2 {
    font-size: var(--step-0);
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.author-infobox .role {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 1.5rem;
}

.author-bio {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
}

.author-bio h3 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--step-1);
    color: var(--text-main);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.author-bio p { margin-bottom: 1.5rem; }
[data-theme="dark"] .author-bio p { color: #e2e8f0; }

/* =========================================
   Article Meta & Subtle Author Attribution
   ========================================= */
.article-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.5rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.article-meta a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.article-meta a:hover { color: var(--color-primary); }
[data-theme="dark"] .article-meta a { color: #e2e8f0; }

.article-meta .meta-author {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: auto;
}

.article-meta .meta-author a {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s ease;
}

.article-meta .meta-author a:hover {
    text-decoration-color: var(--text-muted);
    color: var(--text-main);
}
[data-theme="dark"] .article-meta .meta-author a:hover { color: #e2e8f0; }