/* Base styles for Disha Public School clone */

:root {
  --dps-green: #18a43b;
  --dps-green-dark: #0d7a26;
  --dps-orange: #ff9800;
  --dps-dark: #222222;
  --dps-muted: #777777;
  --dps-bg-light: #f7f7f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333333;
  background-color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Top bar */

.top-bar {
  background-color: var(--dps-dark);
  color: #ffffff;
  font-size: 13px;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center; /* Add this */
  padding: 6px 0;
}

.top-bar-mid {
  font-weight: 600;
  letter-spacing: 0.03em;
  display: inline-block; /* Ensures transform works properly */
}

.top-bar-right span {
  white-space: nowrap;
}

.top-bar-right span strong {
  font-weight: 600;
}

/* Logo + navigation */

.logo-nav {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.logo-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 40px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 70px;
  height: 46px;
  background: #ffc107;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #6a4a00;
}

.logo-text {
  line-height: 1.2;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 12px;
  text-transform: none;
}

.header-contact-item {
  padding-left: 18px;
  border-left: 1px solid #e0e0e0;
}

.header-contact-item:first-child {
  border-left: none;
  padding-left: 0;
}

.hc-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dps-muted);
}

.hc-value {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
}

.hc-value a {
  color: inherit;
}

.logo-main {
  font-size: 22px;
  font-weight: 800;
  color: #d41f1f;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 11px;
  color: var(--dps-muted);
  display: block;
}
/* -------------------------
   NAVBAR BASE STYLES (unchanged)
-------------------------- */
.main-nav {
  background-color: var(--dps-green);
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.main-nav li.admin-login {
  margin-left: auto;
}

.main-nav .admin-login-link {
  margin-left: 10px;
  margin-right: 0;
  padding-inline: 24px;
  border-radius: 24px;
  border-right: none;
  background: linear-gradient(90deg, var(--dps-orange), #ffb300);
}

.main-nav .admin-login-link:hover {
  background: linear-gradient(90deg, #ff7a00, #ffb300);
}

.main-nav a:hover,
.main-nav a.active {
  background-color: var(--dps-green-dark);
}

.main-nav .has-dropdown > a::after {
  content: "\25be";
  font-size: 10px;
  margin-left: 6px;
}

/* -------------------------
   UPDATED DROPDOWN STYLES
-------------------------- */

/* dropdown container */
.main-nav .dropdown {
  display: none;           /* hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: var(--dps-green); /* keep theme color */
  z-index: 999;
  flex-direction: column;
}

/* items inside dropdown */
.main-nav .dropdown a {
  padding: 12px 16px;
  border-right: none;
  white-space: nowrap;
}

/* class added by JS on click */
.main-nav .dropdown.show {
  display: block;
}


/* Generic page sections */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1 0 auto;
}

.section {
  padding: 50px 0;
}

.section.alt-bg {
  background-color: var(--dps-bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 35px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: 0.04em;
}

.section-title p {
  margin: 0;
  color: var(--dps-muted);
}

/* Hero section */

.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.25), rgba(24, 164, 59, 0.6));
  z-index: 1;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1.03);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 60px 15px;
}

.hero-kicker {
  font-size: 18px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-title {
  font-size: 48px;
  margin: 10px 0 16px;
  font-weight: 800;
  animation: slideInRight 1s ease-out forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: 18px;
  max-width: 460px;
}

.hero-cta {
  margin-top: 26px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(90deg, var(--dps-orange), #ffb300);
  color: #ffffff;
  font-weight: 600;
  border-radius: 2px;
  font-size: 14px;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Home specific */

.info-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.info-panel {
  padding: 24px 22px;
  color: #ffffff;
  border-radius: 3px;
}

.info-panel.programs {
  background: var(--dps-orange);
}

.info-panel.admission {
  background: #2196f3;
}

.info-panel.notice {
  background: #ffc107;
}

.hero-panels {
  padding-top: 0;
  margin-top: -70px;
}

.hero-panels .info-panels {
  position: relative;
  z-index: 3;
}

.hero-panels .info-panel {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.28);
}

.info-panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.info-panel p {
  margin: 0;
  font-size: 14px;
}

/* Welcome Hero Section */
.welcome-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), 
              url('../img/Building.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: left;
  overflow: hidden;
}

.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), 
              url('../img/Building.jpg') center/cover no-repeat !important;
}

