/* =========================================================
   VIDYODAYA SCHOOLS - NEW MAIN WEBSITE
   Main Root Website
   Bootstrap-free / Responsive
   ========================================================= */

:root {
  --green: #08752b;
  --green-dark: #045a21;
  --green-light: #eaf6ed;
  --gold: #d8ad32;
  --gold-light: #f5df9a;
  --cream: #fffdf5;
  --white: #ffffff;
  --text: #252525;
  --muted: #666666;
  --border: #e6e6e6;

  --shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.18);

  --radius: 18px;
  --header-height: 78px;
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

/* =========================================================
   COMMON CONTAINER
========================================================= */

.section-container,
.header-container,
.footer-container {
  width: min(1180px, 92%);
  margin: auto;
}

/* 
/* =========================================================
   HEADER
========================================================= */

/* =========================================================
   HERO - FOUR INSTITUTIONS
========================================================= */

/* .hero-schools {
  min-height: calc(100vh - var(--header-height));
  background: linear-gradient(135deg, #f7faf6 0%, #ffffff 50%, #f8f4e8 100%);

  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 45px 4% 55px;
  position: relative;
}
 */
/*  .hero-schools {
  min-height: calc(100vh - var(--header-height));
  background: linear-gradient(135deg, #f7faf6 0%, #ffffff 50%, #f8f4e8 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 4% 55px;
  position: relative;
}
 */
.hero-schools {
  min-height: calc(100vh - var(--header-height));
  background: linear-gradient(135deg, #f7faf6 0%, #ffffff 50%, #f8f4e8 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px 4% 55px;
  position: relative;
}

/*  .hero-schools {
  min-height: calc(100vh - var(--header-height));
  background: linear-gradient(135deg, #f7faf6 0%, #ffffff 50%, #f8f4e8 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 45px 4% 55px;
  position: relative;
}
 */

/* Four cards */

.school-cards {
  width: min(100%, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.school-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;

  position: relative;
}

.school-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

/* Image - approximately 75% */

.school-image {
  height: 390px;
  overflow: hidden;
}

.school-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.7s ease;
}

.school-card:hover .school-image img {
  transform: scale(1.07);
}

/* Title - approximately 25% */

.school-title {
  min-height: 125px;
  padding: 22px 18px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-top: 4px solid var(--gold);
  background: var(--white);
}

.school-title span {
  color: var(--green);
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 600;
}

.school-title strong {
  color: var(--green-dark);
  font-size: 25px;
  letter-spacing: 1px;
}

/* =========================================================
   SCROLL DOWN
========================================================= */

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 30px;

  width: 42px;
  height: 42px;

  transform: translateX(-50%);

  border: 2px solid var(--gold);
  border-radius: 50%;

  z-index: 10;

  animation: scrollBounce 1.8s infinite ease-in-out;

  text-decoration: none;
}

/* Down arrow */
.scroll-down::after {
  content: "";

  position: absolute;

  width: 9px;
  height: 9px;

  left: 14px;
  top: 11px;

  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);

  transform: rotate(45deg);
}

/* SCROLL DOWN TEXT */
.scroll-down span {
  position: absolute;

  left: 50%;
  bottom: 52px;

  transform: translateX(-50%);

  display: block;
  width: max-content;

  color: var(--green-dark) !important;

  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3;

  letter-spacing: 1.5px;

  white-space: nowrap;

  visibility: visible;
  opacity: 1;

  z-index: 20;
}

/* Animation */
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Hide scroll down on mobile */
@media (max-width: 768px) {
  .scroll-down {
    display: none;
  }
}

@media (max-width: 480px) {
  .scroll-down {
    display: none;
  }
}

/* =========================================================
   SCROLL DOWN — SMALL DESKTOP / LAPTOP
========================================================= */

@media (min-width: 769px) and (max-height: 800px) {
  .scroll-down {
    bottom: 10px;
    width: 36px;
    height: 36px;
  }

  .scroll-down::after {
    width: 8px;
    height: 8px;
    left: 12px;
    top: 9px;
  }

  .scroll-down span {
    bottom: 42px;
    font-size: 11px !important;
    letter-spacing: 1px;
  }
}

/*---end--*/

.school-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--green-dark);

  margin-top: 5px;
  padding: 3px 17px;

  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 5px;

  color: #fff;
  font-size: 12px;
  font-weight: 700;

  transition: 0.3s ease;
}

.school-btn span {
  color: var(--gold-light);
  font-size: 16px;
}

