/* ==========================================================================
   AJIPS Learning Centre — shared stylesheet
   ========================================================================== */

:root {
  --purple-dark: #0a1958;
  --purple: #0a2f8f;
  --purple-mid: #0568c9;
  --magenta: #0074e4;
  --pink: #0a97ff;
  --pink-light: #e6f2fd;
  --ink: #1a2438;
  --gray: #55606e;
  --light-gray: #f3f7fc;
  --border: #d7e6f5;
  --white: #ffffff;
  --gradient: linear-gradient(120deg, var(--purple-dark) 0%, var(--purple-mid) 45%, var(--magenta) 75%, var(--pink) 100%);
  --shadow: 0 10px 30px rgba(10, 25, 90, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  margin: 0 0 .5em;
  line-height: 1.25;
  color: var(--purple-dark);
}

p { margin: 0 0 1em; color: var(--gray); }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

section { padding: 70px 0; }

.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--magenta);
  background: var(--pink-light);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head p { margin-top: 10px; }

/* -------------------- Top bar -------------------- */
.topbar {
  background: var(--purple-dark);
  color: #dbe8fb;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #dbe8fb; }
.topbar .tb-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-links span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-tagline { opacity: .85; font-style: italic; }

/* -------------------- Header / Nav -------------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 18px rgba(10, 25, 90, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  position: relative;
  gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand-text { line-height: 1.1; }
.brand-text .name { font-weight: 700; color: var(--purple-dark); font-size: 1.15rem; letter-spacing: .02em; }
.brand-text .sub { font-size: .72rem; color: var(--magenta); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: all .2s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
}

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--purple-dark);
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  order: 3;
}

/* -------------------- Hero -------------------- */
.hero {
  background: var(--gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding: 90px 0 100px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { color: #fff; font-size: 2.7rem; margin-bottom: .4em; }
.hero h1 span { color: #a9d4ff; }
.hero p.lead { color: #d3e6fb; font-size: 1.08rem; max-width: 520px; }
.hero .hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.hero .hero-badges span {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: .82rem;
  font-weight: 600;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: .92rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-light { background: #fff; color: var(--purple-dark); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.18); }

.hero-panel {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(3px);
}
.hero-panel h3 { color: #fff; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  color: #d3e6fb;
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-panel li:last-child { border-bottom: none; }
.hero-panel li::before { content: "✓"; color: #a9d4ff; font-weight: 900; }

/* decorative blobs */
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
  border-radius: 50%;
}

/* -------------------- Page hero (inner pages) -------------------- */
.page-hero {
  background: var(--gradient);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero .crumb { color: #bcdcfb; font-size: .9rem; }
.page-hero .crumb a { color: #fff; font-weight: 700; }

/* -------------------- Cards / grids -------------------- */
.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(10,25,90,.18); }

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { font-size: .93rem; margin-bottom: 0; }

/* -------------------- Why choose us / stats -------------------- */
.stats-strip {
  background: var(--light-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-strip .grid-4 { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--magenta); }
.stat-label { font-size: .85rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* -------------------- Course list rows -------------------- */
.course-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.course-row .icon-badge { margin: 0; }
.course-row h3 { margin-bottom: 6px; }
.course-row .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.course-row .tags span {
  background: var(--pink-light);
  color: var(--magenta);
  font-size: .74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}
.course-row .cta-mini {
  white-space: nowrap;
  font-weight: 700;
  color: var(--magenta);
  border: 2px solid var(--magenta);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: .85rem;
}
.course-row .cta-mini:hover { background: var(--magenta); color: #fff; }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 56px 30px;
  margin: 0 auto;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d3e6fb; }

/* -------------------- Contact -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.contact-card .icon-badge { flex-shrink: 0; margin: 0; width: 48px; height: 48px; border-radius: 12px; font-size: 1.2rem; }
.contact-card h4 { margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: .92rem; }

form.contact-form {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
form.contact-form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--purple-dark); }
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  font-family: inherit;
  font-size: .93rem;
  background: #fff;
}
form.contact-form button {
  border: none;
  cursor: pointer;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 30px;
  font-size: .93rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* -------------------- Footer -------------------- */
footer.site-footer {
  background: var(--purple-dark);
  color: #c3d4ec;
  padding-top: 60px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
footer .brand { margin-bottom: 14px; }
footer .brand-text .name,
footer .brand-text .sub { color: #fff; }
footer p.about-text { font-size: .88rem; color: #aec2e0; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 10px; font-size: .9rem; }
footer a:hover { color: #fff; }
footer .foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.bottom-bar {
  text-align: center;
  padding: 20px 0;
  font-size: .82rem;
  color: #8ca0c0;
}

/* -------------------- Image sections / gallery -------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split img, .split svg { width: 100%; height: auto; }
.split.reverse .img-col { order: 2; }

.banner-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 46px;
  box-shadow: var(--shadow);
}
.banner-img img { width: 100%; display: block; }

.gallery-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.gallery-card:hover { transform: translateY(-6px); }
.gallery-card img { width: 100%; display: block; }
.gallery-card .gallery-caption { padding: 16px 18px; }
.gallery-card .gallery-caption h4 { margin: 0 0 4px; font-size: 1rem; }
.gallery-card .gallery-caption p { margin: 0; font-size: .85rem; }

/* -------------------- WhatsApp floating button -------------------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
  animation: wa-pulse 2.4s infinite;
}
.whatsapp-float img { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); }

@keyframes wa-pulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, .5), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, .5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, .5), 0 0 0 0 rgba(37,211,102,0); }
}

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .img-col { order: 0; }
}

/* -------------------- Utilities -------------------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  nav.main-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 14px 26px rgba(10,25,90,.1);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; }
  nav.main-nav li { width: 100%; }
  nav.main-nav a {
    display: block;
    padding: 15px 4px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  nav.main-nav a:hover, nav.main-nav a.active { border-bottom-color: var(--border); background: var(--pink-light); }
  .nav-wrap { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .hero .container { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 1fr; text-align: left; }
  .topbar .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  section { padding: 44px 0; }
  .hero .container { padding: 40px 0 50px; gap: 26px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p.lead { font-size: .96rem; }
  .hero-panel { padding: 20px; }
  .page-hero { padding: 40px 0; }
  .cta-band { padding: 36px 18px; }
  .card { padding: 22px 18px; }
  .course-row { padding: 18px; gap: 14px; }
  .contact-card { padding: 16px; }
  form.contact-form { padding: 20px; }
  .brand img { height: 44px; }
  .brand-text .name { font-size: 1rem; }
  .nav-cta { padding: 9px 16px; font-size: .82rem; }
  .topbar .tb-links { gap: 12px; font-size: .78rem; }
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
