/* =========================================================
   JMF's Vande Mataram College — site styles
   Palette taken from the college logo banner:
   royal blue (title), crimson red (accreditation line),
   maroon (jubilee line), with orange + green from the JMF emblem.
   Bootstrap 5.3 + plain CSS (no SCSS).
   ========================================================= */

:root {
  /* Logo palette */
  --blue: #2557a0;
  --blue-dark: #183d78;
  --blue-deep: #0d2550;
  --red: #e03131;
  --red-dark: #b81f2b;
  /* Only three colours: blue (primary), red (accent), white/grey (neutral).
     Legacy names below map onto those so no extra hues appear. */
  --maroon: #b81f2b;
  --orange: #e03131;
  --green: #2557a0;
  --light: #d6e2f5; /* light blue tint for text on dark blue */

  /* Neutrals (slightly blue-biased) */
  --ink: #18213a;
  --muted: #5b647a;
  --line: #e4e8f1;
  --soft: #f4f7fc;
  --soft-2: #eaf0fa;
  --white: #ffffff;

  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  --grad-warm: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  --grad-text: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);

  --f-head: "Plus Jakarta Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --f-body: "DM Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --f-deva: "Noto Sans Devanagari", "Mangal", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(13, 37, 80, .06);
  --shadow: 0 14px 34px -12px rgba(13, 37, 80, .18);
  --shadow-lg: 0 30px 60px -24px rgba(13, 37, 80, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --bs-body-font-family: var(--f-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--white);
  --bs-link-color-rgb: 37, 87, 160;
  --bs-link-hover-color-rgb: 224, 49, 49;
  color-scheme: light;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--white); color: var(--ink); font-family: var(--f-body); font-size: 1rem; line-height: 1.65; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: var(--f-head); font-weight: 700; color: var(--blue-deep); letter-spacing: -.01em; text-wrap: balance; }
img { max-width: 100%; height: auto; display: block; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--blue); color: #fff; padding: .5rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 10px; color: #fff; }

/* ---------- Shared section system ---------- */
.section { padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); position: relative; }
.bg-soft { background: var(--soft); }
.bg-dots { background-image: radial-gradient(rgba(37, 87, 160, .10) 1.2px, transparent 1.2px); background-size: 22px 22px; }

