/*
 * DepEd District of Banaybanay – Main Stylesheet
 */
/* ============================================================
   CSS RESET
   ============================================================ */
html, body, div, span, applet, object, iframe,
abbr, acronym, address, big, cite, code,
del, dfn, ins, kbd, q, samp,
small, strike, sub, sup, tt, var,
center,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0;
  font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* ============================================================
   CSS VARIABLES
   Midnight Navy  #1a365d
   Solar Gold     #f6ad55
   Pure White     #ffffff
   Steel Blue     #6482ad
   ============================================================ */
:root {
  --deped-blue:   #6482ad;
  --deped-yellow: #f6ad55;
  --deped-red:    #1a365d;
  --deped-dark:   #1a365d;
  --deped-light:  #e8edf5;
  --accent:       #f6ad55;
  --text-dark:    #1a365d;
  --text-mid:     #3d5278;
  --text-light:   #6482ad;
  --border:       #d0d9e8;
  --white:        #ffffff;
  --shadow-sm:    0 2px 8px rgba(26,54,93,0.10);
  --shadow-md:    0 4px 20px rgba(26,54,93,0.18);
}

/* ============================================================
   BASE STYLES
   ============================================================ */

body {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
  background: #f0f3f9;
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
  margin: 0 !important;
}

a {
  color: var(--deped-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:visited { color: inherit; }

a:hover, a:focus, a:active {
  color: var(--deped-yellow);
  text-decoration: none;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: 100;
  color: var(--deped-dark);
  line-height: 1.3;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   HEADER — Logo Left + Nav Right
   ============================================================ */
.main-header {
  background: var(--deped-dark);
  width: 100%;
  padding: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  position: relative;
  z-index: 9999;
}

.container {
  max-width: 100vw;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  height: 80px;
  position: relative;
}

.header-logo {
  padding: 1px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.header-logo a {
  display: block;
  line-height: 0;
}
.header-logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
  display: block;
  padding: 5px ;
}

/* ── Main Header (Nav) ── */
.main-header {
  background: var(--deped-dark);
  width: 100%;
  padding: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  position: relative;
  z-index: 9999;
}

.container {
  max-width: 100vw;
}

.main-header .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.menu-wrap ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.menu-wrap ul li { display: inline-block; position: relative; }

.menu-wrap ul li a {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 16px 18px;
  /* border-bottom: 3px solid transparent; */
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.menu-wrap ul li a:hover,
.menu-wrap ul li.current-menu-item > a,
.menu-wrap ul li.current_page_item > a,
.menu-wrap ul li.current-menu-ancestor > a,
.menu-wrap ul li.current-menu-parent > a {
  color: var(--deped-yellow);
  background: rgba(0,0,0,0.15);
  /* border-bottom: 3px solid var(--deped-yellow); */
}

/* Dropdown */
.menu-wrap ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--deped-dark);
  min-width: 200px;
  z-index: 9999;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.menu-wrap ul li:hover > ul { display: flex; }
.menu-wrap ul li ul li { display: block; width: 100%; }
.menu-wrap ul li ul li a {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid transparent;
  font-size: 12px;
}
.menu-wrap ul li ul li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}


/* Header Responsive */
@media only screen and (max-width: 1024px) {
  .header-logo img { height: 56px; }
  .menu-wrap ul li a { padding: 0 14px; font-size: 12px; }
}
@media only screen and (max-width: 768px) {
  .header-logo img { height: 50px; }
  .main-header .container { padding: 0 16px; height: 70px; }
}
@media only screen and (max-width: 480px) {
  .header-logo img { height: 44px; }
  .main-header .container { height: 64px; }
}

/* ============================================================
   ANNOUNCEMENT TICKER
   ============================================================ */
.announcement-bar {
  background: var(--deped-yellow);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 38px;
}
.announcement-label {
  background: var(--deped-dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.announcement-label .fa { margin-right: 6px; }
.announcement-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.announcement-ticker span {
  display: inline-block;
  white-space: nowrap;
  color: var(--deped-dark);
  font-size: 12px;
  font-weight: 600;
  padding-left: 100%;
  animation: ticker-scroll 30s linear infinite;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  display: flex;
  align-items: stretch;
  background: var(--deped-dark);
  height: calc(100vh - 118px); /* 80px header + 38px ticker */
  min-height: 500px;
  max-height: 900px;
}

.hero-section .flexslider.hero-slider {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.hero-section .flexslider.hero-slider .slides,
.hero-section .flexslider.hero-slider .flex-viewport { height: 100%; }
.hero-section .flexslider.hero-slider .slides li { height: 100%; }
.hero-section .flexslider.hero-slider .slides img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(0.55);
}

.hero-quicklinks {
  flex: 0 0 270px;
  width: 270px;
  background: var(--deped-dark);
  display: flex;
  flex-direction: column;
}
.hero-ql-title {
  background: var(--deped-blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-ql-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hero-ql-list li { flex: 1; border-bottom: 1px solid rgba(255,255,255,0.07); }
.hero-ql-list li:last-child { border-bottom: none; }
.hero-ql-list li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  height: 100%;
  min-height: 90px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hero-ql-list li a:hover {
  background: rgba(246,173,85,0.12);
  color: var(--deped-yellow);
}
.hql-icon {
  width: 52px; height: 52px;
  background: var(--deped-blue);
  color: var(--white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  transition: background 0.2s;
}
.hero-ql-list li a:hover .hql-icon {
  background: var(--deped-yellow);
  color: var(--deped-dark);
}
.hql-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.flex-caption {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 70px;
  z-index: 10;
}
.caption-inner { max-width: 640px; }
.caption-eyebrow {
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--deped-yellow); margin-bottom: 16px;
}
.flex-caption h2 {
  font-size: 52px; font-weight: 800;
  color: var(--white); text-transform: uppercase;
  line-height: 1.1; margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.caption-divider {
  display: block; width: 70px; height: 5px;
  background: var(--deped-yellow); margin-bottom: 18px;
}
.caption-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 30px; line-height: 1.6;
}
.hero-btn {
  display: inline-block;
  background: var(--deped-yellow);
  color: var(--deped-dark) !important;
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 15px 34px; border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.hero-btn:hover { background: var(--white); color: var(--deped-dark) !important; }

.flex-direction-nav a {
  color: var(--white);
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.4);
  border-radius: 3px;
  margin: -20px 0 0 0;
  text-align: center; line-height: 40px;
}
.flex-direction-nav a:hover { background: var(--deped-blue); }

/* ============================================================
   HOME BODY LAYOUT — 50/50 split
   ============================================================ */
.home-body { padding: 0; }

.home-layout {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.main-content-col {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
}

.sidebar-col {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  border-left: 1px solid var(--border);
  background: #f0f3f9;
  scrollbar-width: thin;
  scrollbar-color: var(--deped-blue) transparent;
}
.sidebar-col::-webkit-scrollbar { width: 4px; }
.sidebar-col::-webkit-scrollbar-thumb { background: var(--deped-blue); border-radius: 2px; }

/* ============================================================
   SECTION HEADING — shared by both columns
   ============================================================ */
.home-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
  position: relative;
}

#latest-news  { background: #f0f3f9; }
#issuances    { background: var(--white); border-top: 1px solid var(--border); }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 5px solid var(--deped-blue);
  padding-left: 16px;
  margin-bottom: 24px;
  min-height: 52px;
}
.section-heading h2 {
  font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--deped-dark); margin: 0;
}
.section-heading h2 .fa { color: var(--deped-blue); margin-right: 10px; }

.view-all-link {
  font-size: 13px; font-weight: 600;
  color: var(--deped-blue);
  text-transform: uppercase; letter-spacing: 0.5px;
  white-space: nowrap;
}
.view-all-link:hover { color: var(--deped-yellow); }
/* ============================================================
   NEWS SWIPER + SCHOOLS SWIPER — Matched card size
   ============================================================ */

/* Section padding */
#latest-news.home-section {
    min-height: 0;
    height: auto;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sidebar-col .sidebar-widget {
    background: #f0f3f9;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
}

/* Shared swiper container */
.news-swiper,
.schools-swiper {
    width: 100%;
    padding-bottom: 40px !important;
    overflow: hidden;
}

.news-swiper .swiper-wrapper,
.schools-swiper .swiper-wrapper {
    align-items: stretch;
}

.news-swiper .swiper-slide,
.schools-swiper .swiper-slide {
    height: auto !important;
    box-sizing: border-box;
}

/* ── Shared card size ── */
.news-swiper .news-card,
.schools-swiper .featured-school-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 280px; /* fixed card height — adjust this one value */
    width: 100%;
    text-decoration: none;
    position: relative;
}
.news-swiper .news-card:hover,
.schools-swiper .featured-school-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* ── Shared image height ── */
.news-swiper .news-thumb,
.schools-swiper .featured-school-item img {
    height: 160px;
    flex-shrink: 0;
}

.news-swiper .news-thumb {
    overflow: hidden;
    width: 100%;
}
.news-swiper .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.news-swiper .news-card:hover .news-thumb img { transform: scale(1.05); }

.schools-swiper .featured-school-item img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85);
}
.schools-swiper .featured-school-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.70);
}

