/*
Theme Name: USME Campus Theme
Theme URI: https://usme.dtu.ac.in
Author: DTU East Campus
Author URI: https://dtu.ac.in
Description: A clean, professional WordPress theme for DTU East Campus (USME) — featuring Campus information and Blog sections.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: usme-campus
Tags: blog, education, university, clean, responsive
*/

/* ============================================
   CSS DESIGN TOKENS
============================================ */
:root {
  --bg: #F7F8FC;
  --white: #FFFFFF;
  --dark: #0B1426;
  --blue: #1E4FD8;
  --blue-hover: #1743B8;
  --blue-light: #EBF0FF;
  --blue-mid: #4B72F0;
  --amber: #F5A623;
  --amber-light: #FFF8ED;
  --grey: #F0F2F7;
  --grey2: #E4E7EF;
  --text: #0B1426;
  --text2: #4A5568;
  --text3: #7B879A;
  --green: #16A34A;
  --red: #DC2626;
  --border: #DDE2EE;
  --shadow-sm: 0 2px 8px rgba(11,20,38,.07);
  --shadow-md: 0 8px 28px rgba(11,20,38,.10);
  --shadow-lg: 0 18px 48px rgba(11,20,38,.14);
  --shadow-blue: 0 6px 24px rgba(30,79,216,.32);
  --radius-card: 16px;
  --radius-pill: 50px;
  --radius-sm: 8px;
  --speed: 0.2s;
  --ease: cubic-bezier(.25,.8,.25,1);
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   LAYOUT CONTAINER
============================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ============================================
   NAVIGATION
============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo .logo-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
}

.site-logo .logo-sub {
  font-size: 10px;
  color: var(--text3);
  font-family: 'Inter', sans-serif;
}

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

.nav-links li a {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  border-radius: 8px;
  transition: background var(--speed), color var(--speed);
  text-decoration: none;
}

.nav-links li a:hover,
.nav-links li a.current-menu-item {
  background: var(--blue-light);
  color: var(--blue);
}

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: var(--shadow-blue);
}

.nav-cta:hover {
  background: var(--blue-hover) !important;
  transform: translateY(-1px);
}

/* ============================================
   HERO — CAMPUS PAGE
============================================ */
.campus-hero-wrap {
  background: linear-gradient(145deg, #0B1426 0%, #122040 60%, #0B1426 100%);
  padding: clamp(60px, 10vw, 100px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.campus-hero-wrap::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(75,114,240,.25) 0%, transparent 70%);
  pointer-events: none;
}

.campus-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(75,114,240,.18);
  color: #A9BEFF;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.campus-hero-wrap h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 54px);
  margin-bottom: 16px;
}

.campus-hero-wrap p {
  color: rgba(255,255,255,.65);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.campus-hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.campus-badge {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
}

/* ============================================
   SECTION SHARED STYLES
============================================ */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 540px;
  line-height: 1.7;
}

/* ============================================
   ABOUT / CAMPUS SECTION
============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.about-text p {
  font-size: 15.5px;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-text strong {
  color: var(--dark);
  font-weight: 600;
}

.credential-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credential-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--speed), border-color var(--speed);
}

.credential-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #b4c4f4;
}

.credential-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.credential-content .credential-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-bottom: 3px;
}

.credential-content .credential-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

/* Key Facts Strip */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 48px;
}

.fact-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}

.fact-item:last-child { border-right: none; }

.fact-number {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  color: #fff;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  margin-bottom: 6px;
}

.fact-number span {
  color: var(--blue-mid);
}

.fact-label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.45;
}

/* Clarifier Box */
.clarifier-box {
  background: var(--amber-light);
  border: 1.5px solid var(--amber);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.clarifier-box h3 {
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.clarifier-box p {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.7;
}

/* ============================================
   LEADERSHIP SECTION
============================================ */
.leadership-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.leader-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.leader-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--grey);
  overflow: hidden;
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--text3);
}

.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.leader-title {
  font-size: 11.5px;
  color: var(--blue);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.leader-institution {
  font-size: 10.5px;
  color: var(--text3);
  text-align: center;
}

.leader-message {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.8;
  font-style: italic;
  border-left: 3px solid var(--blue);
  padding-left: 18px;
  margin-bottom: 16px;
}

.leader-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-item .detail-label {
  font-size: 10.5px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-bottom: 3px;
}

.detail-item .detail-value {
  font-size: 13px;
  color: var(--dark);
  font-weight: 600;
}

/* ============================================
   FACULTY GRID
============================================ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.faculty-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
  transition: box-shadow var(--speed), border-color var(--speed), transform var(--speed);
}

.faculty-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #b4c4f4;
  transform: translateY(-3px);
}

.faculty-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.faculty-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.faculty-role {
  font-size: 11.5px;
  color: var(--text3);
}

/* ============================================
   WHY CHOOSE US
============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--speed), border-color var(--speed);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #b4c4f4;
}

.why-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.why-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.why-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grey);
  overflow: hidden;
  flex-shrink: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
}

.author-role {
  font-size: 12px;
  color: var(--text3);
}

/* ============================================
   ADMISSIONS PROCESS
============================================ */
.admissions-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.step-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin: 0 auto 14px;
  font-family: 'Inter', sans-serif;
}

