:root {
  --primary: #1d4ed8;        /* Blue */
  --primary-dark: #1e40af;   /* Darker Blue */
  --accent: #ef4444;         /* Red */
  --accent-soft: #fee2e2;    /* Light Red */
  --bg-light: #f9fafb;
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --border-radius: 14px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
  --max-width: 1120px;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg-light);
  line-height: 1.5;
}

/* Layout helpers */
.container {
  max-width: var(--max-width);
  padding: 0 16px;
  margin: 0 auto;
}

/* ========================= */
/* HEADER */
/* ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 28px;
  gap: 20px;
  box-sizing: border-box;
  margin: 0;
}

/* Left: logo + badges */
.logo-stack,
.logo-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Affiliation logos next to logo (vertical stack) */
.logo-aff-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.logo-aff-logo {
  display: block;
  height: 26px;
  width: auto;
  object-fit: contain;
}

/* Center: navigation */
.nav-menu {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 4px 8px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-cta {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

/* Right side: phone + WhatsApp */
.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone,
.header-whatsapp {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Prominent phone button */
.header-phone {
  background-color: #ffffff;
  color: #111827;
  font-weight: 700;
  border: 2px solid #111827;
  padding: 6px 14px;
  font-size: 0.9rem;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.header-phone:hover {
  background-color: #111827;
  color: #ffffff;
  border-color: #111827;
  transition: 0.2s ease;
}

.header-whatsapp {
  background-color: #22c55e;
  color: #ffffff;
}

/* (Old header-aff classes kept in case they’re used somewhere else) */
.header-aff-logos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-aff-logos img,
.header-aff-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* ========================= */
/* HERO */
/* ========================= */

.hero-section {
  padding: 60px 0 80px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 65%),
    radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.18), transparent 65%);
  background-repeat: no-repeat;
  background-size: cover;
}


.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.experience-chip {
  margin-bottom: 10px; /* slight spacing before next badge */
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
}
@media (max-width: 1024px) {
  .hero-section {
    padding: 40px 0 60px;
  }
.hero-section h1 {
  font-size: 2.1rem;
  margin: 4px 0 10px;
}

.highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 12px;
}

.hero-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #374151;
}

.hero-bullets li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}
.hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 32px 0 48px;
  }
}
.hero-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ========================= */
/* BUTTONS */
/* ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* ========================= */
/* FORMS & CARDS */
/* ========================= */

.lead-form-card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 22px;
}

.lead-form-card h2 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.lead-form-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Sections */
.section {
  padding: 40px 0;
  background-color: #ffffff;
}

.section.bg-light {
  background-color: var(--bg-light);
}

.section-heading {
  text-align: center;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.section-heading p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  border-top: 3px solid rgba(37, 99, 235, 0.5);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.82rem;
  color: #374151;
}

.card-list li {
  margin-bottom: 4px;
  position: relative;
  padding-left: 14px;
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.section-cta {
  text-align: center;
  margin-top: 22px;
}

/* Visit / Locate Us section */
.visit-section {
  background-color: #f9fafb;
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.map-card {
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  min-height: 260px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}

.visit-info h2 {
  font-size: 1.5rem;
  margin: 6px 0 8px;
}

.visit-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.visit-row {
  font-size: 0.86rem;
  color: #e5e7eb;
}

.visit-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 2px;
}

.visit-row p {
  margin: 0;
  color: #d1d5db;
}

.visit-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.visit-note {
  font-size: 0.78rem;
  color: #9ca3af;
}


/* About preview */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.site-footer {
  background-color: #0b1120;
  color: #e5e7eb;
  padding: 24px 0 10px;
  margin-top: 20px;
}

/* 3 columns on desktop: Address (left), Contact (center), Quick Links (right) */
/* FOOTER LAYOUT */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

/* Make sure each column can grow */
.footer-address,
.footer-contact,
.footer-links {
  flex: 1;
}

/* Left / center / right alignment */
.footer-address {
  text-align: left;
}

.footer-contact {
  text-align: center;
}

.footer-links {
  text-align: right;
}

.site-footer h4 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.85rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Footer bottom (leave as before) */
.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 14px;
  padding-top: 10px;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}


