/* =========================================================
   DABMOR HIGH SCHOOL — FRONT PAGE STYLE
   Updated visual design — CSS only
   Works with the existing index.html structure.
   ========================================================= */

:root{
  --primary:#6b3f24;
  --primary-dark:#3f2416;
  --primary-light:#8a5a36;
  --gold:#a9784e;
  --gold-light:#f3d29b;
  --cream:#fff9ec;
  --cream-2:#fffdf7;
  --white:#ffffff;
  --ink:#1b1d2b;
  --muted:#667085;
  --border:#e9e5d9;
  --success:#208a57;
  --shadow:0 18px 50px rgba(63,36,22,.10);
  --shadow-soft:0 10px 30px rgba(63,36,22,.08);
  --radius:22px;
  --transition:all .3s ease;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Segoe UI",Inter,Arial,sans-serif;
  background:var(--cream-2);
  color:var(--ink);
  line-height:1.7;
  overflow-x:hidden;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
textarea{
  font:inherit;
}

.container{
  width:min(1180px,92%);
  margin:0 auto;
}

/* =========================
   HEADER / NAVIGATION
   ========================= */

.header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  padding:18px 0;
  background:linear-gradient(to bottom,rgba(255,249,236,.98),rgba(255,249,236,.90),transparent);
}

.navbar{
  width:min(1200px,92%);
  min-height:78px;
  margin:0 auto;
  padding:10px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(217,154,61,.14);
  border-radius:24px;
  box-shadow:0 14px 38px rgba(63,36,22,.10);
  backdrop-filter:blur(16px);
}

.logo{
  width:96px;
  flex:0 0 96px;
  display:flex;
  align-items:center;
}

.logo img{
  width:76px;
  height:58px;
  object-fit:contain;
  border-radius:10px;
}

.nav-links{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:38px;
  margin-left:auto;
}

.nav-links > li{
  position:relative;
}

.nav-links > li > a{
  display:flex;
  align-items:center;
  gap:8px;
  color:#5a2e1a;
  font-size:15px;
  font-weight:700;
  padding:13px 3px;
  transition:var(--transition);
}

.nav-links > li > a:hover{
  color:var(--primary);
}

.dropdown-arrow{
  font-size:10px;
  transition:transform .25s ease;
}

.dropdown:hover .dropdown-arrow{
  transform:rotate(180deg);
}

.dropdown-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  transform:translateX(-50%) translateY(8px);
  width:220px;
  padding:10px;
  list-style:none;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  opacity:0;
  visibility:hidden;
  transition:var(--transition);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}

.dropdown-menu li a{
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px 14px;
  border-radius:10px;
  color:#3b3540;
  font-size:14px;
  font-weight:600;
  transition:var(--transition);
}

.dropdown-menu li a:hover{
  color:var(--primary);
  background:#f5f2ff;
  transform:translateX(3px);
}

.contact-btn,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:0;
  cursor:pointer;
  font-weight:800;
  transition:var(--transition);
}

.contact-btn{
  min-width:162px;
  padding:17px 28px;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  box-shadow:0 9px 22px rgba(36,27,120,.22);
}

.contact-btn:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
  box-shadow:0 13px 28px rgba(36,27,120,.28);
}

/* =========================
   HERO
   ========================= */

.hero{
  position:relative;
  width:min(1340px,100%);
  height:min(760px,92vh);
  min-height:610px;
  margin:0 auto;
  overflow:hidden;
  border-radius:0 0 34px 34px;
  background:#191629;
  isolation:isolate;
}

.slider{
  position:absolute;
  inset:28px;
  z-index:-2;
  overflow:hidden;
  border-radius:24px;
  background:#191629;
  box-shadow:0 18px 45px rgba(8,6,18,.28);
}

.slides{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:scale(1.06);
  transition:opacity 1.1s ease,transform 7s ease;
  filter:saturate(.82);
}

.slides.active{
  opacity:1;
  transform:scale(1);
}

@media(max-width:760px){
  .slider{inset:14px;border-radius:18px}
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(90deg,rgba(12,10,24,.78) 0%,rgba(20,14,40,.57) 42%,rgba(20,14,40,.20) 78%),
    linear-gradient(180deg,rgba(15,11,30,.20),rgba(15,11,30,.70));
}