/* ── News body ── */
.news-swiper .news-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-swiper .news-date {
    font-size: 11px;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
    flex-shrink: 0;
}
.news-swiper .news-date .fa { margin-right: 4px; color: var(--deped-blue); }

.news-swiper .news-body h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
    color: var(--deped-dark);
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-swiper .news-body h4 a { color: inherit; }
.news-swiper .news-body h4 a:hover { color: var(--deped-blue); }

.news-swiper .news-body p {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ── Schools caption ── */
.schools-swiper .featured-school-caption {
    position: static;
    background: var(--white);
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.schools-swiper .caption-name {
    display: -webkit-box;
    font-size: 13px;
    font-weight: 700;
    color: var(--deped-dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.4;
    margin-bottom: 5px;
    flex-shrink: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.schools-swiper .caption-desc {
    display: -webkit-box;
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Navigation arrows — shared ── */
.news-swiper .swiper-button-prev,
.news-swiper .swiper-button-next,
.schools-swiper .swiper-button-prev,
.schools-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
    background: var(--deped-dark);
    border-radius: 50%;
    top: 40%;
}
.news-swiper .swiper-button-prev::after,
.news-swiper .swiper-button-next::after,
.schools-swiper .swiper-button-prev::after,
.schools-swiper .swiper-button-next::after {
    font-size: 11px;
    color: var(--white);
    font-weight: 700;
}
.news-swiper .swiper-button-prev:hover,
.news-swiper .swiper-button-next:hover,
.schools-swiper .swiper-button-prev:hover,
.schools-swiper .swiper-button-next:hover {
    background: var(--deped-yellow);
}
.news-swiper .swiper-button-prev:hover::after,
.news-swiper .swiper-button-next:hover::after,
.schools-swiper .swiper-button-prev:hover::after,
.schools-swiper .swiper-button-next:hover::after {
    color: var(--deped-dark);
}

/* ── Pagination dots — shared ── */
.news-swiper .swiper-pagination-bullet,
.schools-swiper .swiper-pagination-bullet {
    background: var(--deped-blue);
    opacity: 0.5;
}
.news-swiper .swiper-pagination-bullet-active,
.schools-swiper .swiper-pagination-bullet-active {
    background: var(--deped-yellow);
    opacity: 1;
}

/* ── Responsive ── */
@media only screen and (max-width: 768px) {
    #latest-news.home-section { padding: 32px 20px; }
    .sidebar-col .sidebar-widget { padding: 32px 20px; }
    .news-swiper .news-card,
    .schools-swiper .featured-school-item { height: 240px; }
    .news-swiper .news-thumb,
    .schools-swiper .featured-school-item img { height: 130px; }
}

@media only screen and (max-width: 480px) {
    #latest-news.home-section { padding: 24px 16px; }
    .sidebar-col .sidebar-widget { padding: 24px 16px; }
    .news-swiper .news-card,
    .schools-swiper .featured-school-item { height: 220px; }
    .news-swiper .news-thumb,
    .schools-swiper .featured-school-item img { height: 120px; }
}
/* ============================================================
   SCHOOLS SWIPER
   ============================================================ */
.sidebar-col .sidebar-widget {
    background: #f0f3f9;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar-col .sidebar-widget-title {
    display: flex;
    align-items: center;
    border-left: 5px solid var(--deped-yellow);
    padding-left: 16px;
    margin-bottom: 24px;
    min-height: 52px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--deped-dark);
    background: transparent;
}

.schools-swiper {
    width: 100%;
    padding-bottom: 40px !important;
    overflow: hidden;
}

.schools-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.schools-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

/* School tile inside swiper */
.schools-swiper .featured-school-item {
    display: block;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.schools-swiper .featured-school-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.75);
}

.schools-swiper .featured-school-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.50);
}

.schools-swiper .featured-school-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(26,54,93,0.95));
    padding: 28px 10px 12px;
}

.schools-swiper .caption-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.schools-swiper .caption-desc {
    display: -webkit-box;
    font-size: 11px;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Navigation arrows */
.schools-swiper .swiper-button-prev,
.schools-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
    background: var(--deped-dark);
    border-radius: 50%;
    top: 45%;
}
.schools-swiper .swiper-button-prev::after,
.schools-swiper .swiper-button-next::after {
    font-size: 11px;
    color: var(--white);
    font-weight: 700;
}
.schools-swiper .swiper-button-prev:hover,
.schools-swiper .swiper-button-next:hover {
    background: var(--deped-yellow);
}
.schools-swiper .swiper-button-prev:hover::after,
.schools-swiper .swiper-button-next:hover::after {
    color: var(--deped-dark);
}

/* Pagination dots */
.schools-swiper .swiper-pagination-bullet {
    background: var(--deped-blue);
    opacity: 0.5;
}
.schools-swiper .swiper-pagination-bullet-active {
    background: var(--deped-yellow);
    opacity: 1;
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .sidebar-col .sidebar-widget { min-height: 0; padding: 32px 20px; }
}
@media only screen and (max-width: 480px) {
    .sidebar-col .sidebar-widget { padding: 24px 16px; }
}

/* ============================================================
   ISSUANCES PANEL
   ============================================================ */
