/* ===========================================================
   Dnyaneshwar Public School — Stylesheet
   Color palette inspired by the agri college site:
   green gradient navigation, multicolor top strip,
   warm header, gold-accented black footer.
=========================================================== */

:root {
  --dark-green: #14532d;
  --mid-green: #2e7d32;
  --green: #3c8b40;
  --bright-green: #0ba51a;
  --light-green-bg: #eef7ee;
  --pale-green: #a1e7a1;
  --gold: #f1c40f;
  --blue: #3498db;
  --orange: #e67e22;
  --purple: #8e44ad;
  --teal: #159b8c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: var(--light-green-bg);
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Top color strip ===== */
.top-strip { display: flex; height: 8px; width: 100%; }
.top-strip div { flex: 1; height: 100%; }
.top-strip .s1 { background-color: var(--blue); }
.top-strip .s2 { background-color: var(--orange); }
.top-strip .s3 { background-color: var(--green); }
.top-strip .s4 { background-color: var(--purple); }
.top-strip .s5 { background-color: var(--gold); }
.top-strip .s6 { background-color: var(--blue); }
.top-strip .s7 { background-color: var(--orange); }
.top-strip .s8 { background-color: var(--bright-green); }
.top-strip .s9 { background-color: var(--dark-green); }

/* ===== Header ===== */
.site-header {
  background: linear-gradient(to right, #f1eeb1, #eef0a6);
  padding: 20px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.header-inner .logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--dark-green);
  flex-shrink: 0;
}

.header-text { flex: 1; min-width: 260px; padding: 0 15px; }

.header-text h1 {
  font-size: 1.7rem;
  color: var(--dark-green);
}

.header-text .tagline {
  font-weight: bold;
  color: var(--mid-green);
  font-size: 1rem;
  margin-top: 4px;
}

.header-text .address {
  font-size: 0.9rem;
  color: #444;
  margin-top: 4px;
}

.header-contact {
  text-align: right;
  font-size: 0.9rem;
  color: #333;
  font-weight: bold;
}

.header-contact p { margin: 3px 0; }
.header-contact i { color: var(--dark-green); margin-right: 6px; }

/* ===== Navigation ===== */
.main-nav {
  background: linear-gradient(to right, var(--dark-green), var(--mid-green), var(--green), var(--bright-green));
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
}

.menu-icon {
  display: none;
  color: white;
  font-size: 26px;
  padding: 14px 20px;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav li { position: relative; }

.main-nav a {
  display: block;
  color: white;
  font-weight: bold;
  padding: 15px 20px;
  transition: 0.3s ease;
}

.main-nav a:hover {
  background-color: var(--pale-green);
  color: #1b1b1b;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #074307;
  list-style: none;
  min-width: 210px;
  z-index: 999;
}

.dropdown-menu li a {
  white-space: nowrap;
  padding: 12px 20px;
}


.dropdown.active .dropdown-menu { display: block; }

@media (max-width: 900px) {
  .menu-icon { display: block; }
  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .main-nav ul.show { display: flex; }
  .dropdown-menu { position: static; background-color: rgba(0,0,0,0.2); }
}

/* ===== Admission banner ===== */
.admission-banner {
  background-color: var(--gold);
  color: #1b1b1b;
  text-align: center;
  font-weight: bold;
  font-size: 1.05rem;
  padding: 10px;
  letter-spacing: 0.5px;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
.carousel-inner {
  display: flex;
  transition: transform 0.6s ease-in-out;
}
.carousel-item { min-width: 100%; }
.carousel-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 83, 45, 0.6);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
}
.carousel-control.prev { left: 15px; }
.carousel-control.next { right: 15px; }
.carousel-control:hover { background: rgba(20, 83, 45, 0.9); }

@media (max-width: 768px) {
  .carousel-item img { height: 220px; }
}

/* ===== News ticker card ===== */
.news-wrapper { display: flex; justify-content: center; padding: 25px 15px; }
.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 500px;
}
.news-card-header {
  background: linear-gradient(to right, var(--dark-green), var(--green));
  color: white;
  padding: 12px 18px;
  font-weight: bold;
}
.news-scroll-box { height: 140px; overflow: hidden; position: relative; }
.news-scroll { position: relative; }
.news-item {
  padding: 12px 18px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.news-item .badge {
  background: var(--orange);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* ===== Feature strip ===== */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: var(--dark-green);
  gap: 0;
}
.feature-item {
  flex: 1;
  min-width: 180px;
  text-align: center;
  color: white;
  padding: 18px 10px;
  border-right: 1px solid rgba(255,255,255,0.15);
  font-weight: bold;
  font-size: 0.9rem;
}
.feature-item:last-child { border-right: none; }
.feature-item i { display: block; font-size: 1.6rem; margin-bottom: 8px; color: var(--gold); }

/* ===== Sections ===== */
section { padding: 50px 20px; }
section h1.section-title {
  text-align: center;
  color: var(--dark-green);
  font-size: 2rem;
  margin-bottom: 35px;
  position: relative;
  padding-bottom: 12px;
}
section h1.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.about-banner { text-align: center; margin-bottom: 25px; }
.about-banner img { border-radius: 10px; max-height: 320px; object-fit: cover; }

.chairman-box {
  background: #fff;
  max-width: 850px;
  margin: 0 auto;
  padding: 35px;
  border-radius: 12px;
  border-left: 6px solid var(--bright-green);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.chairman-box p { margin-bottom: 14px; color: #444; }
.chairman-name { font-weight: bold; color: var(--dark-green); margin-top: 10px; }
.chairman-title { color: var(--orange); font-weight: bold; }

/* Facilities grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}
.facility-card {
  background: #fff;
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-top: 4px solid var(--green);
  transition: transform 0.3s ease;
}
.facility-card:hover { transform: translateY(-6px); }
.facility-card i { font-size: 2.2rem; color: var(--dark-green); margin-bottom: 12px; }
.facility-card h3 { color: var(--dark-green); margin-bottom: 8px; }
.facility-card p { font-size: 0.9rem; color: #555; }

/* Contact */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-form, .contact-info {
  flex: 1;
  min-width: 280px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.contact-form h3, .contact-info h3 { color: var(--dark-green); margin-bottom: 10px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}
.contact-form textarea { resize: none; height: 100px; }
.contact-form button {
  background: linear-gradient(to right, var(--dark-green), var(--green));
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.contact-form button:hover { opacity: 0.9; }
.contact-info p { margin-bottom: 15px; color: #444; }
.contact-info i { color: var(--dark-green); margin-right: 8px; }

/* ===== Facility gallery pages (facility.html) ===== */
.facility-section { margin-bottom: 50px; }
.facility-section h2 {
  text-align: center;
  color: var(--dark-green);
  margin-bottom: 20px;
  font-size: 1.6rem;
}
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.image-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  background: #fff;
}
.image-card img { width: 100%; height: 180px; object-fit: cover; display: block; }

/* ===== Gallery page ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.gallery-item {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0,0,0,0.18); }
.gallery-image-container { width: 100%; height: 220px; border-radius: 8px; overflow: hidden; }
.gallery-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover .gallery-image-container img { transform: scale(1.08); }

/* ===== Vision & Mission page ===== */
.vm-hero { background: linear-gradient(135deg, var(--dark-green), var(--green)); padding: 60px 20px; text-align: center; }
.vm-hero h1 { color: white; font-size: 2.2rem; }
.vision-mission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1100px;
  margin: -30px auto 50px;
  padding: 0 20px;
}
.vm-card {
  flex: 1;
  min-width: 280px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.vm-card h2 { color: var(--dark-green); text-align: center; margin-bottom: 18px; }
.vm-card ul { padding-left: 20px; }
.vm-card li { margin-bottom: 14px; color: #444; }

/* ===== News page ===== */
.news-page-hero { text-align: center; padding: 40px 20px 10px; }
.news-carousel { max-width: 1000px; margin: 0 auto 50px; overflow: hidden; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.news-track { display: flex; transition: transform 0.5s ease-in-out; }
.news-slide { min-width: 100%; flex-shrink: 0; }
.news-slide img { width: 100%; height: 480px; object-fit: contain; background: #fff; display: block; }
@media (max-width: 768px) { .news-slide img { height: 260px; } }

/* ===== Footer ===== */
footer { background-color: #111; color: #eee; padding: 45px 20px 20px; margin-top: 20px; }
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-section { flex: 1; min-width: 220px; }
.footer-section h3 { color: var(--gold); margin-bottom: 15px; }
.footer-section p, .footer-section li { color: #ccc; font-size: 0.9rem; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 8px; }
.footer-section a { color: #ccc; }
.footer-section a:hover { color: var(--gold); }
.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  margin-right: 8px;
  transition: 0.3s;
}
.footer-social-icons a:hover { background: var(--gold); color: #111; }
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #999;
}
/* Facilities dropdown hidden by default */
.dropdown-menu {
    display: none;
}

/* Show dropdown only when Facilities is clicked */
.dropdown.active .dropdown-menu {
    display: block;
}