.step-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.step-text {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

/* ============================================
   CTA BLOCK
============================================ */
.cta-block {
  background: linear-gradient(145deg, #0B1426 0%, #122040 55%, #0B1426 100%);
  border-radius: 22px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  margin: 56px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 60px -24px rgba(11,20,38,.6);
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(75,114,240,.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(75,114,240,.18);
  color: #A9BEFF;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cta-block h2 {
  color: #fff;
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 8px;
}

.cta-block p {
  color: rgba(255,255,255,.6);
  font-size: 14.5px;
}

.cta-btns {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  letter-spacing: .02em;
  transition: all var(--speed) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30,79,216,.42);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  text-decoration: none;
  color: #fff;
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(22,163,74,.25);
}

.btn-green:hover {
  background: #15803d;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

/* ============================================
   BLOG PAGE STYLES
============================================ */
.blog-page-hero {
  background: var(--dark);
  padding: 56px 0 40px;
  color: #fff;
}

.blog-page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 8px;
}

.blog-page-hero p {
  color: rgba(255,255,255,.6);
  font-size: 15px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.filter-tab {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text2);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--speed), color var(--speed), border-color var(--speed);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.filter-tab:hover {
  background: var(--blue-light);
  color: var(--blue);
  border-color: var(--blue-light);
}

.filter-tab.active,
.filter-tab.current-cat {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(30,79,216,.28);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.blog-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #b4c4f4;
  text-decoration: none;
  color: inherit;
}

/* Featured card - spans full 12 cols */
.blog-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.blog-card.featured .card-thumb {
  width: 50%;
  flex-shrink: 0;
  min-height: 300px;
  aspect-ratio: auto;
}

.blog-card.featured .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3.5vw, 36px);
}

/* Regular cards: 4 cols = 3 per row */
.blog-card:not(.featured) {
  grid-column: span 4;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--grey);
  position: relative;
  flex-shrink: 0;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.blog-card:hover .card-thumb img {
  transform: scale(1.06);
}

.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-light) 0%, #d6e0ff 100%);
  font-size: 40px;
}

.featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--dark);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
}

.card-body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card.featured .card-title {
  font-size: clamp(18px, 2.5vw, 24px);
  -webkit-line-clamp: 4;
}

.card-excerpt {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-meta {
  font-size: 11.5px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: 'Inter', sans-serif;
}

.card-meta-dot { color: var(--border); }

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 14px;
  transition: gap var(--speed);
  font-family: 'Inter', sans-serif;
}

.blog-card:hover .card-arrow { gap: 9px; }

/* Single Post */
.single-post-hero {
  background: var(--dark);
  padding: 48px 0 36px;
}

.post-tag {
  display: inline-block;
  background: rgba(75,114,240,.2);
  color: #A9BEFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.single-post-hero h1 {
  color: #fff;
  font-size: clamp(24px, 4vw, 40px);
  margin-bottom: 18px;
}

.post-meta-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  font-family: 'Inter', sans-serif;
  flex-wrap: wrap;
}

.post-banner {
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-card);
  margin: 24px 0;
  background: var(--grey);
}

.post-banner img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

/* Article body */
.post-content {
  max-width: 740px;
  font-size: 16px;
  line-height: 1.82;
  color: var(--text2);
  padding: 40px 0;
}

.post-content > p:first-of-type {
  font-size: 18.5px;
  color: var(--text);
  line-height: 1.72;
  margin-bottom: 22px;
}

.post-content h2 {
  font-size: clamp(19px, 2.8vw, 24px);
  margin: 38px 0 14px;
  color: var(--dark);
}

.post-content h3 {
  font-size: 17px;
  margin: 26px 0 10px;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; }
.post-content li { margin-bottom: 9px; }
.post-content strong { color: var(--dark); font-weight: 600; }

/* Callout */
.callout {
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 26px 0;
  font-size: 14.5px;
  color: var(--text2);
}

.callout strong {
  display: block;
  color: var(--dark);
  margin-bottom: 5px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: 'Inter', sans-serif;
}

/* Table */
.wp-block-table, .cutoff-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 30px;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.wp-block-table th, .cutoff-table th {
  background: var(--blue-light);
  color: var(--blue);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid #c4d3ff;
  font-family: 'Inter', sans-serif;
}

.wp-block-table td, .cutoff-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}

.wp-block-table tr:last-child td,
.cutoff-table tr:last-child td { border-bottom: none; }

.wp-block-table tr:hover td,
.cutoff-table tr:hover td { background: #fafbff; }

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-brand .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.footer-brand .logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.footer-brand .logo-title { color: #fff; font-size: 14px; font-weight: 700; }
.footer-brand .logo-sub { color: rgba(255,255,255,.45); font-size: 10px; }

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,.55);
  font-size: 13.5px;
  text-decoration: none;
  transition: color var(--speed);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .blog-card:not(.featured) { grid-column: span 6; }
  .facts-strip { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .blog-card.featured { flex-direction: column; grid-column: 1 / -1; }
  .blog-card.featured .card-thumb { width: 100%; min-height: unset; aspect-ratio: 16/9; }
  .blog-card:not(.featured) { grid-column: span 6; }
  .leadership-card { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .admissions-steps { grid-template-columns: repeat(2, 1fr); }
  .cta-block { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .blog-grid { gap: 14px; }
  .blog-card:not(.featured) { grid-column: 1 / -1; }
  .filter-bar { gap: 6px; }
  .filter-tab { padding: 7px 14px; font-size: 12px; }
  .facts-strip { grid-template-columns: repeat(2, 1fr); }
  .admissions-steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1424;
    --white: #111D33;
    --dark: #E8EEFF;
    --blue-light: rgba(30,79,216,.18);
    --grey: #1A2640;
    --grey2: #243050;
    --text: #E0E8FF;
    --text2: #A3B3D4;
    --text3: #637090;
    --border: #1E2F4A;
  }
}
