/*
Theme Name: AlphaStreet
Author: AlphaStreet Team
Description: Custom financial news theme with lead story grid.
Version: 1.0
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;600;700&display=swap');

/* --- Reset & Base --- */
:root {
    --primary-color: #111;
    --accent-color: #cf2e2e; /* Red */
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background: #fff;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--accent-color); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.qz-clean-header { border-bottom: 1px solid #ddd; }
.qz-top-layer { padding: 15px 0; }
.qz-flex-wrapper { display: flex; justify-content: space-between; align-items: center; }
.qz-left, .qz-right { flex: 1; display: flex; align-items: center; }
.qz-right { justify-content: flex-end; }
.qz-center { flex: 1; text-align: center; }

.qz-logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.qz-menu-icon { background: none; border: none; font-size: 24px; cursor: pointer; margin-right: 15px; }
.qz-util-link { font-size: 14px; font-weight: 600; text-transform: uppercase; }
.qz-divider { height: 20px; width: 1px; background: #ccc; margin: 0 15px; display: inline-block; }

.header-search-form { display: flex; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.header-search-input { border: none; padding: 8px 12px; font-size: 14px; outline: none; }
.header-search-btn { background: none; border: none; padding: 8px 12px; cursor: pointer; }

/* --- Nav Ribbon --- */
.qz-nav-ribbon { border-top: 1px solid #eee; border-bottom: 3px solid #000; padding: 12px 0; }
.qz-nav-list { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 30px; }
.qz-nav-list li a { font-size: 14px; font-weight: 700; text-transform: uppercase; }

/* --- Billboard Ad --- */
.ad-billboard-section { background: #f4f4f4; padding: 30px 0; margin-bottom: 40px; border-bottom: 1px solid #ddd; }
.ad-container { text-align: center; }
.ad-label { display: block; font-size: 10px; color: #999; margin-bottom: 5px; text-transform: uppercase; }
.ad-placeholder { background: #fff; border: 1px dashed #ccc; width: 970px; height: 250px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #aaa; max-width: 100%; }

/* Add to style.css to support imported content */
.reset { all: unset; }
.cursor-pointer { cursor: pointer; }
.font-semibold { font-weight: 600; }
.text-super { color: #cf2e2e; } /* Matching your accent color */
.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }

/* Fix for lists in imported content */
.article-content ul { list-style: disc; margin-left: 20px; margin-bottom: 20px; }
.article-content li { margin-bottom: 10px; }

/* --- Top Stories Grid (Your New Section) --- */
.qz-top-stories-section { margin-bottom: 50px; border-bottom: 1px solid var(--border-color); padding-bottom: 40px; }
.qz-story-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }

@media (min-width: 992px) {
    .qz-story-grid { grid-template-columns: 2fr 1fr; gap: 40px; }
}

/* Lead Story */
.qz-lead-img-wrap { 
    display: block; width: 100%; padding-bottom: 56.25%; 
    position: relative; overflow: hidden; border-radius: 4px; margin-bottom: 20px; background: #eee; 
}
.qz-lead-img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.qz-lead-story:hover .qz-lead-img-wrap img { transform: scale(1.02); }
.qz-category-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--accent-color); margin-bottom: 10px; display: block; }
.qz-lead-title { font-family: 'Playfair Display', serif; font-size: 32px; line-height: 1.2; font-weight: 900; margin: 0 0 15px 0; }
.qz-lead-excerpt { font-size: 18px; line-height: 1.6; color: #555; margin-bottom: 15px; }

/* Side Feed */
.qz-side-feed-title { font-size: 14px; font-weight: 800; text-transform: uppercase; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 20px; display: inline-block; width: 100%; }
.qz-side-article { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.qz-side-article:last-child { border-bottom: none; }
.qz-side-thumb { flex: 0 0 90px; height: 65px; border-radius: 3px; overflow: hidden; background: #eee; }
.qz-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qz-side-title { font-family: 'Playfair Display', serif; font-size: 16px; line-height: 1.3; font-weight: 700; margin: 0 0 5px 0; }
.qz-meta { font-size: 12px; color: #888; font-weight: 600; }

/* --- Standard Loop (Bottom Section) --- */
.latest-analysis-title { font-size: 28px; font-weight: 700; margin-bottom: 20px; padding-left: 10px; border-left: 5px solid var(--accent-color); }
.post-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.post-thumb { flex: 0 0 200px; height: 120px; background: #eee; border-radius: 4px; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-content h2 { font-size: 20px; margin: 0 0 10px 0; }

/* --- Mid-Page Ad Specifics --- */
.mid-page-ad {
    margin: 40px 0;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

/* --- Earnings Transcripts Section --- */
.qz-transcripts-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #111; /* Distinct separator */
}

.qz-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qz-section-title a {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #cf2e2e;
    text-decoration: none;
}

.qz-transcripts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns */
    gap: 20px;
}

.qz-transcript-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    transition: 0.2s;
}

.qz-transcript-card:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #ddd;
}

.qz-transcript-meta {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.qz-transcript-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.qz-transcript-title a {
    color: #333;
    text-decoration: none;
}

.qz-transcript-title a:hover {
    color: #cf2e2e;
}

/* =========================================
   CRITICAL LAYOUT FIXES
   ========================================= */

/* 1. Reset Body to prevent gaps */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrollbar */
}

/* 2. Fix the Sidebar (The cause of the white space) */
#qz-sidebar-menu {
    position: fixed;       /* Take it out of the document flow */
    top: 0;
    left: -320px;          /* Hide it off-screen to the left */
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 99999;        /* Sit on top of everything */
    transition: left 0.3s ease; /* Smooth slide animation */
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    box-sizing: border-box;
}

/* When the 'active' class is added via JS, slide it in */
#qz-sidebar-menu.active {
    left: 0;
}

/* 3. The Dark Overlay Background */
#qz-sidebar-overlay {
    display: none;         /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;        /* Just below the sidebar */
}

#qz-sidebar-overlay.active {
    display: block;
}

/* 4. Close Button inside Sidebar */
.qz-close-btn {
    background: none;
    border: none;
    font-size: 30px;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    color: #333;
}

/* 5. Sidebar Link Styling */
.qz-sidebar-content h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.qz-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qz-mobile-list li {
    margin-bottom: 12px;
}

.qz-mobile-list li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 5px 0;
}

/* =========================================
   CONTAINER & HEADER ALIGNMENT
   ========================================= */

/* Ensure the main container centers the site content */
.container {
    max-width: 1200px;  /* Standard width */
    margin: 0 auto;     /* Center it */
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure Header spans full width */
.qz-clean-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.qz-top-layer, .qz-nav-ribbon {
    width: 100%;
}

/* --- Interviews & Insights Section --- */
.cat-section.bg-gray {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 50px;
    border-top: 0; /* Remove top border if using bg color */
}

.list-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.list-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.list-img {
    flex: 0 0 150px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    background: #ddd;
}

.list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-item:hover .list-img img {
    transform: scale(1.05);
}

.list-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.list-body p {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

/* --- Back to Top Button --- */
#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #cf2e2e; /* Your accent red */
    color: white;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
    background-color: #a81c1c; /* Darker red */
    transform: translateY(-3px);
}

#backToTop span {
    font-size: 24px;
    width: auto;
    height: auto;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .list-item {
        flex-direction: column;
    }
    .list-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        flex: 0 0 auto;
    }
}