.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:150px;
  z-index:0;
  background:linear-gradient(to top,var(--cream-2),transparent);
  pointer-events:none;
}

.hero-text{
  position:absolute;
  z-index:2;
  left:7.5%;
  top:50%;
  width:min(680px,82%);
  transform:translateY(-36%);
  color:#fff;
}

.hero-text::before{
  content:"EXCELLENT IN  • LEARNING • AND CHARACTER";
  display:inline-flex;
  align-items:center;
  padding:9px 16px;
  margin-bottom:18px;
  border:1px solid rgba(255,255,255,.30);
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#ffe0a1;
  font-size:11px;
  font-weight:800;
  letter-spacing:2px;
  backdrop-filter:blur(8px);
}

.hero-text h2{
  max-width:700px;
  font-size:clamp(42px,6vw,78px);
  line-height:1.02;
  letter-spacing:-2.5px;
  margin-bottom:22px;
  font-weight:900;
  text-shadow:0 5px 20px rgba(0,0,0,.25);
}

.hero-text p{
  max-width:610px;
  margin-bottom:30px;
  color:rgba(255,255,255,.92);
  font-size:clamp(16px,2vw,21px);
  line-height:1.6;
}

.hero-text .btn{
  min-width:155px;
  padding:15px 25px;
  border-radius:12px;
  background:var(--gold);
  color:#fff;
  box-shadow:0 12px 28px rgba(0,0,0,.20);
}

.hero-text .btn:hover{
  background:#b97827;
  transform:translateY(-3px);
}

/* =========================
   GENERAL SECTIONS
   ========================= */

.section{
  position:relative;
  padding:96px 0;
  background:var(--cream-2);
}

.cream-bg{
  background:
    radial-gradient(circle at 10% 10%,rgba(217,154,61,.08),transparent 26%),
    var(--cream);
}

.section h2{
  position:relative;
  width:max-content;
  max-width:100%;
  margin:0 auto 16px;
  text-align:center;
  color:var(--primary-dark);
  font-size:clamp(30px,4vw,46px);
  line-height:1.15;
  letter-spacing:-1px;
}

.section h2::after{
  content:"";
  display:block;
  width:62px;
  height:4px;
  margin:14px auto 0;
  border-radius:99px;
  background:linear-gradient(90deg,var(--gold),var(--primary));
}

.section .container > h2 + p{
  max-width:850px;
  margin:0 auto;
  text-align:center;
}

.section p{
  color:#596174;
}

#about .container{
  max-width:960px;
}

#about .container > p{
  margin-bottom:14px;
  font-size:16px;
}

#about .container > p:first-of-type{
  margin-top:26px;
  font-size:18px;
  color:#3c4354;
}

.about-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin-top:30px;
  align-items:stretch;
}

.about-detail-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:28px 24px 22px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(107,63,36,.12);
  border-radius:24px;
  box-shadow:0 18px 40px rgba(63,36,22,.08);
  overflow:hidden;
  transition:transform .35s ease, box-shadow .35s ease;
  animation:fadeUp .7s ease both;
}

.about-detail-card::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,var(--gold),var(--primary));
}

.about-detail-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 48px rgba(63,36,22,.12);
}

.about-detail-card h3{
  margin:0;
  color:var(--primary-dark);
  font-size:clamp(1.15rem,2vw,1.55rem);
  line-height:1.35;
}

#publicHistory,
#publicEnvironment,
#publicAdmissionPolicy{
  display:flex;
  flex-direction:column;
  gap:12px;
}

#publicHistory p,
#publicEnvironment p,
#publicAdmissionPolicy p{
  margin:0;
  color:#4d5565;
  line-height:1.9;
  font-size:0.98rem;
  text-align:left;
}

.about-policy-panel{
  margin-top:18px;
  padding:18px 20px 16px;
  border:1px solid rgba(107,63,36,.12);
  border-radius:18px;
  background:linear-gradient(180deg,#fffdf9 0%,#fff 100%);
  box-shadow:0 12px 28px rgba(63,36,22,.04);
  animation:fadeUp .8s ease both;
}

.about-policy-panel h3{
  margin:0 0 12px;
  color:var(--primary-dark);
  font-size:1.15rem;
}

#publicAdmissionPolicy p{
  position:relative;
  padding-left:18px;
  color:#4b2e20;
}

