/* Reset everything */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body + layout */
html, body {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
  color: #333;
  scroll-behavior: smooth;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(180deg, #a88a52 0%, #e9dfd1 100%);
  opacity: 0.15;
  z-index: -1;
}

body::before { left: 0; }
body::after { right: 0; }

/* Main container - centered box layout */
.container {
  flex: 1 0 auto;
  width: 1200px;
  margin: 20px auto;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #ddd;
  overflow: hidden;
}

/* Header with full banner background */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url("../imgs/banner_top.jpg") no-repeat center center;
  background-size: cover;
  width: 100%;
  height: 180px;
  color: white;
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0 40px;
}

/* Left logo bigger and aligned */
.header img:first-child {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
  z-index: 1;
}

/* Right image smaller */
.header img:last-child {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 5px;
  z-index: 1;
}

/* Title area centered properly */
.header-title {
  flex: 1;
  text-align: center;
  z-index: 1;
}

.header-title h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: rgb(173, 137, 72);
  font-family: 'Playfair Display', 'Poppins', serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 8px 20px;
  border-radius: 8px;
}

/* Slideshow container */
.slideshow-container {
  width: 100%;
  position: relative;
  margin: 0;
  overflow: hidden;
}

/* Hide all slides by default */
.mySlides {
  display: none;
  position: relative;
  animation: fadeZoom 1.8s ease-in-out forwards;
}

/* Slide image */
.mySlides img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 8s ease;
}

/* Add a subtle zoom-in effect */
.mySlides.active img {
  transform: scale(1.05);
}

/* Navigation buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: all 0.4s ease;
  user-select: none;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

.next { right: 20px; }
.prev { left: 20px; }

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 16px;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: captionFade 1s ease forwards;
}

/* Slide number text (1/4 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 13px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  opacity: 0.8;
}

/* Dots inside slideshow */
.dots-container {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.active, .dot:hover {
  background-color: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* Smooth fade + zoom animation */
@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(1.02);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* Caption fade-in */
@keyframes captionFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Info section */
.info-section {
  width: 100%;
  background: #f8f3e8;
  padding: 100px 40px;
  text-align: center;
  color: #5a4c40;
}

.info-container {
  max-width: 800px;
  margin: 0 auto;
}

.info-section hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(173, 137, 72, 0.6), transparent);
  width: 70%;
  margin: 50px auto;
}

.info-section h1 {
  font-size: 48px;
  font-weight: 500;
  color: rgb(173, 137, 72);
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.info-section h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(173, 137, 72, 0.8);
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
}

.info-section p {
  font-size: 16px;
  line-height: 1.9;
  color: #4a4033;
  text-align: left;
  margin-bottom: 20px;
}

.info-section a.learn-more {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  color: rgba(173, 137, 72, 0.9);
  text-decoration: none;
  font-style: italic;
  transition: all 0.3s ease;
}

.info-section a.learn-more:hover {
  color: rgb(173, 137, 72);
  text-decoration: underline;
}

/*admission tr td*/
.admission-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto 0 auto;
  font-size: 16px;
  color: #4a4033;
  font-family: 'Poppins', sans-serif;
}

.admission-table td {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admission-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: rgb(173, 137, 72);
}

.admission-table td:last-child {
  text-align: right;
  font-weight: 400;
  color: #333;
}

.admission-table .note {
  text-align: center;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
  border-bottom: none;
  padding-top: 15px;
}

/* Full-width modern gradient footer */
.footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 60px 20px;
  background: transparent;
  color: #111;
  text-align: center;
  position: relative;
  border: none;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

/* Map styling */
.footer-map {
  margin: 40px auto;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Contact info grid */
.footer-info-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.footer-item {
  text-align: left;
  min-width: 220px;
}

.footer-item strong {
  display: block;
  font-weight: 600;
  color: rgb(173, 137, 72);
  margin-bottom: 5px;
}

.footer-item p a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-item p a:hover {
  color: rgb(173, 137, 72);
}

/* Social links */
.social-links {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: #000;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(173, 137, 72, 0.15);
  transform: translateY(-3px);
  border-color: rgb(173, 137, 72);
  color: rgb(173, 137, 72);
}

/* Copyright line */
.footer-bottom {
  margin-top: 40px;
  font-size: 14px;
  color: #555;
}

.footer-bottom strong {
  color: rgb(173, 137, 72);
}

/* 🔥 Responsive layout tweaks */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }
}

@media (max-width: 992px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 20px;
    text-align: center;
  }

  .header img:first-child,
  .header img:last-child {
    width: 80px;
    height: 80px;
    margin: 10px 0;
  }

  .header-title h1 {
    font-size: 28px;
  }

  .mySlides img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .info-section {
    padding: 60px 20px;
  }

  .info-section h1 {
    font-size: 32px;
  }

  .info-section h3 {
    font-size: 16px;
  }

  .info-section p {
    font-size: 15px;
  }

  .footer {
    width: 100%;
    margin-left: 0;
    padding: 40px 15px;
  }

  .footer-info-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-item {
    min-width: auto;
  }

  .footer-map {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .header-title h1 {
    font-size: 22px;
  }

  .mySlides img {
    height: 220px;
  }

  .info-section {
    padding: 40px 15px;
  }

  .info-section h1 {
    font-size: 26px;
  }

  .info-section h3 {
    font-size: 14px;
  }
}