/* Responsive for Transcripts */
@media (max-width: 992px) {
    .qz-transcripts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .qz-transcripts-grid { grid-template-columns: 1fr; }
}

/* --- Sticky Header Styles --- */
.qz-clean-header {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #ffffff;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
}

/* Add a shadow when sticky to separate from content */
.qz-clean-header.is-sticky {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Ensure the nav ribbon also looks part of the block */
.qz-nav-ribbon {
    background-color: #ffffff;
}

/* Prevent layout shift */
body {
    overflow-x: hidden; /* Prevent horizontal scroll if header is wide */
}

/* --- Slide-Out Sidebar Menu --- */
.qz-sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* Hidden by default */
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: left 0.3s ease;
    padding: 20px;
}

.qz-sidebar.active {
    left: 0;
}

.qz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

.qz-overlay.active {
    display: block;
}

.qz-close-btn {
    background: none;
    border: none;
    font-size: 30px;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    color: #333;
}

.qz-sidebar-content h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.qz-mobile-list {
    list-style: none;
    padding: 0;
}

.qz-mobile-list li {
    border-bottom: 1px solid #f0f0f0;
}

.qz-mobile-list li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.qz-mobile-list li a:hover {
    color: #cf2e2e;
    padding-left: 5px;
}

/* --- Newsletter Box Styles --- */
.newsletter-box {
    background-color: #f4f4f4;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0;
    border: 1px solid #e0e0e0;
}

