/* News Theme 3 - Main Theme Stylesheet */

/* Unified Box Container Utility */
.glt-container,
.glt-box-container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 640px) {
    .glt-container,
    .glt-box-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* All Bangla Typography strictly uses Noto Serif Bengali (preserving icon fonts & admin bar) */
html[data-glt-lang="bn"],
html[data-glt-lang="bn"] body,
html[data-glt-lang="bn"] body *:not(svg):not(path):not(.font-brand):not(.material-symbols-outlined):not(.dashicons):not(.dashicons-before):not([class*="dashicons"]):not(.ab-icon):not(.ab-item):not(#wpadminbar):not(#wpadminbar *):not(.customize-partial-edit-shortcut):not(.customize-partial-edit-shortcut *):not(.fa):not(.fas):not(.far):not(.fab),
body.glt-lang-bn,
body.glt-lang-bn *:not(svg):not(path):not(.font-brand):not(.material-symbols-outlined):not(.dashicons):not(.dashicons-before):not([class*="dashicons"]):not(.ab-icon):not(.ab-item):not(#wpadminbar):not(#wpadminbar *):not(.customize-partial-edit-shortcut):not(.customize-partial-edit-shortcut *):not(.fa):not(.fas):not(.far):not(.fab),
[lang="bn"],
:lang(bn) {
    font-family: 'Noto Serif Bengali', Georgia, serif !important;
}

body.glt-lang-bn *,
body.glt-lang-bn .font-serif-headline,
body.glt-lang-bn .font-serif,
body.glt-lang-bn .font-sans,
body.glt-lang-bn h1,
body.glt-lang-bn h2,
body.glt-lang-bn h3,
body.glt-lang-bn h4,
body.glt-lang-bn h5,
body.glt-lang-bn h6,
body.glt-lang-bn p,
body.glt-lang-bn span,
body.glt-lang-bn a,
body.glt-lang-bn time,
body.glt-lang-bn button,
body.glt-lang-bn input,
body.glt-lang-bn textarea,
body.glt-lang-bn select,
body.glt-lang-bn .entry-title,
body.glt-lang-bn .site-title,
body.glt-lang-bn .article-card,
body.glt-lang-bn .posted-on,
body.glt-lang-bn .glt-header-ticker-wrapper,
body.glt-lang-bn .site-main,
body.glt-lang-bn .site-header,
body.glt-lang-bn .site-footer {
    font-family: 'Noto Serif Bengali', Georgia, serif !important;
}

/* Boxed Header Breaking News Marquee Ticker */
.glt-header-ticker-wrapper {
    width: 100%;
    height: 40px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.glt-header-ticker-wrapper .glt-marquee-viewport {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-width: 0;
    height: 40px;
    overflow: hidden;
}

.glt-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    width: max-content;
    min-width: max-content;
    flex: 0 0 auto;
    animation: glt-marquee-scroll 40s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.glt-marquee-item {
    flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    .glt-marquee-track {
        animation: none !important;
        transform: none !important;
    }
}

@keyframes glt-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Pause marquee on hover */
.glt-header-ticker-wrapper:hover .glt-marquee-track {
    animation-play-state: paused;
}

.glt-marquee-item[aria-hidden="true"] {
    pointer-events: none;
}

/* Full-Width Primary Navigation Menu Links inside Box Container */
header nav[role="navigation"] > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;
    width: 100% !important;
}

header nav[role="navigation"] ul,
header nav[role="navigation"] ul.glt-primary-menu,
header nav[role="navigation"] ul.menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 100% !important;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

header nav[role="navigation"] ul > li,
header nav[role="navigation"] ul.menu > li,
header nav[role="navigation"] ul.glt-primary-menu > li,
header nav[role="navigation"] li {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    float: none !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

header nav[role="navigation"] ul > li:first-child {
    justify-content: flex-start;
}

header nav[role="navigation"] ul > li:last-child {
    justify-content: flex-end;
}

header nav[role="navigation"] li > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

header nav[role="navigation"] ul > li:first-child > a {
    justify-content: flex-start;
    padding-left: 4px;
}

header nav[role="navigation"] ul > li:last-child > a {
    justify-content: flex-end;
    padding-right: 4px;
}

header nav[role="navigation"] a {
    display: inline-block;
    padding: 12px 12px;
    color: #03192a;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

body.glt-lang-bn header nav[role="navigation"] a {
    font-size: 16px;
    font-weight: 600;
}

header nav[role="navigation"] a:hover {
    background-color: #f8f9fa;
    color: #b81e27;
    border-bottom-color: #b81e27;
}

header nav[role="navigation"] a.nav-active,
header nav[role="navigation"] li.current-menu-item > a,
header nav[role="navigation"] li.current_page_item > a {
    color: #b81e27;
    font-weight: 700;
    border-bottom-color: #b81e27;
}

/* Drawer Menu Styling for wp_nav_menu */
.glt-drawer-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.glt-drawer-menu li {
    margin: 0 !important;
    padding: 0 !important;
}
.glt-drawer-menu li a {
    display: block;
    padding: 10px 8px;
    color: #d4d4d8;
    border-bottom: 1px solid rgba(38, 38, 38, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
}
.glt-drawer-menu li a:hover,
.glt-drawer-menu li.current-menu-item > a {
    color: #ffffff;
    background-color: #262626;
    padding-left: 12px;
}

/* Sticky Header Enhancement */
header.sticky.is-sticky {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.97);
}

/* Audio Player Range Slider Styling */
input[type=range].glt-audio-scrubber {
    -webkit-appearance: none;
    appearance: none;
    background: #374151;
    height: 4px;
    border-radius: 2px;
    outline: none;
}
input[type=range].glt-audio-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    transition: transform 0.1s;
}
input[type=range].glt-audio-scrubber::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: #dc2626;
}

/* Off-canvas Navigation Drawer */
#glt-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#glt-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
#glt-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #03192a;
    color: #ffffff;
    z-index: 101;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
#glt-drawer.active {
    transform: translateX(0);
}

/* Search Modal Overlay */
#glt-search-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 24, 0.92);
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}
#glt-search-modal.active {
    display: flex;
}

