/**
 * AdmissionCircular.BD - Master Stylesheet
 * 100% Faithful to demo design.html + Home & Category layouts & Element Builder Widgets
 */

:root {
  --primary-navy: #0b2545;
  --header-navy: #081d37;
  --nav-hover: #133b6b;
  --text-main: #1e293b;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --bg-page: #f1f5f9;
  --accent-green: #15803d;
  --accent-green-hover: #166534;
  --light-green-bg: #ecfdf5;
  --light-blue-bg: #e0f2fe;
  --blue-pill: #dbeafe;
  --blue-icon: #0284c7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.page-content {
  flex: 1;
  padding: 24px 0 40px;
}

/* Container */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* =========================================================
 * Top Brand & Search Header (from demo design)
 * ========================================================= */
.top-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.top-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.logo-badge {
  width: 44px;
  height: 44px;
  background: var(--header-navy);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 5px rgba(8, 29, 55, 0.2);
}

.brand-text h1,
.brand-text .brand-title,
.brand-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--header-navy);
  letter-spacing: -0.5px;
  line-height: 1.15;
  display: block;
}

.brand-text .brand-tagline {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  display: block;
}

.search-box {
  position: relative;
  max-width: 360px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 9px 40px 9px 16px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  outline: none;
  background-color: #f8fafc;
  transition: all 0.2s;
}

.search-input:focus {
  background-color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px 12px;
  color: var(--header-navy);
  cursor: pointer;
  font-size: 14px;
}

/* =========================================================
 * Main Navigation Bar (from demo design)
 * ========================================================= */
.navbar {
  background-color: var(--header-navy);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

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

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

.nav-links li {
  position: relative;
}

.nav-links a {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--nav-hover);
}

/* =========================================================
 * Global Announcement Notice Bar (below menubar)
 * ========================================================= */
.announcement-bar {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
  color: #ffffff;
  border-bottom: 2px solid #991b1b;
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.25);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  z-index: 95;
}

.announcement-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 16px;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.announcement-badge {
  background: #ffffff;
  color: #dc2626;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.announcement-text {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.announcement-text a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.announcement-text a:hover {
  opacity: 0.9;
}

.announcement-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.85;
  transition: all 0.2s;
  flex-shrink: 0;
}

.announcement-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .announcement-container {
    padding: 8px 12px;
    gap: 10px;
  }
  .announcement-text {
    font-size: 12.5px;
  }
  .announcement-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* =========================================================
 * Navigation Dropdown Styles
 * ========================================================= */
.nav-links li.has-dropdown {
  position: relative;
}

.nav-links li.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  margin-left: 3px;
  opacity: 0.85;
}

.nav-links li.has-dropdown:hover .nav-dropdown-arrow,
.nav-links li.has-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  padding: 6px 0;
  list-style: none;
  display: none;
  z-index: 1000;
  animation: navDropdownFade 0.18s ease-out;
}

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

/* Hover show on desktop */
@media (min-width: 901px) {
  .nav-links li.has-dropdown:hover > .dropdown-menu {
    display: block;
  }
}

.nav-links .dropdown-menu li {
  width: 100%;
  position: relative;
}

