/* হেডার/ফুটারের হালকা বর্ডার ও ব্যাকগ্রাউন্ড — লাইট ও ডার্ক দুই থিমেই দেখা যায় */
.cshf-header,.cshf-footer,.cshf-nav{--cshf-a04:rgba(255,255,255,.04);--cshf-a08:rgba(255,255,255,.08);--cshf-a1:rgba(255,255,255,.1);--cshf-a15:rgba(255,255,255,.15);--cshf-a18:rgba(255,255,255,.18);--cshf-a2:rgba(255,255,255,.2);}
@supports (color: color-mix(in srgb, red, blue)){.cshf-header,.cshf-footer,.cshf-nav{--cshf-a04:color-mix(in srgb,currentColor 4%,transparent);--cshf-a08:color-mix(in srgb,currentColor 8%,transparent);--cshf-a1:color-mix(in srgb,currentColor 10%,transparent);--cshf-a15:color-mix(in srgb,currentColor 15%,transparent);--cshf-a18:color-mix(in srgb,currentColor 18%,transparent);--cshf-a2:color-mix(in srgb,currentColor 20%,transparent);}}
/* ===== overflow সেফটি ===== */
/* clip ব্যবহার করা হয়েছে — hidden দিলে position:sticky ভেঙে যায় */
html.cshf-active-site, body.cshf-active-site { overflow-x: clip; }
body.cshf-nav-lock { overflow: hidden !important; }

/* ===== টপ বার ===== */
.cshf-topbar { width: 100%; padding: 10px 20px; font-size: 14px; }
.cshf-topbar-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 16px; position: relative; flex-wrap: wrap; }
.cshf-topbar-msg { font-weight: 500; }
.cshf-topbar-link { text-decoration: underline; font-weight: 600; opacity: 0.95; }
.cshf-topbar-close { background: transparent; border: none; font-size: 18px; cursor: pointer; color: inherit; opacity: 0.7; padding: 0 8px; position: absolute; right: 0; }

/* ===== হেডার ===== */
.cshf-header { width: 100%; z-index: 9999; position: relative; transition: box-shadow 0.3s ease; max-width: 100vw; }
.cshf-header.cshf-sticky { position: sticky; top: 0; }
body.admin-bar .cshf-header.cshf-sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar .cshf-header.cshf-sticky { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .cshf-header.cshf-sticky { top: 0; } }
.cshf-header.cshf-scrolled.cshf-shadow-on-scroll { box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
.cshf-header.cshf-scrolled.cshf-shrink-on-scroll .cshf-header-inner { padding-top: 6px; padding-bottom: 6px; min-height: calc(var(--cshf-h, 70px) * 0.75); }
.cshf-header-inner { transition: padding 0.25s ease, min-height 0.25s ease; }
.cshf-header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 24px; max-width: 1240px; margin: 0 auto; min-height: var(--cshf-h, 70px); position: relative; z-index: 2; }
.cshf-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cshf-brand a { text-decoration: none; color: inherit; }
.cshf-logo { max-height: 45px; width: auto; display: block; }
.cshf-site-title { font-size: 1.35rem; font-weight: 700; white-space: nowrap; }
.cshf-nav { flex: 1; min-width: 0; }
.cshf-nav .cshf-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 24px; flex-wrap: wrap; }
.cshf-nav .cshf-menu li { position: relative; }
.cshf-nav .cshf-menu a { text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 6px; padding: 6px 0; transition: opacity 0.2s; }
.cshf-nav .cshf-menu a:hover { opacity: 0.75; }
.cshf-nav .cshf-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--cshf-nav-bg, #1a1a2e); padding: 8px 0; list-style: none; box-shadow: 0 8px 24px rgba(0,0,0,0.15); border-radius: 8px; z-index: 100; }
.cshf-nav .cshf-menu li:hover > .sub-menu, .cshf-nav .cshf-menu li:focus-within > .sub-menu { display: block; }
.cshf-nav .cshf-menu .sub-menu .sub-menu { top: 0; left: 100%; }
.cshf-nav .cshf-menu .sub-menu a { padding: 10px 18px; }
.cshf-menu-icon { display: inline-flex; align-items: center; line-height: 1; }
.cshf-menu-icon svg { width: 16px; height: 16px; }
.cshf-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.cshf-custom-html { display: flex; align-items: center; gap: 8px; }
.cshf-cta { display: inline-block; padding: 10px 20px; border-radius: 8px; text-decoration: none !important; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap; }
.cshf-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.cshf-search-toggle { background: none; border: none; color: inherit; cursor: pointer; padding: 6px; display: inline-flex; }
.cshf-search-bar { display: none; padding: 16px 24px; border-top: 1px solid var(--cshf-a08); }
.cshf-search-bar.cshf-open { display: block; }
.cshf-search-bar form { display: flex; gap: 8px; max-width: 700px; margin: 0 auto; }
.cshf-search-bar input { flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--cshf-a2); background: var(--cshf-a08); color: inherit; font-size: 14px; }
.cshf-search-bar button { padding: 10px 20px; background: var(--cshf-a15); border: none; border-radius: 8px; color: inherit; cursor: pointer; font-weight: 600; }
.cshf-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: inherit; flex-direction: column; gap: 5px; margin-left: auto; position: relative; z-index: 10001; }
.cshf-toggle span { display: block; width: 26px; height: 3px; background: currentColor; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.cshf-toggle.cshf-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.cshf-toggle.cshf-active span:nth-child(2) { opacity: 0; }
.cshf-toggle.cshf-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.cshf-overlay { display: none; position: fixed; top: var(--cshf-nav-top, 70px); left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9997; opacity: 0; transition: opacity 0.3s; }
.cshf-overlay.cshf-active { display: block; opacity: 1; }

/* ============================================================
   ফুটার — সোশ্যাল উপরে, মেনু নিচে, কপিরাইট একদম নিচে
   ============================================================ */
.cshf-footer { width: 100%; text-align: center; margin-top: auto; overflow-x: hidden; }
.cshf-footer-inner { max-width: 1240px; margin: 0 auto; }

/* উপরের সেকশন: সোশ্যাল (উপরে) → মেনু (নিচে) */
.cshf-footer-top {
    padding: 26px 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* সোশ্যাল আইকন — সারি */
.cshf-footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.cshf-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cshf-a08);
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
    color: inherit;
}
.cshf-social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: var(--cshf-a18);
}

