@import url('assets/css/icons.css');
/* Shared public navigation and footer: used by every public page. */
body .shared-header {
    width: 100%;
    background: #fff;
}
/* Logo on the left, the header ad slot (when one runs) on the right. */
.shared-header-row {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 6px max(16px, calc((100% - 1192px) / 2));
}
.shared-logo {
    display: block;
    flex: none;
    width: max-content;
    max-width: 100%;
}
.shared-logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}
/* Keep desktop links on one row; use the menu grid on small screens. */
body .ctassam-navigation {
    position: relative;
    z-index: 30;
    width: 100%;
    background: #0200fc;
    color: #fff;
    font-family: Roboto, 'Noto Sans Bengali', 'Nirmala UI', Arial, sans-serif;
}
.ctassam-nav-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1192px;
    margin: auto;
    display: flex;
    align-items: stretch;
    min-height: 48px;
}
.ctassam-navigation a {
    text-decoration: none;
}
.ctassam-navigation .ctassam-home-link,
.ctassam-nav-links > a,
.ctassam-nav-group summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 12px 12px;
    box-sizing: border-box;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}
.ctassam-navigation .ctassam-home-link {
    flex-shrink: 0;
    align-self: flex-start;
}
/* The current page gets a red bar under its link (or under its dropdown). */
.ctassam-navigation .ctassam-home-link,
.ctassam-nav-links > a,
.ctassam-nav-group summary {
    position: relative;
}
.ctassam-navigation .ctassam-home-link[aria-current='page']::after,
.ctassam-nav-links > a[aria-current='page']::after,
.ctassam-nav-links > .current-group > summary::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #ff3b4e;
}
.ctassam-navigation .ctassam-home-link[aria-current='page'],
.ctassam-nav-links > a[aria-current='page'],
.ctassam-nav-links > .current-group > summary {
    font-weight: 700;
}
.ctassam-nav-links {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}
/* Links sit side by side at their own width instead of stretching across the
   bar, so the gaps between them stay small. */
.ctassam-nav-links > a,
.ctassam-nav-group {
    flex: 0 0 auto;
}
.ctassam-nav-group {
    position: relative;
}
.ctassam-nav-group summary {
    list-style: none;
}
.ctassam-nav-group summary::-webkit-details-marker {
    display: none;
}
.ctassam-navigation .site-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.ctassam-nav-group summary > .icon-chevron-down {
    width: 12px;
    height: 12px;
    transition: transform 0.15s;
}
.ctassam-nav-group[open] summary > .icon-chevron-down {
    transform: rotate(180deg);
}
.ctassam-nav-links > a:hover,
.ctassam-home-link:hover,
.ctassam-nav-group summary:hover,
.ctassam-nav-group[open] summary,
.ctassam-nav-group.current-group summary {
    background: #2a28ff;
}
.ctassam-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 225px;
    max-width: calc(100vw - 32px);
    padding: 6px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dde5e2;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 10px 24px #002d3426;
}
.ctassam-submenu a {
    display: block;
    padding: 12px;
    color: #17372e;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 3px;
}
.ctassam-submenu a:hover,
.ctassam-submenu a[aria-current='page'] {
    background: #eaf6f0;
    color: #006044;
}
.ctassam-submenu a[aria-current='page'] {
    font-weight: 700;
}
/* Desktop dropdowns hang below the bar, so it must not clip them; shared-nav.js
   moves what doesn't fit into More instead of letting the row scroll. */
@media (min-width: 901px) {
    .nav-ready .ctassam-nav-links {
        overflow: visible;
    }
}
.ctassam-nav-links > .ctassam-nav-group:not(.ctassam-nav-more) > .ctassam-submenu {
    right: auto;
    left: 0;
}
.ctassam-nav-more {
    margin-left: auto;
}
.ctassam-nav-more[hidden] {
    display: none;
}
/* A dropdown group that lands inside More shows as a heading over its links. */
.ctassam-submenu .ctassam-nav-group summary {
    justify-content: space-between;
    min-height: 0;
    padding: 12px;
    color: #17372e;
    font-size: 14px;
    border-radius: 3px;
}
.ctassam-submenu .ctassam-nav-group summary:hover,
.ctassam-submenu .ctassam-nav-group[open] summary,
.ctassam-submenu .ctassam-nav-group.current-group summary {
    background: #eaf6f0;
    color: #006044;
}
.ctassam-submenu .ctassam-submenu {
    position: static;
    width: auto;
    padding: 0 0 4px 12px;
    border: 0;
    box-shadow: none;
}
.ctassam-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    color: #fff;
    padding: 12px;
    font: inherit;
    cursor: pointer;
}
.ctassam-navigation :is(a, button, summary):focus-visible {
    outline: 3px solid #ffc65b;
    outline-offset: -3px;
}
/* The whole footer look lives here so Home (which loads none of the inner-page
   stylesheets) matches every other page. */
