/* ==========================================================================
   TNHS Official Website — style.css
   Color Scheme: Red, Dark Red, Maroon, White
   ========================================================================== */

/* ===================== CSS VARIABLES ===================== */
:root {
  --red:        #CC0000;
  --red-dark:   #990000;
  --maroon:     #6B0000;
  --maroon-deep:#4A0000;
  --white:      #FFFFFF;
  --cream:      #FFF5F5;
  --gray-100:   #f8f0f0;
  --gray-200:   #e8dede;
  --gray-400:   #c09090;
  --gray-500:   #8a6060;
  --gray-700:   #5a3a3a;
  --text-dark:  #2a0a0a;

  /* Gradients */
  --grad-main:       linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 40%, var(--red-dark) 75%, var(--red) 100%);
  --grad-header:     linear-gradient(to right, var(--maroon-deep), var(--maroon), var(--red-dark));
  --grad-hero:       linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 50%, var(--red-dark) 100%);
  --grad-footer:     linear-gradient(135deg, #1a0000, var(--maroon-deep), #1a0000);
  --grad-card-top:   linear-gradient(to right, var(--red-dark), var(--red));
  --grad-accent:     linear-gradient(90deg, var(--red), var(--red-dark), var(--maroon));

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;

  --shadow-sm:  0 2px 8px rgba(107,0,0,0.12);
  --shadow-md:  0 4px 20px rgba(107,0,0,0.18);
  --shadow-lg:  0 8px 36px rgba(107,0,0,0.28);
  --radius:     10px;
  --radius-lg:  16px;
  --transition: 0.3s ease;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}
.btn-white {
  background: var(--white);
  color: var(--maroon);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.btn-red {
  background: var(--grad-card-top);
  color: var(--white);
  border: none;
}
.btn-red:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===================== SECTION SHARED ===================== */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-100); }
.section-dark {
  background: var(--grad-main);
  color: var(--white);
}

.section-header { text-align: center; margin-bottom: 52px; }
.section-header.light .section-title { color: var(--white); }
.section-header.light .section-tag  { color: rgba(255,255,255,0.65); }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  color: var(--maroon);
  margin-bottom: 16px;
  line-height: 1.2;
}
.title-line {
  width: 56px; height: 4px;
  background: var(--grad-accent);
  margin: 0 auto;
  border-radius: 2px;
}
.title-line.white { background: rgba(255,255,255,0.5); }

/* ===================== TOP BAR ===================== */
.top-bar {
  background: var(--maroon-deep);
  color: rgba(255,255,255,0.8);
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 2px solid var(--red);
}
.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}
.top-bar span { display: flex; align-items: center; gap: 6px; }
.top-bar i { color: rgba(255,180,180,0.9); }

/* Admin portal buttons in top-bar */
.portal-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  line-height: 1.6;
  cursor: pointer;
  font-family: inherit;
  background: none;
}
.portal-btn-login {
  color: rgba(255,210,180,0.95);
  border-color: rgba(255,160,140,0.45);
}
.portal-btn-login:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,200,180,0.8);
  color: #fff;
}
.portal-btn-register {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.portal-btn-register:hover {
  background: var(--maroon);
  border-color: var(--maroon);
}
.portal-btn-dashboard {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.portal-btn-dashboard:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
}
.portal-btn-logout {
  color: rgba(255,180,160,0.85);
  border-color: rgba(255,140,120,0.35);
}
.portal-btn-logout:hover {
  background: rgba(255,0,0,0.12);
  border-color: rgba(255,140,120,0.7);
  color: #ffb0a0;
}
.portal-divider {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.2);
  margin: 0 4px;
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--grad-header);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo-placeholder {
  width: 60px; height: 60px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
}
.logo-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.school-name {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.8vw, 19px);
  color: var(--white);
  line-height: 1.2;
  font-weight: 700;
}
.school-tagline {
  font-size: 10.5px;
  color: rgba(255,200,200,0.85);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Nav */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 4px;
  transition: all var(--transition);
  white-space: nowrap;
  display: block;
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.18);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block; width: 26px; height: 2.5px;
  background: var(--white); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================== HERO ===================== */
