/* =====================================================================
   Kispang Polytechnic College Theme - Main Stylesheet
   Developed by TWS Nepal
   ===================================================================== */

:root {
	--kispang-primary: #2b3990;
	--kispang-primary-light: #123a86;
	--kispang-accent: #fda92f;
	--kispang-green: #2E7D32;
	--kispang-text: #333333;
	--kispang-muted: #6b7280;
	--kispang-border: #e7eaf0;
	--kispang-bg-light: #f5f7fb;
	--kispang-body-bg: #ffffff;
	--kispang-surface: #ffffff;
	--kispang-header-bg: #ffffff;
	--kispang-hero-grad-start: #eef2fb;
	--kispang-hero-grad-end: #ffffff;
	--kispang-ink: var(--kispang-primary);
	--font-heading: 'Poppins', 'Noto Sans Devanagari', sans-serif;
	--font-body: 'Poppins', 'Noto Sans Devanagari', sans-serif;
	--radius: 10px;
	--shadow-card: 0 10px 30px rgba(11, 45, 107, 0.08);
	--container-width: 1200px;
	--kispang-header-height: 148px;
	color-scheme: light;
}

/* Dark mode palette - activated by [data-theme="dark"] on <html>,
   set instantly (before paint) by the inline script in header.php so
   there is no flash of the wrong theme. See inc/dark-mode-switcher.php
   and assets/js/main.js for the switching logic. */
html[data-theme="dark"] {
	--kispang-text: #e6e9f2;
	--kispang-muted: #9aa5c0;
	--kispang-border: #26314d;
	--kispang-bg-light: #1a2338;
	--kispang-body-bg: #0d1526;
	--kispang-surface: #131b2e;
	--kispang-header-bg: #0f1830;
	--kispang-hero-grad-start: #131b2e;
	--kispang-hero-grad-end: #0d1526;
	--kispang-ink: #cfdcff;
	--shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
	color-scheme: dark;
}

html[data-theme="dark"] .kispang-header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.5); }
html[data-theme="dark"] .empty-state-block i { color: var(--kispang-border); }

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--font-body);
	color: var(--kispang-text);
	font-size: 16px;
	line-height: 1.7;
	background: var(--kispang-body-bg);
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--kispang-ink);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 .6em;
}

a { color: var(--kispang-ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--kispang-accent); }

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

ul { margin: 0; padding: 0; list-style: none; }
p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
/* ---------------------------------------------------------------
   Global form field styling - a consistent baseline for every input,
   textarea and select on the site (comment form, enquiry form, search
   form, and any widget/plugin form that doesn't set its own styles).
   --------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="search"], input[type="number"], input[type="password"], input[type="date"],
textarea, select {
	font-family: var(--font-body); font-size: 14.5px; color: var(--kispang-text);
	background: var(--kispang-surface); border: 1px solid var(--kispang-border);
	border-radius: 8px; padding: 11px 14px; width: 100%;
	transition: border-color .2s ease, box-shadow .2s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="tel"]:focus,
input[type="search"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="date"]:focus,
textarea:focus, select:focus {
	outline: none; border-color: var(--kispang-primary); box-shadow: 0 0 0 3px rgba(43,57,144,.12);
}
textarea { resize: vertical; }
select { cursor: pointer; }
::placeholder { color: var(--kispang-muted); opacity: 1; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 28px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 15px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all .25s ease;
	white-space: nowrap;
}
.btn-primary { background: var(--kispang-primary); color: #fff; border-color: var(--kispang-primary); }
.btn-primary:hover { background: var(--kispang-primary-light); color: #fff; }
.btn-accent { background: var(--kispang-accent); color: #1a1a1a; border-color: var(--kispang-accent); }
.btn-accent:hover { background: #e0951a; color: #1a1a1a; }
.btn-outline { background: transparent; color: var(--kispang-ink); border-color: var(--kispang-ink); }
.btn-outline:hover { background: var(--kispang-primary); color: #fff; }
.btn-outline-color { background: transparent; color: var(--card-color, var(--kispang-ink)); border-color: var(--card-color, var(--kispang-ink)); }
.btn-outline-color:hover { background: var(--card-color, var(--kispang-primary)); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------------------------------------------------------------
   Top bar
   --------------------------------------------------------------- */
