/*
Theme Name:        Evergreen Academy
Theme URI:         https://evergreenacademy.edu
Author:            Evergreen Academy
Author URI:        https://evergreenacademy.edu
Description:       A professional, fully featured school WordPress theme with Bootstrap 5, hero slider, programs, events, testimonials, news archive, and single post layouts. Built with a navy & gold colour palette and Playfair Display typography.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       evergreen-academy
Tags:              education, school, blog, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, custom-logo, full-width-template
*/

/* ── CSS Custom Properties ─────────────────────────── */
:root {
  --navy:       #0d2240;
  --navy-mid:   #163660;
  --gold:       #c99b3a;
  --gold-lt:    #e8b84b;
  --cream:      #faf7f2;
  --text:       #1a1a2e;
  --muted:      #6b7280;
  --white:      #ffffff;
  --radius:     12px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  margin: 0;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ── WordPress Alignment Classes ──────────────────── */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.alignwide  { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }

/* ── WordPress Image Captions ──────────────────────── */
.wp-caption { background: var(--white); border: 1px solid rgba(13,34,64,.08); border-radius: 8px; padding: 6px; margin-bottom: 1.5em; }
.wp-caption img { display: block; }
.wp-caption-text { font-size: .8rem; color: var(--muted); padding: 6px 8px; margin: 0; }

/* ── Screen Reader Text ───────────────────────────── */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

/* ── Skip Link ────────────────────────────────────── */
.skip-link {
  background: var(--gold); color: var(--navy); font-weight: 700;
  left: 6px; padding: 14px 23px; position: absolute; top: -100px; z-index: 9999;
  border-radius: 0 0 8px 8px; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Topbar ──────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  letter-spacing: .03em;
  padding: 7px 0;
}
.topbar a { color: var(--gold-lt); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .separator { margin: 0 12px; opacity: .35; }

/* ── Navbar ──────────────────────────────────────── */
.main-nav {
  --spc-red:    #c0392b;
  --spc-yellow: #f1c40f;
  --spc-green:  #27ae60;
  background: var(--white);
  /* Tricolor school-flag bar replaces the old solid-gold border. */
  border-bottom: 5px solid transparent;
  border-image: linear-gradient(
    to right,
    var(--spc-yellow) 0,        var(--spc-yellow) 33.333%,
    var(--spc-red)    33.333%,  var(--spc-red)    66.666%,
    var(--spc-green)  66.666%,  var(--spc-green)  100%
  ) 1;
  box-shadow: 0 2px 24px rgba(13,34,64,.10);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow var(--transition);
}
.main-nav.scrolled { box-shadow: 0 4px 32px rgba(13,34,64,.18); }

.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon {
  width: 48px; height: 48px;
  background: var(--navy); border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-icon i { color: var(--gold); font-size: 1.5rem; }
.brand-text .school-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.22rem; font-weight: 700;
  color: var(--navy); line-height: 1.1; display: block;
}
.brand-text .school-tagline {
  font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}

/* WP Custom Logo */
.custom-logo-link { display: flex; align-items: center; gap: 12px; }
.custom-logo { max-height: 48px; width: auto; }

/* WP Nav Menu */
#primary-navigation .navbar-nav .nav-item .nav-link {
  font-weight: 500; font-size: .88rem;
  color: var(--navy) !important; padding: .65rem 1rem !important;
  position: relative; letter-spacing: .01em; transition: color var(--transition);
}
#primary-navigation .navbar-nav .nav-item .nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 1rem;
  width: 0; height: 2px; background: var(--gold); transition: width var(--transition);
}
#primary-navigation .navbar-nav .nav-item .nav-link:hover::after,
#primary-navigation .navbar-nav .nav-item .nav-link.active::after,
#primary-navigation .navbar-nav .current-menu-item > .nav-link::after,
#primary-navigation .navbar-nav .current-page-ancestor > .nav-link::after { width: calc(100% - 2rem); }
#primary-navigation .navbar-nav .nav-item .nav-link:hover,
#primary-navigation .navbar-nav .current-menu-item > .nav-link { color: var(--gold) !important; }

/* Dropdown chevron arrow next to top-level menu labels */
#primary-navigation .nav-link .nav-dropdown-arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: .7rem;
  line-height: 1;
  vertical-align: middle;
  transition: transform var(--transition);
}
#primary-navigation .nav-item.dropdown:hover > .nav-link .nav-dropdown-arrow,
#primary-navigation .nav-item.dropdown:focus-within > .nav-link .nav-dropdown-arrow,
#primary-navigation .nav-link.show .nav-dropdown-arrow,
#primary-navigation .nav-link[aria-expanded="true"] .nav-dropdown-arrow {
  transform: rotate(180deg);
}
/* Hide Bootstrap's default dropdown caret (we use our own SVG/icon). */
#primary-navigation .dropdown-toggle::before { display: none; }
/* Suppress the gold underline ::after on links that carry the chevron. */
#primary-navigation .navbar-nav .nav-item .nav-link.dropdown-toggle::after {
  content: none;
  display: none;
}

/* WP Dropdowns */
#primary-navigation .dropdown-menu {
  border: none; border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 16px 40px rgba(13,34,64,.14);
  padding: 8px 0; min-width: 220px;
  animation: dropIn .2s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
#primary-navigation .dropdown-item {
  font-size: .86rem; font-weight: 500; color: var(--navy);
  padding: 9px 20px; display: flex; align-items: center; gap: 8px;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}
#primary-navigation .dropdown-item:hover {
  background: rgba(201,155,58,.08); color: var(--gold); padding-left: 26px;
}
#primary-navigation .dropdown-divider { border-color: rgba(201,155,58,.2); margin: 4px 16px; }

/* ── Hover-open dropdowns (desktop) ─────────────────────────────
   Bootstrap's dropdowns are click-only by default. Open submenus on
   pointer hover and on keyboard focus. Mobile (collapsed navbar) keeps
   the native tap-to-toggle behaviour because :hover doesn't fire. */