.issuances-panel {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.issuances-search {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.issuances-search input {
  flex: 1; padding: 14px 18px;
  border: none; outline: none;
  font-size: 14px; color: var(--text-dark);
  background: #fafbff;
}
.issuances-search button {
  padding: 14px 20px;
  background: var(--deped-blue);
  color: var(--white); border: none;
  cursor: pointer; font-size: 16px;
  transition: background 0.2s;
}
.issuances-search button:hover { background: var(--deped-dark); }

.issuances-tabs {
  display: flex;
  background: #f5f7fc;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  flex: 1; padding: 14px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-mid); border: none;
  background: transparent; cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  color: var(--deped-blue);
  border-bottom-color: var(--deped-yellow);
  background: var(--white);
}

.issuances-list { list-style: none; margin: 0; padding: 0; }
.issuances-list.issuances-hidden { display: none; }
.issuances-list li {
  display: flex; align-items: flex-start;
  gap: 16px; padding: 16px 20px;
  border-bottom: 1px solid #f0f3f9;
  transition: background 0.15s;
}
.issuances-list li:last-child { border-bottom: none; }
.issuances-list li:hover { background: #f0f4fb; }
.issuances-list li .fa {
  color: var(--deped-yellow);
  font-size: 22px; flex-shrink: 0; margin-top: 2px;
}
.issuances-list li div { flex: 1; }
.issuances-list li a {
  font-size: 14px; font-weight: 600;
  color: var(--text-dark); line-height: 1.5; display: block;
}
.issuances-list li a:hover { color: var(--deped-blue); }
.memo-date {
  font-size: 12px; color: var(--text-light);
  margin-top: 4px; display: block;
}

/* ============================================================
   GENERAL SIDEBAR WIDGETS (non-featured-school pages)
   ============================================================ */
.sidebar-widget {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  overflow: hidden;
}
.sidebar-widget-title {
  background: var(--deped-dark);
  color: var(--white);
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 16px 20px; margin: 0;
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border);
}
.program-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 18px 10px; background: var(--white);
  color: var(--text-dark); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px;
  text-align: center; transition: background 0.15s, color 0.15s;
}
.program-item:hover { background: var(--deped-light); color: var(--deped-dark); }
.prog-icon {
  width: 48px; height: 48px;
  background: var(--deped-blue); color: var(--white);
  border-radius: 6px; display: flex;
  align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; letter-spacing: -0.5px;
}
.prog-icon.prog-k12 { background: #1a365d; font-size: 14px; }
.prog-icon.prog-als { background: #4a6fa5; font-size: 14px; }
.prog-icon.prog-sbm { background: #6482ad; font-size: 13px; }

/* Transparency List */
.transparency-list { list-style: none; margin: 0; padding: 0; }
.transparency-list li { border-bottom: 1px solid var(--border); }
.transparency-list li:last-child { border-bottom: none; }
.transparency-list li a {
  display: block; padding: 15px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--text-dark); transition: background 0.15s, color 0.15s;
}
.transparency-list li a .fa {
  color: var(--deped-blue); margin-right: 12px;
  width: 16px; text-align: center;
}
.transparency-list li a:hover { background: var(--deped-light); color: var(--deped-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--deped-dark);
  color: rgba(255,255,255,0.8);
  padding: 28px 0; margin-top: 0;
}
.site-footer p { margin-top: 8px; font-size: 13px; }
.site-footer a {
  color: var(--deped-yellow);
  text-align: center; display: block;
}
.site-footer a:hover { color: var(--white); }
.site-footer .go-top {
  float: right; text-transform: uppercase;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
.site-footer .go-top i { display: block; text-align: center; margin-bottom: 2px; }

/* ============================================================
   INNER PAGE SECTIONS
   ============================================================ */
#services, #portfolio, #about, #contact { padding-top: 80px; }

.title-section { margin-bottom: 60px; }
.title-section h2 {
  font-size: 24px; font-weight: 700;
  text-transform: uppercase; display: block; margin-bottom: 16px;
}
.title-section span {
  display: block; width: 60px; height: 4px;
  background: var(--deped-yellow); margin: 0 auto;
}

.widget-title {
  font-size: 17px; font-weight: 700;
  margin-bottom: 24px; color: var(--deped-dark);
}

.mainBtn {
  background: var(--deped-blue); color: var(--white);
  display: inline-block; text-transform: uppercase;
  padding: 11px 22px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.5px; border-radius: 3px;
  transition: background 0.2s; border: none; cursor: pointer;
}
.mainBtn:hover { background: var(--deped-dark); color: var(--white); }

/* Services */
#services .service-item .service-header { padding-bottom: 16px; clear: both; }
#services .service-item .service-header i { color: var(--deped-blue); font-size: 22px; float: left; margin-right: 20px; }
#services .service-item .service-header h3 { font-size: 16px; text-transform: uppercase; font-weight: 700; }

/* Portfolio */
#portfolio { padding-bottom: 80px; margin-top: 60px; background: var(--deped-dark); }
#portfolio .title-section h2 { color: var(--white); }
#portfolio .portfolio-thumb { overflow: hidden; position: relative; margin-bottom: 24px; }
#portfolio .portfolio-thumb img { width: 100%; height: auto; }
#portfolio .portfolio-thumb .overlay {
  opacity: 0; background: rgba(100,130,173,0.88);
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  transition: opacity 0.2s;
}
#portfolio .portfolio-thumb .overlay .inner {
  position: absolute; padding: 20px; width: 100%; bottom: 0; left: 0; text-align: center;
}
#portfolio .portfolio-thumb .overlay .inner h4 { font-size: 16px; margin-bottom: 8px; }
#portfolio .portfolio-thumb .overlay .inner h4 a { color: var(--white); }
#portfolio .portfolio-thumb .overlay .inner span { font-weight: 300; color: var(--deped-yellow); }
#portfolio .portfolio-thumb:hover .overlay { opacity: 1; }

/* About */
#about .progess-bars li .progress { box-shadow: none; border-radius: 0; background: #dde3ee; height: 28px; margin-bottom: 12px; }
#about .progess-bars li .progress-bar { box-shadow: none; line-height: 28px; background: var(--deped-blue); text-transform: uppercase; font-size: 12px; }
#about .our-team { margin-top: 60px; }
#about .our-team .team-member { overflow: hidden; }
#about .our-team .team-member .member-img { width: 100%; position: relative; }
#about .our-team .team-member .member-img img { width: 100%; height: auto; }
#about .our-team .team-member .member-img .overlay { top: 0; left: 0; position: absolute; width: 100%; height: 100%; background: rgba(26,54,93,0.72); opacity: 0; visibility: hidden; transition: all 0.2s; }
#about .our-team .team-member .member-img .overlay .social { position: absolute; top: 0; left: 0; }
#about .our-team .team-member .member-img .overlay .social li { display: inline-block; float: left; margin-right: 1px; }
#about .our-team .team-member .member-img .overlay .social li a { display: block; color: var(--white); background: rgba(255,255,255,0.2); width: 40px; height: 40px; text-align: center; line-height: 40px; }
#about .our-team .team-member .member-img .overlay .social li a:hover { background: rgba(246,173,85,0.6); color: var(--deped-dark); }
#about .our-team .team-member .member-img:hover .overlay { opacity: 1; visibility: visible; }
#about .our-team .team-member .inner-content { background: #f8f9fb; border: 1px solid var(--border); border-top: 0; padding: 18px; }
#about .our-team .team-member .inner-content h5 { font-size: 16px; font-weight: 700; color: var(--deped-blue); margin-bottom: 8px; }
#about .our-team .team-member .inner-content span { color: var(--text-light); margin-bottom: 12px; display: block; }

/* Contact */
#contact .contact-form .full-row { width: 100%; margin-bottom: 18px; }
#contact .contact-form input,
#contact .contact-form textarea { outline: 0; display: block; border: 1px solid var(--border); width: 100%; max-width: 100%; padding: 9px 12px; color: var(--text-dark); font-family: inherit; font-size: 13px; border-radius: 3px; transition: border-color 0.2s; }
#contact .contact-form input:focus,
#contact .contact-form textarea:focus { border-color: var(--deped-blue); }
#contact .contact-form label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; }
#contact .contact-form input.mainBtn { display: inline-block; width: auto; border: 0; padding: 11px 22px; color: var(--white); }
#contact .map-holder { padding: 4px; background: var(--white); border: 1px solid var(--border); border-radius: 3px; }
#contact .contact-info { margin-top: 24px; }
#contact .contact-info span { margin-top: 14px; display: block; font-size: 13px; line-height: 1.5; }
#contact .contact-info span i { color: var(--deped-blue); font-size: 15px; margin-right: 10px; width: 16px; }

/* ============================================================
   UTILITY
   ============================================================ */
.section-content, .section-cotent { padding: 60px 0; }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.inner-page-hero {
  position: relative; background: var(--deped-dark);
  height: 320px; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.inner-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(100,130,173,0.7) 0%, rgba(26,54,93,0.92) 100%);
  z-index: 1;
}
.inner-page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
  z-index: 1;
}
.inner-page-hero-overlay { display: none; }
.inner-page-hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.inner-page-hero-content .caption-eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: var(--deped-yellow); margin-bottom: 14px; }
.inner-page-hero-content h1 { font-size: 48px; font-weight: 800; color: var(--white); text-transform: uppercase; letter-spacing: 2px; line-height: 1.1; margin-bottom: 18px; text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.inner-page-hero-content .caption-divider { display: block; width: 60px; height: 4px; background: var(--deped-yellow); margin: 0 auto 18px; }
.inner-page-hero-content .caption-sub { font-size: 16px; color: rgba(255,255,255,0.78); margin: 0; line-height: 1.6; }

/* Breadcrumb */
.page-breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 0; }
.page-breadcrumb .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-breadcrumb span { font-size: 13px; color: var(--text-light); }
.page-breadcrumb span a { color: var(--deped-blue); font-weight: 600; }
.page-breadcrumb span a:hover { color: var(--deped-yellow); }
.page-breadcrumb .bc-sep { color: var(--border); font-size: 12px; }
.page-breadcrumb .bc-current { color: var(--text-mid); font-weight: 600; }

/* ============================================================
   DISTRICT PROFILE PAGE
   ============================================================ */
.profile-page-body { padding: 60px 0 80px; background: #f0f3f9; }
.profile-page-body .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.profile-section { margin-bottom: 72px; }
.profile-section:last-child { margin-bottom: 0; }
.profile-about-img { margin-bottom: 28px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-md); }
.profile-about-img img { width: 100% !important; height: auto !important; max-height: 460px !important; object-fit: cover !important; display: block !important; }