#publicAdmissionPolicy p::before{
  content:"•";
  position:absolute;
  left:0;
  top:0;
  color:var(--primary);
  font-size:1.2rem;
  line-height:1.7;
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================
   GALLERY
   ========================= */
.gallery-filters{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:26px auto 28px}
.gallery-filter{border:1px solid #d9c4a7;background:#fff;color:var(--brown-dark);padding:10px 17px;border-radius:999px;cursor:pointer;font-weight:750;transition:var(--transition)}
.gallery-filter:hover,.gallery-filter.active{background:var(--brown);color:#fff;border-color:var(--brown)}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px;align-items:start}
.gallery-item{grid-column:span 1;margin:0;overflow:hidden;border-radius:18px;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow-soft);transition:var(--transition);display:flex;flex-direction:column;max-width:100%}
.gallery-item img{width:100%;height:300px;object-fit:cover;border:0;border-radius:18px 18px 0 0;transition:transform .3s ease,filter .3s ease;flex-shrink:0;background:#f7ecd5}
.gallery-item figcaption{min-height:72px;padding:12px 14px 13px;background:#fffdf7;color:var(--brown-dark);flex:1;display:flex;flex-direction:column;justify-content:center}
.gallery-item figcaption strong{display:block;font-size:15px;line-height:1.3}
.gallery-item figcaption span{display:block;margin-top:4px;color:var(--brown-light);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.6px}
.gallery-item:hover{transform:translateY(-4px);box-shadow:0 18px 32px rgba(63,36,22,.14)}
.gallery-item:hover img{transform:scale(1.01)}
.gallery-item[hidden]{display:none!important}

@media (max-width:760px){
  .gallery-grid{grid-template-columns:1fr;gap:16px;margin-top:16px}
  .gallery-item img{height:260px}
}

@media (max-width:480px){
  .gallery-item img{height:220px}
  .gallery-item figcaption{padding:11px 12px 12px}
  .gallery-item figcaption strong{font-size:14px}
}

/* =========================
   CARDS / WHY CHOOSE US
   ========================= */

.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-top:42px;
}

.card{
  position:relative;
  padding:30px 26px;
  background:rgba(255,255,255,.94);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
  transition:var(--transition);
}

.card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,var(--gold),var(--primary));
  transform:scaleX(0);
  transform-origin:left;
  transition:var(--transition);
}

.card:hover{
  transform:translateY(-7px);
  box-shadow:var(--shadow);
  border-color:rgba(36,27,120,.14);
}

.card:hover::before{
  transform:scaleX(1);
}

.card-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  border-radius:16px;
  background:#f0edff;
  color:var(--primary);
  font-size:22px;
}

.card h3{
  margin-bottom:9px;
  color:#24233b;
  font-size:19px;
}

.card p{
  font-size:14.5px;
}

/* =========================
   SCHOOL MORALS / VALUES
   ========================= */

.section:nth-of-type(5) .cards,
.section:nth-of-type(6) .cards{
  grid-template-columns:repeat(2,1fr);
}

.section:nth-of-type(5) .card,
.section:nth-of-type(6) .card{
  padding:34px;
}

.section:nth-of-type(5) .card h3,
.section:nth-of-type(6) .card h3{
  color:var(--primary);
}

/* =========================
   REASONS GRID
   ========================= */

.reasons-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:38px;
}

.reason-item{
  min-height:68px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 18px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:#3e4554;
  font-size:14px;
  font-weight:650;
  box-shadow:0 5px 16px rgba(30,25,80,.05);
  transition:var(--transition);
}

.reason-item i{
  flex:0 0 29px;
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e8f7ef;
  color:var(--success);
  font-size:12px;
}

.reason-item:hover{
  transform:translateX(4px);
  border-color:rgba(36,27,120,.16);
}

/* =========================
   ADMISSION
   ========================= */

.section-intro{
  margin-top:10px !important;
  margin-bottom:36px;
}

.admission-steps{
  max-width:930px;
  margin:0 auto;
  display:grid;
  gap:22px;
}

.admission-card{
  position:relative;
  display:flex;
  gap:24px;
  padding:30px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}

.admission-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:linear-gradient(var(--gold),var(--primary));
}

.step-number{
  flex:0 0 68px;
  width:68px;
  height:68px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:var(--primary);
  color:#fff;
  font-size:20px;
  font-weight:900;
  box-shadow:0 10px 22px rgba(36,27,120,.20);
}

