/* ==========================================================================
   Bidur Khanepani Premium Theme — Custom Stylesheet
   ========================================================================== */

/* ---------- 1. ROOT VARIABLES (Light = default) ---------- */
:root {
	--bk-primary: #0b4ea2;
	--bk-primary-dark: #08356f;
	--bk-accent: #e42313;
	--bk-dark-bg: #0f1720;

	--bk-bg: #f4f6f8;
	--bk-surface: #ffffff;
	--bk-text: #1c2733;
	--bk-text-muted: #5b6b7a;
	--bk-border: #e3e8ee;
	--bk-shadow: 0 6px 24px rgba(11,78,162,0.08);
	--bk-radius: 10px;
	--bk-font-np: 'Mukta', sans-serif;
	--bk-font-en: 'Poppins', sans-serif;
	--bk-transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ---------- 2. DARK MODE OVERRIDES ---------- */
body.bk-mode-dark {
	--bk-bg: var(--bk-dark-bg);
	--bk-surface: #172230;
	--bk-text: #eef2f6;
	--bk-text-muted: #9fb0c0;
	--bk-border: #26333f;
	--bk-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

/* ---------- 3. BASE ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--bk-font-np);
	background: var(--bk-bg);
	color: var(--bk-text);
	transition: background var(--bk-transition), color var(--bk-transition);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--bk-primary); color: #fff; padding: 10px 16px; z-index: 9999; }
.skip-link:focus { left: 10px; }

.bk-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 26px; border-radius: 6px; font-weight: 600;
	border: 2px solid transparent; cursor: pointer; transition: all var(--bk-transition);
}
.bk-btn-primary { background: var(--bk-primary); color: #fff; }
.bk-btn-primary:hover { background: var(--bk-primary-dark); transform: translateY(-2px); }
.bk-btn-outline { border-color: var(--bk-primary); color: var(--bk-primary); background: transparent; }
.bk-btn-outline:hover { background: var(--bk-primary); color: #fff; }
.bk-btn-block { display: flex; justify-content: center; width: 100%; margin-top: 14px; }
.bk-btn-sm { padding: 8px 16px; font-size: 0.85rem; }
body.bk-mode-dark .bk-btn-outline { color: #fff; border-color: #fff; }

/* ---------- 4. TOP UTILITY BAR ---------- */
.bk-topbar { background: var(--bk-primary-dark); color: #fff; font-size: 0.85rem; }
.bk-topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; flex-wrap: wrap; gap: 8px; }
.bk-topbar-left, .bk-topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.bk-topbar a { opacity: 0.92; transition: opacity 0.2s; }
.bk-topbar a:hover { opacity: 1; text-decoration: underline; }
.bk-topbar-social { display: flex; gap: 10px; }
.bk-topbar-social a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; }
.bk-topbar-social a:hover { background: #fff; color: var(--bk-primary-dark); }

/* ---------- 5. SITE IDENTITY ---------- */
.bk-identity { background: var(--bk-surface); padding: 18px 0; transition: background var(--bk-transition); }
.bk-identity-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.bk-identity-left { display: flex; align-items: center; gap: 18px; }
.bk-logo { max-height: 90px; }
.bk-logo-dark { display: none; }
body.bk-mode-dark .bk-logo-light { display: none; }
body.bk-mode-dark .bk-logo-dark { display: block; }
.bk-site-title { font-size: 1.9rem; color: var(--bk-primary); font-weight: 800; margin: 0; }
.bk-site-title a { color: var(--bk-primary); }
.bk-site-tagline { color: var(--bk-text-muted); margin: 4px 0 0; font-size: 0.95rem; }
.bk-identity-right { display: flex; align-items: center; gap: 14px; text-align: right; }
.bk-identity-icon { width: 60px; height: 60px; border-radius: 50%; background: #eaf1fb; color: var(--bk-primary); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
body.bk-mode-dark .bk-identity-icon { background: rgba(255,255,255,0.08); }
.bk-identity-motto { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--bk-primary); font-weight: 600; line-height: 1.5; }
body.bk-mode-dark .bk-identity-motto { color: #9fc4f5; }

/* ---------- 6. STICKY MEGA NAVIGATION ---------- */
.bk-header { background: var(--bk-primary); position: sticky; top: 0; z-index: 500; transition: box-shadow var(--bk-transition), background var(--bk-transition); }
.bk-header.bk-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.18); }
.bk-header-inner { display: flex; align-items: center; justify-content: space-between; }
.bk-menu { display: flex; flex-wrap: wrap; }
.bk-menu-item { position: relative; }
.bk-menu-link {
	display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500;
	padding: 16px 18px; white-space: nowrap; transition: background 0.25s;
}
.bk-menu-link:hover, .bk-menu-item.current-menu-item > .bk-menu-link { background: rgba(255,255,255,0.12); }
.bk-caret { font-size: 0.7rem; transition: transform 0.25s; }
.bk-menu-item.bk-has-dropdown:hover > .bk-menu-link .bk-caret { transform: rotate(180deg); }

.bk-submenu { position: absolute; top: 100%; left: 0; background: var(--bk-surface); box-shadow: var(--bk-shadow); border-radius: 0 0 10px 10px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--bk-transition); z-index: 60; }
.bk-menu-item.bk-has-dropdown:hover > .bk-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.bk-dropdown-list { min-width: 230px; padding: 8px 0; }
.bk-dropdown-list .bk-menu-link { color: var(--bk-text); padding: 10px 20px; }
.bk-dropdown-list .bk-menu-link:hover { background: var(--bk-bg); color: var(--bk-primary); }

