/* =======================
   Global Reset & Variables
========================== */
:root {
  --blue: #004aad;
  --green: #1ca45c;
  --gold: #f5b700;
  --white: #ffffff;
  --navy: #002b5c;
  --text-dark: #222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--white);
  color: var(--text-dark);
}

/* =======================
   Header & Navigation
========================== */
header {
  background-color: var(--blue);
  color: var(--white);
  padding: 15px 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Navigation Bar */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: var(--navy);
  padding: 10px;
  margin-top: 10px;
  border-top: 3px solid var(--gold);
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: var(--green);
  color: var(--white);
}

nav ul li a.active {
  background-color: var(--gold);
  color: var(--navy);
  font-weight: bold;
}

/* =======================
   Hero Section
========================== */
.hero {
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.4); /* dark overlay for readability */
  z-index:0;
}

.hero-content {
  position: relative;
  z-index:1;
}

.hero-content h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--white);
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--white);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Optional: different hero backgrounds per page */
.home-hero { background-image: url("background-logo.jpg"); }
.about-hero { background-image: url("background-logo.jpg"); }
.academics-hero { background-image: url("background-logo.jpg"); }
.admissions-hero { background-image: url("background-logo.jpg"); }
.extracurricular-hero { background-image: url("background-logo.jpg"); }
.parents-hero { background-image: url("background-logo.jpg"); }
.contact-hero { background-image: url("background-logo.jpg"); }

/* =======================
   Main Content
========================== */
main {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

section {
  margin-bottom: 60px;
}

h2 {
  color: var(--green);
  border-left: 5px solid var(--gold);
  padding-left: 10px;
  margin-bottom: 15px;
}

p {
  font-size: 1rem;
  color: var(--text-dark);
}

/* Forms & Buttons */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 2px solid var(--blue);
  border-radius: 5px;
  font-size: 1rem;
}

input[type="submit"] {
  background-color: var(--gold);
  color: var(--navy);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="submit"]:hover {
  background-color: var(--green);
  color: var(--white);
}

/* =======================
   Footer
========================== */
footer {
  text-align: center;
  padding: 20px 10px;
  background-color: var(--navy);
  margin-top: 50px;
  border-top: 3px solid var(--gold);
  position: relative;
  color: #ffffff; /* force footer text to white */
}

footer p {
  color: #ffffff; /* ensures Despatch Preparatory School is white */
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.thando-logo {
  height: 60px;
  width: auto;
  margin-top: 5px;
  transition: transform 0.3s ease;
}

.thando-logo:hover {
  transform: scale(1.05);
}

.footer-logo p {
  font-size: 0.9rem;
  color: var(--gold); /* logo text stays gold */
  margin-top: 5px;
}


/* =======================
   Responsive Design
========================== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .logo {
    height: 60px;
  }
}
/* =======================
   Curriculum Section
========================== */
#curriculum {
  background-color: #f5f8fa; /* light background for contrast */
  padding: 50px 20px;
  max-width: 1000px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#curriculum h2 {
  color: #004aad; /* blue from your theme */
  margin-bottom: 25px;
  text-align: center;
  font-size: 2rem;
  
  display: inline-block;
  padding-bottom: 5px;
}

#curriculum p {
  font-size: 1rem;
  color: #222;
  line-height: 1.8;
  margin-bottom: 20px;
}

#curriculum ul {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 20px;
}

#curriculum ul li {
  margin-bottom: 10px;
  font-weight: 500;
}

#curriculum ul li strong {
  color: #1ca45c; /* green headings for each key point */
}
/* Location / Map Section */
#location {
  padding: 30px 20px;
  max-width: 1000px;
  margin: 30px auto;
  background-color: #f5f8fa; /* light block background for contrast */
  border: 2px solid #004aad; /* blue border from your theme */
  border-radius: 10px;
  text-align: center;
}

#location h2 {
  color: #004aad; /* blue heading */
  font-size: 2rem;
  margin-bottom: 20px;
}

#location .map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

#location .map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 10px;
}

#location p {
  font-size: 1rem;
  color: #003366; /* darker blue text */
  line-height: 1.6;
}

#location strong {
  color: #1ca45c; /* green from your theme for emphasis */
}
.photo-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.photo-grid img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  justify-items: center;
  margin-top: 15px;
}

/* === UPDATED TEACHER CARD === */
.teacher-card {
  width: 130px;
  background: #1e3a8a; /* SCHOOL BLUE */
  padding: 10px;
  border-radius: 10px;
  border: none;
  text-align: center;
  transition: 0.3s;
}

.teacher-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Teacher images */
.teacher-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ffffff; /* white border for contrast */
}

/* Teacher names */
.teacher-card h4 {
  margin-top: 8px;
  font-size: 14px;
  color: #ffffff; /* white text */
  font-weight: 600;
}


.academics-gallery {
    max-width: 1100px;
    margin: 40px auto;
    padding: 15px;
    border-radius: 16px;
    background: #f4f4f4;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-caption {
    margin-top: 15px;
    text-align: center;
    font-style: italic;
    color: #555;
}

.admissions-form {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.pdf-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #1e3a8a; /* your school colour */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}

.pdf-btn:hover {
    background: #163172;
}

.social-section {
    text-align: center;
    margin: 40px 0;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    font-size: 28px;
    color: #1e3a8a; /* school colour */
    margin: 0 12px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: #15803d;
    transform: scale(1.2);
}

#sponsor-board {
  background-color: #2347be; /* light gray background */
  padding: 20px 0;
  text-align: center;
}

#sponsor-board h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* spacing between logos */
  flex-wrap: wrap; /* responsive wrap on small screens */
}

.sponsor-logos img {
  max-height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sponsor-logos img:hover {
  transform: scale(1.1); /* small zoom on hover */
}

#sponsor-board {
  background-color: transparent; /* blends with blue footer */
  padding: 20px 0;
  text-align: center;
  color: #fff; /* heading text color */
}

#sponsor-board h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #fff;
}

/* Slider container */
.sponsor-slider {
  overflow: hidden;
  width: 100%;
}

/* Track that moves */
.sponsor-track {
  display: flex;
  gap: 50px; /* space between logos */
  animation: scroll 20s linear infinite; /* scroll speed */
}

/* Logos */
.sponsor-track img {
  max-height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sponsor-track img:hover {
  transform: scale(1.1);
}

/* Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.teacher-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.teacher-card.show {
  opacity: 1;
  transform: translateY(0);
}
