/* =================================================================
   CMAT NTA – Frontpage Styles
   Extracted from frontpage.php inline <style> block.
   ================================================================= */

:root {
  --primary: #1a3a6b;
  --primary-light: #2356a8;
  --accent: #f7941d;
  --accent2: #e63946;
  --success: #2dc653;
  --warning: #ffc107;
  --info: #17a2b8;
  --bg: #f4f6fb;
  --white: #ffffff;
  --text: #222;
  --text-light: #555;
  --border: #dde3ef;
  --shadow: 0 2px 12px rgba(26,58,107,0.10);
  --radius: 10px;
  --nav-height: 64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── TOP BAR ── */
.topbar {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  font-size: 12px;
}
.topbar-left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar-left a { color: #c9d8f0; transition: color .2s; display: flex; align-items: center; gap: 5px; }
.topbar-left a:hover { color: #fff; }
.topbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-mytest {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s;
  font-family: 'Poppins', sans-serif;
}
.btn-mytest:hover { background: #d97c0a; }
.btn-mytest.alt { background: var(--primary-light); }
.btn-mytest.alt:hover { background: #1a4a96; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  padding: 10px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--accent);
}
.logo-area { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-link:hover { opacity: 0.9; }
.logo-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 1px;
}
.logo-text { font-size: 12px; color: var(--text-light); line-height: 1.4; }
.logo-text strong { display: block; font-size: 14px; color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  border-radius: 6px;
  transition: background .2s;
}
.hamburger:hover { background: #f0f4ff; }
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-links li { list-style: none; padding: 0; margin: 0; }
.nav-links a {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all .2s;
  white-space: nowrap;
}
.nav-links a:hover { background: #e8edf8; color: var(--primary); }
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a { background: var(--primary); color: #fff; }

/* Mobile overlay nav */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 190;
}
.nav-overlay.open { display: block; }

/* ── ALERT BANNER ── */
.alert-banner {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
  overflow: hidden;
}
.alert-badge {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
}
.marquee-text { overflow: hidden; white-space: nowrap; flex: 1; min-width: 0; }
.marquee-text span { display: inline-block; animation: marquee 35s linear infinite; }
@keyframes marquee { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── MAIN GRID ── */
.main-grid { display: grid; grid-template-columns: 1fr 400px; gap: 24px; padding: 24px 0; }

/* Left: Tabs */
.tab-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tab-header { display: flex; border-bottom: 2px solid var(--border); }
.tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  margin-bottom: -2px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--accent); background: #f0f4ff; }
.tab-content { display: none; padding: 18px; min-height: 220px; }
.tab-content.active { display: block; }
.notice-list { list-style: none; }
.notice-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li .bullet { color: var(--accent); font-size: 8px; margin-top: 6px; flex-shrink: 0; }
.notice-list a { color: var(--primary-light); font-weight: 500; }
.notice-list a:hover { text-decoration: underline; }

/* Right sidebar: about */
.about-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.about-card h3 { color: var(--primary); font-size: 16px; margin-bottom: 10px; border-left: 4px solid var(--accent); padding-left: 10px; }
.about-card p { font-size: 12.5px; color: var(--text-light); line-height: 1.7; }
.btn-readmore {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  background: var(--primary);
  color: #fff;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s;
}
.btn-readmore:hover { background: var(--accent); }

/* ── PREMIUM FEATURE CARDS ── */
.feature-section { padding: 40px 0 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.premium-feature-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(26, 58, 107, 0.05);
  border: 1px solid #f0f4f8;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.premium-feature-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 60px rgba(26, 58, 107, 0.12);
  border-color: rgba(26, 58, 107, 0.1);
}

.feature-badge-pill {
    position: absolute; top: 15px; right: 15px;
    background: #fdecea; color: #e63946;
    padding: 4px 12px; border-radius: 20px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
}

.feature-icon-wrapper {
  width: 70px; height: 70px;
  border-radius: 22px;
  background: #f0f4ff;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.premium-feature-card:nth-child(2) .feature-icon-wrapper { background: #fef8f0; color: #f7941d; }
.premium-feature-card:nth-child(3) .feature-icon-wrapper { background: #eefcf3; color: #2dc653; }

.premium-feature-card:hover .feature-icon-wrapper { transform: scale(1.1) rotate(5deg); }

.premium-feature-card h4 { font-size: 18px; font-weight: 800; color: #1a3a6b; margin: 0; }
.premium-feature-card p { font-size: 13px; color: #778ca3; line-height: 1.6; margin: 0; }

.btn-feature-premium {
  margin-top: 10px;
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
  border: none;
  cursor: pointer;
}

.premium-feature-card:nth-child(2) .btn-feature-premium { background: var(--accent); }
.premium-feature-card:nth-child(3) .btn-feature-premium { background: var(--success); }

.btn-feature-premium:hover { transform: scale(1.05); filter: brightness(1.1); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* ── IMPORTANT DATES ── */
.section-title {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 14px;
  font-weight: 700;
}
.section-title .dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.dates-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 22px; }

/* Responsive table wrapper */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dates-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.dates-table thead { background: #f0f4ff; }
.dates-table th { padding: 10px 16px; text-align: left; font-size: 12px; color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--border); white-space: nowrap; }
.dates-table td { padding: 10px 16px; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.dates-table tr:last-child td { border-bottom: none; }
.dates-table tr:hover td { background: #f8f9ff; }
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-closed { background: #fdecea; color: var(--accent2); }
.badge-open { background: #e8f8ee; color: var(--success); }
.badge-upcoming { background: #fff3cd; color: #856404; }
.badge-announced { background: #cce5ff; color: #004085; }
.note { font-size: 11px; color: var(--text-light); padding: 8px 16px 10px; font-style: italic; }

/* ── LATEST NEWS ── */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 15px;
}
.section-heading h2 { font-size: 18px; font-weight: 700; color: var(--primary); position: relative; padding-bottom: 6px; }
.section-heading h2::after { content:''; position:absolute; left:0; bottom:0; width:40px; height:3px; background:var(--accent); border-radius:2px; }
.view-all-btn {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}
.view-all-btn i { font-size: 10px; }
.view-all-btn:hover { 
  background: var(--primary); 
  color: #fff; 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 58, 107, 0.2);
}
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* ── PREMIUM NEWS CARDS ── */
.premium-news-card-home {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}
.premium-news-card-home:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 15px 35px rgba(26, 58, 107, 0.1); 
  border-color: rgba(26,58,107,0.1);
}

.news-thumb-home {
  height: 160px;
  position: relative;
  overflow: hidden;
}
.featured-news-img-home { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.premium-news-card-home:hover .featured-news-img-home { transform: scale(1.08); }

.news-fallback-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff;
}

.news-tag-home {
  position: absolute; top: 15px; left: 15px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
  color: #1a3a6b;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.news-body-home { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.news-body-home h5 { font-size: 15px; font-weight: 800; margin: 0 0 10px; line-height: 1.4; color: #1a3a6b; }
.news-body-home p { font-size: 12.5px; color: #777; line-height: 1.6; margin: 0 0 20px; }

.news-footer-home {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
  transition: all 0.3s;
}
.news-footer-home i { transition: transform 0.3s; }
.premium-news-card-home:hover .news-footer-home i { transform: translateX(5px); }

/* ── DOWNLOADS ── */
.downloads-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}
.download-list { padding: 14px 18px; }
.download-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 500;
  cursor: pointer;
  transition: color .2s;
}
.download-item:last-child { border-bottom: none; }
.download-item:hover { color: var(--accent); }
.download-icon { font-size: 15px; flex-shrink: 0; color: var(--accent2); }
.download-badge { margin-left: auto; font-size: 10px; background: #fdecea; color: var(--accent2); padding: 2px 8px; border-radius: 10px; font-weight: 700; flex-shrink: 0; }

/* ── COLLEGES ── */
.college-section { margin-bottom: 28px; }
.college-section-title {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 13px;
  font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.college-section-title a { color: #c9d8f0; font-size: 12px; font-weight: 500; white-space: nowrap; }
.college-section-title a:hover { color: #fff; }
.college-desc { background: #f0f4ff; padding: 10px 18px; font-size: 12px; color: var(--text-light); }
.college-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; background: var(--white); }
.college-card {
  padding: 18px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s;
}
.college-card:hover { background: #f8f9ff; }
.college-top { display: flex; align-items: flex-start; gap: 12px; }
.college-logo {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.college-info h5 { font-size: 13px; font-weight: 700; color: var(--primary); }
.college-info span { font-size: 11px; color: var(--text-light); }
.college-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.college-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  background: #e8edf8;
  color: var(--primary);
}
.btn-college {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1A3A6B;
  color: #fff;
  padding: 10px 0;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin: 15px auto 5px;
  width: 95%;
  transition: all .2s;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(26,58,107,.15);
  font-family: 'Poppins', sans-serif;
}
.btn-college:hover { background: #152d52; transform: translateY(-1px); box-shadow: 0 6px 15px rgba(26,58,107,.25); }

/* ── FAQ ── */
.faq-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d8c 100%);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 32px;
  color: #fff;
}
.faq-left h2 { font-family: 'Nunito', sans-serif; font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.faq-left h2 span { color: var(--accent); }
.faq-left p { font-size: 13px; color: #c9d8f0; line-height: 1.6; margin-bottom: 18px; }
.btn-all-help {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Poppins', sans-serif;
}
.btn-all-help:hover { background: #d97c0a; }
.faq-items { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.faq-item:hover { background: rgba(255,255,255,0.15); }
.faq-question {
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
}
.faq-question span { font-size: 13px; color: #e8f0ff; display: flex; align-items: center; gap: 8px; }
.faq-arrow { color: var(--accent); font-size: 16px; flex-shrink: 0; transition: transform 0.3s ease; }
.faq-answer {
  display: none;
  padding: 0 16px 16px 40px;
  font-size: 12.5px;
  color: #c9d8f0;
  line-height: 1.6;
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-arrow { transform: rotate(90deg); }
.faq-item.active { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.3); }

/* ── FOOTER ── */
footer {
  background: var(--primary);
  color: #c9d8f0;
  padding: 30px 40px 16px;
  margin-top: 16px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 20px; }
.footer-about h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-about p { font-size: 12px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 13px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 6px; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 4px 0; }
.footer-col ul li a { font-size: 12px; color: #c9d8f0; transition: color .2s; display: flex; align-items: center; }
.footer-col ul li a::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  margin-right: 8px;
}
.footer-col ul li a i { display: none; } /* Hide hardcoded icon if present */
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: #c9d8f0; margin-left: 14px; }
.footer-bottom a:hover { color: #fff; }

/* ── IMAGE REFINEMENTS ── */
.custom-logo-link { display: inline-block; max-height: 50px; overflow: hidden; vertical-align: middle; }
.custom-logo { height: auto; max-height: 50px; width: auto; object-fit: contain; }

.featured-news-img { width: 100%; height: 100%; object-fit: cover; }
.college-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }

/* ── UTILITIES ── */
.mt-6 { margin-top: 6px; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* ── SCROLL-UP BUTTON ── */
.scroll-up {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--accent);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  cursor: pointer;
  z-index: 999;
  border: none;
  transition: background .2s, opacity .3s;
  opacity: 0;
  pointer-events: none;
}
.scroll-up.visible { opacity: 1; pointer-events: auto; }
.scroll-up:hover { background: var(--primary); }

/* ── CHAT BUTTON ── */
.chat-btn {
  position: fixed;
  bottom: 24px; left: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(26,58,107,.35);
  cursor: pointer;
  z-index: 999;
  border: none;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif;
}

/* ═══════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .topbar { padding: 8px 20px; }
  .navbar { padding: 10px 20px; }
  .alert-banner { padding: 10px 20px; }
  footer { padding: 24px 20px 14px; }

  .main-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .college-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .faq-section { padding: 28px 24px; gap: 28px; }
  .faq-left h2 { font-size: 26px; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  .topbar { display: none; }

  .navbar { padding: 10px 16px; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 260px;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 70px 16px 20px;
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
    z-index: 195;
    overflow-y: auto;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
  }

  .alert-banner { padding: 8px 16px; font-size: 12px; }
  .container { padding: 0 16px; }

  .main-grid { grid-template-columns: 1fr; gap: 16px; padding: 16px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .college-grid { grid-template-columns: 1fr; }

  .faq-section {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 24px;
  }
  .faq-left h2 { font-size: 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  footer { padding: 20px 16px 14px; }

  .chat-btn { display: none; }
  .scroll-up { bottom: 16px; right: 16px; width: 38px; height: 38px; font-size: 14px; }

  .section-title { font-size: 13px; }
  .college-section-title { font-size: 12px; }
}


/* ── SINGLE UNIVERSITY COMPONENTS ── */

/* Breadcrumbs */
.uni-breadcrumbs {
  padding: 15px 0;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.uni-breadcrumbs a { color: var(--primary); }
.uni-breadcrumbs a:hover { text-decoration: underline; }
.uni-breadcrumbs span { color: #888; }

/* Profile Card */
.uni-profile-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 30px;
}
.uni-profile-logo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.uni-profile-info { flex: 1; }
.uni-profile-info h1 {
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}
.uni-profile-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.uni-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.uni-badge-item.primary { background: #f0f4ff; color: var(--primary); border: 1px solid #dce4f7; }
.uni-badge-item.accent { background: #fff3e0; color: var(--accent); border: 1px solid #ffe8cc; }
.uni-badge-item i { font-size: 14px; }

/* Content Section Layout */
.uni-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  margin-bottom: 50px;
}

/* Section Headings */
.uni-section-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.uni-section-heading::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
}

/* Programme Card */
.programme-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.programme-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,58,107,.08); border-color: var(--primary-light); }
.programme-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary); }

.programme-meta-item {
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
.programme-meta-item strong { color: var(--primary); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.programme-meta-item p { color: var(--text); }
.programme-meta-item span { color: var(--accent); font-weight: 600; }

.btn-eligibility {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-light);
  text-decoration: underline;
  cursor: pointer;
}
.btn-eligibility:hover { color: var(--accent); }

/* Sidebar Filter Widget */
.filter-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 25px;
  overflow: hidden;
}
.filter-widget-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-widget-body { padding: 15px; }
.filter-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}
.filter-list {
  max-height: 250px;
  overflow-y: auto;
  list-style: none;
}
.filter-list li {
  padding: 6px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.filter-list li input { cursor: pointer; }
.filter-list::-webkit-scrollbar { width: 4px; }
.filter-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* Mobile Adjustments for Uni Profile */
@media (max-width: 768px) {
  .uni-profile-card { flex-direction: column; text-align: center; padding: 30px 20px; }
  .uni-profile-badges { justify-content: center; }
  .uni-content-grid { grid-template-columns: 1fr; }
}

/* ── SUBPAGE UI ── */
.subpage-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 40px 0;
  text-align: left;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.subpage-hero h1 { font-size: 32px; font-weight: 800; margin: 0; }
.subpage-hero .container { position: relative; z-index: 2; }

/* Widget Modernization */
.widget-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.widget-card h2, .widget-card h3 {
  background: var(--primary);
  color: #fff !important;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.widget-card h2 a, .widget-card h3 a { color: #fff !important; }
.widget-card ul {
  list-style: none;
  padding: 15px 20px;
}
.widget-card li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.widget-card li:last-child { border-bottom: none; }
.widget-card li a { color: var(--primary-light); transition: color .2s; }
.widget-card li a:hover { color: var(--accent); }

/* Premium Search Form v2 */
.search-card-wrap {
  background: var(--white);
  padding: 20px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  width: 100%;
  max-width: 1000px;
}
.premium-search-box {
  display: flex;
  align-items: center;
  width: 100%;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  padding: 6px;
  transition: all 0.3s;
  min-height: 54px;
}
.premium-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.1);
  background: #fff;
}
.premium-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 25px;
  font-size: 18px;
  outline: none;
  font-family: inherit;
  font-weight: 500;
}
.premium-search-box .search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 18px;
  flex-shrink: 0;
}
.premium-search-box .search-btn:hover { background: var(--accent); transform: scale(1.05); }

/* UNIVERSITY RANKINGS UI */
.ranking-grid-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: flex-start;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ranking-item-card {
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ranking-item-card:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(26, 58, 107, 0.08);
}

.rank-badge-wrap {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 25px;
  box-shadow: 0 4px 15px rgba(26, 58, 107, 0.2);
  border: 4px solid #fff;
}

.ranking-item-card:nth-child(1) .rank-badge-wrap { background: #FFD700; color: #000; } /* Gold */
.ranking-item-card:nth-child(2) .rank-badge-wrap { background: #C0C0C0; color: #000; } /* Silver */
.ranking-item-card:nth-child(3) .rank-badge-wrap { background: #CD7F32; color: #fff; } /* Bronze */

.ranking-item-logo {
  width: 70px;
  height: 70px;
  margin-right: 25px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ranking-item-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ranking-item-info {
  flex-grow: 1;
}

.ranking-item-info h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
}

.ranking-item-info h3 a {
  color: var(--primary);
  text-decoration: none;
}

.ranking-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #64748b;
  align-items: center;
}

.cutoff-info {
  background: #f0f4ff;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.btn-view-rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8fafc;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
  border: 1px solid #e1e9f1;
}

.ranking-item-card:hover .btn-view-rank {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.ranking-quick-links {
  list-style: none;
  padding: 0 20px 20px 20px !important;
  margin: 0;
}

.ranking-quick-links li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.ranking-quick-links li:last-child {
  border-bottom: none;
}

.ranking-quick-links a {
  color: #475569;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.ranking-quick-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

@media (max-width: 991px) {
  .ranking-grid-layout {
    grid-template-columns: 1fr;
  }
  .ranking-item-card {
    flex-wrap: wrap;
    gap: 15px;
  }
  .ranking-item-action {
    width: 100%;
    margin-top: 10px;
  }
  .btn-view-rank {
    width: 100%;
    justify-content: center;
  }
}


/* Entry Content Styles */
.entry-content {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}
.entry-content h1.entry-title { font-size: 28px; color: var(--primary); margin-bottom: 20px; font-weight: 700; border-left: 4px solid var(--accent); padding-left: 15px; }
.entry-content h2, .entry-content h3 { color: var(--primary); margin-top: 25px; margin-bottom: 15px; font-weight: 700; }
.entry-content p { margin-bottom: 20px; }
.edit-link a { display: inline-block; margin-top: 20px; background: #eee; padding: 4px 12px; border-radius: 4px; color: #666; font-size: 12px; }

/* Hide redundant search widgets in sidebar */
.sidebar-inner .widget_search, 
.sidebar-inner .wp-block-search { 
  display: none !important; 
}