.vmc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vmc-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow 0.25s, transform 0.25s; }
.vmc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.vmc-vision  { border-top: 4px solid var(--deped-dark); }
.vmc-mission { border-top: 4px solid var(--deped-blue); }
.vmc-values  { border-top: 4px solid var(--deped-yellow); }
.vmc-card-header { display: flex; align-items: center; gap: 14px; padding: 22px 24px 16px; border-bottom: 1px solid var(--border); }
.vmc-icon { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; color: var(--white); }
.vmc-vision .vmc-icon  { background: var(--deped-dark); }
.vmc-mission .vmc-icon { background: var(--deped-blue); }
.vmc-values .vmc-icon  { background: var(--deped-yellow); color: var(--deped-dark); }
.vmc-card-header h3 { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.vmc-vision .vmc-card-header h3  { color: var(--deped-dark); }
.vmc-mission .vmc-card-header h3 { color: var(--deped-blue); }
.vmc-values .vmc-card-header h3  { color: #b87a28; }
.vmc-card-body { padding: 20px 24px 24px; font-size: 14px; line-height: 1.75; color: var(--text-mid); flex: 1; }
.vmc-card-body strong { color: var(--deped-dark); }

.profile-map-section { padding-bottom: 20px; }
.profile-map-wrapper { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md); text-align: center; }
.profile-map-img { width: 100% !important; height: auto !important; max-height: 600px !important; object-fit: contain !important; display: block !important; margin: 0 auto; }

/* PSDS Style */
.psds-layout { display: flex; gap: 30px; align-items: flex-start; }
.psds-image { width: 250px; text-align: center; }
.psds-image img { width: 100%; height: auto; border-radius: 8px; }
.psds-name { margin-top: 10px; font-weight: bold; font-size: 16px; }
.psds-message { flex: 1; line-height: 1.6; }

/* ============================================================
   DISTRICT STAFF PAGE
   ============================================================ */
.staff-page-body { padding: 60px 0 80px; background: #f0f3f9; }
.staff-page-body .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.staff-section { margin-bottom: 64px; }
.staff-section:last-child { margin-bottom: 0; }
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.staff-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.25s, transform 0.25s; display: flex; flex-direction: column; min-width: 0; }
.staff-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.staff-card-img { position: relative; width: 100%; height: 240px !important; overflow: hidden !important; background: var(--deped-light); flex-shrink: 0; display: block; }
.staff-card-img img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: none !important; object-fit: cover !important; object-position: top center !important; display: block !important; transition: transform 0.35s ease, filter 0.35s ease; filter: brightness(0.92); }
.staff-card:hover .staff-card-img img { transform: scale(1.06); filter: brightness(0.7); }
.staff-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--deped-light) 0%, #c8d4e8 100%); }
.staff-img-placeholder .fa { font-size: 72px; color: var(--deped-blue); opacity: 0.25; }
.staff-card-overlay { position: absolute; inset: 0; background: rgba(26,54,93,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; }
.staff-card:hover .staff-card-overlay { opacity: 1; }
.staff-view-btn { background: var(--deped-yellow); color: var(--deped-dark) !important; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 10px 20px; border-radius: 3px; transition: background 0.2s; }
.staff-view-btn:hover { background: var(--white); color: var(--deped-dark) !important; }
.staff-card-info { padding: 20px; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-top: 3px solid var(--deped-blue); }
.staff-name { font-size: 15px; font-weight: 700; color: var(--deped-dark); margin: 0 0 6px; line-height: 1.35; }
.staff-designation { display: inline-block; font-size: 12px; font-weight: 600; color: var(--deped-blue); text-transform: uppercase; letter-spacing: 0.5px; background: var(--deped-light); padding: 4px 10px; border-radius: 20px; margin-top: 2px; }
.staff-empty { text-align: center; padding: 80px 24px; color: var(--text-light); }
.staff-empty .fa { font-size: 56px; color: var(--deped-blue); opacity: 0.2; display: block; margin-bottom: 20px; }
.staff-empty p { font-size: 15px; color: var(--text-light); }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media only screen and (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .schools-row { grid-template-columns: repeat(2, 1fr); }
  .hero-quicklinks { flex: 0 0 230px; width: 230px; }
  .home-section { padding: 32px 24px; }
  .sidebar-col .sidebar-widget { padding: 32px 24px; }
  .flex-caption h2 { font-size: 40px; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .inner-page-hero-content h1 { font-size: 38px; }
  .vmc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media only screen and (max-width: 960px) {
  .hero-section { height: calc(100vh - 108px); }
  .flex-caption { padding: 0 40px; }
  .flex-caption h2 { font-size: 34px; }
  .caption-sub { font-size: 15px; }
  .hero-quicklinks { flex: 0 0 200px; width: 200px; }
  .hql-label { font-size: 12px; }
  .hql-icon { width: 44px; height: 44px; font-size: 18px; }
}

@media only screen and (max-width: 768px) {
  /* Hero */
  .hero-section { flex-direction: column; height: auto; min-height: 0; }
  .hero-section .flexslider.hero-slider,
  .hero-section .flexslider.hero-slider .slides,
  .hero-section .flexslider.hero-slider .flex-viewport,
  .hero-section .flexslider.hero-slider .slides li { height: auto; }
  .hero-section .flexslider.hero-slider .slides img { height: 55vw; min-height: 260px; max-height: 420px; filter: brightness(0.55); }
  .hero-quicklinks { flex: 0 0 auto; width: 100%; flex-direction: row; border-left: none; }
  .hero-ql-title { display: none; }
  .hero-ql-list { flex-direction: row; width: 100%; }
  .hero-ql-list li { flex: 1; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.07); }
  .hero-ql-list li:last-child { border-right: none; }
  .hero-ql-list li a { flex-direction: column; justify-content: center; text-align: center; padding: 16px 8px; min-height: 90px; gap: 8px; }
  .hql-icon { width: 38px; height: 38px; font-size: 16px; }
  .hql-label { font-size: 11px; }
  .flex-caption { padding: 0 30px; }
  .flex-caption h2 { font-size: 26px; margin-bottom: 10px; }
  .caption-sub { display: none; }

  /* Layout */
  .home-layout { flex-direction: column; }
  .main-content-col,
  .sidebar-col { flex: 0 0 100%; width: 100%; }
  .home-section { min-height: 0; padding: 32px 20px; }
  .sidebar-col { border-left: none; border-top: 3px solid var(--deped-blue); }
  .sidebar-col .sidebar-widget { min-height: 0; padding: 32px 20px; }
  .featured-schools-scroll { max-height: 480px; }

  /* Grids */
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .schools-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .featured-schools-2x2 { grid-template-columns: repeat(2, 1fr); }
  .vmc-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Staff */
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .inner-page-hero { height: 240px; }
  .inner-page-hero-content h1 { font-size: 28px; }
  .inner-page-hero-content .caption-sub { display: none; }
  .staff-card-img { height: 200px; }
  .staff-page-body { padding: 40px 0 60px; }
  .profile-page-body { padding: 40px 0 60px; }
  .profile-map-img { max-height: 400px !important; }
  .psds-layout { flex-direction: column; align-items: center; }
  .psds-image { width: 200px; }
}

@media only screen and (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .schools-row { grid-template-columns: 1fr; }
  .featured-schools-2x2 { grid-template-columns: repeat(2, 1fr); }
  .flex-caption { display: none !important; }
  .hero-section .flexslider.hero-slider .slides img { height: 200px; filter: brightness(0.75); }
  .home-section { padding: 24px 16px; }
  .sidebar-col .sidebar-widget { padding: 24px 16px; }
  .main-header { height: auto; }
  .responsive-menu .menu { top: 100%; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .inner-page-hero-content h1 { font-size: 22px; letter-spacing: 1px; }
  .staff-card-img { height: 160px; }
  .staff-card-info { padding: 14px; }
  .staff-name { font-size: 13px; }
  .staff-designation { font-size: 10px; }
  .vmc-card-header { padding: 16px 18px 12px; }
  .vmc-card-body { padding: 14px 18px 18px; }
  .profile-wysiwyg { padding: 18px 16px; font-size: 14px; }
}
/* ============================================================
   RESPONSIVE VISIBILITY HELPERS
   ============================================================ */
.hidden-xs, .hidden-sm { display: flex; }
.visible-xs, .visible-sm { display: none; }

@media only screen and (max-width: 768px) {
  .hidden-sm  { display: none !important; }
  .visible-sm { display: flex !important; }
}
@media only screen and (max-width: 480px) {
  .hidden-xs  { display: none !important; }
  .visible-xs { display: flex !important; }
}

/* ============================================================
   HEADER LOGO — h1 title text
   ============================================================ */
.header-logo h1 {
  font-family: Impact, 'Arial Narrow Bold', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  white-space: nowrap;
  margin-left: 10px;
}

@media only screen and (max-width: 1024px) {
  .header-logo h1 { font-size: 12px; }
}
@media only screen and (max-width: 768px) {
  .header-logo h1 { font-size: 11px; white-space: normal; max-width: 160px; }
}
@media only screen and (max-width: 480px) {
  .header-logo h1 { display: none; }
}

/* ============================================================
   MOBILE MENU — override responsive-menu styles
   ============================================================ */
.responsive-menu {
  display: flex;
  align-items: center;
}

/* Hamburger button */
.responsive-menu .toggle-menu {
  font-size: 22px;
  color: var(--white);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  line-height: 1;
  transition: background 0.2s;
}
.responsive-menu .toggle-menu:hover {
  background: var(--deped-blue);
}

/* Dropdown panel */
.responsive-menu .menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 240px;
  background: #0f2240;
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-radius: 0 0 6px 6px;
}
.responsive-menu .menu.open { display: block; }

/* Nav items inside mobile menu */
.responsive-menu .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.responsive-menu .menu ul li {
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.responsive-menu .menu ul li:last-child { border-bottom: 0; }
.responsive-menu .menu ul li a {
  color: rgba(255,255,255,0.9);
  padding: 14px 20px;
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.responsive-menu .menu ul li a:hover,
.responsive-menu .menu ul li.current-menu-item > a {
  background: rgba(246,173,85,0.12);
  color: var(--deped-yellow);
  border-left-color: var(--deped-yellow);
}

/* Sub-menu inside mobile */
.responsive-menu .menu ul li ul {
  display: none;
  background: rgba(0,0,0,0.2);
}
.responsive-menu .menu ul li ul li a {
  padding-left: 36px;
  font-size: 12px;
  border-left: none;
}
/* ============================================================
   FIX 1 — Mobile menu appears ABOVE the hero slider
   ============================================================ */
.main-header {
  position: relative;
  z-index: 99999;          /* header sits above everything */
}

.responsive-menu {
  position: relative;
  z-index: 99999;
}

.responsive-menu .menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 999999;         /* menu panel floats above hero slider */
}

/* Hero slider must be BELOW the header */
.hero-section {
  position: relative;
  z-index: 1;
}

/* ============================================================
   FIX 2 — Hero caption text VISIBLE on all screen sizes
   ============================================================ */

/* Remove the hide rule that was killing the caption on mobile */
@media only screen and (max-width: 480px) {
  .flex-caption {
    display: flex !important;   /* override the display:none !important */
    padding: 0 16px;
    align-items: flex-end;      /* anchor text to bottom of slide */
    padding-bottom: 20px;
  }

  .flex-caption h2 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.2;
  }

  .caption-eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }

  .caption-divider {
    width: 40px;
    height: 3px;
    margin-bottom: 8px;
  }

  .caption-sub {
    display: none;           /* hide subtitle only — keep heading visible */
  }

  .hero-btn {
    font-size: 11px;
    padding: 8px 16px;
  }

  /* Make slide image tall enough to show the text */
  .hero-section .flexslider.hero-slider .slides img {
    height: 260px;
    min-height: 260px;
  }
}

/* ============================================================
   FIX 3 — "DepEd Banaybanay District" heading — proper sizing
   ============================================================ */
.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.header-logo h1 {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.25;
  margin: 0 0 0 8px;
  white-space: nowrap;
}

/* Slightly smaller on tablets */
@media only screen and (max-width: 1024px) {
  .header-logo h1 {
    font-size: 13px;
    letter-spacing: 1px;
  }
}

/* Wrap the text on small tablets */
@media only screen and (max-width: 768px) {
  .header-logo h1 {
    font-size: 12px;
    white-space: normal;
    max-width: 140px;
    line-height: 1.2;
  }
}

/* Hide text on very small phones to save space for the logos */
@media only screen and (max-width: 480px) {
  .header-logo h1 {
    display: none;
  }
  /* Also shrink logos slightly so 3 logos fit */
  .header-logo img {
    height: 70px;
    align-items: center;

  }
}
/* ============================================================
   FIX — Mobile menu drops DOWN correctly with blue background
   ============================================================ */

/* This is the KEY fix — menu positions relative to the header */
.main-header {
  position: relative;
  z-index: 99999;
  overflow: visible !important;  /* allow dropdown to escape */
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  height: 80px;
  position: relative;   /* anchor for the dropdown */
  overflow: visible;    /* allow dropdown to escape container */
}

/* The toggle button wrapper */
#mobile-navigation.responsive-menu {
  position: static;     /* don't trap the menu inside */
  margin-left: auto;
}