.school-card:hover .school-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-dark);
}

.school-card:hover .school-btn span {
  color: var(--green-dark);
}

/* =========================================================
   COMMON SECTION
========================================================= */

.about-section,
.founders-section,
.discover-section,
.philosophy-section,
.timeline-section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;

  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;

  margin-bottom: 12px;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 55px;
}

.section-heading h2,
.about-content h2,
.philosophy-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  color: var(--green-dark);
  margin-bottom: 18px;
}

.section-heading h2 span,
.about-content h2 span,
.philosophy-content h2 span {
  color: var(--gold);
}

.section-heading p {
  color: var(--muted);
  font-size: 16px;
}

/* =========================================================
   ABOUT
========================================================= */

.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image::after {
  content: "";
  position: absolute;
  width: 85%;
  height: 85%;
  right: -18px;
  bottom: -18px;

  border: 3px solid var(--gold);
  border-radius: var(--radius);

  z-index: 0;
}

.about-image img {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 430px;
  object-fit: cover;

  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-content p {
  color: var(--muted);
  margin-bottom: 15px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-primary,
.btn-outline,
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 12px 24px;

  border-radius: 50px;

  font-size: 14px;
  font-weight: 700;

  transition: 0.3s ease;
}

.btn-primary {
  margin-top: 18px;
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
}

.btn-outline {
  border: 1px solid var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--green-dark);
}

.btn-light:hover {
  background: var(--gold);
  color: var(--green-dark);
  transform: translateY(-3px);
}

.center-button {
  text-align: center;
  margin-top: 45px;
}

/* =========================================================
   ABOUT SECTION - RESPONSIVE
   Desktop  : Image + Content side by side
   Tablet   : Single column
   Mobile   : Single column
========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* -----------------------------------------
   TABLET + MOBILE
----------------------------------------- */

@media (max-width: 900px) {
  .about-section .section-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
  }

  .about-image {
    width: 100%;
  }

  .about-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
  }

  .about-content {
    width: 100%;
    text-align: center;
  }

  .about-content .section-label {
    display: block;
  }

  .about-content h2 {
    text-align: center;
  }

  .about-content p {
    text-align: center;
  }

  .about-content .btn-primary {
    margin-left: auto;
    margin-right: auto;
  }
}

/* -----------------------------------------
   SMALL MOBILE
----------------------------------------- */

@media (max-width: 480px) {
  .about-section .section-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .about-grid {
    gap: 30px;
  }

  .about-image img {
    height: 280px;
  }

  .about-content h2 {
    font-size: 30px;
  }

  .about-content p {
    font-size: 14px;
  }
}

/* =========================================================
   FOUNDERS
========================================================= */

.founders-section {
  background: var(--cream);
}

.founder-grid {
  width: min(800px, 100%);
  margin: auto;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.founder-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;

  box-shadow: var(--shadow);

  transition: 0.4s ease;
}

.founder-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.founder-image {
  height: 330px;
  overflow: hidden;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-info {
  text-align: center;
  padding: 20px;
  border-top: 3px solid var(--gold);
}

.founder-info h3 {
  color: var(--green-dark);
  font-size: 20px;
}

.founder-info p {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   DISCOVER VIDYODAYA
========================================================= */

.discover-section {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.feature-card {
  background: var(--white);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);

  transition: 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.feature-image {
  height: 210px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: 0.6s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.08);
}

.feature-content {
  padding: 22px;
}

.feature-content h3 {
  color: var(--green-dark);
  font-size: 21px;
  margin-bottom: 7px;
}

.feature-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.feature-content span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

/* =========================================================
   PHILOSOPHY
========================================================= */

.philosophy-section {
  background: linear-gradient(120deg, var(--green-dark), var(--green));

  color: var(--white);
}

.philosophy-grid {
  display: flex;
  justify-content: center;
}

.philosophy-content {
  max-width: 900px;
  text-align: center;
}

.philosophy-content .section-label {
  color: var(--gold-light);
}

.philosophy-content h2 {
  color: var(--white);
}

.philosophy-content h2 span {
  color: var(--gold-light);
}

.philosophy-content p {
  max-width: 720px;
  margin: auto;
  color: rgba(255, 255, 255, 0.88);
}

.philosophy-points {
  margin-top: 45px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.philosophy-points div {
  padding: 25px 15px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}

.philosophy-points strong {
  display: block;
  color: var(--gold-light);
  font-size: 19px;
  margin-bottom: 5px;
}

.philosophy-points span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   TIMELINE
========================================================= */

.timeline-section {
  background: var(--cream);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;

  left: 7%;
  right: 7%;
  top: 42px;

  height: 2px;
  background: var(--gold);
}

.timeline-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-year {
  width: 84px;
  height: 84px;

  margin: 0 auto 25px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--green);
  color: var(--white);

  border: 5px solid var(--cream);

  box-shadow: 0 0 0 2px var(--gold);

  font-size: 12px;
  font-weight: 800;
}

.timeline-item h3 {
  color: var(--green-dark);
  margin-bottom: 8px;
  font-size: 18px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 13px;
  padding: 0 10px;
}

/* =========================================================
   FINAL CTA
========================================================= */

.cta-section {
  padding: 95px 0;

  text-align: center;

  background:
    linear-gradient(rgba(4, 90, 33, 0.93), rgba(4, 90, 33, 0.93)),
    url("../images/about.jpg") center / cover no-repeat;

  color: var(--white);
}

.cta-section .section-label {
  color: var(--gold-light);
}

.cta-section h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.2;
  margin-bottom: 18px;
}

.cta-section h2 span {
  color: var(--gold-light);
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 25px;
  color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  background: #063b18;
  color: var(--white);
  width: 100%;
}

/* Main footer layout */
.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 65px 0;

  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 45px;

  align-items: start;
}