body .shared-footer {
    box-sizing: border-box;
    width: 100%;
    margin: 24px 0 0;
    border-radius: 0;
    border-top: 3px solid #d7141e;
    background: #0d2152;
    color: #e0e6f5;
    font-family: Roboto, 'Noto Sans Bengali', 'Nirmala UI', Arial, sans-serif;
    text-align: left;
}
body .shared-footer * {
    box-sizing: border-box;
}
body .shared-footer .footer-grid {
    width: 100%;
    max-width: 1192px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 20px 16px;
}
body .shared-footer .footer-grid > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
body .shared-footer .footer-brand {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-bottom: 4px;
    padding: 5px 8px;
    background: #fff;
    border-radius: 6px;
}
body .shared-footer .site-logo {
    display: block;
    width: 140px;
    max-width: 100%;
    height: auto;
}
body .shared-footer h3 {
    margin: 0 0 6px;
    padding-bottom: 6px;
    border-bottom: 2px solid #d7141e;
    font-size: 15px;
    color: #fff;
}
body .shared-footer p {
    font-size: 13px;
    line-height: 1.6;
    color: #c3cde6;
    margin: 6px 0;
    max-width: 280px;
}
body .shared-footer .footer-grid > div > a:not(.footer-brand) {
    display: flex;
    align-items: center;
    min-height: 28px;
    margin: 0;
    font-size: 13px;
    color: #e0e6f5;
    text-decoration: none;
    line-height: 1.5;
}
body .shared-footer a:hover {
    color: #ffcb72 !important;
}
body .shared-footer .footer-grid .footer-cta {
    min-height: 0;
    font-weight: 700;
    padding: 5px 12px;
    border: 1px solid #7794b5;
    border-radius: 5px;
    color: #fff;
}
body .shared-footer .footer-bottom {
    width: 100%;
    max-width: 1192px;
    margin: auto;
    padding: 10px 16px;
    border-top: 1px solid #ffffff26;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
    line-height: 1.6;
    font-size: 12px;
    color: #c3cde6;
}
body .shared-footer .footer-bottom a {
    color: inherit;
    text-decoration: none;
}
/* About / Contact / Privacy / Terms / Disclaimer links */
body .shared-footer .footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}
body .shared-footer .footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}
body .public-shell {
    min-height: 0;
}

/* ---------- Google AdSense slots (includes/ads.php, set up in admin/ads.php) ----------
   A slot is printed only when it has an AdSense ad unit, and it stays
   collapsed -- no margin, no "Advertisement" label -- until Google fills it.
   A unit Google leaves unfilled is removed from the layout entirely, so a
   page never shows an empty ad box. */
.ad-slot {
    position: relative;
    box-sizing: border-box;
    display: grid;
    justify-items: center;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}