/* The dropdown panel — drops below the FULL header width */
#mobile-navigation .menu {
  display: none;
  position: fixed;      /* fixed so it escapes all overflow:hidden parents */
  top: 80px;            /* exactly the header height */
  right: 0;
  left: 0;              /* full width */
  width: 100%;
  background: #0f2240 !important;
  z-index: 999999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  /* border-top: 3px solid var(--deped-yellow); */
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

#mobile-navigation .menu.open {
  display: block !important;
}

/* Menu list items */
#mobile-navigation .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#mobile-navigation .menu ul li {
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#mobile-navigation .menu ul li:last-child {
  border-bottom: none;
}

#mobile-navigation .menu ul li a {
  color: rgba(255,255,255,0.9) !important;
  padding: 16px 24px;
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-left: 4px solid transparent;
  border-top: none !important;
  background: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

#mobile-navigation .menu ul li a:hover,
#mobile-navigation .menu ul li.current-menu-item > a {
  background: rgba(246,173,85,0.12) !important;
  color: var(--deped-yellow) !important;
  border-left-color: var(--deped-yellow);
}

/* Sub-menu items (dropdowns inside mobile menu) */
#mobile-navigation .menu ul li ul {
  display: block !important;   /* always show sub-items on mobile */
  position: static !important;
  background: rgba(0,0,0,0.25) !important;
  box-shadow: none;
  min-width: unset;
}

#mobile-navigation .menu ul li ul li a {
  padding-left: 44px;
  font-size: 13px;
  opacity: 0.85;
}

/* ============================================================
   If header height changes on smaller phones (64px),
   adjust the top offset accordingly
   ============================================================ */
@media only screen and (max-width: 480px) {
  #mobile-navigation .menu {
    top: 64px;                    /* matches your 64px mobile header height */
    max-height: calc(100vh - 64px);
  }
}


/* ============================================================
   SHARED ARCHIVE & SINGLE PAGE — UTILITY CLASSES
   ============================================================ */

/* ── Page body / container ──
   Used by: .ca-body, .fs-body, .ip-body, .news-page-body,
            .pg-body, .sf-body, .tp-body,
            .sc-body, .si-body, .sfs-body, .sp-body, .ssf-body, .st-body
   ── */
.archive-body,
.single-body {
    background: #f0f3f9;
    padding: 56px 0 80px;
}

.archive-container,
.single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 28px;
}

/* wider containers for grid-heavy pages */
.archive-container--wide { max-width: 1200px; }
.archive-container--news { max-width: 1240px; }
.archive-container--narrow { max-width: 860px; }

