/* ==========================================================================
   Joinul Abedin portal — additions on top of the Senatory theme.
   Theme colours and fonts are reused through its CSS variables.
   ========================================================================== */

/* ---------- Bangla typography ---------- */
.lang-bn {
    --body-font: "Hind Siliguri", "Noto Sans Bengali", "Roboto", sans-serif;
    --heading-font: "Hind Siliguri", "Noto Sans Bengali", "Barlow Semi Condensed", sans-serif;
}
.lang-bn body, body.lang-bn { line-height: 1.75; }
.lang-bn h1, .lang-bn h2, .lang-bn h3, .lang-bn h4, .lang-bn h5, .lang-bn h6 { line-height: 1.35; letter-spacing: 0; }
.lang-bn .navbar-area .nav-container .navbar-collapse .navbar-nav li { font-size: 17px; font-weight: 600; }

img { max-width: 100%; height: auto; }
.section-pad { padding: 90px 0; }
.section-alt { background-color: #f6f7fb; }
.home-collection { padding: 90px 0; }
.home-collection.section-alt { background-color: #f6f7fb; }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--main-color-one); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--main-color-one); outline-offset: 2px;
}
main:focus { outline: none; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Top bar & brand ---------- */
.site-topbar .top-single-items { justify-content: flex-end; flex-wrap: wrap; gap: 8px 24px; }
.site-topbar .top-single-item a.title { color: inherit; font-size: 15px; }
.lang-switch { display: flex; gap: 6px; align-items: center; }
.lang-switch a { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 3px; color: #fff; font-size: 14px; line-height: 1.5; }
.lang-switch a.active, .lang-switch a:hover { background: var(--main-color-one); border-color: var(--main-color-one); color: #fff; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-brand img { max-height: 58px; width: auto; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--main-color-one); color: #fff; font-size: 24px; font-weight: 700; flex: none; }
.brand-text { display: flex; flex-direction: column; color: var(--heading-color); font-family: var(--heading-font); font-weight: 700; font-size: 21px; line-height: 1.2; }
.brand-text small { font-size: 12px; font-weight: 500; color: var(--paragraph-color); letter-spacing: .02em; }
.footer-brand .brand-text { color: #fff; font-size: 24px; }

/* ---------- Navigation: keyboard, active and mobile tap support ---------- */
.navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children:focus-within > .sub-menu,
.navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children.open > .sub-menu { visibility: visible; opacity: 1; }
.navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children .sub-menu li.current-menu-item > a { background-color: var(--main-color-one); color: #fff; }
.navbar-area .nav-container .navbar-collapse .navbar-nav li .line { pointer-events: none; }
.navbar-area .nav-container .navbar-collapse .navbar-nav li:not(.current-menu-item) > .line { opacity: 0; }
.submenu-toggle { display: none; background: none; border: 0; color: inherit; padding: 0 12px; cursor: pointer; line-height: 1; }
@media (min-width: 992px) {
    .navbar-area .nav-container .navbar-collapse .navbar-nav li + li { margin-left: 30px; }
    .navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children .sub-menu .sub-menu { left: 100%; top: 0; }
}
@media (min-width: 992px) and (max-width: 1299px) {
    .navbar-area .nav-container .navbar-collapse .navbar-nav li + li { margin-left: 18px; }
    .navbar-area .nav-container .navbar-collapse .navbar-nav li { font-size: 15px !important; }
    .brand-text { font-size: 18px; }
}
@media (max-width: 991px) {
    .navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children { position: relative; padding-right: 48px; }
    .navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children:before { display: none; }
    .submenu-toggle { display: block; position: absolute; right: 0; top: 6px; width: 44px; height: 40px; color: var(--heading-color); }
    .submenu-toggle i { transition: transform .2s; }
    .submenu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
    /* Sub-menus open only through the toggle (tap) on small screens. */
    .navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children:hover > .sub-menu { visibility: hidden; height: 0; opacity: 0; }
    .navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children.open > .sub-menu { visibility: visible; height: auto; opacity: 1; max-height: none; overflow: visible; padding-top: 8px; }
    .navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children .sub-menu li a { white-space: normal; padding: 10px 16px; }
    .navbar-area .nav-container .navbar-collapse { max-height: calc(100vh - 90px); overflow-y: auto; }
    .navbar-area .nav-container .navbar-collapse .navbar-nav li .line { display: none; }
    .site-brand img { max-height: 46px; }
    .brand-text { font-size: 18px; }
    .brand-text small { display: none; }
    .navbar-area .nav-container .nav-right-content { display: none; }
}

/* ---------- Hero ---------- */
.header-slider-wrap .header-inner .title { word-break: break-word; }
.header-slider-wrap .hero-person { background-size: contain; background-repeat: no-repeat; background-position: bottom right; }
.header-slider-wrap .subtitle-01 { font-weight: 600; }
.home-designation { color: var(--main-color-one); font-weight: 600; font-size: 18px; margin-bottom: 12px; }
@media (max-width: 767px) {
    .header-slider-wrap .header-inner .title { font-size: 38px; line-height: 1.25; }
    .header-slider-wrap .hero-person { opacity: .18; }
}

/* ---------- Page banner & section titles ---------- */
.page-banner .about-inner .title { word-break: break-word; }
.page-banner .banner-subtitle { color: #fff; opacity: .9; max-width: 720px; margin: 10px auto 0; text-align: center; }
.page-banner .breadcrumbs ul { flex-wrap: wrap; justify-content: center; }
.page-banner .breadcrumbs ul li span { color: #fff; }
.section-title { margin-bottom: 40px; }
.block-title { font-size: 24px; margin: 32px 0 18px; color: var(--heading-color); }
.block-title i { color: var(--main-color-one); margin-right: 6px; }
.lead-text { font-size: 18px; color: #4b4f58; }
.rich-content { line-height: 1.85; color: #3d4250; overflow-wrap: anywhere; }
.rich-content img { border-radius: 6px; margin: 12px 0; }
.rich-content blockquote { border-left: 4px solid var(--main-color-one); padding: 8px 18px; background: #f6f7fb; }
.rich-content table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.rich-content td, .rich-content th { border: 1px solid #e5e7ee; padding: 8px; }
.name-alt { color: var(--paragraph-color); margin: -6px 0 8px; }
.pending-note { background: #fff8e6; border-left: 4px solid #f0b429; padding: 12px 16px; }

/* ---------- Pills ---------- */
.tag-pill, .status-pill { display: inline-block; font-size: 13px; line-height: 1.4; padding: 3px 10px; border-radius: 30px; background: #eef0fa; color: var(--secondary-color); margin: 2px 4px 2px 0; }
.tag-featured, .badge-featured { background: var(--main-color-one); color: #fff; }
.badge-featured { position: absolute; top: 12px; left: 12px; font-size: 12px; padding: 3px 10px; border-radius: 3px; }
.status-proposed { background: #fff3d6; color: #8a5a00; }
.status-ongoing { background: #dff1ff; color: #0a5a91; }
.status-completed { background: #e3f7e8; color: #19723a; }

/* ---------- Directory cards ---------- */
.directory-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 24px rgba(4, 7, 46, .07); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.directory-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(4, 7, 46, .12); }
.directory-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #eef0fa; overflow: hidden; }
.directory-card-media img { width: 100%; height: 100%; object-fit: cover; }
.directory-card-placeholder { display: grid; place-items: center; height: 100%; font-size: 48px; color: var(--secondary-color); opacity: .35; }
.directory-card-body { padding: 18px 20px 20px; flex: 1; }
.directory-card .title { font-size: 19px; margin: 4px 0 8px; line-height: 1.4; }
.directory-card .title a { color: var(--heading-color); }
.directory-card .title a:hover { color: var(--main-color-one); }
.directory-card-head { display: flex; gap: 12px; align-items: flex-start; }
.directory-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #f6f7fb; flex: none; }
.directory-meta { list-style: none; padding: 0; margin: 10px 0 0; font-size: 15px; color: var(--paragraph-color); }
.directory-meta li { margin-bottom: 4px; }
.directory-meta i { color: var(--main-color-one); width: 18px; }
.student-card { padding: 20px; }
.student-card-top { display: flex; gap: 14px; align-items: center; }
.student-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #eef0fa; flex: none; }
.student-avatar.lg { width: 120px; height: 120px; }
.student-institution { margin: 0; color: var(--paragraph-color); font-size: 15px; }
.person-card .thum img { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; }
.person-card .author-name a { color: inherit; }
.person-card .person-years { font-size: 14px; margin: 4px 0 0; opacity: .85; }
.person-card .social-links a { color: inherit; margin-right: 10px; }
.directory-link { display: flex; text-decoration: none; height: 100%; }
.directory-link:hover h3 { color: var(--main-color-one); }
.directory-count { margin: 6px 0 0; color: var(--paragraph-color); }

/* ---------- Filters ---------- */
.directory-filters { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 6px 24px rgba(4, 7, 46, .06); margin-bottom: 24px; }
.filter-field { flex: 1 1 180px; min-width: 0; }
.filter-field.filter-search { flex: 2 1 280px; }
.filter-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.filter-search-row { display: flex; gap: 8px; }
.filter-search-row .form-control { flex: 1; min-width: 0; }
.directory-filters .form-control { height: 46px; border-radius: 4px; }
.directory-filters .boxed-btn { padding: 0 18px; height: 46px; line-height: 46px; min-width: 52px; }
.reset-link { color: var(--main-color-one); font-weight: 600; align-self: center; }
.result-count, .privacy-note { color: var(--paragraph-color); margin-bottom: 18px; }
.privacy-note { background: #eef6ff; border-radius: 6px; padding: 10px 14px; font-size: 15px; }
.filter-tabs { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs a { display: inline-block; padding: 7px 16px; border: 1px solid #dde0ea; border-radius: 30px; color: var(--heading-color); }
.filter-tabs a.active, .filter-tabs a:hover { background: var(--main-color-one); border-color: var(--main-color-one); color: #fff; }
.filter-tabs .count { opacity: .7; font-size: 13px; }
.widget_archive ul li a.active { color: var(--main-color-one); font-weight: 600; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 50px 20px; background: #fff; border: 1px dashed #d5d9e6; border-radius: 8px; color: var(--paragraph-color); }
.empty-state i { font-size: 42px; color: #c3c8d8; margin-bottom: 12px; display: block; }

/* ---------- Profile / detail pages ---------- */
.profile-photo-frame { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px rgba(4, 7, 46, .12); }
.profile-photo-frame img { width: 100%; object-fit: cover; }
.about-social a, .share-links a, .share-links button { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eef0fa; color: var(--secondary-color); margin: 0 6px 6px 0; border: 0; cursor: pointer; }
.about-social a:hover, .share-links a:hover, .share-links button:hover { background: var(--main-color-one); color: #fff; }
.share-links { display: flex; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.share-label { font-weight: 600; margin-right: 10px; }
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.profile-logo { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: #f6f7fb; }
.profile-name { font-size: 28px; margin: 0 0 6px; }
.profile-cover img { width: 100%; border-radius: 8px; }
.profile-card { background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(4, 7, 46, .08); overflow: hidden; }
.profile-card > img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.profile-card-body, .student-profile { padding: 24px; }
.student-profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.info-panel { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 8px 30px rgba(4, 7, 46, .08); margin-bottom: 30px; }
.info-list { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 8px 14px; margin: 0; }
.info-list dt { font-weight: 600; color: var(--heading-color); }
.info-list dd { margin: 0; color: var(--paragraph-color); overflow-wrap: anywhere; }
.source-note { font-size: 14px; color: var(--paragraph-color); margin-top: 20px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0 0 0 22px; margin: 0; border-left: 2px solid #e3e6ef; }
.timeline li { position: relative; padding: 0 0 22px 18px; }
.timeline li:before { content: ""; position: absolute; left: -31px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--main-color-one); }
.timeline h3 { font-size: 18px; margin: 2px 0 4px; }
.timeline-date { font-size: 13px; color: var(--main-color-one); font-weight: 600; }
.timeline-org { font-weight: 600; color: var(--secondary-color); margin: 0; }
.timeline-meta { font-size: 14px; color: var(--paragraph-color); margin: 4px 0; }

/* ---------- Info categories / chips ---------- */
.info-category-card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 6px 24px rgba(4, 7, 46, .06); display: flex; flex-direction: column; }
.info-category-card h3 { font-size: 20px; }
.info-category-card h3 a { color: var(--heading-color); }
.info-category-card h3 i { color: var(--main-color-one); margin-right: 6px; }
.info-items, .subcategory-list { padding-left: 18px; margin-bottom: 12px; }
.subcategory-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.subcategory-list a { font-size: 13px; background: #eef0fa; padding: 2px 10px; border-radius: 20px; }
.more-link { margin-top: auto; color: var(--main-color-one); font-weight: 600; }
.area-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-chips span, .area-chips a { display: inline-block; padding: 8px 16px; background: #fff; border-radius: 30px; box-shadow: 0 4px 14px rgba(4, 7, 46, .07); color: var(--heading-color); }
.area-chips i { color: var(--main-color-one); }
.subcategory-chips { justify-content: flex-start; margin-bottom: 26px; }

/* ---------- Gallery ---------- */
.album-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 24px rgba(4, 7, 46, .07); }
.album-card .thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.album-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover .thumb img { transform: scale(1.05); }
.album-count { position: absolute; right: 10px; bottom: 10px; background: rgba(4, 7, 46, .75); color: #fff; padding: 2px 10px; border-radius: 20px; font-size: 13px; }
.album-body { padding: 14px 16px; }
.album-body .title { font-size: 17px; margin: 0 0 4px; }
.album-body .title a { color: var(--heading-color); }
.album-date { font-size: 13px; color: var(--paragraph-color); }
.album-header { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.album-header .share-links { margin-top: 0; }
.album-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--paragraph-color); }
.album-meta i { color: var(--main-color-one); }
.masonry-grid { column-count: 3; column-gap: 16px; }
.masonry-item { break-inside: avoid; margin: 0 0 16px; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 16px rgba(4, 7, 46, .07); }
.masonry-item img { width: 100%; display: block; }
.masonry-item figcaption { padding: 8px 12px; font-size: 14px; color: var(--paragraph-color); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.photo-grid-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; }
.video-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 24px rgba(4, 7, 46, .07); height: 100%; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #04072e; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: var(--main-color-one); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 0 0 8px rgba(221, 19, 26, .25); }
.video-play-icon.lg { width: 84px; height: 84px; font-size: 28px; }
.video-body { padding: 14px 16px 18px; }
.video-body .title { font-size: 17px; margin: 6px 0 4px; }
.video-body .title a { color: var(--heading-color); }
.video-date { font-size: 13px; color: var(--paragraph-color); }
.video-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.video-player iframe, .video-player-poster, .video-player-poster img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-player-poster { padding: 0; cursor: pointer; background: #000; }
.video-player-poster img { object-fit: cover; opacity: .85; }
.video-details { margin-top: 20px; }

/* ---------- Plans ---------- */
.plan-card { display: flex; flex-direction: column; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 24px rgba(4, 7, 46, .07); }
.plan-card .event-img { display: block; height: 210px; background-size: cover; background-position: center; background-color: #eef0fa; }
.plan-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.plan-card-body .title { font-size: 19px; margin: 8px 0; }
.plan-card-body .title a { color: var(--heading-color); }
.progress-wrap { display: flex; align-items: center; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.progress-label { width: 100%; font-weight: 600; }
.progress-bar-track { flex: 1; height: 8px; background: #eceef5; border-radius: 10px; overflow: hidden; }
.progress-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--main-color-one), #ff6b6f); border-radius: 10px; }
.progress-value { font-weight: 700; color: var(--heading-color); font-size: 14px; }
.progress-wrap.lg { margin-top: 18px; }

/* ---------- Blog ---------- */
.post-card .news-bg { min-height: 320px; background-size: cover; background-position: center; }
.post-card .even { color: #fff; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--paragraph-color); font-size: 15px; }
.blog-details-items .thumb img { width: 100%; border-radius: 8px; }
.blog-single-pagination ul { display: flex; justify-content: space-between; align-items: center; padding: 0; list-style: none; }
.widget_recent_posts .single-recent-post-item .thumb img { width: 80px; height: 80px; object-fit: cover; }

/* ---------- Pagination ---------- */
.blog-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; list-style: none; }
.blog-pagination ul li .page-numbers, .blog-pagination ul li span { display: inline-block; min-width: 42px; text-align: center; padding: 6px 12px; border-radius: 4px; border: 1px solid #e1e4ee; }
.blog-pagination ul li .page-numbers.current, .blog-pagination ul li a.page-numbers:hover { background: var(--main-color-one); border-color: var(--main-color-one); color: #fff; }
.blog-pagination ul li span.disabled { opacity: .5; }
.pagination-summary { text-align: center; font-size: 14px; color: var(--paragraph-color); margin-top: 10px; }

/* ---------- Home ---------- */
.home-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.home-carousel .carousel-cell { padding: 10px; height: 100%; }
.home-contact-list { list-style: none; padding: 0; margin: 18px 0 0; color: #fff; }
.home-contact-list li { margin-bottom: 8px; }
.home-contact-list a { color: #fff; }
.stat-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.count-static { font-size: inherit; }
.announcements-list .list-single-items { margin-bottom: 14px; }
.home-directories .campaign-single-items-02 { margin-bottom: 24px; }

/* ---------- Contact ---------- */
.contact-page-form label { font-weight: 600; margin-bottom: 4px; display: block; }
.contact-page-form .form-control.is-invalid { border-color: #dc3545; }
.form-hint { font-size: 14px; color: var(--paragraph-color); }
.map-embed { position: relative; height: 420px; border-radius: 8px; overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { margin-top: 10px; font-size: 14px; }

/* ---------- Footer ---------- */
.footer-search .widget-title { color: #fff; display: block; margin-bottom: 12px; }
.footer-search-row { display: flex; gap: 8px; }
.footer-search-row .form-control { flex: 1; min-width: 0; height: 46px; }
.footer-search-row .boxed-btn { height: 46px; line-height: 46px; padding: 0 16px; }
.footer-muted { color: rgba(255, 255, 255, .7); }
.footer-area .contact_info_list a { color: inherit; }
.footer-event-item .title a { color: #fff; }

/* ---------- Search ---------- */
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 12px 0; border-bottom: 1px solid #eceef5; }
.search-results li a { font-size: 18px; font-weight: 600; color: var(--heading-color); }
.search-results li p { margin: 4px 0 0; color: var(--paragraph-color); }

/* ---------- Errors ---------- */
.error-code { font-size: clamp(72px, 16vw, 150px); font-weight: 700; color: var(--main-color-one); line-height: 1; margin: 0; }

/* ---------- Back to top (theme element converted to a button) ---------- */
button.back-to-top { border: 0; padding: 0; background: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .section-pad, .home-collection { padding: 65px 0; }
    .masonry-grid { column-count: 2; }
    .site-topbar .top-social { display: none; }
}
@media (max-width: 767px) {
    .section-pad, .home-collection { padding: 50px 0; }
    .block-title { font-size: 21px; }
    .profile-name { font-size: 23px; }
    .info-list { grid-template-columns: 1fr; gap: 2px; }
    .info-list dd { margin-bottom: 8px; }
    .map-embed { height: 300px; }
    .directory-filters { padding: 14px; }
    .post-card .news-bg { min-height: 260px; }
    .site-topbar .top-single-items { justify-content: center; }
}
@media (max-width: 575px) {
    .masonry-grid { column-count: 1; }
    .filter-field { flex-basis: 100%; }
    .profile-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
    .brand-mark { width: 38px; height: 38px; font-size: 20px; }
    .brand-text { font-size: 16px; }
    .header-slider-wrap .header-inner .title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Content population: hero portrait, brand avatar, plan details ---------- */
.brand-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--main-color-one); flex: none; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-avatar { width: 56px; height: 56px; border-color: #fff; }
.hero-with-portrait .header-inner { padding-top: 40px; }
.hero-portrait { margin: 40px auto 0; max-width: 440px; position: relative; }
.hero-portrait:before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--main-color-one); border-radius: 18px; z-index: 0; }
.hero-portrait img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 22%; border-radius: 18px; box-shadow: 0 24px 50px rgba(4, 7, 46, .18); background: #fff; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-buttons .boxed-btn { margin: 0 !important; }
.hero-btn-alt { background: transparent !important; color: var(--secondary-color) !important; border: 2px solid var(--secondary-color) !important; }
.hero-btn-alt:hover { background: var(--secondary-color) !important; color: #fff !important; }
.lang-bn .hero-with-portrait .header-inner .title { font-size: 48px; line-height: 1.35; }
@media (max-width: 991px) {
    .hero-portrait { max-width: 240px; margin-top: 30px; }
    .hero-portrait:before { inset: 10px -10px -10px 10px; }
    .hero-with-portrait .header-inner { text-align: center; padding-top: 20px; }
    .hero-buttons { justify-content: center; }
    .lang-bn .hero-with-portrait .header-inner .title { font-size: 34px; }
}
@media (max-width: 400px) { .hero-buttons .boxed-btn { width: 100%; justify-content: center; } }
.plan-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #0e115a, #2a2f8f); color: #fff; font-size: 54px; }
.plan-placeholder i { opacity: .85; }
.plan-detail-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.plan-detail-list li { position: relative; padding: 10px 14px 10px 42px; background: #f6f7fb; border-radius: 6px; }
.plan-detail-list li:before { content: "\f00c"; font-family: "Font Awesome 5 Free", "fontawesome"; font-weight: 900; position: absolute; left: 14px; top: 10px; color: var(--main-color-one); }
.plan-disclaimer { background: #fff8e6; border-left: 4px solid #f0b429; padding: 12px 16px; border-radius: 4px; margin-bottom: 24px; }
.about-contact-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.about-contact-list i { color: var(--main-color-one); width: 22px; }

/* ---------- Hero with a photo background (e.g. the national flag) ---------- */
.header-area.hero-photo-bg { position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; isolation: isolate; }
.hero-photo-bg .hero-overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(0, 45, 30, .88) 0%, rgba(0, 45, 30, .72) 50%, rgba(0, 45, 30, .25) 100%); }
.hero-photo-bg .container, .hero-photo-bg .lottie-shape { position: relative; z-index: 1; }
.hero-photo-bg .header-inner .title,
.hero-photo-bg .header-inner p,
.hero-photo-bg .header-inner .subtitle-01 { color: #fff !important; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.hero-photo-bg .header-inner .subtitle-01 i { color: var(--main-color-one); }
.hero-photo-bg .hero-btn-alt { color: #fff !important; border-color: rgba(255, 255, 255, .85) !important; }
.hero-photo-bg .hero-btn-alt:hover { background: #fff !important; color: var(--secondary-color) !important; }
.hero-photo-bg .hero-portrait:before { border-color: #fff; }
@media (max-width: 991px) {
    .hero-photo-bg .hero-overlay { background: rgba(0, 45, 30, .78); }
}

/* ---------- Justified paragraphs ---------- */
main p, footer p { text-align: justify; text-justify: inter-word; hyphens: manual; }
/* Centred blocks stay centred: their (often single) last line is centred instead of left-aligned. */
/* Centred blocks are still justified; only their last line is centred so short text doesn't jump left. */
.text-center p, .section-title p, .desktop-center p, .page-banner p, .empty-state p,
.error-section p, .pagination-summary, .album-body p, .copyright-area-inner { text-align: justify; text-align-last: center; }
/* Very short labels/meta lines look wrong when justified. */
.directory-card-body .student-institution, .person-card .designation, .person-card .person-years, .album-meta,
.post-meta, .timeline-org, .timeline-meta, .directory-count, .map-link, .result-count, .form-hint,
.footer-event-item .designation, .home-designation, .name-alt { text-align: left; }
@media (max-width: 991px) { .hero-with-portrait .header-inner p { text-align: justify; text-align-last: center; } }

/* ---------- Plans: every image the same size ---------- */
.plan-card .plan-media { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #eef0fa; border-radius: 8px 8px 0 0; }
.plan-card .plan-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .4s; }
.plan-card:hover .plan-media img { transform: scale(1.04); }
.plan-card .plan-placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.plan-card-body p { text-align: justify; text-align-last: left; }
/* Plan detail page: featured image in the same 16:9 frame. */
.plan-detail .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }

/* ---------- Header stacking ----------
   The theme puts each dropdown parent in its own `z-index: 0` layer, so any later positioned
   content with a higher z-index (e.g. the hero's photo-background container) painted over the
   open dropdown. Lifting the whole header keeps dropdowns (desktop and mobile) above the page. */
.site-topbar { position: relative; z-index: 1001; }
.header-style-01 { position: relative; z-index: 1000; }
.navbar-area.nav-fixed { z-index: 1000 !important; }
/* Search popup and its overlay must stay above the raised header. */
.body-overlay { z-index: 1100; }
.search-popup .search-form { z-index: 1101; }

/* ---------- Bangladesh flag on cards (replaces the theme's star-flag decoration) ---------- */
.single-testimonial-item, .single-testimonial-item-02 { position: relative; }
.bd-flag { position: absolute; top: 20px; right: 20px; width: 90px; height: auto; aspect-ratio: 10 / 6; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); z-index: 1; pointer-events: none; }
@media (max-width: 575px) { .bd-flag { width: 64px; top: 14px; right: 14px; } }

/* ---------- Modern directory cards (Kalauzan sections) ---------- */
.kz-grid { row-gap: 0; }
.kz-card { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 26px 22px 22px; background: #fff; border: 1px solid #edf0f6; border-radius: 12px; box-shadow: 0 8px 26px rgba(4, 7, 46, .06); overflow: hidden; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.kz-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--main-color-one); transition: width .35s ease; }
.kz-card:hover, .kz-card:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(4, 7, 46, .12); border-color: transparent; text-decoration: none; }
.kz-card:hover::before, .kz-card:focus-visible::before { width: 100%; }
.kz-card-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; background: rgba(221, 19, 26, .08); color: var(--main-color-one); font-size: 24px; transition: background .25s ease, color .25s ease; }
.kz-card:hover .kz-card-icon { background: var(--main-color-one); color: #fff; }
.kz-card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kz-card-title { font-family: var(--heading-font); font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--heading-color); }
.kz-card-count { font-size: 14px; color: var(--paragraph-color); }
.kz-card-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--main-color-one); }
.kz-card-more i { transition: transform .25s ease; }
.kz-card:hover .kz-card-more i { transform: translateX(4px); }
.home-directories { background: #f6f7fb; }
@media (max-width: 575px) {
    .kz-card { padding: 18px 14px 16px; gap: 10px; }
    .kz-card-icon { width: 46px; height: 46px; font-size: 19px; border-radius: 12px; }
    .kz-card-title { font-size: 15px; }
    .kz-card-more { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .kz-card, .kz-card:hover { transform: none; } }

/* ---------- Hero buttons: all three get a clear white border over the photo/flag background ---------- */
.hero-photo-bg .hero-buttons .boxed-btn { border: 2px solid #fff !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.hero-photo-bg .hero-buttons .boxed-btn.style-01:hover { border-color: #fff !important; }
.hero-buttons .boxed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.3; }
/* All three hero buttons share one font size, weight and padding. */
.btn-wrapper.hero-buttons .boxed-btn.btn-sanatory { font-size: 17px; font-weight: 700; line-height: 1.3; font-family: var(--body-font); padding: 15px 26px; text-transform: none; }
@media (max-width: 575px) { .btn-wrapper.hero-buttons .boxed-btn.btn-sanatory { font-size: 15px; padding: 13px 20px; } }

/* ---------- Plans: category dropdown filter bar ---------- */
.plan-filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.plan-filter-bar .plan-category-filter { flex: 1 1 340px; max-width: 520px; margin-bottom: 0; padding: 16px 18px; }
.plan-filter-bar .plan-category-filter label i { color: var(--main-color-one); margin-right: 4px; }
.plan-filter-bar .filter-tabs { margin: 0; }
.plan-category-heading { margin-top: 0; }
@media (max-width: 767px) {
    .plan-filter-bar { flex-direction: column; align-items: stretch; }
    .plan-filter-bar .plan-category-filter { max-width: none; }
}

/* Longer dropdowns (e.g. the 11 plan categories) fit without an inner scrollbar on most screens. */
@media (min-width: 992px) {
    .navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children .sub-menu { max-height: min(78vh, 680px); }
    .navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children .sub-menu li a { padding: 10px 24px; }
}

/* ---------- Plans: full details when a category is chosen ---------- */
.plan-full + .plan-full { margin-top: 30px; padding-top: 40px; border-top: 1px solid #e6e9f2; }
.plan-full-title { font-size: 28px; line-height: 1.35; margin: 0 0 18px; }
.plan-full-title a { color: var(--heading-color); }
.plan-full-title a:hover { color: var(--main-color-one); }
.plan-detail h3.block-title { font-size: 22px; }
@media (min-width: 992px) { .plan-full-aside { position: sticky; top: 110px; } }
@media (max-width: 767px) { .plan-full-title { font-size: 23px; } }

/* Portrait plan photos: keep the upper part (faces/action) in the 16:9 crop. No effect on landscape images. */
.plan-card .plan-media img, .plan-detail .thumb img { object-position: center 30%; }

/* ---------- Gallery: photo count beside each category tab ---------- */
.filter-tabs .tab-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; margin-left: 6px; padding: 0 7px; border-radius: 11px; background: #eef0fa; color: var(--secondary-color); font-size: 12px; font-weight: 700; line-height: 1; vertical-align: middle; transition: background .2s, color .2s; }
.filter-tabs a.active .tab-count, .filter-tabs a:hover .tab-count { background: #fff; color: var(--main-color-one); }

/* ---------- Lightbox: zoom animation + zoom/pan ---------- */
.mfp-with-zoom .mfp-container, .mfp-with-zoom.mfp-bg { opacity: 0; transition: opacity .28s ease-out; }
.mfp-with-zoom.mfp-ready .mfp-container { opacity: 1; }
.mfp-with-zoom.mfp-ready.mfp-bg { opacity: .9; }
.mfp-with-zoom.mfp-removing .mfp-container, .mfp-with-zoom.mfp-removing.mfp-bg { opacity: 0; }
.mfp-zoomable .mfp-container { overflow: hidden; }
.mfp-zoomable img.mfp-img { cursor: zoom-in; user-select: none; -webkit-user-drag: none; will-change: transform; transform-origin: center center; }
.mfp-zoomable.lbz-zoomed .mfp-bottom-bar { opacity: 0; transition: opacity .2s; pointer-events: none; }
.mfp-zoomable.lbz-zoomed .mfp-arrow { opacity: .25; }
.lbz-toolbar { position: fixed; z-index: 1046; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 30px; background: rgba(20, 20, 30, .78); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.lbz-toolbar button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.lbz-toolbar button:hover:not(:disabled), .lbz-toolbar button:focus-visible { background: rgba(255, 255, 255, .18); }
.lbz-toolbar button:disabled { opacity: .35; cursor: default; }
.lbz-level { min-width: 52px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Keep the caption/counter clear of the toolbar. */
.mfp-zoomable .mfp-figure:after { bottom: 70px; }
.mfp-zoomable img.mfp-img { padding-bottom: 90px; }
@media (max-width: 575px) { .lbz-toolbar { bottom: 14px; } .lbz-toolbar button { width: 44px; height: 44px; } }

/* ---------- Photo gallery grid (photos, not album covers) ---------- */
.photo-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 10px; }
.photo-card { margin: 0; height: 100%; }
.photo-card-link { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 22px rgba(4, 7, 46, .07); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.photo-card-link:hover, .photo-card-link:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(4, 7, 46, .14); text-decoration: none; }
/* Fixed 4:3 frame: no layout shift while lazy images load, no stretching (object-fit: cover). */
.photo-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #eef0fa; overflow: hidden; }
.photo-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; transition: transform .45s ease; }
.photo-card-link:hover .photo-card-media img { transform: scale(1.06); }
.photo-card-zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 7, 46, .35); color: #fff; font-size: 26px; opacity: 0; transition: opacity .25s ease; }
.photo-card-link:hover .photo-card-zoom, .photo-card-link:focus-visible .photo-card-zoom { opacity: 1; }
.photo-card-caption { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.photo-card-title { color: var(--heading-color); font-weight: 600; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.photo-card-album { color: var(--paragraph-color); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-card-album i { color: var(--main-color-one); }
.photo-missing { pointer-events: none; cursor: default; }
.photo-missing .photo-card-zoom { display: none; }
.gallery-albums-title { margin-top: 50px; }
@media (max-width: 1199px) { .photo-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .photo-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .photo-card-caption { padding: 10px; } .photo-card-title { font-size: 14px; } }
@media (max-width: 359px) { .photo-gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Homepage photo carousel ---------- */
.home-photo-carousel-wrap { position: relative; }
.home-photo-carousel:not(.owl-loaded) { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.home-photo-carousel:not(.owl-loaded) .home-photo-slide { flex: 0 0 min(80%, 300px); scroll-snap-align: start; }
.home-photo-carousel .owl-stage { display: flex; }
.home-photo-carousel .owl-item { display: flex; }
.home-photo-carousel .home-photo-slide { width: 100%; padding: 6px 0 14px; }
.home-photo-carousel .owl-nav .owl-prev, .home-photo-carousel .owl-nav .owl-next {
    position: absolute; top: 38%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50% !important;
    background: #fff !important; color: var(--heading-color) !important; font-size: 26px !important; line-height: 1 !important;
    box-shadow: 0 6px 18px rgba(4, 7, 46, .18); display: grid; place-items: center; transition: background .2s, color .2s;
}
.home-photo-carousel .owl-nav .owl-prev { left: -20px; }
.home-photo-carousel .owl-nav .owl-next { right: -20px; }
.home-photo-carousel .owl-nav .owl-prev:hover:not(.disabled), .home-photo-carousel .owl-nav .owl-next:hover:not(.disabled) { background: var(--main-color-one) !important; color: #fff !important; }
.home-photo-carousel .owl-nav .disabled { opacity: .35; cursor: default; }
.home-photo-carousel .owl-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.home-photo-carousel .owl-dots .owl-dot span { display: block; width: 10px; height: 10px; border-radius: 10px; background: #cfd3e3; transition: width .25s, background .25s; }
.home-photo-carousel .owl-dots .owl-dot.active span { width: 26px; background: var(--main-color-one); }
@media (max-width: 767px) {
    .home-photo-carousel .owl-nav .owl-prev { left: 4px; }
    .home-photo-carousel .owl-nav .owl-next { right: 4px; }
    .home-photo-carousel .owl-nav .owl-prev, .home-photo-carousel .owl-nav .owl-next { width: 38px; height: 38px; font-size: 22px !important; }
}

/* Lightbox caption: album name on a second line. */
.mfp-title small { display: block; margin-top: 3px; color: #ccc; font-size: 12px; }

/* Homepage welcome section: dark navy ground (the theme's "home-six" colour) with white text. */
.our-party-section-area.home-about { background-color: #02083D; }
.home-about .party-single-item .content .subtitle p,
.home-about .party-single-item .content .title,
.home-about .party-single-item .content .description,
.home-about .home-designation { color: #fff; }
.home-about .party-single-item .content .description { opacity: .92; }
/* "আমার সম্পর্কে জানুন" button on the dark welcome section. */
.home-about .btn-wrapper .boxed-btn.btn-sanatory.style-02 { color: #fff; border-color: #fff; }
.home-about .btn-wrapper .boxed-btn.btn-sanatory.style-02:hover { background-color: #fff; border-color: #fff; color: #02083D; }
/* "বার্তা পাঠান" button on the dark homepage contact banner. */
.home-contact .btn-wrapper .boxed-btn.btn-sanatory.style-02 { color: #fff; border-color: #fff; }
.home-contact .btn-wrapper .boxed-btn.btn-sanatory.style-02:hover { background-color: #fff; border-color: #fff; color: #02083D; }

/* Video popup (video cards play in place instead of opening the detail page). */
.mfp-video-popup .mfp-iframe-holder .mfp-content { max-width: 1000px; }
.mfp-video-popup .mfp-video-title { color: #fff; font-size: 16px; line-height: 1.5; padding-top: 12px; text-align: center; }
/* YouTube Shorts are 9:16 — show them as a tall player instead of a letterboxed wide one. */
.mfp-vertical-video .mfp-iframe-holder .mfp-content { width: min(90vw, calc((100vh - 140px) * 9 / 16)); max-width: 420px; }
.mfp-vertical-video .mfp-iframe-scaler { padding-top: 177.78%; }
.js-video-popup { cursor: pointer; }
/* Owl 2.0-beta (the theme's copy) renders arrows/dots as <div>s: make them clickable and keep them above the slides. */
.home-photo-carousel .owl-nav .owl-prev, .home-photo-carousel .owl-nav .owl-next { cursor: pointer; z-index: 5; user-select: none; }
.home-photo-carousel .owl-dots .owl-dot { cursor: pointer; }

/* Contact page form: clearly visible fields. */
.contact-page-form-section .contact-item-wrapper { margin-bottom: 0; }   /* theme pulls the card -300px under the next block, hiding the button */
.contact-page-form-section.contact-form-bg { padding-bottom: 120px; }
.contact-page-form-section .contact-item-wrapper > .row { position: relative; z-index: 1; }
.contact-page-form label { color: var(--heading-color); font-size: 15px; }
.contact-form .contact-page-form .form-group .form-control {
    background: #fff; color: var(--heading-color); font-weight: 400; font-size: 16px;
    border: 1.5px solid #b8bdd3; padding: 14px 18px; min-height: 52px; height: auto;
    box-shadow: 0 2px 6px rgba(4, 7, 46, .04); transition: border-color .15s, box-shadow .15s;
}
.contact-form .contact-page-form .form-group textarea.form-control { min-height: 150px; resize: vertical; }
.contact-form .contact-page-form .form-group .form-control::placeholder { color: #8a8fa8; }
.contact-form .contact-page-form .form-group .form-control:hover { border-color: #8f95b4; }
.contact-form .contact-page-form .form-group .form-control:focus {
    border-color: var(--main-color-two); box-shadow: 0 0 0 3px rgba(0, 5, 101, .15); outline: 0;
}
.contact-form .contact-page-form .form-group .form-control.is-invalid { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, .12); }
.contact-page-form .invalid-feedback { display: block; font-size: 14px; margin-top: 6px; }
.contact-form-status .alert { border-radius: 8px; }
.contact-form-status .alert i { margin-right: 6px; }

/* Submit button spinner */
.contact-submit { min-width: 160px; }
.contact-submit[disabled] { opacity: .85; cursor: progress; }
.contact-submit .btn-busy { display: inline-flex; align-items: center; gap: 10px; }
.contact-submit .btn-busy[hidden] { display: none !important; }
.btn-spinner {
    width: 18px; height: 18px; border-radius: 50%; display: inline-block;
    border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (max-width: 575px) { .contact-page-form-section .contact-item-wrapper { padding: 28px 18px; } }

/* The theme styles .contact-page-wrapper forms for a dark background (white text, translucent fill,
   white border) with a more specific selector — override it here with an even more specific one. */
.contact-page-form-section .contact-page-wrapper .contact-form .content .title { color: var(--heading-color); }
.contact-page-form-section .contact-page-wrapper .contact-form .contact-page-form .form-group .form-control {
    background-color: #fff; color: #000; caret-color: #000; -webkit-text-fill-color: #000;
    border: 1.5px solid #b8bdd3; border-radius: 10px; height: auto; min-height: 52px; padding: 14px 18px;
    font-size: 16px; line-height: 1.5; font-weight: 400;
}
.contact-page-form-section .contact-page-wrapper .contact-form .contact-page-form .form-group .text-area { height: auto; min-height: 150px; }
.contact-page-form-section .contact-page-wrapper .contact-form .contact-page-form .form-group .form-control::placeholder {
    color: #8a8fa8; -webkit-text-fill-color: #8a8fa8; padding: 0; font-size: 15px;
}
.contact-page-form-section .contact-page-wrapper .contact-form .contact-page-form .form-group .form-control:hover { border-color: #8f95b4; }
.contact-page-form-section .contact-page-wrapper .contact-form .contact-page-form .form-group .form-control:focus {
    border-color: var(--main-color-two); box-shadow: 0 0 0 3px rgba(0, 5, 101, .15); outline: 0;
}
.contact-page-form-section .contact-page-wrapper .contact-form .contact-page-form .form-group .form-control.is-invalid {
    border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, .12);
}
/* Browser autofill keeps black text on a white field too. */
.contact-page-form-section .contact-page-wrapper .contact-form .contact-page-form .form-control:-webkit-autofill {
    -webkit-text-fill-color: #000; box-shadow: 0 0 0 1000px #fff inset;
}

/* ---------- Home page: tighter vertical rhythm (section gaps halved) ---------- */
.page-home .home-collection { padding: 45px 0; }
.page-home .campaign-section-area { margin-top: 58px; }
.page-home .counter-section-area.style-02 { margin-top: 52px; }
.page-home .vote-section-area { padding: 70px 0; }
.page-home .header-bottom-area.home-vision { padding-top: 60px; padding-bottom: 35px; }
@media (max-width: 991px) {
    .page-home .home-collection { padding: 33px 0; }
}
@media (max-width: 767px) {
    .page-home .home-collection { padding: 25px 0; }
}

/* ---------- Top bar: content vertically centred inside the 60px coloured band ---------- */
.header-top.site-topbar { margin-top: 0; padding-top: 0; padding-bottom: 0; }
.header-top.site-topbar::after { height: 100%; }
.site-topbar .row { min-height: 60px; align-items: center; }
.site-topbar .top-social-share,
.site-topbar .top-single-items,
.site-topbar .top-single-item .title { margin-top: 0; margin-bottom: 0; }

/* ---------- Sticky main navbar ----------
   `overflow-x: hidden` on body (theme) turns it into a scroll container, which breaks
   position: sticky. `clip` hides horizontal overflow the same way without doing that. */
html, body { overflow-x: clip; }
.header-style-01 {
    position: -webkit-sticky; position: sticky; top: 0; z-index: 1000;
    background-color: #fff; box-shadow: 0 2px 12px rgba(2, 8, 61, .08);
}
/* The theme's scroll script adds "animated fadeInDown nav-fixed" past 700px; the wrapper is
   already sticky, so cancel that re-entry animation. */
.header-style-01 .navbar-area.animated { animation: none; }

/* ---------- Navbar height reduced 20% ---------- */
@media (min-width: 992px) {
    /* Theme sets the top-level item line-height to 110px, which defines the bar height. */
    .navbar-area.nav-style-01 .nav-container .navbar-collapse .navbar-nav > li { line-height: 70px; }
    .navbar-area.nav-style-01 .nav-container .navbar-collapse .navbar-nav li .line { top: 12px; }
    .header-style-01 .site-brand .brand-avatar { width: 46px; height: 46px; }
    .header-style-01 .site-brand img { max-height: 50px; }
}
@media (max-width: 991px) {
    .header-style-01 .navbar.navbar-area { padding-top: 2px; padding-bottom: 2px; }
    .header-style-01 .site-brand .brand-avatar { width: 36px; height: 36px; }
    .header-style-01 .site-brand img { max-height: 34px; }
}