.ad-slot .adsbygoogle {
    max-width: 100%;
}
.ad-label {
    display: none;
    font: 500 10px/1 Roboto, Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8a96a8;
}
.ad-slot:has(ins[data-ad-status='unfilled']) {
    display: none !important;
}
.ad-slot:has(ins[data-ad-status='filled']) {
    margin: 16px auto;
}
.ad-slot:has(ins[data-ad-status='filled']) .ad-label {
    display: block;
}
.ad-header_banner {
    flex: 0 1 728px;
    width: auto;
    min-width: 0;
    justify-items: end;
}
.ad-slot.ad-header_banner:has(ins[data-ad-status='filled']) {
    margin: 0;
}
.ad-slot.ad-header_banner .ad-label {
    display: none;
}
.ad-top_leaderboard,
.ad-above_footer {
    max-width: 1192px;
    padding: 0 16px;
}
.ad-slot.ad-top_leaderboard:has(ins[data-ad-status='filled']) {
    margin: 14px auto 0;
}
.ad-slot.ad-above_footer:has(ins[data-ad-status='filled']) {
    margin: 28px auto 24px;
}
.ad-above_footer:has(ins[data-ad-status='filled']) + .shared-footer {
    margin-top: 0;
}
.ad-mobile_sticky {
    display: none;
}
.ad-close {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #34465f;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
/* Reserved space for a slot that has no AdSense unit yet (admin: Banners & Ads). */
.ad-slot.ad-reserved {
    margin: 16px auto;
}
.ad-space {
    display: grid;
    place-content: center;
    gap: 3px;
    width: 100%;
    max-width: 100%;
    height: 90px;
    border: 1px dashed #c7cfdb;
    border-radius: 6px;
    background: repeating-linear-gradient(45deg, #f8f9fb 0 10px, #f2f4f8 10px 20px);
    color: #8a96a8;
    font: 600 14px/1.3 'Noto Sans Bengali', 'Nirmala UI', Roboto, sans-serif;
}
.ad-space small {
    font: 500 10px/1 Roboto, Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ad-reserved.ad-top_leaderboard {
    margin: 14px auto 0;
}
.ad-reserved.ad-top_leaderboard .ad-space,
.ad-reserved.ad-above_footer .ad-space {
    max-width: 970px;
    margin: 0 auto;
}
.ad-reserved.ad-above_footer {
    margin: 28px auto 24px;
}
.ad-reserved.ad-above_footer + .shared-footer {
    margin-top: 0;
}
.ad-reserved.ad-in_feed .ad-space,
.ad-reserved.ad-article_bottom .ad-space {
    height: 120px;
}
.ad-reserved.ad-sidebar_top .ad-space {
    width: 300px;
    height: 250px;
}
.ad-reserved.ad-sidebar_bottom .ad-space {
    width: 300px;
    height: 600px;
}
.ad-slot.ad-reserved.ad-header_banner {
    margin: 0;
}
.ad-reserved.ad-header_banner .ad-space {
    width: 728px;
    max-width: 100%;
}
@media (max-width: 900px) {
    /* Beside the logo only where there is room for it. */
    .ad-header_banner {
        display: none !important;
    }
}
@media (max-width: 700px) {
    /* Laid out (so AdSense can size it) but parked below the screen; it slides
       up once Google fills it. */
    .ad-mobile_sticky {
        display: grid;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        margin: 0;
        padding: 6px 38px 6px 8px;
        background: #fff;
        box-shadow: 0 -4px 16px rgba(16, 33, 58, 0.18);
        transform: translateY(110%);
        transition: transform 0.3s ease;
    }
    .ad-slot.ad-mobile_sticky:has(ins[data-ad-status='filled']) {
        margin: 0;
        transform: none;
    }
    .ad-mobile_sticky .ad-label {
        display: none !important;
    }
    body:has(.ad-mobile_sticky ins[data-ad-status='filled']) {
        padding-bottom: 64px;
    }
}
.metadata > time,
.metadata > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.metadata .site-icon {
    width: 14px;
    height: 14px;
    border: 0;
    padding: 0;
    display: inline-block;
}
.ticker strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ticker-items {
    position: relative;
}
.ticker #ticker-pause {
    font-size: 11px;
    width: 44px;
    min-width: 44px;
    line-height: 27px;
}

.side-panel h2 .site-icon {
    margin-right: 5px;
}

@media (max-width: 900px) {
    body .shared-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
    .ctassam-nav-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0 12px;
    }
    .nav-ready .ctassam-menu-toggle {
        display: flex;
    }
    .ctassam-nav-links {
        flex-basis: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 12px;
        overflow-x: visible;
    }
    .nav-ready:not(.menu-open) .ctassam-nav-links {
        display: none;
    }
    .ctassam-nav-links > a,
    .ctassam-nav-group summary {
        justify-content: flex-start;
        white-space: nowrap;
        font-size: 16px;
    }
    .ctassam-submenu {
        position: static;
        width: auto;
        max-width: none;
        margin: 0 0 6px;
        box-shadow: none;
    }
    /* In the menu grid a bar under a full-width cell reads oddly; put it on the left. */
    .ctassam-navigation .ctassam-home-link[aria-current='page']::after,
    .ctassam-nav-links > a[aria-current='page']::after,
    .ctassam-nav-links > .current-group > summary::after {
        left: 0;
        right: auto;
        top: 10px;
        bottom: 10px;
        width: 3px;
        height: auto;
        border-radius: 0 3px 3px 0;
    }
}
@media (max-width: 520px) {
    .shared-logo img {
        width: 170px;
    }
    /* Phones: logo/about across the top, then the link columns side by side. */
    body .shared-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 20px;
        padding: 16px;
    }
    body .shared-footer .footer-grid > .footer-about {
        grid-column: 1 / -1;
    }
    body .shared-footer .footer-photo p {
        display: none;
    }
    body .shared-footer .footer-bottom {
        flex-direction: row;
        padding: 10px 16px;
        text-align: left;
    }
    .ctassam-nav-links {
        grid-template-columns: 1fr;
    }
    .ticker-inner {
        gap: 3px;
    }
    .ticker strong {
        font-size: 10px;
        padding: 9px 5px;
    }
    .ticker #ticker-pause {
        width: 40px;
        min-width: 40px;
        font-size: 10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-items {
        scroll-behavior: auto;
    }
    .ctassam-nav-group summary > .icon-chevron-down {
        transition: none;
    }
}