.welcome-hero-content {
  width: 100%;
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.welcome-hero-text {
  max-width: 700px;
  animation: fadeInUp 1s ease-out;
}

.welcome-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.welcome-hero .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.welcome-hero .btn {
  padding: 0.8rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.welcome-hero .btn-primary {
  background-color: var(--dps-green);
  border-color: var(--dps-green);
}

.welcome-hero .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
}

.welcome-hero .btn-outline-light:hover {
  background-color: rgba(255,255,255,0.1);
}

.welcome-hero .hero-kicker {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255,255,255,0.15);
  border-radius: 30px;
}

.slide-in-right {
  animation: slideInRight 1s ease-out forwards;
  opacity: 0;
  position: relative;
  left: 100%;
  transform: translateX(0);
  display: inline-block;
  white-space: nowrap;
}

@keyframes slideInRight {
  from {
    opacity: 0.8;
    left: 100%;
    transform: translateX(0);
  }
  to {
    opacity: 1;
    left: 0;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .welcome-hero h1 {
    font-size: 2.8rem;
  }
  
  .welcome-hero .lead {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .welcome-hero {
    height: 70vh;
    min-height: 400px;
    text-align: center;
  }
  
  .welcome-hero h1 {
    font-size: 2.2rem;
  }
  
  .welcome-hero .lead {
    font-size: 1.1rem;
  }
  
  .welcome-hero-text {
    margin: 0 auto;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .welcome-hero h1 {
    font-size: 1.8rem;
  }
  
  .welcome-hero .lead {
    font-size: 1rem;
  }
  
  .welcome-hero .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Welcome Section */
.section-title {
  position: relative;
  margin-bottom: 3rem;
}

.section-title .divider {
  width: 80px;
  height: 4px;
  margin: 0 auto;
  background: var(--dps-green);
  position: relative;
}

.letter-spacing-2 {
  letter-spacing: 2px;
}

.welcome-section {
  background-color: #fff;
  padding: 60px 0;
}

.welcome-section .section-title h2 {
  color: var(--dps-dark);
  margin-bottom: 1rem;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.welcome-section .lead {
  font-size: 1.25rem;
  color: #6c757d;
  font-weight: 300;
  line-height: 1.7;
}

.feature-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 164, 59, 0.1);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.feature-box:hover .icon-box {
  background: var(--dps-green);
}

.feature-box:hover .icon-box i {
  color: #fff !important;
}

.feature-box h4 {
  color: var(--dps-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.feature-box h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--dps-green);
  transition: width 0.3s ease;
}

.feature-box:hover h4:after {
  width: 60px;
}

.feature-box p {
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .welcome-section .section-title h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .welcome-section .section-title h2 {
    font-size: 2.25rem;
  }
  
  .feature-box {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .welcome-section .section-title h2 {
    font-size: 2rem;
  }
  
  .welcome-section .lead {
    width: 100% !important;
    font-size: 1.1rem;
  }
  
  .icon-box {
    width: 70px;
    height: 70px;
  }
  
  .icon-box i {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .welcome-section .section-title h2 {
    font-size: 1.75rem;
  }
  
  .welcome-section .lead {
    font-size: 1rem;
  }
  
  .feature-box {
    padding: 1.5rem !important;
  }
}

.welcome-section .lead {
  color: var(--dps-muted);
  font-size: 18px;
  margin-bottom: 40px;
}

.welcome-content {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  align-items: center;
}

.welcome-text {
  flex: 1;
}

.welcome-text p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #444;
}

.welcome-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.welcome-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.welcome-image:hover img {
  transform: scale(1.03);
}

.key-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature {
  text-align: center;
  padding: 25px 15px;
  background: #f9f9f9;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--dps-green);
}

.feature i {
  font-size: 36px;
  color: var(--dps-green);
  margin-bottom: 15px;
  display: inline-block;
}

.feature h4 {
  margin: 10px 0;
  color: var(--dps-dark);
  font-size: 18px;
}

.feature p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
}

.mission, .vision {
  padding: 20px;
}

.mission h3, .vision h3 {
  color: var(--dps-green);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
}

.mission p, .vision p {
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .welcome-content {
    flex-direction: column;
  }
  
  .welcome-text, .welcome-image {
    width: 100%;
    max-width: 100%;
  }
  
  .key-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mission-vision {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .key-features {
    grid-template-columns: 1fr;
  }
  
  .welcome-section .section-title h2 {
    font-size: 28px;
  }
  
  .feature {
    padding: 20px 15px;
  }
  
  .feature i {
    font-size: 30px;
  }
}

.stats-section {
  padding: 60px 0;
  background:
    linear-gradient(120deg, rgba(24, 164, 59, 0.9), rgba(24, 164, 59, 0.9)),
    url("../img/Building.jpg") center center / cover no-repeat;
  color: #ffffff;
  text-align: center;
}

.stats-kicker {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stats-title {
  margin: 8px 0 0;
  font-size: 30px;
  letter-spacing: 0.12em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 32px;
  align-items: center;
}

.stat-item {
  padding-inline: 10px;
}

.stat-number {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* About page */

.about-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
}

.about-layout h3 {
  margin-top: 0;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form .full-width {
  grid-column: 1 / -1;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dddddd;
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: var(--dps-green);
}

/* Footer */

.site-footer {
  background-color: #222222;
  color: #cccccc;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 40px 0 25px;
}

.site-footer h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  color: #ffffff;
}

.site-footer p,
.site-footer li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 4px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #333333;
  padding: 12px 0;
  font-size: 13px;
  text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
  .logo-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .main-nav ul {
    flex-wrap: wrap;
  }

  .main-nav a {
    padding: 12px 14px;
    font-size: 13px;
  }

  .info-panels,
  .about-layout,
  .contact-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-panels {
    margin-top: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

/* Admin login modal */

.admin-modal .modal-content {
  border-radius: 6px;
  overflow: hidden;
  border: none;
}

.admin-modal .modal-header {
  background: #3f51b5;
  color: #ffffff;
  border-bottom: none;
  justify-content: space-between;
  align-items: center;
}

.admin-modal .modal-title {
  font-weight: 700;
}

.admin-modal .btn-close {
  filter: invert(1);
}

.admin-logo-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 18px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #ffcc80, #fb8c00);
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.18);
}

.admin-modal-body {
  padding-top: 0;
}

.admin-modal .form-label {
  font-weight: 500;
  font-size: 14px;
}

.admin-modal .form-control {
  font-size: 14px;
}

.admin-modal .forgot-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #f4511e;
}

.admin-modal .btn-admin-login {
  background-color: var(--dps-orange);
  border-color: var(--dps-orange);
  padding: 10px 16px;
  width: 100%;
  font-weight: 600;
}

.admin-modal .btn-admin-login:hover {
  background-color: #ff7a00;
  border-color: #ff7a00;
}
/* ============================
   EVENTS & CELEBRATION SECTION
============================= */

.events-section {
  background: #fafafa;
}

.events-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dps-dark);
}

.events-title span {
  color: var(--dps-green);
}

.event-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform .3s ease;
}

.event-card:hover {
  transform: translateY(-8px);
}

.event-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .4s ease;
}

.event-card:hover .event-img {
  transform: scale(1.08);
}

.event-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.1)
  );
  color: #fff;
  opacity: 0;
  transition: opacity .3s ease;
}

.event-card:hover .event-overlay {
  opacity: 1;
}

.event-overlay h5 {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}

.event-overlay p {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .event-img {
    height: 200px;
  }
}