.newsletter-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 10px;
}

.newsletter-box p {
    margin-bottom: 20px;
    color: #666;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-input {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
    max-width: 100%;
}

.newsletter-btn {
    background-color: var(--accent-color); /* Red */
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.newsletter-btn:hover {
    background-color: #a81c1c;
}

/* Small Version for Home/Single Pages */
.newsletter-box.small {
    padding: 25px;
    background-color: #fff;
    border: 2px solid #f0f0f0;
}

.newsletter-box.small h3 {
    font-size: 22px;
}

/* --- Single Post Layout --- */
.entry-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 900;
    margin: 10px 0 20px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #222;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Share Bar */
.qz-share-bar {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.share-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    color: #888;
}

.share-btn {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.twitter { background: #000; }
.share-btn.linkedin { background: #0077b5; }

/* Sidebar & Widgets */
.widget-title {
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.widget-list {
    list-style: none;
    padding: 0;
}

/* Sticky Sidebar Logic */
.sticky-sidebar-content {
    position: -webkit-sticky;
    position: sticky;
    top: 90px; /* Offset for the sticky header */
}

/* Related Posts Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.related-card h4 {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.related-card h4 a {
    text-decoration: none;
    color: #111;
}

/* Mobile Response for Single Page */
@media (max-width: 992px) {
    .single-container {
        flex-direction: column;
    }
    .sidebar {
        max-width: 100%;
        margin-top: 40px;
        border-top: 1px solid #eee;
        padding-top: 40px;
    }
    .sticky-sidebar-content {
        position: static;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Advanced Footer Styles --- */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-col h4 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: #aaa;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 50%;
    transition: background 0.3s;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.social-icon:hover {
    background: var(--accent-color);
}

.footer-copyright {
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}
/* --- 1. Fix for Single Page Layout (Collapsed Issue) --- */
.single-container {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Prevents stretching */
    margin-top: 40px;
    margin-bottom: 60px;
}

.main-content {
    flex: 2; /* Takes up 66% */
    min-width: 0; /* Critical fix for flexbox overflow */
}

.sidebar {
    flex: 1; /* Takes up 33% */
    max-width: 350px;
    position: relative;
}

/* Mobile Responsive for Single Page */
@media (max-width: 992px) {
    .single-container {
        flex-direction: column; /* Stack on mobile */
    }
    .sidebar {
        max-width: 100%;
        width: 100%;
        margin-top: 40px;
        border-top: 1px solid #eee;
        padding-top: 40px;
    }
}

/* --- 2. Sticky (Floating) Header --- */
.qz-clean-header {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    z-index: 9999; /* High z-index to stay on top */
    background-color: #ffffff;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtle shadow */
}

/* Ensure admin bar doesn't hide header when logged in */
body.admin-bar .qz-clean-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .qz-clean-header {
        top: 46px;
    }
}

/* =========================================
   Archive / Category Layouts
   ========================================= */

/* Main Container for the list */
.qz-archive-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    max-width: 800px; /* Keep reading width comfortable */
}

/* 1. Standard Layout (Earnings, Tech, IPO, Interviews) */
/* Small Thumb Left + Content Right */
.qz-archive-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.qz-archive-thumb {
    flex-shrink: 0;
    width: 120px;  /* Fixed width for small thumb */
    height: 90px;
}

.qz-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.qz-archive-content {
    flex-grow: 1;
}

.qz-archive-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.qz-archive-title a {
    color: #333;
    text-decoration: none;
}

.qz-archive-title a:hover {
    color: #0073aa; /* Change to your brand color */
}

.qz-archive-meta {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 2. Transcript Specific Layout (No Image, Card Style) */
.qz-transcript-item {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #0073aa; /* Accent border */
    transition: box-shadow 0.2s;
}

.qz-transcript-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.qz-transcript-label {
    display: inline-block;
    background: #f0f5fa;
    color: #0073aa;
    font-size: 11px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .qz-archive-item {
        gap: 15px;
    }
    .qz-archive-thumb {
        width: 90px;
        height: 68px;
    }
    .qz-archive-title {
        font-size: 16px;
    }
}
/* =========================================
   Logo Styling
   ========================================= */
.qz-center .custom-logo-link img {
    max-height: 50px; /* Adjust based on your header height */
    width: auto;
    display: block;
}

/* =========================================
   Live Ajax Search Dropdown
   ========================================= */
.header-search-form {
    position: relative; /* Essential for dropdown positioning */
}

.search-dropdown-results {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px; /* Wider than input */
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    border-radius: 4px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.ajax-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ajax-search-list li a {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s;
}

.ajax-search-list li a:hover {
    background: #f9f9f9;
}

.search-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 12px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-text {
    flex-grow: 1;
}

.search-title {
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.search-date {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.search-footer {
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    font-size: 13px;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #777;
    font-size: 13px;
}

/* Responsive Search */
@media (max-width: 480px) {
    .search-dropdown-results {
        width: 280px; /* Smaller on mobile */
    }
}
/* =========================================
   Shrinking Sticky Header Animation
   ========================================= */

/* 1. Define Transitions (Make it smooth) */
.qz-clean-header,
.qz-top-layer,
.custom-logo-link img,
.qz-logo,
.header-search-input,
.header-search-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Styles when Sticky is ACTIVE */
.qz-clean-header.is-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #fff; /* Ensure background is solid white */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Add shadow for depth */
}

/* Shrink the Top Layer container */
.qz-clean-header.is-sticky .qz-top-layer {
    padding-top: 5px;   /* Reduce top padding */
    padding-bottom: 5px; /* Reduce bottom padding */
    border-bottom: none; /* Optional: remove divider lines to look cleaner */
}

/* Shrink the Logo */
.qz-clean-header.is-sticky .custom-logo-link img {
    max-height: 35px; /* Shrink logo from 60px to 35px */
    width: auto;
}

/* If you are using Text Logo instead of Image */
.qz-clean-header.is-sticky .qz-logo {
    font-size: 20px; /* Shrink text size */
}

/* Compact Search Bar */
.qz-clean-header.is-sticky .header-search-input {
    padding: 6px 15px; /* Reduce padding inside search box */
    font-size: 13px;
    height: 34px; /* Force smaller height */
}

.qz-clean-header.is-sticky .header-search-btn {
    height: 34px;
    width: 34px;
    line-height: 34px;
}

/* Optional: Hide the "Newsletter" link on scroll to save clutter */
.qz-clean-header.is-sticky .qz-util-link {
    opacity: 0;
    visibility: hidden;
    width: 0;
    margin: 0;
    transition: 0.2s;
}

/* Optional: Make the Navigation Ribbon tighter */
.qz-clean-header.is-sticky .qz-nav-ribbon {
    display: none; /* OPTION A: Hide Nav entirely on scroll (Super Clean) */
    /* OR use OPTION B below: */
}

/* OPTION B: Keep Nav but make it very thin */
/* 
.qz-clean-header.is-sticky .qz-nav-ribbon {
    padding: 0;
}
.qz-clean-header.is-sticky .qz-nav-list li a {
    padding: 8px 15px;
    font-size: 12px;
}
*/
/* ============================================================
   ALPHASTREET THEME UPDATES (Copy to bottom of style.css)
   ============================================================ */

/* ------------------------------------------------------------
   1. STICKY SHRINKING HEADER
   ------------------------------------------------------------ */
/* Smooth transitions for animations */
.qz-clean-header,
.qz-top-layer,
.custom-logo-link img,
.header-search-input,
.header-search-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* State: When Sticky is Active */
.qz-clean-header.is-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Shrink the container */
.qz-clean-header.is-sticky .qz-top-layer {
    padding-top: 5px;
    padding-bottom: 5px;
    border-bottom: none;
}

/* Shrink the Logo */
.qz-clean-header.is-sticky .custom-logo-link img {
    max-height: 35px; /* Shrinks from default to 35px */
    width: auto;
}

/* Hide Navigation Ribbon on scroll to save space */
.qz-clean-header.is-sticky .qz-nav-ribbon {
    display: none;
}

/* Compact Search Bar */
.qz-clean-header.is-sticky .header-search-input {
    padding: 6px 15px;
    font-size: 13px;
    height: 34px;
}
.qz-clean-header.is-sticky .header-search-btn {
    height: 34px;
    width: 34px;
    line-height: 34px;
}

/* Hide 'Newsletter' link on scroll */
.qz-clean-header.is-sticky .qz-util-link {
    opacity: 0;
    visibility: hidden;
}


/* ------------------------------------------------------------
   2. LIVE AJAX SEARCH DROPDOWN
   ------------------------------------------------------------ */
.header-search-form {
    position: relative;
}

.search-dropdown-results {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    border-radius: 4px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.ajax-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ajax-search-list li a {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s;
}

.ajax-search-list li a:hover {
    background: #f9f9f9;
}

.search-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 12px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-text {
    flex-grow: 1;
}

.search-title {
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.search-date {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.search-footer {
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    font-size: 13px;
    border-top: 1px solid #ddd;
}
.search-footer a { color: #0073aa; font-weight: 600; text-decoration: none; }


/* ------------------------------------------------------------
   3. CATEGORY ARCHIVE LAYOUTS (Small Thumb vs Transcript)
   ------------------------------------------------------------ */
.qz-archive-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    max-width: 800px;
}

/* Standard Layout: Small Left Thumb + Right Content */
.qz-archive-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.qz-archive-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
}
.qz-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.qz-archive-content { flex-grow: 1; }

.qz-archive-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.qz-archive-title a { color: #333; text-decoration: none; }
.qz-archive-title a:hover { color: #0073aa; }

.qz-archive-meta {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Transcript Layout: No Image, Card Style */
.qz-transcript-item {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    transition: box-shadow 0.2s;
}
.qz-transcript-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.qz-transcript-label {
    display: inline-block;
    background: #f0f5fa;
    color: #0073aa;
    font-size: 11px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .qz-archive-item { gap: 15px; }
    .qz-archive-thumb { width: 90px; height: 68px; }
    .qz-archive-title { font-size: 16px; }
}


/* ------------------------------------------------------------
   4. CONCALL INSIGHTS BOX (AI Generated)
   ------------------------------------------------------------ */
.qz-insights-box {
    background-color: #f8fbff; /* Light Blue Background */
    border: 1px solid #cce5ff;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.qz-insights-header {
    background-color: #e6f2ff;
    padding: 12px 20px;
    font-weight: 700;
    color: #004085; /* Dark Blue Text */
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    border-bottom: 1px solid #cce5ff;
}

.qz-insights-header .dashicons {
    margin-right: 8px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.qz-ai-badge {
    background: #004085;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qz-insights-content {
    padding: 20px;
    color: #333;
}

/* Bullet Points in Insights */
.qz-insights-content ul {
    margin: 0;
    padding-left: 20px;
}

.qz-insights-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 17px; /* Larger font for readability */
}

.qz-insights-content li:last-child {
    margin-bottom: 0;
}
/* =========================================================
   ALPHASTREET INDIA MIGRATION FIXES
   Added: November 26, 2025
   ========================================================= */

/* Fix for Sidebar Layout */
aside.qz-sidebar {
    position: relative;
    display: block;
    width: 100%;
    z-index: 1;
}

/* Fix for Container Width to stop layout shifts */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
        width: 95%;
        margin: 0 auto;
    }
}
/* =========================================================
   ALPHASTREET LAYOUT FIXES (Added Nov 26, 2025)
   ========================================================= */

/* 1. Fix Sidebar Positioning 
   Ensures the sidebar sits correctly next to the content
   instead of floating or overlapping. */
aside.qz-sidebar {
    position: relative;
    display: block;
    width: 100%;
    z-index: 1;
}

/* 2. Fix Container Width
   Prevents the site from looking too narrow on large screens
   and stops layout jumping (CLS). */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px; /* Make content wider */
        width: 95%;        /* Use 95% of the screen */
        margin-right: auto;
        margin-left: auto;
        padding-left: 15px;
        padding-right: 15px;
    }
}
/* Ensure Single Post Layout matches Homepage Grid */
@media screen and (min-width: 992px) {
    .single .qz-story-grid {
        display: flex;
        gap: 30px;
    }
    
    .single .qz-lead-story {
        flex: 2; /* Content takes 2/3 */
    }
    
    .single .qz-side-feed {
        flex: 1; /* Sidebar takes 1/3 */
        border-left: 1px solid #eee; /* Optional visual separator */
        padding-left: 20px;
    }
}

/* Mobile Styling */
@media screen and (max-width: 991px) {
    .single .qz-story-grid {
        display: block;
    }
    .single .qz-lead-story,
    .single .qz-side-feed {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
    }
    .single .qz-side-feed {
        margin-top: 40px;
    }
}

.qz-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.related-thumb img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; }
.related-content h4 { font-size: 16px; margin: 10px 0 5px; line-height: 1.4; }
.related-content .date { font-size: 12px; color: #888; }
@media(max-width: 768px) { .qz-related-grid { grid-template-columns: 1fr; } }

.qz-quick-read {
    background-color: #f7f9fc; /* Light professional blue/grey */
    border-left: 4px solid #0073e6; /* Accent color */
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
}
.qz-qr-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    text-transform: uppercase;
    color: #333;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.qz-qr-content ul { margin: 0; padding-left: 20px; }
.qz-qr-content li { margin-bottom: 8px; font-size: 18px; line-height: 1.5; color: #2c3e50; }

/* Container Spacing */
.qz-video-section {
    background: #111; /* Dark Cinema Background */
    color: #fff;
    padding: 50px 0;
    margin: 40px 0;
}

/* Header */
.qz-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.qz-section-title {
    color: #fff;
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
}
.qz-view-all {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.qz-view-all:hover { color: #fff; }

/* Grid Layout */
.qz-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Video Card */
.qz-video-card {
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.qz-video-card:hover {
    transform: translateY(-5px); /* Lift effect */
}

/* Thumbnail Wrapper (The Facade) */
.qz-video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    cursor: pointer;
}
.qz-video-thumb img, 
.qz-video-thumb iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* YouTube Play Button Styling */
.qz-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}
.qz-play-shape { fill: #212121; fill-opacity: 0.8; transition: fill 0.1s; }
.qz-play-icon { fill: #fff; }
.qz-video-thumb:hover .qz-play-shape { fill: #ff0000; fill-opacity: 1; }

/* Video Info */
.qz-video-info {
    padding: 15px;
}
.qz-video-info h4 {
    color: #fff;
    font-size: 15px;
    margin: 0 0 8px;
    line-height: 1.4;
    font-weight: 600;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.qz-video-date {
    font-size: 12px;
    color: #888;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .qz-video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .qz-video-grid { grid-template-columns: 1fr; }
    .qz-video-section { padding: 30px 0; }
}

/* --- Footer --- */
footer { background: #111; color: #fff; padding: 60px 0; margin-top: 80px; text-align: center; }