/* ============================================================
   DESIGN SYSTEM — Website Hỗ trợ Tuyển sinh
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #00a859;
  --primary-light: #33b97a;
  --primary-dark: #008244;
  --secondary: #7c3aed;
  --accent: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Neutrals */
  --bg: #f0f5ff;
  --white: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.92);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 16px rgba(29, 78, 216, 0.10);
  --shadow-lg: 0 20px 40px rgba(29, 78, 216, 0.14);
  --shadow-xl: 0 30px 60px rgba(29, 78, 216, 0.18);

  /* Spacing */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s var(--ease);
}

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ── Utility ────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(29, 78, 216, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 100% !important;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
  min-width: 0;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
  flex-shrink: 0;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logo-text span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-shrink: 0;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  white-space: nowrap !important;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(29, 78, 216, 0.06);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 24px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.35) !important;
  background: var(--primary-light) !important;
  color: white !important;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2460 0%, #1d4ed8 40%, #3b82f6 70%, #7c3aed 100%);
  padding: 100px 0 80px;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: float 8s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -120px;
  right: -80px;
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 250px;
  height: 250px;
  bottom: -60px;
  left: 10%;
  animation-delay: 2s;
}

.hero-shape:nth-child(3) {
  width: 180px;
  height: 180px;
  top: 40%;
  right: 20%;
  animation-delay: 4s;
}

.hero-shape:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 30%;
  animation-delay: 6s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: 24px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #93c5fd, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-search {
  display: flex;
  gap: 0;
  max-width: 560px;
  background: white;
  border-radius: 50px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  min-width: 0;
}

.hero-search input::placeholder {
  color: var(--text-muted);
}

.hero-search button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}

.hero-search button:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

.hero-quick-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-quick-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.hero-quick-link:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* ── Stats bar ────────────────────────────────────────────────── */
.stats-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--border);
}

.stat-item {
  padding: 28px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: rgba(29, 78, 216, 0.03);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ── Section ──────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Info Cards ───────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(29, 78, 216, 0.06);
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00a859, var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.info-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.info-card-icon.blue {
  background: rgba(0, 168, 89, 0.1);
}

.info-card-icon.purple {
  background: rgba(124, 58, 237, 0.1);
}

.info-card-icon.teal {
  background: rgba(14, 165, 233, 0.1);
}

.info-card-icon.green {
  background: rgba(16, 185, 129, 0.1);
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.info-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00a859;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 16px;
  transition: var(--transition);
}

.info-card-link:hover {
  gap: 10px;
}

/* ── FAQ Accordion ────────────────────────────────────────────── */
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.faq-search-wrap {
  position: relative;
  margin-bottom: 32px;
}

.faq-search-wrap input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: white;
}

.faq-search-wrap input:focus {
  border-color: #00a859;
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.08);
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: #00a859;
  box-shadow: 0 4px 16px rgba(0, 168, 89, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  gap: 16px;
}

.faq-arrow {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(0, 168, 89, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: #00a859;
}

.faq-item.active .faq-arrow {
  background: #00a859;
  color: white;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-empty {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

/* ── CTA section ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #008244 0%, #00a859 50%, var(--secondary) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: white;
  color: #00a859;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: #00a859;
  color: #ffffff;
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin: 16px 0 24px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #33b97a;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.95;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Programs page ────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0f2460, #00a859, #3b82f6);
  padding: 60px 0;
  color: white;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-breadcrumb a:hover {
  color: white;
}

.programs-toolbar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.programs-search {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.programs-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.programs-search input:focus {
  border-color: #00a859;
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.08);
}

.programs-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.programs-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px solid var(--border);
  background: white;
  color: var(--text-muted);
  transition: var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
  border-color: #00a859;
  color: #00a859;
  background: rgba(0, 168, 89, 0.06);
}

.programs-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.program-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00a859, var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.program-card:hover::after {
  transform: scaleX(1);
}

.program-code {
  display: inline-block;
  background: rgba(0, 168, 89, 0.08);
  color: #00a859;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: monospace;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.program-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.program-faculty {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.program-meta {
  display: flex;
  gap: 16px;
}

.program-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.program-meta-item strong {
  color: var(--text);
  font-weight: 600;
}

.program-quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.no-programs {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.no-programs svg {
  opacity: 0.3;
  margin: 0 auto 16px;
}

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 64px 0 60px;
  }
}

@media (max-width: 600px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .programs-toolbar {
    flex-direction: column;
  }

  .programs-search {
    min-width: unset;
  }

  .hero h1 {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary); /* Fallback */
  overflow: hidden;
  margin-top: 70px; /* Offset for fixed navbar */
}

.hero-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slider .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 31, 63, 0.4) 0%, rgba(0, 31, 63, 0.7) 100%);
  z-index: 2;
}

.hero-slider-content {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: white;
  width: 90%;
  max-width: 800px;
}

.hero-slider-content h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-slider-btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(253, 199, 15, 0.4);
}
.hero-slider-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 199, 15, 0.6);
  color: var(--primary);
}

/* Swiper Controls Customization */
.swiper-pagination-bullet { background: rgba(255,255,255,0.5); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--secondary); }
.swiper-button-next, .swiper-button-prev { color: rgba(255,255,255,0.7); transition: 0.3s; }
.swiper-button-next:hover, .swiper-button-prev:hover { color: white; transform: scale(1.1); }

/* Search Overlay */
.hero-search-overlay {
  position: relative;
  z-index: 10;
  margin-top: 350px; /* Push down below the title */
  width: 100%;
}

@media (max-width: 768px) {
  .hero-wrapper { height: 500px; }
  .hero-slider-content h2 { font-size: 2rem; }
  .hero-search-overlay { margin-top: 250px; }
  .hero-search-overlay .hero-search { flex-direction: column; border-radius: 20px; }
  .hero-search-overlay .hero-search input { border-radius: 20px 20px 0 0; }
  .hero-search-overlay .hero-search button { border-radius: 0 0 20px 20px; width: 100%; }
}





/* ── News Section ─────────────────────────────────────────────── */
.news-section {
  padding: 80px 0;
  background-color: #f8fafc;
}

.news-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.news-section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.news-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

/* Tabs */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 3px solid #e2e8f0;
  flex-wrap: wrap;
}

.news-tab {
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 12px 20px;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.news-tab:hover {
  color: var(--primary);
  background: rgba(29,78,216,0.05);
}

.news-tab.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  background: none;
}

/* Panels */
.news-panel {
  display: none;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  animation: fadeIn 0.3s ease;
}

.news-panel.active {
  display: grid;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Featured */
.news-featured {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.news-featured:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.news-featured-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.news-featured-body {
  padding: 24px;
}

.news-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-featured-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.4;
}

.news-featured-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.news-featured-date {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  display: flex;
  gap: 14px;
  background: white;
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.news-item:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--primary);
  transform: translateX(4px);
}

.news-item img {
  width: 120px;
  height: 85px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.news-item-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .news-panel.active {
    grid-template-columns: 1fr;
  }
  .news-featured-img {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .news-tab { font-size: 0.82rem; padding: 10px 12px; }
}
