/*
Theme Name: News Theme 3
Theme URI: https://wpsolutionbd.com
Author: WP Solution
Author URI: https://wpsolutionbd.com
Description: A clean, spacious, bilingual (English & Bangla) magazine, world news, and editorial WordPress theme. Features native WordPress Customizer pen icon shortcuts for section and column-wise category editing, full-page neural English/Bangla translation, built-in SCF/ACF post editor fields (Above Title, Below Title, Author Type), single-post social share bars, and editable sidebar widgets.
Version: 1.2.2
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-theme-3
Update URI: false
Tags: news, blog, magazine, two-columns, three-columns, four-columns, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready, rtl-language-support
*/

:root {
    --font-serif: 'Noto Serif Bengali', 'Newsreader', Georgia, serif;
    --font-sans: 'Hind Siliguri', 'Noto Serif Bengali', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-brand: 'Cinzel', serif;
    --glt-primary: #b81e27;
    --glt-primary-dark: #930015;
    --glt-dark: #03192a;
    --glt-body: #191c1e;
    --glt-muted: #43474c;
    --glt-border: #e0e3e5;
    --glt-bg-subtle: #f0f2f5;

    /* News Theme 3 Design System Tokens */
    --nt3-primary: #03192a;
    --nt3-primary-container: #0b263d;
    --nt3-on-primary-container: #93a8be;
    --nt3-secondary: #b81e27;
    --nt3-secondary-dark: #930015;
    --nt3-surface: #f8f9fb;
    --nt3-surface-low: #f2f4f6;
    --nt3-surface-container: #eceef0;
    --nt3-surface-high: #e6e8ea;
    --nt3-surface-highest: #e0e3e5;
    --nt3-surface-lowest: #ffffff;
    --nt3-on-surface: #191c1e;
    --nt3-on-surface-variant: #43474c;
    --nt3-outline: #74777d;
    --nt3-outline-variant: #c3c7cd;
    --nt3-cream: #ede5d1;
    --nt3-cream-border: #d8d0ba;
    --nt3-green: #004b49;
    --nt3-orange: #d84315;
    --nt3-bg-muted: #eff5f4;
    --nt3-body-bg: #f0f2f5;
}

body.home,
body.blog {
    background-color: var(--nt3-body-bg);
}

body {
    font-family: var(--font-sans);
    color: var(--glt-body);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.font-serif-headline {
    font-family: var(--font-serif);
}



/* 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 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 .font-serif-headline,
body.glt-lang-bn .font-serif,
body.glt-lang-bn .font-sans,
body.glt-lang-bn .site-title,
body.glt-lang-bn .entry-title,
body.glt-lang-bn .article-card,
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;
}

.font-brand {
    font-family: var(--font-brand);
}

/* Article Hover Dynamics */
.article-card:hover h2,
.article-card:hover h3,
.article-card:hover h4,
.article-card:hover h5 {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-card:hover img {
    opacity: 0.94;
    transform: scale(1.02);
}

/* Navigation active indicator */
.nav-active {
    position: relative;
    font-weight: 700;
    color: #b81e27;
}

/* Hide scrollbar helper */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Drop cap */
.drop-cap:first-letter {
    font-family: var(--font-serif);
    float: left;
    font-size: 64px;
    line-height: 0.82;
    padding-top: 4px;
    padding-right: 12px;
    padding-bottom: 2px;
    font-weight: 700;
    color: #03192a;
}

/* Reading Progress Bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--glt-primary);
    z-index: 99999;
    transition: width 0.1s ease-out;
}

/* Section Wrapper (Clean on live site; native WP Pen Icon positioned inside Customizer) */
.glt-section-wrapper {
    position: relative;
}

/* WordPress Default Customizer Pen Icon Positioning (Shown ONLY inside Appearance > Customize) */
.customize-partial-edit-shortcut {
    z-index: 60 !important;
}

/* WordPress Core Alignment & Media Styles */
.alignwide,
.alignfull {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 24px;
}
.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 24px;
}
.wp-caption {
    max-width: 100%;
    margin-bottom: 24px;
    text-align: center;
}
.wp-caption-text {
    font-size: 16px;
    color: var(--glt-muted);
    margin-top: 8px;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Full-Width Horizontal Desktop Navigation Menu */
.glt-primary-menu {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.glt-primary-menu > li {
    flex: 1 1 auto;
    text-align: center;
}

/* 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;
}

/* =========================================================================
 * NEWS THEME 3 — 16PX MINIMUM FONT FLOOR & STANDARDIZED ASPECT RATIOS
 * ========================================================================= */
html, body {
    font-size: 16px;
}
.site-main p,
.site-main a,
.site-main span:not(.material-symbols-outlined):not(.dashicons),
.site-main button,
.site-main li,
.glt-site-footer p,
.glt-site-footer a,
.glt-site-footer span:not(.material-symbols-outlined):not(.dashicons) {
    font-size: max(16px, 1em);
}
.site-main h1, .site-main h2, .site-main h3, .site-main h4 {
    line-height: 1.35;
}

/* Standardized Aspect Ratio Containers */
.nt3-aspect-lead,
.nt3-aspect-card {
    aspect-ratio: 16 / 10;
    width: 100%;
}
.nt3-aspect-wide {
    aspect-ratio: 16 / 9;
    width: 100%;
}
.nt3-aspect-poster {
    aspect-ratio: 3 / 4;
    width: 100%;
}
.nt3-aspect-thumb {
    aspect-ratio: 16 / 11;
    width: 100%;
}
#glt-desktop-nav {
    background-color: #03192a !important;
    border-bottom: 2px solid #b81e27 !important;
}
#glt-desktop-nav a,
#glt-desktop-nav ul > li > a,
#glt-desktop-nav .glt-primary-menu a {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 14px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}
#glt-desktop-nav ul > li > a:hover,
#glt-desktop-nav ul > li.current-menu-item > a,
#glt-desktop-nav ul > li > a.nav-active {
    background-color: #b81e27 !important;
    color: #ffffff !important;
}

/* WordPress Standard Featured Image Strict Proportion Rules */
.nt3-img-box {
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
}
.nt3-img-box > img,
.nt3-img-box > .wp-post-image,
.nt3-img-box img {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

/* Desktop Navigation Submenu Dropdown (বিবিধ) */
#glt-desktop-nav ul > li {
    position: relative !important;
}
#glt-desktop-nav ul > li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 14px;
    margin-left: 4px;
}
#glt-desktop-nav ul > li > ul.sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    min-width: 340px !important;
    width: max-content !important;
    background-color: #0b1c2a !important;
    border-top: 3px solid #b81e27 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
    z-index: 9999 !important;
    padding: 8px !important;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
    gap: 2px !important;
    list-style: none !important;
    margin: 0 !important;
}
#glt-desktop-nav ul > li.menu-item-has-children:hover > ul.sub-menu,
#glt-desktop-nav ul > li.menu-item-has-children:focus-within > ul.sub-menu {
    display: grid !important;
}
#glt-desktop-nav ul > li > ul.sub-menu > li {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
}
#glt-desktop-nav ul > li > ul.sub-menu > li > a {
    display: block !important;
    width: 100% !important;
    padding: 8px 12px !important;
    font-size: 16px !important;
    color: #ffffff !important;
    text-align: left !important;
    justify-content: flex-start !important;
    border-radius: 3px !important;
}
#glt-desktop-nav ul > li > ul.sub-menu > li > a:hover {
    background-color: #b81e27 !important;
    color: #ffffff !important;
}