/* Mega panel */
.bk-mega-panel { width: 720px; max-width: 90vw; padding: 22px; }
.bk-mega-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bk-mega-card { display: block; border-radius: 8px; overflow: hidden; background: var(--bk-bg); }
.bk-mega-card-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.bk-mega-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bk-mega-card:hover .bk-mega-card-thumb img { transform: scale(1.12); }
.bk-mega-overlay { position: absolute; inset: 0; background: rgba(11,78,162,0.55); display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transition: opacity 0.3s; }
.bk-mega-card:hover .bk-mega-overlay { opacity: 1; }
.bk-mega-card-body { padding: 10px 12px; }
.bk-mega-date { font-size: 0.72rem; color: var(--bk-text-muted); }
.bk-mega-card-body h5 { font-size: 0.85rem; margin: 4px 0 0; line-height: 1.4; color: var(--bk-text); }
.bk-mega-footer { text-align: right; margin-top: 16px; }
.bk-mega-empty { grid-column: 1/-1; text-align: center; color: var(--bk-text-muted); }

.bk-header-actions { display: flex; align-items: center; gap: 6px; }
.bk-header-actions button { background: transparent; border: none; color: #fff; font-size: 1.05rem; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; transition: background 0.25s; }
.bk-header-actions button:hover { background: rgba(255,255,255,0.15); }

/* Dark/Light Toggle */
.bk-mode-toggle .bk-icon-dark { display: none; }
body.bk-mode-dark .bk-mode-toggle .bk-icon-light { display: none; }
body.bk-mode-dark .bk-mode-toggle .bk-icon-dark { display: inline-block; }

/* Offcanvas hamburger */
.bk-offcanvas-toggle { display: none; flex-direction: column; gap: 5px; justify-content: center; align-items: center; width: 42px; height: 42px; background: transparent; border: none; cursor: pointer; }
.bk-offcanvas-toggle span { width: 22px; height: 2px; background: #fff; transition: all 0.3s; }

/* AJAX Search panel */
.bk-search-panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--bk-surface); box-shadow: var(--bk-shadow); max-height: 0; overflow: hidden; transition: max-height var(--bk-transition); z-index: 55; }
.bk-search-panel.is-open { max-height: 480px; overflow-y: auto; }
.bk-search-form { display: flex; align-items: center; gap: 10px; padding: 18px 0 10px; border-bottom: 1px solid var(--bk-border); }
.bk-search-input { flex: 1; padding: 12px 16px; border: 1px solid var(--bk-border); border-radius: 6px; background: var(--bk-bg); color: var(--bk-text); font-size: 1rem; }
.bk-search-form button { background: var(--bk-primary); color: #fff; border: none; width: 44px; height: 44px; border-radius: 6px; cursor: pointer; }
.bk-search-close { background: transparent !important; color: var(--bk-text) !important; }
.bk-search-results { padding: 10px 0 20px; }
.bk-search-results-list li a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 8px; }
.bk-search-results-list li a:hover { background: var(--bk-bg); }
.bk-search-thumb { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--bk-bg); flex: none; display: flex; align-items: center; justify-content: center; }
.bk-search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bk-search-type { display: block; font-size: 0.72rem; color: var(--bk-primary); font-weight: 700; text-transform: uppercase; }
.bk-search-title { display: block; font-weight: 600; }
.bk-search-empty { color: var(--bk-text-muted); padding: 20px 0; }

