/* ========================================================
   ABC INTERNATIONAL SCHOOL - OFFICIAL STYLESHEET
   File Name: style.css
   Author: Junior Web Developer (Web_Technology_Text)
   Description: University & Higher Education Faculty Stylesheet
   Theme: Kiddino-inspired University Design with Adult Scholars
   ======================================================== */

/* CSS Variables */
:root {
  --primary-purple: #381254;     /* Deep Royal Plum */
  --primary-dark: #27093d;       /* Dark Violet/Black */
  --accent-crimson: #e11d48;     /* Vibrant Crimson / Cerise */
  --accent-yellow: #fbbf24;      /* Sunshine Gold */
  --bg-light: #ffffff;           /* Clean White */
  --bg-alt: #f8fafc;             /* Soft Light Grey */
  --text-main: #1e293b;          /* Charcoal Body */
  --text-muted: #64748b;         /* Slate Description */
  --text-white: #ffffff;         /* Pure White */
  --border-light: #e2e8f0;       /* Hairline Border */
  --shadow-card: 0 10px 25px -5px rgba(56, 18, 84, 0.1);
  --shadow-lg: 0 20px 30px -10px rgba(56, 18, 84, 0.2);
}

/* Reset & Global Box Sizing */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

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

/* Typography Standards */
h1, h2, h3, h4 {
  color: var(--primary-purple);
  font-weight: 800;
  line-height: 1.2;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 70px 0;
}

.section-kicker {
  text-align: center;
  color: var(--accent-crimson);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

h2.section-heading {
  font-size: 2.4rem;
  text-align: center;
  color: var(--primary-purple);
  margin-bottom: 12px;
}

.section-subheading {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* 3-dot decoration from Screenshot 3 */
.deco-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.deco-dot-yellow { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-yellow); }
.deco-dot-crimson { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-crimson); }
.deco-dot-purple { width: 10px; height: 10px; border-radius: 50%; background: var(--primary-purple); }

/* ========================================================
   C3 & C6: HEADER & NAVIGATION MENU (WITH HOVER EFFECTS)
   ======================================================== */
header {
  background-color: #ffffff;
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

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

.school-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.school-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-purple);
  letter-spacing: 0.5px;
}

.school-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-crimson);
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 12px;
  transition: all 0.3s ease;
  position: relative;
}

/* C6: CSS Hover Effects */
nav ul li a:hover {
  color: var(--accent-crimson);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: var(--accent-crimson);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease-in-out;
}

nav ul li a:hover::after {
  transform: scaleX(1);
}

.btn-nav-apply {
  background-color: var(--accent-crimson);
  color: #ffffff !important;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}

.btn-nav-apply:hover {
  background-color: #be123c;
  transform: scale(1.05);
}

/* ========================================================
   B1 & D1-D2: WELCOME HERO (SCREENSHOT 1)
   ======================================================== */
#home {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  overflow: hidden;
  background-color: #240838;
  background: url('images/campus_compound.jpg') no-repeat center center / cover;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-campus-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(25, 6, 40, 0.65) 0%, rgba(25, 6, 40, 0.25) 55%, rgba(25, 6, 40, 0.45) 100%);
}

.hero-card-wrapper {
  position: relative;
  max-width: 580px;
  z-index: 2;
}

/* Golden yellow ring accent wrapping behind purple card */
.hero-yellow-ring {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 22px solid var(--accent-yellow);
  z-index: 1;
}

.hero-purple-card {
  position: relative;
  z-index: 2;
  background-color: var(--primary-purple);
  color: var(--text-white);
  padding: 45px;
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
}

