:root {
  --navy: #12304a;
  --navy-deep: #0b2236;
  --teal: #0c8178;
  --teal-light: #e7f6f3;
  --gold: #f0bd58;
  --ink: #233447;
  --muted: #66788a;
  --paper: #ffffff;
  --surface: #f4f7fa;
  --border: #dce5ec;
  --shadow: 0 12px 32px rgba(18, 48, 74, .09);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.topline { background: var(--navy-deep); color: #e9f2f8; font-size: .82rem; }
.topline-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topline a { color: #fff; }
.college-header { background: var(--paper); border-bottom: 1px solid var(--border); }
.identity { display: flex; align-items: center; gap: 18px; padding-block: 22px; }
.logo {
  flex: 0 0 82px; width: 82px; height: 82px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; font-weight: 900; font-size: 1.35rem;
  border: 4px solid #d7eee9; background: linear-gradient(145deg, var(--teal), var(--navy));
  box-shadow: 0 5px 14px rgba(12,129,120,.18);
}
.college-info { min-width: 0; }
.college-info h1 { margin: 0; color: var(--navy); font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.035em; }
.college-info p { margin: 5px 0 0; color: var(--muted); font-size: .92rem; }
.college-info .affiliation { color: var(--teal); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.portal-button {
  margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 17px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 750;
  box-shadow: 0 7px 16px rgba(12,129,120,.18); transition: transform .2s, background .2s;
}
.portal-button:hover { background: #096c65; transform: translateY(-2px); }
.nav-wrap { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 5px 18px rgba(11,34,54,.13); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.nav-label { color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; display: none; }
.nav-toggle {
  display: none; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff;
  border-radius: 10px; padding: 8px 12px; cursor: pointer;
}
.nav-list { display: flex; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; width: 100%; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: flex; align-items: center; gap: 7px; height: 56px; padding: 0 13px;
  border: 0; background: transparent; color: #edf5fb; font-weight: 650; font-size: .88rem; cursor: pointer;
  white-space: nowrap; transition: background .18s, color .18s;
}
.nav-list > li > a:hover, .nav-list > li > button:hover,
.nav-list > li:focus-within > a, .nav-list > li:focus-within > button { background: rgba(255,255,255,.1); color: var(--gold); }
.chevron { font-size: .7rem; opacity: .8; }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 205px; padding: 8px;
  margin: 0; list-style: none; background: #fff; border: 1px solid var(--border);
  border-radius: 0 0 13px 13px; box-shadow: var(--shadow);
}
.has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu, .has-submenu.open > .submenu { display: block; }
.submenu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: .9rem; color: var(--ink); }
.submenu a:hover { color: var(--teal); background: var(--teal-light); }
.hero { padding: 36px 0 24px; }
.hero-panel {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(28px, 5vw, 56px);
  color: #fff; background:
    radial-gradient(circle at 88% 20%, rgba(240,189,88,.3), transparent 24%),
    radial-gradient(circle at 76% 100%, rgba(28,170,151,.28), transparent 30%),
    linear-gradient(115deg, #0b2236 0%, #123c56 60%, #126f70 100%);
  box-shadow: var(--shadow);
}
.hero-panel::after { content: ""; position: absolute; width: 250px; height: 250px; right: 5%; bottom: -155px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.035), 0 0 0 60px rgba(255,255,255,.025); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); text-transform: uppercase; letter-spacing: .13em; font-size: .75rem; font-weight: 850; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); }
.hero h2 { max-width: 720px; margin: 12px 0; font-size: clamp(2rem, 5vw, 3.55rem); line-height: 1.08; letter-spacing: -.045em; }
.hero p { max-width: 650px; margin: 0; color: #d9e7ef; font-size: 1.03rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 18px; font-weight: 750; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat { padding: 17px 20px; background: #fff; border: 1px solid var(--border); border-radius: 14px; display: flex; align-items: center; gap: 13px; }
.stat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-light); color: var(--teal); font-size: 1.2rem; }
.stat strong { display: block; color: var(--navy); font-size: .95rem; }
.stat span { display: block; color: var(--muted); font-size: .8rem; }
main { padding-bottom: 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.03em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .8fr); gap: 22px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(18,48,74,.035); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 22px; border-bottom: 1px solid var(--border); }
.panel-head h3 { margin: 0; color: var(--navy); font-size: 1.05rem; }
.panel-head small { color: var(--muted); }
.live-badge { padding: 4px 9px; border-radius: 999px; background: #fff2d8; color: #8b5a00; font-size: .72rem; font-weight: 800; }
.notice-list { list-style: none; margin: 0; padding: 0 22px; }
.notice-item { display: grid; grid-template-columns: 60px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid #edf1f5; }
.notice-item:last-child { border-bottom: 0; }
.date-box { text-align: center; align-self: start; border-radius: 11px; overflow: hidden; border: 1px solid var(--border); }
.date-box b { display: block; padding: 5px; color: #fff; background: var(--teal); font-size: .7rem; letter-spacing: .08em; }
.date-box span { display: block; padding: 5px 2px; color: var(--navy); font-size: 1.3rem; font-weight: 850; line-height: 1.2; }
.notice-item h4 { margin: 0 0 5px; color: var(--navy); font-size: .98rem; line-height: 1.4; }
.notice-item p { margin: 0; color: var(--muted); font-size: .86rem; }
.notice-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 8px; color: var(--muted); font-size: .75rem; }
.notice-meta .tag { padding: 2px 7px; border-radius: 5px; color: var(--teal); background: var(--teal-light); font-weight: 750; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 800; font-size: .88rem; }
.notice-footer { padding: 14px 22px; border-top: 1px solid var(--border); background: #fbfcfd; }
.side-stack { display: grid; gap: 20px; }
.link-panel { padding: 19px; }
.link-panel h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: var(--navy); font-size: 1.05rem; }
.link-panel h3 span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--teal-light); color: var(--teal); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; color: #3b5062; font-size: .88rem; transition: background .2s, color .2s; }
.link-list a::after { content: "↗"; color: #8da0af; }
.link-list a:hover { color: var(--teal); background: var(--teal-light); }
.link-list a:hover::after { color: var(--teal); }
.feature-section { padding-top: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 16px; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--teal-light); font-size: 1.3rem; margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 7px; color: var(--navy); font-size: 1.02rem; }
.feature-card p { margin: 0 0 13px; color: var(--muted); font-size: .88rem; }
footer { color: #dce8f0; background: var(--navy-deep); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; padding: 40px 0 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.footer-logo { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--teal); color: white; font-weight: 900; }
footer h3 { margin: 0 0 12px; color: #fff; font-size: 1rem; }
footer p { margin: 0; color: #aebfcb; font-size: .87rem; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: #c8d6df; font-size: .88rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 15px 0; color: #aebfcb; font-size: .8rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.back-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--teal); box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 1000px) {
  .nav-list > li > a, .nav-list > li > button { padding-inline: 9px; font-size: .82rem; }
  .content-grid { grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); }
}
@media (max-width: 820px) {
  .topline-inner { justify-content: center; text-align: center; }
  .topline-inner span:last-child { display: none; }
  .identity { gap: 13px; padding-block: 17px; }
  .logo { width: 65px; height: 65px; flex-basis: 65px; font-size: 1.05rem; }
  .portal-button { padding: 10px 13px; font-size: .84rem; }
  .nav-inner { min-height: 54px; flex-wrap: wrap; padding-block: 7px; }
  .nav-label { display: block; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav-list { display: none; flex-direction: column; align-items: stretch; padding: 7px 0 9px; }
  .nav-list.active { display: flex; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; height: auto; min-height: 44px; justify-content: space-between; padding: 10px 12px; border-radius: 8px; font-size: .94rem; }
  .submenu { position: static; min-width: 0; margin: 0 0 5px 12px; padding: 4px; border: 0; border-left: 2px solid var(--teal); border-radius: 0; background: rgba(255,255,255,.06); box-shadow: none; }
  .submenu a { color: #e3edf4; padding: 9px 12px; }
  .submenu a:hover { color: var(--gold); background: rgba(255,255,255,.08); }
  .has-submenu:hover > .submenu { display: none; }
  .has-submenu.open > .submenu, .has-submenu:focus-within > .submenu { display: block; }
  .content-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1160px); }
  /* Phones: logo + college name only, on one line, with a compact Portal button */
  .identity { gap: 10px; padding-block: 10px; }
  .logo { width: 42px; height: 42px; flex-basis: 42px; border-width: 2px; }
  .identity .logo.logo-image { padding: 4px; }
  .college-info { flex: 1; }
  .college-info h1 { font-size: 1.05rem; line-height: 1.25; }
  .college-info p, .college-info .affiliation { display: none; }
  .portal-button { padding: 8px 12px; font-size: .8rem; }
  .portal-word { display: none; }
  .hero { padding-top: 17px; }
  .hero-panel { border-radius: 18px; padding: 27px 22px; }
  .hero h2 { font-size: 2.15rem; }
  .hero p { font-size: .93rem; }
  .quick-stats { grid-template-columns: 1fr; gap: 9px; }
  .stat { padding: 12px 14px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .panel-head { padding: 16px; }
  .notice-list { padding-inline: 16px; }
  .notice-item { grid-template-columns: 51px 1fr; gap: 11px; padding: 15px 0; }
  .date-box span { font-size: 1.15rem; }
  .notice-item h4 { font-size: .92rem; }
  .notice-item p { font-size: .82rem; }
  .notice-footer { padding-inline: 16px; }
  .side-stack, .feature-grid { grid-template-columns: 1fr; }
  .feature-section { padding-top: 30px; }
  .feature-card { padding: 19px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; }
  .footer-main > :first-child { grid-column: auto; }
  .footer-bottom .container { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- Inner pages (added for the Laravel site) ---- */
.nav-list > li > a.active, .nav-list > li.active > button { color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }
.submenu a.active { color: var(--teal); background: var(--teal-light); font-weight: 700; }
.page-hero { padding: 30px 0 8px; }
.page-hero .eyebrow { color: var(--teal); }
.page-hero .eyebrow::before { background: var(--teal); }
.page-hero h2 { margin: 8px 0 4px; color: var(--navy); font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.035em; line-height: 1.15; }
.page-hero p { margin: 0; max-width: 720px; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; color: var(--muted); font-size: .82rem; }
.breadcrumb a { color: var(--teal); font-weight: 650; }
.page-body { padding: 20px 0 54px; display: grid; gap: 22px; }
.prose { padding: 24px; color: #3b5062; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.empty-state { padding: 26px 22px; color: var(--muted); text-align: center; }
.people-group h3 { margin: 0 0 12px; color: var(--navy); font-size: 1.05rem; display: flex; align-items: center; gap: 9px; }
.people-group h3 small { color: var(--muted); font-weight: 600; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.person { display: flex; align-items: center; gap: 13px; padding: 15px 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.avatar { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; background: linear-gradient(145deg, var(--teal), var(--navy)); }
.person strong { display: block; color: var(--navy); line-height: 1.3; }
.person span { display: block; color: var(--muted); font-size: .8rem; }
.pill { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 750; color: var(--teal); background: var(--teal-light); }
.pill.muted { color: #8b5a00; background: #fff2d8; }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; padding: 20px 22px; margin: 0; list-style: none; }
.subject-grid li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--navy); font-weight: 650; font-size: .88rem; background: #fbfcfd; }
.principal-card { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; padding: 24px; }
.principal-card .avatar { width: 120px; height: 120px; font-size: 2.2rem; }
.principal-card h3 { margin: 0; color: var(--navy); font-size: 1.35rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { padding: 10px 13px; color: var(--muted); font-size: .85rem; }
.pagination-wrap { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 560px) {
  .page-hero { padding-top: 20px; }
  .prose { padding: 18px 16px; }
  .subject-grid { grid-template-columns: 1fr 1fr; padding: 16px; }
  .principal-card { grid-template-columns: 1fr; justify-items: start; padding: 18px 16px; }
  .principal-card .avatar { width: 84px; height: 84px; font-size: 1.6rem; }
}

/* Image logo in the header circle */
.logo.logo-image { background: #fff; overflow: hidden; padding: 7px; }
.logo.logo-image img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Curriculum: programme facts + semester structure */
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 20px 22px 0; }
.fact { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfd; }
.fact-wide { grid-column: 1 / -1; }
.fact dt { color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.fact dd { margin: 3px 0 0; color: var(--navy); font-weight: 650; }
.prose-tight { padding-top: 16px; }
.semester-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.semester-card .panel-head { padding: 15px 18px; background: var(--teal-light); }
.paper-list { list-style: none; margin: 0; padding: 0 18px; }
.paper-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #edf1f5; }
.paper-list li:last-child { border-bottom: 0; }
.paper-list strong { color: var(--navy); font-size: .92rem; line-height: 1.4; }
.paper-list .notice-meta { margin-top: 4px; }
.paper-code { flex-shrink: 0; min-width: 52px; padding: 3px 7px; border-radius: 7px; background: var(--navy); color: #fff; font-size: .74rem; font-weight: 800; text-align: center; }
@media (max-width: 820px) {
  .semester-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fact-grid { grid-template-columns: 1fr; padding: 16px 16px 0; }
  .paper-list { padding-inline: 16px; }
}

/* Image logo in the footer circle */
.footer-logo.footer-logo-image { background: #fff; overflow: hidden; padding: 5px; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.footer-logo.footer-logo-image img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---- Homepage image slider (portal: Website > Home Slider) ---- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-slider { position: relative; overflow: hidden; border-radius: 24px; background: var(--navy-deep); box-shadow: var(--shadow); aspect-ratio: 16 / 6; min-height: 340px; }
.hero-slider .slides { position: absolute; inset: 0; touch-action: pan-y; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.has-caption::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,34,54,.88) 0%, rgba(11,34,54,.6) 45%, rgba(11,34,54,.05) 80%); }
.slide-caption { position: absolute; z-index: 1; left: 0; top: 50%; transform: translateY(-50%); max-width: min(680px, 100%); padding: 0 clamp(24px, 6vw, 72px); color: #fff; }
.slide-caption h3 { margin: 10px 0; font-size: clamp(1.7rem, 4.2vw, 3.2rem); line-height: 1.1; letter-spacing: -.04em; }
.slide-caption p { margin: 0; color: #d9e7ef; font-size: 1.02rem; }
.slider-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(11,34,54,.45); font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .2s; }
.slider-arrow:hover { background: rgba(11,34,54,.8); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; z-index: 2; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; }
.slider-dots .dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s, background .3s; }
.slider-dots .dot.is-active { width: 28px; background: var(--gold); }
@media (max-width: 820px) {
  .hero-slider { aspect-ratio: auto; min-height: 380px; }
  .slide.has-caption::after { background: linear-gradient(0deg, rgba(11,34,54,.92) 0%, rgba(11,34,54,.55) 55%, rgba(11,34,54,.1) 100%); }
  .slide-caption { top: auto; bottom: 46px; transform: none; padding: 0 22px; }
  .slider-arrow { display: none; }
}
@media (max-width: 560px) {
  .hero-slider { border-radius: 18px; min-height: 360px; }
  .slide-caption h3 { font-size: 1.75rem; }
  .slide-caption p { font-size: .92rem; }
}

/* Staff photos (portal: Edit Employee > Website Photo) */
.person .avatar { flex-basis: 56px; width: 56px; height: 56px; }
img.avatar-photo { display: block; object-fit: cover; background: var(--teal-light); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }

/* Page photo (portal: Website > Pages) */
.page-image { margin: 0 0 20px; overflow: hidden; border-radius: 14px; background: var(--surface); }
.page-image img { display: block; width: 100%; max-height: 440px; object-fit: cover; }

/* Gallery: clickable photos + lightbox (GLightbox) + pager */
.gallery-link { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.gallery-link img { transition: transform .35s ease; }
.gallery-link:hover img, .gallery-link:focus-visible img { transform: scale(1.04); }
.gallery-zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(11,34,54,.6); opacity: 0; transition: opacity .2s; }
.gallery-link:hover .gallery-zoom, .gallery-link:focus-visible .gallery-zoom { opacity: 1; }
.gallery-grid figcaption strong { display: block; color: var(--navy); font-size: .9rem; }
.gallery-grid figcaption span { display: block; margin-top: 2px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.pager-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pager-link, .pager-num { padding: 6px 12px; border-radius: 9px; color: var(--teal); font-weight: 700; font-size: .88rem; }
a.pager-link:hover, a.pager-num:hover { background: var(--teal-light); }
.pager-num.current { color: #fff; background: var(--teal); }
.pager-link.disabled { color: var(--muted); opacity: .5; }
.glightbox-clean .gslide-title { font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.glightbox-clean .gslide-desc { color: #3b5062; line-height: 1.55; }
.glightbox-clean .gdesc-inner { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* Employee profile (/employee/{id}) + clickable staff cards */
a.person { color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.person:hover, a.person:focus-visible { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.profile-card { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; padding: 24px; }
.profile-photo .avatar { width: 140px; height: 140px; font-size: 2.6rem; }
.profile-card h3 { margin: 0; color: var(--navy); font-size: 1.5rem; letter-spacing: -.02em; }
.profile-role { margin: 2px 0 8px; color: var(--teal); font-weight: 700; }
.qualification-list { list-style: none; margin: 0; padding: 6px 22px 10px; }
.qualification-list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf1f5; }
.qualification-list li:last-child { border-bottom: 0; }
.q-year { align-self: start; padding: 4px 0; border-radius: 8px; text-align: center; font-weight: 800; color: var(--teal); background: var(--teal-light); font-size: .85rem; }
.qualification-list strong { display: block; color: var(--navy); }
.q-subject, .q-place { display: block; color: var(--muted); font-size: .86rem; }
@media (max-width: 560px) {
  .profile-card { grid-template-columns: 1fr; justify-items: start; padding: 18px 16px; }
  .profile-photo .avatar { width: 96px; height: 96px; font-size: 1.8rem; }
  .qualification-list { padding-inline: 16px; }
  .qualification-list li { grid-template-columns: 54px 1fr; }
}

/* Students' Corner list + public student verification */
.student-filters { display: grid; grid-template-columns: minmax(200px, 320px) auto; gap: 12px; align-items: end; padding: 16px 18px; margin-bottom: 16px; }
.student-filters label span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.student-filters input, .student-filters select { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: .9rem; color: var(--ink); background: #fff; }
.student-filters .filter-actions { display: flex; align-items: center; gap: 12px; }
.student-initials { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: var(--teal-light); font-weight: 800; }
.student-initials.big { width: 160px; height: 190px; border-radius: 16px; font-size: 3rem; }
.verify-card { max-width: 720px; padding: 0 0 18px; }
.verify-badge { padding: 14px 22px; color: #0b5e36; background: #dff5e9; font-weight: 800; border-bottom: 1px solid #c4ead5; }
.verify-badge.invalid { color: #8a1c1c; background: #fde6e6; border-color: #f5caca; }
.verify-body { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px; }
.verify-photo img { width: 160px; height: 190px; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.verify-facts { display: grid; gap: 10px; margin: 0; }
.verify-facts dt { color: var(--muted); font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.verify-facts dd { margin: 1px 0 0; color: var(--navy); font-weight: 700; }
.verify-note { margin: 0; padding: 0 22px; color: var(--muted); font-size: .85rem; }

@media (max-width: 560px) {
  .student-filters { grid-template-columns: 1fr; }
  .verify-body { grid-template-columns: 1fr; justify-items: start; padding: 18px 16px; }
  .verify-note { padding-inline: 16px; }
}

/* Students' Corner DataTable, themed to the site */
.students-table-wrap { padding: 16px 18px; }
#studentsTable { border-collapse: collapse; font-size: .9rem; }
#studentsTable thead th { color: var(--navy); background: var(--surface); border-bottom: 2px solid var(--border); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
#studentsTable tbody td { border-top: 1px solid #edf1f5; color: var(--ink); }
#studentsTable tbody td strong { color: var(--navy); }
#studentsTable tbody tr:hover td { background: var(--teal-light); }
.dt-container .dt-search input, .dt-container .dt-length select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; font: inherit; }
.dt-container .dt-paging .dt-paging-button { border-radius: 8px !important; }
.dt-container .dt-paging .dt-paging-button.current, .dt-container .dt-paging .dt-paging-button.current:hover { color: #fff !important; background: var(--teal) !important; border-color: var(--teal) !important; }
.dt-container .dt-info { color: var(--muted); font-size: .85rem; }
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before { background-color: var(--teal); }
@media (max-width: 560px) { .students-table-wrap { padding: 12px; } }

/* Page documents (portal: Website > Pages > Media) */
.doc-list { list-style: none; margin: 0; padding: 0 22px; }
.doc-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf1f5; }
.doc-list li:last-child { border-bottom: 0; }
.doc-list li > div { flex: 1; min-width: 0; }
.doc-list strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.doc-list small { color: var(--muted); }
.doc-icon { flex-shrink: 0; width: 42px; height: 48px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #c0392b; font-size: .7rem; font-weight: 800; letter-spacing: .05em; }
@media (max-width: 560px) { .doc-list { padding-inline: 16px; } }

/* Page content blocks (portal: Website > Pages > Content), shown in order */
.page-blocks { padding: 8px 24px 20px; }
.page-blocks > * + * { margin-top: 18px; }
.block-text.prose { padding: 0; }
.block-text h3 { margin: 6px 0 8px; color: var(--navy); font-size: 1.2rem; letter-spacing: -.01em; }
.block-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.block-photos.single { grid-template-columns: 1fr; }
.block-photos figure { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.block-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.block-photos.single img { aspect-ratio: auto; max-height: 520px; object-fit: contain; background: var(--surface); }
.block-photos figcaption { padding: 10px 13px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.block-doc { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfd; }
.block-doc > div { flex: 1; min-width: 0; }
.block-doc strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.block-doc small { color: var(--muted); }
@media (max-width: 560px) { .page-blocks { padding: 6px 16px 16px; } .block-photos { grid-template-columns: 1fr 1fr; gap: 10px; } .block-photos.single { grid-template-columns: 1fr; } }

/* Content builder upgrades: rich text, positioned photos, small PDF chips */
.page-blocks > .block-photo { margin-top: 4px; }
.block-photo { margin: 4px 0 14px; }
.block-photo img { display: block; width: 100%; border-radius: 12px; }
.block-photo figcaption { padding-top: 6px; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.block-photo.photo-left { float: left; width: var(--photo-width); margin-right: 22px; }
.block-photo.photo-right { float: right; width: var(--photo-width); margin-left: 22px; }
.block-photo.photo-center { width: var(--photo-width); margin-left: auto; margin-right: auto; }
.page-blocks > .block-text + .block-text, .page-blocks > .block-photo + .block-text { margin-top: 12px; }
.blocks-clear { clear: both; }
.rich-text ul, .rich-text ol { padding-left: 1.4em; margin: 0 0 1em; }
.rich-text li + li { margin-top: 4px; }
.rich-text { overflow-x: auto; }
.rich-text table { border-collapse: collapse; margin-bottom: 1em; max-width: 100%; }
.rich-text td, .rich-text th { border: 1px solid var(--border); padding: 7px 10px; }
.rich-text th { background: var(--surface); color: var(--navy); }
.rich-text blockquote { margin: 0 0 1em; padding: 8px 14px; border-left: 4px solid var(--teal); background: var(--surface); color: #3b5062; }
.rich-text a { color: var(--teal); text-decoration: underline; }
.rich-text h1, .rich-text h2 { color: var(--navy); font-size: 1.35rem; margin: 6px 0 8px; }
.rich-text h3, .rich-text h4 { color: var(--navy); font-size: 1.12rem; margin: 6px 0 8px; }
.rich-text pre { overflow-x: auto; padding: 10px; background: var(--surface); border-radius: 8px; }
.block-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 6px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--navy); font-size: .86rem; font-weight: 650; transition: border-color .2s, color .2s, box-shadow .2s; }
.doc-chip:hover, .doc-chip:focus-visible { border-color: var(--teal); color: var(--teal); box-shadow: 0 2px 8px rgba(12,129,120,.12); }
.doc-chip-icon { display: inline-grid; place-items: center; height: 22px; padding: 0 7px; border-radius: 999px; color: #fff; background: #c0392b; font-size: .62rem; font-weight: 800; letter-spacing: .05em; }
.doc-chip-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.doc-chip small { color: var(--muted); font-weight: 400; }
@media (max-width: 560px) {
  .block-photo.photo-left, .block-photo.photo-right, .block-photo.photo-center { float: none; width: 100%; margin-left: 0; margin-right: 0; }
  .doc-chip-title { max-width: 200px; }
}

/* Blog (portal: Website > Blog) */
.blog-search { display: flex; align-items: center; gap: 10px; max-width: 560px; }
.blog-search input { flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: inherit; color: var(--ink); }
.blog-search input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.blog-search button { padding: 11px 20px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 800; cursor: pointer; }
.blog-search button:hover { background: var(--navy); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(18,48,74,.035); transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card-cover { display: block; aspect-ratio: 16 / 9; max-height: 150px; width: 100%; background: var(--teal-light); overflow: hidden; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.blog-card:hover .blog-card-cover img { transform: scale(1.04); }
.blog-card-placeholder { display: grid; place-items: center; height: 100%; color: var(--teal); font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--teal-light), #fff); }
.blog-card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 16px 16px; }
.blog-card-body h3 { margin: 0; color: var(--navy); font-size: 1.02rem; line-height: 1.35; }
.blog-card-body h3 a:hover { color: var(--teal); }
.blog-card-body p { margin: 0; color: #4a5e70; font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.blog-author { color: var(--muted); font-size: .82rem; }
.blog-meta { color: var(--muted); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 6px; }
.blog-page-no { align-self: center; color: var(--muted); font-size: .85rem; }
.blog-post { padding: 28px clamp(18px, 4vw, 44px) 30px; }
.blog-cover { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; margin: 16px 0 6px; }
.blog-lead { margin: 16px 0 6px; font-size: 1.12rem; color: var(--navy); font-weight: 600; line-height: 1.55; }
.blog-body { margin-top: 16px; color: #3b5062; font-size: 1.02rem; line-height: 1.75; }
.blog-body::after { content: ""; display: block; clear: both; }
.rich-text img { max-width: 100%; height: auto; border-radius: 10px; }
.rich-text img[style*="float: left"] { margin: 4px 18px 10px 0; }
.rich-text img[style*="float: right"] { margin: 4px 0 10px 18px; }
.blog-back { margin: 22px 0 0; }
.blog-more-title { margin: 6px 0 14px; color: var(--navy); font-size: 1.2rem; }
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .blog-card-cover { max-height: 110px; }
  .blog-card-body { padding: 10px 11px 12px; }
  .blog-card-body p { display: none; }
  .blog-card-foot { flex-direction: column; align-items: flex-start; gap: 2px; }
  .rich-text img[style*="float"] { float: none !important; display: block; margin: 8px auto; }
}

/* Very small phones: the Menu button alone, so the navbar stays one line */
@media (max-width: 360px) { .nav-label { display: none; } .nav-inner { justify-content: flex-end; } }
