/* ============================================================
   T.R. PUBLIC SCHOOL - Main Stylesheet
   Location: Aimialapur, Ayodhya - 224172
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary:    #c0392b;
  --primary-dk: #922b21;
  --secondary:  #f39c12;
  --accent:     #1a5276;
  --light:      #fef9f0;
  --white:      #ffffff;
  --dark:       #1c1c1c;
  --gray:       #6c757d;
  --light-gray: #f4f6f8;
  --border:     #e0e0e0;
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.15);
  --radius:     10px;
  --radius-lg:  18px;
  --transition: all 0.3s ease;
  --font-main:  'Poppins', sans-serif;
  --font-head:  'Playfair Display', serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--accent);
  color: var(--white);
  font-size: 0.78rem;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: var(--white); transition: var(--transition); }
.top-bar a:hover { color: var(--secondary); }
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.top-bar i { margin-right: 5px; color: var(--secondary); }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-wrap img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
}
.logo-text h1 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.2;
}
.logo-text span {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

/* NAV */
nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 10px 13px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--primary);
  background: rgba(192,57,43,0.08);
}
.nav-list > li > a.active {
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   CONTAINER
   ============================================================ */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  height: 580px;
  background: var(--dark);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  position: absolute;
  inset: 0;
}
.slide-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
  padding: 0 5%;
  animation: slideUp 0.8s ease;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.slide-content .badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.slide-content h2 {
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.slide-content p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  opacity: 0.92;
}
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-secondary { background: var(--secondary); color: var(--dark); }
.btn-secondary:hover { background: #d4850a; transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #154360; transform: translateY(-2px); }

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.dot.active { background: var(--secondary); transform: scale(1.3); }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
}
/* Hide slider arrows on mobile */
@media (max-width: 768px) {
  .slider-arrow,
  .slider-arrow.prev,
  .slider-arrow.next {
    display: none !important;
  }
}

.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ============================================================
   NOTICE TICKER
   ============================================================ */
.notice-ticker {
  background: var(--white);;
  color: var(--black);
  padding: 10px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--secondary);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 16px;
  border-radius: 0 20px 20px 0;
  display: flex; align-items: center; gap: 6px;
}
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-content {
  display: flex;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  gap: 50px;
}
.ticker-content span { font-size: 0.85rem; }
.ticker-content i { color: var(--secondary); margin-right: 6px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .sub-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.97rem;
}
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  margin: 14px auto 0;
}

/* ============================================================
   STATS / COUNTER STRIP
   ============================================================ */
.stats-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  padding: 40px 0;
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item { padding: 10px; }
.stat-item .number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--secondary);
  line-height: 1;
}
.stat-item .label { font-size: 0.88rem; opacity: 0.9; margin-top: 6px; }
.stat-item i { font-size: 2rem; opacity: 0.7; margin-bottom: 8px; }

/* ============================================================
   WELCOME / ABOUT SECTION
   ============================================================ */