.hero-purple-card h1 {
  font-size: 2.2rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.hero-purple-card h2 {
  font-size: 1.25rem;
  color: var(--accent-yellow);
  font-weight: 800;
  margin-bottom: 15px;
}

.hero-purple-card p {
  font-size: 1rem;
  color: #f1f5f9;
  line-height: 1.6;
  margin-bottom: 25px;
}

.btn-crimson {
  display: inline-block;
  background-color: var(--accent-crimson);
  color: #ffffff;
  font-weight: 800;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
}

.btn-crimson:hover {
  background-color: #be123c;
  transform: translateY(-2px);
}

/* ========================================================
   B2: ABOUT US (SCREENSHOT 2: 4 QUADRANT PHOTOS & STATS)
   ======================================================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.quad-gallery {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.quad-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  z-index: 10;
}

.quad-cross::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  width: 50px;
  height: 14px;
  background-color: var(--accent-yellow);
  border-radius: 8px;
}

.quad-cross::after {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  width: 14px;
  height: 50px;
  background-color: var(--accent-yellow);
  border-radius: 8px;
}

.quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.quad-img-1 { border-radius: 50px 15px 15px 15px; width: 100%; height: 200px; object-fit: cover; }
.quad-img-2 { border-radius: 15px 50px 15px 15px; width: 100%; height: 200px; object-fit: cover; }
.quad-img-3 { border-radius: 15px 15px 15px 50px; width: 100%; height: 200px; object-fit: cover; }
.quad-img-4 { border-radius: 15px 15px 50px 15px; width: 100%; height: 200px; object-fit: cover; }

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.mv-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.mv-box h4 {
  font-size: 1rem;
  color: var(--primary-purple);
  margin-bottom: 4px;
}

.mv-box p {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0;
}

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 25px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-crimson);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ========================================================
   B3: ACADEMIC PROGRAMMES (SCREENSHOT 3: 4 ARCHED CARDS)
   ======================================================== */
.programmes-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.programme-arch-card {
  border-radius: 90px 90px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  transition: transform 0.3s ease;
}

.programme-arch-card:hover {
  transform: translateY(-8px);
}

.arch-image-wrap {
  position: relative;
  height: 240px;
  background-color: #f1f5f9;
}

.arch-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch-floating-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.arch-body {
  padding: 24px 18px;
  color: #ffffff;
  text-align: center;
  flex-grow: 1;
}

.bg-arch-green { background-color: #16a34a; }
.bg-arch-cyan { background-color: #0284c7; }
.bg-arch-purple { background-color: #381254; }
.bg-arch-orange { background-color: #ea580c; }

.arch-body h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.arch-body p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

/* ========================================================
   SESSION TIMES (SCREENSHOT 5)
   ======================================================== */
.session-purple-pill {
  background-color: var(--primary-purple);
  border-radius: 40px;
  padding: 50px 30px;
  text-align: center;
  color: #ffffff;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.session-alarm-badge {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-crimson);
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.session-bars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 25px auto 0;
}

.session-white-bar {
  background-color: #ffffff;
  color: var(--primary-purple);
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.9rem;
}

.session-white-bar span:last-child {
  color: #64748b;
  font-weight: 600;
}

/* ========================================================
   B4: CONTACT US
   ======================================================== */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card-box {
  background-color: #faf5ff;
  border: 1px solid #f3e8ff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon-yellow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-yellow);
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card-box h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-card-box p, .contact-card-box a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.contact-card-box a:hover {
  color: var(--accent-crimson);
}

.contact-form-box {
  background-color: #f8fafc;
  border-radius: 24px;
  padding: 30px;
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  outline: none;
  font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary-purple);
}

.btn-form-submit {
  width: 100%;
  background-color: var(--accent-crimson);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-form-submit:hover {
  background-color: #be123c;
}

/* ========================================================
   E2: FOOTER (SCREENSHOT 8)
   ======================================================== */
footer {
  background-color: var(--primary-purple);
  color: #e2e8f0;
  padding: 60px 0 30px;
  border-top: 6px solid var(--accent-crimson);
}

.footer-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 35px;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-top-banner h3 {
  color: #ffffff;
  font-size: 1.5rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-cols h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-cols p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.footer-cols ul {
  list-style: none;
}

.footer-cols ul li {
  padding: 5px 0;
  font-size: 0.85rem;
}

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

.footer-cols ul li a:hover {
  color: var(--accent-yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 25px;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 10px;
}

/* ========================================================
   COMPREHENSIVE RESPONSIVE STYLES (ALL SCREEN SIZES)
   ======================================================== */

@media (max-width: 992px) {
  .header-container {
    padding: 12px 20px;
  }
  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-split {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-top-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Header & Navigation on Mobile */
  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
  }
  .school-brand {
    justify-content: center;
    text-align: center;
  }
  .brand-text {
    align-items: center;
  }
  .school-title {
    font-size: 1.15rem;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding: 0;
  }
  nav ul li a {
    font-size: 0.85rem;
    padding: 6px 8px;
  }
  .btn-nav-apply {
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  /* Hero Section on Mobile */
  #home {
    min-height: auto !important;
    padding: 40px 15px !important;
    background-position: center center !important;
  }
  .hero-card-wrapper {
    max-width: 100% !important;
    margin: 0 auto;
  }
  .hero-yellow-ring {
    display: none !important; /* Prevents horizontal overflow on small phones */
  }
  .hero-purple-card {
    padding: 28px 20px !important;
    border-radius: 24px !important;
    text-align: center;
  }
  .hero-purple-card h1 {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }
  .hero-purple-card h2 {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    margin-bottom: 14px !important;
  }
  .hero-purple-card p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }
  .hero-purple-card .btn-crimson {
    display: inline-block;
    padding: 12px 28px !important;
    font-size: 0.9rem !important;
  }

  /* About Quadrant Gallery on Mobile */
  .quad-gallery {
    max-width: 100% !important;
    margin: 0 auto;
  }
  .quad-cross {
    width: 36px;
    height: 36px;
  }
  .quad-grid {
    gap: 10px;
  }
  .quad-grid img {
    height: 140px;
    border-radius: 14px;
  }
  .about-content {
    text-align: center;
  }
  .about-content h2 {
    font-size: 1.6rem !important;
  }
  .mv-box {
    text-align: left;
    padding: 14px 16px;
  }
  .stats-row {
    justify-content: center;
  }

  /* Academic Programmes on Mobile */
  .section-heading {
    font-size: 1.8rem !important;
  }
  .section-subheading {
    font-size: 0.9rem !important;
    padding: 0 10px;
    margin-bottom: 25px !important;
  }
  .programme-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .prog-card {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  /* Contact Section on Mobile */
  .contact-form {
    padding: 22px 18px !important;
    border-radius: 16px !important;
  }
  .contact-card-box {
    padding: 18px 16px;
    text-align: center;
  }

  /* Footer on Mobile */
  .footer-top-banner h3 {
    font-size: 1.25rem !important;
  }
  .footer-cols {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 25px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-purple-card h1 {
    font-size: 1.35rem !important;
  }
  .hero-purple-card h2 {
    font-size: 0.95rem !important;
  }
  .quad-grid img {
    height: 110px;
  }
  nav ul {
    gap: 8px 12px;
  }
}