.nav-links .dropdown-menu a.dropdown-item {
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border-radius: 0;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links .dropdown-menu a.dropdown-item i {
  color: #0284c7;
  transition: color 0.15s;
}

.nav-links .dropdown-menu a.dropdown-item:hover {
  background-color: #f0f9ff;
  color: #0369a1;
  padding-left: 19px;
}

.nav-links .dropdown-menu a.dropdown-item:hover i {
  color: #0284c7;
}

.nav-links .dropdown-menu a.dropdown-item.active {
  background-color: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.nav-links .dropdown-divider {
  height: 1px;
  background-color: #f1f5f9;
  margin: 4px 0;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
}

/* =========================================================
 * Content Page: Hero Card (100% demo design)
 * ========================================================= */
.hero-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.hero-main {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #f1f5f9;
}

.du-emblem-wrap {
  flex-shrink: 0;
  width: 130px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.du-emblem-wrap img {
  max-width: 120px;
  max-height: 140px;
  object-fit: contain;
}

.du-emblem-wrap svg {
  max-width: 100%;
  height: auto;
}

.hero-info {
  flex: 1;
}

.hero-badge-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-green { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-blue { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-orange { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.badge-red { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-purple { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge-amber { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge-yellow { background: #fef9c3; color: #a16207; border: 1px solid #fef08a; }

.hero-info h1,
.hero-info h2,
.hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--header-navy);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.hero-info p {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 820px;
  text-align: justify;
}

/* Action Buttons Strip */
.action-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 10px 8px;
  text-decoration: none;
  color: var(--header-navy);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.action-btn i {
  font-size: 16px;
}

.action-btn:hover {
  border-color: #0284c7;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.06);
}

.icon-green { color: #16a34a; }
.icon-blue { color: #0284c7; }
.icon-teal { color: #0d9488; }
.icon-purple { color: #7c3aed; }
.icon-emerald { color: #059669; }
.icon-indigo { color: #4f46e5; }
.icon-orange { color: #ea580c; }
.icon-red { color: #dc2626; }

/* =========================================================
 * 2-Column Content Layout (from demo design)
 * ========================================================= */
.layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* Left Sidebar: Table of Contents */
.toc-sidebar {
  position: sticky;
  top: 60px;
}

.toc-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.toc-header {
  background-color: var(--header-navy);
  color: #ffffff;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

#tocChevron {
  font-size: 13px;
  transition: transform 0.25s ease;
}

@media (min-width: 901px) {
  #tocChevron {
    display: none !important;
  }
  .toc-body {
    display: block !important;
  }
}

.toc-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toc-body {
  padding: 12px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.toc-item a .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #cbd5e1;
  flex-shrink: 0;
  transition: background 0.15s;
}

.toc-item a:hover {
  background-color: #f1f5f9;
  color: var(--header-navy);
}

.toc-item.active a {
  background-color: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
}

.toc-item.active a .dot {
  background-color: #0284c7;
}

/* Right Main Column Sections: Separate Card per Section */
.content-sections-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 70px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.section-card:hover {
  border-color: #cbd5e1;
}

.section-card-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.section-card-header .section-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--header-navy);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.section-card-body {
  display: flex;
  flex-direction: column;
}

.section-card-body p.overview-desc,
.main-article p.overview-desc,
p.overview-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
  text-align: justify;
}

.main-article {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.main-section {
  margin-bottom: 32px;
  scroll-margin-top: 70px;
}

.main-section:last-child {
  margin-bottom: 0;
}

.main-article h3.section-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--header-navy);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* =========================================================
 * Element Widgets
 * ========================================================= */

/* 1. Glance Card & Table (demo design) */
.glance-card {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.04);
}

.glance-header {
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #bfdbfe;
}

.glance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.glance-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.glance-table tr:last-child {
  border-bottom: none;
}

.glance-table td {
  padding: 11px 16px;
  vertical-align: middle;
}

.glance-table td.label-col {
  font-weight: 700;
  color: var(--header-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 38%;
}

.glance-table td.label-col i {
  color: #0284c7;
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.glance-table td.val-col {
  color: #334155;
  font-weight: 500;
}

/* 2. Official Website Banner (Green Banner from demo design) */
.official-banner {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.globe-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.banner-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.banner-info h4 a {
  color: #0284c7;
  text-decoration: none;
  word-break: break-all;
}

.banner-info h4 a:hover {
  text-decoration: underline;
}

.banner-info p {
  font-size: 13px;
  color: #475569;
  margin-top: 3px;
}

.apply-btn {
  background-color: var(--accent-green);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: background-color 0.2s, transform 0.15s;
  box-shadow: 0 2px 4px rgba(21, 128, 61, 0.2);
}

.apply-btn:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-1px);
}

/* 3. Paragraph & Formatted HTML Widget */
.widget-paragraph {
  margin-bottom: 18px;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.7;
  text-align: justify;
}

.widget-paragraph p {
  margin-bottom: 12px;
  text-align: justify;
}

.widget-paragraph p:last-child {
  margin-bottom: 0;
}

.widget-paragraph a {
  color: #0284c7;
  text-decoration: underline;
}

.widget-paragraph ul, .widget-paragraph ol {
  margin: 10px 0 14px 20px;
}

.widget-paragraph li {
  margin-bottom: 6px;
}

/* 4. Timeline Widget */
.timeline-widget {
  position: relative;
  margin: 20px 0 24px 10px;
  padding-left: 24px;
  border-left: 2px solid #cbd5e1;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #0284c7;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #0284c7;
}

.timeline-item.completed .timeline-dot {
  background-color: #16a34a;
  box-shadow: 0 0 0 2px #16a34a;
}

.timeline-item.upcoming .timeline-dot {
  background-color: #94a3b8;
  box-shadow: 0 0 0 2px #94a3b8;
}

.timeline-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--header-navy);
}

.timeline-date {
  font-size: 12.5px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 4px;
}

.timeline-desc {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

/* 5. Steps Widget */
.steps-widget {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.step-card {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  transition: all 0.2s;
}

.step-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--header-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--header-navy);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
}

/* 6. Standard Table Widget */
.table-widget-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.data-table th {
  background-color: var(--header-navy);
  color: #ffffff;
  font-weight: 700;
  padding: 11px 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.data-table th:last-child {
  border-right: none;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.data-table tr:nth-child(even) td {
  background-color: #f8fafc;
}

.data-table tr:hover td {
  background-color: #f1f5f9;
}

/* 7. Countdown Widget */
.countdown-card {
  background: linear-gradient(135deg, #081d37 0%, #0b2545 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 22px;
  margin: 20px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.countdown-label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.countdown-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown-slot {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  min-width: 68px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.countdown-unit {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 4px;
}

/* 8. Callout Box Widget */
.callout-box {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 14px;
}

.callout-box.info {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.callout-box.warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.callout-box.success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 9. FAQ Accordion Widget */
.faq-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.faq-question {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--header-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #f8fafc;
  transition: background 0.15s;
}

.faq-question:hover {
  background: #f1f5f9;
}

.faq-answer {
  padding: 14px 18px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.2s;
  font-size: 12px;
  color: #64748b;
}

/* =========================================================
 * Home Page & Category Page Specific Styles
 * ========================================================= */

/* Home Hero Banner */
.home-hero {
  background: linear-gradient(135deg, #081d37 0%, #0f3460 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.home-hero-content {
  position: relative;
  z-index: 2;
}

.home-hero h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.home-hero p {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.home-hero-search {
  display: flex;
  background: #ffffff;
  border-radius: 9999px;
  padding: 5px 6px 5px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 580px;
}

.home-hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #0f172a;
}

.home-hero-search button {
  background: var(--accent-green);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.home-hero-search button:hover {
  background: var(--accent-green-hover);
}

/* Category Filter Pills Strip */
.filter-pills-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0 16px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.filter-pill {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--header-navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--header-navy);
  color: #ffffff;
  border-color: var(--header-navy);
  box-shadow: var(--shadow-sm);
}

.filter-pill .pill-count {
  background: rgba(0,0,0,0.08);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 9999px;
}

.filter-pill.active .pill-count {
  background: rgba(255,255,255,0.2);
}

/* Circular Cards Grid */
.section-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-headline h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--header-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.circular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.circular-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.circular-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.circular-card.card-has-update {
  border-color: #7dd3fc;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
  position: relative;
}

.circular-card.card-has-update:hover {
  border-color: #0284c7;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.16);
}

.circular-card-top {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.card-emblem-wrap {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.card-emblem-wrap img, .card-emblem-wrap svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-heading-info {
  flex: 1;
}

.card-heading-info .category-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #0284c7;
  display: block;
  margin-bottom: 2px;
}

.card-heading-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--header-navy);
  line-height: 1.3;
}

.card-heading-info h4 a {
  color: inherit;
  text-decoration: none;
}

.card-heading-info h4 a:hover {
  color: #0284c7;
}

.circular-card-details {
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 0;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-row .detail-label {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-row .detail-val {
  font-weight: 600;
  color: #1e293b;
}

.circular-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-view-circular {
  flex: 1;
  background-color: var(--header-navy);
  color: #ffffff;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-view-circular:hover {
  background-color: var(--nav-hover);
}

.btn-apply-outline {
  background-color: #ffffff;
  color: var(--accent-green);
  border: 1px solid #86efac;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.15s;
}

.btn-apply-outline:hover {
  background-color: var(--accent-green);
  color: #ffffff;
}

/* Category Page Hero */
.category-hero {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: #0284c7;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.category-hero h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--header-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.category-hero p {
  color: #475569;
  font-size: 14px;
}

/* =========================================================
 * Footer (from demo design)
 * ========================================================= */
.site-footer {
  background-color: var(--header-navy);
  color: #cbd5e1;
  padding: 24px 0 16px;
  font-size: 12.5px;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  transition: transform 0.15s;
}

.social-icon:hover {
  transform: translateY(-2px);
}

.social-icon.yt { background-color: #dc2626; }
.social-icon.fb { background-color: #1877f2; }
.social-icon.tg { background-color: #0088cc; }
.social-icon.web { background-color: #0284c7; }

.footer-bottom {
  text-align: center;
  padding-top: 14px;
  color: #94a3b8;
  font-size: 12px;
}

/* =========================================================
 * Dedicated Hub Pages (/exam, /result, /admit, /circular)
 * ========================================================= */
.hub-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hub-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.hub-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13.5px;
}

.hub-search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 13.5px;
  background-color: #ffffff;
  outline: none;
  transition: all 0.2s;
}

.hub-search-wrap input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.hub-cat-select-wrap select {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--header-navy);
  background-color: #ffffff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.hub-cat-select-wrap select:focus {
  border-color: #0284c7;
}

.hub-container {
  margin-bottom: 40px;
}

.hub-table-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hub-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.hub-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.hub-table thead {
  background-color: #f8fafc;
  border-bottom: 2px solid var(--border-color);
}

.hub-table th {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
}

.hub-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.hub-table tbody tr:hover {
  background-color: #f8fafc;
}

.hub-table td {
  padding: 14px 16px;
  vertical-align: middle;
}

.hub-uni-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-emblem-wrap {
  width: 44px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-emblem-wrap svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.hub-emblem-wrap img {
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.hub-emblem-fallback {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--light-blue-bg);
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.hub-uni-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hub-uni-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--header-navy);
  text-decoration: none;
  transition: color 0.15s;
}

.hub-uni-name:hover {
  color: #0284c7;
}

.hub-uni-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hub-code-pill {
  font-size: 11px;
  font-weight: 700;
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 1px 6px;
  border-radius: 4px;
}

.hub-cat-pill {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.hub-notice-title a {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}

.hub-notice-title a:hover {
  color: #0284c7;
}

.hub-notice-snippet {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.35;
}

.hub-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hub-date-badge.tba {
  background-color: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.btn-hub-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--header-navy);
  color: #ffffff;
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-hub-view:hover {
  background-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(2, 132, 199, 0.2);
}

.hub-empty-state {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
}

.hub-empty-state i {
  font-size: 40px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.hub-empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--header-navy);
  margin-bottom: 6px;
}

.hub-empty-state p {
  font-size: 13.5px;
  color: #64748b;
}

.hub-cards-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.hub-card-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.hub-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-emblem-wrap-sm {
  width: 38px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-emblem-wrap-sm svg {
  max-width: 100%;
  max-height: 100%;
}

/* =========================================================
 * Responsive Styles (from demo design)
 * ========================================================= */
@media (max-width: 900px) {
  .layout-grid {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .content-sections-column {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .section-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Table of Contents Mobile Collapsible */
  .toc-sidebar {
    position: static;
    top: auto;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    z-index: 10;
  }

  .toc-card {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
  }

  .toc-header {
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .toc-body {
    display: none; /* COLLAPSED BY DEFAULT ON MOBILE */
    padding: 10px 14px 14px;
    max-height: 380px;
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
  }

  .toc-card.open .toc-body,
  .toc-body.is-open {
    display: block !important;
  }

  #tocChevron {
    display: inline-block;
    transition: transform 0.25s ease;
  }

  .toc-card.open #tocChevron {
    transform: rotate(180deg);
  }

  .action-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hub-table-card {
    display: none;
  }
  .hub-cards-mobile {
    display: flex;
  }
}

@media (max-width: 680px) {
  .top-header .container {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--header-navy);
    padding-bottom: 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px 16px;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  /* Mobile Dropdown styles */
  .nav-links li.has-dropdown > a {
    justify-content: space-between;
  }

  .nav-links .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.18);
    padding: 0;
    min-width: 100%;
  }

  .nav-links li.has-dropdown.open > .dropdown-menu {
    display: block;
  }

  .nav-links .dropdown-menu a.dropdown-item {
    color: #cbd5e1;
    padding: 10px 18px 10px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links .dropdown-menu a.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding-left: 30px;
  }

  .hero-main {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .action-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .action-btn {
    flex-direction: column;
    gap: 4px;
    padding: 10px 4px;
    font-size: 11.5px;
    text-align: center;
  }

  .action-btn i {
    font-size: 18px;
  }

  /* Prevent tables and widgets from breaking layout */
  .table-widget-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .data-table {
    width: 100%;
    min-width: 460px;
  }

  .content-table,
  .widget-paragraph table,
  .main-article table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
  }

  /* Glance table mobile friendly stacked view */
  .glance-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .glance-table,
  .glance-table tbody {
    display: block;
    width: 100% !important;
  }

  .glance-table tr {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    gap: 4px;
  }

  .glance-table td {
    padding: 0 !important;
    display: block;
    width: 100% !important;
    border: none;
  }

  .glance-table td.label-col {
    width: 100% !important;
    font-size: 12px;
    font-weight: 700;
    color: var(--header-navy);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .glance-table td.val-col {
    width: 100% !important;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    padding-left: 24px !important;
    word-break: break-word;
  }

  /* Section cards padding on mobile */
  .section-card {
    padding: 16px 14px;
  }

  .section-card-header .section-title {
    font-size: 18px;
    word-break: break-word;
  }

  /* Notice Gallery Grid on mobile */
  .notice-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .notice-gallery-card {
    width: 100%;
    max-width: 100%;
  }

  /* PDF Embed Viewer on mobile */
  .pdf-embed-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .pdf-embed-frame {
    width: 100%;
    max-width: 100%;
    height: 420px;
  }

  .official-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .banner-left {
    flex-direction: column;
    text-align: center;
  }

  .apply-btn {
    justify-content: center;
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .circular-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .action-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .home-hero-search {
    padding: 4px 4px 4px 14px;
    width: 100%;
    max-width: 100%;
  }

  .home-hero-search input {
    font-size: 13px;
    min-width: 0;
  }

  .home-hero-search button {
    padding: 8px 14px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .brand-text h1,
  .brand-text .brand-title {
    font-size: 18px;
  }

  .brand-text .brand-tagline {
    display: none;
  }
}

/* =========================================================
 * Unit-Wise Circulars & Hierarchical Navigation
 * ========================================================= */
.unit-parent-banner {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.sibling-unit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sibling-unit-pill:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

.unit-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.unit-cluster-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.unit-cluster-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.unit-cluster-card:hover {
  border-color: #93c5fd;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.unit-cluster-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.unit-cluster-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--header-navy);
  margin-top: 4px;
  line-height: 1.35;
}

.unit-cluster-card-title a {
  color: inherit;
  text-decoration: none;
}

.unit-cluster-card-title a:hover {
  color: #0284c7;
}

.unit-cluster-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 16px;
  font-size: 12.5px;
  color: #475569;
}

.unit-cluster-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.unit-cluster-meta-item i {
  color: #0284c7;
  width: 14px;
  text-align: center;
  font-size: 13px;
}

.unit-cluster-card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.unit-cluster-card-btn:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* Notice Document Gallery */
.notice-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.notice-gallery-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.notice-gallery-thumb {
  position: relative;
  height: 220px;
  background: #e2e8f0;
  overflow: hidden;
  cursor: pointer;
}

.notice-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.2s ease;
}

.notice-gallery-thumb:hover img {
  transform: scale(1.04);
}

.notice-gallery-info {
  padding: 12px;
  font-size: 12.5px;
  color: #334155;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge-purple {
  background-color: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

/* Notice Zoom Overlay */
.notice-gallery-thumb {
  position: relative;
}
.notice-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.notice-gallery-thumb:hover .notice-gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.ac-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ac-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.ac-lightbox-header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ac-lightbox-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ac-lightbox-counter {
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #cbd5e1;
}
.ac-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ac-lightbox-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}
.ac-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.ac-lightbox-close {
  background: #ef4444;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.15s ease;
}
.ac-lightbox-close:hover {
  background: #dc2626;
}
.ac-lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.ac-lightbox-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.ac-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  user-select: none;
  cursor: zoom-in;
}
.ac-lightbox-img.zoomed {
  cursor: zoom-out;
  transform: scale(1.5);
}
.ac-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ac-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}
.ac-lightbox-prev { left: 24px; }
.ac-lightbox-next { right: 24px; }

/* =========================================================
   University Overview (এক নজরে তথ্য) - Modern Enhanced Style
   ========================================================= */
.uni-overview-widget {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 18px 0 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(15, 23, 42, 0.02);
  position: relative;
  overflow: hidden;
}

.uni-overview-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #6366f1 100%);
}

.uni-overview-widget-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.uni-overview-widget-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uni-overview-widget-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
}

.uni-overview-widget-title h4 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--header-navy, #0f172a);
  margin: 0;
  line-height: 1.3;
}

.uni-overview-subtitle {
  font-size: 12px;
  color: #64748b;
  display: block;
  margin-top: 2px;
  font-weight: 500;
}

.uni-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.uni-overview-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 13px 15px;
  transition: all 0.22s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
}

.uni-overview-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.08);
  background: #fbfcfe;
}

.uni-overview-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.uni-overview-item:hover .uni-overview-icon {
  transform: scale(1.08);
  background: #e0f2fe;
  color: #0369a1;
}

.uni-overview-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.uni-overview-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
}

.uni-overview-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 3px;
  word-break: break-word;
  line-height: 1.45;
}

.uni-overview-val a {
  color: #0284c7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.uni-overview-val a:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* Standalone .uni-overview-card backwards compatibility */
.uni-overview-card {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}
.uni-overview-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--header-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

@media (max-width: 640px) {
  .uni-overview-widget {
    padding: 16px 14px;
  }
  .uni-overview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .uni-overview-item {
    padding: 11px 12px;
  }
}

/* PDF Download & Embed Section */
.circular-pdf-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.circular-pdf-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--header-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}
.pdf-downloads-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdf-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 14px;
  flex-wrap: wrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pdf-download-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.pdf-download-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdf-download-icon {
  font-size: 28px;
  color: #ef4444;
}
.pdf-download-meta {
  display: flex;
  flex-direction: column;
}
.pdf-download-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}
.pdf-download-size {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16a34a;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.pdf-download-btn:hover {
  background: #15803d;
  color: #ffffff;
}

.pdf-embed-box {
  margin-top: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.pdf-embed-header {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pdf-embed-header span {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdf-embed-header-actions {
  display: flex;
  gap: 8px;
}
.pdf-embed-frame {
  width: 100%;
  height: 650px;
  border: none;
  display: block;
  background: #f8fafc;
}
@media (max-width: 768px) {
  .pdf-embed-frame {
    height: 450px;
  }
}

/* Hero Units Pill Strip (under description) */
.hero-units-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.units-bar-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.units-bar-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.unit-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--header-navy);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.unit-pill-tag:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.unit-pill-sub {
  font-size: 10.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0.2px;
}

.unit-pill-tag.parent-tag {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0284c7;
}

.unit-pill-tag.parent-tag:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e40af;
}

/* Units by Group Directory Page Styles */
.group-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}

.group-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.group-filter-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--header-navy);
}

.group-filter-btn.active {
  background: var(--header-navy);
  border-color: var(--header-navy);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.group-filter-btn .group-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(0,0,0,0.08);
}

.group-filter-btn.active .group-count {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}

/* =========================================================
 * Admission Exam Schedule & Live Countdown Routine (/exam)
 * ========================================================= */
.exam-schedule-master-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(11, 37, 69, 0.05);
  padding: 22px;
  margin-bottom: 28px;
}

.exam-schedule-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.exam-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.exam-tab-btn {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exam-tab-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.exam-tab-btn.active {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}

.exam-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exam-schedule-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.exam-schedule-row:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  transform: translateY(-1px);
}

.exam-schedule-row.is-today {
  border-color: #f87171;
  background: #fffafa;
}

.exam-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  flex-shrink: 0;
}

.exam-date-day {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
}

.exam-date-month {
  font-size: 11.5px;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
}

.exam-date-sub {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
}

.exam-main-col {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.exam-uni-crest {
  width: 44px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exam-uni-crest svg, .exam-uni-crest img {
  max-width: 100%;
  max-height: 100%;
}

.exam-unit-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--header-navy);
  margin-bottom: 4px;
}

.exam-unit-title a {
  color: inherit;
  text-decoration: none;
}

.exam-unit-title a:hover {
  color: #0284c7;
}

.exam-unit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.discipline-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.discipline-badge.science { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.discipline-badge.arts { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.discipline-badge.business { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.discipline-badge.medical { background: #ffe4e6; color: #be123c; border: 1px solid #fecdd3; }
.discipline-badge.general { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

.exam-shift-text {
  color: #64748b;
  font-size: 11.5px;
}

.exam-status-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.countdown-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.countdown-badge-lg.upcoming {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.countdown-badge-lg.soon {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.countdown-badge-lg.urgent {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  animation: pulse-urgent 2s infinite;
}

.countdown-badge-lg.today {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  animation: pulse-urgent 1.5s infinite;
}

.countdown-badge-lg.completed {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.countdown-badge-lg.waiting {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

@keyframes pulse-urgent {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.btn-exam-routine {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-exam-routine:hover {
  background: #0369a1;
  transform: translateX(2px);
}

/* =========================================================
   Circular Hub Directory & Unit-Wise Cards Styling
   ========================================================= */
.circular-directory {
  margin-bottom: 30px;
}
.circular-uni-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.circular-uni-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.circular-uni-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.circular-uni-card-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.circular-uni-crest {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}
.circular-uni-crest svg,
.circular-uni-crest img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.circular-uni-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
}
.circular-uni-title a {
  color: var(--header-navy, #0f172a);
  text-decoration: none;
  transition: color 0.15s ease;
}
.circular-uni-title a:hover {
  color: #0284c7;
}
.btn-uni-full-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-uni-full-guide:hover {
  background: #0369a1;
  color: #ffffff;
}

/* Main Files Box */
.circular-main-files-box {
  background: #f0fdf4;
  border-bottom: 1px solid #dcfce7;
  padding: 14px 20px;
}
.circular-box-subheading {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.circular-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}
.circular-file-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.circular-file-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.circular-file-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.circular-file-size {
  font-size: 11px;
  color: #64748b;
}
.circular-file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.btn-file-download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #16a34a;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-file-download:hover {
  background: #15803d;
  color: #ffffff;
}
.btn-file-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #0284c7;
  border: 1px solid #bfdbfe;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-file-open:hover {
  background: #dbeafe;
}

/* Units Section & Grid */
.circular-units-section {
  padding: 16px 20px;
}
.circular-units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.circular-unit-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.circular-unit-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.circular-unit-card-title {
  font-size: 13.5px;
  font-weight: 700;
  margin: 6px 0 8px;
  line-height: 1.35;
}
.circular-unit-card-title a {
  color: #0f172a;
  text-decoration: none;
}
.circular-unit-card-title a:hover {
  color: #0284c7;
}
.circular-unit-files-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.circular-unit-file-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.circular-unit-file-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-file-icon-action {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-file-icon-action:hover {
  filter: brightness(0.95);
}
.circular-unit-view-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  transition: color 0.15s ease;
}
.circular-unit-view-btn:hover {
  color: #0369a1;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .circular-uni-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .circular-files-grid,
  .circular-units-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Exam Routine Master Board & Tentative Schedule Styles
   ========================================================= */
.tentative-exam-board {
  margin: 10px 0 35px;
}
.tentative-alert {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
}
.tentative-alert-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(2, 132, 199, 0.25);
}
.tentative-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.tentative-stat-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.tentative-stat-pill.confirmed {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.tentative-stat-pill.probable {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

/* Filter Tabs */
.exam-board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.exam-board-tab-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.exam-board-tab-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}
.exam-board-tab-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* Fast Search Bar */
.exam-board-search-wrap {
  position: relative;
  margin-bottom: 18px;
}
.exam-board-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}
.exam-board-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 13.5px;
  background: #ffffff;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.exam-board-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* Table */
.tentative-table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.tentative-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}
.tentative-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}
.tentative-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.tentative-table tr:hover td {
  background: #fbfcfe;
}
.tentative-sub {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.tentative-date {
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.tentative-date.confirmed {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.tentative-date.probable {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.tentative-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0284c7;
  color: #ffffff;
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tentative-btn:hover {
  background: #0369a1;
  color: #ffffff;
}

/* Mobile Cards */
.tentative-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.tentative-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

@media (max-width: 768px) {
  .tentative-table-responsive {
    display: none;
  }
  .tentative-mobile-cards {
    display: flex;
  }
}

/* Previous Year Circular Disclaimer Notice Banner */
.previous-year-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.previous-year-notice-banner .prev-notice-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.previous-year-notice-banner .prev-notice-body {
  flex: 1;
}

.previous-year-notice-banner .prev-notice-title {
  font-size: 15px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.previous-year-notice-banner .prev-notice-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #78350f;
  margin: 0;
}

@media (max-width: 640px) {
  .previous-year-notice-banner {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }
  .previous-year-notice-banner .prev-notice-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* =========================================================
 * Circular Page - Layout 1: University Title Links List
 * ========================================================= */
.circular-links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.circular-link-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.2s ease;
  position: relative;
}

.circular-link-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
  transform: translateY(-2px);
}

.circular-link-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.circular-link-num {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.circular-link-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 4px;
}

.circular-link-logo img, .circular-link-logo svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.circular-link-body {
  flex: 1;
  min-width: 0;
}

.circular-link-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.circular-link-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s;
}

.circular-link-title a:hover {
  color: #0284c7;
}

.circular-link-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.circular-link-units {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #f1f5f9;
}

.circular-link-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-circular-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--header-navy);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.btn-circular-view:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-circular-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-circular-apply:hover {
  background: #15803d;
  color: #ffffff;
}

.btn-circular-pdf {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-circular-pdf:hover {
  background: #b91c1c;
  color: #ffffff;
}

@media (max-width: 768px) {
  .circular-link-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 14px;
  }
  .circular-link-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .btn-circular-view {
    flex: 1;
    justify-content: center;
  }
}

/* =========================================================
 * Circular Page - Layout 2: Single Unified Box Per University
 * ========================================================= */
.circular-unified-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  overflow: hidden;
  transition: border-color 0.2s;
}

.circular-unified-card:hover {
  border-color: #cbd5e1;
}

.circular-unified-header {
  padding: 16px 20px;
  background: linear-gradient(to right, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.circular-unified-body {
  padding: 18px 20px;
}

.circular-sub-section {
  margin-bottom: 16px;
}
.circular-sub-section:last-child {
  margin-bottom: 0;
}

.circular-sub-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.circular-unit-pdf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  gap: 12px;
  transition: all 0.15s;
}

.circular-unit-pdf-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Universal Justify for Hero and Section Paragraphs */
.hero-info p,
.hero-card p,
.hero-desc,
.home-hero p,
.category-hero p,
.section-card p,
.section-card-body p,
.main-article p,
.main-section p,
.widget-paragraph,
.widget-paragraph p,
.widget-custom-html p,
.overview-desc,
.step-content p,
.faq-answer p,
.accordion-body p,
.uni-cu-intro-text,
.uni-cu-intro-text p,
.uni-cu-card p,
.uni-article-content p,
.uni-entry-content p {
  text-align: justify;
}