/* ========================= */
/* ANIMATIONS */
/* ========================= */

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(6px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }
  50% {
    transform: translateY(0);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  }
  100% {
    transform: translateY(6px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease-out both;
}

.fade-in-down {
  animation: fadeInDown 0.5s ease-out both;
}

.float-up {
  animation: fadeInUp 0.6s ease-out both, floatUp 4s ease-in-out 0.8s infinite alternate;
}

/* Staggered delays for cards */
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.delay-1 {
  transition-delay: 0.1s;
}
.reveal-on-scroll.delay-2 {
  transition-delay: 0.2s;
}
.reveal-on-scroll.delay-3 {
  transition-delay: 0.3s;
}

/* ========================= */
/* BRAND TEXT: QED EDUTECH */
/* ========================= */

.qed-edutech .qed {
  color: #1d4ed8;            /* Blue */
  font-weight: 800;
  text-transform: uppercase; /* QED */
  letter-spacing: 0.5px;
}

.qed-edutech .edutech {
  color: #e53935;            /* Red */
  font-weight: 800;
  text-transform: uppercase; /* EDUTECH */
  letter-spacing: 0.5px;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

/* Tablet & below */
@media (max-width: 1024px) {
  /* Hide nav on smaller screens for now (we can add burger later) */
  .nav-menu {
    display: none;
  }
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .map-card {
    min-height: 220px;
  }

  /* Slightly smaller logo on tablet */
  .logo-img {
    height: 64px;
  }

  .header-right {
    margin-left: auto;
  }

  /* Hero: stack content + form vertically */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-section {
    padding: 24px 0 32px;
  }

  .lead-form-card {
    max-width: 480px;
    margin: 0 auto;
  }

  /* Courses: 2 cards per row */
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* About: stack text + form */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Footer: stack columns or leave as 2–3 depending width */
  .footer-grid {
    flex-wrap: wrap;
    gap: 24px;
  }

  .footer-grid > div {
    flex: 1 1 45%;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* Mobile layout */
@media (max-width: 640px) {
  .header-inner {
    padding: 10px 12px;
    gap: 10px;
  }

  /* Hide WhatsApp button on phones */
  .header-whatsapp {
    display: none !important;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .visit-info h2 {
    font-size: 1.35rem;
  }

  .visit-cta {
    flex-direction: column;
  }

  .map-card {
    min-height: 200px;
  }


  .logo-img {
    height: 44px;
  }

  .nav-menu {
    display: none;
  }

  .header-right {
    max-width: 60%;
    align-items: flex-end;
    gap: 4px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-phone {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-width: 2px;
  }

  /* Page content tweaks */
  .container {
    padding: 0 12px;
  }

  .hero-section h1 {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section {
    padding: 32px 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Footer: stack all columns */
  .footer-grid {
    flex-direction: column;
    gap: 16px;
  }

  .footer-grid > div {
    flex: 1 1 100%;
    text-align: left;
  }
}

/* --- Fix text colors inside Locate Us section --- */

.visit-section {
  color: #1f2937; /* neutral text */
}

.visit-info p,
.visit-info .visit-label,
.visit-info .visit-row p {
  color: #374151 !important; /* dark readable gray */
}

.visit-label {
  color: #1f2937 !important; /* bold label text */
  font-weight: 600;
}

.visit-subtitle {
  color: #4b5563 !important;
}

.visit-note {
  color: #6b7280 !important; /* muted note text */
}

/* === Make Visit Us section text bold + prominent === */

.visit-info h2 {
  font-weight: 800;
  color: #111827;
}

.visit-label {
  font-size: 0.85rem;
  color: #111827 !important;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.visit-row p {
  font-size: 0.95rem;
  font-weight: 600; /* bold */
  color: #111827 !important; /* strong dark text */
  margin: 0 0 6px;
  line-height: 1.45;
}

.visit-subtitle {
  font-size: 0.97rem;
  color: #1f2937 !important;
  font-weight: 500;
  margin-bottom: 14px;
}

.visit-note {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151 !important;
}

/* === Modern 22+ Years badge (Enquiry hero) === */

.enquiry-hero .hero-copy {
  position: relative;
}

.experience-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.22);
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d4ed8;
  margin-bottom: 6px;
  animation: chipFadeIn 0.6s ease-out both;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: dotPulse 1.8s ease-out infinite;
}

/* Little pulse on the green dot */
@keyframes dotPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1.4);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes chipFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slight size tweak on mobile */
@media (max-width: 640px) {
  .experience-chip {
    font-size: 0.72rem;
    padding: 3px 10px;
  }
}

/* === MINI ENQUIRY CARD (HOME PAGE) === */
.mini-enquiry-card {
  max-width: 360px;
  padding: 14px 14px 16px;
}

.mini-enquiry-card h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.mini-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.mini-enquiry-card textarea {
  resize: none;
}

.mini-footer {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
}

/* === VACANCY BOX === */
.vacancy-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  max-width: 320px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}

.vacancy-box h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

/* Slider container */
.vacancy-slider {
  height: 90px;
  overflow: hidden;
  position: relative;
}

/* Items */
.vacancy-item {
  font-size: 0.85rem;
  padding: 6px 0;
  color: #111827;
}

/* Apply text */
.vacancy-apply {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.vacancy-apply a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