/* ===================== HERO SLIDESHOW ===================== */

/* Outer wrapper */
.hero {
  position: relative;
  height: 580px;          /* fixed height so absolute slides have something to fill */
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--maroon-deep); /* fallback while images load */
}

/* ── Individual slide panels ── */
/*
  Each .hero-slide fills the full hero area.
  Set its background-image in the HTML:
    style="background-image: url('uploads/your-photo.jpg')"
  Recommended: 1600×900 px, JPG or WebP.
*/
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--maroon-deep); /* colour shown if no image set */

  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;

  /* Ken Burns: slow subtle zoom on each slide */
  animation: kenBurns 5s ease-in-out infinite alternate;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

@keyframes kenBurns {
  from { transform: scale(1);    }
  to   { transform: scale(1.07); }
}

/*
  PLACEHOLDER BACKGROUNDS — shown when no image file is uploaded yet.
  These are colour gradients for each slide so the hero looks good
  even before you add real photos.
  Once you upload your images, they will automatically cover these.
*/
.hero-slide.slide-1 { background-color: #3a0000; }
.hero-slide.slide-2 { background-color: #1a2a4a; }
.hero-slide.slide-3 { background-color: #1a3a2a; }

/* ── Dark overlay — sits above slides, below text ── */
/*
  Adjust the rgba alpha values to control darkness.
  0.65 = fairly dark. Lower = lighter, shows more of your photo.
*/
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.40) 55%,
    rgba(0, 0, 0, 0.20) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ── Text content — above overlay ── */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 90px 24px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.35);
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 54px);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.55);
}
.hero-text {
  font-size: 16.5px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}


/* ── Dot indicators ── */
.hero-dots {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 9px;
  z-index: 4;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 5px;
}
.dot:hover:not(.active) { background: rgba(255,255,255,0.7); }

/* ── Mobile ── */
@media (max-width: 600px) {
  .hero         { height: 480px; }
  .hero-content { padding: 70px 16px; }
}