.welcome-section { background: var(--light); }
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.welcome-images {
  position: relative;
  height: 460px;
}
.img-main {
  width: 80%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.img-float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.experience-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--secondary);
  color: var(--dark);
  padding: 16px;
  border-radius: 50%;
  width: 90px; height: 90px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  font-weight: 800;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  line-height: 1.2;
}
.experience-badge strong { font-size: 1.6rem; display: block; }
.welcome-text h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.welcome-text p { color: var(--gray); margin-bottom: 20px; font-size: 0.96rem; }
.feature-list { margin-bottom: 28px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list i { color: var(--primary); font-size: 1.1rem; margin-top: 3px; flex-shrink: 0; }

/* ============================================================
   FEATURES CARDS
   ============================================================ */
.features-section { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.feature-card .icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, rgba(192,57,43,0.1), rgba(243,156,18,0.1));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.7rem;
  color: var(--primary);
  transition: var(--transition);
}
.feature-card:hover .icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}
.feature-card h3 { font-size: 1.05rem; color: var(--accent); margin-bottom: 10px; }
.feature-card p { font-size: 0.87rem; color: var(--gray); }

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section { background: var(--light-gray); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(192,57,43,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 1.8rem; }

/* ============================================================
   ADMISSION CTA
   ============================================================ */
.admission-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #0d3349 100%);
  color: var(--white);
  padding: 60px 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-text h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  margin-bottom: 12px;
}
.cta-text p { opacity: 0.88; font-size: 0.97rem; }
.cta-text .badge-strip {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px;
}
.badge-strip span {
  background: rgba(255,255,255,0.15);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.25);
}
.cta-actions { display: flex; gap: 14px; flex-direction: column; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.testimonial-card .quote-icon {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 16px; right: 20px;
  font-family: serif;
  line-height: 1;
}
.testimonial-card p { font-style: italic; color: var(--gray); margin-bottom: 18px; font-size: 0.93rem; }
.reviewer { display: flex; align-items: center; gap: 14px; }
.reviewer-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; font-weight: 700;
  flex-shrink: 0;
}
.reviewer-info h4 { font-size: 0.93rem; color: var(--dark); }
.reviewer-info span { font-size: 0.8rem; color: var(--gray); }
.stars { color: var(--secondary); font-size: 0.8rem; margin-top: 3px; }

/* ============================================================
   PAGE HERO (Inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 50%, var(--accent) 100%);
  padding: 70px 0 50px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  margin-bottom: 12px;
  position: relative;
}
.page-hero p { opacity: 0.88; font-size: 1rem; max-width: 500px; margin: 0 auto 18px; position: relative; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 0.85rem; opacity: 0.8;
  position: relative;
}
.breadcrumb a:hover { color: var(--secondary); }

/* ============================================================
   CARDS / INFO BOXES
   ============================================================ */
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.info-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.info-card h3 { font-size: 1.15rem; color: var(--accent); margin-bottom: 12px; }
.info-card p, .info-card li { color: var(--gray); font-size: 0.92rem; }
.info-card ul { padding-left: 4px; }
.info-card ul li { padding: 6px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 8px; }
.info-card ul li:last-child { border-bottom: none; }
.info-card ul li i { color: var(--primary); flex-shrink: 0; margin-top: 3px; }

/* ============================================================
   TABLES
   ============================================================ */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.styled-table th {
  background: var(--primary);
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
}
.styled-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}
.styled-table tr:last-child td { border-bottom: none; }
.styled-table tr:nth-child(even) td { background: var(--light-gray); }
.styled-table tr:hover td { background: rgba(192,57,43,0.04); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.93rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-error { font-size: 0.8rem; color: var(--primary); margin-top: 4px; display: none; }
.form-error.show { display: block; }
.input-wrap { position: relative; }
.input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 0.9rem;
}
.input-wrap input,
.input-wrap select { padding-left: 40px; }

/* Success Alert */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 10px;
}
.alert.show { display: flex; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}
.contact-info-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
}
.contact-info-card h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 24px; }
.contact-detail {
  display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start;
}
.contact-detail .ci-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-top: 2px;
}
.contact-detail h4 { font-size: 0.8rem; opacity: 0.75; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 1px; }
.contact-detail p { font-size: 0.93rem; }
.social-links { display: flex; gap: 12px; margin-top: 28px; }
.social-links a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.95rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--secondary); color: var(--dark); transform: translateY(-3px); }
.map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 30px;
  box-shadow: var(--shadow);
  height: 260px;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: var(--gray);
}
.map-box i { font-size: 2.5rem; color: var(--primary); }

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  transition: var(--transition);
}
.accordion-header:hover { background: var(--light); }
.accordion-header.active { background: var(--primary); color: var(--white); }
.accordion-header i { transition: var(--transition); font-size: 0.85rem; }
.accordion-header.active i { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  background: var(--light);
}
.accordion-body.open { max-height: 400px; }
.accordion-body-inner { padding: 18px 20px; font-size: 0.92rem; color: var(--gray); }
.accordion-body-inner ul { padding-left: 16px; list-style: disc; }
.accordion-body-inner ul li { margin-bottom: 6px; }