.step-content{
  flex:1;
}

.step-content h3{
  margin-bottom:12px;
  color:#25243a;
  font-size:19px;
}

.step-content p{
  margin-bottom:12px;
}

.step-content .btn{
  margin-top:8px;
  padding:13px 22px;
  border-radius:11px;
  background:var(--gold);
  color:#fff;
}

.step-content .btn:hover{
  background:#b97827;
  transform:translateY(-2px);
}

/* =========================
   NEWS / LOCATION
   ========================= */

#announcements .container > h2,
#news .container > h2,
#location .container > h2{
  margin-bottom:24px;
}

.about-policy-panel{
  margin-top:20px;
  padding:20px 22px;
  border:1px solid rgba(107,63,36,.12);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 25px rgba(62,41,25,.04);
}

.about-policy-panel h3{
  margin:0 0 12px;
  color:var(--primary-dark);
  font-size:1.15rem;
}

#publicAdmissionPolicy p{
  margin:0 0 10px;
  color:var(--primary-dark);
  line-height:1.8;
}

#publicAdmissionPolicy p:last-child{
  margin-bottom:0;
}

#frontendAnnouncements,
#publicLatestNews,
#publicLocation{
  max-width:900px;
  margin:0 auto;
}

.admission-policy-box{
  max-width:920px;
  margin:0 auto 24px;
  padding:20px 22px;
  border:1px solid rgba(107,63,36,.12);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 25px rgba(62,41,25,.05);
}

.admission-policy-box p{
  margin:0;
  color:var(--primary-dark);
  line-height:1.8;
}

.announcement-item,
.news-item,
.location-card{
  padding:20px 22px;
  margin:0 0 18px;
  border:1px solid rgba(107,63,36,.12);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 25px rgba(62,41,25,.04);
}

.announcement-item:last-child,
.news-item:last-child,
.location-card:last-child{
  margin-bottom:0;
}

.announcement-item img{
  display:block;
  width:min(100%,520px);
  max-height:280px;
  margin:0 auto 16px;
  object-fit:cover;
  border-radius:12px;
}

.announcement-item h3,
.news-item h3{
  margin:8px 0;
  color:var(--primary-dark);
}

.announcement-item p,
.news-item p,
.location-card p,
#publicLocation p{
  line-height:1.8;
  margin:0;
}

#news{
  text-align:center;
}

#news p{
  font-size:17px;
  font-weight:600;
  color:#4d5565;
}

@media (max-width: 760px){
  .about-detail-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .about-detail-card{
    padding:22px 18px 18px;
    border-radius:18px;
  }

  .about-policy-panel,
  .admission-policy-box,
  .announcement-item,
  .news-item,
  .location-card{
    padding:16px 18px;
    border-radius:14px;
  }

  #frontendAnnouncements,
  #publicLatestNews,
  #publicLocation{
    max-width:100%;
  }

  #publicLatestNews,
  #publicLocation{
    display:grid;
    gap:14px;
  }
}

@media (max-width: 480px){
  #about .container > p,
  #publicHistory p,
  #publicEnvironment p,
  #publicAdmissionPolicy p{
    font-size:0.94rem;
  }

  .about-detail-card{
    padding:18px 16px 16px;
  }

  .about-policy-panel h3,
  .about-detail-card h3{
    font-size:1.05rem;
  }
}

.section .container > h2 + p{
  line-height:1.8;
}

/* =========================
   TESTIMONIALS
   ========================= */

.testimonial-section{
  position:relative;
  padding:96px 0;
  background:
    radial-gradient(circle at 85% 20%,rgba(217,154,61,.18),transparent 25%),
    linear-gradient(135deg,var(--primary-dark),var(--primary));
  color:#fff;
  overflow:hidden;
}

.testimonial-section::before{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.10);
  top:-130px;
  left:-90px;
}

.testimonial-section h2{
  color:#fff;
}

.testimonial-section h2::after{
  background:var(--gold-light);
}

.testimonial-wrapper{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-top:42px;
}

.testimonial-card{
  padding:28px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:20px;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(12px);
  box-shadow:0 14px 35px rgba(0,0,0,.14);
  transition:var(--transition);
}

.testimonial-card:hover{
  transform:translateY(-6px);
  background:rgba(255,255,255,.12);
}