/* ===================== CARDS (Announcements) ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--red);
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--maroon);
}
.card-tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  width: fit-content;
}
.card-tag.enrollment { background: #ffe0e0; color: #8b0000; }
.card-tag.exam       { background: #fff0cc; color: #7a4f00; }
.card-tag.memo       { background: #ffe8e8; color: var(--maroon); }
.card-tag.activity   { background: #e8f5e9; color: #1b5e20; }
.card-date { font-size: 12.5px; color: var(--gray-500); display: flex; align-items: center; gap: 6px; }
.card-date i { color: var(--red-dark); }
.card-title { font-family: var(--font-display); font-size: 17px; color: var(--maroon); line-height: 1.3; }
.card-text  { font-size: 14.5px; color: var(--gray-700); flex: 1; }
.card-link  {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red-dark); font-weight: 700; font-size: 14px; margin-top: auto;
  transition: color var(--transition);
}
.card-link:hover { color: var(--maroon); }
.card-link i { font-size: 11px; }

/* ===================== NEWS & EVENTS ===================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.news-item {
  display: flex; gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  background: var(--white);
}
.news-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--red);
}
.news-img-placeholder {
  width: 64px; height: 64px;
  background: var(--grad-main);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--white);
  flex-shrink: 0;
}
.news-img-placeholder.ceremony  { background: linear-gradient(135deg, #6a0dad, #9b59b6); }
.news-img-placeholder.pta       { background: linear-gradient(135deg, #1a5e20, #27ae60); }
.news-img-placeholder.foundation{ background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.news-img-placeholder.science   { background: linear-gradient(135deg, #0a4a8f, #1a6fdb); }
.news-img-placeholder.grad      { background: linear-gradient(135deg, var(--maroon), var(--red-dark)); }
.news-body { flex: 1; }
.news-cat { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red-dark); }
.news-body h4 { font-family: var(--font-display); font-size: 15px; color: var(--maroon); margin: 4px 0 6px; line-height: 1.3; }
.news-body p  { font-size: 13.5px; color: var(--gray-700); line-height: 1.6; }
.news-date    { font-size: 12px; color: var(--gray-500); display: block; margin-top: 8px; font-style: italic; }

/* ===================== QUICK LINKS ===================== */
.quick-links { background: var(--grad-main); }
.links-grid {
  display: flex;
  flex-wrap: wrap; gap: 20px;
  justify-content: center;
}
.quick-link-card {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  text-align: center; color: var(--white);
  min-width: 148px;
  transition: all var(--transition);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.quick-link-card:hover {
  background: rgba(255,255,255,0.22);
  border-color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.quick-link-card i   { font-size: 30px; display: block; margin-bottom: 12px; }
.quick-link-card span{ font-size: 13.5px; font-weight: 700; display: block; }

/* ===================== PRINCIPAL ===================== */
.principal-card {
  display: flex; gap: 52px; align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--red);
}
.principal-photo { text-align: center; flex-shrink: 0; }
.photo-placeholder {
  width: 140px; height: 140px;
  background: var(--grad-main);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: var(--white);
  margin: 0 auto 14px;
  border: 4px solid var(--red);
}
.principal-name { font-family: var(--font-display); font-size: 17px; color: var(--maroon); }
.principal-role { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.principal-message { position: relative; font-style: normal; }
.quote-mark {
  font-family: var(--font-display); font-size: 80px;
  color: var(--red); opacity: 0.25;
  line-height: 0; position: absolute; top: 24px; left: -16px;
}
.principal-message p { font-size: 16px; color: var(--gray-700); margin-bottom: 16px; line-height: 1.8; text-align: justify; }

/* ===================== OVERVIEW ===================== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.overview-card {
  background: var(--white);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.overview-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.overview-card.history { border-top: 4px solid var(--red); }
.overview-card.mission { border-top: 4px solid var(--red-dark); }
.overview-card.vision  { border-top: 4px solid var(--maroon); }
.overview-card.values  { border-top: 4px solid var(--maroon-deep); }
.ov-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
  background: var(--gray-100); color: var(--red-dark);
}
.overview-card h3 { font-family: var(--font-display); font-size: 20px; color: var(--maroon); margin-bottom: 12px; }
.overview-card p  { font-size: 14.5px; color: var(--gray-700); line-height: 1.75; }
.overview-card ul { display: flex; flex-direction: column; gap: 10px; }
.overview-card ul li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--gray-700); }
.overview-card ul li i { color: var(--red-dark); font-size: 12px; flex-shrink: 0; }

/* ===================== PROGRAMS ===================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.program-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; color: var(--white);
  transition: all var(--transition);
}
.program-card:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.program-card i    { font-size: 36px; color: rgba(255,200,200,0.9); margin-bottom: 16px; display: block; }
.program-card h4   { font-family: var(--font-display); font-size: 18px; margin-bottom: 10px; }
.program-card p    { font-size: 13.5px; color: rgba(255,255,255,0.75); line-height: 1.65; }

/* ===================== GALLERY ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--white);
  transition: all var(--transition);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery-img {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,0.9);
  position: relative; overflow: hidden;
}
.gallery-img::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.25); opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-img::after { opacity: 1; }
.gallery-img.campus    { background: var(--grad-main); }
.gallery-img.sports    { background: linear-gradient(135deg, #1a5e20, #27ae60); }
.gallery-img.library   { background: linear-gradient(135deg, #4a0072, #7b1fa2); }
.gallery-img.lab       { background: linear-gradient(135deg, #0a4a8f, #1565c0); }
.gallery-img.clinic    { background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.gallery-img.stage     { background: linear-gradient(135deg, var(--maroon-deep), var(--maroon)); }
.gallery-caption { text-align: center; padding: 14px 12px; font-size: 14px; font-weight: 600; color: var(--maroon); }

/* ===================== FACULTY ===================== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}
.faculty-card {
  text-align: center; padding: 28px 16px;
  background: rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition); color: var(--white);
}
.faculty-card:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-4px);
}
.faculty-photo {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: rgba(255,200,200,0.9);
  margin: 0 auto 14px;
  border: 3px solid rgba(255,255,255,0.4);
}
.faculty-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; font-family: var(--font-display); }
.faculty-card p  { font-size: 12.5px; color: rgba(255,255,255,0.7); }

/* ===================== CONTACT ===================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px; align-items: start;
}
.contact-info h3, .contact-form-wrapper h3 {
  font-family: var(--font-display); font-size: 24px; color: var(--maroon);
  margin-bottom: 28px; padding-bottom: 12px;
  border-bottom: 3px solid var(--red);
}
.info-item { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.info-item > i {
  width: 40px; height: 40px; background: var(--grad-main); color: rgba(255,200,200,0.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.info-item strong { display: block; color: var(--maroon); font-size: 14px; margin-bottom: 2px; }
.info-item p { font-size: 14.5px; color: var(--gray-700); }
.map-placeholder {
  margin-top: 24px; background: var(--gray-100);
  border: 2px dashed var(--gray-200); border-radius: var(--radius);
  height: 160px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--gray-500); font-size: 14px;
}
.map-placeholder i { font-size: 32px; color: var(--red); opacity: 0.4; }

/* Form */
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--maroon); margin-bottom: 7px; }
.form-group label span { color: var(--red); }
.form-group input,
.form-group textarea,
.form-group select {
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  padding: 12px 16px; font-family: var(--font-body); font-size: 15px;
  color: var(--text-dark); background: var(--white);
  transition: border-color var(--transition); outline: none; resize: vertical;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red-dark);
  box-shadow: 0 0 0 3px rgba(153,0,0,0.1);
}
.form-group input.error,
.form-group textarea.error { border-color: var(--red); }
.error-msg { font-size: 12.5px; color: var(--red); margin-top: 5px; display: none; }
.error-msg.visible { display: block; }
.form-success {
  margin-top: 16px; padding: 14px 18px;
  background: #d4edda; color: #155724;
  border-radius: var(--radius); font-size: 14.5px;
  display: flex; align-items: center; gap: 8px;
}