/* ---------- 7. OFFCANVAS MOBILE MENU ---------- */
.bk-offcanvas { position: fixed; top: 0; right: -100%; width: 320px; max-width: 88vw; height: 100vh; background: var(--bk-surface); z-index: 1000; transition: right var(--bk-transition); overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,0.25); }
.bk-offcanvas.is-open { right: 0; }
.bk-offcanvas-head { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--bk-border); }
.bk-offcanvas-close { background: transparent; border: none; font-size: 1.3rem; cursor: pointer; color: var(--bk-text); }
.bk-offcanvas-body { padding: 10px 18px 30px; }
.bk-offcanvas-menu .bk-menu-item { border-bottom: 1px solid var(--bk-border); }
.bk-offcanvas-menu .bk-menu-link { color: var(--bk-text); padding: 14px 4px; justify-content: space-between; }
.bk-offcanvas-menu .bk-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; width: 100%; max-width: 100%; background: var(--bk-bg); border-radius: 8px; margin: 6px 0; }
.bk-offcanvas-menu .bk-menu-item.bk-accordion-open > .bk-submenu { display: block; }
.bk-offcanvas-menu .bk-mega-inner { grid-template-columns: repeat(2, 1fr); }
.bk-offcanvas-contact { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--bk-border); font-size: 0.9rem; }
.bk-offcanvas-contact p { margin: 8px 0; }
.bk-offcanvas-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; visibility: hidden; transition: all var(--bk-transition); }
.bk-offcanvas-overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- 8. BREADCRUMBS ---------- */
.bk-breadcrumbs { background: var(--bk-surface); border-bottom: 1px solid var(--bk-border); padding: 12px 0; font-size: 0.85rem; color: var(--bk-text-muted); }
.bk-breadcrumbs a { color: var(--bk-primary); }
.bk-breadcrumbs i { font-size: 0.7rem; margin: 0 6px; }

/* ---------- 9. HERO SLIDER ---------- */
.bk-hero { position: relative; background: var(--bk-bg); overflow: hidden; }
.bk-hero-swiper { height: 62vh; min-height: 420px; }
.bk-hero-slide { position: relative; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; }
.bk-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,53,111,0.88) 30%, rgba(8,53,111,0.25) 90%); }
.bk-hero-slide-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.bk-hero-slide-content h2 { font-size: 2.4rem; font-weight: 800; margin: 0 0 16px; line-height: 1.25; }
.bk-hero-slide-content p { font-size: 1.05rem; opacity: 0.92; margin-bottom: 26px; }
.bk-hero-swiper .swiper-button-prev, .bk-hero-swiper .swiper-button-next { color: #fff; }
.bk-hero-swiper .swiper-pagination-bullet { background: #fff; opacity: 0.6; }
.bk-hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--bk-accent); }