.kispang-topbar { background: #2b3990; color: #cfd8ee; font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; flex-wrap: wrap; gap: 8px; }
.topbar-left { display: flex; gap: 22px; }
.topbar-left a { color: #cfd8ee; }
.topbar-left a:hover { color: var(--kispang-accent); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-badge { background: rgba(255,255,255,.08); padding: 4px 12px; border-radius: 20px; font-size: 12.5px; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { color: #cfd8ee; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; }
.topbar-social a:hover { background: var(--kispang-accent); color: #1a1a1a; }

/* Language switcher */
.kispang-lang-switcher { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.08); border-radius: 20px; padding: 3px; }
.lang-switch-link { padding: 5px 13px; border-radius: 16px; font-size: 12.5px; font-weight: 600; color: #cfd8ee; }
.lang-switch-link:hover { color: #fff; }
.lang-switch-link.is-active { background: var(--kispang-accent); color: #1a1a1a; }
body.kispang-lang-np { font-family: 'Noto Sans Devanagari', var(--font-body); }

/* Light / Dark / System theme switcher - sits beside the language switcher */
.kispang-theme-switcher { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.08); border-radius: 20px; padding: 3px; }
.theme-switch-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%; border: none; background: transparent;
	color: #cfd8ee; cursor: pointer; font-size: 12px; transition: all .2s ease;
}
.theme-switch-btn:hover { color: #fff; }
.theme-switch-btn.is-active { background: var(--kispang-accent); color: #1a1a1a; }

/* ---------------------------------------------------------------
   Header / Navigation
   --------------------------------------------------------------- */
.kispang-header { background: var(--kispang-header-bg); box-shadow: 0 2px 12px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 500; transition: box-shadow .2s ease; }
.kispang-header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.header-top-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 20px; transition: max-height .35s ease, opacity .3s ease, padding .35s ease; max-height: 200px; opacity: 1; overflow: hidden; }

.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 60px; width: auto; }
.logo-icon { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--kispang-ink); display: inline-flex; align-items: center; justify-content: center; color: var(--kispang-ink); font-size: 22px; }
.site-title-block { display: flex; flex-direction: column; line-height: 1.25; }
.site-title { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: var(--kispang-ink); letter-spacing: .3px; }
.site-tagline { font-size: 12px; color: var(--kispang-muted); font-weight: 500; }

.header-sub-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-sub-logo-img { max-height: 56px; width: auto; display: block; }

/* Full-width navigation bar (own row, edge-to-edge background, inner
   content aligned via the standard .container) */
.header-nav-bar { width: 100%; border-top: 1px solid var(--kispang-border); }
.header-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }

/* Compact logo that fades in inside the nav bar once the top row has
   collapsed on scroll (desktop only - see the min-width media query).
   Hidden (width: 0, effectively not shown) until scrolled, then shown at
   a fixed 32px. */
.header-nav-logo { display: flex; align-items: center; width: 0; opacity: 0; overflow: hidden; margin-right: 0; transition: width .35s ease, opacity .3s ease, margin .35s ease; }
.header-nav-logo img { max-width: 32px; width: 32px; height: auto; display: block; }
.header-nav-logo .logo-icon { width: 32px; height: 32px; font-size: 14px; }

.main-navigation { flex: 1; display: flex; justify-content: center; transition: justify-content .3s ease; }
.primary-menu { display: flex; align-items: center; gap: 4px; position: relative; }
.primary-menu > .menu-item { position: relative; }
.primary-menu > .menu-item > .menu-link {
	display: flex; align-items: center; gap: 6px;
	padding: 14px 16px; color: var(--kispang-text); font-weight: 600; font-size: 15px; border-radius: 6px;
}
.primary-menu > .menu-item > .menu-link:hover,
.primary-menu > .menu-item.current-menu-item > .menu-link { color: var(--kispang-ink); background: var(--kispang-bg-light); }
.menu-caret { font-size: 10px; transition: transform .2s ease; }
.menu-item-has-children:hover > .menu-link .menu-caret { transform: rotate(180deg); }

@media (min-width: 992px) {
	.kispang-header.is-scrolled .header-top-row { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
	.kispang-header.is-scrolled .header-nav-logo { width: 32px; opacity: 1; margin-right: 24px; }
	.kispang-header.is-scrolled .main-navigation { justify-content: flex-start; }
}

/* Header search toggle */
.header-search { position: relative; display: flex; align-items: center; }
.header-search-toggle {
	width: 38px; height: 38px; border-radius: 50%; border: none; background: transparent; color: var(--kispang-text);
	font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.header-search-toggle:hover { background: var(--kispang-bg-light); color: var(--kispang-ink); }
.header-search-form {
	position: absolute; top: calc(100% + 10px); right: 0; width: 280px; background: var(--kispang-surface);
	border: 1px solid var(--kispang-border); border-radius: 10px; box-shadow: 0 14px 34px rgba(11,45,107,.15);
	padding: 12px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .2s ease; z-index: 300;
}
.header-search-form.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.header-search-form .kispang-search-form { border-color: var(--kispang-border); }

/* Standard dropdown (e.g. About Us) */
.kispang-dropdown {
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--kispang-surface); border-radius: 8px; box-shadow: 0 14px 40px rgba(11,45,107,.15);
	padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s ease; z-index: 50;
}
.menu-item-has-children:hover > .kispang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.kispang-dropdown .menu-item > .menu-link { display: block; padding: 10px 22px; color: var(--kispang-text); font-weight: 500; font-size: 14.5px; }
.kispang-dropdown .menu-item:hover > .menu-link { background: var(--kispang-bg-light); color: var(--kispang-ink); }
.kispang-submenu-nested { padding-left: 14px; }

/* Mega menu panel */
.kispang-mega-panel {
	position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
	width: 92vw; max-width: 980px; background: var(--kispang-surface); border-radius: 10px;
	box-shadow: 0 20px 50px rgba(11,45,107,.18); padding: 30px;
	opacity: 0; visibility: hidden; transition: all .22s ease; z-index: 60;
}
.menu-item-has-children:hover > .kispang-mega-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.kispang-mega-inner { width: 100%; }
.kispang-mega-columns { display: flex; gap: 30px; }
.kispang-mega-links { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 20px; }
.kispang-mega-links .menu-item > .menu-link { display: block; padding: 10px 12px; border-radius: 6px; color: var(--kispang-text); font-weight: 500; }
.kispang-mega-links .menu-item:hover > .menu-link { background: var(--kispang-bg-light); color: var(--kispang-ink); }
.kispang-mega-featured { width: 260px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--kispang-border); padding-right: 24px; }
.kispang-mega-featured-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; }
.kispang-mega-featured-item:hover { background: var(--kispang-bg-light); }
.kispang-mega-featured-img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.kispang-mega-featured-icon { width: 48px; height: 48px; border-radius: 6px; background: var(--kispang-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.kispang-mega-featured-title { font-weight: 600; font-size: 14px; color: var(--kispang-text); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.mobile-menu-toggle span { width: 24px; height: 2.5px; background: var(--kispang-primary); border-radius: 2px; transition: all .25s ease; }
.mobile-menu-branding, .mobile-menu-footer { display: none; }
.mobile-menu-close { display: none; }

/* Dim overlay behind the mobile/device side-menu.
   IMPORTANT: z-index must stay BELOW .kispang-header's (500). .kispang-header
   is position:sticky with its own z-index, which creates a stacking context -
   so .main-navigation's z-index:900 only ranks relative to its siblings
   *inside* the header; against elements outside the header (like this
   overlay) it's the header's own z-index (500) that counts. Giving the
   overlay a higher z-index than 500 would render it on top of the entire
   header, including the open nav panel underneath it. */
.mobile-menu-overlay {
	position: fixed; inset: 0; background: rgba(6,20,54,.6); z-index: 480;
	opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu-overlay.is-visible { opacity: 1; visibility: visible; }
body.mobile-menu-open { overflow: hidden; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.kispang-hero { background: linear-gradient(180deg, var(--kispang-hero-grad-start) 0%, var(--kispang-hero-grad-end) 100%); padding: 60px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; color: var(--kispang-ink); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.badge-dash { width: 30px; height: 2px; background: var(--kispang-accent); display: inline-block; }
.hero-title { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.hero-title .text-accent { color: var(--kispang-accent); }
.hero-desc { color: var(--kispang-muted); font-size: 16.5px; max-width: 520px; margin-bottom: 28px; }
.hero-buttons { display: flex; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; }
.hero-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; }
.hero-feature { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--kispang-text); }
.hero-feature i { color: var(--kispang-ink); font-size: 18px; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media-caption { position: absolute; bottom: 20px; left: 20px; background: rgba(11,45,107,.9); color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }

/* Hero: Slider mode (alternative to the static hero above) */
.kispang-hero-slider-mode { padding: 0; width: 100%; max-width: 100%; }
.hero-swiper { position: relative; width: 100%; max-width: 100%; overflow: hidden; }
.hero-swiper .swiper-wrapper { width: 100%; }
.hero-swiper .swiper-slide { width: 100% !important; flex-shrink: 0; }
.hero-slide {
	width: 100%; min-height: 560px; display: flex; align-items: center; position: relative;
	background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,54,.88) 10%, rgba(6,20,54,.45) 60%, rgba(6,20,54,.2) 100%); }
.hero-slide-content {
	position: relative; z-index: 2; max-width: 650px; text-align: left;
	margin-left: max(20px, calc((100vw - var(--container-width)) / 2));
	margin-right: auto;
}
.hero-slide-content .hero-title,
.hero-slide-content .hero-badge { color: #fff; }
.hero-slide-content .hero-desc { color: #d7ddef; }

/* Title (+ supporting text) entrance animation, replays each time a slide
   becomes active - Swiper toggles .swiper-slide-active per slide itself so
   the animation naturally re-triggers on every transition, including loops. */
.hero-slide .hero-badge,
.hero-slide .hero-title,
.hero-slide .hero-desc,
.hero-slide .hero-buttons {
	opacity: 0; transform: translateY(28px);
}
.swiper-slide-active .hero-badge { animation: kispangHeroFadeUp .7s ease forwards; animation-delay: .1s; }
.swiper-slide-active .hero-title { animation: kispangHeroFadeUp .7s ease forwards; animation-delay: .25s; }
.swiper-slide-active .hero-desc { animation: kispangHeroFadeUp .7s ease forwards; animation-delay: .4s; }
.swiper-slide-active .hero-buttons { animation: kispangHeroFadeUp .7s ease forwards; animation-delay: .55s; }
@keyframes kispangHeroFadeUp {
	to { opacity: 1; transform: translateY(0); }
}

.hero-swiper .swiper-pagination-bullet { background: #fff; opacity: .5; }
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--kispang-accent); }
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
	width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
	background: rgba(6,20,54,.45); border: 1px solid rgba(255,255,255,.35);
	color: #fff; backdrop-filter: blur(2px); transition: background .2s ease;
}
.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover { background: var(--kispang-accent); color: #1a1a1a; border-color: var(--kispang-accent); }
.hero-swiper .swiper-button-prev:after, .hero-swiper .swiper-button-next:after { font-size: 18px; font-weight: 700; }
.hero-swiper .swiper-button-prev { left: 20px; }
.hero-swiper .swiper-button-next { right: 20px; }

@media (max-width: 560px) {
	.hero-slide { min-height: 420px; }
	.hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next { display: none; }
}

/* ---------------------------------------------------------------
   Section heading
   --------------------------------------------------------------- */
.kispang-section { padding: 70px 0; }
.section-heading { text-align: center; font-size: 30px; display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 40px; }
.section-heading .dash { width: 40px; height: 2px; background: var(--kispang-accent); display: inline-block; }
.section-heading-left { justify-content: flex-start; }
.section-cta { text-align: center; margin-top: 30px; }

/* ---------------------------------------------------------------
   Programs + Notices
   --------------------------------------------------------------- */
.two-col-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: start; }
.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.program-card { background: var(--kispang-surface); border: 1px solid var(--kispang-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .25s ease, box-shadow .25s ease; }
.program-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,45,107,.14); }
.program-card-image { position: relative; height: 180px; }
.program-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.program-icon-badge {
	position: absolute; bottom: -22px; left: 24px; width: 56px; height: 56px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
	box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.program-icon-plain { width: 56px; height: 56px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; margin: 26px 0 0 26px; }
.program-body { padding: 34px 26px 26px; }
.program-body.no-image { padding-top: 16px; }
.program-title { font-size: 19px; margin-bottom: 10px; }
.program-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.program-meta li { font-size: 13.5px; color: var(--kispang-muted); display: flex; align-items: center; gap: 6px; }
.program-excerpt { color: var(--kispang-muted); font-size: 14.5px; margin-bottom: 20px; }

.notice-panel { background: var(--kispang-primary); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.notice-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: #2b3990; }
.notice-panel-header h3 { color: #fff; margin: 0; font-size: 18px; }
.notice-panel-header .view-all { color: var(--kispang-accent); font-size: 13.5px; font-weight: 600; }
.notice-list { padding: 6px 0; }
.notice-row { border-bottom: 1px solid rgba(255,255,255,.08); }
.notice-row:last-child { border-bottom: none; }
.notice-row a { display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; color: #fff; gap: 14px; }
.notice-row a:hover { background: rgba(255,255,255,.06); }
.notice-title { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.notice-title i { color: var(--kispang-accent); font-size: 12px; }
.notice-date { font-size: 12.5px; color: #b9c4e0; white-space: nowrap; }
.notice-arrow { display: none; }
.notice-row.is-important .notice-title { color: var(--kispang-accent); }

.notice-panel-full { max-width: 100%; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-tab { padding: 9px 20px; border-radius: 30px; border: 1px solid var(--kispang-border); background: var(--kispang-surface); font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--kispang-text); transition: all .2s ease; }
.filter-tab.is-active, .filter-tab:hover { background: var(--kispang-primary); border-color: var(--kispang-primary); color: #fff; }
.load-more-wrap { text-align: center; margin-top: 30px; }
.is-loading { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------------
   Principal Message: 7:3 split (message left, Executive Committee right)
   --------------------------------------------------------------- */
.principal-section { background: var(--kispang-bg-light); }
.principal-split { display: grid; grid-template-columns: 7fr 3fr; gap: 36px; align-items: start; }

.principal-split-main .principal-card {
	display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center;
	background: var(--kispang-surface); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-card);
}
.principal-photo { position: relative; }
.principal-photo img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4/5; display: block; }
.principal-quote-badge {
	position: absolute; top: -14px; right: -14px; width: 52px; height: 52px; border-radius: 50%;
	background: var(--kispang-accent); color: #1a1206; display: flex; align-items: center; justify-content: center;
	font-size: 19px; box-shadow: 0 8px 20px rgba(245,166,35,.4);
}
.quote-icon { color: var(--kispang-accent); font-size: 26px; margin-bottom: 12px; }
.principal-message { color: var(--kispang-text); font-size: 15.5px; line-height: 1.8; margin-bottom: 14px; }
.principal-readmore-btn { margin-bottom: 18px; }
.principal-name { font-weight: 700; color: var(--kispang-primary); margin-bottom: 2px; }
.principal-title { color: var(--kispang-muted); font-size: 14px; }

.principal-split-side { background: var(--kispang-bg-light); border: 1px solid var(--kispang-border); border-radius: var(--radius); padding: 26px; height: 100%; }
.principal-side-heading { font-size: 16px; margin-bottom: 20px; }
.exec-member-list { display: flex; flex-direction: column; gap: 16px; }
.exec-member-row {
	display: flex; gap: 14px; align-items: center; background: var(--kispang-surface); border: 1px solid var(--kispang-border);
	border-radius: 12px; padding: 14px; transition: all .2s ease;
}
.exec-member-row:hover { border-color: var(--kispang-primary); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.exec-member-photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: block; background: var(--kispang-bg-light); }
.exec-member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exec-member-photo-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--kispang-muted); font-size: 20px; }
.exec-member-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.exec-member-name { font-size: 13.5px; color: var(--kispang-ink); }
.exec-member-designation { font-size: 12px; color: var(--kispang-muted); }
.exec-member-viewmore { text-align: center; margin-top: 20px; }

/* Popup modal (Message from Principal "Read More", reusable elsewhere) */
.kispang-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.kispang-modal.is-open { display: flex; }
.kispang-modal-overlay { position: absolute; inset: 0; background: rgba(6,20,54,.75); }
.kispang-modal-dialog {
	position: relative; background: var(--kispang-surface); border-radius: var(--radius); max-width: 640px; width: 100%;
	max-height: 85vh; overflow-y: auto; padding: 40px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
	animation: kispangModalIn .25s ease;
}
@keyframes kispangModalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.kispang-modal-close {
	position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: none;
	background: var(--kispang-bg-light); color: var(--kispang-text); font-size: 20px; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.kispang-modal-close:hover { background: var(--kispang-primary); color: #fff; }
body.kispang-modal-open { overflow: hidden; }
.principal-modal-body { text-align: left; }
.principal-modal-body .principal-message { max-height: none; overflow: visible; margin-bottom: 16px; }

@media (max-width: 991px) {
	.principal-split { grid-template-columns: 1fr; }
	.principal-split-main .principal-card { grid-template-columns: 1fr; text-align: center; }
	.principal-photo { max-width: 260px; margin: 0 auto; }
}

/* ---------------------------------------------------------------
   Contact section
   --------------------------------------------------------------- */
.contact-grid { grid-template-columns: 1fr 1fr; }
.contact-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }
.contact-info-card { background: var(--kispang-surface); border: 1px solid var(--kispang-border); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow-card); }
.contact-info-card i { font-size: 26px; color: var(--kispang-ink); margin-bottom: 12px; }
.contact-info-card h4 { font-size: 15px; margin-bottom: 6px; }
.contact-info-card p { font-size: 13.5px; color: var(--kispang-muted); }
.contact-map iframe { border-radius: var(--radius); }
.contact-map-full { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.contact-map-full iframe { display: block; width: 100%; border-radius: var(--radius); }

.enquiry-form-card { background: var(--kispang-primary); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-card); }
.enquiry-form-card h3 { color: #fff; margin-bottom: 24px; }
.form-row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.form-row input, .form-row select, .form-row textarea {
	flex: 1; min-width: 140px; padding: 13px 16px; border-radius: 6px; border: none; font-family: var(--font-body); font-size: 14.5px; background: var(--kispang-surface); color: var(--kispang-text);
}
.form-row textarea { resize: vertical; }
.enquiry-form .btn-accent { margin-top: 6px; }
.form-response { margin-top: 14px; font-size: 14px; font-weight: 600; }
.form-response.is-success { color: #7CFC98; }
.form-response.is-error { color: #ff9b9b; }

/* ---------------------------------------------------------------
   Stats bar
   --------------------------------------------------------------- */
.kispang-stats-bar {
	position: relative; overflow: hidden; padding: 70px 0;
	background: linear-gradient(120deg, #081d4d 0%, var(--kispang-primary) 50%, #0a2559 100%);
}
.kispang-stats-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.kispang-stats-shapes span { position: absolute; border-radius: 50%; filter: blur(2px); }
.kispang-stats-shapes span:nth-child(1) { width: 340px; height: 340px; top: -180px; left: -80px; background: rgba(255,255,255,.045); }
.kispang-stats-shapes span:nth-child(2) { width: 260px; height: 260px; bottom: -140px; right: -40px; background: rgba(245,166,35,.06); }

.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.stat-card {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
	padding: 34px 20px 28px; border-radius: 14px; background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.12); overflow: hidden;
	transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.stat-card::before {
	content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--kispang-accent);
	opacity: 0; transition: opacity .25s ease;
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.stat-card:hover::before { opacity: 1; }
.stat-icon-badge {
	width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(140deg, var(--kispang-accent), #d98d12); color: #1a1206; font-size: 22px; margin-bottom: 10px;
	box-shadow: 0 6px 16px rgba(245,166,35,.35); transition: transform .25s ease;
}
.stat-card:hover .stat-icon-badge { transform: scale(1.08); }
.stat-card strong { display: block; font-size: 32px; font-weight: 800; color: #fff; letter-spacing: .2px; line-height: 1.1; }
.stat-label { font-size: 12.5px; font-weight: 600; color: #aebbdd; letter-spacing: .6px; text-transform: uppercase; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer { background: #2b3990; color: #b9c4e0; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col .site-branding { margin-bottom: 14px; }
.footer-col .site-title { color: #fff; }
.footer-menu li, .footer-contact-list li { margin-bottom: 10px; font-size: 14px; }
.footer-menu a { color: #b9c4e0; }
.footer-menu a:hover { color: var(--kispang-accent); }
.footer-contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-list i { color: var(--kispang-accent); margin-top: 3px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--kispang-accent); color: #1a1a1a; }
.footer-follow-us { margin-top: 22px; }
.footer-follow-us h4 { margin-bottom: 12px; font-size: 14px; }

.info-officer-card { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.info-officer-card h4 { font-size: 14px; margin-bottom: 14px; }
.info-officer-body { display: flex; align-items: center; gap: 12px; }
.info-officer-photo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.info-officer-photo-placeholder { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #b9c4e0; font-size: 18px; }
.info-officer-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.info-officer-name { color: #fff; font-size: 14px; }
.info-officer-contact { color: #b9c4e0; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.info-officer-contact i { color: var(--kispang-accent); width: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 8px; }
.footer-developer a { color: var(--kispang-accent); font-weight: 700; }

/* ---------------------------------------------------------------
   Inner pages: breadcrumbs, headers, sidebar, blog grid
   --------------------------------------------------------------- */
.page-header-band { background: var(--kispang-bg-light); padding: 46px 0 30px; border-bottom: 1px solid var(--kispang-border); }
.page-title { font-size: 32px; margin-bottom: 12px; }
.page-subtitle { color: var(--kispang-muted); max-width: 700px; margin-bottom: 14px; }
.kispang-breadcrumbs { font-size: 13.5px; color: var(--kispang-muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kispang-breadcrumbs a { color: var(--kispang-muted); }
.kispang-breadcrumbs a:hover { color: var(--kispang-ink); }
.kispang-breadcrumbs i { font-size: 10px; }

.inner-page-wrap { padding: 50px 0 70px; }
.inner-page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.inner-page-layout.no-sidebar { grid-template-columns: 1fr; }
.inner-page-content.full-width { max-width: 900px; }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-bottom: 40px; }
.blog-card { border: 1px solid var(--kispang-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.blog-card-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-card-date { font-size: 12.5px; color: var(--kispang-muted); }
.blog-card-title { font-size: 18px; margin: 6px 0 10px; }
.blog-card-excerpt { color: var(--kispang-muted); font-size: 14px; margin-bottom: 14px; }
.blog-card-more { font-weight: 700; font-size: 13.5px; }

.widget { background: var(--kispang-surface); border: 1px solid var(--kispang-border); border-radius: var(--radius); padding: 24px; margin-bottom: 26px; box-shadow: var(--shadow-card); }
.widget-title { font-size: 17px; margin-bottom: 16px; }
.related-programs-list li { border-bottom: 1px solid var(--kispang-border); padding: 10px 0; font-size: 14.5px; }
.related-programs-list li:last-child { border-bottom: none; }
.related-programs-list i { color: var(--kispang-accent); font-size: 11px; margin-right: 8px; }
.recent-notices-widget .notice-panel-full,
.recent-notices-widget .notice-list,
.sidebar-list-widget .notice-panel-full,
.sidebar-list-widget .notice-list { background: transparent; }
.recent-notices-widget .notice-row,
.sidebar-list-widget .notice-row { border-bottom: 1px solid var(--kispang-border); }
.recent-notices-widget .notice-row a,
.sidebar-list-widget .notice-row a { color: var(--kispang-text); padding: 10px 0; }
.recent-notices-widget .notice-title,
.sidebar-list-widget .notice-title { color: var(--kispang-ink); }
.recent-notices-widget .notice-date,
.sidebar-list-widget .notice-date { color: var(--kispang-muted); }

.empty-state, .empty-state-block { text-align: center; color: var(--kispang-muted); padding: 40px 20px; }
.empty-state-block i { font-size: 40px; margin-bottom: 16px; color: var(--kispang-border); }

/* ---------------------------------------------------------------
   Single Program
   --------------------------------------------------------------- */
.program-header-icon { width: 64px; height: 64px; border-radius: 14px; background: var(--band-color, var(--kispang-primary)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; }
.program-facts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.fact-box { background: var(--kispang-bg-light); border-radius: 10px; padding: 18px; display: flex; align-items: center; gap: 12px; }
.fact-box i { font-size: 22px; color: var(--kispang-ink); }
.fact-box strong { display: block; font-size: 15px; }
.fact-box span { font-size: 12.5px; color: var(--kispang-muted); }
.program-apply-cta { margin-top: 34px; }
.page-featured-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.page-featured-image img { width: 100%; display: block; }

/* ---------------------------------------------------------------
   Single Program: sticky horizontal tabs
   --------------------------------------------------------------- */
.program-tabs-nav {
	position: sticky; top: var(--kispang-header-height); z-index: 400; background: var(--kispang-surface);
	border-bottom: 1px solid var(--kispang-border); box-shadow: 0 4px 14px rgba(11,45,107,.06);
}
.program-tabs-scroll { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.program-tabs-scroll::-webkit-scrollbar { display: none; }
.program-tab {
	flex-shrink: 0; padding: 16px 20px; font-weight: 600; font-size: 14.5px; color: var(--kispang-muted);
	border-bottom: 3px solid transparent; white-space: nowrap; transition: all .2s ease;
}
.program-tab:hover { color: var(--kispang-ink); }
.program-tab.is-active { color: var(--kispang-ink); border-bottom-color: var(--kispang-accent); }

.program-tab-section { scroll-margin-top: calc(var(--kispang-header-height) + 60px); padding-bottom: 50px; margin-bottom: 10px; border-bottom: 1px solid var(--kispang-border); }
.program-tab-section:last-child { border-bottom: none; margin-bottom: 0; }
.program-tab-section-title { font-size: 24px; margin-bottom: 22px; }
.program-subheading { font-size: 18px; margin: 28px 0 14px; }

.program-point-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 15px; }
.program-point-list i { color: var(--kispang-accent); margin-top: 4px; flex-shrink: 0; }

.syllabus-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.syllabus-row { display: flex; align-items: center; gap: 16px; background: var(--kispang-bg-light); border-radius: var(--radius); padding: 16px 18px; }
.syllabus-info { flex: 1; }
.syllabus-info h4 { font-size: 15px; margin-bottom: 2px; }
.syllabus-downloads-note { font-size: 13.5px; color: var(--kispang-muted); }
.syllabus-downloads-note i { color: var(--kispang-primary); margin-right: 6px; }

.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.staff-card { background: var(--kispang-surface); border: 1px solid var(--kispang-border); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-card); }
.staff-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; }
.staff-photo-placeholder { display: flex; align-items: center; justify-content: center; background: var(--kispang-bg-light); color: var(--kispang-muted); font-size: 30px; }
.staff-name { font-size: 16px; margin-bottom: 2px; }
.staff-designation { display: block; color: var(--kispang-accent); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.staff-bio { color: var(--kispang-muted); font-size: 13.5px; }

.download-program-link { color: var(--kispang-ink); font-weight: 600; }
.download-program-note { font-size: 14px; color: var(--kispang-muted); margin-bottom: 20px; }
.download-program-note i { color: var(--kispang-primary); margin-right: 6px; }
.download-program-note a { font-weight: 600; }

@media (max-width: 991px) {
	.staff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.staff-grid { grid-template-columns: 1fr; }
	.syllabus-row { flex-wrap: wrap; }
}
/* ---------------------------------------------------------------
   Admin-only "empty section" hint (never shown to visitors)
   --------------------------------------------------------------- */
.kispang-admin-hint { padding: 30px 0; }
.kispang-admin-hint-inner {
	display: flex; align-items: flex-start; gap: 16px; background: #fff8e6; border: 1px dashed #e0b84a;
	border-radius: var(--radius); padding: 22px 26px;
}
.kispang-admin-hint-inner i { color: #b3841a; font-size: 22px; margin-top: 3px; flex-shrink: 0; }
.kispang-admin-hint-inner p { margin: 0 0 8px; font-size: 14px; color: #6b5410; }
.kispang-admin-hint-inner p:first-child strong { color: #8a5f0a; }

/* ---------------------------------------------------------------
   News & Events (homepage, above Stats Bar)
   --------------------------------------------------------------- */
.news-events-swiper { padding-bottom: 46px; }
.news-event-card { background: var(--kispang-surface); border: 1px solid var(--kispang-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); height: 100%; }
.news-event-thumb { position: relative; display: block; height: 180px; background: var(--kispang-bg-light); }
.news-event-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-event-thumb-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--kispang-muted); font-size: 34px; }
.news-event-date { position: absolute; bottom: 10px; left: 10px; background: rgba(6,20,54,.85); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.news-event-body { padding: 22px; }
.news-event-title { font-size: 16.5px; margin-bottom: 8px; }
.news-event-excerpt { color: var(--kispang-muted); font-size: 14px; margin-bottom: 14px; }
.news-event-link i { margin-left: 4px; transition: transform .2s ease; }
.news-event-link:hover i { transform: translateX(3px); }
.news-events-swiper .swiper-pagination-bullet-active { background: var(--kispang-primary); }
.news-events-swiper .swiper-button-prev, .news-events-swiper .swiper-button-next { color: var(--kispang-primary); }
.news-events-swiper .swiper-button-prev:after, .news-events-swiper .swiper-button-next:after { font-size: 20px; }

/* ---------------------------------------------------------------
   Our Features: service-style grid (homepage)
   --------------------------------------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-service-card {
	background: var(--kispang-surface); border: 1px solid var(--kispang-border); border-radius: var(--radius);
	overflow: hidden; text-align: center; box-shadow: var(--shadow-card); transition: transform .25s ease, box-shadow .25s ease;
}
.feature-service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,45,107,.14); }
.feature-service-image { display: block; width: 100%; height: 190px; }
.feature-service-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-service-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--kispang-bg-light); color: var(--kispang-accent); font-size: 34px; }
.feature-service-body { padding: 26px; }
.feature-service-title { font-size: 18px; margin-bottom: 10px; }
.feature-service-title a { color: var(--kispang-ink); }
.feature-service-title a:hover { color: var(--kispang-accent); }
.feature-service-desc { color: var(--kispang-muted); font-size: 14.5px; margin-bottom: 16px; }
.feature-service-link { font-weight: 700; font-size: 13.5px; color: var(--kispang-ink); }
.feature-service-link i { margin-left: 4px; transition: transform .2s ease; }
.feature-service-link:hover i { transform: translateX(3px); }

@media (max-width: 991px) {
	.features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.features-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Faculty Coordinator Message (testimonial-style, above Notice & Updates)
   --------------------------------------------------------------- */
.faculty-message-section { background: var(--kispang-bg-light); }
.testimonial-swiper { max-width: 780px; margin: 0 auto; padding-bottom: 46px; }
.testimonial-card { background: var(--kispang-surface); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 40px; text-align: center; }
.testimonial-quote-icon { font-size: 30px; color: var(--kispang-accent); margin-bottom: 16px; }
.testimonial-message { font-size: 17px; color: var(--kispang-text); margin-bottom: 26px; }
.testimonial-person { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.testimonial-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--kispang-bg-light); box-shadow: var(--shadow-card); }
.testimonial-photo-placeholder { display: flex; align-items: center; justify-content: center; background: var(--kispang-bg-light); color: var(--kispang-muted); font-size: 32px; }
.testimonial-person-info { display: flex; flex-direction: column; }
.testimonial-name { font-size: 15px; color: var(--kispang-ink); }
.testimonial-meta { font-size: 12.5px; color: var(--kispang-muted); }
.testimonial-read-more { margin-top: 18px; }
.testimonial-read-more i { margin-left: 4px; transition: transform .2s ease; }
.testimonial-read-more:hover i { transform: translateX(3px); }
.testimonial-swiper .swiper-pagination-bullet { background: var(--kispang-primary); opacity: .3; }
.testimonial-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--kispang-accent); }

@media (max-width: 560px) {
	.testimonial-card { padding: 26px; }
}

/* ---------------------------------------------------------------
   Affiliations (logo + title strip, homepage, below hero)
   --------------------------------------------------------------- */
.affiliations-section { padding: 50px 0; border-bottom: 1px solid var(--kispang-border); }
.affiliations-heading { text-align: center; font-size: 18px; letter-spacing: .5px; text-transform: uppercase; color: var(--kispang-muted); margin-bottom: 30px; }
.affiliations-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 36px 50px; }
.affiliation-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; width: 130px; transition: transform .2s ease; }
.affiliation-item:hover { transform: translateY(-4px); }
.affiliation-logo-wrap { width: 84px; height: 84px; border-radius: 50%; background: var(--kispang-surface); border: 1px solid var(--kispang-border); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow-card); }
.affiliation-logo { width: 100%; height: 100%; object-fit: contain; padding: 14px; filter: grayscale(100%); opacity: .75; transition: all .25s ease; }
.affiliation-item:hover .affiliation-logo { filter: grayscale(0%); opacity: 1; }
.affiliation-logo-placeholder { color: var(--kispang-muted); font-size: 26px; }
.affiliation-title { font-size: 13px; font-weight: 600; color: var(--kispang-text); line-height: 1.35; }

@media (max-width: 560px) {
	.affiliations-strip { gap: 24px 30px; }
	.affiliation-item { width: 100px; }
	.affiliation-logo-wrap { width: 68px; height: 68px; }
}

/* Split profile: bigger photo left, content right (Team + Faculty Message single pages) */
.split-profile { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; margin-bottom: 10px; }
.split-profile-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); background: var(--kispang-bg-light); }
.split-profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/5; }
.split-profile-photo-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4/5; color: var(--kispang-muted); font-size: 64px; }
.split-profile-content { padding-top: 6px; }
.split-profile-content .quote-icon { margin-top: 16px; }

@media (max-width: 767px) {
	.split-profile { grid-template-columns: 1fr; }
	.split-profile-photo img, .split-profile-photo-placeholder { aspect-ratio: 16/10; }
}

/* Compact sidebar post list (News & Events widget) */
.sidebar-post-list li { border-bottom: 1px solid var(--kispang-border); padding: 12px 0; }
.sidebar-post-list li:last-child { border-bottom: none; }
.sidebar-post-list-item { display: flex; align-items: center; gap: 12px; }
.sidebar-post-thumb { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--kispang-bg-light); }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-post-thumb-placeholder { display: flex; align-items: center; justify-content: center; color: var(--kispang-muted); font-size: 16px; }
.sidebar-post-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sidebar-post-title { font-size: 13.5px; font-weight: 600; color: var(--kispang-text); line-height: 1.35; }
.sidebar-post-list-item:hover .sidebar-post-title { color: var(--kispang-ink); }
.sidebar-post-date { font-size: 11.5px; color: var(--kispang-muted); }

/* ---------------------------------------------------------------
   Gallery (CPT: kispang_gallery, taxonomy: gallery_category / Albums)
   --------------------------------------------------------------- */
.gallery-albums-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gallery-album-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--kispang-surface); border: 1px solid var(--kispang-border); box-shadow: var(--shadow-card); transition: transform .25s ease, box-shadow .25s ease; }
.gallery-album-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,45,107,.14); }
.gallery-album-cover { position: relative; height: 170px; background: var(--kispang-bg-light); }
.gallery-album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-album-cover-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--kispang-muted); font-size: 32px; }
.gallery-album-count {
	position: absolute; bottom: 10px; right: 10px; background: rgba(6,20,54,.8); color: #fff; font-size: 12px; font-weight: 600;
	padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 5px;
}
.gallery-album-title { font-size: 15.5px; padding: 16px 18px; color: var(--kispang-ink); }

.gallery-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-photo-item { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-card); }
.gallery-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-photo-item:hover img { transform: scale(1.06); }

@media (max-width: 991px) {
	.gallery-albums-grid, .gallery-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.gallery-albums-grid, .gallery-photo-grid { grid-template-columns: 1fr; }
}
/* Team ---------------------------------------------------------------- */
.team-category-section { margin-bottom: 44px; }
.team-category-heading {
	font-size: 22px; margin: 0 0 22px; padding-bottom: 12px;
	border-bottom: 2px solid var(--kispang-border);
}
.team-category-heading.is-first { margin-top: 0; }
/* ---------------------------------------------------------------
   Team (CPT: kispang_team)
   --------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: var(--kispang-surface); border: 1px solid var(--kispang-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,45,107,.14); }
.team-photo-wrap { display: block; height: 220px; background: var(--kispang-bg-light); }
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--kispang-muted); font-size: 44px; }
.team-body { padding: 20px; }
.team-name { font-size: 17px; margin-bottom: 4px; }
.team-designation { display: block; color: var(--kispang-accent); font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.team-socials { display: flex; justify-content: center; gap: 10px; }
.team-socials a { width: 32px; height: 32px; border-radius: 50%; background: var(--kispang-bg-light); color: var(--kispang-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.team-socials a:hover { background: var(--kispang-primary); color: #fff; }

/* Single Team profile */
.team-profile { display: flex; gap: 26px; align-items: center; margin-bottom: 30px; flex-wrap: wrap; }
.team-profile-photo { width: 150px; height: 150px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--kispang-bg-light); }
.team-profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo-placeholder-lg { font-size: 54px; }
.team-related-section { margin-top: 40px; }
.team-designation-lg { display: inline-block; margin-bottom: 12px; }
.team-contact-list li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; margin-bottom: 8px; }
.team-contact-list i { color: var(--kispang-primary); width: 16px; }
.team-socials-lg { justify-content: flex-start; margin-top: 6px; }

/* Team Categories sidebar list (widget + About Us page template) */
.team-category-list li { border-bottom: 1px solid var(--kispang-border); }
.team-category-list li:last-child { border-bottom: none; }
.team-category-list a { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 14.5px; color: var(--kispang-text); }
.team-category-list a:hover { color: var(--kispang-ink); }
.team-category-list i { color: var(--kispang-accent); font-size: 11px; }
.team-category-count { margin-left: auto; color: var(--kispang-muted); font-size: 13px; }

@media (max-width: 991px) {
	.team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.team-grid { grid-template-columns: 1fr; }
	.team-profile { flex-direction: column; text-align: center; }
	.team-socials-lg { justify-content: center; }
	.team-contact-list li { justify-content: center; }
}

/* ---------------------------------------------------------------
   Single Notice
   --------------------------------------------------------------- */
.notice-single-card { background: var(--kispang-surface); border-radius: var(--radius); padding: 10px; }
.notice-single-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--kispang-muted); font-size: 13.5px; margin-bottom: 22px; }
.notice-single-meta i { color: var(--kispang-primary); margin-right: 6px; }
.notice-attachment, .notice-share { margin-top: 26px; }

/* ---------------------------------------------------------------
   Downloads
   --------------------------------------------------------------- */
.downloads-list { display: flex; flex-direction: column; gap: 16px; }
.download-row { display: flex; align-items: center; gap: 18px; background: var(--kispang-surface); border: 1px solid var(--kispang-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card); }
.download-icon { width: 54px; height: 54px; border-radius: 10px; background: var(--kispang-bg-light); color: var(--kispang-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.download-info { flex: 1; }
.download-title { font-size: 16px; margin-bottom: 4px; }
.download-meta { font-size: 12.5px; color: var(--kispang-muted); }
.download-single-card { background: var(--kispang-surface); border-radius: var(--radius); padding: 10px; }
.download-icon-large { width: 80px; height: 80px; border-radius: 14px; background: var(--kispang-bg-light); color: var(--kispang-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 18px; }

.pdf-viewer-wrap { margin-top: 36px; }
.pdf-viewer-frame { width: 100%; height: 800px; border: 1px solid var(--kispang-border); border-radius: var(--radius); box-shadow: var(--shadow-card); background: var(--kispang-bg-light); }
.pdf-viewer-note { font-size: 13px; color: var(--kispang-muted); margin-top: 10px; }
.other-downloads-section { margin-top: 40px; }

@media (max-width: 767px) {
	.pdf-viewer-frame { height: 500px; }
}
.download-single-meta { display: flex; gap: 16px; color: var(--kispang-muted); font-size: 13.5px; margin-bottom: 22px; }

/* ---------------------------------------------------------------
   404 / Error
   --------------------------------------------------------------- */
.error-404-block { text-align: center; padding: 90px 20px; }
.error-code { font-size: 100px; font-weight: 800; color: var(--kispang-primary); opacity: .15; display: block; }
.error-search { margin-top: 30px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* Back to Top */
.back-to-top-btn {
	position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
	background: var(--kispang-primary); color: #fff; border: none; font-size: 18px; cursor: pointer;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(11,45,107,.35);
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s ease; z-index: 700;
}
.back-to-top-btn.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background: var(--kispang-accent); color: #1a1206; transform: translateY(-3px); }

@media (max-width: 560px) {
	.back-to-top-btn { bottom: 18px; right: 18px; width: 42px; height: 42px; font-size: 16px; }
}

/* ---------------------------------------------------------------
   Comments
   --------------------------------------------------------------- */
.comments-area { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--kispang-border); }
.comments-title { font-size: 22px; margin-bottom: 26px; }

.comment-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.comment-list .children { list-style: none; padding-left: 44px; margin-top: 18px; display: flex; flex-direction: column; gap: 18px; }

.comment-body {
	background: var(--kispang-surface); border: 1px solid var(--kispang-border); border-radius: var(--radius);
	padding: 22px 24px; box-shadow: var(--shadow-card);
}
.comment-meta { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.comment-author.vcard { display: flex; align-items: center; gap: 12px; }
.comment-author .avatar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--kispang-bg-light); }
.comment-author .fn { font-style: normal; font-weight: 700; font-size: 15px; color: var(--kispang-ink); }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; color: var(--kispang-muted); }
.comment-metadata a { color: var(--kispang-muted); }
.comment-metadata .edit-link a { color: var(--kispang-accent); margin-left: 6px; }
.comment-content { color: var(--kispang-text); font-size: 14.5px; line-height: 1.75; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-top: 14px; }
.comment-reply-link {
	display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--kispang-ink);
	padding: 6px 14px; border: 1px solid var(--kispang-border); border-radius: 20px; transition: all .2s ease;
}
.comment-reply-link:hover { background: var(--kispang-primary); color: #fff; border-color: var(--kispang-primary); }
.comment-reply-login { font-size: 13px; }

.no-comments { color: var(--kispang-muted); padding: 16px 0; }

/* Comment form */
.comment-respond {
	background: var(--kispang-bg-light); border-radius: var(--radius); padding: 30px 28px; margin-top: 34px;
}
.comment-reply-title { font-size: 19px; margin-bottom: 6px; }
.comment-notes, .logged-in-as { font-size: 13.5px; color: var(--kispang-muted); margin-bottom: 18px; }
.comment-notes a, .logged-in-as a { color: var(--kispang-ink); }
.kispang-comment-form .comment-form-comment { margin-bottom: 16px; }
.kispang-comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--kispang-text); margin-bottom: 6px; }
.kispang-comment-form input[type="text"],
.kispang-comment-form input[type="email"],
.kispang-comment-form input[type="url"],
.kispang-comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--kispang-border);
	background: var(--kispang-surface); color: var(--kispang-text); font-family: var(--font-body); font-size: 14.5px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.kispang-comment-form input:focus, .kispang-comment-form textarea:focus {
	outline: none; border-color: var(--kispang-primary); box-shadow: 0 0 0 3px rgba(11,45,107,.12);
}
.kispang-comment-form textarea { resize: vertical; min-height: 130px; }
.comment-form-author, .comment-form-email, .comment-form-url { margin-bottom: 16px; }
@media (min-width: 640px) {
	.comment-form-author, .comment-form-email { display: inline-block; width: calc(50% - 10px); }
	.comment-form-author { margin-right: 20px; }
}
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--kispang-muted); margin-bottom: 18px; }
.comment-form-cookies-consent label { margin-bottom: 0; font-weight: 400; }
.form-submit { margin-bottom: 0; }

/* ---------------------------------------------------------------
   Search form
   --------------------------------------------------------------- */
.kispang-search-form { display: flex; border: 1px solid var(--kispang-border); border-radius: 6px; overflow: hidden; background: var(--kispang-surface); }
.kispang-search-form .search-field { flex: 1; border: none; padding: 12px 16px; font-family: var(--font-body); }
.kispang-search-form .search-submit { background: var(--kispang-primary); color: #fff; border: none; padding: 0 18px; cursor: pointer; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 1100px) {
	.footer-grid { grid-template-columns: 1fr 1fr 1fr; }
	.stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
	.topbar-left { display: none; }
	.mobile-menu-toggle { display: flex; }
	.header-nav-inner { justify-content: flex-end; }
	.main-navigation {
		position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--kispang-surface);
		flex-direction: column; padding: 60px 20px 20px; overflow-y: auto; transition: right .3s ease;
		box-shadow: -10px 0 30px rgba(0,0,0,.1); z-index: 900;
	}
	.main-navigation.is-open { right: 0; }
	.primary-menu { flex-direction: column; align-items: stretch; width: 100%; }
	.primary-menu > .menu-item > .menu-link { padding: 14px 10px; border-bottom: 1px solid var(--kispang-border); }

	/* Close (X) button, top-right corner of the device side-menu */
	.mobile-menu-close {
		display: flex; align-items: center; justify-content: center; position: absolute; top: 14px; right: 14px;
		width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--kispang-bg-light);
		color: var(--kispang-text); font-size: 16px; cursor: pointer; transition: all .2s ease; z-index: 5;
	}
	.mobile-menu-close:hover { background: var(--kispang-primary); color: #fff; }

	/* Device side-menu: logo + site name pinned top center */
	.mobile-menu-branding {
		display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
		padding: 14px 0 20px; margin-bottom: 6px; border-bottom: 1px solid var(--kispang-border);
	}
	.mobile-menu-logo.logo-icon { width: 46px; height: 46px; font-size: 18px; }
	.mobile-menu-logo img { max-height: 48px; width: auto; margin: 0 auto; }
	.mobile-menu-sitename { font-family: var(--font-heading); font-weight: 800; font-size: 16px; color: var(--kispang-ink); }

	/* Device side-menu: contacts + social pinned bottom center (auto margin
	   pushes this to the bottom of the flex column regardless of menu length) */
	.mobile-menu-footer {
		display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
		margin-top: auto; padding-top: 20px; border-top: 1px solid var(--kispang-border);
	}
	.mobile-menu-contacts { display: flex; flex-direction: column; gap: 10px; }
	.mobile-menu-contacts a { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--kispang-text); }
	.mobile-menu-contacts i { color: var(--kispang-primary); width: 14px; }
	.mobile-menu-social { display: flex; gap: 10px; }
	.mobile-menu-social a {
		width: 32px; height: 32px; border-radius: 50%; background: var(--kispang-bg-light); color: var(--kispang-ink);
		display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
	}
	.mobile-menu-social a:hover { background: var(--kispang-primary); color: #fff; }

	.kispang-dropdown, .kispang-mega-panel {
		position: static; opacity: 1; visibility: hidden; height: 0; overflow: hidden;
		transform: none; box-shadow: none; width: 100%; max-width: 100%; padding: 0;
	}
	.submenu-open > .kispang-dropdown, .submenu-open > .kispang-mega-panel { visibility: visible; height: auto; padding: 10px 0 10px 14px; }
	.kispang-mega-columns { flex-direction: column; }
	.kispang-mega-links { grid-template-columns: 1fr; }
	.kispang-mega-featured { width: 100%; border-right: none; border-bottom: 1px solid var(--kispang-border); padding-right: 0; padding-bottom: 16px; }

	.hero-grid, .two-col-layout, .contact-grid, .program-facts-row { grid-template-columns: 1fr; }
	.inner-page-layout { grid-template-columns: 1fr; }
	.programs-grid, .blog-grid, .contact-info-grid { grid-template-columns: 1fr; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
	.header-search-form { width: calc(100vw - 40px); right: -60px; }
	.header-sub-logo-img { max-height: 40px; }
	.header-top-row { gap: 10px; }
	.topbar-badge { display: none; }
	.topbar-right { gap: 10px; }
	.stats-grid, .footer-grid { grid-template-columns: 1fr; text-align: center; }
	.stat-card { flex-direction: column; text-align: center; }
	.footer-social { justify-content: center; }
	.footer-contact-list li { justify-content: center; }
	.footer-bottom-inner { flex-direction: column; text-align: center; }
	.hero-buttons { flex-direction: column; }
	.hero-buttons .btn { width: 100%; }
}

@media print {
	.kispang-topbar, .kispang-header, .kispang-stats-bar, .site-footer, .notice-share, .widget-area { display: none !important; }
}