.pill-label {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .9rem; border-radius: 999px;
  background: var(--soft-2); color: var(--blue);
  font: 700 .75rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase;
}
.pill-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(224, 49, 49, .18); }
.pill-label.light { background: rgba(255, 255, 255, .12); color: #fff; }
.pill-label.light::before { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

.sec-head { margin-bottom: clamp(2.2rem, 2rem + 1.5vw, 3.2rem); }
.sec-head.center { text-align: center; }
.sec-head.center p { margin-inline: auto; }
.sec-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.75rem); font-weight: 800; margin: .9rem 0 .6rem; }
.sec-head p { color: var(--muted); max-width: 62ch; font-size: 1.04rem; margin: 0; }
.sec-head.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn-brand, .btn-warm, .btn-line, .btn-white {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .78rem 1.45rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  font-family: var(--f-head); border: 1.5px solid transparent; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn-brand { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 22px -10px rgba(37, 87, 160, .7); }
.btn-warm { background: var(--grad-warm); color: #fff; box-shadow: 0 10px 22px -10px rgba(224, 49, 49, .7); }
.btn-line { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-brand:hover, .btn-warm:hover { transform: translateY(-2px); color: #fff; }
.btn-white:hover { transform: translateY(-2px); color: var(--red-dark); }
.btn-line:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-line.light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-line.light:hover { background: #fff; color: var(--blue-deep); }
.btn-brand .ico, .btn-warm .ico, .btn-line .ico, .btn-white .ico { transition: transform .25s var(--ease); }
.btn-brand:hover .ico, .btn-warm:hover .ico, .btn-line:hover .ico, .btn-white:hover .ico { transform: translateX(3px); }

.arrow-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; font-family: var(--f-head); color: var(--blue); text-decoration: none; }
.arrow-link .ico { transition: transform .25s var(--ease); }
.arrow-link:hover { color: var(--red); }
.arrow-link:hover .ico { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-deep); color: rgba(255, 255, 255, .82); font-size: .82rem; padding-block: .45rem; padding-top: calc(.45rem + env(safe-area-inset-top, 0px)); }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--light); }
.topbar .contact { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; align-items: center; }
.topbar .jubilee { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .65rem; border-radius: 999px; background: var(--grad-warm); color: #fff; font-weight: 600; font-size: .74rem; letter-spacing: .02em; }
.topbar .links { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 991.98px) { .topbar .contact span:not(.jubilee) { display: none; } }
@media (max-width: 767.98px) { .topbar .contact { display: none; } .topbar .links { justify-content: center; width: 100%; } }

/* ---------- Header with logo banner ---------- */
.site-header { background: #fff; padding-block: .6rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.banner-logo { display: block; flex: 1 1 auto; min-width: 0; max-width: 860px; }
.banner-logo img { width: 100%; height: auto; }
.header-cta { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; flex: none; }
.header-cta .helpline { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--muted); line-height: 1.25; }
.header-cta .helpline .h-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--soft-2); color: var(--red); }
.header-cta .helpline strong { display: block; color: var(--blue-deep); font-family: var(--f-head); font-size: .98rem; }
.compact-brand { display: none; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.compact-brand img { width: 58px; height: 58px; flex: none; }
.compact-brand .name { font-family: var(--f-head); font-weight: 800; color: var(--blue); font-size: 1.05rem; line-height: 1.15; }
.compact-brand .sub { font-size: .74rem; color: var(--red-dark); font-weight: 600; margin-top: .15rem; }
@media (max-width: 1199.98px) { .header-cta .helpline { display: none; } }
@media (max-width: 767.98px) {
  .banner-logo { display: none; }
  .compact-brand { display: flex; }
  .header-cta { display: none; }
}

/* ---------- Main navbar ---------- */
.main-navbar {
  background: var(--grad-brand); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1030; padding-block: 0;
  box-shadow: 0 6px 20px -10px rgba(13, 37, 80, .5);
}
.main-navbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.main-navbar .navbar-nav .nav-link { color: rgba(255, 255, 255, .92); font-family: var(--f-head); font-weight: 600; font-size: .84rem; padding: 1.05rem .45rem; position: relative; white-space: nowrap; }
.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active,
.main-navbar .navbar-nav .show > .nav-link { color: var(--light); }
.main-navbar .dropdown-menu {
  border: 0; border-top: 3px solid var(--red); border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-lg); padding: .5rem; min-width: 270px; margin-top: 0;
  max-height: min(70vh, 560px); overflow-y: auto;
}
.main-navbar .dropdown-item { font-size: .89rem; padding: .5rem .8rem; color: var(--ink); border-radius: 8px; white-space: normal; max-width: 340px; }
.main-navbar .dropdown-item:hover, .main-navbar .dropdown-item:focus { background: var(--soft-2); color: var(--blue); }
.main-navbar .dropdown-item.sub { padding-left: 1.7rem; position: relative; }
.main-navbar .dropdown-item.sub::before { content: ""; position: absolute; left: .95rem; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.main-navbar .dropdown-header { font: 700 .7rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--red-dark); padding: .75rem .8rem .35rem; }
.main-navbar .navbar-toggler { border-color: rgba(255, 255, 255, .45); margin-block: .6rem; }
.main-navbar .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.main-navbar .mobile-title { color: #fff; font-family: var(--f-head); font-weight: 700; }
@media (min-width: 1200px) {
  .main-navbar .dropdown:hover > .dropdown-menu, .main-navbar .dropdown:focus-within > .dropdown-menu { display: block; animation: ddIn .22s var(--ease); }
  .main-navbar .navbar-nav .nav-link::before { content: ""; position: absolute; left: .45rem; right: .45rem; bottom: .65rem; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .25s var(--ease); }
  .main-navbar .navbar-nav .nav-link:hover::before, .main-navbar .navbar-nav .nav-link.active::before, .main-navbar .navbar-nav .show > .nav-link::before { transform: scaleX(1); }
}
@media (min-width: 1200px) and (max-width: 1399.98px) { .main-navbar .navbar-nav .nav-link { font-size: .76rem; padding-inline: .3rem; } }
@keyframes ddIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1199.98px) {
  .main-navbar .navbar-collapse { max-height: calc(100vh - 70px); overflow-y: auto; padding-bottom: 1rem; }
  .main-navbar .navbar-nav .nav-link { padding: .75rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .main-navbar .dropdown-menu { background: rgba(255, 255, 255, .06); border-top: 0; box-shadow: none; max-height: none; }
  .main-navbar .dropdown-item { color: rgba(255, 255, 255, .88); max-width: none; }
  .main-navbar .dropdown-item:hover { background: transparent; color: var(--light); }
  .main-navbar .dropdown-header { color: var(--light); }
}

/* ---------- Hero carousel (images only) ---------- */
.hero { position: relative; background: var(--blue-deep); }
.hero .carousel-item img { width: 100%; aspect-ratio: 1920 / 700; object-fit: cover; max-width: 100%; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 70px; opacity: 1; }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon { width: 46px; height: 46px; border-radius: 50%; background-color: rgba(13, 37, 80, .35); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .4); background-size: 42%; transition: background-color .25s; }
.hero .carousel-control-prev:hover .carousel-control-prev-icon, .hero .carousel-control-next:hover .carousel-control-next-icon { background-color: var(--red); border-color: var(--red); }
.hero .carousel-indicators { margin-bottom: 5.5rem; }
.hero .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 999px; border: 0; background-color: rgba(13, 37, 80, .45); opacity: 1; transition: width .3s var(--ease), background-color .3s; }
.hero .carousel-indicators .active { width: 34px; background-color: var(--red); }
@media (max-width: 991.98px) { .hero .carousel-indicators { margin-bottom: 1rem; } }
@media (max-width: 575.98px) { .hero .carousel-item img { aspect-ratio: 16 / 9; } .hero .carousel-control-prev, .hero .carousel-control-next { width: 48px; } .hero .carousel-control-prev-icon, .hero .carousel-control-next-icon { width: 34px; height: 34px; } }