/* ── Filter / top bar ──
   Used by: .ca-topbar, .fs-filter-bar, .news-filter-bar, .pg-filter-bar
   ── */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.count-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
}
.count-label .fa { color: var(--deped-blue); font-size: 16px; }

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-wrap input {
    padding: 10px 38px 10px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    width: 260px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap input:focus {
    border-color: var(--deped-blue);
    box-shadow: 0 0 0 3px rgba(0,56,168,0.08);
}
.search-wrap > .fa {
    position: absolute;
    right: 13px;
    color: var(--text-light);
    font-size: 13px;
    pointer-events: none;
}

/* ── Archive list panel (Issuances / School Forms / Transparency / Program contents) ──
   Used by: .ip-panel, .sf-panel, .tp-panel, .sp-content-panel
   ── */
.archive-panel {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Shared search bar inside panels */
.issuances-search {
    display: flex;
}
.issuances-search input {
    flex: 1;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 16px 20px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}
.issuances-search input:focus { border-color: var(--deped-blue); }
.issuances-search button {
    padding: 0 22px;
    font-size: 17px;
    background: var(--deped-blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.issuances-search button:hover { background: var(--deped-dark); }

/* Results count row */
.results-row {
    padding: 12px 20px;
    background: #f8f9ff;
    border-bottom: 1px solid var(--border);
}
.results-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Shared list (Issuances / School Forms / Transparency / Program content) ──
   Used by: .ip-list, .sf-list, .tp-list, .sp-content-list
   ── */
.issuances-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--white);
}
.issuances-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f3f9;
    transition: background 0.15s;
}
.issuances-list li:last-child { border-bottom: none; }
.issuances-list li:hover { background: #f5f7ff; }

.issuances-list li > .fa {
    color: var(--deped-blue);
    font-size: 22px;
    flex-shrink: 0;
}
.issuances-list li > div {
    flex: 1;
    min-width: 0;
}
.issuances-list li > div > a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    display: block;
}
.issuances-list li > div > a:hover { color: var(--deped-blue); }

/* Date metadata used inside list items */
.memo-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.memo-date .fa { color: var(--deped-blue); font-size: 11px; }

/* "View" button that appears on row hover */
.list-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--deped-blue);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
}
.issuances-list li:hover .list-view-btn {
    opacity: 1;
    transform: translateX(3px);
}

/* ── Shared empty / no-results state ──
   Used by: ip / sf / tp / sp / fs / pg / ca / news empty states
   ── */
.empty-state {
    text-align: center;
    padding: 72px 24px;
    color: var(--text-light);
    background: var(--white);
}
.empty-state .fa {
    font-size: 52px;
    color: var(--deped-blue);
    opacity: 0.18;
    display: block;
    margin-bottom: 16px;
}
.empty-state p { font-size: 15px; }

/* ── Pagination (shared by .fs-pagination, .news-pagination) ── */
.archive-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--deped-blue);
    background: var(--white);
    border: 1px solid var(--border);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: var(--deped-blue);
    color: var(--white);
    border-color: var(--deped-blue);
}
.archive-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: default;
}

/* ── Shared card (Featured School, Program) ──
   .fs-card, .pg-card share the same structure
   ── */
.archive-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: box-shadow 0.25s, transform 0.25s;
}
.archive-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.archive-card-body {
    padding: 20px 22px;
    flex: 1;
}
.archive-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--deped-dark);
    line-height: 1.35;
    margin: 0 0 8px;
}
.archive-card:hover .archive-card-title { color: var(--deped-blue); }

.archive-card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}
.archive-card-footer {
    padding: 12px 22px 18px;
    border-top: 1px solid var(--border);
}
.card-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--deped-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: gap 0.2s;
}
.archive-card:hover .card-link { gap: 11px; }
.card-link .fa { font-size: 11px; }

/* ============================================================
   SHARED SINGLE-PAGE COMPONENTS
   Used by: single-issuance (si), single-content (sc),
            single-transparency (st), single-school-form (ssf),
            single-program (sp), single-featured-school (sfs)
   ============================================================ */

/* ── Card shell ── */
.single-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    border-top: 4px solid var(--deped-blue);
}

/* ── Header with icon ── */
.single-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 40px 24px;
    border-bottom: 1px solid var(--border);
}
.single-header--simple {
    /* header without icon (used by single-issuance) */
    padding: 36px 40px 28px;
    border-bottom: 1px solid var(--border);
    display: block;
}

.single-header-icon {
    width: 56px;
    height: 56px;
    background: var(--deped-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 26px;
    color: var(--deped-blue);
}
.single-header-icon .fa { font-size: 26px; color: var(--deped-blue); }

.single-header-text { flex: 1; min-width: 0; }

.single-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--deped-dark);
    line-height: 1.35;
    margin: 0 0 14px;
}

.single-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.single-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}
.single-meta-item .fa { color: var(--deped-blue); }

/* ── Description / wysiwyg area ── */
.single-description {
    padding: 28px 40px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
}

/* ── Download block ── */
.download-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 40px;
    background: var(--deped-light);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    width: 56px;
    height: 56px;
    background: var(--deped-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 26px;
    color: var(--white);
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.file-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--deped-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-ext {
    display: inline-block;
    background: var(--deped-blue);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.file-size {
    font-size: 12px;
    color: var(--text-light);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--deped-blue);
    color: var(--white) !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 28px;
    border-radius: 5px;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.download-btn:hover {
    background: var(--deped-dark);
    transform: translateY(-2px);
    color: var(--white) !important;
}
.download-btn .fa { font-size: 16px; }

/* No-file notice */
.no-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 40px;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
    border-bottom: 1px solid var(--border);
}
.no-file .fa { color: var(--deped-red); font-size: 18px; }

/* ── Single page footer (back btn + share) ── */
.single-footer {
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--deped-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border: 2px solid var(--deped-blue);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.back-btn:hover {
    background: var(--deped-blue);
    color: var(--white) !important;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 6px;
}
.share-label .fa { color: var(--deped-blue); }

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--white) !important;
    transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover { transform: scale(1.12); opacity: 0.85; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-em { background: var(--deped-red); }

/* ── Related / Other section ──
   Used by: si-related, sc-related, st-related, ssf-related
   ── */
.related-section {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.related-heading {
    background: var(--deped-blue);
    padding: 16px 28px;
}
.related-heading h2 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-list { list-style: none; margin: 0; padding: 0; }

.related-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.related-item:last-child { border-bottom: none; }
.related-item:hover { background: #f8f9ff; }

.related-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--deped-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-title:hover { color: var(--deped-blue); }

.related-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}
.related-date .fa { color: var(--deped-blue); }

.related-arrow {
    color: var(--deped-blue);
    font-size: 13px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
}
.related-item:hover .related-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ============================================================
   ARCHIVE — CALENDAR OF ACTIVITIES
   (unique enough to keep its own classes for the accordion)
   ============================================================ */
.ca-body { background: #f0f3f9; padding: 56px 0 80px; }
.ca-container { max-width: 860px; margin: 0 auto; padding: 0 28px; }

.ca-total {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
}
.ca-total .fa { color: var(--deped-blue); font-size: 16px; }

.ca-month-group {
    margin-bottom: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.ca-month-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    background: var(--deped-blue);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}
.ca-month-header:hover,
.ca-month-header.ca-open { background: var(--deped-dark); }
.ca-month-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    flex: 1;
}
.ca-month-label .fa { font-size: 14px; opacity: 0.8; }
.ca-month-count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
}
.ca-chevron {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.25s;
}
.ca-month-header.ca-open .ca-chevron { transform: rotate(180deg); }

.ca-activity-list { list-style: none; margin: 0; padding: 0; background: var(--white); }
.ca-activity-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    border-bottom: 1px solid #f0f3f9;
    transition: background 0.15s;
}
.ca-activity-item:last-child { border-bottom: none; }
.ca-activity-item:hover { background: #f8f9ff; }

.ca-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--deped-light);
    border-radius: 8px;
    border-bottom: 3px solid var(--deped-blue);
    flex-shrink: 0;
}
.ca-date-day { font-size: 20px; font-weight: 800; color: var(--deped-blue); line-height: 1; }
.ca-date-dow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-top: 2px;
}
.ca-activity-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ca-activity-title { font-size: 14px; font-weight: 700; color: var(--text-dark); line-height: 1.4; }
.ca-activity-desc { font-size: 12px; color: var(--text-light); line-height: 1.5; }
.ca-activity-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ca-activity-date .fa { color: var(--deped-blue); }

/* ============================================================
   ARCHIVE — FEATURED SCHOOLS  (grid layout specifics)
   ============================================================ */