.testimonial-card p{
  color:rgba(255,255,255,.90);
  font-size:15px;
  line-height:1.8;
}

.testimonial-card h4{
  margin-top:20px;
  color:#ffe0a1;
  font-size:14px;
}

/* =========================
   FAQ
   ========================= */

.faq{
  max-width:900px;
  margin:38px auto 0;
}

.faq-item{
  margin-bottom:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 5px 18px rgba(30,25,80,.05);
}

.faq-question{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:19px 22px;
  border:0;
  background:transparent;
  color:#28283b;
  text-align:left;
  cursor:pointer;
  font-weight:750;
}

.faq-question span{
  flex:0 0 30px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f0edff;
  color:var(--primary);
  font-size:20px;
  transition:transform .3s ease;
}

.faq-question:hover{
  color:var(--primary);
}

.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease,padding .35s ease;
}

.faq-answer p{
  padding:0 22px 20px;
  font-size:14.5px;
}

.faq-item.active .faq-answer{
  max-height:300px;
}

.faq-item.active .faq-question span{
  transform:rotate(45deg);
}

/* =========================
   CONTACT
   ========================= */

.contact-section{
  background:
    radial-gradient(circle at 90% 10%,rgba(217,154,61,.12),transparent 25%),
    var(--cream);
}

.contact-subtitle{
  text-align:center;
  margin-bottom:40px;
}

.contact-wrapper{
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  gap:28px;
  align-items:stretch;
}

.contact-info{
  display:grid;
  gap:14px;
}

.contact-card{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:21px;
  border:1px solid var(--border);
  border-radius:17px;
  background:#fff;
  box-shadow:0 7px 22px rgba(30,25,80,.06);
}

.icon-box{
  flex:0 0 45px;
  width:45px;
  height:45px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#f0edff;
  color:var(--primary);
}

.contact-card h4{
  margin-bottom:3px;
  color:#28283b;
}

.contact-card p{
  font-size:13.5px;
  line-height:1.55;
}

.contact-form-box{
  padding:32px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.contact-form-box h3{
  margin-bottom:20px;
  color:var(--primary-dark);
  font-size:24px;
}

.contact-form{
  display:grid;
  gap:14px;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  border:1px solid #ddd9cf;
  border-radius:12px;
  outline:none;
  padding:14px 15px;
  color:#28283b;
  background:#fffdf9;
  transition:var(--transition);
}

.contact-form textarea{
  resize:vertical;
  min-height:145px;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(36,27,120,.08);
  background:#fff;
}

.contact-submit-btn{
  width:max-content;
  padding:14px 24px;
  border-radius:11px;
  background:var(--primary);
  color:#fff;
}

.contact-submit-btn:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
}

.form-status{
  min-height:22px;
  font-size:13px;
  font-weight:700;
}

/* =========================
   FOOTER
   ========================= */

.footer{
  position:relative;
  padding-top:65px;
  background:#11102a;
  color:#fff;
}

.wave{
  position:absolute;
  left:0;
  right:0;
  top:-1px;
  height:70px;
  transform:translateY(-98%);
  pointer-events:none;
}

.wave svg{
  width:100%;
  height:100%;
  display:block;
}

.footer-container{
  width:min(1180px,92%);
  margin:0 auto;
  padding:25px 0 45px;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:35px;
}

.footer-box h3{
  margin-bottom:14px;
  color:#ffe0a1;
  font-size:1.25rem;
}

.footer-box p{
  color:rgba(255,255,255,.67);
  font-size:14px;
}

.footer-box ul{
  list-style:none;
}

.footer-box li{
  margin-bottom:8px;
}

.footer-box li a{
  color:rgba(255,255,255,.70);
  font-size:14px;
  transition:var(--transition);
}

.footer-box li a:hover{
  color:#ffe0a1;
  padding-left:4px;
}

.social-icons{
  display:flex;
  gap:9px;
  margin-top:20px;
}

.social-icons a{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  border-radius:50%;
  color:#fff;
  transition:var(--transition);
}

.social-icons a:hover{
  background:var(--gold);
  border-color:var(--gold);
  transform:translateY(-3px);
}

.footer-bottom{
  padding:18px 5%;
  border-top:1px solid rgba(255,255,255,.09);
  text-align:center;
  color:rgba(255,255,255,.55);
  font-size:13px;
}

