/* ==========================================================================
   BUSINESS BENCHMARK NEWS - PREMIUM MAGAZINE THEME
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
:root {
    --primary-color: #000000;
    --accent-red: #e11d24;
    --text-main: #333333;
    --text-muted: #777777;
    --bg-body: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #eeeeee;
    --font-body: sans-serif;  
    --font-heading: 'Oswald', sans-serif; 
}

body { 
    font-family: var(--font-body);  
    color: var(--text-main); 
    background-color: var(--bg-body); 
    line-height: 1.3; 
    -webkit-font-smoothing: antialiased; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: all 0.2s; }
a:hover { color: var(--accent-red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; width: 95%; margin: 0 auto; }
.mt-4 { margin-top: 30px; } .mt-5 { margin-top: 50px; } 
.mb-4 { margin-bottom: 30px; } .mb-5 { margin-bottom: 50px; }
.pt-4 { padding-top: 30px; } .pb-4 { padding-bottom: 30px; }
.border-bottom { border-bottom: 1px solid var(--border-color); }

/* --- AD SPACES --- */
.ad-wrapper { display: flex; justify-content: center; /*background: var(--bg-light);*/ margin: 30px auto; max-width: 970px; overflow: hidden; }
.ad-wrapper:empty { display: none; margin: 0; }
.ad-wrapper.leaderboard {/* padding: 15px; border: 1px solid var(--border-color); */ min-height: 90px; }

/* --- TYPOGRAPHY & META --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--primary-color); }

/* --- MANDATORY OSWALD TYPOGRAPHY FIX --- */
h1, h2, h3, h4, h5, h6, 
.brand, .sub-brand, .title-underline, .article-title-huge, .category-header-wrap h1,
.subscription-bar .text h3, .footer-main-grid h4, .faded-list-item .num, .striped-text,
.red-header, .search-input-wrap input, .card-small h3 {
    font-family: var(--font-heading) !important;
}

/* Ensure all regular text and buttons use generic sans-serif */
a, .main-nav-ul > li > a, .nav-more-dropdown li a, .top-links a, .footer-top-nav a,
.btn, button, .load-more-btn, .meta-wrap, .footer-post-list h5 {
    font-family: var(--font-body) !important;
}