@media (min-width: 992px) {
  #primary-navigation .navbar-nav .nav-item.dropdown > .dropdown-menu {
    /* Anchor flush to the trigger so the cursor can travel between them
       without losing :hover (no gap = no flicker). */
    margin-top: 0;
    top: 100%;
    left: 0;
  }
  #primary-navigation .navbar-nav .nav-item.dropdown:hover > .dropdown-menu,
  #primary-navigation .navbar-nav .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block;
  }
  /* Right-edge nav items: flip the submenu so it doesn't overflow the viewport. */
  #primary-navigation .navbar-nav .nav-item.dropdown:last-child > .dropdown-menu,
  #primary-navigation .navbar-nav .nav-item.dropdown.dropdown-menu-end > .dropdown-menu {
    left: auto;
    right: 0;
  }
}

.btn-enroll {
  background: var(--gold); color: var(--navy); font-weight: 700;
  font-size: .83rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 9px 22px; border-radius: 6px; border: none;
  transition: all var(--transition); box-shadow: 0 2px 12px rgba(201,155,58,.35);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-enroll:hover {
  background: var(--gold-lt); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,155,58,.45); color: var(--navy);
}

/* ── Shared Section Styles ───────────────────────── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: .78rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ''; display: inline-block; width: 32px; height: 2px; background: var(--gold);
}
.section-title {
  font-size: clamp(1.9rem, 3vw, 2.7rem); color: var(--navy); line-height: 1.18; margin-bottom: 14px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-subtitle { font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 560px; }

.btn-outline-navy {
  border: 2px solid var(--navy); color: var(--navy); font-weight: 600;
  font-size: .86rem; padding: 10px 22px; border-radius: 8px;
  transition: all var(--transition); display: inline-flex; align-items: center;
  background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

/* ── Hero Slider ─────────────────────────────────── */
#heroSlider { position: relative; overflow: hidden; }
.hero-slide {
  position: relative;
  min-height: 82vh;               /* slightly trimmed so the caption isn't dominated by empty bg */
  display: flex;
  align-items: center;            /* vertically center the caption block — balanced across viewports */
  overflow: hidden;
  padding: 96px 0 96px;           /* equal top/bottom so centering reads cleanly */
}
.hero-slide > .container { width: 100%; }

/* Bootstrap's `.carousel-item.active` (and its transition siblings) set
   `display: block`, which has higher specificity than `.hero-slide` and
   kills our flex layout — causing the caption to jump to the top mid-
   transition. Reapply flex on every visible carousel state so the layout
   stays anchored regardless of which slide is showing. */
.hero-slide.active,
.hero-slide.carousel-item-next,
.hero-slide.carousel-item-prev,
.hero-slide.carousel-item-start,
.hero-slide.carousel-item-end {
  display: flex;
}
.slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.06); transition: transform 8s ease; will-change: transform;
}
.carousel-item.active .slide-bg { transform: scale(1); }
.slide-1 .slide-bg { background-image: url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1600&q=80'); }
.slide-2 .slide-bg { background-image: url('https://images.unsplash.com/photo-1509062522246-3755977927d7?w=1600&q=80'); }
.slide-3 .slide-bg { background-image: url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?w=1600&q=80'); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13,34,64,.82) 40%, rgba(13,34,64,.30) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 800px; }
/* Tricolor ribbon above the title — picks up the school flag colours. */
.hero-content::before {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    #f1c40f 0,        #f1c40f 33.333%,
    #c0392b 33.333%,  #c0392b 66.666%,
    #27ae60 66.666%,  #27ae60 100%
  );
  animation: fadeUp .6s ease both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,155,58,.22); border: 1px solid rgba(201,155,58,.5);
  color: var(--gold-lt); font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 100px;
  margin-bottom: 20px; backdrop-filter: blur(4px); animation: fadeUp .6s ease both;
}
.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 18px; animation: fadeUp .7s .1s ease both;
}
.hero-title span {
  display: inline-block;
  color: var(--gold-lt);
  font-size: clamp(1.4rem, 2.9vw, 2.3rem);
  line-height: 1.2;
  margin-top: 6px;
}
.hero-desc {
  font-size: 1.05rem; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,.82); margin-bottom: 32px; animation: fadeUp .7s .2s ease both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .7s .3s ease both; }
.btn-hero-primary {
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: .9rem;
  padding: 13px 28px; border-radius: 8px; border: none; letter-spacing: .03em;
  transition: all var(--transition); box-shadow: 0 4px 20px rgba(201,155,58,.45);
  display: inline-flex; align-items: center;
}
.btn-hero-primary:hover {
  background: var(--gold-lt); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,155,58,.55); color: var(--navy);
}
.btn-hero-outline {
  background: transparent; color: #fff; font-weight: 600; font-size: .9rem;
  padding: 12px 28px; border-radius: 8px; border: 2px solid rgba(255,255,255,.5);
  transition: all var(--transition); display: inline-flex; align-items: center;
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
  background: rgba(13,34,64,.88); backdrop-filter: blur(12px);
  border-top: 2px solid rgba(201,155,58,.35);
}
.stat-item { padding: 18px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--gold-lt); line-height: 1; }
.stat-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 3px; }
.carousel-control-prev, .carousel-control-next {
  width: 52px; height: 52px; background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border-radius: 50%; top: 50%; transform: translateY(-50%); margin: 0 24px;
  border: 1px solid rgba(255,255,255,.25); opacity: 1; transition: background var(--transition);
}
.carousel-control-prev:hover, .carousel-control-next:hover { background: rgba(201,155,58,.5); }
.carousel-indicators { bottom: 80px; right: 40px; left: auto; margin: 0; flex-direction: column; gap: 6px; }
.carousel-indicators button { width: 4px; height: 32px; border-radius: 2px; background: rgba(255,255,255,.4); border: none; opacity: 1; transition: all var(--transition); }
.carousel-indicators button.active { background: var(--gold); height: 48px; }
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

