/* Global Variables */
:root {
    --primary: #1e3a8a;
    --primary-hover: #1e40af;
    --secondary-orange: #f59e0b;
    --secondary-yellow: #fbbf24;
    --secondary-yellow-hover: #facc15;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #f8fafc;
    --border-color: #e2e8f0;
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* Reset */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: var(--font-sans); color: var(--text-dark); background: var(--bg-light); line-height: 1.6; overflow-x:hidden; }
a{ text-decoration:none; color:inherit; transition:color .3s; }
img{ max-width:100%; display:block; }
ul{ list-style:none; }

/* Layout helpers */
.container { max-width:1280px; margin:0 auto; padding:0 24px; }
.two-col-grid { display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:4rem; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-color); }
.header-content { display: flex; justify-content: space-between; align-items: center; height: 80px; padding: 0; }
.logo-area { display: flex; align-items: center; gap: 1rem; }
.logo-text h1 { font-size: 1.25rem; color: var(--primary); font-family: var(--font-serif); font-weight: 700; margin: 0; }
.logo-text p { font-size: 0.75rem; color: var(--secondary-orange); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin: 0; }

/* Navigation */
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-gray); transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-toggle { display: none; cursor: pointer; background: none; border: none; padding: 8px; color: var(--primary); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--primary); stroke-width: 2; }
.nav-links.open { display: flex !important; }

@media(max-width:768px){
   .nav-toggle { display: flex !important; }
   .nav-links { display: none; position: absolute; top: 80px; right: 0; left: 0; background: white; width: 100%; flex-direction: column; gap: 0; padding: 0; box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); border-bottom: 1px solid var(--border-color); z-index: 100; }
   .nav-links.open { display: flex !important; }
   .nav-links a { padding: 12px 24px; border-bottom: 1px solid var(--border-color); }
   .nav-links a:last-child { border-bottom: none; }
}

/* Generic hero sizing */
.hero h2, .page-hero h2, .acad-hero h1 { font-size:3.5rem; }
@media(max-width:1024px){ .hero h2, .page-hero h2, .acad-hero h1{ font-size:2.75rem; } }
@media(max-width:640px){ .hero h2, .page-hero h2, .acad-hero h1 { font-size:2.25rem; } }

/* Responsive helper grids */
@media(max-width:1024px){ .grid-3{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:640px){ .grid-3{ grid-template-columns:1fr; } }
@media(max-width:768px){ 
    .two-col-grid{ grid-template-columns:1fr; gap:30px; }
    .container { padding: 0 16px; }
}

/* Utility classes */
.text-center{ text-align:center; }
.mb-16{ margin-bottom:4rem; }
.py-24{ padding:6rem 0; }
.bg-white{ background:#fff; }

/* Footer helper */
.footer-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:3rem; }
@media(max-width:1024px){ .footer-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:640px){ .footer-grid{ grid-template-columns:1fr; } }

footer { background-color: #1e3a8a; color: #ffffff; padding: 60px 20px; font-family: 'Montserrat', sans-serif; }
footer a { color: #e2e8f0; transition: color 0.3s ease; }
footer a:hover { color: #fbbf24; }

@media(max-width:768px) {
  footer { padding: 40px 20px; }
  footer h3, footer h4 { font-size: 1.1rem; }
  footer p { font-size: 0.9rem; }
}

/* Specific about-block styling */
.about-block{ font-family:var(--font-sans); color:var(--text-dark); background-color:var(--bg-light); padding:60px 0; }
.about-block .two-col-grid{ max-width:1200px; margin:0 auto; padding:0 24px; margin-bottom:100px; }
@media(max-width:768px){ .about-block{ padding:40px 0; } }

/* Generic table wrapper for overflow on narrow devices */
.table-responsive{ overflow-x:auto; }