/* মেনু — সারি আকারে (ডান-বাম) */
.cshf-footer-menu {
    width: 100%;
    display: flex;
    justify-content: center;
}
.cshf-footer-menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cshf-footer-menu-list li { margin: 0; padding: 0; }
.cshf-footer-menu-list a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 4px 0;
}
.cshf-footer-menu-list a:hover { opacity: 1; }
.cshf-footer-menu-list .sub-menu { display: none; }

/* নিচের সেকশন: কপিরাইট — আলাদা */
.cshf-footer-bottom {
    border-top: 1px solid var(--cshf-a1);
    padding: 14px 24px;
}
.cshf-footer-text {
    margin: 0;
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.6;
    word-break: break-word;
}
.cshf-footer-custom {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.85;
}

/* ============================================================
   মোবাইল — গ্যাপ কম
   ============================================================ */
@media (max-width: 900px) {
    .cshf-nav {
        position: fixed;
        top: var(--cshf-nav-top, 70px);
        right: 0;
        width: 280px;
        max-width: 82vw;
        height: calc(100vh - var(--cshf-nav-top, 70px));
        height: calc(100dvh - var(--cshf-nav-top, 70px));
        max-height: calc(100vh - var(--cshf-nav-top, 70px));
        max-height: calc(100dvh - var(--cshf-nav-top, 70px));
        background: var(--cshf-nav-bg, #1a1a2e) !important;
        color: var(--cshf-nav-color, #ffffff);
        padding: 0;
        display: block;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.35s;
        box-shadow: -8px 0 32px rgba(0,0,0,0.2);
        z-index: 9998;
        overflow-y: auto;
        overflow-x: hidden;
        border-left: 1px solid var(--cshf-a08);
    }
    .cshf-nav.cshf-open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
    }
    .cshf-nav .cshf-menu { flex-direction: column; gap: 0; padding: 0; flex-wrap: nowrap; }
    .cshf-nav .cshf-menu li { width: 100%; }
    .cshf-nav .cshf-menu a { padding: 14px 20px; border-bottom: 1px solid var(--cshf-a08); white-space: normal; }
    .cshf-nav .cshf-menu li:last-child > a { border-bottom: none; }
    .cshf-nav .cshf-menu .sub-menu { position: static; display: block; box-shadow: none; padding: 0 0 0 16px; background: transparent; border-radius: 0; }
    .cshf-nav .cshf-menu .sub-menu a { padding: 10px 20px 10px 36px; border-bottom: 1px solid var(--cshf-a04); }

    .cshf-toggle { display: flex; order: 3; margin-left: 0; }
    .cshf-header-inner { padding: 12px 16px; gap: 12px; }
    .cshf-brand { min-width: 0; flex-shrink: 1; }
    .cshf-site-title { overflow: hidden; text-overflow: ellipsis; max-width: 48vw; font-size: 1.15rem; }
    .cshf-actions { order: 2; margin-left: auto; gap: 8px; }
    .cshf-cta { padding: 8px 14px; font-size: 13px; }

    /* 🔽 মোবাইলে গ্যাপ ছোট */
    .cshf-footer-top { padding: 18px 16px 14px; gap: 10px; }
    .cshf-footer-socials { gap: 8px; }
    .cshf-social-icon { width: 32px; height: 32px; }
    .cshf-social-icon svg { width: 16px; height: 16px; }
    .cshf-footer-menu-list { gap: 4px 16px; }
    .cshf-footer-menu-list a { font-size: 13px; padding: 3px 0; }
    .cshf-footer-bottom { padding: 12px 16px; }
    .cshf-footer-text { font-size: 12px; }

    .cshf-topbar-inner { flex-direction: column; gap: 4px; }
    .cshf-topbar-close { position: static; }
}

@media (max-width: 500px) {
    .cshf-footer-top { padding: 16px 14px 12px; gap: 8px; }
    .cshf-footer-socials { gap: 6px; }
    .cshf-social-icon { width: 30px; height: 30px; }
    .cshf-footer-menu-list { gap: 2px 12px; }
    .cshf-footer-menu-list a { font-size: 12.5px; }
}

@media (max-width: 500px) {
    .cshf-cta { padding: 7px 11px; font-size: 12.5px; }
}
.cshf-header a:focus-visible, .cshf-header button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ড্রপডাউন তীর ও অ্যাক্টিভ আইটেম */
.cshf-nav .cshf-menu > .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; }
.cshf-nav .cshf-menu .current-menu-item > a, .cshf-nav .cshf-menu .current-menu-ancestor > a { font-weight: 700; box-shadow: inset 0 -2px 0 currentColor; }
@media (max-width: 900px) {
    .cshf-nav .cshf-menu > .menu-item-has-children > a::after { display: none; }
    .cshf-nav .cshf-menu .current-menu-item > a, .cshf-nav .cshf-menu .current-menu-ancestor > a { box-shadow: none; background: var(--cshf-a08); }
}
@media (prefers-reduced-motion: reduce) {
    .cshf-header *, .cshf-nav, .cshf-overlay, .cshf-social-icon, .cshf-cta { transition: none !important; }
}