/* Manual/fallback hero (matches mockup) */
.bk-hero-static-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding: 70px 20px; }
.bk-hero-static-text h2 { font-size: 2.6rem; font-weight: 800; color: var(--bk-primary); margin: 0 0 18px; }
.bk-hero-static-text p { color: var(--bk-text-muted); font-size: 1.05rem; margin-bottom: 30px; max-width: 560px; }
.bk-hero-btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.bk-hero-static-art img { max-width: 100%; opacity: 0.9; }
body.bk-mode-dark .bk-hero-static-art img { opacity: 0.55; filter: brightness(1.4); }

/* ---------- 10. SERVICES ROW ---------- */
.bk-services-row { background: var(--bk-surface); padding: 20px 0; border-top: 1px solid var(--bk-border); border-bottom: 1px solid var(--bk-border); }
.bk-services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.bk-service-item { text-align: center; padding: 22px 14px; border-right: 1px solid var(--bk-border); transition: transform var(--bk-transition); }
.bk-service-item:last-child { border-right: none; }
.bk-service-item:hover { transform: translateY(-6px); }
.bk-service-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #eaf1fb; color: var(--bk-primary); font-size: 1.5rem; margin-bottom: 14px; }
body.bk-mode-dark .bk-service-icon { background: rgba(255,255,255,0.08); }
.bk-service-item h3 { font-size: 1rem; margin: 0 0 8px; color: var(--bk-primary); }
.bk-service-item p { font-size: 0.85rem; color: var(--bk-text-muted); margin: 0; line-height: 1.5; }

/* ---------- 11. HOME 3-COLUMN SECTION ---------- */
.bk-home-columns { padding: 50px 0; }
.bk-home-columns-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 22px; align-items: start; }
.bk-col-box { background: var(--bk-surface); border-radius: var(--bk-radius); padding: 22px; box-shadow: var(--bk-shadow); min-width: 0; }
.bk-col-box-wide { min-width: 0; overflow: hidden; }
.bk-col-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bk-col-box-head h3 { font-size: 1.05rem; color: var(--bk-primary); margin: 0; display: flex; gap: 8px; align-items: center; }
.bk-see-all { font-size: 0.8rem; color: var(--bk-primary); font-weight: 600; }
.bk-notice-list li, .bk-widget ul li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dotted var(--bk-border); gap: 10px; }
.bk-notice-list li a, .bk-widget ul li a { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.bk-notice-list li a:hover, .bk-widget ul li a:hover { color: var(--bk-primary)}
.bk-notice-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bk-primary); flex: none; }
.bk-notice-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.bk-notice-date { font-size: 0.78rem; color: var(--bk-text-muted); flex: none; }
.bk-badge-new { background: var(--bk-accent); color: #fff; font-size: 0.68rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; flex: none; }
.bk-empty { color: var(--bk-text-muted); }

.bk-news-swiper .bk-news-card { display: block; }
.bk-news-swiper { width: 100%; min-width: 0; overflow: hidden; }
.bk-news-swiper .swiper-wrapper { width: 100%; }
.bk-news-thumb { display: block; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--bk-bg); position: relative; }
.bk-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.bk-news-card:hover .bk-news-thumb img { transform: scale(1.08); }
.bk-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--bk-text-muted); font-size: 1.8rem; background: var(--bk-bg); }
.bk-news-body { padding-top: 12px; }
.bk-news-date { font-size: 0.78rem; color: var(--bk-text-muted); }
.bk-news-body h4 { font-size: 1rem; margin: 6px 0; line-height: 1.4; }
.bk-news-body p { font-size: 0.85rem; color: var(--bk-text-muted); margin: 0; }

