/* =====================================================================
   Universal Institute – design system
   Shared by the public website and all authenticated panels.
   ===================================================================== */
:root {
  --ui-navy-900: #0a1b33;
  --ui-navy-800: #0f2747;
  --ui-navy-700: #163560;
  --ui-blue-600: #1f4fa3;
  --ui-blue-500: #2b62c4;
  --ui-blue-50: #eef3fc;
  --ui-gold-500: #c9962f;
  --ui-gold-400: #d9ad52;
  --ui-gold-50: #fbf5e8;
  --ui-ink: #142033;
  --ui-text: #3b4658;
  --ui-muted: #6b7587;
  --ui-line: #e3e7ef;
  --ui-surface: #ffffff;
  --ui-bg: #f5f7fb;
  --ui-success: #198754;
  --ui-danger: #c0392b;
  --ui-radius-sm: 8px;
  --ui-radius: 12px;
  --ui-radius-lg: 18px;
  --ui-shadow-sm: 0 1px 2px rgba(16, 32, 64, .06);
  --ui-shadow: 0 6px 24px -8px rgba(16, 32, 64, .14);
  --ui-shadow-lg: 0 20px 48px -16px rgba(16, 32, 64, .28);
  --ui-font: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ui-font-display: "Fraunces", "Noto Sans Bengali", Georgia, "Times New Roman", serif;
  --ui-ease: cubic-bezier(.2, .7, .2, 1);

  --bs-primary: var(--ui-blue-600);
  --bs-primary-rgb: 31, 79, 163;
  --bs-body-font-family: var(--ui-font);
  --bs-body-color: var(--ui-text);
  --bs-border-color: var(--ui-line);
  --bs-link-color: var(--ui-blue-600);
  --bs-link-color-rgb: 31, 79, 163;
  --bs-link-hover-color: var(--ui-navy-700);
  --bs-border-radius: var(--ui-radius-sm);
  --bs-focus-ring-color: rgba(31, 79, 163, .3);
}

html:lang(bn) { --ui-font-display: "Noto Sans Bengali", var(--ui-font); }
html:lang(bn) body { line-height: 1.7; }

