/* =====================================================================
   AWNGĀR – "Editorial Cut" layer  (Design direction B)
   ---------------------------------------------------------------------
   Loaded after brand.css, so these rules win. What it changes:
     1. Header      – black bar, numbered menu (01 SPACE …), CONTACT button,
                      social icons moved OUT of the menu
     2. Social rail – small "FOLLOW" strip fixed on the left edge (desktop)
     3. Home hero   – big stacked tagline, slide counter, thin red cut line
     4. Inner pages – bold title, posts as a numbered index (+ / − toggles)
     5. Back to top – black tab on the right edge with scroll progress
     6. Lightbox    – split view: image left, info panel right
   To go back to the old look, remove the editorial.css <link> in
   layouts/app.blade.php (the Blade changes still work without it).
   ===================================================================== */


/* ---------- 1. Header ---------- */
.header,
.header-page {
    padding: 14px 80px;
    background: var(--aw-black);
    border-bottom: 0;
}
.header-page::after { display: none; }          /* old red stripe, not used in this design */
.logo-image { width: 140px; }

/* desktop nav = menu + CONTACT button on one line */
.main-nav-bar { justify-content: flex-end; align-items: center; }
ul.main-menu li a,
ul.main-menu-page li > a { color: #fff; font-size: 13px; letter-spacing: 2px; }
ul.main-menu > li > a::after { bottom: 12px; }

/* the small "01" number in front of each menu label */
.aw-num { margin-right: 8px; color: #8c8c8c; font-weight: 500; transition: color .2s ease; }
ul.main-menu > li:hover .aw-num { color: var(--aw-red); }

.aw-visit {
    margin-left: 18px; padding: 11px 18px;
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid #fff; color: #fff; text-decoration: none;
    font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease;
}
.aw-visit:hover { background: var(--aw-red); border-color: var(--aw-red); color: #fff; }


/* ---------- 2. Social rail (left edge, desktop only) ---------- */
.aw-rail {
    position: fixed; left: 0; top: 50%; z-index: 960;
    transform: translateY(-50%);
    width: 52px; padding: 18px 0 8px;
    display: none; flex-direction: column; align-items: center;
    background: #fff; border: 1px solid #e3e3e3; border-left: 0;
}
@media (min-width: 992px) { .aw-rail { display: flex; } }
.aw-rail__label {
    writing-mode: vertical-rl; transform: rotate(180deg);
    color: #6b6b6b; font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
}
.aw-rail__line { width: 1px; height: 28px; margin: 12px 0 6px; background: var(--aw-ink); }
.aw-rail a {
    width: 44px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--aw-ink); font-size: 16px; text-decoration: none;
    transition: color .2s ease;
}
.aw-rail a:hover { color: var(--aw-red); }


/* ---------- 3. Home hero ---------- */
/* the soft red shard becomes one thin, sharp diagonal cut
   (kept on the right half so it never runs through the tagline) */
.slider-container::after {
    background: var(--aw-red);
    clip-path: polygon(46% 100%, 100% 56%, 100% 58.5%, 49% 100%);
    mix-blend-mode: normal;
}
.aw-hero-text { left: 80px; bottom: 80px; max-width: 760px; }
.aw-hero-text__kicker {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 22px; padding: 0;
    background: none; clip-path: none;
    color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 500; letter-spacing: 4px;
}
.aw-hero-text__kicker::before { content: ""; width: 36px; height: 1px; background: var(--aw-red); }
.aw-hero-text__title {
    font-size: clamp(44px, 6.4vw, 96px); font-weight: 700;
    line-height: .95; letter-spacing: -1.5px;
}
.aw-hero-text__title span { display: block; }
.aw-hero-text__title .is-red { color: var(--aw-red); }

/* slide counter "01 — 04" (updated in pages/home.blade.php) */
.aw-hero-count {
    position: fixed; right: 80px; bottom: 80px; z-index: 900;
    color: rgba(255, 255, 255, .7); font-size: 13px; letter-spacing: 3px;
}
.aw-hero-count b { color: #fff; font-weight: 600; }


/* ---------- 4. Inner pages + posts ---------- */
.content-wrapper h1 {
    padding-left: 0;
    font-size: clamp(32px, 3.8vw, 56px); font-weight: 700; letter-spacing: -.5px;
}
.content-wrapper h1::before { display: none; }
.content-wrapper h2 { margin-left: 0; }

/* posts = numbered index (partials/posts.blade.php) */
.aw-posts { margin-top: 64px; border-top: 3px solid var(--aw-ink); }
.aw-post { border-bottom: 1px solid var(--aw-grey); }

.aw-post__head {
    display: grid; grid-template-columns: 120px minmax(0, 1fr) 44px;
    gap: 24px; align-items: center;
    padding: 26px 0; cursor: pointer;
}
.aw-post__head h3 {
    font-size: clamp(22px, 2vw, 28px); font-weight: 600;
    text-transform: none; letter-spacing: 0;
}
.aw-post__num {
    color: #c4c4c4; font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -1.5px;
    transition: color .2s ease, font-size .25s ease;
}
.aw-post__head:hover .aw-post__num { color: var(--aw-ink); }
.aw-post__head:not(.collapsed) .aw-post__num { color: var(--aw-red); font-size: 80px; }

/* + / − toggle drawn with two lines (no icon font needed) */
.aw-post__toggle {
    position: relative; width: 44px; height: 44px;
    border: 1px solid var(--aw-ink); color: var(--aw-ink);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.aw-post__toggle::before,
.aw-post__toggle::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 14px; height: 2px; background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform .25s ease;
}
.aw-post__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.aw-post__head:hover .aw-post__toggle { border-color: var(--aw-red); color: var(--aw-red); }
.aw-post__head:not(.collapsed) .aw-post__toggle { background: var(--aw-ink); border-color: var(--aw-ink); color: #fff; }
.aw-post__head:not(.collapsed) .aw-post__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }  /* + becomes − */

/* opened content lines up with the title column */
.aw-post__content { padding: 0 0 32px 144px; }

/* child posts: simple rows inside the post */
.aw-child { margin: 0; padding: 0; background: none; border: 0 !important; border-top: 1px solid #e6e6e6 !important; }
.aw-child .aw-post__head { grid-template-columns: minmax(0, 1fr) 36px; padding: 18px 0; }
.aw-child .aw-post__toggle { width: 36px; height: 36px; }
.aw-child .aw-post__head h4 { font-size: 18px; text-transform: none; letter-spacing: 0; }


/* ---------- 5. Back to top ---------- */
.aw-top {
    position: fixed; right: 0; bottom: 48px; z-index: 960;
    width: 46px; height: 160px; padding: 14px 0;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    border: 0; background: var(--aw-ink); color: #fff; cursor: pointer;
    transform: translateX(100%);                 /* hidden off-screen until you scroll */
    transition: transform .3s ease, background .2s ease;
}
.aw-top.is-visible { transform: none; }
.aw-top:hover { background: var(--aw-red); }
.aw-top__track { position: relative; width: 2px; height: 56px; background: #444; }
.aw-top__fill { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; background: var(--aw-red); }
.aw-top:hover .aw-top__fill { background: #fff; }
.aw-top__pct { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 600; letter-spacing: 2px; }


/* ---------- 6. Lightbox (partials/image-modal.blade.php + js/lightbox.js) ---------- */
body.aw-lb-open { overflow: hidden; }
.aw-lb {
    position: fixed; inset: 0; z-index: 2000;
    display: grid; grid-template-columns: minmax(0, 1fr) 360px;
    background: #000; color: #fff;
}
.aw-lb[hidden] { display: none; }

.aw-lb__stage {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding: 56px 56px 100px;
}
.aw-lb__img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    cursor: zoom-in; user-select: none;
    transition: transform .2s ease;
}
.aw-lb.is-zoomed .aw-lb__img { cursor: grab; transition: none; }

.aw-lb__nav { position: absolute; left: 56px; bottom: 28px; display: flex; }
.aw-lb__nav button {
    width: 56px; height: 44px; border: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, color .2s ease;
}
.aw-lb__prev { background: #fff; color: #000; }
.aw-lb__next { background: var(--aw-red); color: #fff; }
.aw-lb__prev:hover { background: var(--aw-red); color: #fff; }
.aw-lb__next:hover { background: #fff; color: #000; }

.aw-lb__panel {
    display: flex; flex-direction: column; gap: 28px;
    padding: 40px 36px; overflow-y: auto;
    border-left: 1px solid #262626;
}
.aw-lb__top { display: flex; align-items: center; justify-content: space-between; }
.aw-lb__count { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.aw-lb__count small { color: #8c8c8c; font-size: 18px; font-weight: 500; }
.aw-lb__close {
    width: 44px; height: 44px; border: 1px solid #fff; background: transparent; color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, border-color .2s ease;
}
.aw-lb__close:hover { background: var(--aw-red); border-color: var(--aw-red); }
.aw-lb__bar { width: 40px; height: 3px; background: var(--aw-red); }
.aw-lb__group { color: #8c8c8c; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.aw-lb__title { margin: 10px 0 0; color: #fff; font-size: 26px; font-weight: 500; line-height: 1.25; }
.aw-lb__caption { margin: 12px 0 0; color: #bdbdbd; font-size: 14px; line-height: 1.75; }

.aw-lb__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: auto; }
.aw-lb__thumbs button { aspect-ratio: 1; padding: 0; border: 0; background: #222; opacity: .45; transition: opacity .2s ease; }
.aw-lb__thumbs button:hover { opacity: .85; }
.aw-lb__thumbs button.is-active { opacity: 1; outline: 2px solid var(--aw-red); outline-offset: -2px; }
.aw-lb__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

.aw-lb__actions { display: flex; gap: 10px; }
.aw-lb__actions > * {
    flex: 1; height: 44px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid #444; background: transparent; color: #fff; text-decoration: none;
    font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
    transition: border-color .2s ease;
}
.aw-lb__actions > *:hover { border-color: var(--aw-red); color: #fff; }

/* one image only → no arrows / thumbnails */
.aw-lb.is-single .aw-lb__nav,
.aw-lb.is-single .aw-lb__thumbs { display: none; }


/* ---------- Smaller screens ---------- */
@media (max-width: 992px) {
    .header, .header-page { padding: 10px 28px; }
    .aw-hero-text { left: 28px; bottom: 80px; }
    .aw-hero-count { display: none; }               /* phones: the slider bars are enough */
    .slider-container::after { display: none; }     /* phones: no room for the cut line beside the text */

    .aw-post__head { grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 14px; }
    .aw-post__num { font-size: 28px; }
    .aw-post__head:not(.collapsed) .aw-post__num { font-size: 40px; }
    .aw-post__toggle { width: 40px; height: 40px; }
    .aw-post__content { padding-left: 0; }

    .aw-top { width: 40px; height: 130px; bottom: 24px; }
    .aw-top__track { height: 40px; }

    /* lightbox: image on top, info panel underneath */
    .aw-lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
    .aw-lb__stage { padding: 24px 16px 76px; }
    .aw-lb__nav { left: 16px; bottom: 16px; }
    .aw-lb__panel { max-height: 42vh; padding: 20px; gap: 14px; border-left: 0; border-top: 1px solid #262626; }
    .aw-lb__count { font-size: 30px; }
    .aw-lb__title { font-size: 20px; }
    .aw-lb__thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 0; }
}


/* =====================================================================
   7. Content blocks used in config/site.php (Koyla content)
   ===================================================================== */
.aw-page-body { font-size: 1.15rem; line-height: 1.85; }
.aw-lead { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5; font-weight: 400; color: var(--aw-ink); max-width: 900px; }
.aw-bn { margin: 28px 0 4px; font-family: "Hind Siliguri", var(--aw-font); font-size: clamp(26px, 3vw, 40px); font-weight: 600; color: var(--aw-red); }
.aw-note { color: var(--aw-grey-2); font-size: 14px; letter-spacing: 3px; text-transform: uppercase; }

/* small link under the home tagline */
.aw-hero-text__link {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
    padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .5);
    color: #fff; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}
.aw-hero-text__link:hover { color: #fff; border-color: var(--aw-red); }

/* figures row: 150M+ / 400K+ … */
.aw-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 36px 0; border-top: 3px solid var(--aw-ink);
}
.aw-stat { padding: 20px 24px 22px 0; border-bottom: 1px solid var(--aw-grey); }
.aw-stat b { display: block; color: var(--aw-red); font-size: clamp(34px, 3.4vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -1px; }
.aw-stat span { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.4; }
.aw-stat small { display: block; margin-top: 4px; color: var(--aw-grey-2); font-size: 13px; line-height: 1.4; }
.aw-stats--small { margin: 24px 0; border-top-width: 1px; }
.aw-stats--small .aw-stat b { font-size: 30px; }

/* lists */
.aw-list { margin: 0 0 1rem; padding: 0; list-style: none; max-width: 900px; }
.aw-list li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid #eee; }
.aw-list li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 12px; height: 2px; background: var(--aw-red); }
.aw-list--count li { padding-left: 0; }
.aw-list--count li::before { display: none; }
.aw-list--count b { display: inline-block; min-width: 44px; color: var(--aw-red); font-size: 22px; }
.aw-list--cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 32px; }
.aw-list--cols span { display: block; color: var(--aw-grey-2); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

/* sponsor table */
.aw-table-wrap { overflow-x: auto; margin: 20px 0; }
.aw-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.aw-table th { padding: 12px 14px; background: var(--aw-ink); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; text-align: left; }
.aw-table td { padding: 11px 14px; border-bottom: 1px solid #eee; }
.aw-table td:nth-child(2) { width: 80px; font-weight: 600; }
.aw-table td:nth-child(3) { width: 140px; color: #555; }
.aw-table__group td { padding-top: 18px; color: var(--aw-red); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border-bottom: 2px solid var(--aw-red); }

/* button link */
.aw-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px;
    background: var(--aw-red); color: #fff !important; text-decoration: none;
    font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    transition: background .2s ease;
}
.aw-btn:hover { background: var(--aw-ink); }


/* =====================================================================
   8. Languages (English / Bangla)
   ===================================================================== */
/* EN | বাংলা switcher in the header (partials/language-switch.blade.php) */
.aw-lang { display: inline-flex; align-items: stretch; border: 1px solid rgba(255, 255, 255, .35); }
.aw-lang a {
    display: flex; align-items: center; padding: 0 12px; min-height: 42px;
    color: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 600; letter-spacing: 1px;
    text-decoration: none; transition: color .2s ease, background .2s ease;
}
.aw-lang a[lang="bn"] { font-family: "Hind Siliguri", sans-serif; font-size: 14px; letter-spacing: 0; }
.aw-lang a.is-active { background: #fff; color: #000; }
.aw-lang a:not(.is-active):hover { color: var(--aw-red); }
@media (max-width: 767px) { .aw-lang a { min-height: 34px; padding: 0 9px; } }

/* Bangla pages: Bangla font first, and no letter-spacing
   (spacing breaks the joined Bangla letters apart) */
html[lang="bn"] body { font-family: "Hind Siliguri", "Jost", system-ui, sans-serif; }
html[lang="bn"] body * { letter-spacing: 0 !important; }
html[lang="bn"] .aw-hero-text__title { line-height: 1.15; }
/* Bangla letters look smaller than Latin at the same size → slightly bigger labels */
html[lang="bn"] ul.main-menu li a,
html[lang="bn"] .aw-visit { font-size: 16px; }
html[lang="bn"] .aw-hero-text__kicker { font-size: 16px; }
html[lang="bn"] .aw-hero-text__link { font-size: 17px; }
html[lang="bn"] .aw-rail__label { font-size: 13px; }
html[lang="bn"] .content-wrapper h2 { font-size: 20px; }
html[lang="bn"] .aw-post__head h4,
html[lang="bn"] .aw-stat span { font-size: 16px; }


/* =====================================================================
   9. Light / dark layout (switch in the header → partials/theme-switch)
   The choice is saved in the browser; first visit follows the device setting.
   ===================================================================== */
.aw-theme-toggle {
    width: 42px; height: 42px; margin-left: 10px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.aw-theme-toggle:hover { border-color: var(--aw-red); color: var(--aw-red); }
.aw-theme-toggle .aw-sun { display: none; }
html[data-theme="dark"] .aw-theme-toggle .aw-sun { display: block; }
html[data-theme="dark"] .aw-theme-toggle .aw-moon { display: none; }
@media (max-width: 767px) { .aw-theme-toggle { width: 34px; height: 34px; margin-left: 0; } }

html[data-theme="dark"] {
    --aw-ink: #ececec;
    --aw-grey: #2c2c2c;
    --aw-grey-2: #9a9a9a;
    color-scheme: dark;
}
html[data-theme="dark"] body { background: #0e0e0e; color: #d9d9d9; }
html[data-theme="dark"] .content-wrapper h1,
html[data-theme="dark"] .aw-post__head h3,
html[data-theme="dark"] .aw-child .aw-post__head h4,
html[data-theme="dark"] .aw-lead,
html[data-theme="dark"] .content-wrapper h5,
html[data-theme="dark"] .content-wrapper h6 { color: #f2f2f2; }
html[data-theme="dark"] .aw-post__num { color: #3d3d3d; }
html[data-theme="dark"] .aw-post__head:hover .aw-post__num { color: #f2f2f2; }
html[data-theme="dark"] .aw-post__head:not(.collapsed) .aw-post__toggle { background: #f2f2f2; border-color: #f2f2f2; color: #000; }
html[data-theme="dark"] .aw-child { border-top-color: #262626 !important; }
html[data-theme="dark"] .aw-list li,
html[data-theme="dark"] .aw-table td { border-color: #262626; }
html[data-theme="dark"] .aw-table th { background: #f2f2f2; color: #000; }
html[data-theme="dark"] .aw-table td:nth-child(3) { color: #a8a8a8; }
html[data-theme="dark"] .aw-pdf { background: #161616; border-color: #2c2c2c; color: #f2f2f2; }
html[data-theme="dark"] .aw-rail { background: #161616; border-color: #2c2c2c; }
html[data-theme="dark"] .aw-rail a { color: #e6e6e6; }
html[data-theme="dark"] .aw-rail__label { color: #9a9a9a; }
html[data-theme="dark"] .aw-rail__line { background: #e6e6e6; }
html[data-theme="dark"] .see-more-link:hover { color: #fff; }
html[data-theme="dark"] .aw-btn:hover { background: #f2f2f2; color: #000 !important; }
html[data-theme="dark"] .aw-page-body a:not(.aw-btn),
html[data-theme="dark"] .aw-post__body a { color: #ff4d4e; }
html[data-theme="dark"] .text-muted { color: #9a9a9a !important; }
html[data-theme="dark"] .border { border-color: #2c2c2c !important; }
html[data-theme="dark"] .gallery-item img { background: #1a1a1a; }
html[data-theme="dark"] .footer { border-top: 1px solid #1e1e1e; }
html[data-theme="dark"] .aw-top { background: #1f1f1f; color: #fff; border: 1px solid #333; border-right: 0; }
html[data-theme="dark"] .aw-top:hover { background: var(--aw-red); }


/* =====================================================================
   10. Sticky menu + dropdowns open right under the header bar
   ===================================================================== */
/* inner pages: the black header stays at the top while scrolling (home already has a fixed header) */
.header-page {
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -18px rgba(0, 0, 0, .6);
}

@media (min-width: 768px) {
    /* menu items fill the full height of the header bar, so a dropdown (top: 100%)
       starts exactly at the bottom edge of the bar */
    .header, .header-page { padding-top: 0; padding-bottom: 0; align-items: stretch !important; }
    .header .logo { display: flex; align-items: center; padding: 14px 0; }
    .main-nav-bar { align-items: stretch !important; }
    .main-nav-bar > .aw-visit,
    .main-nav-bar > .aw-lang,
    .main-nav-bar > .aw-theme-toggle { align-self: center; }
    ul.main-menu { display: flex; }
    ul.main-menu > li { display: flex; }
    ul.main-menu > li > a { display: flex; align-items: center; }
    ul.main-menu > li > a::after { bottom: 22px; }
    ul.main-menu li:hover ul.submenu1 { top: 100%; margin-top: 0; }
}


/* =====================================================================
   11. Footer social links (partials/footer.blade.php)
   ===================================================================== */
.aw-footer__social { display: flex; align-items: center; gap: 8px; }
.aw-footer__social-label {
    display: flex; align-items: center; gap: 12px; margin-right: 10px;
    color: rgba(255, 255, 255, .55); font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
}
.aw-footer__social-label::after { content: ""; width: 28px; height: 1px; background: var(--aw-red); }
.aw-footer__social a {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .85);
    font-size: 15px; text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.aw-footer__social a:hover,
.aw-footer__social a:focus-visible {
    background: var(--aw-red); border-color: var(--aw-red); color: #fff; transform: translateY(-2px);
}
@media (max-width: 575px) {
    .aw-footer__social { flex-wrap: wrap; }
    .aw-footer__social-label { width: 100%; margin: 0 0 6px; }
}


/* =====================================================================
   12. Compact header (redesign Nov 2026)
   The new menu has 7 items, so the old header (big logo + 22px gaps) broke into
   two rows. Now: smaller logo, tighter items, one slim bar of 72px.
   - wide screens (1400px+): numbers "01 …" shown
   - 1100–1399px: numbers hidden, a little less space between items
   - below 1100px: the mobile menu (☰) is used, so the bar never wraps
   ===================================================================== */
@media (min-width: 768px) {
    .header, .header-page { flex-wrap: nowrap !important; min-height: 72px; padding-left: 48px; padding-right: 48px; }
    .header .logo { padding: 6px 0; flex-shrink: 0; }
    .header .logo-image { width: 82px !important; height: auto; }

    .main-nav-bar { flex-wrap: nowrap; }
    ul.main-menu { flex-wrap: nowrap; }
    ul.main-menu > li > a,
    ul.main-menu > li:nth-last-child(2) > a,
    ul.main-menu > li:last-child > a { padding: 0 14px !important; font-size: 12px; letter-spacing: 1.8px; white-space: nowrap; }
    ul.main-menu > li > a::after { left: 14px; right: 14px; bottom: 18px; }
    .aw-num { margin-right: 6px; }

    /* dropdowns start right under their own item */
    ul.main-menu > li:hover > ul.submenu1 { left: 0 !important; right: auto !important; }
    ul.main-menu > li.menu-right:hover > ul.submenu1 { left: auto !important; right: 0 !important; }

    .aw-visit { margin-left: 14px; padding: 9px 14px; font-size: 12px; white-space: nowrap; }
    .main-nav-bar .aw-lang { margin-left: 10px !important; }
    .aw-lang a { min-height: 36px; padding: 0 10px; }
    .aw-theme-toggle { width: 36px; height: 36px; margin-left: 8px; }
    html[lang="bn"] ul.main-menu > li > a,
    html[lang="bn"] .aw-visit { font-size: 15px; letter-spacing: 0; }
}

@media (min-width: 768px) and (max-width: 1399px) {
    .aw-num { display: none; }
    ul.main-menu > li > a,
    ul.main-menu > li:nth-last-child(2) > a,
    ul.main-menu > li:last-child > a { padding: 0 11px !important; }
    ul.main-menu > li > a::after { left: 11px; right: 11px; }
}

/* not enough room for 7 items + buttons → use the mobile menu button */
@media (min-width: 768px) and (max-width: 1099px) {
    .header .main-nav-bar { display: none !important; }
    .header > .d-md-none { display: flex !important; }
    .header, .header-page { align-items: center !important; }
}


/* =====================================================================
   13. Footer copyright + credit line (partials/footer.blade.php, admin → Settings → Footer)
   ===================================================================== */
.aw-footer__copy p { margin: 0; }
.aw-footer__copy .aw-footer__credit { margin-top: 6px; font-size: 11px; letter-spacing: 1.5px; color: rgba(255, 255, 255, .45); }
.aw-footer__credit a { color: rgba(255, 255, 255, .8); text-decoration: none; border-bottom: 1px solid var(--aw-red); padding-bottom: 1px; transition: color .2s ease; }
.aw-footer__credit a:hover { color: #fff; }
html[lang="bn"] .aw-footer__copy p { letter-spacing: 0; }

/* Footer copyright + credit on ONE line (wraps to two lines only on small screens), small red square between them */
.aw-footer__copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 14px; row-gap: 6px; }
.aw-footer__copy .aw-footer__credit { margin-top: 0; font-size: inherit; letter-spacing: inherit; display: inline-flex; align-items: center; gap: 14px; }
.aw-footer__copy .aw-footer__credit::before { content: ""; width: 5px; height: 5px; background: var(--aw-red); }
.aw-footer__credit a { margin-left: -8px; }
@media (max-width: 767px) { .aw-footer__copy .aw-footer__credit::before { display: none; } }


/* =====================================================================
   14. Social rail – option A "Outline squares" (13 Nov 2026)
   Same look as the footer icons: each icon in a thin outline square, red line
   under FOLLOW, square fills red on hover.
   Update: the rail keeps its white panel (dark: #161616) from section 2 behind
   the squares, as the owner asked – only the icons changed.
   The squares have the page colour behind them, so they stay readable over photos.
   ===================================================================== */
.aw-rail { width: 54px; padding: 18px 0 10px; gap: 7px; }   /* panel colours come from section 2 */
.aw-rail__label { color: #777; font-size: 11px; letter-spacing: 4px; }
.aw-rail__line { width: 1px; height: 26px; margin: 4px 0; background: var(--aw-red) !important; }
.aw-rail a {
    width: 36px; height: 36px; font-size: 15px;
    background: #fff; color: #111; border: 1px solid #cfcfcf;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.aw-rail a:hover,
.aw-rail a:focus-visible { background: var(--aw-red); border-color: var(--aw-red); color: #fff; transform: translateX(2px); }
html[data-theme="dark"] .aw-rail a { background: #0b0b0b; color: #e6e6e6; border-color: #3a3a3a; }
html[data-theme="dark"] .aw-rail a:hover { background: var(--aw-red); border-color: var(--aw-red); color: #fff; }
html[data-theme="dark"] .aw-rail__label { color: #9a9a9a; }


/* =====================================================================
   15. Footer credit with the FinSyncBook seal (14 Nov 2026)
   Same "monogram seal" as the admin (admin.css section 12): white circle with
   the icon + small red dot. Only the name is underlined; on hover the ring
   turns red and the swirl turns a quarter.
   ===================================================================== */
.aw-footer__credit a.aw-footer__credit-link {
    display: inline-flex; align-items: center; gap: 9px;
    margin-left: -4px; padding-bottom: 0; border-bottom: 0;
}
.aw-footer__seal {
    position: relative; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; background: #fff;
    border: 1px solid rgba(255, 255, 255, .25); transition: border-color .25s ease;
}
.aw-footer__seal img { width: 17px; height: 17px; object-fit: contain; transition: transform .6s ease; }
.aw-footer__seal::after {
    content: ""; position: absolute; right: -2px; bottom: 0; width: 7px; height: 7px;
    border-radius: 50%; background: var(--aw-red); border: 1.5px solid var(--coal, #1E1A18);
}
.aw-footer__credit-name { border-bottom: 1px solid var(--aw-red); padding-bottom: 1px; }
.aw-footer__credit-link:hover .aw-footer__seal { border-color: var(--aw-red); }
.aw-footer__credit-link:hover .aw-footer__seal img { transform: rotate(90deg); }
/* the seal makes the line ~35px longer: let the copyright block shrink (it wraps to 2 lines)
   instead of pushing the social buttons onto a new row on 1280px screens */
@media (min-width: 992px) {
    .footer { flex-wrap: nowrap; }
    .aw-footer__copy { flex: 1 1 0; min-width: 0; }
    .aw-footer__brand, .aw-footer__social { flex: 0 0 auto; }
}
/* 992–1439px: a little less side padding so logo, copyright + credit and social buttons fit on one line */
@media (min-width: 992px) and (max-width: 1439px) {
    .footer { padding-left: 48px; padding-right: 48px; gap: 24px; }
}
