/* ═══════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════ */
:root {
  --primary: #1a5c3a;
  --secondary: #2d7a52;
  --accent: #c49a28;
  --light-blue: #eef6f1;
  --dark-navy: #1a1a1a;
  --white: #FFFFFF;
  --text: #4a4a4a;
  --gold: #c4ba28;
  --gradient-blue: linear-gradient(135deg, #1a5c3a, #2d7a52);
  --gradient-hero: linear-gradient(135deg, #0d3d26 0%, #1a5c3a 40%, #2d7a52 70%, #1a5c3a 100%);
  --gradient-accent: linear-gradient(135deg, #1a5c3a, #c49a28);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
  --topbar-height: 40px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17.5px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: #faf7f0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input { font-family: var(--font-body); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Section base */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

/* Gold underline bar under section titles */
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #c49a28, #f0d98a);
  border-radius: 2px;
  margin: 10px auto 0;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #6b6b6b;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  font-weight: 400;
}

.section-padding {
  padding: 80px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #b08a20;
  border-color: #b08a20;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196,154,40,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-blue {
  background: #1a5c3a;
  color: var(--white);
  border-color: #1a5c3a;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.btn-blue:hover {
  background: #154d30;
  border-color: #154d30;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,92,58,0.4);
}

/* ═══════════════════════════════════════════
   1. STICKY TOP BAR
   ═══════════════════════════════════════════ */
.topbar {
  background: var(--primary);
  border-bottom: 2px solid var(--accent);
  color: var(--white);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  position: relative;
  z-index: 1001;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.topbar-left .govt-logo {
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.topbar-left span { opacity: 0.9; font-weight: 400; }
.topbar-left a { color: rgba(255,255,255,0.75); font-size: 0.82rem; transition: color 0.2s; }
.topbar-left a:hover { color: #ffffff; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-right button {
  color: var(--white);
  font-size: 0.8rem;
  opacity: 0.85;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all var(--transition);
  background: rgba(255,255,255,0.08);
}
.topbar-right button:hover { opacity: 1; background: rgba(255,255,255,0.15); }

#live-datetime { opacity: 0.7; font-variant-numeric: tabular-nums; white-space: nowrap; }

.highlight-blink {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ═══════════════════════════════════════════
   2. MAIN HEADER / NAVBAR
   ═══════════════════════════════════════════ */
.main-header {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 100%;
  padding: 0 32px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 1;
  min-width: 0;
}

.logo-icon {
  width: 52px;
  height: 52px;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.logo-text .tagline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Desktop Nav ── */
.main-nav { display: flex; align-items: center; gap: 0; }

.main-nav > li { position: relative; }

.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 13px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  color: #1a1a1a;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--accent);
  background: #fdf5e0;
}

.nav-arrow {
  font-size: 0.58rem;
  color: var(--secondary);
  transition: transform var(--transition);
  margin-left: 1px;
}

.main-nav > li:hover .nav-arrow { transform: rotate(180deg); }

/* ── Dropdown ── */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 224px;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 32px rgba(26,26,26,0.13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
  padding: 6px 0;
  border-top: 3px solid var(--accent);
  z-index: 200;
}

.main-nav > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 11px 20px;
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.dropdown a:hover {
  background: #fdf5e0;
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 24px;
}

/* ── Logo refinements ── */
.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.logo-text .tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Search */
.search-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  border-radius: 50%;
  transition: all var(--transition);
  margin-left: 8px;
}
.search-toggle:hover {
  background: var(--light-blue);
  color: var(--accent);
}

.quick-links-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  border-radius: 50%;
  transition: all var(--transition);
}
.quick-links-toggle:hover {
  background: var(--light-blue);
  color: var(--accent);
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,92,58,0.97);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.search-overlay.active { opacity: 1; visibility: visible; }

.search-overlay-inner {
  width: 90%;
  max-width: 640px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.search-overlay.active .search-overlay-inner { transform: translateY(0); }

.search-overlay input {
  width: 100%;
  padding: 20px 24px;
  font-size: 1.3rem;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
}
.search-overlay input::placeholder { color: #999; }

.search-close {
  position: absolute;
  top: 32px;
  right: 32px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* ── Floating Quick Links Menu ── */
.floating-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.floating-menu.active { right: 0; }
.floating-menu { border-top: 4px solid #c49a28; border-radius: 0 0 0 16px; }

/* Header */
.fmenu-header-inner {
  display: flex; align-items: center; gap: 10px; color: #fff;
}
.fmenu-header-inner svg { opacity: 0.8; }

.floating-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #1a5c3a, #1a1a1a);
  color: #fff;
}
.floating-menu-header h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.floating-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.floating-menu-links {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.floating-menu-links li {
  border-bottom: 1px solid #f0ece4;
}
.floating-menu-links li:last-child { border-bottom: none; }

.floating-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: #1a1a1a;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
}
.floating-menu-links a:hover {
  background: #fdf5e0;
  color: #c49a28;
  padding-left: 26px;
}
.fmenu-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #eef6f1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #1a5c3a;
  transition: background 0.18s, color 0.18s;
}
.floating-menu-links a:hover .fmenu-icon {
  background: #c49a28;
  color: #fff;
}
.fmenu-label { flex: 1; }
.fmenu-arrow {
  font-size: 1.1rem;
  color: #c6e2ce;
  transition: color 0.18s, transform 0.18s;
}
.floating-menu-links a:hover .fmenu-arrow {
  color: #c49a28;
  transform: translateX(3px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--header-height) + 3px);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.active { display: block; }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:hover { color: #f0d98a; }

.mobile-nav .mobile-dropdown-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #f0d98a;
  font-weight: 700;
}

.mobile-nav .mobile-sub {
  display: none;
  padding-left: 16px;
}
.mobile-nav .mobile-sub.active { display: block; }
.mobile-nav .mobile-sub a { font-size: 0.95rem; font-weight: 500; }

/* ═══════════════════════════════════════════
   3. HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  width: 100%;
}

/* rb-hero overrides base .hero defaults */
.hero.rb-hero {
  min-height: 0;
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Hero video background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
}
.hero-mobile-img { display: none; }
@media (max-width: 768px) {
  .hero-desktop-img { display: none; }
  .hero-mobile-img  { display: block; }
}

/* Hero news ticker */
.hero-ticker {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  background: rgba(26,92,58,0.90);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--accent);
  height: 36px;
  overflow: hidden;
}

.hero-ticker-label {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.hero-ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-ticker-track {
  display: flex;
  gap: 0;
  animation: heroTicker 40s linear infinite;
  white-space: nowrap;
}

.hero-ticker-track span {
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  padding: 0 40px;
  position: relative;
}

.hero-ticker-track span::after {
  content: "●";
  position: absolute;
  right: 12px;
  color: #f0d98a;
  font-size: 0.55rem;
}

@keyframes heroTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Animated gradient background — hidden so video shows clearly */
.hero-bg {
  display: none;
}

@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Particle overlay */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Geometric overlay pattern — hidden so video shows clearly */
.hero-overlay {
  display: none;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 28px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h2 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h2 .highlight {
  color: #ffd400;
  -webkit-text-fill-color: #ffd400;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll arrow */
.scroll-arrow {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  animation: bounce 2s infinite;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}

/* Floating stats bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 4;
  right: 0;
  background: rgba(26,92,58,0.65);
  backdrop-filter: blur(16px);
  border-top: 2px solid rgba(196,154,40,0.3);
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1280px;
  margin: 0 auto;
}

.hero-stat {
  padding: 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-stat:last-child { border-right: none; }

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #f0d98a;
}

.hero-stat .stat-number .counter-suffix {
  color: #f0d98a;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   4. MARQUEE ANNOUNCEMENT BAR
   ═══════════════════════════════════════════ */
.marquee-bar {
  background: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
}

.marquee-label {
  background: var(--primary);
  padding: 0 20px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.marquee-label::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  border-style: solid;
  border-width: 22px 0 22px 12px;
  border-color: transparent transparent transparent var(--primary);
}

.marquee-track {
  flex: 1;
  overflow: hidden;
  margin-left: 16px;
}

.marquee-content {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  padding-right: 48px;
}

.marquee-content span {
  font-size: 0.9rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.marquee-content span a {
  color: inherit;
  text-decoration: none;
}
.marquee-content span a:hover {
  text-decoration: underline;
  opacity: .85;
}

.marquee-content span::before {
  content: '•';
  color: var(--accent);
  font-size: 1.2rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   5. ABOUT PBTE
   ═══════════════════════════════════════════ */
.about-section {
  background: #FFFFFF;
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-infographic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Info Cards — Level colours ── */
.info-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 22px 26px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 16px rgba(26,26,26,0.07);
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.2;
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(196,154,40,0.18);
}

/* Level 1 — Gold (Awarding Body) */
.about-infographic .info-card:nth-child(1) {
  border-left-color: #c49a28;
}
.about-infographic .info-card:nth-child(1) .progress-ring .fg { stroke: #c49a28; }
.about-infographic .info-card:nth-child(1) .ring-value { color: #c49a28; }

/* Level 2 — Secondary Green (NVQF Aligned) */
.about-infographic .info-card:nth-child(2) {
  border-left-color: #2d7a52;
}
.about-infographic .info-card:nth-child(2) .progress-ring .fg { stroke: #2d7a52; }
.about-infographic .info-card:nth-child(2) .ring-value { color: #2d7a52; }

/* Level 3 — Gold (ISO Standards) */
.about-infographic .info-card:nth-child(3) {
  border-left-color: #c49a28;
}
.about-infographic .info-card:nth-child(3) .progress-ring .fg { stroke: #c49a28; }
.about-infographic .info-card:nth-child(3) .ring-value { color: #c49a28; }

/* Level 4 — Primary Green (Industry Endorsed) */
.about-infographic .info-card:nth-child(4) {
  border-left-color: #1a5c3a;
}
.about-infographic .info-card:nth-child(4) .progress-ring .fg { stroke: #1a5c3a; }
.about-infographic .info-card:nth-child(4) .ring-value { color: #1a5c3a; }

.info-card .info-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #1a5c3a, #2d7a52);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
}

.info-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 7px;
}

.info-card p {
  font-size: 1rem;
  color: #6b6b6b;
  line-height: 1.5;
}

/* ── Circular progress rings ── */
.progress-ring {
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  position: relative;
}

.progress-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-ring circle {
  fill: none;
  stroke-width: 4.5;
  stroke-linecap: round;
}

.progress-ring .bg { stroke: #f0e8d0; }
.progress-ring .fg {
  stroke: var(--accent);          /* default; overridden per card above */
  stroke-dasharray: 163;
  stroke-dashoffset: 163;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4,0,0.2,1);
}
.progress-ring.animated .fg { stroke-dashoffset: 0; }

/* percentage label inside ring */
.ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
}
.ring-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4a4a4a;
  margin-top: 2px;
}

/* ── About text column ── */
.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.about-text .accent-line {
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, #1a5c3a, #c49a28);
  border-radius: 2px;
  margin-bottom: 22px;
}

.about-text p {
  font-size: 1.02rem;
  color: #4a4a4a;
  margin-bottom: 16px;
  line-height: 1.85;
}

.about-text .mission-vision {
  display: flex;
  gap: 20px;
  margin: 28px 0 32px;
}

/* ── Mission / Vision level cards ── */
.mv-item {
  flex: 1;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: #eef6f1;
  border-radius: 0 10px 10px 0;
  transition: transform 0.22s, box-shadow 0.22s;
}
.mv-item:first-child { border-left-color: #1a5c3a; }
.mv-item:last-child  { border-left-color: #c49a28; background: #fdf5e0; }

.mv-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26,92,58,0.13);
}

.mv-item h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  color: #1a5c3a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.mv-item:last-child h4 { color: #9a7818; }

.mv-item p {
  font-size: 0.87rem;
  color: #4a4a4a;
  margin-bottom: 0;
  line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { gap: 40px; }
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-text .mission-vision { flex-direction: column; gap: 14px; }
}

/* ═══════════════════════════════════════════
   6. QUALIFICATIONS SHOWCASE
   ═══════════════════════════════════════════ */
.qualifications-section { background: #fff; padding: 80px 0 88px; }
.qualifications-section .container { max-width: 100%; padding-left: 40px; padding-right: 40px; }
@media (max-width: 768px) {
  .qualifications-section .container { padding-left: 16px; padding-right: 16px; }
}

.qual-main-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; color: #1a1a1a;
  text-align: center; margin-bottom: 0.5rem;
}
.qual-main-sub {
  text-align: center; font-size: 0.97rem; color: #6b6b6b;
  margin-bottom: 36px;
}

/* ── Filter bar ── */
.qual-filter-bar {
  display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap;
  background: #faf7f0;
  border: 1px solid #e2ddd3;
  border-radius: 60px;
  padding: 10px 16px;
  margin-bottom: 36px;
}
.qual-filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid #e2ddd3;
  background: #fff; cursor: pointer;
  font-size: 0.82rem; font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  color: #4a4a4a;
  transition: all 0.2s; white-space: nowrap;
}
.qual-filter-btn:hover { border-color: #1a5c3a; color: #1a5c3a; }
.qual-filter-btn.active { background: #1a5c3a; color: #fff; border-color: #1a5c3a; }

.qual-search-wrap {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid #e2ddd3;
  border-radius: 50px; padding: 0.4rem 1rem;
  min-width: 230px;
}
.qual-search-wrap svg { color: #6b6b6b; flex-shrink: 0; }
.qual-search-wrap input {
  border: none; outline: none; background: transparent;
  font-size: 0.84rem; color: #1a1a1a; flex: 1;
  font-family: 'Source Sans 3', sans-serif;
}
.qual-search-wrap input::placeholder { color: #9b9b9b; }
.qual-search-btn {
  background: none; border: none; cursor: pointer;
  color: #1a5c3a; display: flex; align-items: center;
}

/* ── Cards grid ── */
.qual-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.qcard {
  background: #fff;
  border: 1px solid #e2ddd3;
  border-radius: 16px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.qcard:hover { transform: translateY(-7px); box-shadow: 0 16px 48px rgba(26,92,58,0.13); }

.qcard-img { height: 240px; overflow: hidden; flex-shrink: 0; }
.qcard-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.4s;
}
.qcard:hover .qcard-img img { transform: scale(1.05); }

.qcard-body {
  padding: 1.4rem 1.5rem 1.7rem;
  flex: 1; display: flex; flex-direction: column;
}
.qcard-badges { display: flex; gap: 8px; margin-bottom: 0.9rem; flex-wrap: wrap; }
.qcard-badge {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.28rem 0.8rem; border-radius: 4px;
}
.qcard-badge.level { background: #1a5c3a; color: #fff; }
.qcard-badge.code  { background: transparent; border: 1.5px solid #1a5c3a; color: #1a5c3a; }
.qcard-badge.sector { background: #fdf5e0; border: 1.5px solid #c49a28; color: #9a7818; }

.qcard-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: #1a1a1a; line-height: 1.4;
  flex: 1; margin-bottom: 0.75rem;
}
.qcard-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600;
  color: #1a5c3a; text-decoration: none;
  border: 1.5px solid #c6e2ce; border-radius: 50px;
  padding: 0.38rem 0.9rem; width: fit-content;
  transition: all 0.2s;
}
.qcard-link:hover { background: #1a5c3a; border-color: #1a5c3a; color: #fff; }

/* ── No results message ── */
.qual-no-results {
  grid-column: 1/-1; text-align: center;
  padding: 48px 0; color: #6b6b6b;
  font-size: 1rem;
  display: none;
}
.qual-no-results.visible { display: block; }

/* ── Pagination ── */
.qual-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 44px;
}
.qpag-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 600; color: #6b6b6b;
  transition: all 0.2s;
}
.qpag-btn:hover { color: #1a5c3a; }
.qpag-btn.active { color: #1a5c3a; font-weight: 800; font-size: 1.05rem; }
.qpag-next {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #c6e2ce; background: #fff;
  cursor: pointer; font-size: 1rem; color: #1a5c3a;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qpag-next:hover { background: #1a5c3a; color: #fff; border-color: #1a5c3a; }
.qual-pagination.hidden { display: none; }

/* ── Responsive ── */
@media (max-width: 1100px) { .qual-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  {
  .qual-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .qual-filter-bar { border-radius: 14px; }
}
@media (max-width: 480px)  {
  .qual-cards-grid { grid-template-columns: 1fr; }
  .qual-search-wrap { min-width: unset; width: 100%; }
}

/* ── Homepage Trades Grid — Mobile 2-column override ── */
@media (max-width: 900px) {
  .trades-grid-responsive { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; }
  .qcard-img { height: 180px; }
}
@media (max-width: 600px) {
  .trades-grid-responsive { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .qcard-img { height: 150px; }
  .qcard-body { padding: 0.9rem 1rem 1.1rem; }
  .qcard-title { font-size: 0.88rem; }
  .qcard-badges { gap: 5px; margin-bottom: 0.6rem; }
  .qcard-badge { font-size: 0.65rem; padding: 0.22rem 0.6rem; }
  .qcard-link { font-size: 0.8rem; padding: 0.3rem 0.7rem; }
}
@media (max-width: 400px) {
  .trades-grid-responsive { gap: 10px !important; }
  .qcard-img { height: 130px; }
  .qcard-body { padding: 0.7rem 0.8rem 0.9rem; }
  .qcard-title { font-size: 0.82rem; }
}

/* ═══════════════════════════════════════════
   8. FIND INSTITUTES SECTION
   ═══════════════════════════════════════════ */
.find-institutes-section {
  background: var(--light-blue);
  color: var(--text);
  padding: 40px 0;
}

.find-institutes-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,0.05);
}

.find-institutes-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.form-group select {
  padding: 6px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,154,40,0.1);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
   8.5 AFFILIATED INSTITUTES SEARCH
   ═══════════════════════════════════════════ */
.affiliation-section {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  min-height: 600px;
}
.affiliation-section .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.affiliation-section::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.affiliation-section .section-title { color: #ffffff !important; }
.affiliation-section .section-title::after { background: linear-gradient(90deg, #ffffff, #cccccc) !important; }
.affiliation-section .section-subtitle { color: #e0e0e0 !important; }

.affiliation-search-box {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 40px 48px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(26,92,58,0.12);
  position: relative;
  box-sizing: border-box;
}
/* 3-column responsive grid used inside the search box */
.hs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
/* Full-width institute name row */
.hs-name-row {
  margin-bottom: 28px;
}
.affiliation-search-box .form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.affiliation-search-box .form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 7px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.affiliation-search-box .form-group select,
.affiliation-search-box .form-group input[type="text"] {
  padding: 13px 16px;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 10px;
  background: rgba(255,255,255,.55);
  color: #0a2e1a;
  font-size: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.affiliation-search-box .form-group select:focus,
.affiliation-search-box .form-group input[type="text"]:focus {
  outline: none;
  border-color: #1a5c3a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,92,58,0.12);
}
/* tablet: 2 columns */
@media (max-width: 900px) {
  .affiliation-search-box { padding: 28px 24px; }
  .hs-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
/* mobile: 1 column */
@media (max-width: 560px) {
  .affiliation-search-box { padding: 22px 16px; border-radius: 14px; }
  .hs-grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .hs-name-row { margin-bottom: 20px; }
}
.affiliation-search-box .form-actions {
  margin-top: 20px; justify-content: flex-start; gap: 12px;
}

/* Search button */
.affil-search-btn {
  display: inline-block;
  background: #1a5c3a;
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2.8rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.affil-search-btn:hover {
  background: #154d30;
  box-shadow: 0 8px 28px rgba(26,92,58,0.35);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .affiliation-search-box { padding: 24px 20px; }
  .affiliation-search-box .form-row,
  .affiliation-search-box > form > div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════
   8.6 TOP STORIES / EVENTS
   ═══════════════════════════════════════════ */
.top-stories-section {
  background: #faf7f0;
  color: var(--text);
}

.top-stories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.story-card {
  background: var(--white);
  border: 1px solid rgba(0, 35, 64, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.story-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.story-content {
  padding: 10px 14px 14px;
}

.story-content h3 {
  font-size: 0.88rem;
  margin: 0 0 4px;
  color: var(--primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-content p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.78rem;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .top-stories-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .top-stories-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   7. INTERACTIVE INFOGRAPHIC
   ═══════════════════════════════════════════ */
.infographic-section {
  background: var(--dark-navy);
  color: var(--white);
  overflow: hidden;
}

.infographic-section .section-title { color: var(--white); }
.infographic-section .section-subtitle { color: rgba(255,255,255,0.6); }

/* QA Ecosystem — circular loop */
.qa-ecosystem {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 80px;
  position: relative;
  min-height: 360px;
}

.qa-node {
  width: 150px;
  text-align: center;
  position: relative;
  cursor: pointer;
  z-index: 2;
}

.qa-node-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all 0.4s ease;
}

.qa-node:hover .qa-node-circle {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(196,154,40,0.4);
  transform: scale(1.15);
}

.qa-node span {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.qa-node:hover span { opacity: 1; }

.qa-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
  animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Tooltip */
.qa-tooltip {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}
.qa-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--accent);
  border-top: 0;
}
.qa-node:hover .qa-tooltip { opacity: 1; visibility: visible; }

/* ─── Result Search Card ─── */
.result-search-card {
  background: #fff;
  border: 1px solid rgba(26,92,58,0.15);
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 52px;
  box-shadow: 0 4px 24px rgba(26,92,58,0.10);
}

.result-search-form { width: 100%; }

.result-search-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.result-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 180px;
}

.result-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.result-field input,
.result-field select {
  padding: 12px 16px;
  border: 2px solid #c6e2ce;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: #eef6f1;
  outline: none;
  transition: border-color 0.2s;
}

.result-field input:focus,
.result-field select:focus {
  border-color: var(--secondary);
  background: #fff;
}

.result-btn-wrap { flex: 0 0 auto; min-width: 160px; }

.result-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1a5c3a, #154d30);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.result-search-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ─── Overall Result Summary Chart ─── */
.result-chart-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.chart-title {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 16px;
  color: var(--white);
  font-weight: 600;
}

.result-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--white);
}

.legend-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 6px;
}
.legend-appeared { background: #1a5c3a; }
.legend-pass     { background: #c49a28; }

.result-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  height: 260px;
  padding: 0 10px;
  border-bottom: 2px solid rgba(255,255,255,0.25);
}

.year-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 120px;
  height: 100%;
  justify-content: flex-end;
}

.year-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  height: calc(100% - 46px);
}

.rbar {
  flex: 1;
  height: 0;
  border-radius: 5px 5px 0 0;
  transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.rbar-appeared { background: linear-gradient(to top, #0d3d26, #1a5c3a); }
.rbar-pass     { background: linear-gradient(to top, #b08a20, #c49a28); }

.rbar-num {
  position: absolute;
  top: -2px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--white);
  writing-mode: horizontal-tb;
  white-space: nowrap;
  transform: translateY(-100%);
  line-height: 1.2;
}

.year-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
}

.year-lbl {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════
   8. STATISTICS COUNTER SECTION
   ═══════════════════════════════════════════ */
.stats-section {
  background: var(--gradient-blue);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(196,154,40,0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
}

.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.stat-number .suffix { color: var(--accent); }

.stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   9. NEWS & ANNOUNCEMENTS
   ═══════════════════════════════════════════ */
.news-section { background: #eaf2fe; }
.news-section .container { max-width: 100%; padding-left: 40px; padding-right: 40px; }
@media (max-width: 768px) {
  .news-section .container { padding-left: 16px; padding-right: 16px; }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-column h3 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-card {
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  transition: all var(--transition);
  padding-left: 16px;
  border-left: 3px solid transparent;
}
/* clickable card anchor */
a.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.news-card-link:hover { color: inherit; }
.badge-new-sm {
  display: inline-block;
  background: #e53e3e; color: #fff;
  font-size: .62rem; font-weight: 700;
  padding: 1px 6px; border-radius: 3px;
  margin-top: 4px; letter-spacing: .5px;
}

.news-card:hover {
  border-left-color: var(--secondary);
  background: var(--light-blue);
  padding-left: 20px;
}

.news-card .category {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.category.exam { background: #FFF3E0; color: #E65100; }
.category.result { background: #E8F5E9; color: #2E7D32; }
.category.notice { background: #E3F2FD; color: #1565C0; }
.category.download { background: #F3E5F5; color: #7B1FA2; }

.news-card .date {
  font-size: 0.92rem;
  color: #999;
  margin-bottom: 6px;
}

.news-card h4 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.news-card p {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.5;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--secondary);
  transition: all var(--transition);
}
.view-all:hover { color: var(--accent); gap: 10px; }

/* ═══════════════════════════════════════════
   HOME NEWS SLIDER
   ═══════════════════════════════════════════ */
.home-news-section {
  background: #faf7f0;
  padding: 60px 0 70px;
}
.home-news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.home-news-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1a5c3a;
  background: #eef6f1;
  border: 1px solid #c6e2ce;
  border-radius: 20px;
  padding: .28rem 1rem;
  margin-bottom: .6rem;
}
.home-news-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
}
.home-news-viewall {
  font-size: .9rem;
  font-weight: 700;
  color: #1a5c3a;
  text-decoration: none;
  border-bottom: 2px solid #c49a28;
  padding-bottom: 2px;
  white-space: nowrap;
}
.home-news-viewall:hover { color: #c49a28; }

/* Slider */
.home-news-slider-wrap {
  position: relative;
  padding: 0 52px;
}
.home-news-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #c6e2ce;
  box-shadow: 0 3px 14px rgba(26,92,58,.12);
  cursor: pointer;
  font-size: 1.6rem;
  color: #1a5c3a;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background .2s, color .2s;
  line-height: 1;
}
.home-news-arrow:hover { background: #1a5c3a; color: #fff; }
.home-news-prev { left: 0; }
.home-news-next { right: 0; }

.home-news-viewport { overflow: hidden; }
.home-news-track {
  display: flex;
  transition: transform .42s cubic-bezier(.4,0,.2,1);
  gap: 20px;
}

/* Cards */
.home-news-card {
  flex: 0 0 calc(33.333% - 14px);
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0ede5;
  box-shadow: 0 2px 12px rgba(26,92,58,.07);
  display: flex;
  gap: 0;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.home-news-card:hover {
  box-shadow: 0 8px 28px rgba(26,92,58,.15);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}
.home-news-card-date {
  background: #1a5c3a;
  color: #fff;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  text-align: center;
  flex-shrink: 0;
}
.hnc-day  { font-size: 1.5rem; font-weight: 800; line-height: 1; display: block; }
.hnc-mon  { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; display: block; margin-top: 2px; }
.hnc-yr   { font-size: .65rem; opacity: .75; display: block; margin-top: 1px; }
.home-news-card-body { padding: 16px 18px; min-width: 0; }
.hnc-badge-new {
  display: inline-block;
  background: #e53e3e; color: #fff;
  font-size: .62rem; font-weight: 700;
  padding: 1px 6px; border-radius: 3px;
  margin-bottom: 5px; letter-spacing: .5px;
}
.hnc-subject {
  font-size: .95rem; font-weight: 700;
  color: #1a1a1a; line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hnc-detail {
  font-size: .84rem; color: #555;
  line-height: 1.5; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hnc-link {
  font-size: .82rem; font-weight: 700;
  color: #1a5c3a; text-decoration: none;
}
.hnc-link:hover { color: #c49a28; }

/* Responsive */
@media (max-width: 1024px) {
  .home-news-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 640px) {
  .home-news-card { flex: 0 0 100%; }
  .home-news-slider-wrap { padding: 0 44px; }
}

/* ═══════════════════════════════════════════
   10. CHAIRMAN'S MESSAGE
   ═══════════════════════════════════════════ */
.chairman-section {
  background: var(--light-blue);
  padding: 60px 0;
}

.chairman-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 52px;
  align-items: stretch;
}

.chairman-photo {
  position: relative;
  display: flex;
  flex-direction: column;
}

.chairman-photo .photo-frame {
  width: 100%;
  flex: 1;
  min-height: 0;
  background: linear-gradient(135deg, #c6e2ce, #a0d4b5);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chairman-photo .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
}

.chairman-photo .photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,92,58,0.3), transparent);
  z-index: 1;
}

.photo-placeholder {
  font-size: 5rem;
  opacity: 0.3;
  z-index: 1;
}

.chairman-photo .overlay-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.chairman-text {
  align-self: center;
}

.chairman-text .quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.8;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  display: block;
}

.chairman-text blockquote {
  font-size: 1.15rem;
  color: #333;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

.chairman-text .chairman-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.chairman-text .chairman-title {
  font-size: 0.9rem;
  color: #666;
}

/* ═══════════════════════════════════════════
   12. CERTIFICATE VERIFICATION
   ═══════════════════════════════════════════ */
.verify-section {
  background: linear-gradient(135deg, #1a5c3a 0%, #2d7a52 50%, #154d30 100%);
  position: relative;
  overflow: hidden;
}

.verify-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M30 0L0 30l30 30 30-30z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.verify-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.verify-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.verify-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 12px;
}

.verify-content > p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.verify-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 20px;
}

.verify-form input {
  flex: 1;
  padding: 16px 20px;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.95);
  color: var(--text);
  transition: border-color var(--transition);
}

.verify-form input:focus {
  outline: none;
  border-color: var(--white);
}

.verify-form button {
  padding: 16px 32px;
  background: var(--dark-navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.verify-form button:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.verify-trust {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════
   12.5 STUDENT SUCCESS STORIES
   ═══════════════════════════════════════════ */
.success-stories-section {
  background: #faf7f0;
  color: var(--text);
}

.success-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.success-story-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.success-story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.story-video-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.story-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-details {
  padding: 24px;
}

.story-details h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
}

.story-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin: 0 0 16px;
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.story-quote::before {
  content: '"';
  font-size: 2rem;
  color: var(--accent);
  position: absolute;
  left: 0;
  top: -5px;
  font-family: serif;
}

.story-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #666;
}

.story-year, .story-field {
  background: rgba(196,154,40,0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.success-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  margin-top: 20px;
}

.success-cta h3 {
  font-size: 1.8rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.success-cta > p {
  font-size: 1.1rem;
  margin: 0 0 24px;
  opacity: 0.9;
}

.success-cta .btn {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 32px;
  font-size: 1.1rem;
}

.success-cta .btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════════
   13. LET'S TALK SECTION
   ═══════════════════════════════════════════ */
.lets-talk-section {
  background: #eef6f1;
  color: var(--text);
}

.lets-talk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: flex-start;
}

.lets-talk-info h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.lets-talk-info p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.lets-talk-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--primary);
}

.lets-talk-info ul li {
  margin-bottom: 10px;
}

.lets-talk-info a {
  color: var(--primary);
  text-decoration: underline;
}

.lets-talk-form {
  background: #fff;
  border: 1px solid rgba(26,92,58,0.13);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.lets-talk-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lets-talk-form .form-group {
  display: flex;
  flex-direction: column;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
}


.lets-talk-form label {
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

.lets-talk-form input,
.lets-talk-form textarea {
  border: 1px solid #c6e2ce;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.95rem;
}

.lets-talk-form textarea {
  resize: vertical;
}

.lets-talk-form button {
  margin-top: 14px;
  width: 100%;
}

@media (max-width: 1024px) {
  .lets-talk-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .lets-talk-section {
    padding: 40px 0;
  }

  .lets-talk-grid {
    grid-template-columns: 1fr;
  }

  .lets-talk-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   14. FOOTER
   ═══════════════════════════════════════════ */
.main-footer {
  background: #1a5c3a;
  color: var(--white);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.6fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 12px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-about .footer-logo-icon {
  /* Image logo — remove fixed box & gradient */
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
}

.footer-about .footer-logo-text {
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-about p {
  font-size: 0.88rem;
  opacity: 0.65;
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--white);
  transition: all var(--transition);
}

.social-icons a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

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

.footer-col ul a {
  font-size: 0.88rem;
  opacity: 0.65;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul a:hover {
  opacity: 1;
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-contact-item .icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  opacity: 0.5;
}

.footer-contact-item span { opacity: 0.65; line-height: 1.5; }

.map-placeholder {
  width: 100%;
  height: 120px;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius);
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0.6;
  border: 1px dashed rgba(255,255,255,0.25);
}

.footer-map { margin-top: 14px; }
.footer-map iframe {
  width: 100%;
  height: 190px;
  border: 0;
  border-radius: 10px;
  display: block;
  filter: saturate(0.8) brightness(0.9);
  transition: filter .3s;
}
.footer-map iframe:hover { filter: saturate(1) brightness(1); }

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

.footer-bottom p {
  font-size: 0.82rem;
  opacity: 0.5;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.footer-bottom-links a:hover { opacity: 1; }

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 9999;
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .qual-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col-contact { grid-column: 1 / -1; }
  .chairman-grid { grid-template-columns: 1fr; gap: 40px; }
  .chairman-photo { width: 100%; max-width: 320px; margin: 0 auto; }
  /* single column: the frame no longer stretches with a neighbour and its picture is absolutely positioned, so without an explicit width and shape (320x450) it collapses to 0x0 */
  .chairman-photo .photo-frame { flex: none; aspect-ratio: 320 / 450; }
  .about-grid { gap: 40px; }
}

/* Switch to hamburger at 1400px so nav doesn't overflow on medium desktops */
@media (max-width: 1400px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .logo-text h1 { font-size: 1.1rem; }
  .logo-text .tagline { font-size: 0.65rem; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .topbar-left span { display: none; }
  #live-datetime { display: none; }

  .main-nav { display: none; }
  .hamburger { display: flex; }
  .search-toggle { margin-left: 0; }

  .hero h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat { padding: 16px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .qual-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

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

  .qa-ecosystem { flex-direction: column; gap: 8px; min-height: auto; }
  .qa-arrow { transform: rotate(90deg); }

  .result-search-card { padding: 24px 18px; }
  .result-search-row { flex-direction: column; gap: 14px; }
  .result-btn-wrap { min-width: unset; width: 100%; }
  .result-chart { gap: 10px; height: 200px; }
  .rbar-num { font-size: 0.52rem; }

  .stats-grid { gap: 16px; }

  .verify-form { flex-direction: column; }

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

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

  .section-padding { padding: 60px 0; }

  .hero-buttons .btn { padding: 12px 24px; font-size: 0.92rem; }

  .logo-text h1 { font-size: 1rem; }
  .logo-text .tagline { font-size: 0.65rem; }
  .logo-icon { width: 40px; height: 40px; font-size: 0.9rem; }

  /* Responsive for Find Institutes */
  .find-institutes-card {
    padding: 12px;
    margin: 0 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-group select {
    padding: 8px 16px;
  }

  /* Responsive for Success Stories */
  .success-stories-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }

  .story-video-wrapper {
    height: 180px;
  }

  .story-details {
    padding: 20px;
  }

  .story-details h3 {
    font-size: 1.1rem;
  }

  .story-meta {
    flex-direction: column;
    gap: 8px;
  }

  .success-cta {
    padding: 32px 20px;
  }

  .success-cta h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-stat .stat-number { font-size: 1.3rem; }
  .about-infographic { grid-template-columns: 1fr 1fr; gap: 12px; }
  .info-card { padding: 20px 14px; }
  .chairman-grid { gap: 32px; }
  .verify-content h2 { font-size: 1.5rem; }
  .mission-vision { flex-direction: column; }

  /* Responsive for Success Stories */
  .story-video-wrapper {
    height: 160px;
  }

  .story-details {
    padding: 16px;
  }

  .success-cta {
    padding: 28px 16px;
  }

  .success-cta h3 {
    font-size: 1.3rem;
  }
}
/* ═══════════════════════════════════════════
   REVIEW-BASED THEME ADDITIONS
   ═══════════════════════════════════════════ */

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf7f0; }
::-webkit-scrollbar-thumb { background: linear-gradient(#1a5c3a, #c49a28); border-radius: 4px; }

/* Section title underline */
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #c49a28, #f0d98a);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* Back to top — gold gradient */
#backToTop {
  background: linear-gradient(135deg, #c49a28, #f0d98a);
  border-radius: 12px;
}

/* Marquee bar — gold label */
.marquee-label { background: #c49a28; }
.marquee-label::after { border-color: transparent transparent transparent #c49a28; }

/* ═══════════════════════════════════════════
   HERO SCREEN WRAP — sections 1+2+3 = 100vh
   ═══════════════════════════════════════════ */
.hero-screen-wrap {
  min-height: calc(100vh - var(--topbar-height) - var(--header-height));
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* ═══════════════════════════════════════════
   RB-HERO — Split layout (review-based)
   ═══════════════════════════════════════════ */
.rb-hero {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 24px;
  padding-bottom: 0;
  text-align: left;
}

.rb-hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.rb-hero-text { max-width: 600px; }

.rb-hero-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 20px 0 18px;
  text-transform: uppercase;
}

.rb-hero-text .highlight {
  color: #ffd400;
  -webkit-text-fill-color: #ffd400;
}

.rb-hero-text .hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 32px;
}

.rb-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.rb-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.rb-geo-accent {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,154,40,0.18) 0%, rgba(45,122,82,0.10) 50%, transparent 70%);
  position: relative;
  border: 2px solid rgba(196,154,40,0.25);
  box-shadow: 0 0 80px rgba(196,154,40,0.12);
}
.rb-geo-accent::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(196,154,40,0.2);
}
.rb-geo-accent::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px dashed rgba(45,122,82,0.3);
}

/* Hero geometric pattern overlay */
.rb-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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");
  z-index: 1;
  pointer-events: none;
}
.rb-hero .rb-hero-inner,
.rb-hero .scroll-arrow { z-index: 5; }

/* ═══════════════════════════════════════════
   RB-QUICK-BAR — 5-card access row
   ═══════════════════════════════════════════ */
.rb-quick-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  box-shadow: 0 4px 32px rgba(26,26,26,0.10);
  border-top: 4px solid #1a5c3a;
  position: relative;
  z-index: 10;
}

.rb-quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-right: 1px solid #e2ddd3;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.rb-quick-card:last-child { border-right: none; }
.rb-quick-card:hover { background: #fdf5e0; transform: translateY(-2px); }
.rb-quick-card:hover .rb-qarrow { color: #c49a28; transform: translateX(4px); }
.rb-quick-card:hover strong { color: #c49a28; }

.rb-qicon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #eef6f1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rb-qtext { flex: 1; }
.rb-qtext strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Source Sans 3', sans-serif;
  margin-bottom: 3px;
  transition: color 0.2s;
}
.rb-qtext span { font-size: 0.78rem; color: #6b6b6b; }
.rb-qarrow { font-size: 1.4rem; color: #b8b0a0; transition: all 0.2s; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   WE WORK WITH — PARTNER LOGO TICKER
   ═══════════════════════════════════════════ */
.partners-strip {
  background: #eef6f1;
  border-top: 2px solid #c6e2ce;
  border-bottom: 2px solid #c6e2ce;
  padding: 40px 0 36px;
  overflow: hidden;
}
.partners-strip-label {
  text-align: center;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #1a5c3a; margin-bottom: 24px;
}
.partners-track-wrap {
  overflow: hidden; position: relative;
}
.partners-track-wrap::before,
.partners-track-wrap::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.partners-track-wrap::before { left: 0;  background: linear-gradient(to right, #eef6f1, transparent); }
.partners-track-wrap::after  { right: 0; background: linear-gradient(to left,  #eef6f1, transparent); }
.partners-track {
  display: flex; gap: 20px;
  width: max-content;
  animation: partnersScroll 28s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
@keyframes partnersScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.partner-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; min-width: 140px; height: 100px;
  text-decoration: none;
  background: #fff; border: 1.5px solid #c6e2ce;
  border-radius: 12px; padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: default; flex-shrink: 0;
}
.partner-card:hover {
  box-shadow: 0 4px 18px rgba(26,92,58,0.15);
  border-color: #2d7a52;
}
.partner-card img {
  width: auto; height: 48px;
  max-width: 110px; object-fit: contain;
}
.partner-card-name {
  font-size: 0.68rem; color: #1a5c3a;
  font-weight: 700; text-align: center;
  letter-spacing: 0.04em; line-height: 1.3;
}

/* ═══════════════════════════════════════════
   LEADERSHIP TEAM CAROUSEL
   ═══════════════════════════════════════════ */
.team-section {
  background: #fff;
  padding: 0 0 72px;
  overflow: hidden;
}
.team-section-banner {
  background: linear-gradient(145deg, #e7c55e, #e7c55e);
  padding: 56px 24px 110px;
  text-align: center;
}
.team-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.9rem;
}
.team-section-sub {
  font-size: 1.05rem;
  color: #6b6b6b;
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.team-carousel-wrap {
  position: relative;
  max-width: 100%;
  margin: -80px auto 0;
  padding: 0 48px;
}
.team-carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: #1a5c3a;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  line-height: 1;
}
.team-carousel-arrow:hover { background: #1a5c3a; color: #fff; box-shadow: 0 8px 28px rgba(26,92,58,0.3); }
.team-carousel-prev { left: 4px; }
.team-carousel-next { right: 4px; }
.team-carousel-viewport { overflow: hidden; }
.team-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.team-carousel-item {
  flex: 0 0 25%;
  padding: 20px 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.team-circle-photo {
  width: 250px; height: 250px;
  border-radius: 50%;
  overflow: hidden;
  background: #dde4ee;
  border: 5px solid #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin-bottom: 1.3rem;
  flex-shrink: 0;
}
.team-circle-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-circle-name {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.2rem; font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}
.team-circle-role { font-size: 1rem; color: #6b7280; }
.team-circle-dept { font-size: 0.88rem; color: #9ca3af; margin-top: 0.15rem; }
/* Team dots */
.team-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.team-carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.team-carousel-dots button.active {
  background: #1a5c3a;
  transform: scale(1.3);
}
@media (max-width: 1024px) {
  .team-carousel-item  { flex: 0 0 33.333%; }
  .team-circle-photo   { width: 210px; height: 210px; }
}
@media (max-width: 768px) {
  .team-carousel-item  { flex: 0 0 50%; }
  .team-circle-photo   { width: 190px; height: 190px; }
  .team-carousel-wrap  { padding: 0 24px; }
}
@media (max-width: 580px) {
  .team-carousel-item  { flex: 0 0 100%; }
  .team-carousel-wrap  { padding: 0 16px; }
  .team-circle-photo   { width: 180px; height: 180px; }
  .team-section-banner { padding: 40px 16px 90px; }
}

/* ── hover hint on carousel items ── */
.team-carousel-item { transition: transform .2s; }
.team-carousel-item:hover { transform: translateY(-4px); }
.team-carousel-item:hover .team-circle-photo {
  box-shadow: 0 12px 36px rgba(26,92,58,.22);
  border-color: #e7c55e;
}

/* ═══════════════════════════════════════════
   TEAM PROFILE MODAL
   ═══════════════════════════════════════════ */
.tm-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(5,20,10,.72);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.tm-overlay.active { display: flex; }

.tm-box {
  background: #fff;
  border-radius: 22px;
  max-width: 1060px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
  animation: tmSlideIn .32s cubic-bezier(.22,1,.36,1);
}
@keyframes tmSlideIn {
  from { opacity:0; transform: translateY(32px) scale(.96); }
  to   { opacity:1; transform: translateY(0)    scale(1);   }
}

.tm-close {
  position: absolute; top: 16px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: #f0f7f3; color: #1a5c3a;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s; z-index: 10;
}
.tm-close:hover { background: #1a6b3c; color: #fff; }

.tm-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
}

/* ── Photo column — full image, no text overlay ── */
.tm-photo-col {
  border-radius: 22px 0 0 22px;
  overflow: hidden;
  position: relative;
  min-height: 480px;
}
.tm-photo-wrap {
  position: absolute; inset: 0;
}
.tm-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.tm-badge { display: none; }

/* ── Info column ── */
.tm-info-col {
  padding: 48px 44px 44px;
  display: flex; flex-direction: column;
}
.tm-name-block { margin-bottom: 22px; }
.tm-name-block h3 {
  font-size: 2rem; font-weight: 800; color: #0a2e1a;
  margin: 0 0 10px; line-height: 1.2;
}
.tm-name-block p {
  font-size: 1.1rem; color: #1a6b3c; font-weight: 600; margin: 0 0 10px;
}
.tm-name-block span {
  font-size: .9rem; color: #7a9a8a;
  background: #e8f5ec; border: 1px solid #cce8d8;
  border-radius: 50px; padding: 4px 16px;
  display: inline-block;
}
.tm-divider {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #1a6b3c, #e7c55e);
  margin-bottom: 28px;
}
.tm-message {
  font-size: 1.12rem; color: #2a4a35; line-height: 1.85;
  font-style: italic; margin: 0;
  padding-left: 22px;
  border-left: 4px solid #e7c55e;
}

/* ── Responsive ── */
@media (max-width: 780px) {
  .tm-inner { grid-template-columns: 1fr; }
  .tm-photo-col { border-radius: 22px 22px 0 0; min-height: 300px; }
  .tm-info-col { padding: 28px 24px 32px; }
  .tm-name-block h3 { font-size: 1.5rem; }
  .tm-name-block p  { font-size: 1rem; }
  .tm-message       { font-size: 1rem; }
}

/* ═══════════════════════════════════════════
   OUR CULTURE & LIFE AT PBTE
   ═══════════════════════════════════════════ */
.culture-section {
  background: #faf7f0;
  padding: 80px 0;
}
.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.culture-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #1a5c3a; margin-bottom: 1rem;
}
.culture-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; color: #1a1a1a;
  line-height: 1.15; margin-bottom: 2.2rem;
}
.culture-features { display: flex; flex-direction: column; gap: 1.8rem; }
.culture-feature { display: flex; align-items: flex-start; gap: 16px; }
.culture-feat-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #eef6f1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.3s;
}
.culture-feat-icon svg { color: #1a5c3a; transition: color 0.3s; }
.culture-feature:hover .culture-feat-icon { background: #1a5c3a; }
.culture-feature:hover .culture-feat-icon svg { color: #fff; }
.culture-feat-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: #1a1a1a; margin-bottom: 0.3rem;
}
.culture-feat-body p { font-size: 0.88rem; color: #6b6b6b; line-height: 1.65; }

/* Right image grid */
.culture-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.culture-img-card { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.culture-img-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.culture-img-card:hover img { transform: scale(1.05); }
/* 3-picture layout: one tall card on the left, two stacked on the right */
.culture-img-card.tall { grid-row: 1 / span 2; aspect-ratio: auto; }
/* Each card takes its picture's own shape, so nothing gets cropped (1.jpeg 2:3, 2.jpeg 4:3, 3.jpeg ~9:10).
   If a picture is replaced with a different shape, update the matching ratio here. */
.culture-img-grid.three { grid-template-columns: 1.29fr 1fr; grid-template-rows: auto auto; }
.culture-img-grid.three .culture-img-card:nth-child(2) { aspect-ratio: 1448 / 1086; }
.culture-img-grid.three .culture-img-card:nth-child(3) { aspect-ratio: 736 / 822; }
.culture-img-card.dark-card {
  background: linear-gradient(135deg, #1a5c3a, #0d3d26);
  min-height: 195px;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.5rem;
  overflow: hidden; cursor: default;
}
.culture-img-card.dark-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: 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");
}
.culture-dark-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #f0d98a; margin-bottom: 0.4rem; position: relative; z-index: 1;
}
.culture-dark-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: #fff;
  line-height: 1.3; position: relative; z-index: 1; margin-bottom: 0.35rem;
}
.culture-dark-desc {
  font-size: 0.8rem; color: rgba(255,255,255,0.72);
  line-height: 1.55; position: relative; z-index: 1;
}
@media (max-width: 900px) {
  .culture-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .culture-img-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   OUR VALUES — FEATURED SLIDER
   ═══════════════════════════════════════════ */
.values-section { background: #fff; padding: 80px 0 88px; }
.values-section .container { max-width: 1480px; }
.values-header { text-align: center; margin-bottom: 40px; }
.values-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #1a5c3a; margin-bottom: 0.9rem;
  padding: 0.28rem 1rem;
  background: #eef6f1; border-radius: 20px; border: 1px solid #c6e2ce;
}
.values-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800; color: #1a1a1a; margin-bottom: 0.5rem;
}
.values-subtitle { font-size: 0.97rem; color: #6b6b6b; max-width: 500px; margin: 0 auto; }

.vfeat-wrap {
  display: grid; grid-template-columns: 1fr 400px;
  /* start (not stretch) so the left image panel keeps a fixed height —
     it no longer grows/shrinks with however many values are listed */
  align-items: start;
  gap: 0; border: 1px solid #e2ddd3;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 32px rgba(26,26,26,0.08);
}
.vfeat-left {
  position: relative; height: 573px;
  overflow: hidden; background: #1a1a1a;
}
.vfeat-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.vfeat-slide.active { opacity: 1; }
.vfeat-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vfeat-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,92,58,0.92) 0%, transparent 100%);
  padding: 2.5rem 2rem 1.8rem; color: #fff;
}
.vfeat-caption-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #f0d98a; margin-bottom: 0.4rem;
}
.vfeat-caption-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 0.5rem; line-height: 1.2;
}
.vfeat-caption-desc { font-size: 0.88rem; color: rgba(255,255,255,0.85); line-height: 1.6; max-width: 500px; }
.vfeat-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; transition: background 0.2s; user-select: none;
}
.vfeat-arrow:hover { background: #1a5c3a; }
.vfeat-prev { left: 14px; }
.vfeat-next { right: 14px; }
.vfeat-dots {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px; z-index: 5;
}
.vfeat-dot { width: 24px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.25s; }
.vfeat-dot.active { background: #c49a28; width: 36px; }
.vfeat-right {
  border-left: 1px solid #e2ddd3; display: flex; flex-direction: column;
  /* matches .vfeat-left's fixed height so the image panel never resizes
     based on how many values are listed */
  height: 573px; overflow: hidden;
}
.vfeat-item {
  display: flex; align-items: center; gap: 12px;
  padding: .68rem 1.2rem; border-bottom: 1px solid #f0ece4;
  cursor: pointer; transition: background 0.2s; text-decoration: none;
}
.vfeat-item:last-child { border-bottom: none; }
.vfeat-item:hover { background: #faf7f0; }
.vfeat-item.active { background: #eef6f1; }
.vfeat-thumb { width: 50px; height: 38px; border-radius: 8px; overflow: hidden; flex-shrink: 0; border: 2px solid transparent; transition: border-color 0.2s; }
.vfeat-item.active .vfeat-thumb { border-color: #1a5c3a; }
.vfeat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vfeat-item-text { flex: 1; min-width: 0; }
.vfeat-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 700; color: #1a1a1a;
  margin-bottom: 0.2rem; transition: color 0.2s;
}
.vfeat-item.active .vfeat-item-title { color: #1a5c3a; }
.vfeat-item-desc {
  font-size: 0.78rem; color: #6b6b6b; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.vfeat-item-arrow { color: #e2ddd3; font-size: 1.2rem; flex-shrink: 0; transition: color 0.2s; }
.vfeat-item.active .vfeat-item-arrow,
.vfeat-item:hover .vfeat-item-arrow { color: #1a5c3a; }
/* Stacked layout: the image panel keeps a FIXED height (never changes with the number of
   values); the list below simply grows to show every value instead of clipping the last ones. */
@media (max-width: 900px) {
  .vfeat-wrap { grid-template-columns: 1fr; }
  .vfeat-left { height: 320px; }
  .vfeat-right { height: auto; overflow: visible; border-left: none; border-top: 1px solid #e2ddd3; }
}
@media (max-width: 540px) {
  .vfeat-left { height: 280px; }
  .vfeat-thumb { width: 64px; height: 46px; }
  .vfeat-caption { padding: 1.6rem 1rem 1.6rem; }
  .vfeat-caption-title { font-size: 1.25rem; margin-bottom: 0.3rem; }
  .vfeat-caption-desc {
    font-size: 0.8rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .vfeat-arrow { width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════
   CORE FUNCTIONS INFOGRAPHIC
   ═══════════════════════════════════════════ */
.iform-section {
  background: #f0f4f9;
  padding: 88px 0 80px;
}
.iform-header { text-align: center; margin-bottom: 48px; }
.iform-label-chip {
  display: inline-block; font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #1a5c3a; margin-bottom: 0.9rem;
  padding: 0.32rem 1.2rem; background: #eef6f1; border-radius: 20px; border: 1px solid #c6e2ce;
}
.iform-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: #1a1a1a; margin-bottom: 0.5rem;
}
.iform-sub { font-size: 0.95rem; color: #6b7280; max-width: 520px; margin: 0 auto; }

.iform-box {
  background: #fff; border-radius: 0; padding: 60px 48px;
  max-width: 100%; margin: 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
}
.iform-layout {
  display: grid; grid-template-columns: 1fr 480px 1fr;
  align-items: center; gap: 0;
  max-width: 1400px; margin: 0 auto;
}
.iform-labels-left, .iform-labels-right {
  display: flex; flex-direction: column; gap: 40px; padding: 0 40px;
}
.iform-item-label {
  background: #f0f4f9; border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 1.1rem 1.4rem; font-size: 0.92rem; font-weight: 700;
  color: #1a1a1a; text-align: center; position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.iform-item-label:hover { border-color: #1a5c3a; background: #eef6f1; }
.iform-labels-left .iform-item-label::after {
  content: ''; position: absolute; right: -40px; top: 50%;
  width: 40px; height: 1.5px; background: linear-gradient(to right, #94a3b8, transparent);
}
.iform-labels-right .iform-item-label::before {
  content: ''; position: absolute; left: -40px; top: 50%;
  width: 40px; height: 1.5px; background: linear-gradient(to left, #94a3b8, transparent);
}
.iform-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  width: 480px; margin: 0 auto;
}
.iform-tile {
  height: 220px; border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: #fff; position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.iform-tile:hover { transform: scale(1.04); box-shadow: 0 16px 40px rgba(0,0,0,0.22); }
.iform-tile svg { opacity: 0.92; width: 46px; height: 46px; }
.iform-tile.c1 { background: linear-gradient(145deg, #1a5c3a, #2d7a52); }
.iform-tile.c2 { background: linear-gradient(145deg, #2d7a52, #3d9467); }
.iform-tile.c3 { background: linear-gradient(145deg, #0d3d26, #1a5c3a); }
.iform-tile.c4 { background: linear-gradient(145deg, #c49a28, #d4aa38); }
.iform-tile-num {
  position: absolute; top: 12px; left: 16px;
  font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; opacity: 0.65;
}
.iform-tile-name {
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.03em; text-align: center; padding: 0 14px; line-height: 1.35;
}
@media (max-width: 1100px) {
  .iform-layout { grid-template-columns: 200px 1fr 200px; }
  .iform-tiles { width: 100%; }
  .iform-labels-left, .iform-labels-right { padding: 0 20px; }
}
@media (max-width: 820px) {
  .iform-layout { grid-template-columns: 1fr; }
  .iform-labels-left, .iform-labels-right { flex-direction: row; justify-content: center; flex-wrap: wrap; padding: 0 10px; }
  .iform-labels-left .iform-item-label::after,
  .iform-labels-right .iform-item-label::before { display: none; }
  .iform-tiles { width: 300px; }
  .iform-box { padding: 40px 20px; }
  .iform-tile { height: 160px; }
}

/* ═══════════════════════════════════════════
   RB-STATS-BAR — green stats strip
   ═══════════════════════════════════════════ */
.rb-stats-bar {
  background: #1a5c3a;
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}
.rb-stats-bar .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
}
.rb-stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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='%23FFFFFF' fill-opacity='0.04'%3E%3Cpath d='M30 0L0 30l30 30 30-30z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.rb-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.rb-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}
.rb-stat-item:last-child { border-right: none; }
.rb-stat-item svg { color: #f0d98a; flex-shrink: 0; }

.rb-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #f0d98a;
  line-height: 1;
}

.rb-stat-lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 4px;
}

/* News card improvements */
.news-card {
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s;
  border-left: 3px solid transparent;
  border-radius: 0;
  box-shadow: none;
}
.news-card:hover {
  border-left-color: var(--secondary);
  background: var(--light-blue);
  padding-left: 24px;
  transform: none;
}
.news-card h4 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}
.news-card .date {
  font-size: 0.92rem;
  color: #999;
  margin-bottom: 6px;
}
.news-card p { font-size: 1.05rem; color: #666; line-height: 1.5; }

/* ═══════════════════════════════════════════
   RESPONSIVE — rb-* components
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .rb-hero-inner { grid-template-columns: 1fr; }
  .rb-hero-visual { display: none; }
  .rb-quick-bar { grid-template-columns: 1fr 1fr; }
  .rb-stats-inner { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .rb-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 16px 24px;
  }
}
@media (max-width: 600px) {
  .rb-quick-bar { grid-template-columns: 1fr; }
  .rb-quick-card { border-right: none; border-bottom: 1px solid #e2ddd3; }
  .rb-stats-inner { grid-template-columns: 1fr 1fr; }
  .rb-hero-inner { padding: 0 16px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Global overflow & container
   ═══════════════════════════════════════════ */
img, video, canvas { max-width: 100%; height: auto; }

.container { padding: 0 20px; }

/* ═══════════════════════════════════════════
   RESPONSIVE — 1024px (tablet landscape)
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .result-search-card { padding: 28px 24px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 769–1280px (tablet landscape /
   small laptop): banner image is 2.75:1 — cap
   the hero to that ratio so cover doesn't crop
   ═══════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1280px) {
  .hero-screen-wrap { min-height: 0; }
  .hero.rb-hero {
    aspect-ratio: 1024 / 373;
    min-height: 340px;
  }
  .rb-hero-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
}
/* Very big screens (2K/4K/TV) — NOT 1080p laptops: box the whole site
   in a centered column with side gutters, MSN-style, instead of stretching */
@media (min-width: 2100px) {
  html { background: #e9efeb; }
  body {
    max-width: 1920px;
    margin: 0 auto;
    box-shadow: 0 0 48px rgba(20, 60, 40, 0.18);
  }
}

/* Big screens: same cap so the banner is never zoom-cropped */
@media (min-width: 1281px) {
  /* wrap follows content height — no leftover gap under the ticker */
  .hero-screen-wrap { min-height: 0; }
  /* hero height comes from the banner image's own ratio (no crop, no collapse);
     min() keeps it correct when the body is boxed at 1920px on huge screens */
  .hero.rb-hero {
    aspect-ratio: 1024 / 373;
    max-height: calc(min(100vw, 1920px) / 2.745);
  }
  .rb-hero-text { max-width: 760px; }
  .rb-hero-text h2 { font-size: clamp(4rem, 3.6vw, 5rem); }
  .rb-hero-text .hero-sub { font-size: clamp(1.15rem, 1.2vw, 1.5rem); }
  .rb-hero-btns .btn { padding: 15px 32px; font-size: 1.05rem; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 768px (tablet portrait)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Topbar — hide all utility links on mobile, keep only blinking News badge */
  .topbar { height: auto; padding: 6px 0; }
  .topbar-left a:not(.highlight-blink) { display: none; }
  .topbar-right { display: none; }
  #live-datetime { display: none; }

  /* Header padding fix for mobile */
  .header-inner { padding: 0 16px; gap: 10px; }
  .logo-text h1 { font-size: 1rem; }

  /* Hero screen wrap — reduce height on mobile */
  .hero-screen-wrap {
    height: auto;
    min-height: 55vh;
  }

  /* rb-hero — .hero.rb-hero needed to beat the base `.hero.rb-hero{min-height:0}` */
  .rb-hero, .hero.rb-hero { padding: 28px 0 16px; align-items: flex-start; min-height: 55vh; }
  .rb-hero-inner { padding: 0 16px; gap: 24px; }
  .rb-hero-text { max-width: 100%; }
  .rb-hero-text h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .rb-hero-btns { gap: 10px; }
  .rb-hero-btns .btn { padding: 12px 20px; font-size: 0.9rem; }

  /* Quick bar */
  .rb-quick-bar { grid-template-columns: 1fr 1fr; }
  .rb-quick-card { padding: 16px 14px; gap: 10px; }
  .rb-qicon { width: 38px; height: 38px; }

  /* Stats bar */
  .rb-stats-bar { padding: 24px 0; }
  .rb-stat-num { font-size: 1.7rem; }

  /* About grid */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Result search card */
  .result-search-card { padding: 20px 16px; }
  .result-search-row { flex-direction: column; gap: 12px; }
  .result-btn-wrap { width: 100%; min-width: unset; }

  /* Affiliate section */
  .affiliate-grid,
  .affiliated-grid { grid-template-columns: 1fr 1fr !important; gap: 16px; }

  /* News grid */
  .news-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }

  /* Section padding */
  .section-padding { padding: 52px 0; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 480px (large phones)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 12px; }

  /* Header */
  .logo-text h1 { font-size: 0.88rem; line-height: 1.2; }
  .logo-text .tagline { display: none; }
  .header-inner { gap: 6px; padding: 0 12px; }
  .logo-icon { width: 40px; height: 40px; }
  .logo-group { gap: 10px; }

  /* Topbar — fully hidden on small phones */
  .topbar { display: none; }

  /* Hero */
  .hero-screen-wrap { min-height: 50vh; }
  .rb-hero, .hero.rb-hero { min-height: 50vh; padding: 20px 0 14px; }
  .hero-badge { font-size: 0.78rem; padding: 6px 14px; }
  .rb-hero-text h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .rb-hero-btns { flex-direction: column; width: 100%; }
  .rb-hero-btns .btn { text-align: center; width: 100%; }
  .hero-stats { display: none; }
  .scroll-arrow { bottom: 16px; }

  /* Quick bar */
  .rb-quick-bar { grid-template-columns: 1fr; }
  .rb-quick-card { border-right: none; border-bottom: 1px solid #e2ddd3; padding: 14px 12px; }

  /* Stats bar */
  .rb-stats-inner { grid-template-columns: 1fr 1fr; }
  .rb-stat-item { padding: 12px 16px; }
  .rb-stat-num { font-size: 1.5rem; }

  /* Qual grid */
  .qual-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }

  /* News */
  .news-grid { grid-template-columns: 1fr; }
  .news-column { padding: 0; }

  /* About infographic */
  .about-infographic { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Result chart */
  .result-chart { gap: 8px; height: 180px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }

  .section-padding { padding: 40px 0; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 360px (small phones)
   ═══════════════════════════════════════════ */
@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .rb-stat-num { font-size: 1.3rem; }
  .rb-stat-lbl { font-size: 0.68rem; }
  .logo-icon { width: 34px; height: 34px; font-size: 0.8rem; }
  .logo-text h1 { font-size: 0.82rem; }
  .hero-screen-wrap { min-height: 45vh; }
  .rb-hero, .hero.rb-hero { min-height: 45vh; }
  .rb-hero-text h2 { font-size: clamp(1.3rem, 8vw, 1.8rem); }
  .hero-badge { display: none; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Short-height screens (laptops)
   ═══════════════════════════════════════════ */
@media (max-height: 750px) {
  /* Reduce hero content on short-height screens */
  .rb-hero { padding-top: 16px; padding-bottom: 8px; }
  .rb-hero-text h2 { font-size: clamp(2rem, 4vw, 3rem); }
  .rb-hero-text .hero-sub { font-size: 0.95rem; margin-bottom: 20px; }
  .hero-badge { margin-bottom: 16px; }
  .hero-stat { padding: 16px 12px; }
  .hero-stat .stat-number { font-size: 1.5rem; }
}

@media (max-height: 620px) {
  .rb-hero-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
  .rb-hero-text .hero-sub { display: none; }
  .hero-badge { display: none; }
  .hero-stats { display: none; }
  .rb-hero { padding-top: 12px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — header fit on phones
   Long tagline and large crest overflowed the fixed-height header.
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .header-inner > * { flex-shrink: 0; }
  .header-inner > .logo-group { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .header-inner > div { gap: 4px !important; }
  .logo-icon { flex: none; }
  .logo-icon img { width: 100%; height: 100%; object-fit: contain; }
  .logo-text { min-width: 0; }
  .logo-text h1 { line-height: 1.2; }
  .logo-text .tagline { display: none; }
  .header-inner img[alt="Government of Punjab"] { height: 44px !important; }
  .header-inner .search-toggle { width: 34px; height: 34px; }
}
@media (max-width: 400px) {
  .header-inner img[alt="Government of Punjab"] { height: 32px !important; }
}
@media (max-width: 340px) {
  .header-inner img[alt="Government of Punjab"] { display: none; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — hero on phones: smaller text in the green area beside the
   photo, so it never covers the face. (!important beats inline styles.)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-screen-wrap { min-height: 0; }
  .hero.rb-hero {
    display: block !important; flex: none;
    height: clamp(300px, 90vw, 520px); min-height: 0; max-height: none; padding: 0;
  }
  .hero.rb-hero .hero-mobile-img { object-fit: cover; object-position: center 70%; }
  .hero.rb-hero .rb-hero-visual, .hero.rb-hero .scroll-arrow { display: none; }
  .hero.rb-hero .rb-hero-inner {
    display: block; width: 49%; margin: 0; right: auto !important; padding: 0 0 0 12px;
  }
  .hero.rb-hero .rb-hero-text h2 { font-size: clamp(0.95rem, 4.5vw, 2.1rem); line-height: 1.2; margin: 0 0 8px; }
  .hero.rb-hero .rb-hero-text .hero-sub {
    display: block; font-size: clamp(0.7rem, 2.8vw, 1rem); line-height: 1.45; margin-bottom: 12px;
  }
  .hero.rb-hero .hero-sub br { display: none; }
  .hero.rb-hero .rb-hero-btns { margin-top: 0 !important; flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero.rb-hero .rb-hero-btns .btn { width: auto; padding: 7px 12px; font-size: clamp(0.7rem, 3vw, 0.9rem); }
}

/* Narrow tablets: keep the top-bar links on one line */
@media (min-width: 769px) and (max-width: 1100px) {
  .topbar-right { display: none; }
  .topbar-left a { white-space: nowrap; font-size: 0.76rem; }
}