/* Floating quick-access panel overlapping the hero */
.quick-wrap { position: relative; z-index: 5; margin-top: -4.5rem; }
.quick-panel {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: .6rem;
}
.quick-item { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; padding: 1.1rem .5rem; border-radius: var(--r-md); text-decoration: none; color: var(--blue-deep); font-family: var(--f-head); font-weight: 700; font-size: .86rem; line-height: 1.25; transition: background .25s, color .25s, transform .25s var(--ease); min-width: 0; }
.quick-item .q-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--blue); background: var(--soft-2); transition: transform .3s var(--ease); }
.quick-item .q-ico svg { width: 24px; height: 24px; }
.quick-item:hover { background: var(--soft-2); color: var(--blue); transform: translateY(-3px); }
.quick-item:hover .q-ico { background: var(--blue); color: #fff; transform: scale(1.06); }
.quick-item .q-ico { transition: transform .3s var(--ease), background .25s, color .25s; }
@media (max-width: 991.98px) { .quick-wrap { margin-top: 1.5rem; } .quick-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .quick-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .4rem; } .quick-item { padding: .9rem .3rem; font-size: .78rem; } .quick-item .q-ico { width: 44px; height: 44px; border-radius: 13px; } .quick-item:last-child { grid-column: 2; } }

/* Notice ticker */
.ticker { margin-top: 1.6rem; display: flex; align-items: stretch; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.ticker .label { background: var(--grad-warm); color: #fff; font: 700 .78rem/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; padding: .8rem 1.2rem; display: flex; align-items: center; gap: .5rem; flex: none; border-radius: 999px; }
.ticker .track { overflow: hidden; flex: 1; display: flex; align-items: center; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker ul { display: flex; gap: 3rem; list-style: none; margin: 0; padding: 0 1.25rem; white-space: nowrap; animation: ticker 42s linear infinite; }
.ticker:hover ul { animation-play-state: paused; }
.ticker a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.ticker a:hover { color: var(--red); }
.ticker .new { background: var(--red); color: #fff; font-size: .62rem; font-weight: 700; padding: .12rem .4rem; border-radius: 4px; margin-left: .45rem; vertical-align: 1px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { overflow-x: auto; } .ticker ul { animation: none; } }
@media (max-width: 575.98px) { .ticker .label span { display: none; } }

/* ---------- Welcome / highlights ---------- */
.welcome h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); font-weight: 800; line-height: 1.08; margin: 1rem 0 1rem; }
.welcome .lead-p { color: var(--muted); font-size: 1.08rem; max-width: 56ch; margin-bottom: 1.75rem; }
.welcome .ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.welcome .motto { margin-top: 1.75rem; display: inline-flex; align-items: center; gap: .7rem; color: var(--blue-dark); font-family: var(--f-deva); font-size: 1.05rem; }
.welcome .motto::before { content: ""; width: 32px; height: 2px; background: var(--orange); }
.highlight-stack { display: grid; gap: 1rem; }
.hl-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.3rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; position: relative; overflow: hidden; }
.hl-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; opacity: .06; background: var(--blue); }
.hl-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.hl-card .hl-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none; font: 800 1rem/1 var(--f-head); }
.hl-card .hl-ico svg { width: 26px; height: 26px; }
.hl-card b { display: block; font-family: var(--f-head); color: var(--blue-deep); font-size: 1.06rem; }
.hl-card span { font-size: .88rem; color: var(--muted); }
.hl-card .hl-ico { background: var(--soft-2); color: var(--blue); }
.hl-card.c1 .hl-ico { background: var(--grad-warm); color: #fff; }

/* ---------- About ---------- */
.about-visual { position: relative; padding: 0 3rem 3rem 0; isolation: isolate; }
.about-visual .main-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-visual .sub-img { position: absolute; right: 0; bottom: 0; width: 46%; border-radius: var(--r-md); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.about-visual .years { position: absolute; left: -1rem; top: 2rem; background: var(--grad-warm); color: #fff; border-radius: var(--r-md); padding: 1rem 1.2rem; box-shadow: var(--shadow-lg); text-align: center; }
.about-visual .years b { display: block; font: 800 2.2rem/1 var(--f-head); }
.about-visual .years small { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.about-visual::before { content: ""; position: absolute; left: -1.5rem; bottom: 1rem; width: 120px; height: 120px; background-image: radial-gradient(var(--blue) 1.6px, transparent 1.6px); background-size: 14px 14px; opacity: .3; z-index: -1; }
@media (max-width: 575.98px) { .about-visual { padding: 0 1.5rem 2rem 0; } .about-visual::before { left: 0; } .about-visual .years { left: .5rem; top: .75rem; padding: .7rem .9rem; } .about-visual .years b { font-size: 1.6rem; } }
.about-copy p { color: var(--muted); }
.vm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.vm-card2 { padding: 1.2rem; border-radius: var(--r-md); background: var(--soft); border: 1px solid var(--line); }
.vm-card2 .ico-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: .7rem; }
.vm-card2:first-child .ico-badge { background: var(--grad-brand); }
.vm-card2:last-child .ico-badge { background: var(--blue-deep); }
.vm-card2 h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.vm-card2 p { font-size: .9rem; margin: 0; }
@media (max-width: 575.98px) { .vm-cards { grid-template-columns: 1fr; } }
.chip-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--blue-deep); font-weight: 600; font-size: .86rem; text-decoration: none; transition: all .25s var(--ease); }
.chip-links a .ico { color: var(--blue); }
.chip-links a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-links a:hover .ico { color: var(--light); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--grad-brand); position: relative; overflow: hidden; padding-block: 3.5rem; }
.stats-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.stats-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%); }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.stat-card { text-align: center; padding: 1.4rem .8rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.stat-card .num { font: 800 clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem)/1.1 var(--f-head); color: #fff; font-variant-numeric: tabular-nums; }
.stat-card .num .plus { color: var(--light); }
.stat-card .label { font-size: .86rem; color: rgba(255, 255, 255, .8); margin-top: .35rem; }
@media (max-width: 991.98px) { .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Administration ---------- */
.leader { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--blue-deep); box-shadow: var(--shadow); height: 100%; }
.leader img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.leader:hover img { transform: scale(1.05); }
.leader .info { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; padding: .85rem 1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); }
.leader h3 { font-size: 1rem; margin: 0 0 .15rem; }
.leader .role { font-size: .74rem; font-weight: 700; color: var(--red-dark); text-transform: uppercase; letter-spacing: .06em; }
.body-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; height: 100%; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.body-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; }
.body-card.t-blue::before { background: var(--grad-brand); }
.body-card.t-red::before { background: var(--blue-dark); }
.body-card.t-orange::before { background: var(--red); }
.body-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.body-card h3 .ico { color: var(--blue); }
.body-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.body-card ul.two-col { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.body-card a { color: var(--ink); text-decoration: none; font-size: .92rem; display: inline-flex; gap: .45rem; align-items: baseline; }
.body-card a::before { content: "→"; color: var(--blue); font-weight: 700; font-size: .85em; }
.body-card a:hover { color: var(--blue); }
@media (max-width: 400px) { .body-card ul.two-col { grid-template-columns: 1fr; } }

/* ---------- Academics ---------- */
.seg { display: inline-flex; padding: .3rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); gap: .2rem; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: .55rem 1.2rem; border-radius: 999px; font: 700 .88rem/1 var(--f-head); color: var(--muted); transition: all .25s; }
.seg button[aria-pressed="true"] { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 16px -8px rgba(37, 87, 160, .7); }
.prog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); text-decoration: none; color: var(--ink); }
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.prog-card .p-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; max-width: 100%; }
.prog-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prog-card:hover .p-img img { transform: scale(1.06); }
.prog-card .badge-lvl { position: absolute; left: .8rem; top: .8rem; padding: .32rem .7rem; border-radius: 999px; font: 700 .68rem/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--blue); }
.prog-col[data-level="pg"] .badge-lvl { background: var(--blue-deep); }
.prog-card .p-body { padding: 1.2rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.prog-card h3 { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.prog-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.prog-card .p-foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); font-weight: 600; }
.prog-card .go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-2); color: var(--blue); transition: background .25s, color .25s, transform .25s var(--ease); }
.prog-card:hover .go { background: var(--red); color: #fff; transform: rotate(-45deg); }
.prog-col[hidden] { display: none !important; }
.res-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1rem; margin-top: 2.75rem; }
.res-tiles a { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; padding: 1.2rem .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--blue-deep); font: 700 .84rem/1.25 var(--f-head); transition: all .25s var(--ease); min-width: 0; }
.res-tiles a .ico { width: 1.6rem; height: 1.6rem; color: var(--blue); transition: color .25s; }
.res-tiles a:hover { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow); }
.res-tiles a:hover .ico { color: var(--light); }
@media (max-width: 1199.98px) { .res-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .res-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Admissions ---------- */
.adm-panel { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-deep) 100%); color: #fff; border-radius: var(--r-lg); padding: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); position: relative; overflow: hidden; height: 100%; box-shadow: var(--shadow-lg); }
.adm-panel::before { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .08); }
.adm-panel h2 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); font-weight: 800; margin: 1rem 0 .7rem; }
.adm-panel p { color: rgba(255, 255, 255, .88); }
.adm-panel .phone-box { margin: 1.4rem 0 1.6rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); display: flex; gap: .9rem; align-items: center; }
.adm-panel .phone-box .ico { width: 1.6rem; height: 1.6rem; color: var(--light); }
.adm-panel .phone-box small { display: block; font-size: .76rem; opacity: .85; }
.adm-panel .phone-box strong { font-family: var(--f-head); font-size: 1.02rem; user-select: all; }
.adm-panel .actions { display: flex; flex-wrap: wrap; gap: .7rem; position: relative; z-index: 1; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--blue); opacity: .25; }
.timeline li { position: relative; padding-left: 80px; padding-bottom: 1.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .num { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 18px; background: #fff; border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; font: 800 1.2rem/1 var(--f-head); box-shadow: var(--shadow-sm); }
.timeline .t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.timeline .t-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.timeline h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.timeline p { color: var(--muted); font-size: .93rem; margin-bottom: .6rem; }
@media (max-width: 575.98px) { .timeline li { padding-left: 64px; } .timeline .num { width: 48px; height: 48px; border-radius: 14px; } .timeline::before { left: 23px; } }

/* ---------- Research bento ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; }
.bento .b1 { grid-column: span 2; grid-row: span 2; }
.bento .b6 { grid-column: span 2; }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; color: #fff; text-decoration: none; isolation: isolate; background: var(--blue-deep); min-width: 0; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 37, 80, .05) 20%, rgba(13, 37, 80, .9) 100%); transition: background .4s; }
.tile:hover img { transform: scale(1.07); }
.tile:hover::after { background: linear-gradient(180deg, rgba(13, 37, 80, .25) 10%, rgba(13, 37, 80, .96) 100%); }
.tile .t-body { padding: 1.2rem 1.3rem; width: 100%; }
.tile .t-tag { display: inline-block; font: 700 .66rem/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; padding: .32rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); margin-bottom: .5rem; }
.tile h3 { color: #fff; font-size: 1.1rem; margin: 0; }
.tile p { color: rgba(255, 255, 255, .86); font-size: .88rem; margin: .35rem 0 0; }
.tile.b1 h3 { font-size: 1.6rem; }
.tile:hover { color: #fff; }
@media (max-width: 991.98px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; } }
@media (max-width: 575.98px) { .bento { grid-template-columns: 1fr; grid-auto-rows: 190px; } .bento .b1, .bento .b6 { grid-column: auto; grid-row: auto; } .tile.b1 h3 { font-size: 1.25rem; } }

/* ---------- Student life ---------- */
.life-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); height: 100%; transition: transform .35s var(--ease), box-shadow .35s; }
.life-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.life-card .l-img { aspect-ratio: 3 / 2; overflow: hidden; max-width: 100%; }
.life-card .l-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.life-card:hover .l-img img { transform: scale(1.06); }
.life-card .l-body { padding: 1.7rem 1.3rem 1.3rem; position: relative; }
.life-card .l-badge { position: absolute; top: -26px; left: 1.3rem; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow); }
.life-card .l-badge svg { width: 24px; height: 24px; }
.life-card h3 { font-size: 1.06rem; margin: .4rem 0 .35rem; }
.life-card p { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.cells-panel { margin-top: 2.5rem; border-radius: var(--r-lg); background: var(--blue-deep); padding: 1.6rem; display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; }
.cells-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.2px); background-size: 20px 20px; }
.cells-panel h3 { color: #fff; font-size: 1.25rem; margin: 0; position: relative; }
.cells-panel h3 small { display: block; font: 500 .85rem/1.4 var(--f-body); color: rgba(255, 255, 255, .72); margin-top: .35rem; }
.cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; position: relative; }
.cells a { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font: 600 .85rem/1.3 var(--f-head); transition: all .25s var(--ease); min-width: 0; }
.cells a .ico { width: 1.4rem; height: 1.4rem; color: var(--light); }
.cells a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); color: #fff; }
@media (max-width: 1199.98px) { .cells-panel { grid-template-columns: 1fr; } }
@media (max-width: 991.98px) { .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Alumni CTA band ---------- */
.alumni-band { position: relative; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; min-height: 340px; display: flex; align-items: center; background: var(--blue-deep); }
.alumni-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.alumni-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 37, 80, .96) 0%, rgba(24, 61, 120, .85) 45%, rgba(24, 61, 120, .35) 100%); }
.alumni-band .inner { padding: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 640px; color: #fff; }
.alumni-band h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; margin: 1rem 0 .7rem; }
.alumni-band p { color: rgba(255, 255, 255, .86); margin-bottom: 1.5rem; }
.alumni-band .actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Information corner ---------- */
.info-tabs { display: flex; flex-wrap: nowrap; gap: .3rem; padding: .3rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); overflow-x: auto; margin-bottom: 1.5rem; scrollbar-width: none; }
.info-tabs .nav-item { flex: none; }
.info-tabs .nav-link { border: 0; border-radius: 999px; padding: .6rem 1rem; font: 700 .84rem/1 var(--f-head); color: var(--muted); white-space: nowrap; }
.info-tabs .nav-link.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.news-feature { display: block; border-radius: var(--r-lg); overflow: hidden; position: relative; text-decoration: none; color: #fff; isolation: isolate; height: 100%; min-height: 380px; background: var(--blue-deep); }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.news-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(13, 37, 80, .94)); }
.news-feature:hover img { transform: scale(1.05); }
.news-feature:hover { color: #fff; }
.news-feature .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; }
.news-feature .date-chip { display: inline-flex; gap: .4rem; align-items: center; padding: .32rem .7rem; border-radius: 999px; background: var(--red); font: 700 .72rem/1 var(--f-head); letter-spacing: .04em; }
.news-feature h3 { color: #fff; font-size: 1.32rem; margin: .7rem 0 .4rem; }
.news-feature p { color: rgba(255, 255, 255, .84); font-size: .9rem; margin: 0; }
.news-row { display: flex; gap: 1rem; padding: .75rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.news-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; color: var(--ink); }
.news-row img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; flex: none; }
.news-row .meta { font: 700 .7rem/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--red-dark); }
.news-row h4 { font-size: .98rem; margin: .4rem 0 .25rem; color: var(--blue-deep); line-height: 1.35; }
.news-row p { font-size: .84rem; color: var(--muted); margin: 0; }
@media (max-width: 575.98px) { .news-row img { width: 90px; } .news-row p { display: none; } }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.doc-list li { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: box-shadow .25s; }
.doc-list li:hover { box-shadow: var(--shadow-sm); }
.doc-list .d-date { flex: none; width: 58px; text-align: center; border-radius: 12px; background: var(--soft-2); padding: .35rem 0; line-height: 1.1; }
.doc-list .d-date strong { display: block; font: 800 1.1rem/1.1 var(--f-head); color: var(--blue); }
.doc-list .d-date small { font-size: .66rem; font-weight: 700; text-transform: uppercase; color: var(--red-dark); }
.doc-list a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.doc-list a:hover { color: var(--blue); }
.doc-list .type { flex: none; font: 700 .68rem/1 var(--f-head); padding: .35rem .55rem; border-radius: 6px; background: rgba(224, 49, 49, .1); color: var(--red-dark); }
.notice-card { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.notice-card .head { background: var(--grad-brand); color: #fff; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.notice-card .head h3 { color: #fff; font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: .55rem; }
.notice-card .head a { color: #fff; font-size: .8rem; font-weight: 600; text-decoration: none; padding: .32rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.notice-card ul { list-style: none; margin: 0; padding: .5rem 1.1rem; max-height: 440px; overflow-y: auto; }
.notice-card li { display: flex; gap: .85rem; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.notice-card li:last-child { border-bottom: 0; }
.notice-card .n-date { flex: none; width: 50px; text-align: center; border-radius: 12px; background: var(--soft-2); padding: .3rem 0; line-height: 1.1; }
.notice-card .n-date strong { display: block; font: 800 1.08rem/1.1 var(--f-head); color: var(--blue); }
.notice-card .n-date small { font-size: .64rem; font-weight: 700; text-transform: uppercase; color: var(--red-dark); }
.notice-card li a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.notice-card li a:hover { color: var(--blue); }
.more-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.more-links a { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: var(--r-md); background: var(--soft); border: 1px solid var(--line); text-decoration: none; color: var(--blue-deep); font: 700 .84rem/1.3 var(--f-head); transition: all .25s; min-width: 0; }
.more-links a .m-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--red); flex: none; }
.more-links a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
@media (max-width: 767.98px) { .more-links { grid-template-columns: 1fr; } }

/* ---------- Accreditation ---------- */
.accr-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.accr { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: 1.5rem 1rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; position: relative; min-width: 0; }
.accr:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }
.accr .logo-ring { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 6px var(--soft-2), var(--shadow-sm); overflow: hidden; margin-bottom: .4rem; }
.accr .logo-ring img { width: 82%; height: 82%; object-fit: contain; }
.accr b { font-family: var(--f-head); color: var(--blue-deep); font-size: .98rem; }
.accr span { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.accr .grade { position: absolute; top: .8rem; right: .8rem; font: 800 .72rem/1 var(--f-head); padding: .32rem .5rem; border-radius: 6px; background: var(--grad-warm); color: #fff; }
@media (max-width: 1199.98px) { .accr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .accr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 1rem; }
.gallery-grid .g1 { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g6 { grid-column: span 2; }
.g-item { position: relative; border: 0; padding: 0; border-radius: var(--r-md); overflow: hidden; background: var(--blue-deep); cursor: zoom-in; width: 100%; height: 100%; display: block; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(13, 37, 80, .6)); opacity: 0; transition: opacity .3s; }
.g-item .zoom { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; z-index: 1; transform: scale(.6); opacity: 0; transition: all .3s var(--ease); }
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-item:hover .zoom, .g-item:focus-visible .zoom { transform: scale(1); opacity: 1; }
@media (max-width: 991.98px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; } }
@media (max-width: 575.98px) { .gallery-grid { grid-auto-rows: 130px; gap: .6rem; } }
#galleryModal .modal-content { background: transparent; border: 0; }
#galleryModal .modal-body { padding: 0; position: relative; }
#galleryModal .modal-body img { width: 100%; border-radius: var(--r-md); }
#galleryModal .caption { color: #fff; text-align: center; padding: .75rem; font-size: .92rem; }
#galleryModal .nav-btn { position: absolute; top: 45%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--blue); display: grid; place-items: center; }
#galleryModal .nav-btn:hover { background: var(--red); color: #fff; }
#galleryModal .prev { left: .75rem; }
#galleryModal .next { right: .75rem; }
#galleryModal .btn-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; background-color: #fff; opacity: .95; border-radius: 50%; padding: .65rem; }
.modal-backdrop.show { opacity: .88; }

/* ---------- UGC disclosure ---------- */
.ugc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; counter-reset: ugc; list-style: none; padding: 0; margin: 0; }
.ugc-grid a { counter-increment: ugc; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--blue-deep); font-weight: 600; font-size: .94rem; line-height: 1.4; transition: all .25s var(--ease); height: 100%; }
.ugc-grid a::before { content: counter(ugc, decimal-leading-zero); flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft-2); color: var(--blue); font: 800 .9rem/1 var(--f-head); transition: all .25s; }
.ugc-grid a .dl { margin-left: auto; flex: none; color: var(--muted); }
.ugc-grid a:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--blue); }
.ugc-grid a:hover::before { background: var(--grad-warm); color: #fff; }
.ugc-grid a:hover .dl { color: var(--red); }
@media (max-width: 767.98px) { .ugc-grid { grid-template-columns: 1fr; } }

/* ---------- Pre-footer CTA + footer ---------- */
.prefooter { position: relative; z-index: 2; margin-bottom: -4rem; }
.prefooter .box { background: var(--grad-warm); border-radius: var(--r-lg); padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem) clamp(1.6rem, 1.2rem + 2vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.prefooter .box::after { content: ""; position: absolute; right: 18%; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .08); }
.prefooter h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 800; margin: 0 0 .3rem; }
.prefooter p { margin: 0; color: rgba(255, 255, 255, .88); }
.prefooter .actions { display: flex; flex-wrap: wrap; gap: .7rem; position: relative; z-index: 1; }
.site-footer { background: var(--blue-deep); color: rgba(255, 255, 255, .76); padding-top: 4rem; font-size: .92rem; position: relative; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .05) 1.2px, transparent 1.2px); background-size: 24px 24px; pointer-events: none; }
.site-footer .container { position: relative; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--red); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .76); text-decoration: none; transition: color .2s, padding .2s; }
.site-footer ul a:hover { color: var(--light); padding-left: 4px; }
.f-brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.f-brand img { width: 70px; height: 70px; border-radius: 50%; background: #fff; padding: 4px; flex: none; }
.f-brand .name { font-family: var(--f-head); color: #fff; font-weight: 800; font-size: 1.06rem; line-height: 1.25; }
.f-brand .name small { display: block; font-weight: 500; font-size: .8rem; color: rgba(255, 255, 255, .72); margin-top: .2rem; }
.f-motto { font-family: var(--f-deva); color: var(--light); font-size: 1rem; margin-bottom: .8rem; }
.f-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.f-contact .ico { color: var(--light); margin-top: .25rem; }
.socials { display: flex; gap: .5rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: all .25s; }
.socials a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding-block: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .84rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.footer-bottom a:hover { color: var(--light); }
.footer-accent { height: 4px; background: var(--red); }

.back-top { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 1020; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--grad-warm); color: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Scroll reveal (content stays visible without JS) ---------- */
.reveal-ready [data-reveal] { opacity: .2; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Container padding matches the widest row gutter used (g-5) so rows never overflow */
.container-xxl { --bs-gutter-x: 3rem; }
@media (max-width: 575.98px) { .container-xxl { --bs-gutter-x: 2rem; } .row.g-5 { --bs-gutter-x: 2rem; } }
@media (min-width: 1200px) { .accr-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Font Awesome 5 icon sizing ---------- */
.fas, .far, .fab { line-height: 1; }
i.ico { text-align: center; }
i.ico { width: auto; height: auto; display: inline-block; font-size: 1.05em; vertical-align: -.125em; }
.quick-item .q-ico i { font-size: 24px; }
.hl-card .hl-ico i { font-size: 26px; }
.life-card .l-badge i { font-size: 24px; }
.socials i { font-size: 17px; }
.res-tiles a i.ico { font-size: 1.6rem; width: auto; height: auto; }
.adm-panel .phone-box i.ico { font-size: 1.6rem; width: auto; height: auto; }
.cells a i.ico { font-size: 1.4rem; width: auto; height: auto; }
.g-item .zoom i { font-size: 1.3rem; }
.back-top i { font-size: 1.2rem; }
/* Hero arrows and mobile menu button use Font Awesome icons instead of Bootstrap's built-in SVGs */
.hero .hero-arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.3rem; background: rgba(13, 37, 80, .35); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .4); transition: background-color .25s, border-color .25s; }
.hero .carousel-control-prev:hover .hero-arrow, .hero .carousel-control-next:hover .hero-arrow { background: var(--red); border-color: var(--red); }
@media (max-width: 575.98px) { .hero .hero-arrow { width: 34px; height: 34px; font-size: 1rem; } }
.main-navbar .navbar-toggler { color: #fff; font-size: 1.6rem; padding: .2rem .55rem; line-height: 1; }
.main-navbar .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
