/**
 * Theme Name: RST Bulletin Pro
 * Theme URI: https://jagobulletin.com/
 * Author: RJ Tanjid
 * Author URL: http://rjtanjid24.github.io/me
 * Agency: RST Multimedia
 * Facebook: https://www.facebook.com/RJTanjid24/
 * Description: A modern Bangla news portal theme with built in Photo Card, Print Version & Smart View.
 * Version: 1.0.5
 * Text Domain: rst-bulletin-pro
 * @package RST_Bulletin_Pro
 */

/* ==========================================================================
   Table of Contents:
   1. Typography & Global Reset
   2. Header & Navigation
   3. Content Components & Helpers
   4. Sidebar & Widgets
   5. Advertisement Slots (Global System)
   6. Footer Styles
   7. Pagination & Miscellaneous
   8. Responsive Design
   ========================================================================== */

/* ==========================================================================
   1. Typography & Global Reset
   ========================================================================== */
@font-face {
    font-family: 'July';
    src: url('assets/fonts/July-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Branding Colors - Easily changeable for other themes */
    --rst-primary: #00796a;   /* Was --bss-green */
    --rst-secondary: #00695c; /* Was --bss-teal */
    --rst-accent: #d82133;    /* Was --bss-red */
    
    /* Global UI Colors */
    --rst-text: #333333;
    --rst-bg: #ffffff;
    --rst-footer-bg: #1a1a1a;
    --rst-footer-text: #dddddd;
    --rst-gray-light: #f9f9f9;
    --rst-border: #dddddd;
    
    /* Settings */
    --rst-transition: all 0.3s ease;
}

body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, .site-footer {
    font-family: 'July', 'SolaimanLipi', Arial, sans-serif !important;
}

body {
    margin: 0; 
    padding: 0;
    background: var(--rst-bg);
    color: var(--rst-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    transition: var(--rst-transition); 
    color: inherit;
}

a:hover { 
    color: var(--rst-primary); 
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
.site-header { 
    padding-bottom: 0; 
}

.logo-text {
    font-size: 42px; 
    font-weight: bold;
    color: var(--rst-primary); 
    line-height: 1;
}

.site-tagline { 
    font-size: 14px; 
    color: #666; 
    margin-top: 5px; 
}

/* Date & Info Section */
.date-info {
    border-left: 2px solid var(--rst-border);
    padding-left: 20px; 
    margin-left: 20px;
    line-height: 1.3;
}

.day-name { 
    color: var(--rst-accent); 
    font-weight: bold; 
    font-size: 18px; 
}

/* Button UI */
.btn-custom {
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 14px;
    padding: 6px 15px; 
    color: #fff !important;
    display: inline-block; 
    transition: var(--rst-transition);
}

.btn-archive { background-color: var(--rst-accent); }
.btn-english { background-color: var(--rst-primary); }
.btn-custom:hover { opacity: 0.9; color: #fff !important; }

/* Main Navigation Menu */
.nav-container {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    height: 50px; 
    border-top: 3px solid #000; 
    border-bottom: 3px solid #000;
    margin-top: 15px; 
    margin-bottom: 15px;
}

.nav-fixed-icon {
    display: flex; 
    align-items: center; 
    justify-content: center;
    height: 50px; 
    width: 50px; 
    color: #000; 
    font-size: 20px;
}

.nav-fixed-icon:hover, 
.rst-nav-menu li a:hover {
    background-color: var(--rst-primary); 
    color: #fff !important;
}

.rst-nav-menu { 
    display: flex; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    height: 100%; 
}

.rst-nav-menu li a {
    color: #000; 
    font-weight: bold; 
    font-size: 17px; 
    padding: 0 15px;
    display: flex; 
    align-items: center; 
    height: 100%;
}

/* News Ticker */
.ticker-wrapper {
    background: var(--rst-gray-light); 
    border-bottom: 1px solid var(--rst-border); 
    height: 40px;
    display: flex; 
    align-items: center; 
    overflow: hidden;
}

.ticker-title {
    background: #fff; 
    color: #000; 
    padding: 0 20px; 
    height: 40px;
    line-height: 40px; 
    font-weight: bold; 
    border-left: 5px solid var(--rst-accent);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); 
    z-index: 10;
}

.ticker-item { 
    margin-right: 30px; 
    font-size: 16px; 
    color: var(--rst-text); 
}

.ticker-bullet { 
    color: var(--rst-accent); 
    margin-right: 5px; 
}

/* ==========================================================================
   3. Content Components & Helpers
   ========================================================================== */

/* Visual Utilities */
.object-fit-cover { object-fit: cover; }

.img-wrapper { 
    overflow: hidden; 
    position: relative; 
}

.img-wrapper img { 
    transition: transform 0.5s ease; 
}

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

.line-clamp-2 {
    display: -webkit-box; 
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

.overlay-gradient {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

/* Specialized Content Boxes */
.opinion-box {
    border: 1px solid #dee2e6; 
    background: #fff; 
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.press-release-box {
    background-color: var(--rst-secondary) !important;
    border: 1px solid #004d40; 
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 121, 106, 0.2);
}

.press-release-slim {
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cat-title-text {
    border-radius: 4px 4px 0 0; 
    padding-bottom: 6px;
    font-size: 1.1rem; 
    font-weight: bold;
}

/* Hero Lead Overlay */
.hero-lead-wrapper {
    position: relative;
}

.headline-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

/* Interactions & Hover States */
.hover-top:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; 
}

.hover-bg-light:hover { background-color: #f8f9fa; }
.hover-text-success:hover { color: #198754 !important; }
.group-hover-red:hover { color: var(--rst-accent) !important; }

.hover-text-danger:hover {
    color: var(--rst-accent) !important;
    padding-left: 5px;
    transition: 0.3s;
}

/* ==========================================================================
   4. Sidebar & Widgets
   ========================================================================== */
.sidebar-widget .nav-tabs .nav-link {
    background: #f8f9fa;
    color: #555;
    transition: var(--rst-transition);
}

.sidebar-widget .nav-tabs .nav-link.active {
    background: #fff;
    color: var(--rst-accent) !important;
    border-bottom: 2px solid var(--rst-accent) !important;
}

.fb-sidebar-box {
    min-height: 130px;
}

.last-border-none:last-child {
    border-bottom: none !important;
}

/* ==========================================================================
   5. Advertisement Slots
   ========================================================================== */

/* Universal Ad Wrapper - supports PHP generated slots */
.rst-ad-slot {
    display: block;
    margin: 20px auto;
    text-align: center;
    clear: both;
}

.rst-ad-slot img {
    max-width: 100%;
    height: auto;
}

/* Specific styling for horizontal banners */
.ad-slot-horizontal {
    margin: 30px 0;
    text-align: center;
    background-color: var(--rst-gray-light);
    border: 1px dashed #ccc;
    padding: 15px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Styled Ad Container with Label */
.ad-container-main {
    text-align: center;
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    padding: 10px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ad-container-main::before {
    content: "ADVERTISEMENT";
    font-size: 9px;
    color: #adb5bd;
    position: absolute;
    top: 2px;
    letter-spacing: 2px;
}

.ad-sidebar-wrapper {
    text-align: center;
    background: #fdfdfd;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* ==========================================================================
   6. Footer Styles
   ========================================================================== */
.site-footer {
    background-color: var(--rst-footer-bg); 
    color: var(--rst-footer-text);
    font-size: 14px; 
    margin-top: 30px; 
    padding-top: 20px;
}

.footer-top-border {
    border-top: 1px solid #444; 
    border-bottom: 1px solid #444;
    height: 4px; 
    margin-bottom: 25px;
}

.footer-logo img { 
    max-height: 65px; 
    width: auto; 
}

.social-circle {
    width: 32px; 
    height: 32px; 
    border-radius: 50%;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    color: #fff !important; 
    font-size: 14px; 
    margin-right: 5px;
}

.social-circle.fb { background-color: #3b5998; }
.social-circle.x { background-color: #000; }
.social-circle.yt { background-color: #ff0000; }
.social-circle.insta { background: linear-gradient(45deg, #f09433, #bc1888); }

.footer-bottom {
    background-color: #000; 
    padding: 10px 0;
    border-top: 1px solid #333; 
    margin-top: 20px;
}

/* ==========================================================================
   7. Pagination & Miscellaneous
   ========================================================================== */
.pagination {
    gap: 10px;
}

.page-numbers {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--rst-border);
    border-radius: 4px;
    color: var(--rst-text);
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.page-numbers.current, 
.page-numbers:hover {
    background: var(--rst-accent);
    color: #fff !important;
    border-color: var(--rst-accent);
}

.search-box-404 .form-control:focus {
    box-shadow: none;
    background-color: #fff;
}

/* ==========================================================================
   8. Responsive Design
   ========================================================================== */
@media (min-width: 992px) {
    .middle-column { 
        border-left: 1px solid #444; 
        border-right: 1px solid #444; 
    }
}

@media (max-width: 991px) {
    .date-info { 
        border-left: none; 
        padding-left: 0; 
        margin: 10px 0; 
        display: block; 
    }
    .nav-container { 
        height: auto; 
        flex-direction: column; 
    }
    .rst-nav-menu { /* Updated class name */
        flex-wrap: wrap; 
        justify-content: center; 
        height: auto; 
    }
    .rst-nav-menu li a { 
        padding: 10px; 
        font-size: 15px; 
    }
    .middle-column { 
        border: none; 
        margin: 20px 0; 
    }
}