.fs-body { background: #f0f3f9; padding: 56px 0 80px; }
.fs-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.fs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* Image wrap specific to featured school card */
.fs-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.fs-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.archive-card:hover .fs-card-img { transform: scale(1.06); }

.fs-card-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,32,91,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.archive-card:hover .fs-card-img-overlay { background: rgba(0,32,91,0.4); }
.fs-card-img-overlay .fa {
    font-size: 32px;
    color: var(--white);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
}
.archive-card:hover .fs-card-img-overlay .fa { opacity: 1; transform: scale(1); }

/* ============================================================
   ARCHIVE — PROGRAMS  (icon card variant)
   ============================================================ */
.pg-body { background: #f0f3f9; padding: 56px 0 80px; }
.pg-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Program card top accent */
.pg-card { border-top: 4px solid var(--deped-blue); }

.pg-card-icon {
    background: var(--deped-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px 20px;
}
.pg-card-icon .fa {
    font-size: 42px;
    color: var(--deped-blue);
    opacity: 0.35;
    transition: opacity 0.2s;
}
.archive-card:hover .pg-card-icon .fa { opacity: 0.7; }
.pg-card-body { padding: 20px 24px; flex: 1; }
.pg-card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--deped-dark);
    line-height: 1.35;
    margin: 0 0 10px;
}
.archive-card:hover .pg-card-title { color: var(--deped-blue); }
.pg-card-footer { padding: 14px 24px 20px; border-top: 1px solid var(--border); }

/* ============================================================
   ARCHIVE — NEWS  (3-column card grid)
   ============================================================ */
.news-page-body { background: #f0f3f9; padding: 56px 0 80px; }
.news-page-container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.news-filter-bar { margin-bottom: 36px; }
.news-count-label .fa { font-size: 18px; }

.news-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.news-page-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}
.news-page-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }

.news-page-thumb {
    display: block;
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--deped-light);
    flex-shrink: 0;
}
.news-page-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.9);
}
.news-page-card:hover .news-page-thumb img { transform: scale(1.06); filter: brightness(0.6); }

.news-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--deped-light) 0%, #d0d9ef 100%);
}
.news-thumb-placeholder .fa { font-size: 56px; color: var(--deped-blue); opacity: 0.2; }

.news-thumb-overlay {
    position: absolute; inset: 0;
    background: rgba(0,32,91,0.52);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s;
}
.news-page-card:hover .news-thumb-overlay { opacity: 1; }

.news-read-badge {
    background: var(--deped-yellow); color: var(--deped-dark);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 10px 22px; border-radius: 3px;
}

.news-page-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; border-top: 3px solid var(--deped-blue); }

.news-page-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.news-meta-date,
.news-meta-cat { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.news-meta-date .fa { color: var(--deped-blue); }
.news-meta-cat .fa  { color: var(--deped-red); }
.news-meta-cat {
    background: var(--deped-light); color: var(--deped-blue);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 3px 9px; border-radius: 20px;
}

.news-page-title { font-size: 16px; font-weight: 700; line-height: 1.45; margin: 0 0 10px; color: var(--deped-dark); }
.news-page-title a { color: inherit; }
.news-page-title a:hover { color: var(--deped-blue); }

.news-page-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 18px; flex: 1; }

.news-read-more {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700; color: var(--deped-blue);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-top: auto; border-bottom: 2px solid transparent;
    padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
    width: fit-content;
}
.news-read-more:hover { color: var(--deped-red); border-bottom-color: var(--deped-red); }
.news-read-more .fa { transition: transform 0.2s; }
.news-read-more:hover .fa { transform: translateX(4px); }

.news-no-results { text-align: center; padding: 100px 24px; color: var(--text-light); }
.news-no-results .fa { font-size: 60px; color: var(--deped-blue); opacity: 0.18; display: block; margin-bottom: 20px; }
.news-no-results p { font-size: 16px; }

.news-pagination { margin-top: 56px; }

/* ============================================================
   SINGLE — FEATURED SCHOOL  (has image hero, no download)
   ============================================================ */
.sfs-body { background: #f0f3f9; padding: 56px 0 80px; }
.sfs-container { max-width: 900px; margin: 0 auto; padding: 0 28px; }

.sfs-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.sfs-image-wrap { width: 100%; max-height: 420px; overflow: hidden; line-height: 0; }
.sfs-image { width: 100%; height: 420px; object-fit: cover; display: block; }
.sfs-content { border-top: 4px solid var(--deped-blue); }

/* Related grid (image cards, not a list) */
.sfs-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.sfs-related-card {
    display: flex; flex-direction: column; text-decoration: none;
    border-right: 1px solid var(--border); transition: background 0.2s;
}
.sfs-related-card:last-child { border-right: none; }
.sfs-related-card:hover { background: #f5f7ff; }
.sfs-related-img-wrap { height: 140px; overflow: hidden; }
.sfs-related-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
.sfs-related-card:hover .sfs-related-img-wrap img { transform: scale(1.05); }
.sfs-related-info {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border);
}
.sfs-related-title {
    font-size: 13px; font-weight: 700; color: var(--text-dark);
    line-height: 1.4; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sfs-related-card:hover .sfs-related-title { color: var(--deped-blue); }
.sfs-related-arrow { color: var(--deped-blue); font-size: 12px; opacity: 0.4; flex-shrink: 0; transition: opacity 0.2s, transform 0.2s; }
.sfs-related-card:hover .sfs-related-arrow { opacity: 1; transform: translateX(3px); }

/* ============================================================
   SINGLE — NEWS  (full-width layout, dark scrollable row)
   ============================================================ */
.single-news-body { background: none; padding: 56px 0 48px; }
.single-news-container { max-width: 100%; margin: 0; padding: 0 48px; }
.single-news-article { background: none; border-radius: 0; overflow: hidden; box-shadow: none; }

.sn-article-header { padding: 28px 0 24px; border-bottom: 1px solid var(--border); }

.sn-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sn-cat-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--deped-light); color: var(--deped-blue);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
    padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(0,56,168,0.15);
}
.sn-cat-badge .fa { font-size: 10px; }

.sn-title { font-size: 30px; font-weight: 800; color: var(--deped-dark); line-height: 1.3; margin: 0 0 20px; }

.sn-meta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sn-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); }
.sn-meta-item .fa { color: var(--deped-blue); }

.sn-featured-image { width: 100%; }
.sn-featured-image img { width: 100%; height: auto; display: block; }

.sn-content { padding: 28px 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--border); }

.sn-article-footer {
    padding: 24px 0;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border);
}