/* ── About ───────────────────────────────────────── */
.about-section { padding: 100px 0; background: var(--cream); position: relative; overflow: hidden; }
.about-section::before {
  content: 'ABOUT'; position: absolute; top: 20px; right: -20px;
  font-family: 'Playfair Display', serif; font-size: 12rem; font-weight: 800;
  color: rgba(13,34,64,.04); pointer-events: none; user-select: none;
}
.about-heading { font-size: clamp(2rem, 3.5vw, 2.9rem); color: var(--navy); line-height: 1.15; margin-bottom: 24px; }
.about-heading em { font-style: italic; color: var(--gold); }
.about-lead { font-size: 1.05rem; line-height: 1.78; color: var(--muted); margin-bottom: 28px; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 36px; }
.pillar-card {
  background: var(--white); border-radius: var(--radius); padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 14px; border: 1px solid rgba(13,34,64,.07);
  transition: box-shadow var(--transition), transform var(--transition);
}
.pillar-card:hover { box-shadow: 0 8px 30px rgba(13,34,64,.10); transform: translateY(-3px); }
.pillar-icon { width: 42px; height: 42px; background: rgba(201,155,58,.12); border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.pillar-icon i { color: var(--gold); font-size: 1.15rem; }
.pillar-title { font-family: 'Playfair Display', serif; font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.pillar-text { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.about-img-wrap { position: relative; height: 100%; min-height: 520px; }
.about-img-main { position: absolute; top: 0; left: 0; width: 81%; height: 115%; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 60px rgba(13,34,64,.18); }
.about-img-accent { position: absolute; bottom: 0; right: 0; width: 58%; height: 56%; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 40px rgba(13,34,64,.16); border: 5px solid var(--cream); }
.about-award { position: absolute; top: 111%; left: 0%; transform: translate(-50%,-50%); background: var(--navy); color: var(--white); border-radius: 14px; padding: 16px 20px; text-align: center; box-shadow: 0 12px 36px rgba(13,34,64,.28); min-width: 140px; border: 2px solid rgba(201,155,58,.4); }
.about-award .award-number { font-family: 'Playfair Display', serif; font-size: 2.1rem; color: var(--gold-lt); font-weight: 700; line-height: 1; }
.about-award .award-text { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 4px; }
.btn-about { background: var(--navy); color: var(--white); font-weight: 600; font-size: .88rem; padding: 13px 28px; border-radius: 8px; border: none; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-about:hover { background: var(--navy-mid); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13,34,64,.25); }
.btn-about i { transition: transform var(--transition); }
.btn-about:hover i { transform: translateX(4px); }

/* ── Programs ────────────────────────────────────── */
.programs-section { padding: 100px 0; background: var(--white); }
.program-card { background: var(--cream); border-radius: 16px; overflow: hidden; border: 1px solid rgba(13,34,64,.06); transition: box-shadow var(--transition), transform var(--transition); position: relative; height: 100%; }
.program-card:hover { box-shadow: 0 20px 50px rgba(13,34,64,.13); transform: translateY(-6px); }
.program-card.featured { border: 2px solid var(--gold); background: var(--white); }
.program-badge-tag { position: absolute; top: 16px; right: 16px; z-index: 5; background: var(--gold); color: var(--navy); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; }
.program-img { height: 200px; background-size: cover; background-position: center; transition: transform .5s ease; overflow: hidden; }
.program-card:hover .program-img { transform: scale(1.04); }
.program-body { padding: 24px; }
.program-level { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.program-title { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.program-desc { font-size: .88rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.program-link { color: var(--navy); font-weight: 600; font-size: .86rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color var(--transition), gap var(--transition); }
.program-link:hover { color: var(--gold); gap: 10px; }

/* ── Testimonials ────────────────────────────────── */
.testimonials-section { padding: 100px 0; position: relative; overflow: hidden; }
.testimonials-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }
.testimonials-bg::before { content: '"'; position: absolute; top: -60px; left: -20px; font-family: 'Playfair Display', serif; font-size: 28rem; color: rgba(255,255,255,.03); line-height: 1; }
.testi-card { background: rgba(255,255,255,.07); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 32px; height: 100%; transition: background var(--transition), transform var(--transition); }
.testi-card:hover { background: rgba(255,255,255,.11); transform: translateY(-4px); }
.testi-quote { font-size: 2.5rem; color: var(--gold); line-height: 1; margin-bottom: 16px; }
.testi-text { font-size: .94rem; color: rgba(255,255,255,.85); line-height: 1.72; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; flex-shrink: 0; }
.testi-name { font-weight: 600; color: #fff; font-size: .92rem; }
.testi-role { font-size: .75rem; color: rgba(255,255,255,.5); }
.testi-stars { color: var(--gold-lt); font-size: .82rem; }
.testi-controls { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.testi-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; display: grid; place-items: center; transition: background var(--transition); cursor: pointer; }
.testi-btn:hover { background: var(--gold); border-color: var(--gold); }

/* ── Events ──────────────────────────────────────── */
.events-section { padding: 100px 0; background: var(--cream); }
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-item { display: flex; align-items: center; gap: 20px; background: var(--white); border-radius: var(--radius); padding: 20px 24px; border: 1px solid rgba(13,34,64,.07); transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); }
.event-item:hover { box-shadow: 0 8px 30px rgba(13,34,64,.10); transform: translateX(4px); border-color: rgba(201,155,58,.3); }
.event-item.highlight { border-left: 4px solid var(--gold); }
.event-date-block { flex-shrink: 0; width: 56px; text-align: center; background: rgba(13,34,64,.05); border-radius: 10px; padding: 8px 4px; }
.event-date-block.gold { background: rgba(201,155,58,.12); }
.event-day { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--navy); display: block; line-height: 1; }
.event-date-block.gold .event-day { color: var(--gold); }
.event-month { font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event-info { flex: 1; }
.event-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 10px; border-radius: 100px; margin-bottom: 4px; }
.event-tag.academic { background: rgba(74,144,217,.12); color: #2471a3; }
.event-tag.arts     { background: rgba(142,68,173,.12);  color: #7d3c98; }
.event-tag.sports   { background: rgba(39,174,96,.12);   color: #1e8449; }
.event-tag.science  { background: rgba(230,126,34,.12);  color: #ca6f1e; }
.event-tag.community{ background: rgba(231,76,60,.12);   color: #c0392b; }
.event-title { font-size: .96rem; color: var(--navy); font-family: 'Playfair Display', serif; margin: 0 0 4px; }
.event-meta { font-size: .78rem; color: var(--muted); }
.event-register { flex-shrink: 0; font-size: .8rem; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; transition: color var(--transition), gap var(--transition); }
.event-register:hover { color: var(--gold); gap: 8px; }

/* Mini Calendar */
.mini-calendar-card { background: var(--white); border-radius: 16px; padding: 24px; border: 1px solid rgba(13,34,64,.07); box-shadow: 0 4px 20px rgba(13,34,64,.06); height: 100%; }
.mini-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mini-cal-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--navy); }
.mini-cal-nav { background: none; border: 1px solid rgba(13,34,64,.12); border-radius: 6px; width: 30px; height: 30px; color: var(--navy); cursor: pointer; transition: background var(--transition); }
.mini-cal-nav:hover { background: rgba(201,155,58,.12); }
.mini-cal-days-header { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; margin-bottom: 8px; }
.mini-cal-days-header span { font-size: .68rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.mini-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .8rem; color: var(--text); cursor: pointer; transition: background var(--transition); }
.cal-day:hover { background: rgba(201,155,58,.15); }
.cal-day.today { background: var(--navy); color: #fff; font-weight: 700; }
.cal-day.has-event { position: relative; font-weight: 600; color: var(--gold); }
.cal-day.has-event::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal-day.other-month { color: #ccc; }
.mini-cal-legend { font-size: .72rem; color: var(--muted); margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.academic-dot { background: #2471a3; }
.arts-dot     { background: #7d3c98; }
.sports-dot   { background: #1e8449; }

/* ── News / Blog ─────────────────────────────────── */
.news-section { padding: 100px 0; background: var(--white); }
.news-card { background: var(--cream); border-radius: 16px; overflow: hidden; border: 1px solid rgba(13,34,64,.06); transition: box-shadow var(--transition), transform var(--transition); height: 100%; }
.news-card:hover { box-shadow: 0 16px 44px rgba(13,34,64,.12); transform: translateY(-4px); }
.news-img { background-size: cover; background-position: center; transition: transform .5s ease; }
.news-card:hover .news-img { transform: scale(1.03); }
.news-body { padding: 24px; }
.news-cat { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; display: inline-flex; align-items: center; gap: 4px; }
.news-cat.achievements { background: rgba(39,174,96,.12); color: #1a7a40; }
.news-cat.campus       { background: rgba(74,144,217,.12); color: #2471a3; }
.news-cat.community    { background: rgba(231,76,60,.12);  color: #c0392b; }
.news-cat.sports       { background: rgba(230,126,34,.12); color: #ca6f1e; }
.news-date { font-size: .76rem; color: var(--muted); }
.news-title { font-size: 1.25rem; color: var(--navy); line-height: 1.3; margin: 8px 0 12px; }
.news-excerpt { font-size: .9rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.news-readmore { color: var(--navy); font-weight: 600; font-size: .86rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color var(--transition), gap var(--transition); }
.news-readmore:hover { color: var(--gold); gap: 10px; }
.news-card-sm {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  flex: 1 1 0;                       /* equal share of the right-column height */
  min-height: 120px;
}
.news-img-sm {
  flex: 0 0 190px;                   /* fixed image column, never shrinks */
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.news-card-sm:hover .news-img-sm { transform: scale(1.04); }
.news-body-sm {
  flex: 1 1 auto;
  min-width: 0;                      /* let long words wrap inside flex item */
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-title-sm {
  font-size: .95rem;
  color: var(--navy);
  line-height: 1.35;
  margin: 6px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;             /* uniform card height regardless of title length */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-readmore-sm {
  color: var(--gold); font-weight: 600; font-size: .78rem;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
  margin-top: auto;                  /* anchor the Read More link to the bottom of the card */
  align-self: flex-start;
}
.news-readmore-sm:hover { gap: 7px; }

/* ── CTA Banner ──────────────────────────────────── */
.cta-section { padding: 100px 0; position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,34,64,.93), rgba(22,54,96,.88)); }
.cta-icon { width: 72px; height: 72px; background: rgba(201,155,58,.2); border: 2px solid rgba(201,155,58,.4); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; }
.cta-icon i { font-size: 2rem; color: var(--gold-lt); }
.cta-heading { font-size: clamp(1.8rem, 3vw, 2.8rem); color: #fff; margin-bottom: 16px; }
.cta-heading em { color: var(--gold-lt); font-style: italic; }
.cta-sub { font-size: 1.05rem; color: rgba(255,255,255,.72); line-height: 1.65; }
.btn-cta-primary { background: var(--gold); color: var(--navy); font-weight: 700; padding: 14px 30px; border-radius: 8px; border: none; font-size: .9rem; transition: all var(--transition); box-shadow: 0 4px 20px rgba(201,155,58,.4); display: inline-flex; align-items: center; }
.btn-cta-primary:hover { background: var(--gold-lt); transform: translateY(-2px); color: var(--navy); }
.btn-cta-outline { border: 2px solid rgba(255,255,255,.5); color: #fff; font-weight: 600; padding: 13px 30px; border-radius: 8px; font-size: .9rem; transition: all var(--transition); display: inline-flex; align-items: center; }
.btn-cta-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ── Page Hero (Archive / Single) ───────────────── */
.page-hero { background: var(--navy); padding: 72px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: attr(data-watermark); position: absolute; right: -30px; top: -20px; font-family: 'Playfair Display', serif; font-size: 14rem; font-weight: 800; color: rgba(255,255,255,.03); pointer-events: none; line-height: 1; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold)); }
.page-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-lt); font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 12px; }
.page-hero-eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--gold-lt); }
.page-hero-title { font-size: clamp(2rem, 4vw, 3rem); color: #fff; font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.page-hero-title em { color: var(--gold-lt); font-style: italic; }
.page-hero-sub { font-size: .96rem; color: rgba(255,255,255,.6); max-width: 480px; line-height: 1.65; }
.breadcrumb-item a { color: rgba(255,255,255,.6); font-size: .8rem; text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,.4); font-size: .8rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ── Filter Bar (Archive) ────────────────────────── */
.filter-bar { background: var(--white); border-bottom: 1px solid rgba(13,34,64,.07); padding: 16px 0; position: sticky; top: 75px; z-index: 100; box-shadow: 0 2px 12px rgba(13,34,64,.06); }
.filter-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-btn { padding: 7px 18px; border-radius: 100px; border: 1.5px solid rgba(13,34,64,.15); background: transparent; color: var(--navy); font-size: .8rem; font-weight: 600; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.search-wrap-inner { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; }
.search-input { border: 1.5px solid rgba(13,34,64,.15); border-radius: 100px; padding: 7px 18px 7px 36px; font-size: .82rem; color: var(--text); background: var(--cream); outline: none; transition: border-color var(--transition); width: 220px; }
.search-input:focus { border-color: var(--gold); }

/* ── Post Cards (Archive) ───────────────────────── */
.featured-section { padding: 64px 0 40px; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); border-bottom: 2px solid rgba(201,155,58,.2); padding-bottom: 10px; margin-bottom: 28px; }
.featured-post-card { background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid rgba(13,34,64,.07); box-shadow: 0 8px 40px rgba(13,34,64,.08); display: flex; transition: box-shadow var(--transition), transform var(--transition); }
.featured-post-card:hover { box-shadow: 0 20px 60px rgba(13,34,64,.14); transform: translateY(-4px); }
.featured-img-wrap { width: 52%; flex-shrink: 0; position: relative; overflow: hidden; }
.featured-img { width: 100%; height: 100%; min-height: 440px; background-size: cover; background-position: center; transition: transform .6s ease; }
.featured-post-card:hover .featured-img { transform: scale(1.04); }
.featured-img-overlay { position: absolute; inset: 0; background: linear-gradient(to right, transparent 60%, rgba(255,255,255,.15)); }
.featured-label { position: absolute; top: 20px; left: 20px; background: var(--gold); color: var(--navy); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; }
.featured-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.post-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 16px; }
.post-cat.achievements { background: rgba(39,174,96,.1); color: #1a7a40; }
.post-cat.campus       { background: rgba(74,144,217,.1); color: #1e6aa8; }
.post-cat.community    { background: rgba(231,76,60,.1);  color: #b03030; }
.post-cat.sports       { background: rgba(230,126,34,.1); color: #b55d0f; }
.post-cat.arts         { background: rgba(142,68,173,.1); color: #6c2d99; }
.post-cat.science      { background: rgba(22,160,133,.1); color: #0e7566; }
.post-cat.announcement { background: rgba(41,128,185,.1); color: #1a6396; }
.featured-title { font-size: 1.9rem; color: var(--navy); line-height: 1.2; margin-bottom: 14px; }
.featured-excerpt { font-size: .95rem; color: var(--muted); line-height: 1.72; margin-bottom: 28px; }
.post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.post-meta-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.post-meta-item i { color: var(--gold); }
.author-avatar-sm { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .7rem; color: #fff; flex-shrink: 0; }
.btn-read { background: var(--navy); color: #fff; font-weight: 600; font-size: .86rem; padding: 12px 26px; border-radius: 8px; border: none; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: all var(--transition); }
.btn-read:hover { background: var(--navy-mid); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,34,64,.22); }
.btn-read i { transition: transform var(--transition); }
.btn-read:hover i { transform: translateX(4px); }

/* Post Grid Cards */
.posts-section { padding: 0 0 80px; }
.post-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid rgba(13,34,64,.06); transition: box-shadow var(--transition), transform var(--transition); height: 100%; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: 0 16px 48px rgba(13,34,64,.12); transform: translateY(-5px); }
.post-thumb { height: 210px; background-size: cover; background-position: center; position: relative; overflow: hidden; transition: transform .5s ease; }
.post-card:hover .post-thumb { transform: scale(1.04); }
.post-thumb-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,34,64,.35) 0%, transparent 55%); }
.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.post-date { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.post-card-title { font-size: 1.08rem; color: var(--navy); line-height: 1.35; margin-bottom: 10px; flex: 1; }
.post-card-title a { color: inherit; text-decoration: none; transition: color var(--transition); }
.post-card-title a:hover { color: var(--gold); }
.post-card-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(13,34,64,.07); padding-top: 14px; margin-top: auto; }
.author-mini { display: flex; align-items: center; gap: 8px; }
.author-mini .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; font-weight: 700; color: #fff; }
.author-mini .av-name { font-size: .78rem; font-weight: 600; color: var(--navy); }
.post-read-link { font-size: .78rem; font-weight: 600; color: var(--gold); text-decoration: none; display: flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.post-read-link:hover { gap: 8px; }

/* ── Sidebar ─────────────────────────────────────── */
.sidebar { position: sticky; top: 130px; }
.sidebar-widget { background: var(--white); border-radius: 14px; padding: 28px; border: 1px solid rgba(13,34,64,.07); margin-bottom: 24px; }
.widget-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid rgba(201,155,58,.25); }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(13,34,64,.05); }
.cat-list li:last-child { border: none; }
.cat-list a { font-size: .88rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color var(--transition); }
.cat-list a:hover { color: var(--gold); }
.cat-count { background: rgba(13,34,64,.07); color: var(--muted); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.recent-post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(13,34,64,.05); }
.recent-post:last-child { border: none; padding-bottom: 0; }
.recent-thumb { width: 64px; height: 64px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; }
.recent-info .recent-cat { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.recent-info .recent-title { font-size: .84rem; font-family: 'Playfair Display', serif; color: var(--navy); line-height: 1.35; margin-bottom: 4px; }
.recent-info .recent-title a { color: inherit; text-decoration: none; }
.recent-info .recent-title a:hover { color: var(--gold); }
.recent-info .recent-date { font-size: .72rem; color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 14px; border-radius: 100px; border: 1.5px solid rgba(13,34,64,.12); font-size: .78rem; color: var(--navy); text-decoration: none; font-weight: 500; transition: all var(--transition); }
.tag:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.newsletter-widget { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: 14px; padding: 28px; color: #fff; }
.newsletter-widget .widget-title { color: #fff; border-color: rgba(201,155,58,.35); }
.newsletter-widget p { font-size: .86rem; color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: 16px; }
.nl-input { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 10px 16px; font-size: .86rem; color: #fff; width: 100%; outline: none; margin-bottom: 10px; transition: border-color var(--transition); }
.nl-input::placeholder { color: rgba(255,255,255,.3); }
.nl-input:focus { border-color: var(--gold); }
.btn-nl { width: 100%; background: var(--gold); color: var(--navy); font-weight: 700; font-size: .84rem; padding: 10px; border-radius: 8px; border: none; transition: background var(--transition); cursor: pointer; }
.btn-nl:hover { background: var(--gold-lt); }

/* ── Pagination ──────────────────────────────────── */
.pagination-wrap { padding: 20px 0 60px; }
.page-link { border: 1.5px solid rgba(13,34,64,.12); color: var(--navy); font-weight: 600; font-size: .86rem; padding: 9px 16px; border-radius: 8px !important; margin: 0 3px; transition: all var(--transition); }
.page-link:hover, .page-item.active .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── Single Post ─────────────────────────────────── */
.progress-bar-top { position: fixed; top: 0; left: 0; z-index: 2000; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-lt)); transition: width .1s linear; }
.post-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.post-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 6s ease; }
.post-hero-bg.loaded { transform: scale(1); }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,34,64,.92) 0%, rgba(13,34,64,.5) 50%, rgba(13,34,64,.2) 100%); }
.post-hero-content { position: relative; z-index: 2; padding: 60px 0 52px; width: 100%; }
.post-cat-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 18px; }
.post-cat-badge.achievements { background: rgba(39,174,96,.25); color: #7fe0a8; border: 1px solid rgba(39,174,96,.3); }
.post-cat-badge.campus       { background: rgba(74,144,217,.25); color: #a3c8f5; border: 1px solid rgba(74,144,217,.3); }
.post-cat-badge.sports       { background: rgba(230,126,34,.25); color: #f5c87a; border: 1px solid rgba(230,126,34,.3); }
.post-hero-title { font-size: clamp(1.9rem, 4vw, 3rem); color: #fff; font-weight: 800; line-height: 1.15; max-width: 760px; margin-bottom: 24px; }
.post-hero-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-author { display: flex; align-items: center; gap: 10px; }
.hero-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; border: 2px solid rgba(255,255,255,.3); }
.hero-author-name { font-weight: 600; color: #fff; font-size: .88rem; }
.hero-author-role { font-size: .74rem; color: rgba(255,255,255,.55); }
.hero-meta-item { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: rgba(255,255,255,.6); }
.hero-meta-item i { color: var(--gold-lt); }
.share-btn-sm { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); display: grid; place-items: center; font-size: .85rem; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.share-btn-sm:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* Article body */
.article-wrap { padding: 64px 0 80px; }
.article-content { font-size: 1.08rem; line-height: 1.85; color: #2c2c3e; }
.article-content p { margin-bottom: 1.6em; }
.article-content h2 { font-family: 'Playfair Display', serif; font-size: 1.65rem; color: var(--navy); margin: 2em 0 .7em; padding-bottom: 10px; border-bottom: 2px solid rgba(201,155,58,.25); }
.article-content h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); margin: 1.8em 0 .6em; }
.article-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--navy); }
.article-content strong { color: var(--navy); font-weight: 700; }
.article-content ul, .article-content ol { padding-left: 1.4em; margin-bottom: 1.6em; }
.article-content li { margin-bottom: .5em; }

/* ── WP Download Manager: reset article-content typography that breaks plugin layout ── */
.article-content .w3eden ul,
.article-content .w3eden ol { padding-left: 0; margin-bottom: 0; }
.article-content .w3eden ul.list-group { padding-left: 0; margin-bottom: 1rem; list-style: none; }
.article-content .w3eden .list-group-item { margin-bottom: 0; }
.article-content .w3eden a { color: inherit; text-decoration: none; text-underline-offset: 0; }
.article-content .w3eden .wpdm-download-link { color: #fff; }
.article-content .w3eden h1,
.article-content .w3eden h2,
.article-content .w3eden h3,
.article-content .w3eden h4 {
  font-family: inherit; border-bottom: none; padding-bottom: 0;
}
.article-content .w3eden h1 { font-size: 1.6rem; color: var(--navy); margin: 0 0 .6em; }
.article-content .w3eden .row { --bs-gutter-x: 1.5rem; align-items: flex-start; }
.article-content .w3eden .card { background: var(--white); }
.article-content .drop-cap::first-letter { font-family: 'Playfair Display', serif; font-size: 4.2rem; font-weight: 800; color: var(--navy); float: left; line-height: .75; margin: 6px 12px 0 0; }
.pull-quote { border-left: 4px solid var(--gold); background: rgba(201,155,58,.07); border-radius: 0 12px 12px 0; padding: 24px 28px; margin: 2.5em 0; }
.pull-quote p { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-style: italic; color: var(--navy); margin-bottom: 8px !important; line-height: 1.5; }
.pull-quote cite { font-size: .8rem; color: var(--gold); font-style: normal; font-weight: 600; }
.callout-box { background: var(--navy); border-radius: 14px; padding: 28px 32px; margin: 2.5em 0; color: #fff; }
.callout-box .cb-label { font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.callout-box h4 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.callout-box p { color: rgba(255,255,255,.72); font-size: .92rem; margin-bottom: 0 !important; }
.article-img { border-radius: 14px; overflow: hidden; margin: 2.5em 0; }
.article-img img { width: 100%; display: block; transition: transform .5s ease; }
.article-img:hover img { transform: scale(1.02); }
.article-img figcaption { font-size: .78rem; color: var(--muted); padding: 10px 14px; background: var(--white); border: 1px solid rgba(13,34,64,.07); border-top: none; border-radius: 0 0 14px 14px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 2.5em 0; }
.gallery-item { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.wide { grid-column: span 2; }
.post-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid rgba(13,34,64,.08); border-bottom: 1px solid rgba(13,34,64,.08); margin: 32px 0; }
.post-tags-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.post-tag { padding: 5px 14px; border-radius: 100px; border: 1.5px solid rgba(13,34,64,.12); font-size: .78rem; color: var(--navy); text-decoration: none; font-weight: 500; transition: all var(--transition); }
.post-tag:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.share-bar { background: var(--white); border-radius: 14px; border: 1px solid rgba(13,34,64,.07); padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.share-label { font-weight: 700; font-size: .86rem; color: var(--navy); }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { padding: 8px 18px; border-radius: 8px; font-size: .8rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all var(--transition); border: none; cursor: pointer; }
.share-fb   { background: #1877f2; color: #fff; }
.share-tw   { background: #000; color: #fff; }
.share-wa   { background: #25d366; color: #fff; }
.share-li   { background: #0a66c2; color: #fff; }
.share-copy { background: var(--cream); color: var(--navy); border: 1.5px solid rgba(13,34,64,.12); }
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.author-bio-card { background: var(--white); border-radius: 16px; border: 1px solid rgba(13,34,64,.07); padding: 32px; display: flex; gap: 24px; margin-bottom: 48px; }
.bio-avatar { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; font-family: 'Playfair Display', serif; font-size: 1.6rem; color: #fff; flex-shrink: 0; border: 3px solid rgba(201,155,58,.3); }
.bio-name { font-size: 1.15rem; color: var(--navy); margin-bottom: 2px; }
.bio-role { font-size: .78rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.bio-text { font-size: .9rem; color: var(--muted); line-height: 1.68; margin-bottom: 14px; }
.bio-socials { display: flex; gap: 8px; }
.bio-social { width: 32px; height: 32px; border-radius: 7px; background: rgba(13,34,64,.06); display: grid; place-items: center; color: var(--navy); font-size: .85rem; text-decoration: none; transition: all var(--transition); }
.bio-social:hover { background: var(--navy); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.post-nav-item { background: var(--white); border-radius: 12px; border: 1px solid rgba(13,34,64,.07); padding: 20px; text-decoration: none; transition: all var(--transition); }
.post-nav-item:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(13,34,64,.1); transform: translateY(-2px); }
.pn-dir { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.pn-dir i { color: var(--gold); }
.pn-title { font-size: .88rem; font-family: 'Playfair Display', serif; color: var(--navy); line-height: 1.35; }
.post-nav-item.next { text-align: right; }
.post-nav-item.next .pn-dir { justify-content: flex-end; }

/* Comments */
.comments-section { margin-bottom: 48px; }
.comments-title { font-size: 1.45rem; color: var(--navy); margin-bottom: 28px; padding-bottom: 12px; border-bottom: 2px solid rgba(201,155,58,.25); }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-item { display: flex; gap: 16px; margin-bottom: 28px; }
.comment-body-inner { flex: 1; }
.comment-av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.comment-av img { width: 100%; height: 100%; object-fit: cover; }
.comment-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.comment-author-name { font-weight: 700; font-size: .92rem; color: var(--navy); }
.comment-date { font-size: .74rem; color: var(--muted); }
.comment-text { font-size: .9rem; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }
.comment-reply-link { font-size: .78rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.comment-reply-link:hover { color: var(--navy); }
.comment-form-wrap { background: var(--white); border-radius: 16px; border: 1px solid rgba(13,34,64,.07); padding: 32px; }
.comment-form-wrap .comment-form label { font-size: .82rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; }
.comment-form-wrap .comment-form input,
.comment-form-wrap .comment-form textarea {
  background: var(--cream); border: 1.5px solid rgba(13,34,64,.12); border-radius: 8px;
  font-size: .9rem; padding: 10px 14px; color: var(--text); width: 100%;
  transition: border-color var(--transition); margin-bottom: 16px; font-family: 'DM Sans', sans-serif;
}
.comment-form-wrap .comment-form input:focus,
.comment-form-wrap .comment-form textarea:focus { border-color: var(--gold); outline: none; background: var(--white); box-shadow: 0 0 0 3px rgba(201,155,58,.12); }
.comment-form-wrap .comment-form .submit { background: var(--navy); color: #fff; font-weight: 700; font-size: .88rem; padding: 13px 30px; border-radius: 8px; border: none; cursor: pointer; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.comment-form-wrap .comment-form .submit:hover { background: var(--navy-mid); transform: translateY(-2px); }

/* TOC */
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 8px; }
.toc-list a { font-size: .85rem; color: var(--text); text-decoration: none; display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(13,34,64,.05); transition: color var(--transition); }
.toc-list a:hover { color: var(--gold); }
.toc-num { font-size: .7rem; font-weight: 800; color: var(--gold); background: rgba(201,155,58,.1); border-radius: 4px; padding: 2px 6px; flex-shrink: 0; margin-top: 1px; }
.toc-list li.active a { color: var(--gold); font-weight: 600; }

/* Related posts */
.related-section { padding: 60px 0 80px; background: var(--white); border-top: 1px solid rgba(13,34,64,.07); }
.related-card { background: var(--cream); border-radius: 14px; overflow: hidden; border: 1px solid rgba(13,34,64,.06); transition: all var(--transition); height: 100%; }
.related-card:hover { box-shadow: 0 14px 40px rgba(13,34,64,.12); transform: translateY(-4px); }
.related-card-img { height: 180px; background-size: cover; background-position: center; transition: transform .5s ease; }
.related-card:hover .related-card-img { transform: scale(1.04); }
.related-card-body { padding: 20px; }
.related-card-title { font-size: 1rem; color: var(--navy); line-height: 1.3; margin-bottom: 8px; }
.related-card-title a { color: inherit; text-decoration: none; }
.related-card-title a:hover { color: var(--gold); }
.related-card-meta { font-size: .75rem; color: var(--muted); }

/* ── Footer ──────────────────────────────────────── */
.site-footer { background: #0a1b32; }
.footer-top { padding: 80px 0 60px; }
.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  padding-top: 14px;
}
/* Tricolor ribbon above the footer brand — matches the hero ribbon. */
.footer-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    #f1c40f 0,        #f1c40f 33.333%,
    #c0392b 33.333%,  #c0392b 66.666%,
    #27ae60 66.666%,  #27ae60 100%
  );
}
.footer-about { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.6); display: grid; place-items: center; font-size: .95rem; text-decoration: none; transition: all var(--transition); }
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.footer-heading { font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .88rem; text-decoration: none; transition: color var(--transition), padding-left var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.6; margin-bottom: 12px; }
.footer-contact i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-nl-label { font-size: .78rem; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.footer-input { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 6px 0 0 6px; font-size: .86rem; padding: 10px 14px; }
.footer-input::placeholder { color: rgba(255,255,255,.3); }
.footer-input:focus { background: rgba(255,255,255,.1); border-color: var(--gold); box-shadow: none; color: #fff; outline: none; }
.btn-gold-sm { background: var(--gold); color: var(--navy); font-weight: 700; font-size: .82rem; border: none; border-radius: 0 6px 6px 0; padding: 0 18px; transition: background var(--transition); cursor: pointer; }
.btn-gold-sm:hover { background: var(--gold-lt); color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold-lt); }

/* Scroll Top */
#scrollTop { position: fixed; bottom: 30px; right: 30px; z-index: 999; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy); border: none; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 4px 20px rgba(201,155,58,.5); opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition); cursor: pointer; }
#scrollTop.show { opacity: 1; pointer-events: auto; }
#scrollTop:hover { transform: translateY(-3px); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 991px) {
  .hero-slide { min-height: 72vh; padding: 72px 0; }
  .carousel-indicators { display: none; }
  .about-img-wrap { min-height: 360px; margin-top: 48px; }
  .about-pillars { grid-template-columns: 1fr; }
  .featured-post-card { flex-direction: column; }
  .featured-img-wrap { width: 100%; }
  .featured-img { min-height: 260px; }
  .featured-body { padding: 28px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .author-bio-card { flex-direction: column; align-items: flex-start; }
  .sidebar { position: static; }
}
@media (max-width: 575px) {
  .hero-slide { min-height: 78vh; padding: 56px 0; }
  .hero-stats .row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .filter-wrap { gap: 6px; }
  .search-input { width: 100%; }
}








/* ── Facilities Section ──────────────────────────── */
.facilities-section { padding: 100px 0; background: var(--white); }

.facilities-img-main {
  border-radius: 20px; overflow: hidden;
  position: relative; aspect-ratio: 4/3; margin-bottom: 10px;
}
.facilities-img-bg {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform .6s ease;
}
.facilities-img-main:hover .facilities-img-bg { transform: scale(1.04); }
.facilities-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,34,64,.25) 0%, transparent 50%);
}
.facilities-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(13,34,64,.88); backdrop-filter: blur(10px);
  border: 1px solid rgba(201,155,58,.4); border-radius: 10px;
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
}
.facilities-badge-icon {
  width: 36px; height: 36px; background: rgba(201,155,58,.2);
  border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
}
.facilities-badge-icon i { color: var(--gold-lt); font-size: 1rem; }
.facilities-badge-title { font-size: .82rem; font-weight: 700; color: #fff; line-height: 1.2; }
.facilities-badge-sub { font-size: .68rem; color: rgba(255,255,255,.55); margin-top: 2px; }

.facilities-thumbs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
}
.facilities-thumb {
  border-radius: 8px; overflow: hidden; aspect-ratio: 4/3;
  border: 2px solid transparent; padding: 0; cursor: pointer;
  transition: border-color var(--transition);
}
.facilities-thumb.active { border-color: var(--gold); }
.facilities-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.facilities-thumb:hover img { transform: scale(1.08); }

.facilities-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 2px solid rgba(13,34,64,.08);
  margin-bottom: 24px; padding-bottom: 0;
}
.facilities-tab {
  padding: 9px 16px; font-size: .8rem; font-weight: 600;
  border: none; background: none; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all var(--transition);
}
.facilities-tab.active, .facilities-tab:hover { color: var(--navy); }
.facilities-tab.active { border-bottom-color: var(--gold); }

.facility-panel { display: none; animation: facilityFadeIn .3s ease; }
.facility-panel.active { display: block; }
@keyframes facilityFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.facility-stats { display: flex; gap: 14px; margin-bottom: 22px; }
.facility-stat {
  flex: 1; background: var(--navy); border-radius: 10px;
  padding: 14px 16px; text-align: center;
}
.facility-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--gold-lt); line-height: 1;
}
.facility-stat-lbl {
  font-size: .65rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 4px;
}

.facility-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 26px;
}
.facility-feature {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; background: var(--cream);
  border-radius: 8px; border: 1px solid rgba(13,34,64,.07);
  font-size: .82rem; color: var(--navy); font-weight: 500;
}
.facility-feature i { color: var(--gold); font-size: .9rem; flex-shrink: 0; }