/*
 Theme Name:   Anwar TV Style Child
 Theme URI:    https://generatepress.com
 Description:  GeneratePress Child Theme for Home, Kitchen & Garden (Based on Anwar TV Demo)
 Author:       Your Name
 Template:     generatepress
 Version:      1.0.0
*/

:root {
    --primary: #a01422;
    --secondary: #0f172a;
    --accent: #f50a0a;
    --font-main: 'Noto Serif Bengali', Georgia, 'Times New Roman', serif;
    --font-size-base: 16px;
    --card-radius: 16px;
    --ticker-speed: 40s;
    --ticker-bg: #ff0000;
    --ticker-text: #ffffff;
}

/* স্ক্রলবার হাইড করার কাস্টম কোড */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* রুল ১৪: কন্টেন্টের ভেতর লিংক হাইলাইট (কন্টেন্টের সাথে মিশে থাকা স্টাইল) */
.entry-content p a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(160, 20, 34, 0.3);
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}
.entry-content p a:hover {
    text-decoration-color: var(--primary);
    background-color: rgba(160, 20, 34, 0.05);
}

/* রুল ২২: কোয়াটস (Blockquote) ইউনিক ডিজাইন */
.entry-content blockquote {
    border-left: 4px solid var(--primary);
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    font-style: italic;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin: 1.5em 0;
}

/* =========================================================
   GeneratePress Default Container Overrides (Layout Fix)
   ========================================================= */

#page.site.grid-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

#content.site-content {
    display: block !important; /* ফ্লেক্সবক্সের কারণে একপাশে সরে যাওয়া ঠেকানোর জাদুকরী কোড */
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* গ্লোবাল বডি ব্যাকগ্রাউন্ড (লাইট মোড) */
body, .site {
    background-color: #f8fafc !important; /* Tailwind slate-50 */
    margin: 0;
}

/* গ্লোবাল বডি ব্যাকগ্রাউন্ড (ডার্ক মোড) */
html.dark body, 
html.dark .site, 
html.dark .site-content {
    background-color: #020617 !important; /* Tailwind slate-950 */
}


/* =========================================================
   Dynamic Menu & Logo Styles
   ========================================================= */

/* Logo Image Style */
.custom-logo-link img {
    max-height: 45px;
    width: auto;
}

/* Desktop Menu WordPress Styles */
.desktop-menu-wrapper ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.desktop-menu-wrapper li {
    position: relative;
}
.desktop-menu-wrapper a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 15px;
    font-weight: 600;
    color: #334155; 
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
html.dark .desktop-menu-wrapper a {
    color: #e2e8f0; 
}
.desktop-menu-wrapper a:hover,
.desktop-menu-wrapper li.current-menu-item > a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
html.dark .desktop-menu-wrapper a:hover,
html.dark .desktop-menu-wrapper li.current-menu-item > a {
    color: #22d3ee; 
    border-bottom-color: #22d3ee;
}

/* Mobile Menu WordPress Styles */
.mobile-menu-wrapper ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mobile-menu-wrapper a {
    display: block;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: #f8fafc; 
    color: #0f172a; 
    font-weight: 600;
    transition: all 0.2s ease;
}
html.dark .mobile-menu-wrapper a {
    background-color: rgba(30, 41, 59, 0.8); 
    color: #f8fafc; 
}
.mobile-menu-wrapper a:hover,
.mobile-menu-wrapper li.current-menu-item > a {
    transform: scale(1.03);
    color: var(--primary);
}
html.dark .mobile-menu-wrapper a:hover,
html.dark .mobile-menu-wrapper li.current-menu-item > a {
    color: #22d3ee; 
}

/* =========================================================
   Single Post Content Formatting (The Standard Look)
   ========================================================= */

.entry-content {
    font-size: 1.125rem; /* 18px */
    line-height: 1.8;
}

/* প্যারাগ্রাফের মাঝে ফাঁকা জায়গা */
.entry-content p {
    margin-bottom: 1.5em;
}

/* হেডিং স্টাইলস */
.entry-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--secondary);
}
.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: var(--secondary);
}
html.dark .entry-content h2,
html.dark .entry-content h3 {
    color: #f8fafc;
}

/* লিস্ট বা পয়েন্ট স্টাইলস */
.entry-content ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.entry-content ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.entry-content li {
    margin-bottom: 0.5em;
}

/* বোল্ড টেক্সট */
.entry-content strong, 
.entry-content b {
    font-weight: 700;
    color: var(--secondary);
}
html.dark .entry-content strong, 
html.dark .entry-content b {
    color: #ffffff;
}

/* ইমেজের মার্জিন */
.entry-content img {
    margin: 2em 0;
    border-radius: 12px;
}