/* ==========================================================================
   EduCampus — public stylesheet
   Every colour, radius, font and spacing value below reads a CSS variable
   that the admin Appearance page writes, so the whole look is data-driven.
   ========================================================================== */

/* --------------------------------------------------------------- webfonts
   Noto Sans Bengali (SIL Open Font License) — self-hosted, so the site does
   not depend on Google Fonts being reachable.

   This is the variable font, subset to the Bangla block: one file covers
   every weight from 100 to 900, so headings get a real bold instead of a
   synthesised one. unicode-range keeps it to Bangla, letting Latin text fall
   through to the English family. */
@font-face {
    font-family: 'Noto Sans Bengali';
    src: url('../fonts/NotoSansBengali.woff2?v=1786854597') format('woff2-variations'),
         url('../fonts/NotoSansBengali.woff?v=1786854597') format('woff-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0980-09FF, U+200C-200D, U+2000-206F, U+25CC;
}

*, *::before, *::after { box-sizing: border-box; }

body.ec-body {
    margin: 0;
    font-family: var(--ec-font);
    font-size: var(--ec-font-size);
    line-height: 1.75;
    color: var(--ec-text);
    background: var(--ec-body-bg);
    -webkit-font-smoothing: antialiased;
}

body.ec-boxed { max-width: 1440px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,.08); }

h1, h2, h3, h4, h5, h6 { font-weight: var(--ec-heading-weight); color: var(--ec-heading); line-height: 1.35; }
a { color: var(--ec-link); text-decoration: none; }
a:hover { color: var(--ec-primary-dark); }
img { max-width: 100%; height: auto; }