.bk-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-quick-btn { display: flex; align-items: center; gap: 10px; background: var(--bk-bg); border-radius: 8px; padding: 14px 10px; font-size: 0.85rem; font-weight: 600; color: var(--bk-text); transition: all 0.25s; }
.bk-quick-btn:hover { background: var(--bk-primary); color: #fff; transform: translateY(-3px); }
.bk-quick-btn i { color: var(--bk-primary); }
.bk-quick-btn:hover i { color: #fff; }

/* ---------- 12. CARD GRID (archives) ---------- */
.bk-archive-wrap { padding: 50px 20px; }
.bk-archive-head h1 { font-size: 1.8rem; color: var(--bk-primary); margin-bottom: 26px; }
.bk-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bk-card-grid-1 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bk-card-grid-2 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.bk-card { background: var(--bk-surface); border-radius: var(--bk-radius); overflow: hidden; box-shadow: var(--bk-shadow); transition: transform var(--bk-transition), box-shadow var(--bk-transition); }
.bk-card:hover { transform: translateY(-8px); box-shadow: 0 16px 34px rgba(11,78,162,0.16); }
.bk-card-thumb { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.bk-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.bk-card:hover .bk-card-thumb img { transform: scale(1.1); }
.bk-card-overlay { position: absolute; inset: 0; background: rgba(11,78,162,0.5); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; opacity: 0; transition: opacity 0.3s; }
.bk-card:hover .bk-card-overlay { opacity: 1; }
.bk-card-body { padding: 18px; }
.bk-card-date { font-size: 0.78rem; color: var(--bk-primary); font-weight: 600; }
.bk-card-body h3 { font-size: 1.05rem; margin: 8px 0; line-height: 1.4; }
.bk-card-body p { font-size: 0.88rem; color: var(--bk-text-muted); margin: 0 0 12px; }
.bk-card-link { font-size: 0.85rem; font-weight: 700; color: var(--bk-primary); display: inline-flex; gap: 6px; align-items: center; }
.bk-notice-card-top { display: flex; justify-content: space-between; align-items: center; }
.bk-notice-card-actions { display: flex; justify-content: space-between; align-items: center; }
.bk-card-download { width: 34px; height: 34px; border-radius: 50%; background: var(--bk-bg); display: flex; align-items: center; justify-content: center; color: var(--bk-primary); }
.bk-card-download:hover { background: var(--bk-primary); color: #fff; }

.bk-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.bk-filter-btn { padding: 8px 20px; border-radius: 30px; border: 1px solid var(--bk-border); background: var(--bk-surface); color: var(--bk-text); cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: all 0.25s; }
.bk-filter-btn:hover, .bk-filter-btn.is-active { background: var(--bk-primary); color: #fff; border-color: var(--bk-primary); }

/* ---------- 13. GALLERY MASONRY ---------- */
.bk-gallery-masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bk-gallery-item { position: relative; border-radius: 8px; overflow: hidden; }
.bk-gallery-link { position: relative; display: block; }
.bk-gallery-link img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: transform 0.5s; }
.bk-gallery-item:hover .bk-gallery-link img { transform: scale(1.14); }
.bk-gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 14px; color: #fff; opacity: 0; transition: opacity 0.3s; gap: 8px; }
.bk-gallery-item:hover .bk-gallery-overlay { opacity: 1; }
.bk-gallery-overlay i { font-size: 1.3rem; }
.bk-gallery-overlay span:last-child { font-size: 0.85rem; font-weight: 600; }
.bk-pagination-wrap { text-align: center; margin-top: 30px; }

/* ---------- 14. DOWNLOAD CENTER ---------- */
.bk-download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bk-download-card { background: var(--bk-surface); border-radius: var(--bk-radius); padding: 24px; text-align: center; box-shadow: var(--bk-shadow); transition: transform 0.3s; }
.bk-download-card:hover { transform: translateY(-6px); }
.bk-download-card i { font-size: 2rem; color: var(--bk-primary); margin-bottom: 12px; }
.bk-download-card span { display: block; font-weight: 600; font-size: 0.9rem; }

/* ---------- 15. EVENT CALENDAR ---------- */
.bk-calendar { background: var(--bk-surface); border-radius: var(--bk-radius); padding: 20px; box-shadow: var(--bk-shadow); }
.bk-calendar-head { text-align: center; font-weight: 700; color: var(--bk-primary); margin-bottom: 14px; }
.bk-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.bk-calendar-dow span { font-weight: 700; color: var(--bk-text-muted); font-size: 0.8rem; padding-bottom: 8px; }
.bk-cal-day, .bk-cal-empty { padding: 8px 0; border-radius: 6px; font-size: 0.85rem; }
.bk-cal-day.bk-has-event { background: var(--bk-primary); color: #fff; font-weight: 700; cursor: help; }
.bk-event-meta-box { display: flex; gap: 30px; flex-wrap: wrap; background: var(--bk-surface); border-radius: var(--bk-radius); padding: 22px; box-shadow: var(--bk-shadow); margin: 20px 0 30px; }
.bk-event-meta-item { display: flex; gap: 12px; align-items: flex-start; }
.bk-event-meta-item i { font-size: 1.3rem; color: var(--bk-primary); margin-top: 3px; }
.bk-event-meta-item div { display: flex; flex-direction: column; }
.bk-events-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }

/* ---------- 16. SINGLE / PAGE ---------- */
.bk-single-wrap, .bk-page-wrap { padding: 50px 20px; }
.bk-single-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; }
.bk-single-title { font-size: 2rem; color: var(--bk-primary); margin: 0 0 14px; line-height: 1.3; }
.bk-single-meta { display: flex; gap: 20px; color: var(--bk-text-muted); font-size: 0.88rem; margin-bottom: 20px; flex-wrap: wrap; }
.bk-single-thumb { border-radius: var(--bk-radius); overflow: hidden; margin-bottom: 24px; }
.bk-single-content { line-height: 1.85; font-size: 1.02rem; }
.bk-single-content img { border-radius: 8px; }
.bk-related-title { font-size: 1.2rem; color: var(--bk-primary); margin: 20px 0; }

/* ---------- 17. WIDGETS / FOOTER ---------- */
.bk-footer { background-image: url('../images/fresh-water-texture-background-transparent-liquid.webp'); background-size: cover;
  background-repeat: no-repeat; background-position: center; background-color: var(--bk-primary-dark); color: #fff; margin-top: 40px; }
.bk-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 50px 20px 30px; }
footer h4, .footer-widget-title { font-size: 1.05rem; margin: 0 0 16px; color: #fff; position: relative; padding-bottom: 10px; }
footer h4::after, .footer-widget-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--bk-accent); }
.bk-footer p, .bk-footer li { font-size: 0.9rem; opacity: 0.9; line-height: 1.8; }
.bk-footer-menu li a:hover { text-decoration: underline; }
.bk-footer-social { display: flex; gap: 10px; margin-top: 12px; }
.bk-footer-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; }
.bk-footer-bottom { background: rgba(0,0,0,0.18); padding: 16px 0; }
.bk-footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; }
.bk-footer-bottom p { margin: 0; opacity: 0.85; }
.bk-nepali-date { font-weight: 600; }