.meta-wrap { font-family: var(--font-body); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 900; margin: 12px 0 8px; }
.meta-wrap .cat { color: var(--accent-red); }
.meta-wrap .author, .meta-wrap .date { color: var(--text-muted); font-weight: 700; }
.meta-wrap .sep { color: #cccccc; margin: 0 6px; }

/* --- HEADER TOP BAR --- */
.top-bar { border-bottom: 1px solid var(--border-color); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-links { display: flex; gap: 15px; align-items: center; }
.top-links .my-account { color: var(--accent-red); }

/* --- MAIN BRANDING --- */
.site-header { padding: 35px 0 25px; }
.header-grid { display: flex; justify-content: space-between; align-items: center; }
.logo-block { text-align: center; flex-grow: 1; display: flex; flex-direction: column; align-items: center; }

/* FLUID TYPOGRAPHY FOR BRAND NAME (Fixes Mobile Overflow) */
.logo-block .brand { 
    font-family: var(--font-heading); 
    font-size: clamp(1.8rem, 8vw, 3.8rem); 
    font-weight: 900; 
    letter-spacing: -2px; 
    color: var(--primary-color); 
    text-transform: uppercase; 
    line-height: 1; 
    white-space: nowrap; 
}
.logo-block .brand span { font-weight: 300; }
.logo-block .sub-brand { font-family: var(--font-heading); font-size: clamp(0.7rem, 2.5vw, 0.85rem); color: var(--accent-red); font-style: italic; letter-spacing: 2px; margin-top: 8px; }

/* --- DYNAMIC NAVIGATION --- */
.nav-wrapper { border-top: 1px solid var(--primary-color); border-bottom: 4px solid var(--primary-color); position: relative; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.main-nav-ul { display: flex; flex-grow: 1; align-items: center; position: relative; }
.main-nav-ul > li > a { display: block; padding: 14px 18px; font-size: 0.85rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; position: relative; white-space: nowrap; }
.main-nav-ul > li > a:hover { color: var(--accent-red); }
.main-nav-ul > li.active > a { background: var(--primary-color); color: #fff; }
.main-nav-ul > li.active > a::before { content: "≡"; margin-right: 6px; }

/* Dropdown */
.nav-more { position: relative; display: none; }
.nav-more-link { cursor: pointer; padding: 14px 18px; font-weight: 900; }
.nav-more-dropdown { position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.08); display: none; min-width: 220px; z-index: 100; }
.nav-more:hover .nav-more-dropdown { display: block; }
.nav-more-dropdown li a { display: block; padding: 12px 18px; font-size: 0.8rem; font-weight: 900; text-transform: uppercase; border-bottom: 1px solid #f1f1f1; }

.search-toggle { padding: 14px 18px; cursor: pointer; font-size: 1.1rem; }
.burger-menu { display: none; font-size: 1.5rem; cursor: pointer; padding: 12px 0; font-weight: 900; }

/* --- OVERLAPPING DESIGN CARDS --- */
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.overlap-card { position: relative; padding-bottom: 25px; }
.overlap-card .img-wrap { width: 100%; height: 240px; overflow: hidden; }
.overlap-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.overlap-card:hover .img-wrap img { transform: scale(1.05); }
.overlap-card .content-wrap { position: relative; background: #fff; margin: -50px 20px 0; padding: 20px; text-align: left; box-shadow: 0 8px 20px rgba(0,0,0,0.06); z-index: 2; border: 1px solid var(--border-color); }
.title-underline { display: inline; font-family: var(--font-heading); font-weight: 900; padding-bottom: 2px;}
.overlap-card .title-underline { font-size: 1.25rem; }
.overlap-card .excerpt-text { font-size: 0.85rem; color: var(--text-muted); margin-top: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }

/* Small Cards */
.card-small .img-wrap { /*height: 150px;*/ overflow: hidden; margin-bottom: 15px; }
.card-small .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card-small:hover .img-wrap img { transform: scale(1.05); }
.card-small h3 { font-size: 1.05rem; text-align: center; line-height: 1.4; }
.card-small .meta-wrap { text-align: center; }

/* --- SUBSCRIPTION BOX --- */
.subscription-bar { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-color); padding: 30px; margin: 40px 0; }
.subscription-bar .text h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 900; text-transform: uppercase; color: #bbbbbb; line-height: 1; letter-spacing: -0.5px; }
.subscription-bar .text p { font-size: 0.95rem; color: var(--text-main); font-weight: 500; margin-top: 8px; }
.subscription-bar .btn { background: var(--accent-red); color: white; padding: 14px 35px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer; }

/* --- 1-3-1 URBAN GRID --- */
.grid-1-3-1 { display: grid; grid-template-columns: 260px 1fr 260px; gap: 35px; }
.red-header { background: var(--accent-red); color: white; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 900; padding: 8px 15px; text-transform: uppercase; display: inline-block; font-style: italic; margin-bottom: 20px; width: 100%; text-align: center; letter-spacing: 1px; }

/* Faded Numbered List */
.faded-list-item { display: grid; grid-template-columns: 1fr 40px; gap: 15px; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 20px; }
.faded-list-item h4 { font-size: 1rem; line-height: 1.35; }
.faded-list-item .num { font-family: var(--font-heading); font-size: 4.5rem; font-weight: 900; color: #f1f1f1; line-height: 0.7; text-align: right; letter-spacing: -2px; }

/* Center Hero Overlap */
.hero-overlap { position: relative; border-bottom: 1px solid var(--border-color); padding-bottom: 25px; }
.hero-overlap img { width: 100%; height: 450px; object-fit: cover; }
.hero-overlap .content-wrap { position: absolute; bottom: 35px; left: 0; background: #fff; padding: 25px 30px 25px 20px; max-width: 85%; box-shadow: 5px 5px 20px rgba(0,0,0,0.05); }
.hero-overlap .title-underline { font-size: 2.1rem; }

/* Right Small List */
.small-text-list { margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.small-text-list h4 { font-size: 1.05rem; }

/* --- SECTION STRIPED TAPE --- */
.striped-header-wrap { display: flex; align-items: center; justify-content: center; margin: 60px 0 40px; }
.stripe-line { height: 16px; background: repeating-linear-gradient(0deg, transparent, transparent 2px, #cccccc 2px, #cccccc 3px); flex-grow: 1; }
.striped-text { border: 3px solid var(--primary-color); padding: 5px 25px; font-style: italic; font-weight: 900; font-size: 1.6rem; text-transform: uppercase; margin: 0 20px; font-family: var(--font-heading); letter-spacing: 1px; }

/* --- CATEGORY PAGE SPECIFICS --- */
.category-header-wrap { background: #f5f5f5; padding: 50px 0; text-align: center; margin-bottom: 40px; border-bottom: 1px solid var(--border-color); }
.category-header-wrap h1 { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; text-transform: uppercase; letter-spacing: -1px; margin-bottom: 15px; }

.layout-content-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 50px; }
.category-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.cat-list-item { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 25px; }
.cat-list-item .img-wrap { width: 100%; /* height: 110px; */ overflow: hidden; }
.cat-list-item .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.cat-list-item:hover .img-wrap img { transform: scale(1.05); }
.cat-list-item h4 { font-size: 1.15rem; line-height: 1.35; }

.load-more-btn { display: block; width: max-content; margin: 40px auto; padding: 14px 45px; border: 2px solid var(--primary-color); background: transparent; font-family: var(--font-body); font-weight: 900; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.2s; text-align: center; }
.load-more-btn:hover { background: var(--primary-color); color: white; }

/* --- LATEST POSTS & SIDEBAR --- */
.post-row { display: grid; grid-template-columns: 280px 1fr; gap: 30px; margin-bottom: 35px; border-bottom: 1px solid var(--border-color); padding-bottom: 35px; }
.post-row .img-wrap { height: 200px; overflow: hidden; }
.post-row .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.post-row:hover .img-wrap img { transform: scale(1.05); }

/* --- ARTICLE PAGE --- */
.article-layout { display: grid; grid-template-columns: 260px 1fr; gap: 50px; margin-top: 30px; }
.article-title-huge { font-size: 3.3rem !important; line-height: 1.15; margin-bottom: 15px; letter-spacing: -1px; }
.share-bar { display: flex; gap: 2px; margin: 0px 0; }
.share-btn { padding: 10px 15px; color: #fff; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; flex: 1; }
.bg-fb { background: #3b5998; } .bg-tw { background: #000000; } .bg-pt { background: #cb2027; } .bg-em { background: #777777; }
.article-featured { width: 100%; max-height: 550px; object-fit: cover; margin-bottom: 35px; }
.article-content { font-size: 1.15rem; line-height: 1.8; }
.article-content p { margin-bottom: 25px; }

/* --- NEW LIGHT FOOTER --- */
.site-footer-light { background: #ffffff; font-family: var(--font-body); margin-top: 70px; }
.footer-top-strip { background: #f5f5f5; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 25px 0; }
.footer-top-strip .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-top-logo { font-size: 2.5rem; font-weight: 900; color: var(--primary-color); letter-spacing: -1.5px; text-transform: uppercase; line-height: 1; }
.footer-top-logo span { font-weight: 300; }
.footer-top-nav { display: flex; gap: 25px; flex-wrap: wrap; }
.footer-top-nav a { font-size: 0.75rem; font-weight: 900; text-transform: uppercase; color: var(--primary-color); }

.footer-main-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 60px 0; }
.footer-main-grid h4 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 900; text-transform: uppercase; margin-bottom: 25px; letter-spacing: 0.5px; }
.footer-about p { font-size: 0.9rem; color: var(--text-main); line-height: 1.6; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { width: 35px; height: 35px; background: var(--accent-red); color: white; display: flex; align-items: center; justify-content: center; font-size: 1rem; border-radius: 2px; }

.footer-post-list article { margin-bottom: 20px; border-bottom: 1px solid #f1f1f1; padding-bottom: 15px; }
.footer-post-list h5 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.footer-post-list .meta { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; font-weight: 900; }
.footer-post-list .meta span { color: var(--accent-red); }

.footer-subscribe input[type="email"] { width: 100%; padding: 14px 15px; border: 1px solid var(--border-color); margin-bottom: 15px; font-family: var(--font-body); font-size: 0.9rem; outline: none; }
.footer-subscribe button { width: 100%; background: var(--accent-red); color: white; border: none; padding: 15px; font-weight: 900; text-transform: uppercase; cursor: pointer; letter-spacing: 1px; transition: 0.2s; }
.footer-subscribe button:hover { background: var(--primary-color); }
.footer-copyright { text-align: center; padding: 25px 0; border-top: 1px solid var(--border-color); font-size: 0.8rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }

/* --- REALTIME SEARCH OVERLAY --- */
.search-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.98); z-index: 9999; display: flex; flex-direction: column; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s; padding-top: 100px; }
.search-overlay.active { opacity: 1; visibility: visible; }
.search-close { position: absolute; top: 30px; right: 40px; font-size: 3rem; cursor: pointer; color: var(--primary-color); line-height: 1; }
.search-input-wrap { width: 90%; max-width: 800px; border-bottom: 3px solid var(--primary-color); margin-bottom: 30px; }
.search-input-wrap input { width: 100%; font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; border: none; background: transparent; outline: none; padding: 10px 0; }
.search-results { width: 90%; max-width: 800px; max-height: 60vh; overflow-y: auto; }
.search-item { display: grid; grid-template-columns: 80px 1fr; gap: 20px; border-bottom: 1px solid var(--border-color); padding: 15px 0; }
.search-item img { width: 100%; height: 60px; object-fit: cover; }
.search-item h4 { font-size: 1.1rem; margin-top: 5px; }

/* ==========================================================================
   MOBILE RESPONSIVE FIXES (Critical Fix for Overflow)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-3-col, .grid-4-col { grid-template-columns: repeat(2, 1fr); }
    .grid-1-3-1 { grid-template-columns: 1fr; }
    .hero-overlap .content-wrap { position: relative; bottom: 0; max-width: 100%; box-shadow: none; border: 1px solid var(--border-color); border-top: none; }
    .layout-content-sidebar { grid-template-columns: 1fr; }
    .category-grid-2 { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .footer-main-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Stack top bar cleanly */
    .top-bar .container { flex-direction: column; gap: 8px; justify-content: center; text-align: center; }
    
    /* HIDE SIDE AUX ELEMENTS TO LET THE LOGO BREATHE */
    .hide-mobile { display: none !important; }
    
    /* Center the header logo block on mobile */
    .header-grid { justify-content: center; }
    .logo-block .brand { font-size: 8.5vw; letter-spacing: -1px; }

    /* Fix Menu */
    .burger-menu { display: block; }
    .main-nav-ul, .nav-search-icon, .nav-more, .search-toggle { display: none; }
    .main-nav-ul.mobile-active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; z-index: 50; border-bottom: 2px solid var(--primary-color); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .main-nav-ul.mobile-active > li { width: 100%; text-align: center; border-bottom: 1px solid var(--border-color); }
    .main-nav-ul.mobile-active > li > a { padding: 15px; }

    /* Strict 2-Column Mobile Grids for News Cards */
    .grid-3-col, .grid-4-col { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .overlap-card .img-wrap { height: 130px; }
    .overlap-card .content-wrap { margin: -25px 5px 0; padding: 10px; }
    .overlap-card .title-underline { font-size: 0.95rem; }
    .overlap-card .excerpt-text { display: none; }
    
    /* .card-small .img-wrap { height: 100px; } */
    .card-small h3 { font-size: 0.85rem; }
    
    .cat-list-item { grid-template-columns: 1fr; gap: 10px; text-align: center; }
    .cat-list-item .img-wrap {/* height: 180px; */}
    
    .post-row { grid-template-columns: 1fr; text-align: center; }
    .post-row .img-wrap {  height: 200px; }
    
    .subscription-bar { flex-direction: column; text-align: center; gap: 15px; }
    .article-title-huge { font-size: 2.2rem; }
    .footer-main-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-top-strip .container { justify-content: center; }
    .footer-socials { justify-content: center; }
}