.ec-container { width: 100%; max-width: var(--ec-container); margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------------ buttons */
.ec-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.4rem; font-weight: 600; font-size: .95rem;
    border: 2px solid transparent; border-radius: var(--ec-radius);
    cursor: pointer; transition: all .22s ease; text-align: center;
}
.ec-btn-primary { background: var(--ec-primary); color: #fff; }
.ec-btn-primary:hover { background: var(--ec-primary-dark); color: #fff; transform: translateY(-2px); }
.ec-btn-accent { background: var(--ec-accent); color: #1b1b1b; }
.ec-btn-accent:hover { background: var(--ec-accent-dark); color: #1b1b1b; }
.ec-btn-ghost { background: transparent; border-color: currentColor; color: var(--ec-primary); }
.ec-btn-ghost:hover { background: var(--ec-primary); color: #fff; }
.ec-btn-light { background: #fff; color: var(--ec-primary); }
.ec-btn-sm { padding: .4rem .9rem; font-size: .85rem; }

html[data-btn="outline"] .ec-btn-primary { background: transparent; color: var(--ec-primary); border-color: var(--ec-primary); }
html[data-btn="outline"] .ec-btn-primary:hover { background: var(--ec-primary); color: #fff; }
html[data-btn="pill"] .ec-btn { border-radius: 50rem; }
html[data-btn="soft"] .ec-btn-primary { background: rgba(var(--ec-primary-rgb), .12); color: var(--ec-primary); }
html[data-btn="soft"] .ec-btn-primary:hover { background: var(--ec-primary); color: #fff; }

/* ------------------------------------------------------------------- topbar */
.ec-topbar {
    background: var(--ec-topbar-bg); color: var(--ec-topbar-fg);
    font-size: .85rem; padding: .45rem 0;
}
.ec-topbar a { color: var(--ec-topbar-fg); opacity: .92; }
.ec-topbar a:hover { opacity: 1; color: var(--ec-accent); }
.ec-topbar-info i { margin-right: .25rem; }
.ec-social { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.14); }
.ec-social:hover { background: var(--ec-accent); color: #111 !important; }
.ec-lang-switch {
    border: 1px solid rgba(255,255,255,.35); border-radius: 50rem;
    padding: .1rem .7rem; font-weight: 600;
}
.ec-topbar-cta {
    background: var(--ec-accent); color: #1b1b1b !important;
    padding: .18rem .85rem; border-radius: 50rem; font-weight: 700;
}
.ec-topbar-cta:hover { filter: brightness(1.08); }

/* ------------------------------------------------------------------- header */
.ec-header { background: var(--ec-header-bg); color: var(--ec-header-fg); position: relative; z-index: 60; }
.ec-header.ec-sticky { position: sticky; top: 0; }

/* Variant 1 — classic banner */
.ec-header-1 .ec-masthead {
    background: linear-gradient(120deg, var(--ec-primary) 0%, var(--ec-primary-dark) 55%, var(--ec-secondary) 100%);
    color: #fff; padding: 14px 0;
}
.ec-masthead-inner { display: flex; align-items: center; gap: 18px; }
.ec-brand-logo img { width: 78px; height: 78px; object-fit: contain; }
.ec-brand-text { flex: 1; min-width: 0; text-align: center; }
.ec-site-name { margin: 0; font-size: clamp(1.3rem, 3.4vw, 2.35rem); color: #fff; letter-spacing: .3px; }
.ec-site-tagline { margin: 2px 0 0; font-size: .95rem; opacity: .9; }
.ec-site-slogan { margin: 0; font-size: .85rem; color: var(--ec-accent); font-weight: 600; }
.ec-brand-badge { text-align: center; display: grid; gap: 2px; font-size: .82rem; }
.ec-badge-line { background: rgba(255,255,255,.14); border-radius: 50rem; padding: .1rem .75rem; white-space: nowrap; }
.ec-badge-line.strong { background: var(--ec-accent); color: #191919; font-weight: 700; }

.ec-navbar { background: var(--ec-nav-bg); color: var(--ec-nav-fg); border-top: 3px solid var(--ec-accent); }
.ec-navbar-center { border-top: none; }

/* Variant 2 — single row */
.ec-header-2 { box-shadow: var(--ec-shadow); }
.ec-header2-inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.ec-brand { display: flex; align-items: center; gap: 12px; color: var(--ec-header-fg); }
.ec-brand img { width: 54px; height: 54px; object-fit: contain; }
.ec-brand strong { display: block; font-size: 1.15rem; line-height: 1.25; color: var(--ec-heading); }
.ec-brand small { display: block; font-size: .78rem; opacity: .7; }
.ec-header-2 .ec-menu-wrap { margin-left: auto; }
.ec-header-2 .ec-menu > .ec-menu-item > a { color: var(--ec-header-fg); }
.ec-header-2 .ec-menu > .ec-menu-item > a:hover,
.ec-header-2 .ec-menu > .ec-menu-item.active > a { color: var(--ec-primary); }

/* Variant 3 — centred */
.ec-header-3 .ec-header3-top { padding: 22px 0 16px; }
.ec-brand-center { display: inline-block; color: inherit; }
.ec-brand-center img { width: 68px; height: 68px; object-fit: contain; }
.ec-header-3 .ec-site-name { color: var(--ec-heading); font-size: clamp(1.3rem, 3vw, 2rem); margin: 8px 0 0; }
.ec-header-3 .ec-site-slogan { color: var(--ec-primary); }

/* ---------------------------------------------------------------- main menu */
.ec-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.ec-menu-item { position: relative; }
.ec-menu > .ec-menu-item > a {
    display: flex; align-items: center; gap: .35rem;
    padding: .8rem .78rem; color: var(--ec-nav-fg);
    font-weight: 600; font-size: .92rem; white-space: nowrap;
    border-bottom: 3px solid transparent; transition: all .2s;
}
.ec-menu > .ec-menu-item > a:hover,
.ec-menu > .ec-menu-item.active > a { background: rgba(0,0,0,.16); color: #fff; }
.ec-caret { font-size: .65rem; opacity: .85; }
/* On touch layouts the caret is its own control, so give it a real target. */
@media (max-width: 991.98px) {
    .ec-caret { margin-inline-start: auto; padding: .5rem .6rem; margin-block: -.5rem; font-size: .8rem; }
}

.ec-submenu {
    position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px;
    background: var(--ec-card-bg); list-style: none; margin: 0; padding: .4rem 0;
    border-radius: 0 0 var(--ec-radius) var(--ec-radius);
    box-shadow: 0 12px 30px rgba(15,23,42,.16);
    border-top: 3px solid var(--ec-accent);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .2s ease; z-index: 90;
}
.ec-menu-item:hover > .ec-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.ec-submenu a { display: block; padding: .5rem 1.1rem; color: var(--ec-text); font-size: .92rem; }
.ec-submenu a:hover { background: var(--ec-primary-light); color: var(--ec-primary-dark); padding-inline-start: 1.4rem; }
.ec-submenu li.active > a { color: var(--ec-primary); font-weight: 600; }

/* nav style variants */
html[data-nav="underline"] .ec-menu > .ec-menu-item > a:hover,
html[data-nav="underline"] .ec-menu > .ec-menu-item.active > a { background: transparent; border-bottom-color: var(--ec-accent); }
html[data-nav="pill"] .ec-menu > .ec-menu-item > a { margin: .35rem .15rem; padding: .45rem .95rem; border-radius: 50rem; border-bottom: none; }
html[data-nav="pill"] .ec-menu > .ec-menu-item > a:hover,
html[data-nav="pill"] .ec-menu > .ec-menu-item.active > a { background: var(--ec-accent); color: #1a1a1a; }
html[data-nav="boxed"] .ec-menu > .ec-menu-item { border-inline-end: 1px solid rgba(255,255,255,.18); }
html[data-nav="boxed"] .ec-menu > .ec-menu-item:first-child { border-inline-start: 1px solid rgba(255,255,255,.18); }

.ec-navsearch { display: flex; align-items: center; flex: none; }
.ec-navsearch input {
    border: none; border-radius: 50rem 0 0 50rem; padding: .35rem .9rem;
    font-size: .82rem; width: 132px; background: rgba(255,255,255,.92); color: #333;
}
.ec-navsearch input:focus { outline: 2px solid var(--ec-accent); }
.ec-navsearch button { border: none; background: var(--ec-accent); color: #1a1a1a; padding: .35rem .8rem; border-radius: 50rem; }
.ec-navsearch.open button { border-radius: 0 50rem 50rem 0; }
.ec-header-2 .ec-navsearch input { background: #f1f3f6; }

/* ------------------------------------------------- one-line menu on desktop
   Twelve top-level items plus a search box will not fit at 1200–1400px, so the
   menu never wraps: item spacing and type size shrink with the viewport, and
   the search collapses to its icon until the visitor clicks it. */
@media (min-width: 992px) {
    .ec-menu { flex-wrap: nowrap; }
    .ec-menu-wrap { min-width: 0; }
    .ec-menu > .ec-menu-item > a {
        padding-inline: clamp(.3rem, .82vw, .9rem);
        font-size: clamp(.78rem, .92vw, .93rem);
    }
    html[data-nav="pill"] .ec-menu > .ec-menu-item > a { padding-inline: clamp(.45rem, .9vw, .95rem); }

    .ec-navsearch input {
        width: 0; padding-inline: 0; opacity: 0; pointer-events: none;
        transition: width .25s ease, padding .25s ease, opacity .18s ease;
    }
    .ec-navsearch.open input { width: 158px; padding-inline: .9rem; opacity: 1; pointer-events: auto; }
}

.ec-burger { display: none; background: transparent; border: 2px solid currentColor; color: inherit; border-radius: 8px; font-size: 1.35rem; line-height: 1; padding: .15rem .5rem; }
.ec-header-2 .ec-burger, .ec-header-3 .ec-burger { color: var(--ec-heading); }

/* ------------------------------------------------------------ hero: slider */
.ec-hero { position: relative; background: var(--ec-secondary); overflow: hidden; }
.ec-slide {
    position: relative; display: none;
    height: clamp(260px, var(--ec-slider-h, 62vh), 720px);
    background-size: cover; background-position: center;
}
.ec-slide.active { display: block; animation: ecFade .8s ease; }
@keyframes ecFade { from { opacity: .35; } to { opacity: 1; } }
.ec-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.15)); }
.ec-slide-body { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
/* Keep slide copy clear of the prev/next arrows. */
@media (min-width: 992px) { .ec-hero .ec-container { padding-inline: 72px; } }
.ec-slide-inner { max-width: 640px; color: #fff; }
.ec-slide[data-align="center"] .ec-slide-inner { margin: 0 auto; text-align: center; }
.ec-slide[data-align="right"] .ec-slide-inner { margin-inline-start: auto; text-align: end; }
.ec-slide-title { color: #fff; font-size: clamp(1.5rem, 4vw, 3rem); margin: 0 0 .6rem; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.ec-slide-sub { font-size: clamp(.95rem, 1.6vw, 1.2rem); margin-bottom: 1.2rem; opacity: .95; }
.ec-slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.22); color: #fff; font-size: 1.3rem; backdrop-filter: blur(4px);
}
.ec-slider-nav:hover { background: var(--ec-accent); color: #111; }
.ec-slider-prev { inset-inline-start: 16px; }
.ec-slider-next { inset-inline-end: 16px; }
.ec-slider-dots { position: absolute; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.ec-slider-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; }
.ec-slider-dots button.active { background: var(--ec-accent); border-color: var(--ec-accent); }

/* hero: static banner + split */
.ec-hero-static { padding: clamp(48px, 8vw, 110px) 0; background-size: cover; background-position: center; position: relative; color: #fff; }
.ec-hero-static::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(var(--ec-secondary-rgb), .88), rgba(var(--ec-primary-rgb), .6)); }
.ec-hero-static > .ec-container { position: relative; z-index: 2; }
.ec-hero-split { background: linear-gradient(120deg, var(--ec-primary-light), var(--ec-body-bg)); padding: clamp(40px, 6vw, 84px) 0; }
.ec-hero-split h2 { font-size: clamp(1.6rem, 3.6vw, 2.7rem); }
.ec-hero-split .ec-hero-img img { border-radius: var(--ec-radius); box-shadow: var(--ec-shadow); }

/* ------------------------------------------------------------------ marquee */
.ec-marquee { display: flex; align-items: stretch; background: var(--ec-card-bg); border-block: 1px solid var(--ec-border); }
.ec-marquee-label {
    background: var(--ec-accent); color: #1a1a1a; font-weight: 700;
    padding: .55rem 1.1rem; white-space: nowrap; display: flex; align-items: center; gap: .4rem;
}
.ec-marquee-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ec-marquee-track ul { display: flex; gap: 3rem; list-style: none; margin: 0; padding: 0 1rem; white-space: nowrap; animation: ecScroll 34s linear infinite; }
.ec-marquee:hover ul { animation-play-state: paused; }
.ec-marquee-track a { color: var(--ec-text); font-weight: 500; }
.ec-marquee-track a::before { content: "\f4fc"; font-family: "bootstrap-icons"; color: var(--ec-primary); margin-inline-end: .4rem; font-size: .7rem; vertical-align: middle; }
@keyframes ecScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ----------------------------------------------------------------- sections */
.ec-section { padding: var(--ec-section-space) 0; }
.ec-section-alt { background: color-mix(in srgb, var(--ec-primary) 5%, var(--ec-body-bg)); }
.ec-section-tinted { background: linear-gradient(180deg, var(--ec-primary-light), var(--ec-body-bg)); }

.ec-section-head { margin-bottom: 2.6rem; }
.ec-section-head.center { text-align: center; }
.ec-eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--ec-primary);
    background: rgba(var(--ec-primary-rgb), .1); padding: .25rem .85rem; border-radius: 50rem;
}
.ec-section-title { font-size: clamp(1.4rem, 2.8vw, 2.1rem); margin: .6rem 0 .4rem; position: relative; }
.ec-section-head.center .ec-section-title::after {
    content: ""; display: block; width: 66px; height: 3px; margin: .7rem auto 0;
    background: linear-gradient(90deg, var(--ec-primary), var(--ec-accent)); border-radius: 3px;
}
.ec-section-sub { color: color-mix(in srgb, var(--ec-text) 78%, transparent); max-width: 640px; margin: 0 auto; }
.ec-section-head:not(.center) .ec-section-title::after {
    content: ""; display: block; width: 56px; height: 3px; margin-top: .6rem;
    background: linear-gradient(90deg, var(--ec-primary), var(--ec-accent)); border-radius: 3px;
}

/* --------------------------------------------------------------------- card */
.ec-card {
    background: var(--ec-card-bg); border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius); box-shadow: var(--ec-shadow);
    overflow: hidden; height: 100%; transition: transform .25s ease, box-shadow .25s ease;
}
.ec-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(15,23,42,.14); }
.ec-card-head {
    background: linear-gradient(90deg, var(--ec-primary), var(--ec-primary-dark));
    color: #fff; padding: .7rem 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between;
}
.ec-card-head a { color: #fff; font-size: .82rem; opacity: .9; }
.ec-card-body { padding: 1.15rem; }
.ec-thumb { aspect-ratio: 16/10; object-fit: cover; width: 100%; display: block; background: var(--ec-primary-light); }

/* notice list */
.ec-notice-list { list-style: none; margin: 0; padding: 0; }
.ec-notice-list li { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px dashed var(--ec-border); }
.ec-notice-list li:last-child { border-bottom: none; }
.ec-date-chip {
    flex: 0 0 auto; width: 54px; text-align: center; border-radius: var(--ec-radius);
    background: var(--ec-primary-light); color: var(--ec-primary-dark); padding: .3rem 0; line-height: 1.2;
}
.ec-date-chip strong { display: block; font-size: 1.15rem; }
.ec-date-chip span { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.ec-notice-title { font-weight: 600; color: var(--ec-heading); display: block; }
.ec-notice-title:hover { color: var(--ec-primary); }
.ec-notice-meta { font-size: .78rem; opacity: .7; }

/* Attachment strip on a notice/detail page */
.ec-attach {
    display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
    padding: .85rem 1rem; border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius); background: var(--ec-primary-light);
}
.ec-attach-icon { font-size: 1.4rem; color: var(--ec-primary); }

/* View / Download buttons on each notice row */
.ec-notice-actions { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; align-self: center; }
.ec-notice-actions .ec-btn { white-space: nowrap; }
.ec-btn-muted {
    background: transparent; border-color: var(--ec-border);
    color: color-mix(in srgb, var(--ec-text) 45%, transparent); cursor: not-allowed;
}
.ec-btn-muted:hover { background: transparent; }

@media (max-width: 767.98px) {
    /* Stack the row and let the buttons sit under the title, icons only. */
    .ec-notice-list li { flex-wrap: wrap; }
    .ec-notice-actions { width: 100%; justify-content: flex-end; margin-top: .4rem; }
}
@media (max-width: 420px) {
    .ec-notice-actions .ec-btn span { display: none; }
    .ec-notice-actions .ec-btn { padding: .4rem .65rem; }
}

/* news */
.ec-news-card .ec-card-body { display: flex; flex-direction: column; gap: .45rem; }
.ec-tag {
    align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; background: var(--ec-accent); color: #1a1a1a;
    padding: .1rem .6rem; border-radius: 50rem;
}
.ec-news-title { font-size: 1.05rem; margin: 0; }
.ec-news-title a { color: var(--ec-heading); }
.ec-news-title a:hover { color: var(--ec-primary); }
.ec-meta { font-size: .8rem; opacity: .72; display: flex; flex-wrap: wrap; gap: .9rem; }

/* teacher */
.ec-teacher { text-align: center; }
.ec-teacher-photo { position: relative; overflow: hidden; }
.ec-teacher-photo img { width: 100%; aspect-ratio: 1/1.08; object-fit: cover; transition: transform .4s ease; }
.ec-teacher:hover .ec-teacher-photo img { transform: scale(1.06); }
.ec-teacher-social {
    position: absolute; inset-inline: 0; bottom: -46px; display: flex; justify-content: center; gap: .5rem;
    padding: .5rem; background: rgba(var(--ec-primary-rgb), .92); transition: bottom .3s ease;
}
.ec-teacher:hover .ec-teacher-social { bottom: 0; }
.ec-teacher-social a { color: #fff; }
.ec-teacher-name { margin: .8rem 0 .1rem; font-size: 1.03rem; }
.ec-teacher-desig { font-size: .85rem; color: var(--ec-primary); font-weight: 600; }
.ec-teacher-qual { font-size: .8rem; opacity: .72; }

/* course / class */
.ec-course { display: flex; flex-direction: column; }
.ec-course-icon {
    width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--ec-radius);
    background: linear-gradient(135deg, var(--ec-primary), var(--ec-primary-dark));
    color: #fff; font-size: 1.5rem; margin-bottom: .9rem;
}
.ec-course-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.ec-chip {
    font-size: .76rem; background: var(--ec-primary-light); color: var(--ec-primary-dark);
    padding: .18rem .65rem; border-radius: 50rem; font-weight: 600;
}

/* stats */
.ec-stats { background: linear-gradient(120deg, var(--ec-primary), var(--ec-secondary)); color: #fff; }
.ec-stats .ec-stat { text-align: center; padding: 1rem .5rem; }
.ec-stat i { font-size: 2rem; color: var(--ec-accent); }
.ec-stat-value { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.2; color: #fff; }
.ec-stat-label { font-size: .92rem; opacity: .92; }

/* message / principal */
.ec-message-card { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.ec-message-photo img { width: 168px; height: 200px; object-fit: cover; border-radius: var(--ec-radius); box-shadow: var(--ec-shadow); }
.ec-message-body { flex: 1; min-width: 240px; }
.ec-quote-mark { font-size: 2.2rem; color: var(--ec-accent); line-height: 1; }
.ec-signature { font-weight: 700; color: var(--ec-primary); margin-top: .6rem; }

/* gallery */
.ec-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ec-gallery-item { position: relative; overflow: hidden; border-radius: var(--ec-radius); display: block; }
.ec-gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .45s ease; }
.ec-gallery-item:hover img { transform: scale(1.09); }
.ec-gallery-cap {
    position: absolute; inset: auto 0 0 0; padding: .8rem .7rem .55rem; color: #fff; font-size: .85rem;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
}

/* links list */
.ec-link-list { list-style: none; margin: 0; padding: 0; }
.ec-link-list a { display: flex; align-items: center; gap: .5rem; padding: .55rem .2rem; border-bottom: 1px dashed var(--ec-border); color: var(--ec-text); }
.ec-link-list a::before { content: "\f285"; font-family: "bootstrap-icons"; color: var(--ec-primary); font-size: .75rem; }
.ec-link-list a:hover { color: var(--ec-primary); padding-inline-start: .6rem; }

/* CTA */
.ec-cta { background: linear-gradient(120deg, var(--ec-secondary), var(--ec-primary)); color: #fff; }
.ec-cta h2 { color: #fff; }

/* ------------------------------------------------------------- page heading */
.ec-page-head {
    background: linear-gradient(120deg, var(--ec-primary), var(--ec-secondary));
    color: #fff; padding: 2.4rem 0 2rem;
}
.ec-page-title { color: #fff; margin: 0 0 .35rem; font-size: clamp(1.35rem, 3vw, 2.1rem); }
.ec-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; font-size: .88rem; }
.ec-crumbs li + li::before { content: "/"; opacity: .55; margin-inline-end: .5rem; }
.ec-crumbs a { color: rgba(255,255,255,.86); }
.ec-crumbs a:hover { color: var(--ec-accent); }
.ec-crumbs li[aria-current] { color: var(--ec-accent); }

.ec-main { min-height: 40vh; }
.ec-content-box {
    background: var(--ec-card-bg); border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius); padding: clamp(1.1rem, 3vw, 2.2rem); box-shadow: var(--ec-shadow);
}

/* ------------------------------------------------------------- CMS page art */
.ec-page-banner {
    width: 100%; max-height: 340px; object-fit: cover;
    border-radius: var(--ec-radius); margin-bottom: 1.5rem;
}
.ec-page-figure-top { margin: 0 0 1.5rem; }
.ec-page-figure-top img { width: 100%; border-radius: var(--ec-radius); display: block; }
.ec-page-figure-top figcaption,
.ec-page-figure figcaption {
    font-size: .85rem; text-align: center; margin-top: .5rem;
    color: color-mix(in srgb, var(--ec-text) 70%, transparent);
}

/* The side image floats so the prose wraps around it naturally. */
.ec-page-body.has-side .ec-page-figure { width: 280px; margin: 0 0 1rem; }
.ec-page-body.side-right .ec-page-figure { float: inline-end; margin-inline-start: 1.6rem; }
.ec-page-body.side-left  .ec-page-figure { float: inline-start; margin-inline-end: 1.6rem; }
.ec-page-figure img {
    width: 100%; border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow); display: block;
}
.ec-page-body::after { content: ""; display: block; clear: both; }

/* Name + designation under a principal/chairman portrait. */
.ec-profile-cap {
    margin-top: .7rem; padding: .6rem .8rem; text-align: center;
    background: var(--ec-primary-light); border-radius: var(--ec-radius);
}
.ec-profile-cap strong { display: block; color: var(--ec-primary-dark); }
.ec-profile-cap span { font-size: .82rem; opacity: .8; }

@media (max-width: 575.98px) {
    /* Floating a 280px image inside a phone column leaves unreadable ribbons
       of text, so stack it instead. */
    .ec-page-body.has-side .ec-page-figure {
        float: none; width: 100%; max-width: 260px;
        margin: 0 auto 1.2rem; }
    .ec-page-banner { max-height: 200px; }
}

.ec-prose img { border-radius: var(--ec-radius); }
/* Quill 2 writes every list as <ol> and marks bullets with data-list, so a
   bulleted list would otherwise show numbers out here. Drive the markers off
   that attribute instead, the way the editor itself does. */
.ec-prose ol { list-style: none; padding-inline-start: 1.6rem; counter-reset: ec-list; }
.ec-prose ol li { position: relative; }
.ec-prose ol li[data-list="bullet"]::before {
    content: "\2022"; position: absolute; inset-inline-start: -1.1rem;
    color: var(--ec-primary); font-weight: 700;
}
.ec-prose ol li[data-list="ordered"] { counter-increment: ec-list; }
.ec-prose ol li[data-list="ordered"]::before {
    content: counter(ec-list) "."; position: absolute; inset-inline-start: -1.6rem;
    color: var(--ec-primary); font-weight: 600;
}
/* A plain <ul>/<ol> typed by hand or pasted keeps normal markers. */
.ec-prose ul { padding-inline-start: 1.4rem; }
.ec-prose ol:not(:has(li[data-list])) { list-style: decimal; padding-inline-start: 1.4rem; }

.ec-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.ec-prose th, .ec-prose td { border: 1px solid var(--ec-border); padding: .55rem .7rem; }

/* --------------------------------------------------------------------- form */
.ec-form label { font-weight: 600; font-size: .88rem; margin-bottom: .25rem; color: var(--ec-heading); }
.ec-form .form-control, .ec-form .form-select {
    border-radius: var(--ec-radius); border: 1px solid var(--ec-border);
    padding: .58rem .85rem; font-family: inherit; font-size: .95rem;
    background: var(--ec-card-bg); color: var(--ec-text);
}
.ec-form .form-control:focus, .ec-form .form-select:focus {
    border-color: var(--ec-primary); box-shadow: 0 0 0 .2rem rgba(var(--ec-primary-rgb), .16);
}
.req::after { content: " *"; color: #d33; }
.ec-invalid { color: #d33; font-size: .8rem; }

/* --------------------------------------------------------------- data table */
.ec-table { width: 100%; border-collapse: collapse; background: var(--ec-card-bg); }
.ec-table th {
    background: var(--ec-primary); color: #fff; padding: .7rem .8rem;
    font-size: .88rem; text-align: start; font-weight: 600;
}
.ec-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--ec-border); font-size: .92rem; }
.ec-table tbody tr:hover { background: var(--ec-primary-light); }
.ec-table-wrap { overflow-x: auto; border-radius: var(--ec-radius); border: 1px solid var(--ec-border); }

/* --------------------------------------------------------------- pagination */
.ec-pager {
    display: flex; flex-direction: column; align-items: center; gap: .7rem;
    margin-top: 2rem;
}
.ec-pager-summary { font-size: .85rem; color: color-mix(in srgb, var(--ec-text) 72%, transparent); }
.ec-pager-list {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: .35rem; list-style: none; margin: 0; padding: 0;
}
.ec-pager-list li a,
.ec-pager-list li span {
    display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6rem;
    border: 1px solid var(--ec-border); border-radius: var(--ec-radius);
    background: var(--ec-card-bg); color: var(--ec-text);
    font-size: .92rem; font-weight: 600; line-height: 1;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.ec-pager-list li a:hover {
    background: var(--ec-primary); border-color: var(--ec-primary); color: #fff;
    transform: translateY(-2px);
}
.ec-pager-list li.active span {
    background: var(--ec-primary); border-color: var(--ec-primary); color: #fff;
    box-shadow: 0 4px 12px rgba(var(--ec-primary-rgb), .32);
}
.ec-pager-list li.disabled span { opacity: .38; background: transparent; }
.ec-pager-list li.gap span { border-color: transparent; background: transparent; min-width: 26px; padding: 0; }
.ec-pager-list li a:focus-visible { outline: 3px solid var(--ec-accent); outline-offset: 2px; }

/* The compact "3 / 12" chip only appears once the numbers are hidden. */
.ec-pager-compact { display: none; }
.ec-pager-compact span {
    background: var(--ec-primary); border-color: var(--ec-primary); color: #fff;
    padding: 0 1rem; letter-spacing: .04em;
}

@media (max-width: 575.98px) {
    .ec-pager-list li.num,
    .ec-pager-list li.gap { display: none; }
    .ec-pager-compact { display: block; }
    .ec-pager-list li a, .ec-pager-list li span { min-width: 38px; height: 38px; font-size: .88rem; }
}

/* ------------------------------------------------------------------- footer */
.ec-footer { background: var(--ec-footer-bg); color: var(--ec-footer-fg); padding-top: 3rem; margin-top: 3rem; }
.ec-footer h4, .ec-footer h5 { color: #fff; }
.ec-foot-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.ec-foot-brand img { width: 52px; height: 52px; object-fit: contain; }
.ec-foot-brand h4 { margin: 0; font-size: 1.12rem; }
.ec-foot-about { font-size: .9rem; opacity: .82; }
.ec-foot-title { font-size: 1rem; margin-bottom: 1rem; position: relative; padding-bottom: .55rem; }
.ec-foot-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 40px; height: 2px; background: var(--ec-accent); }
.ec-foot-list, .ec-foot-contact, .ec-foot-inline { list-style: none; margin: 0; padding: 0; }
.ec-foot-list.two-col { columns: 2; }
.ec-foot-list a { color: var(--ec-footer-fg); opacity: .82; font-size: .9rem; display: block; padding: .22rem 0; }
.ec-foot-list a:hover { color: var(--ec-accent); opacity: 1; padding-inline-start: .35rem; }
.ec-foot-contact li { display: flex; gap: .6rem; padding: .3rem 0; font-size: .9rem; opacity: .86; }
.ec-foot-contact i { color: var(--ec-accent); margin-top: .25rem; }
.ec-foot-social { display: flex; gap: .5rem; margin-top: 1rem; }
.ec-foot-social a {
    width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(255,255,255,.12); color: #fff;
}
.ec-foot-social a:hover { background: var(--ec-accent); color: #111; }
.ec-foot-map iframe { width: 100%; height: 190px; border: 0; border-radius: var(--ec-radius); }
.ec-map-placeholder { height: 190px; display: grid; place-items: center; background: rgba(255,255,255,.07); border-radius: var(--ec-radius); font-size: 2rem; }
.ec-foot-logo { width: 64px; height: 64px; object-fit: contain; }
.ec-foot-name { margin: .6rem 0 .2rem; }
.ec-foot-addr { opacity: .8; font-size: .92rem; }
.ec-foot-inline { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.3rem; margin: 1rem 0; }
.ec-foot-inline a { color: var(--ec-footer-fg); opacity: .85; font-size: .92rem; }
.ec-foot-inline a:hover { color: var(--ec-accent); }
.ec-copyright { margin-top: 2.4rem; padding: .95rem 0; background: rgba(0,0,0,.25); font-size: .85rem; }
.ec-copyright a { color: var(--ec-accent); }

/* --------------------------------------------------------------- utilities */
.ec-top {
    position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 200;
    width: 42px; height: 42px; border-radius: var(--ec-radius); border: none;
    background: var(--ec-primary); color: #fff; opacity: 0; pointer-events: none; transition: .25s;
}
.ec-top.show { opacity: 1; pointer-events: auto; }
.ec-top:hover { background: var(--ec-accent); color: #111; }

#ec-preloader { position: fixed; inset: 0; background: var(--ec-body-bg); display: grid; place-items: center; z-index: 9999; }
.ec-spinner { width: 46px; height: 46px; border: 4px solid var(--ec-primary-light); border-top-color: var(--ec-primary); border-radius: 50%; animation: ecSpin .8s linear infinite; }
@keyframes ecSpin { to { transform: rotate(360deg); } }

.ec-empty { text-align: center; padding: 2.6rem 1rem; opacity: .68; }
.ec-empty i { font-size: 2.4rem; display: block; margin-bottom: .5rem; color: var(--ec-primary); }

.ec-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.ec-reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 991.98px) {
    .ec-burger { display: inline-block; }
    .ec-menu-wrap {
        position: fixed; inset-block: 0; inset-inline-start: -300px; width: 285px; z-index: 999;
        background: var(--ec-nav-bg); overflow-y: auto; padding: 1rem 0; transition: inset-inline-start .28s ease;
        box-shadow: 6px 0 24px rgba(0,0,0,.24);
    }
    .ec-menu-wrap.open { inset-inline-start: 0; }
    .ec-menu { flex-direction: column; }
    .ec-menu > .ec-menu-item > a { padding: .7rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
    .ec-header-2 .ec-menu > .ec-menu-item > a,
    .ec-header-3 .ec-menu > .ec-menu-item > a { color: var(--ec-nav-fg); }
    .ec-submenu {
        position: static; opacity: 1; visibility: visible; transform: none; display: none;
        box-shadow: none; border-radius: 0; background: rgba(0,0,0,.2); border-top: none;
    }
    .ec-menu-item.open > .ec-submenu { display: block; }
    .ec-submenu a { color: rgba(255,255,255,.86); padding-inline-start: 2rem; }
    .ec-submenu a:hover { background: rgba(0,0,0,.25); color: #fff; }
    .ec-navsearch { display: none; }
    .ec-masthead-inner { flex-direction: column; text-align: center; gap: 10px; }
    .ec-brand-badge { flex-direction: row; display: flex; gap: 8px; }
    .ec-header-2 .ec-menu-wrap { margin-left: 0; }
    .ec-message-photo { margin: 0 auto; }
    .ec-foot-list.two-col { columns: 1; }
}

@media (max-width: 575.98px) {
    .ec-topbar { font-size: .78rem; }
    .ec-topbar-info { justify-content: center; width: 100%; }
    .ec-topbar-actions { width: 100%; justify-content: center; }
    .ec-brand-logo img { width: 60px; height: 60px; }
    .ec-marquee-label span { display: none; }
}

@media print {
    .ec-topbar, .ec-header, .ec-footer, .ec-top, .ec-page-head, .no-print { display: none !important; }
    body.ec-body { background: #fff; }
}

/* ------------------------------------------------------- accessibility tool */
.ec-a11y { position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 200; }
.ec-a11y-toggle {
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: var(--ec-secondary); color: #fff; font-size: 1.3rem; box-shadow: var(--ec-shadow);
}
.ec-a11y-toggle:hover { background: var(--ec-primary); }
.ec-a11y-panel {
    position: absolute; bottom: 52px; inset-inline-start: 0; width: 230px;
    background: var(--ec-card-bg); border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius); box-shadow: 0 12px 30px rgba(15,23,42,.18); padding: .9rem;
}
.ec-a11y-title { font-weight: 700; font-size: .9rem; margin-bottom: .6rem; color: var(--ec-heading); }
.ec-a11y-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; font-size: .85rem; }
.ec-a11y-btns { display: flex; gap: .3rem; }
.ec-a11y-btns button {
    min-width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--ec-border);
    background: var(--ec-body-bg); color: var(--ec-text); font-weight: 700; font-size: .82rem;
}
.ec-a11y-btns button:hover { background: var(--ec-primary); color: #fff; border-color: var(--ec-primary); }
.ec-a11y-reset {
    width: 100%; margin-top: .3rem; padding: .35rem; border-radius: 8px;
    border: 1px solid var(--ec-border); background: transparent; color: var(--ec-text); font-size: .82rem;
}

/* High-contrast mode: forced dark ground with amber text and visible focus. */
html.ec-contrast body.ec-body,
html.ec-contrast .ec-card,
html.ec-contrast .ec-content-box,
html.ec-contrast .ec-table { background: #000 !important; color: #ffe000 !important; }
html.ec-contrast a, html.ec-contrast .ec-notice-title, html.ec-contrast h1,
html.ec-contrast h2, html.ec-contrast h3, html.ec-contrast h4 { color: #ffe000 !important; }
html.ec-contrast .ec-card, html.ec-contrast .ec-content-box,
html.ec-contrast .ec-table td, html.ec-contrast .ec-table th { border-color: #ffe000 !important; }
/* Chrome too, or the page reads as two different sites. */
html.ec-contrast .ec-topbar,
html.ec-contrast .ec-header,
html.ec-contrast .ec-masthead,
html.ec-contrast .ec-navbar,
html.ec-contrast .ec-submenu,
html.ec-contrast .ec-menu-wrap,
html.ec-contrast .ec-page-head,
html.ec-contrast .ec-footer,
html.ec-contrast .ec-copyright,
html.ec-contrast .ec-section-alt,
html.ec-contrast .ec-section-tinted,
html.ec-contrast .ec-stats,
html.ec-contrast .ec-cta,
html.ec-contrast .ec-card-head,
html.ec-contrast .ec-marquee,
html.ec-contrast .ec-hero-split { background: #000 !important; background-image: none !important; color: #ffe000 !important; }
html.ec-contrast .ec-topbar a,
html.ec-contrast .ec-menu > .ec-menu-item > a,
html.ec-contrast .ec-submenu a,
html.ec-contrast .ec-crumbs a,
html.ec-contrast .ec-foot-list a,
html.ec-contrast .ec-page-title,
html.ec-contrast .ec-site-name,
html.ec-contrast .ec-stat-value,
html.ec-contrast .ec-card-head a { color: #ffe000 !important; }
html.ec-contrast .ec-navbar,
html.ec-contrast .ec-card-head,
html.ec-contrast .ec-page-head { border-color: #ffe000 !important; }
html.ec-contrast .ec-menu > .ec-menu-item > a:hover,
html.ec-contrast .ec-menu > .ec-menu-item.active > a { background: #ffe000 !important; color: #000 !important; }
html.ec-contrast .ec-marquee-label,
html.ec-contrast .ec-topbar-cta,
html.ec-contrast .ec-chip,
html.ec-contrast .ec-tag { background: #ffe000 !important; color: #000 !important; }
html.ec-contrast .form-control,
html.ec-contrast .form-select { background: #000 !important; color: #ffe000 !important; border-color: #ffe000 !important; }
html.ec-contrast img { filter: grayscale(1) contrast(1.25); }
html.ec-contrast .ec-btn { background: #ffe000 !important; color: #000 !important; border-color: #ffe000 !important; }
html.ec-contrast :focus-visible { outline: 3px solid #ffe000 !important; outline-offset: 2px; }

@media print { .ec-a11y { display: none !important; } }