.bk-back-to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--bk-primary); color: #fff; border: none; cursor: pointer; box-shadow: var(--bk-shadow); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--bk-transition); z-index: 400; }
.bk-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- 18. 404 ---------- */
.bk-404-wrap { text-align: center; padding: 90px 20px; }
.bk-404-icon { font-size: 3.4rem; color: var(--bk-primary); margin-bottom: 20px; }
.bk-404-wrap h1 { font-size: 5rem; margin: 0; color: var(--bk-primary); }
.bk-404-search { max-width: 400px; margin: 30px auto 0; }

/* ---------- 19. RESPONSIVE / DEVICE-FRIENDLY ---------- */
@media (max-width: 1024px) {
	.bk-services-grid { grid-template-columns: repeat(3, 1fr); }
	.bk-home-columns-grid { grid-template-columns: 1fr; }
	.bk-card-grid, .bk-gallery-masonry, .bk-download-grid { grid-template-columns: repeat(2, 1fr); }
	.bk-single-layout, .bk-events-layout { grid-template-columns: 1fr; }
	.bk-mega-inner { grid-template-columns: repeat(2, 1fr); }
	.bk-mega-panel { width: 100%; }
}

@media (max-width: 782px) {
	.bk-topbar-inner { flex-direction: column; align-items: flex-start; }
	.bk-identity-right { display: none; }
	.bk-primary-nav { display: none; }
	.bk-offcanvas-toggle { display: flex; }
	.bk-hero-static-grid { grid-template-columns: 1fr; text-align: center; padding: 40px 20px; }
	.bk-hero-btn-row { justify-content: center; }
	.bk-hero-static-art { order: -1; max-width: 240px; margin: 0 auto; }
	.bk-services-grid { grid-template-columns: repeat(2, 1fr); }
	.bk-service-item { border-right: none; border-bottom: 1px solid var(--bk-border); }
	.bk-card-grid, .bk-gallery-masonry, .bk-download-grid { grid-template-columns: 1fr; }
	.bk-hero-slide-content h2 { font-size: 1.7rem; }
	.bk-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
	.bk-footer-grid { grid-template-columns: 1fr; }
	.bk-quick-grid { grid-template-columns: 1fr; }
}