/* ট্রান্সপারেন্ট হেডার (পেজ অনুযায়ী) — স্ক্রলে সলিড হয় */
.cshf-header.cshf-transparent { position: fixed; top: 0; left: 0; right: 0; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.cshf-header.cshf-transparent:not(.cshf-scrolled) { background-color: transparent !important; box-shadow: none !important; }
body.admin-bar .cshf-header.cshf-transparent { top: 32px; }
@media (max-width: 782px) { body.admin-bar .cshf-header.cshf-transparent { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .cshf-header.cshf-transparent { top: 0; } }

/* ===== হেডার ডিজাইন/লেআউট ===== */
@media (min-width: 901px) {
    .cshf-layout-center .cshf-header-inner { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
    .cshf-layout-center .cshf-brand { width: 100%; justify-content: center; }
    .cshf-layout-center .cshf-nav { flex: 0 1 auto; order: 2; }
    .cshf-layout-center .cshf-nav .cshf-menu { justify-content: center; }
    .cshf-layout-center .cshf-actions { order: 3; }
    .cshf-layout-split .cshf-nav .cshf-menu { justify-content: center; }
}
.cshf-header.cshf-layout-floating { width: calc(100% - 24px); margin: 10px auto 0; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.cshf-header.cshf-layout-floating.cshf-sticky { top: 10px; }

/* ===== ফুটার লেআউট ===== */
/* কলাম: মেনু বামে, সোশ্যাল ডানে, নিচে কপিরাইট */
.cshf-footer-layout-columns .cshf-footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; text-align: left; padding: 32px 24px 24px; }
.cshf-footer-layout-columns .cshf-footer-menu { order: 1; width: auto; justify-content: flex-start; }
.cshf-footer-layout-columns .cshf-footer-menu-list { flex-direction: column; align-items: flex-start; gap: 10px; }
.cshf-footer-layout-columns .cshf-footer-socials { order: 2; justify-content: flex-end; }

/* বার: এক সারিতে (কপিরাইটের আলাদা রঙ এখানে প্রযোজ্য নয়) */
.cshf-footer-layout-bar .cshf-footer-top, .cshf-footer-layout-bar .cshf-footer-bottom { display: contents; }
.cshf-footer-layout-bar .cshf-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 16px 24px; text-align: left; }
.cshf-footer-layout-bar .cshf-footer-text, .cshf-footer-layout-bar .cshf-footer-custom { order: 1; margin: 0; }
.cshf-footer-layout-bar .cshf-footer-menu { order: 2; width: auto; }
.cshf-footer-layout-bar .cshf-footer-socials { order: 3; }

/* মিনিমাল */
.cshf-footer-layout-minimal .cshf-footer-menu { display: none; }
.cshf-footer-layout-minimal .cshf-footer-top { padding: 16px 16px 6px; }
.cshf-footer-layout-minimal .cshf-footer-bottom { border-top: 0; padding-top: 4px; }

@media (max-width: 900px) {
    .cshf-footer-layout-columns .cshf-footer-top { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px 14px; }
    .cshf-footer-layout-columns .cshf-footer-menu, .cshf-footer-layout-columns .cshf-footer-socials { order: 0; justify-content: center; }
    .cshf-footer-layout-columns .cshf-footer-menu-list { flex-direction: row; align-items: center; gap: 4px 16px; }
    .cshf-footer-layout-bar .cshf-footer-inner { flex-direction: column; justify-content: center; text-align: center; padding: 16px; }
    .cshf-footer-layout-bar .cshf-footer-text, .cshf-footer-layout-bar .cshf-footer-custom, .cshf-footer-layout-bar .cshf-footer-menu, .cshf-footer-layout-bar .cshf-footer-socials { order: 0; }
}

/* ===== ফুটার উইজেট কলাম ===== */
.cshf-footer-widgets { display: grid; grid-template-columns: repeat(var(--cshf-cols, 4), minmax(0, 1fr)); gap: 32px; padding: 40px 24px 12px; text-align: left; }
.cshf-fw-title { margin: 0 0 14px; font-size: 1rem; font-weight: 700; color: inherit; }
.cshf-fw-text { font-size: 14px; line-height: 1.7; opacity: 0.9; }
.cshf-fw-text p { margin: 0 0 10px; }
.cshf-fw-text a { color: inherit; text-decoration: underline; }
.cshf-fw-menu .cshf-footer-menu-list { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; }
.cshf-fw-form { display: flex; gap: 8px; margin-top: 12px; }
.cshf-fw-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--cshf-a2); background: var(--cshf-a08); color: inherit; font-size: 14px; }
.cshf-fw-form button { padding: 10px 16px; border: none; border-radius: 8px; background: var(--cshf-a18); color: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
@media (max-width: 900px) {
    .cshf-footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px 16px 8px; gap: 24px; }
}
@media (max-width: 500px) {
    .cshf-footer-widgets { grid-template-columns: 1fr; }
}

