/* Feni Public School & Nurani Madrasa — brand layer on top of the Edulia theme.
   Palette is taken from the logo: navy, cyan, red, yellow. */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600&family=Noto+Serif+Bengali:wght@600;700&display=swap');

:root {
    --fp-teal: #16167a;
    --fp-teal-deep: #0b0b4a;
    --fp-teal-soft: #2b2ba3;
    --fp-gold: #f2c200;
    --fp-gold-soft: #fff6c9;
    --fp-maroon: #d52027;
    --fp-mist: #eef0fb;
    --fp-ink: #1a1a3d;
    --fp-line: #d6d9f0;
}

body, input, textarea, select, button { font-family: 'Hind Siliguri', 'Inter', sans-serif; }
/* Link and heading colours apply to the home content only; header and footer take the design variables at the end. */
.sec-text-editor--raw { color: var(--fp-ink); }
.sec-text-editor--raw :is(h1, h2, h3, h4, h5, h6) { font-family: 'Noto Serif Bengali', 'Hind Siliguri', serif; color: var(--fp-teal); line-height: 1.35; }
.sec-text-editor--raw a { color: var(--fp-teal); }
.sec-text-editor--raw a:hover { color: var(--fp-maroon); }
::selection { background: var(--fp-gold); color: var(--fp-teal-deep); }
:focus-visible { outline: 3px solid var(--fp-gold); outline-offset: 2px; }

/* ---------- top bar + main nav ---------- */
.heading_sub { background: var(--fp-teal-deep) !important; }
.heading_sub a, .heading_sub_left a, .heading_sub_right a { color: #fff; }
.heading_sub a:hover { color: var(--fp-gold); }
.heading_main { background: #fff; border-bottom: 4px solid var(--fp-gold); border-radius: 14px; box-shadow: 0 10px 30px rgba(11, 11, 74, .18); }
.heading_main_logo img, .heading_logo img { height: 74px !important; max-height: none !important; width: auto !important; object-fit: contain; }
.heading_main_menu_list_link { color: var(--fp-teal) !important; font-weight: 600; position: relative; }
.heading_main_menu_list_link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--fp-gold); transform: scaleX(0); transition: transform .2s ease; }
.heading_main_menu_list:hover > .heading_main_menu_list_link::after { transform: scaleX(1); }
.heading_main_menu_list:hover > .heading_main_menu_list_link { color: var(--fp-maroon) !important; }
.heading_main_menu_list_dropdown { border-top: 3px solid var(--fp-gold); border-radius: 0 0 10px 10px; }
.heading_main_menu_list_dropdown li a:hover { color: var(--fp-maroon) !important; background: var(--fp-gold-soft); }

/* ---------- buttons ---------- */
.theme_btn, .site_btn, .boxed_btn, a.theme_btn, button.theme_btn {
    background: var(--fp-gold) !important; color: var(--fp-teal-deep) !important; border: 2px solid var(--fp-gold) !important;
    border-radius: 999px !important; font-weight: 600; padding: 10px 26px; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.theme_btn:hover, .site_btn:hover, .boxed_btn:hover { background: var(--fp-teal) !important; border-color: var(--fp-teal) !important; color: #fff !important; }
.site_btn::after, .boxed_btn::after, .site_btn_border::after { background: transparent !important; }
.input-control-input[type=submit], .contacts_form .input-control-input[type=submit] {
    background: var(--fp-teal) !important; border-color: var(--fp-teal) !important; color: #fff !important; border-radius: 999px; font-weight: 600;
}
.input-control-input[type=submit]:hover { background: var(--fp-gold) !important; border-color: var(--fp-gold) !important; color: var(--fp-teal-deep) !important; }
.input-control-input { border-radius: 10px; background: var(--fp-mist); }
.input-control-input:focus { border-color: var(--fp-teal) !important; box-shadow: 0 0 0 3px rgba(242, 194, 0, .25); }

/* ---------- section titles ---------- */
.section_title_meta { color: var(--fp-maroon) !important; font-weight: 600; letter-spacing: 0; padding-left: 36px; position: relative; display: inline-block; }
.section_title_meta::before { content: ''; position: absolute; left: 0; top: 50%; width: 26px; height: 4px; border-radius: 2px; background: var(--fp-gold); transform: translateY(-50%); }
.text-center .section_title_meta { padding-left: 0; padding-bottom: 12px; }
.text-center .section_title_meta::before { left: 50%; top: auto; bottom: 0; transform: translateX(-50%); }
.section_title h2, .section_title h3 { color: var(--fp-teal) !important; }

/* ---------- page header (breadcrumb) ---------- */
.bradcrumb_area {
    background-image: linear-gradient(120deg, rgba(11, 11, 74, .96), rgba(22, 22, 122, .9)), url('/public/uploads/feni/logo.png') !important;
    background-size: cover; background-position: center; position: relative; border-bottom: 5px solid var(--fp-gold);
}
.bradcrumb_area h1, .bradcrumb_area h2, .bradcrumb_area h3, .bradcrumb_area a, .bradcrumb_area li, .bradcrumb_area span { color: #fff !important; }
.bradcrumb_area a:hover { color: var(--fp-gold) !important; }
.bradcrumb_area_inner h2, .bradcrumb_area_inner h1 { font-family: 'Noto Serif Bengali', serif; }

/* page heading + body text blocks */
.page_heading_title, .pb-themesection > .container > h2 { color: var(--fp-teal); }
.feni-text h3 { position: relative; padding-bottom: 12px; margin: 34px 0 18px; }
.feni-text h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--fp-gold); }
.feni-text p { max-width: 78ch; }
.feni-text table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--fp-line); border-radius: 12px; overflow: hidden; }
.feni-text table th { background: var(--fp-mist); color: var(--fp-teal); font-weight: 600; }
.feni-text table th, .feni-text table td { padding: 12px 16px; border-bottom: 1px solid var(--fp-line); }
.feni-text table tr:last-child th, .feni-text table tr:last-child td { border-bottom: 0; }
.feni-text blockquote { background: var(--fp-gold-soft); border-left: 5px solid var(--fp-gold) !important; border-radius: 0 12px 12px 0; padding: 16px 22px !important; color: var(--fp-teal-deep); }
.feni-text ul li::marker { color: var(--fp-gold); }