/* Device-friendly notice: shown once via main.js on very small / touch devices for mega menu tip */
.bk-device-tip { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--bk-primary); color: #fff; padding: 10px 18px; border-radius: 30px; font-size: 0.8rem; z-index: 500; box-shadow: var(--bk-shadow); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.bk-device-tip.is-visible { opacity: 1; }

/* AOS-safe defaults so content isn't hidden if JS fails */
[data-aos] { transition-property: transform, opacity; }

label {display: block;}

input, select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="submit"], button {
  width: 100%;
  background-color: #4CAF50;
  color: white;
  padding: 14px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

input[type="submit"]:hover, button:hover {
  background-color: #45a049;
}
textarea {
  /* Dimensions & Box Model */
  width: 100%;
  min-height: 120px;
  padding: 12px;
  box-sizing: border-box;
  
  /* Typography */
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  
  /* Visuals */
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  
  /* Behavior */
  resize: vertical; /* Allows vertical adjustment only */
}

/* State Changes */
input:focus, select:focus, textarea:focus {
  border-color: #0066cc;
  outline: none; /* Removes default browser ring */
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

textarea::placeholder {
  color: #888888;
}

.bk-single-content p {
	font-size: 1.2em;
}

/* Card Enhancements */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
}

.hover-transition img {
    transition: transform 0.5s ease, filter 0.5s ease;
}
.rounded-circle {
    border-radius: 50% !important;
}
.bk-card-grid-1 {
	text-align: center;
}
.bk-card-grid-1 h5{
	font-size: 1em;
	margin: 0;
}
.bk-card-grid-1 img {
	margin: 15px auto;
}
.text-center {
    text-align: center !important;
}
.border {
    border: 2px #ccc solid;
}
.border-white {
    border-opacity: 3;
    border-color: #ffffff;
}
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); !important;
}

.p-4 {
    padding: 1.5rem !important;
}


/* ---------- 16b. MAIN & ASIDE (SIDEBAR) LAYOUT ---------- */
/* Semantic Wrapper Elements for General Pages */
.bk-main-content {
	background: var(--bk-surface);
	border-radius: var(--bk-radius);
	padding: 30px;
	box-shadow: var(--bk-shadow);
	transition: background var(--bk-transition);
}

.bk-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Sidebar Widgets */
.bk-widget {
	background: var(--bk-surface);
	border-radius: var(--bk-radius);
	padding: 22px;
	box-shadow: var(--bk-shadow);
	border: 1px solid var(--bk-border);
	transition: background var(--bk-transition), border-color var(--bk-transition);
}

.bk-widget-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--bk-primary);
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--bk-border);
	position: relative;
}

.bk-widget-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 45px;
	height: 2px;
	background: var(--bk-accent);
}

/* Sidebar Navigation / Links Widget */
.bk-widget-menu li {
	border-bottom: 1px dashed var(--bk-border);
}

.bk-widget-menu li:last-child {
	border-bottom: none;
}

.bk-widget-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	font-size: 0.92rem;
	color: var(--bk-text);
	transition: color 0.25s, padding-left 0.25s;
}

.bk-widget-menu a:hover {
	color: var(--bk-primary);
	padding-left: 6px;
}