body { font-family: var(--ui-font); color: var(--ui-text); background: var(--ui-surface); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--ui-ink); font-weight: 650; letter-spacing: -.01em; }
.font-display { font-family: var(--ui-font-display); font-weight: 650; letter-spacing: -.015em; }
img { max-width: 100%; height: auto; }
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid rgba(43, 98, 196, .55); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--ui-navy-900); color: #fff; padding: .6rem 1rem; border-radius: var(--ui-radius-sm); }
.skip-link:focus { left: 8px; }
.text-muted { color: var(--ui-muted) !important; }
.text-gold { color: var(--ui-gold-500) !important; }
.bg-navy { background: var(--ui-navy-900) !important; }
.bg-soft { background: var(--ui-bg) !important; }
.small-caps { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
html:lang(bn) .small-caps { letter-spacing: 0; text-transform: none; font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-y: .55rem; --bs-btn-padding-x: 1.05rem; border-radius: 10px; transition: transform .15s var(--ui-ease), box-shadow .15s var(--ui-ease), background-color .15s; }
.btn-sm { --bs-btn-padding-y: .35rem; --bs-btn-padding-x: .7rem; border-radius: 8px; }
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.5rem; }
.btn-primary { --bs-btn-bg: var(--ui-blue-600); --bs-btn-border-color: var(--ui-blue-600); --bs-btn-hover-bg: var(--ui-navy-700); --bs-btn-hover-border-color: var(--ui-navy-700); --bs-btn-active-bg: var(--ui-navy-800); --bs-btn-disabled-bg: var(--ui-blue-600); }
.btn-gold { --bs-btn-color: #1b1406; --bs-btn-bg: var(--ui-gold-400); --bs-btn-border-color: var(--ui-gold-400); --bs-btn-hover-bg: var(--ui-gold-500); --bs-btn-hover-border-color: var(--ui-gold-500); --bs-btn-hover-color: #1b1406; --bs-btn-active-bg: var(--ui-gold-500); }
.btn-outline-light:hover { color: var(--ui-navy-900); }
.btn-soft { --bs-btn-color: var(--ui-blue-600); --bs-btn-bg: var(--ui-blue-50); --bs-btn-border-color: transparent; --bs-btn-hover-bg: #dfe8f9; --bs-btn-hover-color: var(--ui-navy-700); }
.btn:not(.btn-link):not(:disabled):hover { transform: translateY(-1px); }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; }
.btn-locked { cursor: not-allowed; opacity: .75; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 10px; border-color: #d6dce7; padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--ui-blue-500); box-shadow: 0 0 0 .2rem rgba(43, 98, 196, .15); }
.form-label { font-weight: 600; color: var(--ui-ink); font-size: .9rem; margin-bottom: .35rem; }
.form-text { color: var(--ui-muted); }
.required::after { content: " *"; color: var(--ui-danger); }
fieldset[disabled] .form-control, fieldset[disabled] .form-select { background-color: #f7f8fb; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--ui-line); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow-sm); }
.card-header { background: transparent; border-bottom: 1px solid var(--ui-line); padding: 1rem 1.25rem; font-weight: 600; color: var(--ui-ink); }
.card-body { padding: 1.25rem; }
.card-hover { transition: transform .25s var(--ui-ease), box-shadow .25s var(--ui-ease); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--ui-shadow); }

/* ---------- Badges ---------- */
.badge { font-weight: 600; letter-spacing: .01em; padding: .4em .65em; border-radius: 999px; }
.badge-soft-success { background: #e5f4ec; color: #146c43; }
.badge-soft-danger { background: #fbe9e7; color: #a12a1f; }
.badge-soft-warning { background: #fff4dc; color: #8a5a00; }
.badge-soft-info { background: #e2f1fb; color: #0b5f8a; }
.badge-soft-secondary { background: #eef0f4; color: #4b5565; }
.badge-soft-primary { background: var(--ui-blue-50); color: var(--ui-blue-600); }

/* ---------- Tables ---------- */
.table { --bs-table-color: var(--ui-text); margin-bottom: 0; }
.table > thead th { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ui-muted); font-weight: 600; background: #f8f9fc; border-bottom-width: 1px; white-space: nowrap; }
html:lang(bn) .table > thead th { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.table > :not(caption) > * > * { padding: .75rem 1rem; vertical-align: middle; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f7f9fd; }
.table-card { border: 1px solid var(--ui-line); border-radius: var(--ui-radius); overflow: hidden; background: #fff; }
.table-responsive { -webkit-overflow-scrolling: touch; }
.person { display: flex; align-items: center; gap: .7rem; min-width: 180px; }
.person img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person .meta { line-height: 1.25; }
.person .meta small { color: var(--ui-muted); display: block; }

/* =====================================================================
   PUBLIC WEBSITE
   Premium presentation layer. Hover-only effects live behind
   @media (hover: hover) so touch devices never get "stuck" states.
   ===================================================================== */
.site { --ui-shadow-xl: 0 32px 64px -24px rgba(10, 27, 51, .35); --ui-radius-xl: 24px; --ui-gold-grad: linear-gradient(135deg, #e6c26f 0%, #d9ad52 45%, #bf8a26 100%); --ui-navy-grad: linear-gradient(140deg, #163560 0%, #0f2747 55%, #0a1b33 100%); }
.site main { overflow-x: clip; }
.site ::selection { background: var(--ui-gold-400); color: #1b1406; }
.min-w-0 { min-width: 0; }

/* ---------- Buttons (public) ---------- */
.site .btn { border-radius: 12px; }
.site .btn-sm { border-radius: 9px; }
.site .btn-lg { border-radius: 14px; --bs-btn-padding-y: .85rem; --bs-btn-padding-x: 1.6rem; }
.site .btn-primary { background-image: linear-gradient(135deg, var(--ui-blue-500), var(--ui-blue-600) 55%, var(--ui-navy-700)); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(31, 79, 163, .7); }
.site .btn-gold { background-image: var(--ui-gold-grad); border-color: transparent; box-shadow: 0 10px 24px -12px rgba(191, 138, 38, .9); }
.site .btn-primary, .site .btn-gold { position: relative; overflow: hidden; isolation: isolate; }
.site .btn-primary::after, .site .btn-gold::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); z-index: -1; transition: left .7s var(--ui-ease); pointer-events: none; }
.site .btn-outline-light { --bs-btn-border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
@media (hover: hover) {
  .site .btn-primary:hover::after, .site .btn-gold:hover::after { left: 125%; }
  .site .btn-primary:hover { box-shadow: 0 14px 28px -12px rgba(31, 79, 163, .8); }
  .site .btn-gold:hover { box-shadow: 0 16px 30px -12px rgba(191, 138, 38, .95); }
  .site .btn .bi-arrow-right { transition: transform .25s var(--ui-ease); display: inline-block; }
  .site .btn:hover .bi-arrow-right { transform: translateX(3px); }
}

/* ---------- Topbar & navigation ---------- */
.topbar { background: linear-gradient(90deg, var(--ui-navy-900), #0e2442 60%, var(--ui-navy-900)); color: rgba(255, 255, 255, .78); font-size: .82rem; border-bottom: 1px solid rgba(217, 173, 82, .18); }
.topbar a { color: rgba(255, 255, 255, .88); text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--ui-gold-400); }
.topbar .bi { color: var(--ui-gold-400); }
.site-nav { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(227, 231, 239, .8); transition: box-shadow .3s, background-color .3s; padding-top: .6rem; padding-bottom: .6rem; }
.site-nav.scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px -18px rgba(16, 32, 64, .45); }
.site-nav .navbar-brand { display: flex; align-items: center; gap: .7rem; color: var(--ui-navy-900); }
.brand-mark { width: 44px; height: 44px; border-radius: 13px; background: var(--ui-navy-grad, linear-gradient(145deg, var(--ui-navy-700), var(--ui-navy-900))); color: var(--ui-gold-400); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--ui-font-display); font-weight: 700; font-size: 1.15rem; box-shadow: inset 0 0 0 1px rgba(217, 173, 82, .35), 0 8px 18px -10px rgba(10, 27, 51, .7); transition: transform .4s var(--ui-ease); }
.navbar-brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.brand-text strong { display: block; font-size: 1.04rem; color: var(--ui-navy-900); line-height: 1.1; font-family: var(--ui-font-display); letter-spacing: -.01em; }
.brand-text small { color: var(--ui-muted); font-size: .72rem; letter-spacing: .04em; }
.site-nav .nav-link { position: relative; color: var(--ui-ink); font-weight: 550; font-size: .93rem; padding: .55rem .85rem !important; border-radius: 10px; transition: color .2s, background-color .2s; }
.site-nav .nav-link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--ui-gold-grad, var(--ui-gold-400)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ui-ease); }
.site-nav .nav-link.dropdown-toggle::after { border: 0; margin: 0; vertical-align: 0; }
.site-nav .nav-link.dropdown-toggle { padding-right: 1.55rem !important; }
.site-nav .nav-link.dropdown-toggle::before { content: "\F282"; font-family: "bootstrap-icons"; position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); font-size: .65rem; opacity: .6; transition: transform .25s var(--ui-ease); }
.site-nav .nav-link.dropdown-toggle.show::before { transform: translateY(-50%) rotate(180deg); }
.site-nav .nav-link:hover, .site-nav .nav-link.active, .site-nav .nav-link.show { color: var(--ui-blue-600); background: transparent; }
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after, .site-nav .nav-link.show::after { transform: scaleX(1); }
.site-nav .nav-link.dropdown-toggle::after { right: 1.55rem; }
.site-nav .dropdown-menu { border: 1px solid var(--ui-line); border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(16, 32, 64, .35); padding: .5rem; min-width: 240px; }
.site-nav .dropdown-menu.show { animation: ui-drop .25s var(--ui-ease) both; }
.site-nav .dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-size: .92rem; font-weight: 500; color: var(--ui-ink); transition: background-color .2s, color .2s, padding-left .25s var(--ui-ease); }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item:focus { background: var(--ui-blue-50); color: var(--ui-blue-600); padding-left: 1.05rem; }
.site-nav .dropdown-item:active { background: var(--ui-blue-600); color: #fff; }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(43, 98, 196, .25); }
@keyframes ui-drop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lang-switch { display: inline-flex; border: 1px solid var(--ui-line); border-radius: 999px; padding: 3px; background: #fff; }
.lang-switch a { font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; color: var(--ui-muted); text-decoration: none; line-height: 1.4; transition: background-color .2s, color .2s; }
.lang-switch a.active { background: var(--ui-navy-800); color: #fff; }
.lang-switch.on-dark { background: transparent; border-color: rgba(255, 255, 255, .25); }
.lang-switch.on-dark a { color: rgba(255, 255, 255, .75); }
.lang-switch.on-dark a.active { background: var(--ui-gold-400); color: var(--ui-navy-900); }

/* ---------- Hero slider ---------- */
.hero { position: relative; min-height: min(88vh, 780px); color: #fff; overflow: hidden; background: #0b2147; isolation: isolate; }
.hero .carousel, .hero .carousel-inner, .hero .carousel-item { height: 100%; position: absolute; inset: 0; }
.hero .carousel-inner { top: -80px; will-change: translate; }
.hero .carousel-item { transition-duration: 1.4s; transition-timing-function: cubic-bezier(.45, 0, .2, 1); }
.hero .carousel-fade .active.carousel-item-start, .hero .carousel-fade .active.carousel-item-end { transition: opacity 0s 1.4s; }
.hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; transform-origin: 62% 40%; filter: blur(2px) saturate(.85); }
.hero .carousel-item.active img { animation: ui-kenburns 14s cubic-bezier(.25, .1, .25, 1) both; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(700px 500px at 75% 45%, rgba(43, 98, 196, .25), transparent 65%),
    linear-gradient(100deg, rgba(9, 28, 62, .95) 0%, rgba(11, 33, 71, .88) 40%, rgba(13, 40, 84, .78) 70%, rgba(11, 33, 71, .82) 100%); }
.hero-decor { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-decor .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.hero-decor .orb-1 { width: 520px; height: 520px; left: -180px; top: -160px; background: radial-gradient(circle, rgba(43, 98, 196, .8), transparent 70%); animation: ui-drift 20s ease-in-out infinite alternate; }
.hero-decor .orb-2 { width: 460px; height: 460px; right: -120px; bottom: -220px; background: radial-gradient(circle, rgba(43, 98, 196, .7), transparent 70%); animation: ui-drift 24s ease-in-out infinite alternate-reverse; }
.hd-dots { position: absolute; background-image: radial-gradient(rgba(255, 255, 255, .28) 1.6px, transparent 1.6px); background-size: 16px 16px; }
.hd-dots-tl { left: 2.2%; top: 60px; width: 80px; height: 64px; }
.hd-dots-r { right: 1.8%; top: 46%; width: 80px; height: 64px; }
.hd-swoosh { position: absolute; }
.hd-swoosh-tr { right: 0; top: 0; width: 150px; height: 240px; }
.hd-swoosh-bl { left: 0; bottom: 70px; width: 140px; height: 108px; opacity: .9; }

.hero-content { position: relative; z-index: 3; min-height: min(88vh, 780px); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 3rem; padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (min-width: 992px) { .hero-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; } }

/* Copy */
.hero-copy { position: relative; z-index: 2; max-width: 660px; }
.hero-copy > * { animation: ui-rise 1s var(--ui-ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
.hero-copy > :nth-child(4) { animation-delay: .36s; }
.hero-copy > :nth-child(5) { animation-delay: .5s; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .75rem; padding: .62rem 1.5rem .62rem 1.1rem; border-radius: 999px; background: rgba(9, 28, 62, .35); border: 1.5px solid rgba(226, 180, 83, .85); font-size: .98rem; font-weight: 500; color: #fff; }
.hero-eyebrow .he-icon { color: var(--ui-gold-400); font-size: 1.35rem; line-height: 1; }
.hero h1 { color: #fff; font-family: var(--ui-font-display); font-size: clamp(2.4rem, 3.4vw + 1rem, 4.25rem); line-height: 1.1; font-weight: 650; max-width: 15ch; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
.hero h1 .hl { color: #f0c25e; background: linear-gradient(180deg, #f6d27c, #e2a93b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html:lang(bn) .hero h1 { font-size: clamp(2.05rem, 3vw + 1rem, 3.6rem); line-height: 1.32; max-width: 17ch; letter-spacing: 0; }
.hero .lead { color: rgba(255, 255, 255, .9); font-size: clamp(1.02rem, .5vw + .9rem, 1.2rem); max-width: 46ch; line-height: 1.7; }
.hero-ctas { margin-top: 2rem; }
.hero-ctas .btn-lg { min-height: 60px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.08rem; border-radius: 14px; padding-left: 2rem; padding-right: 2rem; }
.hero-ctas .btn-gold { background-image: linear-gradient(180deg, #f6d27c, #e2ad45); color: #13203a; box-shadow: 0 16px 30px -14px rgba(226, 173, 69, .9); }
.hero-ctas .btn-outline-light { --bs-btn-color: #fff; --bs-btn-hover-color: var(--ui-navy-900); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); background: transparent; }
.hero-ctas .btn-outline-light:hover .text-gold { color: var(--ui-gold-500) !important; }
.hero-ctas .btn .bi { transition: transform .35s var(--ui-ease); }
@media (hover: hover) {
  .hero-ctas .btn-gold:hover { transform: translateY(-2px); }
  .hero-ctas .btn-gold:hover .bi-arrow-right { transform: translateX(4px); }
  .hero-ctas .btn-outline-light:hover .bi { transform: scale(1.12); }
}

/* Slider controls */
.hero-controls { display: flex; align-items: center; gap: 1.85rem; margin-top: 3.25rem; flex-wrap: wrap; }
.hc-arrow { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; padding: 0; color: #fff; font-size: 1rem; background: #163563; border: 0; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); transition: background-color .3s, color .3s, transform .3s var(--ui-ease); }
.hc-arrow:hover { background: var(--ui-gold-400); color: var(--ui-navy-900); }
.hc-arrow:active { transform: scale(.94); }
.hc-arrow:focus-visible, .hero-indicators button:focus-visible { outline: 2px solid var(--ui-gold-400); outline-offset: 3px; }
.hero-indicators { display: flex; align-items: center; gap: .45rem; }
.hero-indicators button { position: relative; width: 48px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-indicators button::before, .hero-indicators button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 5px; }
.hero-indicators button::before { background: rgba(255, 255, 255, .25); transition: background-color .3s; }
.hero-indicators button:hover::before { background: rgba(255, 255, 255, .45); }
.hero-indicators button::after { background: linear-gradient(90deg, #f6d27c, #e2ad45); transform: scaleX(0); transform-origin: left; }
.hero-indicators button.active::after { transform: scaleX(1); animation: ui-progress var(--hero-interval, 6500ms) linear both; }
@keyframes ui-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Featured graduation cap + sparkle trail */
.hero-cap { position: absolute; z-index: 1; left: 39%; top: .5rem; width: 250px; height: calc(100% - 4rem); pointer-events: none; }
.hc-cap { position: absolute; left: 0; top: 0; width: 250px; height: auto; rotate: 6deg; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); animation: ui-cap-bob 6s ease-in-out infinite; }
.hc-trail { position: absolute; left: 140px; top: 172px; width: 110px; height: 430px; overflow: visible; }
.hc-trail-line { stroke-dasharray: 3 9; animation: ui-trail-flow 2.4s linear infinite; }
.hc-stars path { transform-box: fill-box; transform-origin: center; animation: ui-twinkle 2.2s ease-in-out infinite; }
.hc-stars path:nth-child(2) { animation-delay: -.6s; }
.hc-stars path:nth-child(3) { animation-delay: -1.2s; }
.hc-stars path:nth-child(4) { animation-delay: -1.7s; }
@keyframes ui-cap-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(-3deg); } }
@keyframes ui-trail-flow { to { stroke-dashoffset: -24; } }
@keyframes ui-twinkle { 0%, 100% { opacity: .2; transform: scale(.55); } 50% { opacity: 1; transform: scale(1); } }

/* Layered image composition */
.hero-visual { position: relative; perspective: 1400px; }
.hv-stage { position: relative; height: 560px; transform-style: preserve-3d; transform: rotateY(calc(var(--mx, 0) * 3deg)) rotateX(calc(var(--my, 0) * -2deg)); transition: transform .9s var(--ui-ease); animation: ui-stage-in 1.2s var(--ui-ease) .25s both; }
.hv-frame { position: absolute; overflow: hidden; border-radius: 16px; background: #fff; border: 7px solid #fff; box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .75); }
.hv-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 9px; transition: transform 1.2s var(--ui-ease); }
.hv-main { left: 14%; top: 64px; width: 74%; aspect-ratio: 4 / 3.1; z-index: 1; rotate: -3deg; animation: ui-float 10s ease-in-out infinite; }
.hv-sub { left: 0; top: 63%; width: 42%; aspect-ratio: 4 / 3; z-index: 2; rotate: 4.5deg; animation: ui-float 12s ease-in-out infinite reverse; animation-delay: -3s; }
.hv-mini { right: 7%; top: 61%; width: 36%; aspect-ratio: 4 / 3; z-index: 3; rotate: -4deg; animation: ui-float 9s ease-in-out infinite; animation-delay: -5s; }
.hv-mini img { object-position: center 30%; }
.hv-badge { position: absolute; right: 5%; top: 0; z-index: 4; display: flex; align-items: center; gap: .85rem; padding: .85rem 1.4rem .85rem .9rem; border-radius: 18px; background: #fff; color: var(--ui-ink); box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .65); animation: ui-float 8s ease-in-out infinite; animation-delay: -2s; }
.hv-badge .bi { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, #f6d27c, #e2ad45); color: #4a3510; font-size: 1.65rem; }
.hv-badge strong { display: block; font-family: var(--ui-font-display); font-size: 1.85rem; line-height: 1; color: var(--ui-navy-900); }
.hv-badge small { color: #4b5565; font-size: .95rem; }
.hv-leaves { position: absolute; z-index: 0; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35)); transform-origin: 80% 90%; animation: ui-leaf 7s ease-in-out infinite alternate; }
.hv-leaves-l { left: 6%; top: 30%; width: 92px; height: 92px; rotate: -20deg; }
.hv-leaves-r { right: 0; top: 56%; width: 110px; height: 110px; rotate: 110deg; animation-delay: -3s; }
.hv-plane { position: absolute; right: -4%; top: 25%; width: 130px; height: 66px; z-index: 0; animation: ui-float 6s ease-in-out infinite; }
.hv-main::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); background-size: 250% 100%; background-position: 150% 0; opacity: 0; }
.hv-stage.is-sweep .hv-main::before { animation: ui-sweep 1.4s var(--ui-ease); }
@media (hover: hover) { .hv-frame:hover img { transform: scale(1.06); } }
@keyframes ui-leaf { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes ui-stage-in { from { opacity: 0; translate: 48px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes ui-sweep { 0% { opacity: 1; background-position: 150% 0; } 100% { opacity: 1; background-position: -50% 0; } }
@keyframes ui-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes ui-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(60px, 40px, 0); } }
@keyframes ui-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ui-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hc-sparks { display: none; } }

/* Hero: tablet & mobile */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hv-stage { height: 470px; }
  .hero-cap { left: 36%; width: 200px; }
  .hc-cap { width: 200px; }
  .hc-trail { left: 112px; top: 140px; height: 360px; }
  .hv-badge strong { font-size: 1.5rem; }
  .hv-badge .bi { width: 48px; height: 48px; font-size: 1.35rem; }
}
@media (max-width: 991.98px) {
  .hero, .hero-content { min-height: 0; }
  .hero-content { padding-top: 4rem; padding-bottom: 4rem; gap: 3rem; }
  .hero-copy { max-width: 680px; }
  .hero-visual { width: 100%; max-width: 620px; margin: 0 auto; }
  .hv-stage { height: 460px; transform: none; }
  .hd-swoosh-tr { width: 100px; height: 160px; }
}
@media (max-width: 767.98px) {
  .hero::after { background: linear-gradient(180deg, rgba(9, 28, 62, .82) 0%, rgba(11, 33, 71, .9) 55%, rgba(9, 28, 62, .96) 100%); }
  .hero-content { padding-top: 3rem; padding-bottom: 3.25rem; }
  .hero-decor .orb { filter: blur(50px); }
  .hero-decor .orb-1 { width: 300px; height: 300px; }
  .hero-decor .orb-2 { width: 260px; height: 260px; }
  .hd-dots-r, .hd-dots-tl { display: none; }
  .hd-swoosh-bl { width: 90px; height: 70px; bottom: 24px; }
  .hero-eyebrow { font-size: .85rem; padding: .5rem 1.1rem .5rem .85rem; }
  .hero-controls { margin-top: 2.25rem; gap: 1rem; }
  .hc-arrow { width: 42px; height: 42px; }
  .hero-indicators button { width: 36px; }
}
@media (max-width: 575.98px) {
  .hero-ctas { gap: .75rem !important; }
  .hero-ctas .btn-lg { flex: 1 1 100%; min-height: 56px; }
}

/* ---------- Notice board (directly beneath the hero) ---------- */
.notice-strip { position: relative; z-index: 5; padding-top: 3rem; }
.notice-panel { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border-radius: var(--ui-radius-xl); box-shadow: var(--ui-shadow-xl); overflow: hidden; border: 1px solid rgba(227, 231, 239, .9); animation: ui-rise .9s var(--ui-ease) .45s both; }
@media (min-width: 992px) { .notice-panel { grid-template-columns: 300px minmax(0, 1fr); } }
.notice-panel-head { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.75rem; background: var(--ui-navy-grad); color: #fff; overflow: hidden; isolation: isolate; }
.notice-panel-head::before { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; bottom: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 173, 82, .45), transparent 70%); z-index: -1; }
.notice-panel-head::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 14px 14px; z-index: -1; }
.np-icon { position: relative; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ui-gold-grad); color: #1b1406; font-size: 1.4rem; box-shadow: 0 12px 24px -10px rgba(217, 173, 82, .8); }
.np-icon .bi { animation: ui-ring 5s ease-in-out infinite; transform-origin: 50% 20%; }
.np-pulse { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: #ef4444; border: 2px solid var(--ui-navy-800); }
.np-pulse::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #ef4444; animation: ui-pulse 2s ease-out infinite; }
.np-title h2 { color: #fff; font-family: var(--ui-font-display); font-size: 1.45rem; margin: 0 0 .3rem; }
.np-title p { color: rgba(255, 255, 255, .72); font-size: .88rem; margin: 0; }
.np-all { margin-top: auto; }
.notice-panel-body { padding: .5rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2rem; align-content: center; }
@media (min-width: 1200px) { .notice-panel-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.notice-panel-body > .empty-state { grid-column: 1 / -1; padding: 2rem 1rem; }
.notice-panel .notice-item { align-items: center; }
.notice-panel .date-chip { width: 54px; }
.notice-panel .date-chip .d { font-size: 1.2rem; }
@keyframes ui-ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-14deg); } 92% { transform: rotate(12deg); } 95% { transform: rotate(-8deg); } 98% { transform: rotate(4deg); } }
@keyframes ui-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }

.notice-item { position: relative; display: flex; gap: .95rem; padding: 1rem .75rem; margin: 0 -.75rem; border-bottom: 1px dashed var(--ui-line); border-radius: 12px; transition: background-color .25s; }
.notice-item:last-child { border-bottom: 0; }
.notice-item a { color: var(--ui-ink); font-weight: 600; text-decoration: none; transition: color .2s; }
.notice-item a:hover { color: var(--ui-blue-600); }
.notice-go { color: var(--ui-muted); font-size: 1rem; flex-shrink: 0; transition: transform .25s var(--ui-ease), color .2s; }
@media (hover: hover) {
  .notice-item:hover { background: linear-gradient(90deg, var(--ui-blue-50), rgba(238, 243, 252, 0)); }
  .notice-item:hover .notice-go { color: var(--ui-blue-600); transform: translate(2px, -2px); }
  .notice-item:hover .date-chip { box-shadow: 0 8px 16px -10px rgba(16, 32, 64, .5); transform: translateY(-1px); }
}

/* ---------- Stats ---------- */

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-sm { padding: 3.5rem 0; }
.site .section.bg-soft { background: radial-gradient(900px 400px at 100% 0%, rgba(43, 98, 196, .06), transparent 60%), radial-gradient(700px 360px at 0% 100%, rgba(217, 173, 82, .08), transparent 60%), var(--ui-bg) !important; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--ui-gold-500); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .85rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ui-gold-grad, currentColor); border-radius: 2px; }
.text-center .eyebrow::after, .eyebrow.justify-content-center::after { content: ""; width: 28px; height: 2px; background: var(--ui-gold-grad, currentColor); border-radius: 2px; }
html:lang(bn) .eyebrow { letter-spacing: .02em; font-size: .9rem; text-transform: none; }
.section-title { font-family: var(--ui-font-display); font-size: clamp(1.8rem, 3.2vw, 2.65rem); line-height: 1.12; margin-bottom: 1rem; letter-spacing: -.02em; }
html:lang(bn) .section-title { line-height: 1.35; letter-spacing: 0; }
.section-lead { color: var(--ui-muted); font-size: 1.06rem; max-width: 62ch; line-height: 1.7; }

.page-hero { position: relative; background: var(--ui-navy-900); color: #fff; padding: 5.5rem 0 4.5rem; overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; z-index: -2; animation: ui-kenburns 18s ease-out both; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 85% 10%, rgba(217, 173, 82, .22), transparent 70%), linear-gradient(180deg, rgba(10, 27, 51, .45), rgba(10, 27, 51, .94)); }
.page-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ui-gold-grad, var(--ui-gold-400)); z-index: 1; }
.page-hero .container { position: relative; z-index: 1; animation: ui-rise .8s var(--ui-ease) both; }
.page-hero h1 { color: #fff; font-family: var(--ui-font-display); font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: .6rem; letter-spacing: -.02em; }
html:lang(bn) .page-hero h1 { letter-spacing: 0; }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 60ch; margin: 0; font-size: 1.05rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: var(--ui-gold-400); margin-bottom: 1rem; font-size: .85rem; display: inline-flex; padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }

.img-frame { position: relative; border-radius: var(--ui-radius-lg); overflow: hidden; box-shadow: var(--ui-shadow); }
.img-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ui-ease); }
@media (hover: hover) { .img-frame:hover img { transform: scale(1.05); } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 2.1rem; margin-bottom: .8rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; display: grid; place-items: center; background: #e5f4ec; color: var(--ui-success); font-size: 1rem; line-height: 1; }

/* ---------- Stats + About (shared light zone) ---------- */
.about-zone { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #f7f9fd 0%, #f2f6fc 100%); }
.az-wave { position: absolute; z-index: -1; border-radius: 50%; background: rgba(214, 226, 245, .55); }
.az-wave-tl { width: 360px; height: 360px; left: -200px; top: -120px; }
.az-wave-br { width: 520px; height: 520px; right: -260px; bottom: -280px; background: rgba(214, 226, 245, .45); }
.az-dots { position: absolute; z-index: -1; width: 72px; height: 64px; background-image: radial-gradient(rgba(201, 150, 47, .6) 1.6px, transparent 1.6px); background-size: 14px 14px; }
.az-dots-l { left: 2%; top: 4.5rem; }
.az-dots-r { right: 2.5%; bottom: 4rem; }
.az-swoosh { position: absolute; z-index: -1; right: 0; bottom: 0; width: 90px; height: 110px; }

.hero-stats { position: relative; z-index: 1; padding-top: 3.5rem; }
.stat-strip { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: 26px; box-shadow: 0 24px 50px -30px rgba(16, 32, 64, .3); padding: 1.85rem 1.25rem; border-top: 3px solid #e2b453; }
.stat-strip .stat { display: flex; align-items: center; justify-content: center; gap: 1.1rem; padding: .25rem 1rem; }
.stat-strip .stat + .stat { border-left: 1px solid #e3e7ef; }
.stat-icon { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 1.75rem; color: #0f2f6b; background: radial-gradient(circle at 50% 45%, #fdf3dc 0%, #f8e6bd 70%, #f3dca8 100%); box-shadow: 0 0 0 6px rgba(248, 230, 189, .35); transition: transform .4s var(--ui-ease); }
.stat-strip .stat:hover .stat-icon { transform: translateY(-3px) rotate(-6deg); }
.stat-strip .num { font-family: var(--ui-font-display); font-size: clamp(1.9rem, 2.8vw, 2.75rem); font-weight: 700; line-height: 1.05; color: #0c1d3d; }
.stat-strip .lbl { color: #4b5565; font-size: 1rem; margin-top: .25rem; }

.about-section { position: relative; z-index: 1; }
.about-collage { position: relative; padding: .75rem 0 1.75rem 2.25rem; }
.ac-frame { position: relative; z-index: 1; }
.ac-corner { position: absolute; z-index: 0; width: 46%; height: 32%; border: 3px solid #e2b453; border-radius: 22px; }
.ac-corner-t { left: .25rem; top: -10px; border-right: 0; border-bottom: 0; border-bottom-left-radius: 0; border-top-right-radius: 0; }
.ac-corner-b { left: -10px; bottom: .5rem; border-right: 0; border-top: 0; border-top-left-radius: 0; border-bottom-right-radius: 0; }
.ac-main { position: relative; z-index: 1; aspect-ratio: 700 / 495; border-radius: 26px; overflow: hidden; border: 8px solid #fff; background: #fff; box-shadow: 0 30px 60px -30px rgba(16, 32, 64, .45); }
.ac-main img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; transition: transform 1s var(--ui-ease); }
.ac-small { position: absolute; z-index: 2; left: -5.1%; top: 61.6%; bottom: -3.4%; width: 50.7%; border-radius: 22px; overflow: hidden; border: 8px solid #fff; background: #fff; box-shadow: 0 26px 50px -22px rgba(16, 32, 64, .5); }
.ac-small img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; transition: transform 1s var(--ui-ease); }
@media (hover: hover) { .ac-small:hover img { transform: scale(1.05); } }
.about-badge { position: absolute; z-index: 3; right: 0; top: 2%; min-width: 24.3%; min-height: 15.6%; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.25rem .85rem 1rem; border-radius: 16px; background: #fff; color: #0c1d3d; border: 1.5px solid rgba(226, 180, 83, .55); box-shadow: 0 18px 36px -18px rgba(16, 32, 64, .45); }
.about-badge .bi { font-size: 2.2rem; line-height: 1; color: #e2a93b; }
.about-badge small { display: block; font-size: .9rem; font-weight: 600; color: #0c1d3d; line-height: 1.1; }
.about-badge strong { display: block; font-family: var(--ui-font-display); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.about-section .eyebrow { color: #d39b2e; }
.about-section .section-title { color: #0c1d3d; font-size: clamp(2rem, 2.6vw + .8rem, 3rem); }
.about-section .section-lead { color: #4b5565; font-size: 1.1rem; }
.about-section .check-list li { padding-left: 2.6rem; margin-bottom: 1.1rem; color: #3b4658; font-size: 1.05rem; }
.about-section .check-list li::before { content: "\F633"; width: 1.6rem; height: 1.6rem; top: -.05rem; background: #3cb371; color: #fff; font-size: 1rem; box-shadow: 0 4px 10px -4px rgba(60, 179, 113, .7); }
.site .about-btn { display: inline-flex; align-items: center; padding: .95rem 2.25rem; border-radius: 999px; border: 0; color: #fff; font-weight: 600; font-size: 1.05rem; background: linear-gradient(180deg, #164191, #0c2a63); box-shadow: 0 16px 30px -14px rgba(12, 42, 99, .75); }
.site .about-btn:hover, .site .about-btn:focus-visible { color: #fff; background: linear-gradient(180deg, #1b4fae, #0f3274); }

@media (max-width: 1199.98px) {
  .stat-icon { width: 60px; height: 60px; font-size: 1.45rem; }
  .stat-strip .stat { gap: .8rem; padding: .25rem .6rem; }
  .stat-strip .lbl { font-size: .9rem; }
}
@media (max-width: 991.98px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
  .stat-strip .stat:nth-child(3) { border-left: 0; }
  .stat-strip .stat { justify-content: flex-start; }
  .about-collage { padding: .5rem 0 1.5rem 1.75rem; }
}
@media (max-width: 575.98px) {
  .hero-stats { padding-top: 2.5rem; }
  .stat-strip { padding: 1.25rem .5rem; border-radius: 20px; }
  .stat-strip .stat { flex-direction: column; text-align: center; justify-content: center; gap: .5rem; padding: .25rem .35rem; }
  .stat-icon { width: 50px; height: 50px; font-size: 1.2rem; box-shadow: 0 0 0 4px rgba(248, 230, 189, .35); }
  .stat-strip .lbl { font-size: .8rem; }
  .about-badge { padding: .55rem .85rem .55rem .7rem; }
  .about-badge .bi { font-size: 1.6rem; }
  .about-badge strong { font-size: 1.5rem; }
  .about-badge small { font-size: .75rem; }
  .ac-main, .ac-small { border-width: 5px; }
  .az-dots { display: none; }
}

/* Card hover (shared) */
.card-hover { transition: transform .35s var(--ui-ease), box-shadow .35s var(--ui-ease), border-color .35s; }
@media (hover: hover) { .card-hover:hover { transform: translateY(-6px); box-shadow: var(--ui-shadow-lg); } }

.feature-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-xl, 22px); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--ui-shadow-sm); }
.feature-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--ui-gold-grad, var(--ui-gold-400)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ui-ease); }
.feature-card .media { aspect-ratio: 3 / 2; overflow: hidden; background: #e9edf4; }
.feature-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ui-ease); }
.feature-card .body { padding: 1.45rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.feature-card h3 { font-size: 1.16rem; margin-bottom: .45rem; }
.feature-card p { color: var(--ui-muted); font-size: .95rem; margin-bottom: 0; line-height: 1.65; }
.feature-card .icon-tile { margin-top: -2.9rem; border: 4px solid #fff; box-shadow: 0 10px 20px -12px rgba(16, 32, 64, .45); position: relative; z-index: 1; }
@media (hover: hover) {
  .feature-card:hover::after { transform: scaleX(1); }
  .feature-card:hover .media img { transform: scale(1.07); }
  .feature-card:hover .icon-tile { background: var(--ui-blue-600); color: #fff; }
}
.icon-tile { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--ui-blue-50); color: var(--ui-blue-600); font-size: 1.35rem; flex-shrink: 0; transition: background-color .3s, color .3s, transform .3s var(--ui-ease); }
.icon-tile.gold { background: var(--ui-gold-50); color: var(--ui-gold-500); }

/* Programs (course cards) */
.program-card { position: relative; border-radius: var(--ui-radius-xl, 22px); overflow: hidden; min-height: 380px; height: 100%; color: #fff; display: flex; align-items: flex-end; isolation: isolate; box-shadow: var(--ui-shadow); transition: transform .45s var(--ui-ease), box-shadow .45s var(--ui-ease); }
.program-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ui-ease); }
.program-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 27, 51, 0) 20%, rgba(10, 27, 51, .55) 55%, rgba(10, 27, 51, .95) 100%); transition: opacity .45s; }
.program-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.program-card .body { padding: 1.6rem; }
.program-card h3 { color: #fff; font-family: var(--ui-font-display); font-size: 1.4rem; margin-bottom: .4rem; }
.program-card p { color: rgba(255, 255, 255, .82); font-size: .92rem; margin: 0; line-height: 1.6; }
.program-card .tag { display: inline-block; background: var(--ui-gold-grad, var(--ui-gold-400)); color: #1b1406; font-weight: 700; font-size: .72rem; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .7rem; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); }
.program-go { position: absolute; top: 1.1rem; right: 1.1rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .45s var(--ui-ease), background-color .3s, color .3s; }
@media (hover: hover) {
  .program-card:hover { transform: translateY(-8px); box-shadow: var(--ui-shadow-xl, var(--ui-shadow-lg)); }
  .program-card:hover img { transform: scale(1.08); }
  .program-card:hover .program-go { background: var(--ui-gold-400); color: #1b1406; border-color: var(--ui-gold-400); transform: rotate(45deg); }
}

/* ---------- Teachers section (home) ---------- */
.teachers-section { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #fbfcfe, #f6f8fc); }
.ts-book { position: absolute; z-index: -1; right: 2%; top: 3.5rem; width: 260px; height: 220px; color: #e9eff9; rotate: -8deg; }
.ts-dots { position: absolute; z-index: -1; right: 15%; top: 12.5rem; width: 92px; height: 52px; background-image: radial-gradient(rgba(201, 150, 47, .7) 1.8px, transparent 1.8px); background-size: 26px 18px; }
.ts-eyebrow { display: flex; align-items: center; gap: .8rem; color: #e2a93b; font-size: .95rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
html:lang(bn) .ts-eyebrow { letter-spacing: .02em; text-transform: none; font-size: 1rem; }
.ts-eyebrow .bi { font-size: 1.9rem; line-height: 1; }
.ts-line { width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.teachers-section .ts-title { font-size: clamp(2.1rem, 3.6vw + .6rem, 3.8rem); color: #0c1d3d; margin-bottom: .6rem; letter-spacing: -.025em; }
html:lang(bn) .teachers-section .ts-title { letter-spacing: 0; }
.teachers-section .section-lead { font-size: 1.15rem; color: #59647a; }
.site .ts-btn { display: inline-flex; align-items: center; padding: .85rem 1.65rem; border-radius: 999px; border: 1.5px solid #e2b453; background: #fff; color: #0f2f6b; font-weight: 600; font-size: 1.05rem; box-shadow: 0 8px 20px -14px rgba(201, 150, 47, .8); }
.site .ts-btn:hover, .site .ts-btn:focus-visible { background: #e2b453; color: #13203a; border-color: #e2b453; }

/* ---------- Teacher cards ---------- */
.teacher-card { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid #eef1f6; border-radius: 18px; padding: 12px; box-shadow: 0 18px 40px -26px rgba(16, 32, 64, .28), 0 1px 3px rgba(16, 32, 64, .04); transition: transform .45s var(--ui-ease), box-shadow .45s var(--ui-ease); }
.tc-media { position: relative; aspect-ratio: 1.07 / 1; border-radius: 14px; overflow: hidden; background: #e9edf4; isolation: isolate; }
.tc-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform .9s var(--ui-ease); }
.tc-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 27, 51, 0) 65%, rgba(10, 27, 51, .3) 100%); pointer-events: none; }
.tc-dept { position: absolute; left: 14px; bottom: 14px; z-index: 2; max-width: calc(100% - 28px); display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem .45rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: #fff; background: rgba(13, 30, 62, .88); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-dept .bi { font-size: 1rem; line-height: 1; }
.tc-dept svg { flex-shrink: 0; }
.tc-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 1.35rem .65rem .65rem; }
.teacher-card .tc-name { font-family: var(--ui-font-display); font-size: 1.55rem; font-weight: 650; line-height: 1.2; color: #0c1d3d; margin: 0 0 .45rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
html:lang(bn) .teacher-card .tc-name { letter-spacing: 0; font-size: 1.35rem; }
.teacher-card .role { color: #1f5bc4; font-size: .92rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
html:lang(bn) .teacher-card .role { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.tc-bar { display: block; width: 36px; height: 3px; border-radius: 3px; background: #e2b453; margin: 1rem 0 1.15rem; transition: width .45s var(--ui-ease); }
.tc-meta { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: .8rem; }
.tc-meta li { display: flex; align-items: center; gap: .75rem; color: #3b4658; font-size: .92rem; line-height: 1.35; }
.tc-meta .bi { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fbf1dc; color: #b8862a; font-size: 1rem; }
.tc-meta span { overflow-wrap: anywhere; }
@media (hover: hover) {
  .teacher-card:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -28px rgba(16, 32, 64, .4), 0 1px 3px rgba(16, 32, 64, .05); }
  .teacher-card:hover .tc-media img { transform: scale(1.06); }
  .teacher-card:hover .tc-bar { width: 60px; }
}
@media (max-width: 1199.98px) {
  .teacher-card .tc-name { font-size: 1.3rem; }
  .tc-meta li { font-size: .9rem; }
  .tc-meta .bi { width: 32px; height: 32px; }
}
@media (max-width: 767.98px) {
  .ts-book { width: 160px; height: 140px; opacity: .7; }
  .ts-dots { display: none; }
}
@media (max-width: 575.98px) {
  .teacher-card { padding: 7px; border-radius: 15px; }
  .tc-media { border-radius: 11px; }
  .tc-body { padding: .9rem .4rem .4rem; }
  .teacher-card .tc-name { font-size: 1.05rem; }
  .teacher-card .role { font-size: .72rem; letter-spacing: .04em; }
  .tc-bar { margin: .7rem 0 .8rem; }
  .tc-dept { left: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: .7rem; padding: .3rem .65rem .3rem .55rem; }
  .tc-meta { gap: .55rem; }
  .tc-meta li { font-size: .76rem; gap: .5rem; align-items: flex-start; }
  .tc-meta .bi { width: 24px; height: 24px; font-size: .75rem; }
  .ts-btn { font-size: .95rem; }
}

.filter-pills .btn { border-radius: 999px; padding-left: 1rem; padding-right: 1rem; }

/* ---------- Principal ---------- */
.principal-section { position: relative; overflow: hidden; isolation: isolate; background: #f6f8fc; }
.ps-dots { position: absolute; z-index: -1; width: 110px; height: 56px; background-image: radial-gradient(rgba(201, 150, 47, .55) 1.8px, transparent 1.8px); background-size: 16px 16px; }
.ps-dots-tl { left: 2%; top: 2.25rem; }
.ps-dots-br { right: 2%; bottom: 2.25rem; }
.ps-corner { position: absolute; z-index: -1; width: 220px; height: 180px; }
.ps-corner-tr { right: 0; top: 0; }
.ps-corner-bl { left: 0; bottom: 0; }
.principal-card { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); border: 6px solid #fff; border-radius: 22px; overflow: hidden; background: #0c2a5a; box-shadow: 0 40px 70px -34px rgba(10, 27, 51, .55), 0 2px 6px rgba(10, 27, 51, .08); }
.pc-photo { position: relative; min-height: 440px; border-right: 3px solid #e2b453; overflow: hidden; }
.pc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 20%; transition: transform 1.2s var(--ui-ease); }
@media (hover: hover) { .principal-card:hover .pc-photo img { transform: scale(1.04); } }
.pc-body { position: relative; isolation: isolate; overflow: hidden; padding: 4.25rem 4rem 4rem; color: #fff; background: radial-gradient(520px 300px at 100% 0%, rgba(226, 180, 83, .2), transparent 60%), linear-gradient(140deg, #0f3270 0%, #0c2a5a 50%, #0a2149 100%); }
.pc-body::before, .pc-body::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(43, 98, 196, .14); }
.pc-body::before { width: 420px; height: 420px; right: -150px; bottom: -300px; }
.pc-body::after { width: 300px; height: 300px; right: 120px; bottom: -250px; background: rgba(43, 98, 196, .1); }
.pc-eyebrow { display: flex; align-items: center; gap: .75rem; color: #e2b453; font-size: .92rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
html:lang(bn) .pc-eyebrow { letter-spacing: .02em; text-transform: none; font-size: 1rem; }
.pc-eyebrow .bi { font-size: 1.55rem; line-height: 1; }
.pc-line { width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.pc-quote-mark { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 7.5rem; line-height: 1; height: 4rem; margin: 1.4rem 0 1.6rem; color: #e2b453; background: linear-gradient(180deg, #f6d27c, #d9a33b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pc-quote { margin: 0 0 1.75rem; font-family: var(--ui-font-display); font-weight: 600; font-size: clamp(1.25rem, 1.15vw + .8rem, 1.65rem); line-height: 1.6; color: #fff; }
html:lang(bn) .pc-quote { font-size: 1.2rem; line-height: 1.85; }
.pc-bar { display: block; width: 42px; height: 3px; border-radius: 3px; background: #e2b453; margin-bottom: 1.4rem; }
.pc-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
.pc-who strong { display: block; font-family: var(--ui-font-display); font-size: 1.55rem; font-weight: 650; color: #e2b453; line-height: 1.2; }
.pc-who small { display: block; margin-top: .3rem; font-size: 1rem; color: rgba(255, 255, 255, .72); }
.site .pc-btn { display: inline-flex; align-items: center; gap: .7rem; padding: .95rem 1.85rem; border-radius: 999px; border: 1.5px solid #e2b453; color: #fff; background: transparent; font-weight: 600; }
.pc-btn .bi-file-earmark-text { color: #fff; font-size: 1.2rem; }
.pc-btn .bi-arrow-right { color: #e2b453; transition: transform .3s var(--ui-ease); }
.site .pc-btn:hover, .site .pc-btn:focus-visible { background: #e2b453; color: #13203a; }
.pc-btn:hover .bi { color: #13203a; }
.pc-btn:hover .bi-arrow-right { transform: translateX(4px); }
@media (max-width: 1199.98px) { .pc-body { padding: 3.25rem 2.75rem; } }
@media (max-width: 991.98px) {
  .principal-card { grid-template-columns: minmax(0, 1fr); }
  .pc-photo { min-height: 0; aspect-ratio: 4 / 3.4; border-right: 0; border-bottom: 3px solid #e2b453; }
  .ps-corner { width: 140px; height: 115px; }
}
@media (max-width: 575.98px) {
  .principal-card { border-width: 4px; border-radius: 18px; }
  .pc-body { padding: 2.25rem 1.5rem; }
  .pc-quote-mark { font-size: 4.5rem; height: 2.7rem; margin: 1.2rem 0 1rem; }
  .pc-who strong { font-size: 1.3rem; }
  .ps-dots { display: none; }
}

/* ---------- News / events / notices ---------- */
.news-card { height: 100%; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-xl, 20px); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--ui-shadow-sm); }
.news-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: #e9edf4; }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ui-ease); }
.news-card .body { padding: 1.3rem 1.4rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.1rem; line-height: 1.4; }
.news-card h3 a { color: var(--ui-ink); text-decoration: none; transition: color .2s; }
.news-card h3 a:hover { color: var(--ui-blue-600); }
@media (hover: hover) { .news-card:hover .media img { transform: scale(1.06); } }
.meta-line { color: var(--ui-muted); font-size: .82rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.site .card { border-radius: var(--ui-radius-lg); }
.site .events-card { box-shadow: var(--ui-shadow); }

.event-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--ui-line); }
.event-item:last-child { border-bottom: 0; }
.date-chip { width: 64px; flex-shrink: 0; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--ui-line); background: #fff; box-shadow: 0 4px 10px -8px rgba(16, 32, 64, .4); transition: transform .25s var(--ui-ease), box-shadow .25s; align-self: flex-start; }
.date-chip .m { background: var(--ui-navy-grad, var(--ui-navy-800)); color: var(--ui-gold-400); font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .22rem 0; letter-spacing: .08em; }
.date-chip .d { font-family: var(--ui-font-display); font-size: 1.5rem; font-weight: 700; color: var(--ui-ink); padding: .2rem 0 .3rem; line-height: 1.2; }

/* ---------- Home: Latest from campus + Upcoming events ---------- */
.campus-section { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #f3f6fb 0%, #eef3fa 100%); }
.cs-lines { position: absolute; z-index: -1; right: 0; bottom: 0; width: 300px; height: 260px; }
.campus-section .eyebrow { color: #d39b2e; }
.campus-section .cs-title { color: #0c1d3d; font-size: clamp(2.1rem, 2.8vw + .8rem, 3.2rem); margin-bottom: .6rem; }
.campus-section .section-lead { color: #4b5565; font-size: 1.08rem; max-width: 56ch; }
.cn-card { height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 20px 44px -30px rgba(16, 32, 64, .35), 0 1px 3px rgba(16, 32, 64, .04); transition: transform .4s var(--ui-ease), box-shadow .4s var(--ui-ease); }
.cn-media { display: block; aspect-ratio: 16 / 6.4; border-radius: 12px; overflow: hidden; background: #e9edf4; }
.cn-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ui-ease); }
.cn-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 1.1rem .65rem .5rem; }
.cn-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; color: #5b6578; font-size: .92rem; margin-bottom: .55rem; }
.cn-meta .bi { margin-right: .5rem; font-size: 1rem; }
.cn-sep { width: 1px; height: 14px; background: #cfd6e2; }
.cn-title { font-family: var(--ui-font-display); font-size: 1.32rem; font-weight: 650; line-height: 1.3; margin: 0 0 1rem; }
.cn-title a { color: #0c1d3d; text-decoration: none; transition: color .2s; }
.cn-title a:hover { color: #1f5bc4; }
.cn-excerpt { color: #4b5565; font-size: 1.02rem; line-height: 1.6; margin: -.35rem 0 1.25rem; }
.site .cn-btn { margin-top: auto; padding: .55rem 1.2rem; border-radius: 999px; border: 1.5px solid #e2b453; background: #fff; color: #9a6b12; font-size: .92rem; font-weight: 600; }
.site .cn-btn:hover { background: #e2b453; color: #13203a; }
.cn-btn .bi { transition: transform .3s var(--ui-ease); }
.cn-feature { flex-direction: row; gap: 1.5rem; align-items: stretch; }
.cn-feature .cn-media { flex: 0 0 52%; aspect-ratio: auto; min-height: 220px; }
.cn-feature .cn-body { padding: .6rem .6rem .6rem 0; justify-content: center; }
.cn-feature .cn-title { font-size: 1.5rem; margin-bottom: 1rem; }
.cn-feature .cn-btn { margin-top: 0; }
@media (hover: hover) {
  .cn-card:hover { transform: translateY(-6px); box-shadow: 0 30px 56px -30px rgba(16, 32, 64, .45); }
  .cn-card:hover .cn-media img { transform: scale(1.06); }
  .cn-card:hover .cn-btn .bi { transform: translateX(3px); }
}
.cs-all { display: inline-flex; align-items: center; margin-top: 1.5rem; color: #1f5bc4; font-weight: 600; text-decoration: none; }
.cs-all:hover { color: #0c1d3d; }

.ev-card { position: relative; margin-top: .5rem; background: #fff; border-radius: 20px; padding: 1.5rem 1.75rem .75rem; box-shadow: 0 24px 50px -30px rgba(16, 32, 64, .35), 0 1px 3px rgba(16, 32, 64, .04); }
.ev-head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.1rem; border-bottom: 1px solid #e6eaf1; }
.ev-head-icon { font-size: 2rem; color: #e2a93b; line-height: 1; }
.ev-head h3 { flex: 1; margin: 0; font-family: var(--ui-font-display); font-size: 1.55rem; font-weight: 650; color: #0c1d3d; }
.ev-all { color: #1f5bc4; font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.ev-all:hover { color: #0c1d3d; }
.ev-item { display: flex; align-items: center; gap: 1.4rem; padding: 1.15rem 0; border-bottom: 1px solid #e6eaf1; }
.ev-item:last-child { border-bottom: 0; }
.ev-date { flex-shrink: 0; width: 78px; height: 76px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: linear-gradient(160deg, #163a73, #0c2453); box-shadow: 0 10px 20px -12px rgba(12, 36, 83, .8); transition: transform .3s var(--ui-ease); }
.ev-date .m { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.ev-date .d { font-family: var(--ui-font-display); font-size: 2rem; font-weight: 700; line-height: 1.05; margin-top: .2rem; }
.ev-item:hover .ev-date { transform: translateY(-2px); }
.ev-title { display: block; color: #0c1d3d; font-size: 1.12rem; font-weight: 600; margin-bottom: .45rem; }
.ev-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; color: #5b6578; font-size: .92rem; }
.ev-meta .bi { margin-right: .45rem; font-size: 1rem; color: #4b5565; }
@media (max-width: 1199.98px) {
  .cn-feature { flex-direction: column; gap: 0; }
  .cn-feature .cn-media { flex-basis: auto; aspect-ratio: 16 / 8; min-height: 0; }
  .cn-feature .cn-body { padding: 1.1rem .65rem .5rem; }
  .ev-card { padding: 1.25rem 1.25rem .5rem; }
  .ev-item { gap: 1rem; }
}
@media (max-width: 575.98px) {
  .cn-title, .cn-feature .cn-title { font-size: 1.2rem; }
  .ev-date { width: 64px; height: 64px; }
  .ev-date .d { font-size: 1.6rem; }
  .ev-head h3 { font-size: 1.3rem; }
  .cs-lines { width: 180px; height: 156px; }
}

.testimonial { position: relative; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-xl, 22px); padding: 2rem 1.85rem 1.75rem; height: 100%; display: flex; flex-direction: column; box-shadow: var(--ui-shadow-sm); transition: transform .4s var(--ui-ease), box-shadow .4s var(--ui-ease); overflow: hidden; }
.testimonial::before { content: "\201C"; position: absolute; right: 1.25rem; top: -.4rem; font-family: var(--ui-font-display); font-size: 7rem; line-height: 1; color: var(--ui-gold-50); pointer-events: none; }
.testimonial p { position: relative; color: var(--ui-text); font-size: 1.02rem; flex: 1; line-height: 1.7; }
.testimonial .who { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ui-line); }
.testimonial .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ui-gold-50); }
@media (hover: hover) { .testimonial:hover { transform: translateY(-6px); box-shadow: var(--ui-shadow-lg); } }
.stars { color: var(--ui-gold-400); letter-spacing: 2px; position: relative; }

/* ---------- Gallery marquee (two rows, opposite directions) ---------- */
.gallery-marquee { --gm-h: 250px; --gm-gap: 20px; --gm-speed-1: 70s; --gm-speed-2: 86s; position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(800px 420px at 12% 0%, rgba(43, 98, 196, .35), transparent 60%), radial-gradient(700px 380px at 92% 100%, rgba(217, 173, 82, .18), transparent 60%), var(--ui-navy-grad, var(--ui-navy-900)); }
.gallery-marquee::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 45%); mask-image: linear-gradient(180deg, #000, transparent 45%); }
.gallery-marquee .section-title { color: #fff; }
.gallery-marquee .section-lead { color: rgba(255, 255, 255, .74); }
.gm-rows { display: grid; gap: var(--gm-gap); }
.gm-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.gm-track { display: flex; width: max-content; will-change: transform; }
.gm-row-1 .gm-track { animation: ui-marquee-ltr var(--gm-speed-1) linear infinite; }
.gm-row-2 .gm-track { animation: ui-marquee-rtl var(--gm-speed-2) linear infinite; }
html:not(.js) .gm-row:hover .gm-track { animation-play-state: paused; }
.gm-set { display: flex; list-style: none; margin: 0; padding: 0; }
.gm-card { position: relative; flex: none; height: var(--gm-h); aspect-ratio: 4 / 3; margin-right: var(--gm-gap); border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .06); box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .8); }
.gm-card.is-square { aspect-ratio: 1 / 1; }
.gm-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ui-ease), filter .6s; }
.gm-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); background: linear-gradient(180deg, rgba(10, 27, 51, 0) 55%, rgba(10, 27, 51, .45)); transition: box-shadow .4s, background-color .4s; }
@media (hover: hover) {
  .gm-card:hover img { transform: scale(1.08); }
  .gm-card:hover::after { box-shadow: inset 0 0 0 2px rgba(217, 173, 82, .85); }
}
@keyframes ui-marquee-ltr { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes ui-marquee-rtl { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 991.98px) { .gallery-marquee { --gm-h: 200px; --gm-gap: 16px; --gm-speed-1: 58s; --gm-speed-2: 70s; } }
@media (max-width: 575.98px) {
  .gallery-marquee { --gm-h: 150px; --gm-gap: 12px; --gm-speed-1: 46s; --gm-speed-2: 56s; }
  .gm-card { border-radius: 14px; }
  .gm-row { -webkit-mask-image: none; mask-image: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
  .gm-set[aria-hidden="true"] { display: none; }
}

.achievement { display: flex; gap: 1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-lg); height: 100%; box-shadow: var(--ui-shadow-sm); transition: transform .4s var(--ui-ease), box-shadow .4s var(--ui-ease), border-color .4s; }
@media (hover: hover) {
  .achievement:hover { transform: translateY(-6px); box-shadow: var(--ui-shadow-lg); border-color: rgba(201, 150, 47, .45); }
  .achievement:hover .icon-tile { transform: rotate(-8deg) scale(1.08); }
}

.cta-band { position: relative; border-radius: var(--ui-radius-xl, 24px); overflow: hidden; background: var(--ui-navy-grad, var(--ui-navy-800)); color: #fff; padding: 3.75rem; isolation: isolate; box-shadow: var(--ui-shadow-xl, var(--ui-shadow-lg)); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; z-index: -2; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 173, 82, .4), transparent 70%); z-index: -1; animation: ui-drift 16s ease-in-out infinite alternate; }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; left: -120px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 98, 196, .5), transparent 70%); z-index: -1; }
.cta-band h2 { color: #fff; font-family: var(--ui-font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: rgba(255, 255, 255, .82); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-grid a { display: block; border-radius: var(--ui-radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: #e9edf4; position: relative; box-shadow: var(--ui-shadow-sm); transition: transform .4s var(--ui-ease), box-shadow .4s var(--ui-ease); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ui-ease); }
.gallery-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .9rem; color: #fff; font-size: .85rem; font-weight: 500; background: linear-gradient(180deg, transparent, rgba(10, 27, 51, .85)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ui-ease); }
.gallery-grid a:focus .cap { opacity: 1; transform: none; }
@media (hover: hover) {
  .gallery-grid a:hover { transform: translateY(-4px); box-shadow: var(--ui-shadow-lg); }
  .gallery-grid a:hover img { transform: scale(1.08); }
  .gallery-grid a:hover .cap { opacity: 1; transform: none; }
}
@media (hover: none) { .gallery-grid .cap { opacity: 1; transform: none; } }

.prose { font-size: 1.04rem; line-height: 1.85; color: var(--ui-text); }
.prose h2, .prose h3 { margin-top: 2rem; margin-bottom: .75rem; font-family: var(--ui-font-display); }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin-bottom: 1.1rem; }
.prose img { border-radius: var(--ui-radius); }
.prose blockquote { border-left: 3px solid var(--ui-gold-400); padding: .25rem 0 .25rem 1.1rem; color: var(--ui-ink); font-style: italic; }

.contact-tile { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-lg); background: #fff; height: 100%; box-shadow: var(--ui-shadow-sm); transition: transform .35s var(--ui-ease), box-shadow .35s var(--ui-ease), border-color .35s; }
@media (hover: hover) {
  .contact-tile:hover { transform: translateY(-3px); box-shadow: var(--ui-shadow); border-color: #d3dcee; }
  .contact-tile:hover .icon-tile { background: var(--ui-blue-600); color: #fff; }
}
.map-frame { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--ui-radius-xl, 22px); box-shadow: var(--ui-shadow); }

/* Forms on the public site */
.site .form-control, .site .form-select { border-radius: 12px; padding: .7rem .95rem; background-color: #fbfcfe; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.site .form-control:focus, .site .form-select:focus { background-color: #fff; box-shadow: 0 0 0 .25rem rgba(43, 98, 196, .14); }
.site .form-control-lg, .site .input-group-lg > .form-control { padding: .8rem 1rem; }
.site .input-group > .form-control, .site .input-group > .input-group-text, .site .input-group > .btn { border-radius: 0; }
.site .input-group > :first-child { border-top-left-radius: 14px; border-bottom-left-radius: 14px; }
.site .input-group > :last-child { border-top-right-radius: 14px; border-bottom-right-radius: 14px; }
.site main .card.p-4 { border-radius: var(--ui-radius-xl, 22px); box-shadow: var(--ui-shadow); border-color: #e6eaf2; }
.site .form-check-input:checked { background-color: var(--ui-blue-600); border-color: var(--ui-blue-600); }

/* Accordion (FAQ, notice lists) */
.accordion-button { font-weight: 600; color: var(--ui-ink); }
.accordion-button:not(.collapsed) { background: var(--ui-blue-50); color: var(--ui-navy-800); box-shadow: none; }
.accordion-item { border-color: var(--ui-line); }
.accordion-item:first-of-type, .accordion-item:last-of-type { border-radius: var(--ui-radius); }
.site .accordion { --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(43, 98, 196, .2); }
.site .accordion-item { border: 1px solid var(--ui-line) !important; border-radius: 16px !important; overflow: hidden; margin-bottom: .75rem; box-shadow: var(--ui-shadow-sm); transition: box-shadow .3s; }
.site .accordion-item:has(.accordion-button:not(.collapsed)) { box-shadow: var(--ui-shadow); border-color: #d3dcee !important; }
.site .accordion-button { padding: 1.1rem 1.25rem; border-radius: 0 !important; }

/* Pagination */
.site .pagination { --bs-pagination-border-radius: 10px; --bs-pagination-active-bg: var(--ui-blue-600); --bs-pagination-active-border-color: var(--ui-blue-600); gap: .3rem; flex-wrap: wrap; }
.site .page-link { border-radius: 10px !important; min-width: 40px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ui-navy-900); color: rgba(255, 255, 255, .72); padding: 5rem 0 0; font-size: .93rem; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ui-gold-grad, var(--ui-gold-400)); }
.site-footer::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 98, 196, .28), transparent 70%); z-index: -1; pointer-events: none; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .7rem; }
.site-footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; border-radius: 2px; background: var(--ui-gold-400); }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; transition: color .2s, padding-left .25s var(--ui-ease); }
.site-footer a:hover { color: var(--ui-gold-400); }
.site-footer ul a:hover { padding-left: 4px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3.5rem; padding: 1.5rem 0; font-size: .82rem; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .8); font-size: 1.05rem; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ui-ease), box-shadow .25s; }
.social a:hover, .social a:focus-visible { background: var(--ui-gold-400); color: var(--ui-navy-900); border-color: var(--ui-gold-400); transform: translateY(-3px); padding-left: 0 !important; }
.social-light a { border-color: var(--ui-line); color: var(--ui-blue-600); background: var(--ui-blue-50); }
.social-light a:hover, .social-light a:focus-visible { color: #fff; border-color: transparent; box-shadow: 0 10px 18px -10px rgba(16, 32, 64, .6); }
.social-light .social-facebook:hover, .social-light .social-facebook:focus-visible { background: #1877f2; }
.social-light .social-youtube:hover, .social-light .social-youtube:focus-visible { background: #e62117; }
.social-light .social-linkedin:hover, .social-light .social-linkedin:focus-visible { background: #0a66c2; }
.social-topbar { gap: .2rem; padding-left: .75rem; border-left: 1px solid rgba(255, 255, 255, .15); }
.social-topbar a { width: 26px; height: 26px; border: 0; border-radius: 8px; font-size: .82rem; }
.social-topbar a:hover { transform: none; }

/* Location map */
.map-card { position: relative; min-height: 320px; border-radius: var(--ui-radius-xl, 22px); }
.map-card .map-frame { display: block; position: absolute; inset: 0; min-height: 0; background: #e9edf4; }
.map-card .map-directions { position: absolute; top: .75rem; right: .75rem; z-index: 1; }

.demo-role-card { border-radius: var(--ui-radius-xl, 22px); border: 1px solid var(--ui-line); background: #fff; padding: 2rem 1.75rem; height: 100%; display: flex; flex-direction: column; box-shadow: var(--ui-shadow-sm); transition: box-shadow .35s var(--ui-ease), transform .35s var(--ui-ease); }
@media (hover: hover) { .demo-role-card:hover { box-shadow: var(--ui-shadow-lg); transform: translateY(-6px); } }
.demo-role-card .icon-tile { width: 60px; height: 60px; font-size: 1.6rem; border-radius: 16px; margin-bottom: 1.25rem; }
.demo-role-card ul { padding-left: 1.1rem; color: var(--ui-muted); font-size: .93rem; flex: 1; }

.auth-wrap { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { position: relative; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: flex-end; background: var(--ui-navy-900); overflow: hidden; }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; animation: ui-kenburns 20s ease-out both; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 27, 51, .1), rgba(10, 27, 51, .95)); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { color: #fff; font-family: var(--ui-font-display); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 3rem 1.25rem; background: radial-gradient(600px 300px at 100% 0%, rgba(43, 98, 196, .07), transparent 60%), var(--ui-bg); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-xl, 22px); padding: 2.4rem; box-shadow: var(--ui-shadow-lg); animation: ui-rise .7s var(--ui-ease) both; }

/* Reveal-on-scroll (progressive enhancement; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ui-ease), transform .8s var(--ui-ease); transition-delay: var(--reveal-delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  [data-parallax], .hero .carousel-inner { translate: none !important; }
  .hv-stage { transform: none !important; }
}


/* =====================================================================
   DEMO BANNER
   ===================================================================== */
.demo-banner { background: repeating-linear-gradient(-45deg, #f7c948, #f7c948 14px, #f3bd2e 14px, #f3bd2e 28px); color: #1d1503; font-size: .86rem; font-weight: 600; padding: .5rem 0; position: relative; z-index: 1031; }
.demo-banner .pill { background: #1d1503; color: #f7c948; border-radius: 999px; padding: .12rem .6rem; font-size: .72rem; letter-spacing: .06em; margin-right: .5rem; }
.demo-banner a, .demo-banner button { color: #1d1503; }
@media (max-width: 575.98px) {
  .demo-banner { font-size: .74rem; padding: .3rem 0; line-height: 1.35; }
  .demo-banner .container-fluid { column-gap: .5rem !important; row-gap: .1rem !important; }
  .demo-banner .pill { font-size: .64rem; margin-right: .35rem; }
  .demo-banner a { margin-left: 0 !important; }
}

/* =====================================================================
   PANELS (admin / teacher / student)
   ===================================================================== */
.panel-body { background: var(--ui-bg); }
.panel { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex-shrink: 0; background: var(--ui-navy-900); color: rgba(255, 255, 255, .72); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.has-demo { --demo-h: 38px; } /* fallback; js/app.js sets the measured banner height */
.has-demo .sidebar { height: calc(100vh - var(--demo-h)); top: var(--demo-h); }
.sidebar .brand { display: flex; align-items: center; gap: .65rem; padding: 1.15rem 1.25rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.sidebar .brand strong { font-size: .98rem; line-height: 1.15; display: block; }
.sidebar .brand small { color: rgba(255, 255, 255, .55); font-size: .72rem; }
.sidebar .nav-group { padding: 1rem .75rem 0; }
.sidebar .nav-group-title { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .4); padding: 0 .65rem .4rem; font-weight: 700; }
html:lang(bn) .sidebar .nav-group-title { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.sidebar .nav-link { display: flex; align-items: center; gap: .7rem; color: rgba(255, 255, 255, .74); padding: .52rem .7rem; border-radius: 9px; font-size: .9rem; font-weight: 500; margin-bottom: 2px; }
.sidebar .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; opacity: .9; }
.sidebar .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar .nav-link.active { background: var(--ui-blue-600); color: #fff; box-shadow: 0 6px 16px -8px rgba(43, 98, 196, .8); }
.sidebar .sidebar-foot { margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .78rem; color: rgba(255, 255, 255, .45); }
.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel-topbar { background: #fff; border-bottom: 1px solid var(--ui-line); padding: .7rem 1.5rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 1020; }
.has-demo .panel-topbar { top: var(--demo-h); }
.has-demo .site-nav.sticky-top { top: var(--demo-h); }
.has-demo .demo-banner { position: sticky; top: 0; }
.panel-topbar .user-chip { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ui-ink); }
.panel-topbar .user-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.panel-topbar .user-chip small { display: block; color: var(--ui-muted); font-size: .74rem; line-height: 1.1; }
.panel-content { padding: 1.75rem 1.5rem 3rem; flex: 1; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.5rem; margin: 0; }
.page-head .sub { color: var(--ui-muted); font-size: .92rem; margin-top: .25rem; }
.page-head .breadcrumb { font-size: .8rem; margin-bottom: .35rem; }

.kpi { background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); padding: 1.15rem 1.25rem; display: flex; gap: 1rem; align-items: center; height: 100%; }
.kpi .val { font-size: 1.55rem; font-weight: 700; color: var(--ui-ink); line-height: 1.1; }
.kpi .lbl { color: var(--ui-muted); font-size: .84rem; }
.kpi .trend { font-size: .78rem; font-weight: 600; }
.kpi .icon-tile.green { background: #e5f4ec; color: #157347; }
.kpi .icon-tile.red { background: #fbe9e7; color: #b02a37; }
.kpi .icon-tile.purple { background: #f0eafc; color: #6537c8; }
.kpi .icon-tile.teal { background: #e0f4f2; color: #0f766e; }

.filter-bar { background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); padding: 1rem; margin-bottom: 1rem; }
.filter-bar .form-control, .filter-bar .form-select { padding: .45rem .75rem; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ui-muted); }
.empty-state i { font-size: 2.5rem; color: #c3cad6; display: block; margin-bottom: .75rem; }

.profile-head { background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); overflow: hidden; }
.profile-head .cover { height: 92px; background: linear-gradient(120deg, var(--ui-navy-800), var(--ui-blue-600)); }
.profile-head .inner { padding: 0 1.5rem 1.25rem; display: flex; gap: 1.25rem; align-items: flex-end; flex-wrap: wrap; margin-top: -44px; }
.profile-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--ui-shadow-sm); background: #fff; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.dl-grid dt { font-size: .76rem; color: var(--ui-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
html:lang(bn) .dl-grid dt { text-transform: none; letter-spacing: 0; font-size: .84rem; }
.dl-grid dd { margin: .15rem 0 0; color: var(--ui-ink); font-weight: 500; }

.att-grid .btn-check + .btn { min-width: 42px; }
.att-legend span { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1rem; font-size: .85rem; }
.att-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.att-cal .day { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: .82rem; font-weight: 600; background: #f1f3f7; color: var(--ui-muted); }
.att-cal .day.present { background: #dff3e8; color: #146c43; }
.att-cal .day.absent { background: #fbe1de; color: #a12a1f; }
.att-cal .day.late { background: #fff0cc; color: #8a5a00; }
.att-cal .day.leave { background: #ddeefa; color: #0b5f8a; }
.att-cal .head { font-size: .7rem; color: var(--ui-muted); text-align: center; font-weight: 700; }

.timetable { min-width: 720px; }
.timetable td { min-width: 120px; }
.slot { background: var(--ui-blue-50); border-left: 3px solid var(--ui-blue-600); border-radius: 8px; padding: .45rem .6rem; font-size: .82rem; }
.slot strong { display: block; color: var(--ui-ink); font-size: .86rem; }
.slot small { color: var(--ui-muted); }

.chart-box { position: relative; height: 280px; }

.mobile-cards .mc { border-bottom: 1px solid var(--ui-line); padding: .9rem 1rem; }

.print-only { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .site-nav .nav-link { padding: .5rem .55rem !important; font-size: .9rem; }
  .site-nav .nav-link.dropdown-toggle { padding-right: 1.35rem !important; }
  .site-nav .nav-link.dropdown-toggle::before { right: .4rem; }
  .site-nav .nav-link::after { left: .55rem; right: .55rem; }
  .site-nav .nav-link.dropdown-toggle::after { right: 1.35rem; }
}
@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 1045; transform: translateX(-100%); transition: transform .25s var(--ui-ease); height: 100vh !important; height: 100dvh !important; top: 0 !important; }
  .sidebar.open { transform: none; box-shadow: var(--ui-shadow-lg); }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 40, .45); z-index: 1040; display: none; }
  .sidebar-backdrop.show { display: block; }
  .site-nav .navbar-collapse { padding: 1rem 0; max-height: calc(100vh - 80px - var(--demo-h, 0px)); max-height: calc(100dvh - 80px - var(--demo-h, 0px)); overflow-y: auto; overscroll-behavior: contain; }
  .site-nav .dropdown-menu { box-shadow: none; border: 0; padding-left: 1rem; }
  .site-nav .nav-link::after { display: none; }
  .site-nav .nav-link:hover, .site-nav .nav-link.active, .site-nav .nav-link.show { background: var(--ui-blue-50); }
  .site-nav .nav-link.dropdown-toggle::before { right: .85rem; }
  /* Keep brand + language switch + toggler on one row on phones (Bootstrap's brand is nowrap) */
  .site-nav .navbar-brand { flex: 1 1 0; min-width: 0; white-space: normal; margin-right: .5rem; }
  .site-nav .navbar-brand + .d-flex { flex-shrink: 0; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .section { padding: 4rem 0; }
}
@media (max-width: 767.98px) {
  .notice-panel-head { padding: 1.35rem; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .np-icon { width: 46px; height: 46px; font-size: 1.2rem; }
  .np-title h2 { font-size: 1.25rem; }
  .np-all { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
  .notice-panel-body { padding: .35rem 1.1rem; }
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 3.75rem 0 3rem; }
  .program-card { min-height: 320px; }
  .cta-band { padding: 2.25rem 1.5rem; }
  .panel-content { padding: 1.25rem .9rem 2.5rem; }
  .panel-topbar { padding: .6rem .9rem; }
  .page-head h1 { font-size: 1.3rem; }
  .table > :not(caption) > * > * { padding: .6rem .7rem; }
  .auth-card { padding: 1.6rem; }
  .site main .card.p-4 { padding: 1.35rem !important; }
}

/* ---------- Print (report cards, receipts, reports) ---------- */
@media print {
  .sidebar, .panel-topbar, .demo-banner, .no-print, .site-nav, .site-footer, .topbar, .btn { display: none !important; }
  .print-only { display: block !important; }
  .panel-content { padding: 0; }
  .panel-body, body { background: #fff !important; }
  .card { box-shadow: none; border-color: #ccc; }
  a { text-decoration: none; color: inherit; }
}
.prose table { width: 100%; margin-bottom: 1.25rem; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { border: 1px solid var(--ui-line); padding: .6rem .85rem; text-align: left; }
.prose th { background: var(--ui-bg); color: var(--ui-ink); font-weight: 600; }

/* Mobile refinements */
.kpi .val { overflow-wrap: break-word; }
.signatures { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.signatures > div { flex: 1 1 140px; text-align: center; }
@media (max-width: 767.98px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
  /* Admin-authored Markdown tables scroll instead of being clipped by main's overflow-x: clip */
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose pre { overflow-x: auto; }
}
@media (max-width: 575.98px) {
  .kpi { padding: .85rem; gap: .55rem; flex-direction: column; align-items: flex-start; }
  .site-nav .brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 1.05rem; }
  .site-nav .navbar-brand { gap: .55rem; }
  .site-nav .brand-text strong { font-size: .98rem; }
  .site-nav .lang-switch a { padding: .25rem .5rem; }
  .site-nav .navbar-toggler { padding: .25rem .4rem; }
  .kpi .icon-tile { width: 36px; height: 36px; font-size: 1rem; }
  /* Attendance sheet: keep the P/A/L/LV controls on screen without sideways scrolling */
  .att-grid .person { min-width: 0; }
  .att-grid .person img { display: none; }
  .att-grid > :not(caption) > * > * { padding-left: .5rem; padding-right: .5rem; }
  .att-grid .btn-check + .btn { min-width: 34px; --bs-btn-padding-x: .3rem; --bs-btn-padding-y: .4rem; }
  .kpi .val { font-size: 1.15rem; }
  .kpi .lbl { font-size: .78rem; }
}
