/* ===============================
   SCHOOL WEBSITE GLOBAL STYLES
   =============================== */

/* ==== GLOBAL RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ==== HEADER ==== */
.header {
  background: #003366;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 250px;
 /* height: 50px;*/
}

.logo h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.logo a:hover {
  opacity: 0.8;
}

/* ==== NAVBAR ==== */
.navbar ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  gap: 25px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: #94E1F8;
}

/* ==== MENU TOGGLE (MOBILE) ==== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

/* ==== MOBILE MENU STYLES (UPDATED) ==== */
@media (max-width: 900px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #003366;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 5px 0; /* reduced padding */
    width: 220px;
    text-align: center;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
  }

  .navbar ul.show {
    display: flex;
    transform: scaleY(1);
  }

  .navbar li {
    margin: 4px 0; /* tighter spacing */
  }

  .navbar a {
    padding: 6px 10px; /* smaller clickable area but touch-friendly */
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .header .container {
    justify-content: space-between;
  }

  .navbar a.btn-login {
    display: inline-block;
    margin: 6px 0; /* align with other menu items */
  }
}

/* ==== HERO SECTION ==== */
.page-hero {
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 51, 102, 0.7);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.page-hero p {
  font-size: 1.1rem;
}

/* ==== SECTIONS ==== */
.section {
  padding: 60px 0;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  color: #003366;
  margin-bottom: 25px;
  font-family: 'Poppins', sans-serif;
}

.section p {
  max-width: 900px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 1rem;
  color: #555;
}

/* ==== GRID & CARD STYLES ==== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #003366;
  margin-bottom: 10px;
}

/* ==== BUTTONS ==== */
.btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0056b3;
}

/* ==== CONTACT PREVIEW CTA ==== */
.contact-preview {
  text-align: center;
  background: #003366;
  color: #fff;
  padding: 60px 20px;
}

.contact-preview .btn {
  background: #ffcc00;
  color: #003366;
}

/* ==== FOOTER ==== */
.footer {
  background: #002244;
  color: #fff;
  text-align: center;
  padding: 25px 0;
  margin-top: 40px;
}

.footer p {
  font-size: 0.95rem;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  max-height: 500px;
}

.hero-slider img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0;
}

.slides {
  display: none;
  position: relative;
  text-align: center;
}

.slide-text {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.4);
  padding: 20px 40px;
  border-radius: 10px;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  user-select: none;
  transition: 0.3s;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.next { right: 20px; }
.prev { left: 20px; }

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from { opacity: 0.4; } 
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .slide-text {
    width: 80%;
    font-size: 14px;
    padding: 10px 20px;
  }

  .hero-slider img {
    height: 350px;
  }
}

/* Smooth slide animation for mobile menu */
@media (max-width: 900px) {
  .navbar ul {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
  }

  .navbar ul.show {
    display: flex;
    transform: scaleY(1);
  }
}

/* ==== HOME HERO SECTION (WELCOME AREA) ==== */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 10%;
  background: #f5f7fa;
}

.home-hero img {
  width: 45%;
  max-width: 500px;
  border-radius: 15px;
}

.home-text {
  width: 50%;
}

.home-text h2 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.home-text p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/* Responsive layout for mobile */
@media (max-width: 900px) {
  .home-hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .home-hero img {
    width: 100%;
    max-width: 400px;
  }

  .home-text {
    width: 100%;
  }
}

/* ==== ADMISSION CTA SECTION ==== */
.admission-cta {
  background: #003366; /* School blue */
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-radius: 10px;
  margin: 40px 10%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.admission-cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

.admission-cta p {
  font-size: 1.1rem;
  max-width: 100%;
  margin: 0 auto 25px;
  line-height: 1.6;
}

.admission-cta .btn {
  background: #ffcc00;
  color: #003366;
  padding: 12px 30px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.admission-cta .btn:hover {
  background: #e6b800;
  color: #003366;
}

/* Responsive */
@media (max-width: 900px) {
  .admission-cta {
    margin: 30px 5%;
    padding: 40px 20px;
  }

  .admission-cta h2 {
    font-size: 1.8rem;
  }

  .admission-cta p {
    font-size: 1rem;
  }
}

/* ==== LATEST NEWS SECTION ==== */
.news-preview {
  padding: 60px 10%;
  background: #f5f7fa;
}

.news-preview h2 {
  text-align: center;
  font-size: 2rem;
  color: #003366;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card-content {
  padding: 20px;
}

.news-card-content h3 {
  color: #003366;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.news-card-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.news-card-content a {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  color: #0073e6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-content a:hover {
  color: #005bb5;
}

/* Responsive */
@media (max-width: 768px) {
  .news-preview {
    padding: 40px 5%;
  }
}

hr {
  border: none;
  height: 2px;
  background-color: #003366; /* school blue */
  margin: 30px auto;
  width: 60%;
  border-radius: 2px;
}

/* ==== HEADER LOGIN BUTTON ==== */
.navbar a.btn-login {
  background: #94E1F8;
  color: #003366;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.navbar a.btn-login:hover {
  background: #FFF;
  color: #003366;
}