.footer-credit,
.footer-copyright{
  display:block;
}

.footer-credit{
  margin-bottom:6px;
  color:var(--gold);
  font-size:15px;
  font-weight:800;
}

.footer-copyright{
  color:rgba(255,255,255,.55);
}

/* =========================
   RESPONSIVE — TABLET
   ========================= */

@media (max-width:1000px){
  .navbar{
    gap:14px;
  }

  .nav-links{
    gap:22px;
  }

  .contact-btn{
    min-width:130px;
    padding:14px 18px;
  }

  .hero-text{
    left:6%;
  }

  .cards{
    grid-template-columns:repeat(2,1fr);
  }

  .reasons-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .testimonial-wrapper{
    grid-template-columns:1fr;
  }

  .contact-wrapper{
    grid-template-columns:1fr;
  }

  .footer-container{
    grid-template-columns:repeat(2,1fr);
  }
}

/* =========================
   RESPONSIVE — MOBILE
   ========================= */

@media (max-width:760px){
  .header{
    padding:10px 0;
  }

  .navbar{
    min-height:64px;
    padding:7px 11px;
    border-radius:18px;
  }

  .logo{
    width:65px;
    flex-basis:65px;
  }

  .logo img{
    width:55px;
    height:48px;
  }

  .nav-links{
    gap:13px;
    margin-left:0;
  }

  .nav-links > li > a{
    font-size:12px;
    padding:8px 0;
  }

  .dropdown-menu{
    left:auto;
    right:-35px;
    transform:translateY(8px);
    width:190px;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu{
    transform:translateY(0);
  }

  .contact-btn{
    min-width:auto;
    padding:11px 14px;
    font-size:12px;
  }

  .hero{
    height:680px;
    min-height:600px;
    border-radius:0 0 25px 25px;
  }

  .hero-text{
    top:53%;
    left:7%;
    width:86%;
    transform:translateY(-30%);
  }

  .hero-text::before{
    font-size:8px;
    letter-spacing:1.2px;
    padding:7px 11px;
  }

  .hero-text h2{
    font-size:clamp(39px,11vw,60px);
    letter-spacing:-1.5px;
  }

  .hero-text p{
    font-size:15px;
    margin-bottom:23px;
  }

  .section,
  .testimonial-section{
    padding:70px 0;
  }

  .cards,
  .reasons-grid,
  .testimonial-wrapper,
  .footer-container{
    grid-template-columns:1fr;
  }

  .section:nth-of-type(5) .cards,
  .section:nth-of-type(6) .cards{
    grid-template-columns:1fr;
  }

  .gallery-grid{grid-template-columns:1fr 1fr;gap:12px}
  .gallery-item,.gallery-item:nth-child(1),.gallery-item:nth-child(4),.gallery-item:nth-child(n+7){grid-column:span 1}
  .gallery-item:nth-child(1){grid-column:span 2}
  .gallery-item img,.gallery-item:nth-child(1) img,.gallery-item:nth-child(4) img{height:250px}
  .gallery-item:nth-child(1) img{height:300px}

  .admission-card{
    flex-direction:column;
    padding:24px;
  }

  .step-number{
    width:55px;
    height:55px;
    flex-basis:55px;
  }

  .form-row{
    grid-template-columns:1fr;
  }

  .contact-form-box{
    padding:23px;
  }
}

/* =========================
   SMALL PHONES
   ========================= */

@media (max-width:520px){
  .nav-links{
    gap:9px;
  }

  .nav-links > li > a{
    font-size:11px;
  }

  .nav-links > li:first-child{
    display:none;
  }

  .contact-btn{
    padding:10px 12px;
  }

  .hero{
    min-height:560px;
    height:630px;
  }

  .hero-text h2{
    font-size:39px;
  }

  .hero-text p{
    font-size:14px;
  }

  .gallery-grid{gap:9px}
  .gallery-item img,.gallery-item:nth-child(1) img,.gallery-item:nth-child(4) img{height:190px}
  .gallery-item:nth-child(1) img{height:230px}
  .gallery-item figcaption{padding:11px 12px;min-height:68px}
  .gallery-item figcaption strong{font-size:14px}

  .card,
  .testimonial-card{
    padding:23px;
  }
}

/* Accessibility / reduced motion */
@media (prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    transition:none !important;
    animation:none !important;
  }
}