/* ===================== FOOTER ===================== */
.site-footer { background: var(--grad-footer); color: rgba(255,255,255,0.75); }
.footer-top  { padding: 60px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo-wrap {
  width: 56px; height: 56px;
  background: #fff;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--white); margin-bottom: 14px;
  overflow: hidden;
}
.footer-logo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.footer-brand h3 { font-family: var(--font-display); font-size: 18px; color: var(--white); margin-bottom: 6px; }
.footer-brand p  { font-size: 13.5px; margin-bottom: 4px; }
.footer-disclaimer { font-size: 12px; font-style: italic; color: rgba(255,255,255,0.45); margin-top: 10px; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; color: rgba(255,180,180,0.9);
  font-size: 14px; font-weight: 600; transition: color var(--transition);
}
.social-link:hover { color: var(--white); }
.footer-links h4, .footer-contact h4 {
  font-size: 13px; font-weight: 700; color: var(--white);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 18px; padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.2);
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links ul li a { font-size: 13.5px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links ul li a:hover { color: rgba(255,200,200,0.9); }
.footer-contact p { font-size: 13.5px; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: rgba(255,180,180,0.8); min-width: 14px; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-card-top); color: var(--white);
  border: none; font-size: 16px; cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: all var(--transition); z-index: 500;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover   { opacity: 0.85; transform: translateY(-3px); }

/* ===================== PAGE HERO (inner pages) ===================== */
/* ── Page Hero (inner pages) ──────────────────────────────────────
   Each page's hero div accepts a background image set inline:
     style="background-image: url('uploads/your-photo.jpg')"
   If no image is set the maroon gradient shows as fallback.
   Recommended image: 1600 × 600 px, landscape, JPG or WebP.
──────────────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
  /* Fallback gradient — shown when no background-image is set */
  background-color: var(--maroon-deep);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Subtle Ken Burns zoom */
  animation: phKenBurns 14s ease-in-out infinite alternate;
}
@keyframes phKenBurns {
  from { background-size: 100%; }
  to   { background-size: 107%; }
}
/* Dark gradient overlay — keeps text readable over any photo */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(40, 0, 0, 0.68) 0%,
    rgba(80, 0, 0, 0.52) 50%,
    rgba(40, 0, 0, 0.72) 100%
  );
  z-index: 0;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 46px);
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}
.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.breadcrumb   { font-size: 13px; color: rgba(255,200,200,0.8); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,200,200,0.9); }
.breadcrumb a:hover { color: var(--white); }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== ADMIN BADGE ===================== */
.admin-edit-btn {
  display: none; /* shown only when logged in */
  position: absolute; top: 8px; right: 8px;
  background: rgba(204,0,0,0.85); color: var(--white);
  border: none; border-radius: 4px;
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  cursor: pointer; gap: 4px; align-items: center;
  transition: background var(--transition);
  z-index: 10;
}
.admin-edit-btn:hover { background: var(--maroon); }
body.admin-mode .admin-edit-btn { display: inline-flex; }
body.admin-mode .editable { outline: 2px dashed rgba(204,0,0,0.35); cursor: text; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .contact-wrapper { grid-template-columns: 1fr; }
  .principal-card { flex-direction: column; align-items: center; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--maroon-deep);
    border-top: 2px solid var(--red);
    padding: 16px 0; box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }
  .main-nav.open { display: block; }
  .main-nav ul   { flex-direction: column; gap: 0; }
  .nav-link      { display: block; padding: 12px 24px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .site-header   { position: relative; }
  .section       { padding: 56px 0; }
  .principal-card{ padding: 28px 20px; }
  .overview-grid, .cards-grid, .news-grid { grid-template-columns: 1fr; }
  .programs-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .faculty-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero-content  { padding: 50px 0 60px; }
}
@media (max-width: 480px) {
  .programs-grid, .gallery-grid, .faculty-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .top-bar-inner { justify-content: center; font-size: 11.5px; gap: 10px; }
}