/* Section Spacing Utilities */
.glt-spacing-compact {
    margin-bottom: 48px !important;
}
.glt-spacing-normal {
    margin-bottom: 72px !important;
}
.glt-spacing-relaxed {
    margin-bottom: 88px !important;
}
.glt-spacing-spacious {
    margin-bottom: 104px !important;
}

/* WordPress Gallery */
.gallery {
    display: grid;
    grid-gap: 16px;
    margin-bottom: 24px;
}
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Comment Styles */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-list li.comment {
    margin-bottom: 24px;
    padding: 20px;
    background-color: #f9fafb;
    border: 1px solid #eceeef;
}
.comment-list li.comment .children {
    list-style: none;
    margin-top: 24px;
    padding-left: 24px;
    border-left: 2px solid #eceeef;
}

/* Section Styling Utilities */
.glt-section-wrapper {
    position: relative;
}

/* Additional Scrollbar Styles */
#glt-log-box {
    scrollbar-width: thin;
    scrollbar-color: #b81e27 #0f172a;
}

#glt-log-box::-webkit-scrollbar {
    width: 6px;
}

#glt-log-box::-webkit-scrollbar-track {
    background: #0f172a;
}

#glt-log-box::-webkit-scrollbar-thumb {
    background-color: #b81e27;
    border-radius: 3px;
}

/* Modern Sidebar Styling for Standard & Block WordPress Widgets */
.glt-sidebar-container .widget {
    background-color: #ffffff;
    border: 1px solid #eceeef;
    border-radius: 2px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.glt-sidebar-container .widget.glt-modern-widget.bg-\[\#03192a\] {
    background-color: #03192a;
    border-color: #262626;
}

.glt-sidebar-container .widget.glt-modern-widget.bg-\[\#f8f9fa\] {
    background-color: #f8f9fa;
}

.glt-sidebar-container .widget-title,
.glt-sidebar-container .wp-block-heading,
.glt-sidebar-container .widget h2 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #03192a;
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #b81e27;
}

.glt-sidebar-container .widget ul,
.glt-sidebar-container .wp-block-latest-posts,
.glt-sidebar-container .wp-block-latest-comments {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.glt-sidebar-container .widget ul > li,
.glt-sidebar-container .wp-block-latest-posts > li,
.glt-sidebar-container .wp-block-latest-comments > li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #03192a;
}

.glt-sidebar-container .widget ul > li:first-child,
.glt-sidebar-container .wp-block-latest-posts > li:first-child {
    padding-top: 0;
}

.glt-sidebar-container .widget ul > li:last-child,
.glt-sidebar-container .wp-block-latest-posts > li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.glt-sidebar-container .widget ul > li a,
.glt-sidebar-container .wp-block-latest-posts > li a {
    color: #03192a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.glt-sidebar-container .widget ul > li a:hover,
.glt-sidebar-container .wp-block-latest-posts > li a:hover {
    color: #b81e27;
    text-decoration: underline;
}

/* Compact Mobile Margin & Padding Optimization (< 640px) */
@media (max-width: 639px) {
    .glt-container,
    .glt-box-container,
    .site-main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .site-main {
        padding-top: 14px !important;
        padding-bottom: 24px !important;
    }
    .glt-section-wrapper {
        margin-bottom: 0 !important;
    }
    #glt-sec-audio,
    #glt-sec-video,
    #glt-sec-newsletter {
        padding: 14px !important;
    }
    .glt-modern-widget {
        padding: 14px !important;
    }
}

