/* ==========================================
   SANSKAR ACADEMY - ABOUT US STYLESHEET
   ========================================== */

@import url("css/style.css");

:root {
  --primary-color: #0B2C5F;
  --primary-dark: #071D40;
  --accent-color: #F4C430;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --bg-light: #d4ebfe;
  --white: #ffffff;
  --max-width: 1280px;
  --radius-md: 16px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* Import Responsive Top Bar & Navbar */
@import url("css/navbar.css");

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- COMMON SECTION TITLE ---------- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title span {
  color: #d97706;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.25;
}

.section-title p {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 16px;
}

/* ---------- ABOUT HERO SECTION ---------- */
.about-hero {
  position: relative;
  width: 100%;
  min-height: 50vh;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
}

.about-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 24, 54, 0.9) 0%, rgba(11, 44, 95, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
}

.hero-content span {
  display: inline-block;
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin: 10px 0 16px;
  line-height: 1.15;
  font-weight: 800;
}

.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.2px);
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- ABOUT SCHOOL SECTION ---------- */
.about-school {
  max-width: var(--max-width);
  margin: 80px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  position: relative;
  width: 100%;
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.02);
}

.about-content span {
  color: #d97706;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.about-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 800;
  line-height: 1.2;
}

.about-content h4 {
  color: #b45309;
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 600;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 15px;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.about-points div {
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.about-points div:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.about-points i {
  color: #d97706;
  font-size: 18px;
}

.about-points div:hover i {
  color: var(--accent-color);
}

/* ---------- WHO WE ARE SECTION ---------- */
.who-we-are {
  padding: 80px 24px;
  background: var(--white);
}

.who-we-are .container {
  max-width: 960px;
  text-align: center;
}

.who-we-are p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.who-we-are .highlight-quote {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 700;
  margin-top: 28px;
  padding: 16px 24px;
  background: #f0f9ff;
  border-radius: var(--radius-md);
  border-left: 4px solid #d97706;
  display: inline-block;
}

/* ---------- DIRECTOR & PRINCIPAL MESSAGES ---------- */
.director,
.principal {
  padding: 80px 24px;
}

.director-container,
.principal-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.director-image,
.principal-image {
  flex: 0 0 320px;
  max-width: 320px;
  width: 100%;
}

.director-image img,
.principal-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.director-image img:hover,
.principal-image img:hover {
  transform: scale(1.02);
}

.director-content,
.principal-content {
  flex: 1;
}

.director-content span,
.principal-content span {
  color: #d97706;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 6px;
}

.director-content h2,
.principal-content h2 {
  color: var(--primary-color);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 4px;
  font-weight: 800;
}

.director-content h4,
.principal-content h4 {
  color: #b45309;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 600;
}

.director-content p,
.principal-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 16px;
}

.message-quote {
  font-style: italic;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 16px;
  padding-left: 16px;
  border-left: 3px solid #d97706;
}

/* ---------- CALL TO ACTION ---------- */
.about-cta {
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(6, 24, 54, 0.95) 0%, rgba(11, 44, 95, 0.9) 100%),
              url("school1.png") center/cover no-repeat;
  text-align: center;
  color: var(--white);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  color: #e2e8f0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 36px;
}

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

.cta-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.cta-buttons a:first-child {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.cta-buttons a:first-child:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.cta-buttons a:last-child {
  border: 2px solid var(--white);
  color: var(--white);
}

.cta-buttons a:last-child:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */

/* Laptop / Tablet (<= 991px) */
@media (max-width: 991px) {
  .about-school {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .about-image img {
    height: 380px;
  }

  .about-points {
    justify-content: center;
  }

  .director-container,
  .principal-container {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
    gap: 28px;
  }

  .principal-container {
    flex-direction: column; /* Consistent top-down order on tablet/mobile */
  }

  .director-image,
  .principal-image {
    order: -1; /* Ensures image is always displayed above card content in mobile/tablet view */
    flex: none;
    max-width: 280px;
    margin: 0 auto;
  }

  .director-image img,
  .principal-image img {
    height: 340px;
  }

  .message-quote {
    border-left: none;
    padding-left: 0;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .about-hero {
    min-height: 40vh;
    padding: 60px 16px;
  }

  .about-school,
  .who-we-are,
  .director,
  .principal,
  .about-cta {
    padding: 60px 16px;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons a {
    width: 100%;
    justify-content: center;
  }
}