/* feature / division cards (Academics) */
.fp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.fp-card { background: #fff; border: 1px solid var(--fp-line); border-top: 5px solid var(--fp-gold); border-radius: 4px 4px 18px 18px; padding: 24px; box-shadow: 0 8px 22px rgba(22, 22, 122, .08); }
.fp-card h4 { color: var(--fp-teal); margin: 0 0 8px; }
.fp-card p { margin: 0; }
.fp-card:nth-child(3n+2) { border-top-color: var(--fp-teal); }
.fp-card:nth-child(3n+3) { border-top-color: var(--fp-maroon); }
.fp-classes { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.fp-classes li { background: var(--fp-teal); color: #fff; border-radius: 999px 999px 14px 14px; padding: 16px 30px 12px; font-family: 'Noto Serif Bengali', serif; font-weight: 700; box-shadow: inset 0 -4px 0 var(--fp-gold); }

/* ---------- home hero ---------- */
.feni-hero { position: relative; margin-top: -110px; padding: 190px 0 150px; background: var(--fp-teal-deep); overflow: hidden; color: #fff; }
.feni-hero::before {
    content: ''; position: absolute; inset: 0; opacity: .5;
    background:
        radial-gradient(circle at 20% 120%, transparent 0 140px, rgba(255, 255, 255, .09) 141px 143px, transparent 144px) 0 0 / 220px 110px,
        radial-gradient(circle at 70% 120%, transparent 0 140px, rgba(255, 255, 255, .09) 141px 143px, transparent 144px) 0 0 / 220px 110px;
}
.feni-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--fp-gold); }
.feni-hero .container { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.feni-hero__kicker { margin: 0 0 18px; color: var(--fp-gold); font-weight: 600; font-size: 18px; }
.feni-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.3; margin: 0 0 20px; }
.feni-hero__lead { max-width: 56ch; font-size: 19px; line-height: 1.8; color: rgba(255, 255, 255, .88); margin: 0 0 30px; }
.feni-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.feni-btn { display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--fp-gold); transition: background .2s, color .2s; }
.feni-btn--gold { background: var(--fp-gold); color: var(--fp-teal-deep) !important; }
.feni-btn--gold:hover { background: #fff; border-color: #fff; }
.feni-btn--ghost { color: #fff !important; }
.feni-btn--ghost:hover { background: var(--fp-gold); color: var(--fp-teal-deep) !important; }
.feni-hero__divisions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.feni-hero__divisions li { border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 6px 16px; font-size: 15px; color: #fff; }
.feni-hero__art { position: relative; display: flex; justify-content: center; }
.feni-hero__art::before { content: ''; position: absolute; inset: -26px 6% 24px 6%; border: 3px solid var(--fp-gold); border-radius: 999px 999px 24px 24px; }
.feni-hero__art img { position: relative; width: min(340px, 100%); background: #fff; border-radius: 22px; padding: 12px; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }

/* notice board (home) */
.notice-section .noticeContent { background: var(--fp-teal) !important; border-top: 5px solid var(--fp-gold); border-radius: 18px; box-shadow: 0 18px 40px rgba(11, 11, 74, .28); }
.notice-board-title, .notice-view-all, .notice-view-all a { color: #fff !important; }
.notice-view-all:hover, .notice-view-all a:hover { color: var(--fp-gold) !important; }
.noticeboard_inner_item, .notification-container > * { border-radius: 10px; }
.notice-section .noticeContent .notification-container a { color: #fff !important; }
.notice-section .noticeContent [class*="date"], .notice-section .noticeContent .badge { background: var(--fp-gold) !important; color: var(--fp-teal-deep) !important; }

/* about block: image in an arch */
.about_us_img_inner img, .about_us_img img { display: block; width: 100%; height: auto; border-radius: 999px 999px 18px 18px; box-shadow: 0 0 0 8px #fff, 0 0 0 11px var(--fp-gold); }
.about_us_inner h2 { color: var(--fp-teal); font-size: clamp(26px, 3.2vw, 40px); }
.about_us_inner_call a, .about_us_inner_call i, .about_us_inner_call span { color: var(--fp-maroon) !important; }
.about_us .far.fa-check, .about_us .fa-check { color: var(--fp-gold) !important; }


/* gallery tiles: arch-topped photo, teal caption with a gold rule */
.gallery_item { filter: drop-shadow(0 10px 18px rgba(22, 22, 122, .16)); }
.gallery_item_img { border-radius: 999px 999px 0 0; }
.gallery_item_inner { background-color: var(--fp-teal) !important; border-top: 4px solid var(--fp-gold); border-radius: 0 0 16px 16px; text-align: center; }
.gallery_item_inner h4 { color: #fff !important; font-family: 'Noto Serif Bengali', serif; }
.gallery_item:hover h4 { color: var(--fp-gold) !important; }

/* principal message (home) */
.fp-principal { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; background: var(--fp-mist); border-left: 6px solid var(--fp-gold); border-radius: 18px; padding: 40px 44px; margin: 60px 0; }
.fp-principal img { width: 220px; height: 260px; object-fit: cover; border-radius: 999px 999px 16px 16px; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--fp-gold); }
.fp-principal h2 { margin: 0 0 10px; }
.fp-principal blockquote { font-family: 'Noto Serif Bengali', serif; font-size: 21px; color: var(--fp-teal); margin: 0 0 14px; padding: 0; border: 0; }
.fp-principal p { margin: 0 0 8px; max-width: 70ch; line-height: 1.8; }
.fp-principal .theme_btn { margin-top: 14px; display: inline-block; }
@media (max-width: 767px) { .fp-principal { grid-template-columns: 1fr; padding: 28px 22px; justify-items: center; text-align: center; } }

/* blog */
.blog_item_inner { border-radius: 16px; overflow: hidden; border: 1px solid var(--fp-line); }
.blog_item_img img { border-radius: 0; }
.blog_item_meta, .blog_item_meta * { color: var(--fp-maroon); }
.blog_item_readmore, .blog_item a.read_more { color: var(--fp-teal); }
.blog_item_readmore:hover { color: var(--fp-maroon) !important; border-color: var(--fp-maroon) !important; }

/* tables (result) */
table.dataTable thead th { background: var(--fp-teal); color: #fff; }

/* ---------- footer ---------- */
.pb-footer, .pb-footer > *, .footer, .footer_area { background-color: var(--fp-teal-deep) !important; }
.footer-item-logo img { background: #fff; border-radius: 14px; padding: 6px; max-height: 96px; width: auto; }
.footer-item h4, .footer-item h5, .footer-item .footer-item-title { color: var(--fp-gold) !important; font-family: 'Noto Serif Bengali', serif; }
.footer-item, .footer-item p, .footer-item-links a { color: rgba(255, 255, 255, .86) !important; }
.footer-item-links a:hover { color: var(--fp-gold) !important; }
.footer_copyright, .footer_copyright_inner { background: #011f2e !important; border-top: 3px solid var(--fp-gold); }
.footer_copyright_inner, .footer_copyright_inner a, .footer_copyright_inner p { color: rgba(255, 255, 255, .8) !important; }
.backtop { background: var(--fp-gold) !important; color: var(--fp-teal-deep) !important; }

/* ---------- small screens ---------- */
@media (max-width: 991px) {
    .feni-hero { margin-top: -70px; padding: 130px 0 90px; }
    .feni-hero .container { grid-template-columns: 1fr; gap: 40px; }
    .feni-hero__art { order: -1; }
    .feni-hero__art img { width: 220px; }
    .heading_main { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* sizing fixes found in review */
.footer-item-logo img { height: 110px !important; width: auto !important; max-height: none !important; }
.heading_main_logo, .heading_logo { display: flex; align-items: center; }
.heading_main_logo img, .heading_logo img, .heading_main img { height: 74px !important; width: auto !important; }
.notice-section .noticeContent { padding-bottom: 28px; min-height: 0 !important; height: auto !important; }
.heading_main_menu_list_link { font-size: 17px; padding-left: 14px; padding-right: 14px; }
.bradcrumb_area::before { background: linear-gradient(120deg, rgba(11, 11, 74, .93), rgba(22, 22, 122, .82)) !important; opacity: 1 !important; }
.bradcrumb_area_inner h1, .bradcrumb_area_inner h1 span { color: #fff !important; }
.feni-text p { margin: 0 0 1.1em; line-height: 1.95; }
.footer-item-logo { width: auto !important; height: auto !important; overflow: visible !important; display: inline-block; }
.footer-item-logo img { width: auto !important; height: 110px !important; object-position: left; }
[class*="readmore"], [class*="read_more"] { color: var(--fp-teal) !important; border-color: var(--fp-gold) !important; }
[class*="readmore"]::after, [class*="read_more"]::after { background-color: var(--fp-gold) !important; }
.blog_item .fa-plus-circle, .noticeboard_inner_item .fa-plus-circle { color: var(--fp-gold); }
.footer_copyright_inner { background: transparent !important; border-top: 0 !important; }
.footer_copyright_inner::before, .footer_copyright_inner::after { display: none !important; }

/* footer copyright bar: one full-width strip */
.footer_copyright { margin-top: 0 !important; background: #011f2e !important; border-top: 4px solid var(--fp-gold) !important; }
.footer_copyright .container { padding-top: 22px !important; padding-bottom: 22px !important; }
.footer_copyright .container::before { display: none !important; }
.footer_copyright .row { align-items: center; }
.footer_copyright_inner { padding: 0 !important; }
.footer_copyright_inner p { margin: 0; }
.footer_copyright_social { margin: 0; justify-content: flex-end; }
.footer_copyright_social_list_link { color: #fff !important; }
.footer_copyright_social_list_link:hover { color: var(--fp-gold) !important; }
@media (max-width: 767px) { .footer_copyright .text-end { text-align: left !important; margin-top: 10px; } }
.pb-footer > section:first-of-type { padding-bottom: 50px !important; background-color: var(--fp-teal-deep) !important; }
.pb-footer > section:last-of-type { padding: 0 !important; background-color: #011f2e !important; border-top: 4px solid var(--fp-gold); }
.pb-footer > section:last-of-type .footer_copyright { border-top: 0 !important; background: transparent !important; }

/* data tables (result, lists): readable header on teal */
table.dataTable thead th, table.dataTable thead td, table.dataTable thead th *, .dataTable thead tr th, table thead tr th { background-color: var(--fp-teal) !important; color: #fff !important; font-weight: 600; border-bottom: 3px solid var(--fp-gold) !important; }
table.dataTable thead .sorting::before, table.dataTable thead .sorting::after, table.dataTable thead .sorting_asc::before, table.dataTable thead .sorting_desc::after { color: var(--fp-gold) !important; opacity: .9; }
table.dataTable tbody tr:nth-child(even) td { background-color: var(--fp-mist); }
table.dataTable tbody tr:hover td { background-color: var(--fp-gold-soft); }
table.dataTable tbody td { color: var(--fp-ink); }
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: var(--fp-teal) !important; color: #fff !important; border-color: var(--fp-teal) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--fp-gold-soft) !important; color: var(--fp-teal) !important; border-color: var(--fp-gold) !important; }

/* feature strip: three equal cards, one accent each, no stray borders */
.feature { padding: 10px 0 30px; }
.feature .container::before { display: none !important; }
.feature .row > [class*="col-"] { padding-top: 12px; padding-bottom: 12px; }
.feature_item, .feature .col-md-4:last-child .feature_item { position: relative; height: 100%; background: #fff; border: 1px solid var(--fp-line) !important; border-radius: 4px 4px 16px 16px; padding: 30px 28px 26px !important; box-shadow: 0 8px 22px rgba(22, 22, 122, .08); display: block; }
.feature_item::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 5px; border-radius: 4px 4px 0 0; background: var(--fp-gold); }
.feature .col-md-4:nth-child(2) .feature_item::before { background: var(--fp-teal); }
.feature .col-md-4:nth-child(3) .feature_item::before { background: var(--fp-maroon); }
.feature_item_left:empty { display: none !important; }
.feature_item_right { padding-left: 0 !important; }
.feature_item_inner h4 { color: var(--fp-teal); font-size: 20px; line-height: 1.5; margin-bottom: 6px; }
.feature_item_inner p { margin: 0; color: var(--fp-ink); }
@media (max-width: 767px) { .feature_item, .feature .col-md-4:last-child .feature_item { border: 1px solid var(--fp-line) !important; } }

/* ---------- facilities page ---------- */
.fp-facilities { padding: 70px 0 30px; }
.fp-intro { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.fp-intro h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 14px; }
.fp-intro h2::after { content: ''; display: block; width: 72px; height: 5px; border-radius: 3px; background: var(--fp-gold); margin: 16px auto 0; }
.fp-intro p { color: #4a5a63; font-size: 18px; line-height: 1.9; margin: 0; }
.fp-facility { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 88px; }
.fp-facility:nth-of-type(even) .fp-facility__media { order: 2; }
.fp-facility__media { position: relative; }
.fp-facility__media img { display: block; width: 100%; height: 440px; object-fit: cover; object-position: center 30%; border-radius: 999px 999px 20px 20px; box-shadow: 0 0 0 8px #fff, 0 0 0 11px var(--fp-gold), 0 22px 44px rgba(11, 11, 74, .22); }
.fp-facility__body h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 16px; }
.fp-facility__body p { font-size: 18px; line-height: 1.95; margin: 0; color: var(--fp-ink); }
.fp-facility__body h3::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--fp-gold); margin-bottom: 16px; }
.fp-facility:nth-of-type(3n+2) .fp-facility__body h3::before { background: var(--fp-teal); }
.fp-facility:nth-of-type(3n+3) .fp-facility__body h3::before { background: var(--fp-maroon); }
.fp-cta { margin: 20px 0 80px; padding: 44px 48px; border-radius: 20px; background: var(--fp-teal); border-bottom: 6px solid var(--fp-gold); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.fp-cta h3 { color: #fff; margin: 0 0 6px; }
.fp-cta p { color: rgba(255, 255, 255, .85); margin: 0; }
@media (max-width: 991px) {
    .fp-facility { grid-template-columns: 1fr; gap: 28px; margin-bottom: 60px; }
    .fp-facility:nth-of-type(even) .fp-facility__media { order: 0; }
    .fp-facility__media { margin: 0 11px; }
    .fp-facility__media img { height: 300px; }
    .fp-cta { padding: 30px 24px; }
}

/* header logo: round badge with a gold ring */
.heading_main_logo img, .heading_logo img, .heading_main img { width: 78px !important; height: 78px !important; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid var(--fp-gold); box-shadow: 0 6px 16px rgba(11, 11, 74, .22); }

/* ---------- responsive + notice-board pass ---------- */
.fp-facilities { padding-left: 15px; padding-right: 15px; }
.about_us_img_inner { height: auto !important; width: 100%; max-width: 505px; }
.about_us_img_inner img, .about_us_img img { aspect-ratio: 505 / 615; height: auto !important; object-fit: cover; }
@media (max-width: 991px) {
    .about_us .col-lg-5 { margin-bottom: 48px; }
    .about_us_img_inner { width: calc(100% - 22px); margin-left: 11px; margin-right: 11px; }
    .heading_main_logo img, .heading_logo img { width: 66px !important; height: 66px !important; }
    .bradcrumb_area { padding-top: 56px !important; padding-bottom: 36px !important; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .heading_main_menu_list_link { font-size: 15px; padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 575px) {
    .feni-text table { display: block; overflow-x: auto; }
    .fp-cta { padding: 28px 22px; }
    .fp-facility__media img { height: 280px; }
    .fp-principal { padding: 26px 18px; }
}

/* notice-board page */
.noticeboard_inner { border: 1px solid var(--fp-line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 10px 28px rgba(22, 22, 122, .1); }
.noticeboard_inner_head { background: var(--fp-teal) !important; border-bottom: 4px solid var(--fp-gold); }
.noticeboard_inner_head, .noticeboard_inner_head * { color: #fff !important; font-family: 'Noto Serif Bengali', serif; }
.noticeboard_inner_item_title, .noticeboard_inner_item_title a { color: var(--fp-teal) !important; font-family: 'Noto Serif Bengali', serif; }
.noticeboard_inner_item a.site_btn_border { background: transparent !important; color: var(--fp-teal) !important; border: 2px solid var(--fp-gold) !important; border-radius: 999px !important; padding: 8px 20px; font-size: 14px; }
.noticeboard_inner_item a.site_btn_border:hover { background: var(--fp-gold) !important; color: var(--fp-teal-deep) !important; }
.noticeboard_inner_item a.site_btn_border i { color: var(--fp-gold); }
.feni-text td, .feni-text th, .feni-text p { overflow-wrap: anywhere; }
@media (max-width: 575px) { .feni-text table th { width: 38% !important; } }

/* Bengali digits (০-৯) everywhere on the site: Hind Siliguri and the theme font draw them badly, so those
   families get the digits from Noto Sans Bengali (self-hosted subset in fonts/). Letters are unchanged. */
@font-face { font-family: 'Hind Siliguri'; font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+09E6-09EF; src: url('fonts/bn-digits-400.ttf') format('truetype'); }
@font-face { font-family: 'Hind Siliguri'; font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+09E6-09EF; src: url('fonts/bn-digits-500.ttf') format('truetype'); }
@font-face { font-family: 'Hind Siliguri'; font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+09E6-09EF; src: url('fonts/bn-digits-600.ttf') format('truetype'); }
@font-face { font-family: 'Hind Siliguri'; font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+09E6-09EF; src: url('fonts/bn-digits-700.ttf') format('truetype'); }
@font-face { font-family: 'Eudoxus Sans'; font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+09E6-09EF; src: url('fonts/bn-digits-400.ttf') format('truetype'); }
@font-face { font-family: 'Eudoxus Sans'; font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+09E6-09EF; src: url('fonts/bn-digits-500.ttf') format('truetype'); }
@font-face { font-family: 'Eudoxus Sans'; font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+09E6-09EF; src: url('fonts/bn-digits-600.ttf') format('truetype'); }
@font-face { font-family: 'Eudoxus Sans'; font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+09E6-09EF; src: url('fonts/bn-digits-700.ttf') format('truetype'); }

/* ---------- plain (no photo) principal block + logo art ---------- */
.fp-principal.is-plain { grid-template-columns: 1fr; }
.feni-hero__art img { object-fit: contain; }
.fp-table-wrap { overflow-x: auto; }

/* The school logo is used as the picture for the about block, albums and posts until real photos are uploaded:
   show it whole instead of cropping its lettering. */
.about_us_img_inner img, .about_us_img img { aspect-ratio: auto !important; object-fit: contain !important; border-radius: 22px; background: #fff; padding: 26px; }
.gallery_item_img img, .blog_item img, .news_item img, .single_blog img, [class*="blog"] .img img, [class*="news"] img { object-fit: contain !important; background: #fff; }

/* ===== v2: no-photo layout (the logo is not a post/album picture) ===== */
/* Posts and blog list: text cards, no picture. */
.blog_item_img, .blog_card_wrapper_img { display: none !important; }
.blog_item { background: #fff; border: 1px solid var(--fp-line); border-top: 5px solid var(--fp-gold); border-radius: 6px 6px 18px 18px; box-shadow: 0 12px 28px rgba(11, 11, 74, .08); height: 100%; }
.col-lg-4:nth-child(3n+2) > .blog_item { border-top-color: var(--fp-teal); }
.col-lg-4:nth-child(3n+3) > .blog_item { border-top-color: var(--fp-maroon); }
.blog_item_inner { padding: 26px 26px 24px !important; }
.blog_item_title { font-family: 'Noto Serif Bengali', serif; font-size: 20px; line-height: 1.6; display: block; margin: 6px 0 14px; }
.blog_card_wrapper { background: #fff; border: 1px solid var(--fp-line); border-left: 6px solid var(--fp-gold); border-radius: 6px 18px 18px 6px; padding: 28px 30px; margin-bottom: 26px; box-shadow: 0 10px 26px rgba(11, 11, 74, .06); }
.blog_card_wrapper:nth-child(3n+2) { border-left-color: var(--fp-teal); }
.blog_card_wrapper:nth-child(3n+3) { border-left-color: var(--fp-maroon); }
.blog_card_wrapper_content p:not(.blog_card_wrapper_content_meta) { margin: 8px 0 14px; }

/* Albums: small emblem tile instead of a huge cropped picture. */
.gallery_item_img { background: var(--fp-mist); border-radius: 18px 18px 0 0; overflow: hidden; }
.gallery_item_img img { height: 190px !important; width: 100% !important; object-fit: contain !important; padding: 26px; background: var(--fp-mist) !important; border-radius: 0 !important; box-shadow: none !important; }

/* Home: facts strip */
.fp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 70px 0 0; }
.fp-stats + p { margin-top: 34px !important; }
.fp-stat { background: #fff; border: 1px solid var(--fp-line); border-bottom: 5px solid var(--fp-gold); border-radius: 18px 18px 6px 6px; padding: 28px 22px; text-align: center; box-shadow: 0 10px 26px rgba(11, 11, 74, .07); }
.fp-stat:nth-child(2) { border-bottom-color: var(--fp-teal); }
.fp-stat:nth-child(3) { border-bottom-color: var(--fp-maroon); }
.fp-stat strong { display: block; font-family: 'Noto Serif Bengali', serif; font-size: 44px; line-height: 1.2; color: var(--fp-teal); }
.fp-stat span { display: block; margin-top: 8px; color: var(--fp-ink); font-size: 16px; line-height: 1.6; }

/* Home: tighter notice box and about block */
.notice-section .noticeContent { min-height: 0 !important; height: auto !important; padding-bottom: 34px !important; }
.about_us_img_inner { max-width: 400px !important; margin: 0 auto; }
.about_us_img_inner img, .about_us_img img { padding: 40px !important; border: 1px solid var(--fp-line); box-shadow: 0 14px 34px rgba(11, 11, 74, .10) !important; }

/* Mobile: nothing may be wider than the screen */
html, body { overflow-x: hidden; }
.feni-hero .container { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.feni-hero__copy { min-width: 0; }
@media (max-width: 991px) {
    .feni-hero .container { grid-template-columns: minmax(0, 1fr); }
    .fp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
}
@media (max-width: 575px) {
    .feni-hero { padding: 120px 0 70px; }
    .feni-hero .container { padding-left: 18px; padding-right: 18px; }
    .feni-hero h1 { font-size: 28px; overflow-wrap: anywhere; }
    .feni-hero__lead { font-size: 16px; }
    .feni-hero__actions .feni-btn { width: 100%; text-align: center; }
    .fp-stats { grid-template-columns: 1fr; }
    .fp-stat strong { font-size: 36px; }
    .fp-cta { padding: 26px 20px; }
    .feni-text { padding-left: 4px; padding-right: 4px; }
}

/* ===== v3: home layout blocks ===== */
.fp-sec { padding: 84px 0; }
.fp-sec--mist { background: var(--fp-mist); }
.fp-sec--navy { background: var(--fp-teal-deep); color: #fff; position: relative; }
.fp-sec--navy::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--fp-gold); }
.fp-sec-head { text-align: center; max-width: 780px; margin: 0 auto 46px; }
.fp-sec-head > span { display: inline-block; color: var(--fp-maroon); font-weight: 600; padding: 0 0 12px; position: relative; }
.fp-sec-head > span::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 46px; height: 4px; border-radius: 2px; background: var(--fp-gold); transform: translateX(-50%); }
.fp-sec-head h2 { font-size: clamp(26px, 3.2vw, 40px); margin: 8px 0 0; }
.fp-sec-head--left { text-align: left; margin: 0 0 22px; max-width: none; }
.fp-sec-head--left > span::after { left: 0; transform: none; }
.fp-sec-head--light h2 { color: #fff !important; }
.fp-sec-head--light > span { color: var(--fp-gold) !important; }
.fp-sec-head--light p { color: rgba(255, 255, 255, .8); margin: 14px 0 0; }

/* hero overlap: quick facts bar */
.feni-hero { padding-bottom: 200px; }
.fp-quick-wrap { position: absolute !important; left: 0; right: 0; bottom: -56px; z-index: 3; display: block !important; }
.fp-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: 20px; border-bottom: 6px solid var(--fp-gold); box-shadow: 0 24px 50px rgba(11, 11, 74, .25); overflow: hidden; }
.fp-quick > div { padding: 26px 22px; text-align: center; border-right: 1px solid var(--fp-line); }
.fp-quick > div:last-child { border-right: 0; }
.fp-quick strong { display: block; font-family: 'Noto Serif Bengali', serif; font-size: 38px; line-height: 1.2; color: var(--fp-teal); }
.fp-quick span { display: block; margin-top: 6px; color: var(--fp-ink); font-size: 15px; line-height: 1.5; }

/* two streams */
.fp-streams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 10px; }
.fp-stream { position: relative; border-radius: 24px; padding: 40px 38px 34px; background: #fff; border: 1px solid var(--fp-line); box-shadow: 0 18px 40px rgba(11, 11, 74, .08); overflow: hidden; }
.fp-stream::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--fp-teal); }
.fp-stream--nurani::before { background: var(--fp-maroon); }
.fp-stream__tag { display: inline-block; background: var(--fp-gold-soft); color: var(--fp-teal-deep); border-radius: 999px; padding: 5px 16px; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.fp-stream h3 { font-size: 28px; margin: 0 0 12px; }
.fp-stream p { margin: 0 0 18px; line-height: 1.85; }
.fp-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.fp-tags li { border: 1px solid var(--fp-line); background: var(--fp-mist); border-radius: 999px; padding: 5px 14px; font-size: 14px; color: var(--fp-teal); }
.fp-more { font-weight: 600; color: var(--fp-maroon); }

/* mission split */
.fp-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.fp-split__lead p { line-height: 1.9; }
.fp-mission { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fp-mission > div { background: #fff; border-radius: 18px; padding: 26px 24px 24px; border: 1px solid var(--fp-line); position: relative; box-shadow: 0 10px 26px rgba(11, 11, 74, .06); }
.fp-mission b { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: var(--fp-gold); color: var(--fp-teal-deep); font-weight: 700; margin-bottom: 12px; }
.fp-mission > div:nth-child(even) b { background: var(--fp-teal); color: #fff; }
.fp-mission h4 { font-size: 18px; margin: 0 0 8px; }
.fp-mission p { margin: 0; line-height: 1.75; font-size: 15.5px; }

/* class ladder */
.fp-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; align-items: end; }
.fp-ladder li { background: var(--fp-teal); color: #fff; border-radius: 16px 16px 6px 6px; padding: 18px 10px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; min-height: 120px; justify-content: flex-end; }
.fp-ladder li:nth-child(2) { min-height: 136px; } .fp-ladder li:nth-child(3) { min-height: 152px; } .fp-ladder li:nth-child(4) { min-height: 168px; }
.fp-ladder li:nth-child(5) { min-height: 184px; } .fp-ladder li:nth-child(6) { min-height: 200px; } .fp-ladder li:nth-child(7) { min-height: 216px; }
.fp-ladder li:not(.has-nurani) { background: var(--fp-teal-deep); }
.fp-ladder span { font-family: 'Noto Serif Bengali', serif; font-size: 22px; color: var(--fp-gold); }
.fp-ladder strong { color: #fff; font-size: 17px; }
.fp-ladder em { font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.fp-ladder li.has-nurani { box-shadow: inset 0 -6px 0 var(--fp-maroon); }

/* achievers */
.fp-chips { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fp-chips li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 9px 20px; color: #fff; font-size: 16px; }
.fp-chips li:nth-child(3n+1) { border-color: var(--fp-gold); }

/* admission steps */
.fp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-bottom: 36px; }
.fp-steps > div { background: #fff; border: 1px solid var(--fp-line); border-radius: 20px; padding: 34px 28px 28px; position: relative; box-shadow: 0 14px 34px rgba(11, 11, 74, .07); }
.fp-steps b { position: absolute; top: -22px; left: 28px; width: 46px; height: 46px; border-radius: 50%; background: var(--fp-gold); color: var(--fp-teal-deep); font-family: 'Noto Serif Bengali', serif; font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px #fff; }
.fp-steps h4 { margin: 8px 0 10px; font-size: 19px; }
.fp-steps p { margin: 0; line-height: 1.8; font-size: 15.5px; }

@media (max-width: 991px) {
    .fp-sec { padding: 56px 0; }
    .fp-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fp-quick > div:nth-child(2) { border-right: 0; }
    .fp-quick > div:nth-child(-n+2) { border-bottom: 1px solid var(--fp-line); }
    .feni-hero { padding-bottom: 260px; }
    .fp-streams, .fp-split, .fp-steps { grid-template-columns: minmax(0, 1fr); }
    .fp-split { gap: 30px; }
    .fp-steps { gap: 38px; }
    .fp-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fp-ladder li, .fp-ladder li:nth-child(n) { min-height: 0; }
}
@media (max-width: 575px) {
    .fp-quick { grid-template-columns: minmax(0, 1fr); }
    .fp-quick > div { border-right: 0 !important; border-bottom: 1px solid var(--fp-line); padding: 18px; }
    .fp-quick > div:last-child { border-bottom: 0; }
    .feni-hero { padding-bottom: 130px; }
    .fp-quick-wrap { position: relative !important; bottom: auto; margin-top: 34px; }
    .fp-mission { grid-template-columns: minmax(0, 1fr); }
    .fp-stream { padding: 30px 22px 26px; }
}

/* v3 fixes */
.feni-hero { overflow: visible !important; }
.fp-sec--first { padding-top: 150px; }
.fp-split__lead p { margin: 0 0 16px; }
.fp-split__lead .theme_btn { display: inline-block; margin-top: 6px; }
@media (max-width: 991px) { .fp-sec--first { padding-top: 90px; } }
@media (max-width: 575px) { .fp-sec--first { padding-top: 56px; } }

/* Feni brand on the site theme shell (header, footer): the design reads these variables. */
:root {
  --topbar-bg: var(--fp-teal-deep); --topbar-ink: #fff;
  --menu-hover: var(--fp-mist);
  --c-accent: var(--fp-maroon); --c-focus: var(--fp-gold);
  --footer-bg: var(--fp-teal-deep); --footer-ink: rgba(255, 255, 255, .82); --footer-head: var(--fp-gold);
  --title-color: var(--fp-teal);
}
.sec__topbar a, .sec__topbar a:hover { color: #fff; }
.sec__topbar a:hover { color: var(--fp-gold); }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: var(--fp-gold); }
/* Design 10 (cadet) takes its colours from these; point them at the Feni palette so every band matches. Other designs ignore them. */
:root { --olive: var(--fp-teal); --olive2: var(--fp-teal-deep); --khaki: var(--fp-gold); --maroon: var(--fp-maroon); --sand: var(--fp-mist); --c-line: var(--fp-line); --c-ink: var(--fp-ink); }

/* Inner pages: the title band under the breadcrumb band is a plain heading, not a second full band. */
.sec-header-breadcumb + .pb-themesection .sec-page-heading, .sec-page-heading { background: none; color: var(--fp-teal); padding-block: 2.2rem 0; border-block-end: 0; overflow: visible; }
.sec-page-heading .sec__title { color: var(--fp-teal); position: relative; padding-block-end: .7rem; }
.sec-page-heading .sec__title::after { content: ''; position: absolute; inset-inline-start: 0; inset-block-end: 0; inline-size: 56px; block-size: 4px; border-radius: 2px; background: var(--fp-gold); }
.sec-page-heading .sec__lead { color: var(--fp-ink); }
.sec-page-heading .sec__deco-a, .sec-page-heading .sec__deco-b { display: none; }

/* Page content uses the full width of the page, not a 78-character column with an empty right side. */
.sec-text-editor .sec__prose { max-inline-size: none; }

/* ---- Feni colours on every design ----
   Each design sets its own palette; these tokens and shared parts put the school's navy and gold on all of them. */
:root {
  --on-accent: #fff; --title-color: var(--fp-teal); --eyebrow-color: var(--fp-maroon);
  --band-bg: var(--fp-teal); --band-ink: #fff; --strip-bg: var(--fp-teal-deep); --strip-ink: #fff; --counter-color: var(--fp-gold);
  --notice-bg: var(--fp-mist); --section-alt: var(--fp-mist); --th-bg: var(--fp-mist); --c-surface: var(--fp-mist);
}
.ui-topbar, .sec__topbar { background: var(--fp-teal-deep); color: #fff; }
.sec-header-breadcumb { background: var(--fp-teal-deep); color: #fff; }
.sec-header-breadcumb .sec__title, .sec-header-breadcumb a, .sec-header-breadcumb li, .sec-header-breadcumb span { color: #fff; }
.btn:not(.btn--outline), .sec .btn:not(.btn--outline) { background: var(--fp-gold); border-color: var(--fp-gold); color: var(--fp-teal-deep); box-shadow: none; }
.btn:not(.btn--outline):hover, .sec .btn:not(.btn--outline):hover { background: var(--fp-teal); border-color: var(--fp-teal); color: #fff; }
.sec-cta > .wrap { background: var(--fp-teal); color: #fff; }
.sec-cta .sec__title { color: #fff; }
.ui-footer, .site-footer { background: var(--fp-teal-deep); }

/* Each design names its own palette; map every one of those names to the Feni colours (dark = deep navy, main = navy,
   warm accent = gold, alert accent = red, pale = mist). Names a design does not use are harmless. */
:root {
  --night: var(--fp-teal-deep); --emerald: var(--fp-teal); --moss: var(--fp-teal-soft); --brass: var(--fp-gold); --brass-soft: var(--fp-gold-soft); --brass-ink: var(--fp-teal-deep); --lapis: var(--fp-teal); --star: var(--fp-gold);
  --sky: var(--fp-mist); --skylt: var(--fp-mist); --sun: var(--fp-gold); --coral: var(--fp-maroon); --coral-dk: var(--fp-maroon); --leaf: var(--fp-teal); --leaf-dk: var(--fp-teal-deep); --grape: var(--fp-teal); --grape-dk: var(--fp-teal-deep);
  --navy: var(--fp-teal-deep); --navy2: var(--fp-teal); --deep: var(--fp-teal-deep); --lotus: var(--fp-maroon); --jute: var(--fp-gold); --jute-dk: #c99f00; --jute-lt: var(--fp-gold-soft);
  --teal: var(--fp-teal); --teal-dk: var(--fp-teal-deep); --tealbg: var(--fp-mist); --orange: var(--fp-gold); --orange-dk: var(--fp-maroon);
  --gold: var(--fp-gold); --gold-lt: #ffe27a; --gold-ink: var(--fp-teal-deep); --ivory: var(--fp-mist);
  --plum: var(--fp-teal); --plum2: var(--fp-teal-deep); --rose: var(--fp-maroon); --blush: var(--fp-mist);
  --cobalt: var(--fp-teal); --cobalt-dk: var(--fp-teal-deep); --amber: var(--fp-gold); --ink: var(--fp-teal-deep);
  --paddy: var(--fp-teal); --paddy-dk: var(--fp-teal-deep); --river: var(--fp-teal-soft); --mist: var(--fp-mist);
  --red: var(--fp-maroon); --red-dk: #a8161c; --char: var(--fp-teal-deep); --char2: var(--fp-teal); --light: var(--fp-mist);
}