/* First Letter Large (Editorial Drop Cap) & Align Justified Support */
.drop-cap::first-letter,
.glt-auto-dropcap::first-letter,
.entry-content.glt-has-dropcap > p:first-of-type::first-letter,
.entry-content.glt-has-dropcap p:first-of-type::first-letter,
.entry-content.glt-has-dropcap > div:first-of-type:not(.glt-ad-slot-wrapper):not(.glt-responsive-embed-wrap)::first-letter {
    font-family: var(--font-serif);
    float: left;
    font-size: 60px;
    line-height: 0.84;
    padding-top: 4px;
    padding-right: 12px;
    padding-bottom: 2px;
    font-weight: 800;
    color: #03192a;
}

.entry-content.glt-text-justify p,
.entry-content.glt-text-justify > div:not(.glt-ad-slot-wrapper):not(.glt-responsive-embed-wrap),
.glt-text-justify-inline {
    text-align: justify;
}

/* Strict Single-Post Column Containment for YouTube & Video Embeds */
.entry-content,
.entry-content > * {
    max-width: 100% !important;
    box-sizing: border-box;
}

.entry-content .alignwide,
.entry-content .alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.glt-responsive-embed-wrap,
.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper,
.entry-content .wp-block-video,
.entry-content figure.wp-block-embed {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
}

.glt-responsive-embed-wrap iframe,
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
    border: 0;
}

.glt-responsive-embed-wrap iframe,
.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtube-nocookie.com"],
.entry-content iframe[src*="youtu.be"],
.entry-content iframe[src*="vimeo.com"],
.entry-content .wp-block-embed-youtube iframe {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
}


/* Calendar Archive Post Viewer Styling */
.glt-wp-calendar-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    text-align: center;
}
.glt-wp-calendar-wrap caption {
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #03192a;
    padding: 4px 0 8px;
}
.glt-wp-calendar-wrap th {
    padding: 5px 2px;
    font-weight: 700;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
}
.glt-wp-calendar-wrap td {
    padding: 5px 2px;
    color: #334155;
}
.glt-wp-calendar-wrap td a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: #b81e27;
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}
.glt-wp-calendar-wrap td a:hover {
    background: #03192a;
}
.glt-wp-calendar-wrap #today {
    font-weight: 800;
    color: #b81e27;
}
.glt-wp-calendar-wrap .wp-calendar-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px solid #f1f5f9;
    font-size: 16px;
    font-weight: 700;
}
.glt-wp-calendar-wrap .wp-calendar-nav a {
    color: #03192a;
    text-decoration: none;
}
.glt-wp-calendar-wrap .wp-calendar-nav a:hover {
    color: #b81e27;
    text-decoration: underline;
}


/* Redesigned Sidebar Search Widget & Block Card */
.glt-sidebar-container .widget_search,
.glt-sidebar-container .widget_block.widget_search,
.glt-sidebar-container .wp-block-search {
    background: #ffffff;
    border: 1px solid #eceeef;
    border-radius: 2px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.glt-sidebar-container .widget_search .widget-title,
.glt-sidebar-container .wp-block-search__label {
    display: block;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #03192a;
    border-bottom: 2px solid #b81e27;
    padding-bottom: 8px;
    margin-bottom: 14px;
}
.glt-sidebar-container .wp-block-search__inside-wrapper {
    display: flex;
    border: 1px solid #dce1e7;
    background: #f8f9fa;
    border-radius: 2px;
    overflow: hidden;
}
.glt-sidebar-container .wp-block-search__input {
    border: 0 !important;
    background: transparent !important;
    padding: 10px 12px;
    font-size: 16px;
    color: #03192a;
    outline: none;
    flex: 1 1 auto;
    min-width: 0;
}
.glt-sidebar-container .wp-block-search__button {
    background: #03192a;
    color: #ffffff;
    border: 0;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.glt-sidebar-container .wp-block-search__button:hover {
    background: #b81e27;
}


/* =========================================================================
 * MOBILE RESPONSIVENESS & WP SOLUTION POLISH
 * ========================================================================= */
html, body {
    max-width: 100%;
    overflow-x: clip;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 767px) {
    .glt-ad-banner-img {
        height: auto !important;
        max-height: 150px !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    .glt-ad-placeholder {
        height: auto !important;
        min-height: 68px !important;
        padding: 10px !important;
    }
    .glt-header-ticker-wrapper {
        height: 38px !important;
    }
    .site-logo {
        max-width: 145px;
    }
}

.glt-sidebar-container > .widget:empty, .glt-sidebar-container > section:empty { display: none !important; }


/* Sticky Header + Navigation Menu Across All Devices */
#site-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    width: 100%;
}
body.admin-bar #site-header {
    top: 32px !important;
}
@media (max-width: 782px) {
    body.admin-bar #site-header {
        top: 46px !important;
    }
}

/* =========================================================================
 * MATERIAL SYMBOLS & CUSTOM SCROLLBAR (NEWS THEME 3 DESIGN SYSTEM)
 * ========================================================================= */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}
.custom-scroll::-webkit-scrollbar {
    height: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: #c3c7cd;
    border-radius: 4px;
}