/* ===================== POST DETAIL PAGE ===================== */
.post-hero {
  background: var(--grad-hero);
  padding: 52px 0 40px;
  color: var(--white);
}
.post-breadcrumb {
  font-size: 13px;
  color: rgba(255,200,200,.8);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.post-breadcrumb a { color: rgba(255,200,200,.8); }
.post-breadcrumb a:hover { color: #fff; }
.post-breadcrumb i { font-size: 10px; }
.post-title-hero {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.25;
  margin-bottom: 16px;
  color: #fff;
}
.post-meta-hero {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(255,220,220,.85);
}
.post-meta-hero span { display: flex; align-items: center; gap: 6px; }
.post-body-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.post-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
  max-height: 420px;
  object-fit: cover;
}
.post-image-placeholder {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  background: var(--grad-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; color: rgba(255,200,200,.4);
}
.post-content p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.post-back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 36px; padding: 11px 24px;
  background: var(--grad-main); color: #fff;
  border-radius: 5px; font-weight: 700; font-size: 14px;
  transition: opacity var(--transition);
}
.post-back-btn:hover { opacity: .87; color: #fff; }
.post-loading {
  text-align: center; padding: 80px 20px;
  color: var(--gray-500);
}
.post-loading i { font-size: 36px; display: block; margin-bottom: 12px; color: var(--red); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.post-not-found {
  text-align: center; padding: 80px 20px;
}
.post-not-found i { font-size: 48px; color: var(--red); margin-bottom: 16px; display: block; }

/* ===================== IMAGE UPLOAD IN CARDS ===================== */
.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
.card-image-placeholder {
  width: 100%;
  height: 140px;
  background: var(--grad-main);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: rgba(255,200,200,.4);
}
.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}