/* FREE-TEXT GALLERY CATEGORIES */
.gallery-free-category-panel{margin:24px 0;padding:24px;border:1px solid #e7d9c1;border-radius:18px;background:#fff8e7;box-shadow:0 10px 28px rgba(63,36,22,.07)}
.gallery-free-category-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}
.gallery-free-category-heading>i{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#6b3f24;color:#fff}
.gallery-free-category-heading h3{margin:0 0 4px;color:#3f2416}
.gallery-free-category-heading p{margin:0;color:#705f50;font-size:14px}
.gallery-free-category-form{display:flex;gap:12px}
.gallery-category-input{flex:1;min-height:48px;padding:12px 15px;border:1px solid #d9c8ae;border-radius:10px;background:#fffdf9;color:#302319;outline:none}
.gallery-category-input:focus{border-color:#6b3f24;box-shadow:0 0 0 4px rgba(107,63,36,.08)}
.gallery-category-add-btn{min-height:48px;padding:0 20px;border:0;border-radius:10px;background:#6b3f24;color:#fff;font-weight:800;cursor:pointer}
.gallery-category-add-btn:hover{background:#3f2416}
.gallery-category-help{display:block;margin-top:10px;color:#705f50}
.gallery-filters{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:28px auto 34px}
.gallery-filter-btn{border:1px solid #e7d9c1;border-radius:999px;padding:10px 17px;background:#fff;color:#3f2416;font-weight:750;cursor:pointer;transition:all .25s ease}
.gallery-filter-btn:hover,.gallery-filter-btn.active{background:#6b3f24;color:#fff;border-color:#6b3f24}
.gallery-item{margin:0;overflow:hidden;border-radius:18px;background:#fff;border:1px solid #e7d9c1;box-shadow:0 10px 30px rgba(63,36,22,.08)}
.gallery-item img{width:100%;height:100%;min-height:250px;object-fit:cover}
.gallery-item figcaption{padding:14px 16px 16px;background:#fff}
.gallery-item figcaption strong{display:block;color:#3f2416;font-size:16px}
.gallery-item figcaption span{display:block;margin-top:3px;color:#8a5a36;font-size:13px;font-weight:650}
@media(max-width:700px){.gallery-free-category-form{flex-direction:column}.gallery-category-add-btn{width:100%}.gallery-filters{justify-content:flex-start}}


/* ==========================================================
   GALLERY SIZE & LAYOUT FIX
   ========================================================== */

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:20px;
  width:100%;
  align-items:start;
}

.gallery-grid .gallery-item{
  grid-column:span 4;
  width:100%;
  min-width:0;
  margin:0;
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  border:1px solid #e7d9c1;
  box-shadow:0 10px 30px rgba(63,36,22,.08);
}

.gallery-grid .gallery-item:nth-child(1),
.gallery-grid .gallery-item:nth-child(4){
  grid-column:span 6;
}

.gallery-grid .gallery-item img{
  display:block;
  width:100%;
  height:300px;
  min-height:0;
  object-fit:cover;
  object-position:center;
  background:#f3e6cc;
}

.gallery-grid .gallery-item:nth-child(1) img,
.gallery-grid .gallery-item:nth-child(4) img{
  height:360px;
}

.gallery-grid .gallery-item figcaption{
  min-height:72px;
  padding:14px 16px 16px;
  background:#fff;
  box-sizing:border-box;
}

.gallery-grid .gallery-item figcaption strong{
  display:block;
  line-height:1.35;
  color:#3f2416;
  font-size:16px;
}

.gallery-grid .gallery-item figcaption span{
  display:block;
  margin-top:4px;
  line-height:1.3;
  color:#8a5a36;
  font-size:13px;
  font-weight:650;
}

@media(max-width:900px){
  .gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }

  .gallery-grid .gallery-item,
  .gallery-grid .gallery-item:nth-child(1),
  .gallery-grid .gallery-item:nth-child(4){
    grid-column:span 1;
  }

  .gallery-grid .gallery-item img,
  .gallery-grid .gallery-item:nth-child(1) img,
  .gallery-grid .gallery-item:nth-child(4) img{
    height:260px;
  }
}

@media(max-width:600px){
  .gallery-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .gallery-grid .gallery-item,
  .gallery-grid .gallery-item:nth-child(1),
  .gallery-grid .gallery-item:nth-child(4){
    grid-column:span 1;
  }

  .gallery-grid .gallery-item img,
  .gallery-grid .gallery-item:nth-child(1) img,
  .gallery-grid .gallery-item:nth-child(4) img{
    height:240px;
  }
}


/* ==========================================================
   SIX FEATURE IMAGES / ICONS — BOUNCING EFFECT
   ========================================================== */

.cards{
  align-items:stretch;
}

.card{
  position:relative;
  overflow:visible;
}

.card-icon,
.card img{
  width:58px;
  height:58px;
  min-width:58px;
  min-height:58px;
  object-fit:cover;
  object-position:center;
  border-radius:16px;
  display:grid;
  place-items:center;
  margin-bottom:22px;
  transform-origin:center bottom;
  animation:dabmorFeatureBounce 2.4s ease-in-out infinite;
  will-change:transform;
}

.card-icon{
  background:#eeeaff;
  color:#6b3f24;
}

/* Six cards bounce in sequence. */
.card:nth-child(1) .card-icon,
.card:nth-child(1) img{animation-delay:0s;}

.card:nth-child(2) .card-icon,
.card:nth-child(2) img{animation-delay:.18s;}

.card:nth-child(3) .card-icon,
.card:nth-child(3) img{animation-delay:.36s;}

.card:nth-child(4) .card-icon,
.card:nth-child(4) img{animation-delay:.54s;}

.card:nth-child(5) .card-icon,
.card:nth-child(5) img{animation-delay:.72s;}

.card:nth-child(6) .card-icon,
.card:nth-child(6) img{animation-delay:.90s;}

@keyframes dabmorFeatureBounce{
  0%,100%{transform:translateY(0) scale(1);}
  18%{transform:translateY(-8px) scale(1.03);}
  32%{transform:translateY(0) scale(.98);}
  46%{transform:translateY(-4px) scale(1.01);}
  60%{transform:translateY(0) scale(1);}
}

.card:hover .card-icon,
.card:hover img{
  animation-play-state:paused;
  transform:translateY(-7px) scale(1.06);
  transition:transform .25s ease;
}

@media (prefers-reduced-motion:reduce){
  .card-icon,
  .card img{
    animation:none;
  }
}

/* Compact 4:3 frontend gallery tiles. */
.gallery-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.gallery-grid .gallery-item,
.gallery-grid .gallery-item:nth-child(1),
.gallery-grid .gallery-item:nth-child(4){
  grid-column:span 1;
}
.gallery-grid .gallery-item img,
.gallery-grid .gallery-item:nth-child(1) img,
.gallery-grid .gallery-item:nth-child(4) img{
  width:100%;
  height:auto;
  aspect-ratio:4 / 3;
  min-height:0;
  object-fit:cover;
}
@media(max-width:900px){
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}
@media(max-width:600px){
  .gallery-grid{grid-template-columns:1fr;gap:16px}
}

.gallery-filter:hover,
.gallery-filter.active,
.gallery-filter-btn:hover,
.gallery-filter-btn.active{
  background:#f3e6cc;
  color:var(--brown-dark);
  border-color:#c9a66b;
}

.news-item{
  position:relative;
  overflow:hidden;
  padding:20px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fffdf7;
  box-shadow:var(--shadow-soft);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
#publicLatestNews{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-top:20px}
.news-item:hover{transform:translateY(-4px);border-color:#c9a66b;box-shadow:0 16px 30px rgba(63,36,22,.14)}
.news-item img{display:block;width:100%;aspect-ratio:4 / 3;object-fit:cover;border-radius:9px;margin-bottom:14px}
.news-item .news-category{display:inline-block;margin-bottom:7px;color:var(--brown-light);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.news-item h3{margin:0 0 8px;color:var(--brown-dark);line-height:1.3}
.news-item p{margin:0;color:#5f5146;line-height:1.65;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.location-card{padding:18px;border:1px solid var(--border);border-radius:12px;background:#fffdf7;box-shadow:var(--shadow-soft);margin-top:14px}
.location-card h3{margin:0 0 7px;color:var(--brown-dark)}
.location-card p{margin:0;color:#5f5146;line-height:1.65}
.location-map{margin-top:14px;overflow:hidden;border-radius:9px;aspect-ratio:16 / 7;background:#f3e6cc}
.location-map iframe{width:100%;height:100%;border:0}