.bk-widget-menu a i {
	font-size: 0.8rem;
	color: var(--bk-primary);
}

/* Dark Mode Alignment (Safety Overrides) */
body.bk-mode-dark .bk-widget {
	border-color: var(--bk-border);
}
.btn-outline-primary {
    color: var(--bk-primary) !important;
    border-color: var(--bk-primary) !important;
}
.me-2 {
    margin-right: 0.5rem !important;
}
.mb-2 {
    margin-bottom: 0.5rem !important;
}
.btn {
    border: 1px #ccc solid;
    border-radius: 7px;
    padding: 2px 10px;
}
.btn:hover {
	color: var(--bk-primary) !important;;
	border-color: var(--bk-primary) !important;
}
.social-links { margin: 15px 0; }


/*Team Category*/
.bk-card-grid-1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 3 columns layout */
  gap: 20px; /* Adjust spacing between cards */
}

/* Force the first post to take up the entire first row */
.bk-card-grid-1 .first-featured-post {
  grid-column: 1 / -1; /* Spans from the first grid line to the last */
  justify-self: center; /* Centers the card box container itself horizontally */
  width: 100%;
  max-width: 320px; /* Optional: Prevents the featured card from stretching too wide */
}

/* Responsive fix: Stack vertically on mobile devices */
@media (max-width: 768px) {
  .bk-card-grid-1 {
    grid-template-columns: 1fr; /* Drops down to a 1-column list */
  }
}

/*Search Grid*/
/* --- Search Results Layout Base --- */
.bk-view-wrapper {
    display: transition;
    transition: all 0.3s ease;
}

/* --- Grid View Settings --- */
.bk-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* --- List View Settings --- */
.bk-view-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bk-view-list .bk-layout-item {
    width: 100%;
}

/* Optional style adjustment if your template-part card uses flex internally */
.bk-view-list .bk-layout-item article {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* --- Active Button Highlighting --- */
.bk-toggle-btn.active {
    background-color: #0073aa; /* Change to your theme color */
    color: #fff;
    border-color: #0073aa;
}
/*Pagination*/
.pagination {
  display: flex;
  justify-content: center;
  list-style: none; /* remove list bullets */
  padding: 50px 0;
  margin: 50px 0 0 0;
  border-top: 1px #ccc solid;
}

.pagination a {
  display: inline-block; /* let links fill the list item */
  padding: 3px 10px;
  text-decoration: none;
  border: 1px solid #ccc;
  color: #777;
  margin: 0 4px;
  border-radius: 5px; /* add rounded borders */
}
.pagination a:hover {
	color: var(--bk-primary);
	border-color: var(--bk-primary);
}

/*Contact Form*/
/* Container block */



/* Row wrapper layouts */
.water-form .form-field {
    margin-bottom: 10px;
}

.water-form .form-field-row {
    display: flex;
    gap: 20px;
}

.water-form .half-width {
    flex: 1;
}

/* Typography and standard fields */
.water-form label {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.water-form input[type="text"],
.water-form input[type="email"],
.water-form select,
.water-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.water-form input:focus,
.water-form select:focus,
.water-form textarea:focus {
    outline: none;
    border-color: #0288d1;
    box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.15);
}

/* Radio field inline configuration */
.water-form .radio-group .field-title {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
}

.water-form .radio-group .wpcf7-form-control-wrap {
    display: flex;
    gap: 20px;
}

.water-form .wpcf7-list-item {
    margin: 0 15px 0 0;
    display: inline-flex;
    align-items: center;
}

.water-form .wpcf7-list-item label {
    font-weight: normal;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Form Action Layout */
.water-form input[type="submit"] {
    background-color: #0288d1;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.water-form input[type="submit"]:hover {
    background-color: #01579b;
}

/* Mobile Screen optimization overrides */
@media (max-width: 600px) {
    .water-form .form-field-row {
        flex-direction: column;
        gap: 0;
    }
}
.wpcf7-not-valid-tip { font-size:.7em }
.wpcf7-form p{
	margin: 0;
}