/* ============================================================
   TABS
   ============================================================ */
.tabs-header {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 6px 6px 0 0;
}
.tab-btn:hover { color: var(--primary); background: rgba(192,57,43,0.06); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(192,57,43,0.06); }
.tab-panel { display: none; animation: fadeIn 0.4s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   IMAGE GRID (Infrastructure)
   ============================================================ */
.img-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.img-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.img-box {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 220px;
  box-shadow: var(--shadow);
}
.img-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.img-box:hover img { transform: scale(1.06); }
.img-box .img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white; padding: 20px 14px 12px;
  font-size: 0.85rem; font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #0f1923;
  color: rgba(255,255,255,0.8);
}
.footer-top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand .logo-wrap img { width: 70px; height: 70px; margin-bottom: 16px; }
.footer-brand h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); margin-bottom: 6px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; margin-bottom: 18px; }
.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 3px;
  background: var(--secondary);
  border-radius: 3px;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: flex; align-items: center; gap: 7px;
}
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
.footer-links a i { font-size: 0.75rem; color: var(--secondary); }
.footer-contact-item {
  display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start;
}
.footer-contact-item i {
  color: var(--secondary);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-contact-item span { font-size: 0.85rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom span { color: var(--secondary); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--secondary); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 14px rgba(192,57,43,0.4);
  border: none;
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--primary-dk); transform: translateY(-3px); }

/* ============================================================
   MOBILE OVERLAY NAV
   ============================================================ */
.mobile-nav{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
opacity:0;
visibility:hidden;
pointer-events:none;
transition:0.3s;
z-index:999;
}

.mobile-nav.open{
opacity:1;
visibility:visible;
pointer-events:auto;
}
.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  padding: 0 0 30px;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head {
  background: var(--primary);
  padding: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav-head h3 { color: white; font-size: 1rem; }
.mobile-nav-close {
  background: none; color: white; font-size: 1.3rem;
}
.mobile-nav-list { padding: 12px; }
.mobile-nav-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: 8px;
  transition: var(--transition);
}
.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  background: rgba(192,57,43,0.1);
  color: var(--primary);
}
.mobile-nav-list a i { font-size: 0.95rem; color: var(--primary); width: 18px; }

/* ============================================================
   DISCLOSURE TABLE
   ============================================================ */
.disclosure-section { padding: 60px 0; }
.disclosure-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 32px;
}
.disclosure-card-header {
  background: linear-gradient(135deg, var(--accent), #1a4f72);
  color: white;
  padding: 18px 24px;
  display: flex; align-items: center; gap: 12px;
}
.disclosure-card-header i { font-size: 1.3rem; color: var(--secondary); }
.disclosure-card-header h3 { font-size: 1.05rem; }
.disclosure-card-body { padding: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 40px; }
  .welcome-images { height: 320px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-item.wide, .gallery-item.tall { grid-column: unset; grid-row: unset; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; }
  .contact-grid { grid-template-columns: 1fr; }
  .img-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .top-bar .container { justify-content: center; }
  .top-bar-left, .top-bar-right { gap: 10px; font-size: 0.74rem; }
  nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .hero { height: 440px; }
  .slide-content h2 { font-size: 1.8rem; }
  .slide-content p { font-size: 0.9rem; }
  .section-header h2 { font-size: 1.7rem; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.8rem; }
  .img-grid-3, .img-grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .welcome-images { height: 260px; }
  .img-float { display: none; }
  .experience-badge { width: 70px; height: 70px; font-size: 0.68rem; }
  .experience-badge strong { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .hero { height: 380px; }
  .slide-content h2 { font-size: 1.5rem; }
  .btn { padding: 10px 20px; font-size: 0.83rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .tabs-header { gap: 4px; }
  .tab-btn { padding: 8px 14px; font-size: 0.82rem; }
  .disclosure-card-body { padding: 14px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  header, footer, #back-to-top, .notice-ticker { display: none; }
  body { font-size: 11pt; }
}