/* About */
.footer-about img {
  width: 170px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.footer-about p,
.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px;
}

/* Headings */
.footer-links h3,
.footer-contact h3 {
  color: var(--gold-light);
  margin: 0 0 18px;
  font-size: 17px;
}

/* Links */
.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

/* Bottom */
.footer-bottom {
  padding: 18px 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin: 0;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  .footer-container {
    width: 90%;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 45px 0;
  }

  .footer-about img {
    width: 150px;
  }
}
/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1000px) {
  .main-nav {
    gap: 15px;
  }

  .main-nav > a,
  .nav-dropdown > a {
    font-size: 13px;
  }

  .school-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 850px;
  }

  .school-image {
    height: 300px;
  }

  .hero-schools {
    padding-top: 35px;
  }

  .about-grid {
    gap: 40px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

/* =========================================================
   MOBILE - SINGLE CARD PER ROW
========================================================= */

@media (max-width: 760px) {
  /* -----------------------------------------
       FOUR SCHOOL CARDS
    ----------------------------------------- */

  .school-cards {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    gap: 18px;
  }

  .school-image {
    height: 300px;
  }

  .school-title {
    min-height: 90px;
    padding: 16px 20px;
  }

  .school-title span {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .school-title strong {
    font-size: 21px;
  }

  /* -----------------------------------------
       FOUNDERS - ONE CARD PER ROW
    ----------------------------------------- */

  .founder-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    gap: 25px;
  }

  .founder-image {
    height: 340px;
  }

  /* -----------------------------------------
       DISCOVER VIDYODAYA
       ONE CARD PER ROW
    ----------------------------------------- */

  .feature-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    gap: 22px;
  }

  .feature-image {
    height: 220px;
  }

  .feature-content {
    padding: 20px;
  }

  .feature-content h3 {
    font-size: 20px;
  }

  .feature-content p {
    font-size: 14px;
  }

  /* -----------------------------------------
       PHILOSOPHY
    ----------------------------------------- */

  .philosophy-points {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* -----------------------------------------
       TIMELINE
    ----------------------------------------- */

  .timeline {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .timeline::before {
    display: none;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
  .school-cards {
    grid-template-columns: 1fr;
    max-width: 390px;
  }

  .school-image {
    height: 300px;
  }

  .school-title {
    min-height: 85px;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: auto;
  }

  .founder-image {
    height: 330px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-image {
    height: 210px;
  }

  .section-heading h2,
  .about-content h2,
  .philosophy-content h2 {
    font-size: 32px;
  }
}

/* =========================================================
   CENTER CARD TITLES
========================================================= */

/* School cards */

.school-title {
  text-align: center;
  align-items: center;
}

/* Founder cards */

.founder-info {
  text-align: center;
}

/* Discover Vidyodaya cards */

.feature-content {
  text-align: center;
}

.feature-content h3 {
  text-align: center;
}

.feature-content p {
  text-align: center;
}

.feature-content span {
  display: inline-block;
  text-align: center;
}

/* Mobile */

@media (max-width: 760px) {
  .school-title {
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .founder-info {
    text-align: center;
  }

  .feature-content {
    text-align: center;
  }
}