.sn-post-nav { display: grid; grid-template-columns: 1fr 1fr; }
.sn-nav-prev,
.sn-nav-next { padding: 20px 0; }
.sn-nav-prev { border-right: 1px solid var(--border); }
.sn-nav-next { text-align: right; }
.sn-nav-prev a,
.sn-nav-next a { display: flex; flex-direction: column; gap: 5px; color: var(--text-mid); text-decoration: none; transition: color 0.2s; }
.sn-nav-prev a:hover,
.sn-nav-next a:hover { color: var(--deped-blue); }
.sn-nav-dir { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.sn-nav-next .sn-nav-dir { justify-content: flex-end; }
.sn-nav-title { font-size: 14px; font-weight: 600; color: var(--deped-dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Other news scroll row */
.sn-other-news { background: var(--deped-dark); padding: 56px 0 72px; }
.sn-other-container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.sn-other-heading { display: flex; align-items: center; justify-content: space-between; border-left: 5px solid var(--deped-yellow); padding-left: 16px; margin-bottom: 32px; }
.sn-other-heading h2 { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--white); margin: 0; }
.sn-other-heading h2 .fa { color: var(--deped-yellow); margin-right: 10px; }
.sn-other-viewall { font-size: 13px; font-weight: 600; color: var(--deped-yellow); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sn-other-viewall:hover { color: var(--white); }
.sn-other-scroll-wrapper { display: flex; align-items: center; gap: 0; }
.sn-other-scroll { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding: 8px 4px 16px; flex: 1; scrollbar-width: thin; scrollbar-color: var(--deped-yellow) rgba(255,255,255,0.1); }
.sn-other-scroll::-webkit-scrollbar { height: 5px; }
.sn-other-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); border-radius: 3px; }
.sn-other-scroll::-webkit-scrollbar-thumb { background: var(--deped-yellow); border-radius: 3px; }
.sn-scroll-btn { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--white); font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.sn-scroll-btn:hover { background: var(--deped-yellow); border-color: var(--deped-yellow); color: var(--deped-dark); }
.sn-scroll-left { margin-right: 12px; }
.sn-scroll-right { margin-left: 12px; }
.sn-other-card { flex: 0 0 260px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: background 0.25s, transform 0.25s, box-shadow 0.25s; }
.sn-other-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.sn-other-thumb { position: relative; height: 160px; overflow: hidden; flex-shrink: 0; background: rgba(0,0,0,0.2); }
.sn-other-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease, filter 0.35s ease; filter: brightness(0.8); }
.sn-other-card:hover .sn-other-thumb img { transform: scale(1.06); filter: brightness(1); }
.sn-other-thumb-overlay { position: absolute; inset: 0; background: rgba(0,32,91,0.3); opacity: 0; transition: opacity 0.25s; }
.sn-other-card:hover .sn-other-thumb-overlay { opacity: 1; }
.sn-other-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.sn-other-placeholder .fa { font-size: 40px; color: rgba(255,255,255,0.15); }
.sn-other-info { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; border-top: 3px solid var(--deped-yellow); }
.sn-other-date { font-size: 11px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.sn-other-date .fa { color: var(--deped-yellow); }
.sn-other-title { font-size: 14px; font-weight: 700; color: var(--white); line-height: 1.45; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sn-other-card:hover .sn-other-title { color: var(--deped-yellow); }
.sn-other-excerpt { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   SINGLE — PROGRAM  (contains a content sub-list)
   ============================================================ */
.sp-body { background: #f0f3f9; padding: 56px 0 80px; }
.sp-container { max-width: 900px; margin: 0 auto; padding: 0 28px; }
.sp-contents { margin-bottom: 0; }
.sp-content-count { font-size: 13px; font-weight: 600; color: var(--text-light); }
.sp-footer { padding: 20px 40px; }

/* ============================================================
   WYSIWYG / Rich-text content area (shared across single pages)
   ============================================================ */
.profile-wysiwyg {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-mid);
}
.profile-wysiwyg p  { margin-bottom: 16px; }
.profile-wysiwyg h2,
.profile-wysiwyg h3 { color: var(--deped-dark); margin: 24px 0 12px; font-weight: 700; }
.profile-wysiwyg ul,
.profile-wysiwyg ol { padding-left: 22px; margin-bottom: 16px; }
.profile-wysiwyg li { margin-bottom: 6px; }
.profile-wysiwyg a  { color: var(--deped-blue); text-decoration: underline; }
.profile-wysiwyg a:hover { color: var(--deped-yellow); }
.profile-wysiwyg img { max-width: 100%; height: auto; border-radius: 6px; margin: 12px 0; }

/* ============================================================
   SHARED RESPONSIVE BREAKPOINTS — archive & single pages
   ============================================================ */
@media only screen and (max-width: 1024px) {
    .fs-grid,
    .pg-grid,
    .news-page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media only screen and (max-width: 768px) {
    /* archive body / container */
    .archive-body,
    .single-body,
    .ca-body, .fs-body, .ip-body,
    .news-page-body, .pg-body, .sf-body, .tp-body,
    .sc-body, .si-body, .sfs-body, .sp-body, .ssf-body, .st-body { padding: 40px 0 60px; }

    .archive-container,
    .single-container,
    .ca-container, .fs-container, .ip-container,
    .news-page-container, .pg-container, .sf-container, .tp-container,
    .sc-container, .si-container, .sfs-container, .sp-container, .ssf-container, .st-container { padding: 0 16px; }

    /* filter bars */
    .filter-bar,
    .news-filter-bar { flex-direction: column; align-items: flex-start; }
    .search-wrap,
    .search-wrap input,
    .news-search-wrap,
    .news-search-wrap input { width: 100%; }

    /* list view btn hidden on mobile */
    .list-view-btn,
    .sp-view-btn { display: none; }

    /* calendar */
    .ca-activity-date { display: none; }

    /* news grid */
    .news-page-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .news-page-thumb { height: 180px; }

    /* single shared */
    .single-header { padding: 24px 22px 20px; flex-direction: column; gap: 14px; }
    .single-title  { font-size: 20px; }
    .single-description { padding: 22px; }
    .download-block { padding: 22px; flex-direction: column; align-items: flex-start; }
    .download-btn   { width: 100%; justify-content: center; }
    .single-footer  { padding: 18px 22px; flex-direction: column; align-items: flex-start; }
    .no-file        { padding: 20px 22px; }
    .related-heading { padding: 14px 20px; }
    .related-item   { padding: 14px 20px; }

    /* single-header--simple variant */
    .single-header--simple { padding: 24px 22px 20px; }

    /* sfs */
    .sfs-image, .sfs-image-wrap { height: 260px; }
    .sfs-related-grid { grid-template-columns: 1fr; }
    .sfs-related-card { border-right: none; border-bottom: 1px solid var(--border); }
    .sfs-related-card:last-child { border-bottom: none; }
    .sfs-related-img-wrap { height: 180px; }

    /* single news */
    .single-news-body { padding: 40px 0; }
    .single-news-container { padding: 0 20px; }
    .sn-article-header { padding: 24px 0 20px; }
    .sn-title { font-size: 22px; }
    .sn-content { padding: 24px 0; }
    .sn-article-footer { padding: 18px 0; flex-direction: column; align-items: flex-start; }
    .sn-post-nav .sn-nav-prev,
    .sn-post-nav .sn-nav-next { padding: 16px 20px; }
    .sn-other-news { padding: 40px 0 56px; }
    .sn-other-container { padding: 0 16px; }
    .sn-other-card { flex: 0 0 220px; }
    .sn-other-thumb { height: 130px; }

    /* sp */
    .sp-header { padding: 24px 22px 20px; flex-direction: column; gap: 14px; }
    .sp-title  { font-size: 20px; }
    .sp-description { padding: 22px; }
    .sp-footer { padding: 18px 22px; }
}

@media only screen and (max-width: 480px) {
    .fs-grid,
    .pg-grid,
    .news-page-grid { grid-template-columns: 1fr; }

    .news-page-thumb { height: 200px; }

    .single-title  { font-size: 18px; }
    .single-header-icon,
    .file-icon { width: 46px; height: 46px; font-size: 20px; }

    /* calendar */
    .ca-month-header  { padding: 14px 16px; }
    .ca-activity-item { padding: 14px 16px; gap: 12px; }
    .ca-date-badge    { width: 44px; height: 44px; }
    .ca-date-day      { font-size: 17px; }

    /* sfs */
    .sfs-title { font-size: 18px; }
    .sfs-image, .sfs-image-wrap { height: 200px; }

    /* single news */
    .sn-title { font-size: 19px; }
    .sn-post-nav { grid-template-columns: 1fr; }
    .sn-nav-prev { border-right: none; border-bottom: 1px solid var(--border); }
    .sn-nav-next { text-align: left; }
    .sn-nav-next .sn-nav-dir { justify-content: flex-start; }
    .sn-other-card { flex: 0 0 200px; }
    .sn-scroll-btn { display: none; }

    /* sp */
    .sp-title { font-size: 18px; }
    .sp-header-icon { width: 46px; height: 46px; }
}

/* ============================================================
   ARCHIVE — SCHOOLS
   ============================================================ */
.schools-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.school-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    padding: 16px;
}
.school-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.school-img {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #dde3ec;
    flex-shrink: 0;
}
.school-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.school-card:hover .school-img img { transform: scale(1.04); }

.school-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.school-info h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--deped-dark);
    line-height: 1.3;
}
.school-info p {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 3px;
}
.school-info p strong { color: var(--deped-dark); white-space: nowrap; }
.school-info p i { color: var(--deped-yellow); margin-top: 2px; flex-shrink: 0; }

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.school-map {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.school-map img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.school-map:hover img { transform: scale(1.03); }

#schools-loading {
    display: none;
    text-align: center;
    padding: 40px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    grid-column: 1 / -1;
}
#schools-loading .spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--deped-yellow);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.schools-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.schools-pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-mid);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}
.schools-pagination button:hover:not(:disabled) {
    border-color: var(--deped-yellow);
    color: var(--deped-yellow);
}
.schools-pagination button.active {
    background: var(--deped-dark);
    border-color: var(--deped-dark);
    color: var(--white);
}
.schools-pagination button:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .schools-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Image stays on TOP — always column direction */
    .school-card {
        flex-direction: column;
    }

    .school-img {
        width: 100%;
        height: 200px;
    }

    .school-map img { height: 90px; }

    .schools-pagination button {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.8rem;
    }
}