/* ===== স্মার্ট হেডার (নিচে স্ক্রলে লুকায়) ===== */
.cshf-header.cshf-hide-on-scroll { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cshf-header.cshf-hide-on-scroll.cshf-hidden { transform: translateY(-110%); }

/* ===== ড্রপডাউন অ্যানিমেশন (ডেস্কটপ) ও মোবাইল অ্যাকর্ডিয়ন ===== */
@keyframes cshf-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cshf-sub-toggle { display: none; }
@media (min-width: 901px) {
    .cshf-nav .cshf-menu li:hover > .sub-menu, .cshf-nav .cshf-menu li:focus-within > .sub-menu { animation: cshf-fade 0.2s ease; }
}
@media (max-width: 900px) {
    .cshf-nav .cshf-menu .sub-menu { display: none; }
    .cshf-nav .cshf-menu li.cshf-sub-open > .sub-menu { display: block; }
    .cshf-nav .cshf-menu li.menu-item-has-children { position: relative; }
    .cshf-nav .cshf-menu li.menu-item-has-children > a { padding-right: 56px; }
    .cshf-sub-toggle { display: block; position: absolute; top: 0; right: 0; width: 52px; height: 48px; background: none; border: 0; border-left: 1px solid var(--cshf-a08); color: inherit; cursor: pointer; }
    .cshf-sub-toggle::before { content: ""; display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
    .cshf-sub-open > .cshf-sub-toggle::before { transform: rotate(-135deg) translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
    .cshf-nav .sub-menu { animation: none !important; }
    .cshf-header.cshf-hide-on-scroll { transition: none; }
}
