/* style.css ফাইলের শুরুতে যুক্ত করুন */


@import url('https://fonts.maateen.me/solaiman-lipi/font.css');

:root {
    --font-primary: 'SolaimanLipi', sans-serif;
}

/* আপনার বর্তমান body স্টাইলটি খুঁজে নিচের কোড দিয়ে পরিবর্তন করুন */
body { 
    font-family: 'SolaimanLipi', sans-serif;
    background-color: #ffffff; 
    color: #333; 
    line-height: 1.6; 
}

/* --- Mobile Sidebar --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    background-color: #fff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}
.mobile-sidebar.open {
    transform: translateX(0);
}
.sidebar-header {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.sidebar-header input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px;
    font-size: 14px;
}
.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    margin-left: 10px;
}
.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
}
.sidebar-nav ul {
    list-style: none;
}
.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    font-family: var(--font-primary);
    font-weight: 600;
}
.sidebar-nav ul li a:hover {
    background-color: #f5f5f5;
}
.sidebar-nav i {
    width: 30px;
    text-align: center;
    color: #666;
    margin-right: 10px;
}
.sidebar-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    border-top: 1px solid #eee;
}
.sidebar-footer a {
    font-size: 18px;
    color: #fff;
    width: 35px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-footer a[aria-label="Facebook"] { background-color: #3b5998; }
.sidebar-footer a[aria-label="Youtube"] { background-color: #cd201f; }
.sidebar-footer a[aria-label="Twitter"] { background-color: #1da1f2; }
.sidebar-footer a[aria-label="Pinterest"] { background-color: #bd081c; }
.sidebar-footer a[aria-label="LinkedIn"] { background-color: #0077b5; }
.sidebar-footer a[aria-label="Instagram"] { background: #d6249f; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* --- Live Button Animation --- */
.live-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    position: relative;
}

.live-dot {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.container.header-top-content {
    margin-top: 0 !important;

}

/* --- Header Section --- */
.header { position: sticky; top: 0; width: 100%; z-index: 1000; background-color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
/* style.css */

.header-top {
    background-color: var(--header-bg-color); /* Background changed to white */
    color: #333; /* Default text color changed */
    padding: 0 !important;
    border-bottom: 1px solid #eee;
}

.search-box input::placeholder {
    font-size: 13px; /* সার্চ বক্সের টেক্সট ছোট করা হয়েছে */
    font-family: var(--font-primary);
}

.live-btn .live-icon {
    animation: pulse-live 1.5s infinite; /* অ্যানিমেশন যুক্ত করা হয়েছে */
}

@keyframes pulse-live {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* style.css */

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* এই লাইনটি যোগ করুন */
    min-height: 5px; /* এটি যোগ করুন যাতে লোগো রাখার জন্য যথেষ্ট জায়গা থাকে */
}

/* style.css ফাইলের পুরোনো .logo স্টাইলটি খুঁজে নিচের কোড দিয়ে পরিবর্তন করুন */

.logo {
    position: relative; 
    top: auto;
    left: auto;
    z-index: 1;
}
/* style.css ফাইলের পুরোনো .logo img স্টাইলটি খুঁজে নিচের কোড দিয়ে পরিবর্তন করুন */

.logo img {
    height: 60px; /* লোগোর উচ্চতা বাড়ানো হয়েছে */
    filter: none;
}
.header-right { display: flex; align-items: center; gap: 20px;     margin-left: auto; /* এই লাইনটি হেডার-এর ডান পাশের অংশকে ডানে ঠেলে দেবে */
}

.search-box { display: flex; align-items: center; background-color: rgba(255, 255, 255, 0.9); border-radius: 5px; overflow: hidden; }
.search-box input { border: none; background: transparent; outline: none; padding: 5px 12px; font-size: 14px; width: 200px; color: #333; }
.search-box button { background-color: transparent; border: none; color: #555; padding: 0 10px; cursor: pointer; font-size: 16px; }
.menu-icon { font-size: 24px; cursor: pointer; }

/* --- Main Navigation --- */
.main-nav { 
    background-color: var(--header-bg-color);
    border-bottom: 0; 
    padding: 0; 
    margin-top: -10px;
    border-top: 1px solid #eee;
}
/* style.css ফাইলের পুরোনো .main-nav ul স্টাইলটি খুঁজে নিচের কোড দিয়ে পরিবর্তন করুন */

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding-left: 0; 
}
.main-nav li a {
    display: block;
    padding: 5px 10px; /* প্যাডিং কমানো হয়েছে */
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
    font-family: var(--font-primary);
    font-size: 15px; /* ফন্ট সাইজ কমানো হয়েছে */
}
.main-nav .container{
    max-width: 1300px;
    margin: 0px auto;
    padding: 0 5px;

}


.main-nav li a:hover { background-color: #f0f2f5; color: #008101; }

/* --- Top News Carousel --- */
.top-news-carousel-container { background-color: #fff; margin-top: 6px; padding: 10px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.carousel-inner-wrapper { display: flex; align-items: center; max-width: 1300px; margin: 0 auto; position: relative; }
.top-news-carousel { display: flex; overflow-x: hidden; scroll-behavior: smooth; gap: 5px; flex-grow: 1; padding: 0 2px; }
.news-item { min-width: 235px; flex-shrink: 0; }

.news-item a { display: flex; align-items: center; gap: 5px; }

.news-item .image-wrapper { position: relative; width: 70px; height: 50px; border-radius: 5px; overflow: hidden; flex-shrink: 0; }
.news-item img { width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; opacity: 0; transition: opacity 0.3s ease; }
.news-item a:hover .video-overlay { opacity: 1; }
/* style.css ফাইলের পরিবর্তন */

/* File: ntv/style.css */

.news-item span {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    font-family: var(--font-primary);
    display: block; /* <br> ট্যাগ কাজ করার জন্য এটি প্রয়োজন */
    height: calc(1.4em * 2.2); /* দুটি লাইনের জন্য নির্দিষ্ট উচ্চতা */
    overflow: hidden; /* অতিরিক্ত লাইন দেখা যাবে না */
}


.carousel-btn { background: #f0f2f5; border: 1px solid #ddd; padding: 10px 15px; cursor: pointer; border-radius: 5px; z-index: 10; }

/* --- Hero Section --- */
.hero-section { display: flex; gap: 20px; margin-top: 20px; margin-bottom: 20px; }
.hero-main-column {
    flex: 2;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    max-height: 380px; /* উচ্চতা কমানো হয়েছে */
}
.hero-section container{
    margin-top: 6px !important;
}
.main-article { display: block; width: 100%; height: 100%; }
.main-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.main-article:hover img { transform: scale(1.05); }
.main-article-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 20px 20px; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent); color: #fff; }
.main-article-title h2 {
    font-size: 24px; /* Font size কমানো হয়েছে */
    font-family: var(--font-primary);
}
.hero-side-column {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    height: 380px; /* উচ্চতা 380px করা হয়েছে */
}
.side-article { background-color: #fff; border-radius: 5px; overflow: hidden; transition: box-shadow 0.3s ease; }
.side-article img { 
    width: 100%; 
    aspect-ratio: 16 / 10; 
    object-fit: cover; 
    height: 120px;

}
.side-article h3 {
    font-size: 15px; /* Font size ছোট করা হয়েছে */
    padding: 6px;
    padding-bottom: 5px;
    font-weight: 600;
    font-family: var(--font-primary);
    line-height: 21.5px;
}

/* --- Desktop Mega Menu Styles --- */
@media (min-width: 769px) {
    .mega-menu {
        display: none; 
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: #f0f2f5;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 999;
        visibility: hidden; opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    .mega-menu.show { 
        display: block;
        visibility: visible; 
        opacity: 1; 
        transform: translateY(0); 
    }
    .mega-menu-body { padding: 30px 0 20px 0; }
    .mega-menu-content { display: flex; justify-content: space-between; flex-wrap: wrap; }
    .mega-menu-column { flex: 1; min-width: 180px; padding: 0 15px; margin-bottom: 20px; }
    .mega-menu-column ul { list-style: none; }
    .mega-menu-column ul li a { display: block; padding: 8px 0; color: #333; font-size: 16px; border-bottom: 1px solid #ddd; transition: color 0.3s;font-family: var(--font-primary);  font-weight: 600; }
    .mega-menu-column ul li:last-child a { border-bottom: none; }
    .mega-menu-column ul li a:hover { color: #008101; }
    .english-version { color: #e02a2a !important; font-weight: bold; }
    .mega-menu-footer { background-color: #333; color: #fff; }
    .mega-menu-footer-content { display: flex; justify-content: space-between; align-items: center; padding: 15px; flex-wrap: wrap; }
    .footer-links { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; margin-bottom: 10px;  font-family: var(--font-primary); font-weight: 600;}
    .footer-links a { display: flex; align-items: center; gap: 8px; font-size: 15px; transition: color 0.3s; }
    .footer-links a:hover { color: #00b302; }
    .footer-links i { width: 28px; height: 28px; background-color: #555; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
    .footer-social { display: flex; align-items: center; gap: 12px; }
    .footer-social span { font-size: 15px; font-weight: bold; }
    .footer-social a { width: 32px; height: 32px; background-color: #555; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background-color 0.3s; }
    .footer-social a:hover { background-color: #008101; }
}
.container {
    max-width: 1200px;
    margin: 5px auto !important;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- Mobile & Tablet Responsive Styles --- */
@media (max-width: 992px) {
    .search-box input { width: 120px; }
    .mega-menu-footer-content { justify-content: center; gap: 20px; }
}

@media (max-width: 768px) {
    .search-box, .mega-menu { display: none; }
    
    .main-nav .container { padding: 0; }
    .main-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .main-nav ul::-webkit-scrollbar {
        display: none;
    }

    .hero-section { flex-direction: column; }
    .main-article-title h2 { font-size: 22px; }
    .side-article h3 { font-size: 17px;  line-height: 18px;}
    #carousel-prev { position: absolute; left: -10px; top: 50%; transform: translateY(-50%); display: none;}
    #carousel-next { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); display: none;}
    .top-news-carousel { padding: 0 35px; }
}

@media (max-width: 480px) {
    .main-article-title h2 { 
        font-size: 20px;
        line-height: 20px;
     }

    .read-more-link span{
        font-size: 12px; /* Font size ছোট করা হয়েছে */
    }
}


/* --- Post-Hero Section --- */
.post-hero-section {
    display: grid;
    grid-template-columns: 3fr 4fr 3fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.section-title {
    font-size: 18px; /* Font size ছোট করা হয়েছে */
    border-bottom: 2px solid #151a15d8;
    padding-bottom: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
}

/* Opinion Column */
.opinion-column {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.opinion-card {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}
.opinion-card:last-of-type {
    border-bottom: none;
}
.opinion-card-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color); /* Dynamic Color */
    overflow: hidden;
    flex-shrink: 0;
}
.opinion-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.opinion-card-text h3 {
    font-size: 16px; /* Font size ছোট করা হয়েছে */
    font-weight: 800;
    font-family: var(--font-primary);
}
.opinion-card-text p {
    font-size: 14px; /* Font size ছোট করা হয়েছে */
    font-family: var(--font-primary);
    font-weight: 600;
}
.slider-dots {
    text-align: center;
    padding-top: 15px;
}
.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}
.dot.active {
    background-color: var(--primary-color);
}

/* Poll Column */
.poll-column {
    background: #fff;
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.poll-date {
    font-size: 13px;
    color: #777;
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-primary);
}
.poll-img {
    width: 100%;
    border-radius: 5px;
}
.poll-question {
    font-size: 17px; /* Font size ছোট করা হয়েছে */
    font-weight: 800;
    font-family: var(--font-primary);
}
.poll-form div {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 5px;
     font-family: var(--font-primary);
}
.poll-results {
    font-weight: bold;
    margin: 15px 0;
    font-family: var(--font-primary);
}
input#poll-yes, input#poll-no, input#poll-comment{
    margin-right: 8px;
    
}
label {
    font-weight: 600;
}

.poll-share {
    display: flex;
    gap: 15px; /* আইকনগুলোর মধ্যে গ্যাপ বাড়ানো হলো */
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    justify-content: center; /* আইকনগুলোকে মাঝখানে আনা হলো */
}
.social-icon {
    width: 35px; /* প্রস্থ বাড়ানো হলো */
    height: 35px; /* উচ্চতা বাড়ানো হলো */
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px; /* ফন্ট সাইজ বাড়ানো হলো */
}
/* Social Icon Colors */
.social-icon.fb { background-color: #1877f2; }
.social-icon.tw { background-color: #000000; } /* টুইটারের জন্য সঠিক ক্লাস */
.social-icon.wa { background-color: #25d366; }
.social-icon.li { background-color: #0a66c2; }
.social-icon.mail { background-color: #777; } /* আপনার HTML এ mail আইকন আছে, তাই এটি যোগ করা হলো */
.social-icon.messenger { background-color: #0084ff; }
.social-icon.copy { background-color: #008101; }
.social-icon.gallery { background-color: #c13584; }


/* Latest/Popular Column */
.latest-popular-column {
    background: #fff;
    padding: 6px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.tabs-nav {
    display: flex;
    justify-content: space-around; /* শুধু এই লাইনটি পরিবর্তন করুন */
    border-bottom: 2px solid #ddd;
}
.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 20px; /* Font size ছোট করা হয়েছে */
    font-weight: bold;
    position: relative;
    color: #555;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tab-btn.active {
    color: #000;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #008101;
}
.tab-panel {
    display: none;
    padding-top: 15px;
}
.tab-panel.active {
    display: block;
    font-weight: 600;
}
.tab-panel ol {
    list-style: none;
    counter-reset: news-counter;
}
.tab-panel li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    counter-increment: news-counter;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tab-panel li::before {
    content: counter(news-counter, bengali);
    font-size: 20px;
    font-weight: bold;
    color: #999;
}
.tab-panel li a {
      font-size: 14.5px; /* Font size ছোট করা হয়েছে */
    font-family: var(--font-primary);
}
.all-news-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #f0f2f5;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 15px; /* Font size ছোট করা হয়েছে */
    font-family: var(--font-primary);
}
.all-news-btn:hover {
    background-color: #ddd;
}
.scroll-to-top {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s, right 0.3s;
}
.latest-popular-column:hover .scroll-to-top {
    bottom: -20px;
    right: -20px;
    opacity: 1;
}

/* Responsive Styles for the new section */
@media (max-width: 992px) {
    .post-hero-section {
        grid-template-columns: 1fr 1fr;
    }
    .opinion-column {
        grid-column: 1 / -1;
    }
}

/* style.css ফাইলের পরিবর্তন */

/* Responsive Styles for the new section */
@media (max-width: 768px) {
    .post-hero-section {
        display: flex; /* Flexbox ব্যবহার করা হয়েছে */
        flex-direction: column; /* আইটেমগুলো কলাম আকারে সাজানো হয়েছে */
    }

    /* নতুন ক্রম নির্ধারণ করা হয়েছে */
    .poll-column {
        order: 1; /* অনলাইন জরিপ প্রথমে দেখাবে */
    }
    .opinion-column {
        order: 2; /* মতামত দ্বিতীয়তে দেখাবে */
    }
    .latest-popular-column {
        order: 3; /* সর্বশেষ/জনপ্রিয় শেষে দেখাবে */
    }
}

/* --- Category Section --- */
.category-section {
   font-size: 20px; /* Font size ছোট করা হয়েছে */
    font-family: var(--font-primary);
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.category-title {
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
}
.category-icon {
    display: inline-block;
    width: 8px;
    height: 24px;
    background-color: #e02a2a;
}
.see-all-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background-color 0.3s, color 0.3s;
}
.see-all-btn:hover {
    background-color: #008101;
    color: #fff;
    border-color: #008101;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.news-card {
    background-color: #fff; 
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}
.news-card h3 {
    font-size: 15px; /* Font size ছোট করা হয়েছে */
    padding: 5px;
    line-height: 1.4;
    font-weight: 600;
    font-family: var(--font-primary);
}

/* Responsive styles for category section */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* পরিবর্তন এখানে */
        gap: 15px; /* কলামের মধ্যে স্পেস কমানো হলো */
    }

    .news-card {
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: none;
}
}


/* --- Category Section --- */

/* এই কোডটুকু ডিলিট করুন */
.category-icon {
    display: inline-block;
    width: 8px;
    height: 24px;
    background-color: #008101;
}

/* .category-title এর পুরোনো কোডটি নিচের কোড দিয়ে পরিবর্তন করুন */
.category-title {
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* style.css ফাইলের পরিবর্তন */

.category-title i {
    color: #fff; /* আইকনের রঙ সাদা করা হয়েছে */
    font-size: 14px; /* আইকনের আকার ঠিক করা হয়েছে */
    background-color: #000; /* ব্যাকগ্রাউন্ড কালার দেওয়া হয়েছে */
    width: 30px; /* चौड़ाई ঠিক করা হয়েছে */
    height: 30px; /* উচ্চতা ঠিক করা হয়েছে */
    border-radius: 50%; /* গোল আকৃতি দেওয়া হয়েছে */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Video Gallery Section --- */
.video-gallery-section {
    background-color: #1f1f1f;
    padding: 30px 0;
    margin-top: 30px;
}
.category-header.header-dark .category-title {
    color: #fff;
}
.category-header.header-dark {
    border-bottom-color: #555;
}
.category-header.header-dark .see-all-btn {
    border-color: #777;
    color: #fff;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.video-card {
    border: 2px solid #00c7a4;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s;
}
.video-card:hover {
    transform: scale(1.05);
}
.video-thumbnail {
    position: relative;
}
.video-thumbnail img {
    width: 100%;
    aspect-ratio: 1 / 1; /* ছবি স্কয়ার করার জন্য */
    object-fit: cover;
    display: block;
}

.play-icon {
    position: absolute;
    top: 50%; /* আইকনটি মাঝখানে আনার জন্য */
    left: 50%; /* আইকনটি মাঝখানে আনার জন্য */
    transform: translate(-50%, -50%); /* সঠিক মাঝখানে স্থাপন করার জন্য */
    width: 45px;
    height: 45px;
    background-color: rgba(0, 199, 164, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    border: 2px solid #fff;
}
.video-card h4 {
    color: #333;
    font-size: 15px;
    padding: 10px;
    text-align: center;
}

/* Responsive styles for video gallery */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.category-header.header-dark .category-title {
    color: #fff;
    gap: 12px; /* Add gap for the icon */
}

/* This new rule will style the icon */
.category-header.header-dark .category-title i {
    font-size: 22px;
}

/* --- Dual Category Section --- */
.dual-category-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr 300px; 
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    align-items: start;
}
.category-header-tag {
    margin-bottom: 20px;
}
.category-header-tag h2 {
    display: inline-block;
    background-color: #0d6efd;
    color: #fff;
    padding: 5px 20px;
    font-size: 18px;
    border-radius: 5px;
}

/* Left Column */
.world-news-column {
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.list-news-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}
.list-news-item:last-child {
    margin-bottom: 0;
}
.list-news-item img {
    width: 100px;
    height: 61px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.list-news-item h4 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    font-family: var(--font-primary);
}

/* Middle Column */
.entertainment-news-column {
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.news-grid-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.grid-news-card {
    border-radius: 5px;
    overflow: hidden;
}
.grid-news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}
.grid-news-card h3 {
    font-size: 15px;
    line-height: 1.4;
    font-family: var(--font-primary);
}

/* Right Column (Ads) */
.ad-column {
    height: 100%;
}
.ad-placeholder-large {
    background-color: #f0f2f500;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 20px;
    min-height: 400px;
    height: 100%;
    
}

/* Responsive */
@media (max-width: 992px) {
    .dual-category-section {
        grid-template-columns: 1fr; /* Stack all columns */
    }
}
@media (max-width: 576px) {
    news-grid-large {
        grid-template-columns: 1fr 1fr; /* পরিবর্তন এখানে */
        gap: 15px; /* কলামের মধ্যে স্পেস কমানো হলো */
    }
}


/* ... All previous CSS code remains the same ... */

/* --- Photo Gallery Section --- */
.photo-gallery-section {
    background-color: #2a2a2a;
    padding: 30px 0;
    margin-top: 30px;
}
.photo-gallery-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* Common Card Styles */
.large-photo-card, .photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.large-photo-card a, .photo-card a {
    display: block;
    width: 100%;
    height: 100%;
}
.large-photo-card img, .photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.large-photo-card:hover img, .photo-card:hover img {
    transform: scale(1.05);
}
.large-photo-card h3, .photo-card h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    padding: 20px 15px 15px;
    margin: 0;
    font-size: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* Left Large Card */
.large-photo-card h3 {
    font-size: 20px;
}
.photo-icon {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background-color: #00c7a4;
    color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right Small Cards Grid */
.small-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .photo-gallery-content {
        grid-template-columns: 1fr;
    }
    .small-photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .small-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Multi-Category Section --- */
.multi-category-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.multi-col {
    background-color: #fff;
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.large-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}
.large-card h3 {
    font-size: 17px;
    line-height: 1.4;
     font-family: var(--font-primary);
}
.small-card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}
.small-card {
    display: flex;
    gap: 15px;
    align-items: center;
}
.small-card img {
    width: 100px;
    height: 65px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.small-card h4 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
     font-family: var(--font-primary);
}
.link-list {
    list-style: none;
    font-size: 17px;
    padding-left: 20px;
    font-weight: 600;
}
.link-list li {
    margin-bottom: 15px;
    position: relative;
     font-family: var(--font-primary);
}
.link-list li::before {
    content: '\f105'; /* Font Awesome chevron right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: -20px;
    color: #0d6efd;
}

/* Responsive */
@media (max-width: 992px) {
    .multi-category-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .multi-category-section {
        grid-template-columns: 1fr;
    }
}

/* --- Card Row Section --- */
.card-row-section {
    background-color: #f0f2f5;
    padding: 30px 0;
}
.card-row-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.row-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.row-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}
.card-text-content {
    padding: 2px;
}
.card-category {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.category-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.card-category a {
    font-size: 15px;
    font-weight: bold;
    color: #555;
    font-family: var(--font-primary);
}
.row-card h3 {
    font-size: 15px;
    padding: 5px;
    line-height: 1.6;
    font-weight: 600;
    font-family: var(--font-primary);
}

/* Responsive */
@media (max-width: 992px) {
    .card-row-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .card-row-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .card-row-wrapper {
        grid-template-columns: repeat(2, 1fr); /* পরিবর্তন এখানে */
        gap: 15px; /* কলামের মধ্যে স্পেস কমানো হলো */
}
}



/* Basic Reset & Typography */
* { box-sizing: border-box; margin: 0; padding: 0; }

a { text-decoration: none; color: inherit; }
.container { max-width: 1300px; margin: 10px auto; padding: 0 8px; }

/* --- Single News Page Styles --- */
.single-news-container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: start;
}
.breadcrumbs-sidebar a i {
    color: #008101; /* আইকনের রঙ পরিবর্তন করা হয়েছে */
}

/* ক্যালেন্ডার আইকনের জন্য */
.meta-item .fa-calendar-alt {
    color: #d42128; /* লাল রঙ */
}

/* চোখের আইকনের জন্য */
.meta-item .fa-eye {
    color: #0d6efd; /* নীল রঙ */
}

@media (max-width: 768px) {
    .single-news-container {
        grid-template-columns: 1fr;
    }

    .left-sidebar,
    .right-sidebar {
        display: none; /* এই কোডটি যুক্ত করুন */
    }
    .scrollable-tabs{
         display: none; /* এই কোডটি যুক্ত করুন */
    }
    
    .right-sidebar{
            display: none; /* এই কোডটি যুক্ত করুন */
    }
}
@media (max-width: 768px) {
    .right-sidebar .ad-placeholder-square {
        display: none;
    }
    .right-sidebar {
    background-color: transparent !important;
   padding: 0px !important;
    border: none !important;
}
}
/* --- News Play Button Mobile --- */


/* Main Content */
.main-content {
    background: #fff;
    padding: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.news-title {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: var(--font-primary);
}
.title-bottom-bar {
    display: flex;
   justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}
.news-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #555;
    font-family: var(--font-primary);


}
.news-meta-top span i {
    margin-right: 5px;
    color: #888;
}
.social-share {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 10px;
}
.social-share a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
/* Social Icon Colors */
.social-icon.fb { background-color: #1877f2; }
.social-icon.messenger { background-color: #0084ff; }
.social-icon.wa { background-color: #25d366; }
.social-icon.x { background-color: #000000; }
.social-icon.li { background-color: #0a66c2; }
.social-icon.copy { background-color: #008101; }
.social-icon.gallery { background-color: #c13584; }

.font-controls {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}
.font-controls button {
    border: 1px solid #ccc;
    background: #f0f0f0;
    color: #333;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: bold;
}
.main-news-image {
    margin-bottom: 20px;
}
.main-news-image img {
    width: 100%;
    border-radius: 5px;
}
.main-news-image figcaption {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-top: 5px;
    font-family: var(--font-primary);
}
.ad-placeholder-article {
    height: 100px;
    width: 100%;
    background-color: #f0f2f500;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    margin: 20px 0;
}
.news-body p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    font-family: var(--font-primary);
    font-weight: 500;
}

.read-more-section {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}
.read-more-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-family: var(--font-primary);
    font-weight: bold;
}
.read-more-link {
    display: flex;
    align-items: center;
    gap: 15px;
}
.read-more-link img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}
.read-more-link span {
    font-size: 20px;
    font-weight: bold;
    font-family: var(--font-primary);
}

.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.tag-link {
    background-color: #f0f2f5;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-family:var(--font-primary);
    font-weight: 600;
}

/* --- Read More Section Mobile Layout (Isolated) --- */
@media (max-width: 576px) {
    
    .read-more-section .card-row-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .read-more-section .row-card {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 15px;
        
        /* ব্যাকগ্রাউন্ড এবং শ্যাডো সরানো হলো */
        background-color: transparent;
        box-shadow: none;
        
        /* আইটেম আলাদা করার জন্য বর্ডার */
        border-bottom: 1px solid #e0e0e0; 
        padding-bottom: 15px;
    }

    /* শেষ আইটেম থেকে বর্ডার সরানো হলো */
    .read-more-section .card-row-wrapper .row-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .read-more-section .row-card a {
        width: 120px;
        height: 80px;
        flex-shrink: 0;
    }

    .read-more-section .row-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 5px;
    }
    
    .read-more-section .card-text-content {
        flex: 1;
        padding: 0;
    }

    .read-more-section .row-card h3 {
        font-size: 18px;
        line-height: 1.5;
    }
     .read-more-section.container {
        padding-left: 0;
        padding-right: 0;
    }
.read-more-link span {
    font-size: 14px;
    font-weight: bold;
    font-family: var(--font-primary);
}
.read-more-link img {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;

}

}
.video-carousel-header .more-link{
    font-family: var(--font-primary);
}
/* --- Video Carousel Mobile Layout Fix --- */
@media(max-width: 768px) {
    .mobile-carousel-row {
        position: relative; /* বাটনগুলোকে এর উপর ভিত্তি করে পজিশন করা হবে */
        width: 100%;
    }

    .video-carousel-content-wrapper {
        width: 100%;
    }

    .carousel-arrow-video {
        position: absolute; /* বাটনগুলোকে কনটেন্টের উপরে নিয়ে আসা হলো */
        top: 50%;
        transform: translateY(-50%);
        z-index: 10; /* অন্য সবকিছুর উপরে দেখানোর জন্য */
        width: 35px;
        height: 35px;
        font-size: 14px;
        background-color: rgba(0, 123, 255, 0.8); /* الخلفية شبه شفافة */
    }

    .carousel-arrow-video.prev {
        left: 5px; /* বাম পাশে পজিশন করা হলো */
    }

    .carousel-arrow-video.next {
        right: 5px; /* ডান পাশে পজিশন করা হলো */
    }
}

/* --- Video Carousel Header Mobile Layout --- */
@media(max-width: 768px) {
    .video-carousel-header {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px; /* সেকশন থেকে সামান্য স্পেস দেওয়ার জন্য */
        display: flex;
        flex-direction: row; /* আইটেমগুলোকে পাশাপাশি আনার জন্য */
        justify-content: space-between; /* দুই পাশে পাঠানোর জন্য */
        align-items: baseline; /* টেক্সটগুলোকে সুন্দরভাবে অ্যালাইন করার জন্য */
    }

    .video-carousel-header .section-title {
        font-size: 20px; /* মোবাইলের জন্য ফন্ট সাইজ সামান্য ছোট করা হলো */
    }

    .video-carousel-header .more-link {
        font-size: 14px; /* "আরও দেখুন" লেখাটি ছোট করা হলো */
    }
}


/* --- Related Posts Section Mobile Layout (Transparent BG) --- */
@media (max-width: 576px) {
    .related-posts-section .card-row-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0; /* গ্যাপ সরানো হলো */
    }

    .related-posts-section .row-card {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 15px;
        
        /* আপনার অনুরোধ অনুযায়ী পরিবর্তন */
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;

        /* আইটেম আলাদা করার জন্য বর্ডার এবং প্যাডিং */
        border-bottom: 1px solid #e0e0e0;
        padding: 15px 0;
    }
    
    /* শেষ আইটেম থেকে বর্ডার এবং প্যাডিং সরানো হলো */
    .related-posts-section .row-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .related-posts-section .row-card a {
        width: 120px;
        height: 80px;
        flex-shrink: 0;
    }

    .related-posts-section .row-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 5px;
    }
    
    .related-posts-section .card-text-content {
        flex: 1;
        padding: 0;
    }

    .related-posts-section .row-card h3 {
        font-size: 18px;
        line-height: 1.5;
        font-weight: 600;
    }
}

/* Left Sidebar */
.left-sidebar {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.breadcrumbs-sidebar {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}
.breadcrumbs-sidebar a {
    color: #008101;
    font-family: var(--font-primary);
    font-size: 18px;
}
.meta-sidebar {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
}
.meta-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f5a623;
    display: inline-block;
}
.meta-icon-fa {
    width: 20px;
    text-align: center;
    color: #888;
}
.sidebar-title {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    font-family: var(--font-primary);
    font-weight: bold;
}
.related-news-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-family: var(--font-primary);
    font-size: 15px;
}

.related-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.related-news-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}
.related-news-item h4 {
    font-size: 15px;
    font-weight: 600;


}
/* Right Sidebar */
.ad-placeholder-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f0f2f500;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    margin-bottom: 20px;
}
.ad-placeholder-square.bottom-ad {
    margin-top: 20px;
}
.scrollable-tabs {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
}
.scrollable-tabs .tabs-nav {
    border-bottom: 2px solid #ddd;
}
.tab-content-wrapper {
    position: relative;
}
.tabs-content {
    padding-top: 15px;
    max-height: 520px; /* Set a fixed height */
    overflow-y: auto; /* Enable vertical scroll */
    padding-right: 15px; /* Space for scrollbar */
}

/* Custom Scrollbar */
.tabs-content::-webkit-scrollbar {
    width: 6px;
}
.tabs-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.tabs-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 6px;
}
.tabs-content::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.scrollable-tabs .tab-panel li {
    padding: 10px 0;
}
.scroll-arrows {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.scroll-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    color: #555;
}
.scrollable-tabs .all-news-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #f0f2f5;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    border: 1px solid #ddd;
}


/* Responsive for Single News Page */
@media (max-width: 992px) {
    .single-news-container {
        grid-template-columns: 1fr 300px;
    }
    .left-sidebar {
        display: none;
    }
}
@media (max-width: 768px) {
    .single-news-container {
        grid-template-columns: 1fr;
    }
    .right-sidebar {
        margin-top: 20px;
    }
    .left-sidebar {
        display: block;
    }
    .news-title {
        font-size: 24px;
    }
    .title-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .single-news-container {
        grid-template-columns: 1fr; /* এটি আগের মতোই থাকবে */
        display: flex; /* নতুন যোগ করা হয়েছে */
        flex-direction: column; /* নতুন যোগ করা হয়েছে */
    }
    .main-content {
    background: #fff;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

    /* নতুন কোড: কলামের ক্রম ঠিক করার জন্য */
    .main-content {
        order: 1;
    }
    .left-sidebar {
        order: 2;
    }
    .right-sidebar {
        order: 3;
    }
    
    .right-sidebar, .left-sidebar {
    display: none; /* display: block; এর পরিবর্তে এটি লিখুন */
}
    
    .title-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}





/* --- Card Download Page Styles --- */
body.card-download-page {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card-download-container {
    text-align: center;
}

.final-card {
    width: 600px;
    font-family: 'Tiro Bangla', sans-serif;
    margin: 0 auto 20px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.card-top-part {
    padding: 25px 25px 0 25px; /* Increased padding for more gap */
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px; /* Increased bottom padding */
}
.logo-area img {
    height: 35px;
}
.date-area {
    font-size: 14px;
    color: #555;
    font-weight: bold;
    font-family: var(--font-primary);
}
.image-wrapper-bordered {
    border: 5px solid #fff;
    /* Specific corner radius */
    border-radius: 0 50px 0 50px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    line-height: 0;
    position: relative;
    z-index: 2;
}
.main-image {
    width: 100%;
    height: 300px;
    display: block;
    /* Specific corner radius to match wrapper */
    border-radius: 0 50px 0 50px; 
    
}
.card-bottom-part {
    background: #c31e24; /* Red background */
    color: #fff;
    text-align: center;
    padding: 150px 20px 25px 20px; /* Increased top padding */
    margin-top: -100px; /* Pull the red background up further */
    position: relative;
    z-index: 1;
}
.text-overlay h1 {
    font-size: 32px;
    line-height: 1.4;
    margin: 0;
    font-weight: bold;
    font-family: var(--font-primary);
}
.news-link {
    font-size: 18px;
    margin-top: 15px;
    font-family: var(--font-primary);
    font-weight: 600;
}

#download-btn {
    background-color: #060606bd;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-family: var(--font-primary);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
#download-btn:hover {
    background-color: #006400;
}



/* --- Single Category Page Styles --- */
.category-tabs-section {
    margin-top: 20px;
    margin-bottom: 20px;
}
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}
.tab-item {
    padding: 8px 15px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-family: var(--font-primary);
}
.tab-item.active, .tab-item:hover {
    background-color: #0e0e0ed3;
    color: #fff;
}

.category-page-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.8fr;
    gap: 15px;
    margin-bottom: 30px;
    align-items: start;
}

/* Columns 2 and 3 get a background */
.category-col-2, .category-col-3 {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Column 1 is a single card containing multiple items */
.category-col-1 {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.large-featured-item {
    position: relative;
    margin-bottom: 20px;
}
.large-featured-item img {
    width: 100%;
    height: 267px;
    border-radius: 5px;
}
.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #171717ea;
    color: #fff;
    padding: 5px 12px;
    font-size: 14px;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 600;
}
.large-featured-item h2 {
    font-size: 24px;
    margin-top: 10px;
    font-family: var(--font-primary);
    font-weight: 600;

}
.large-featured-item p {
    font-size: 15px;
    color: #555;
    margin-top: 5px;
   font-family: var(--font-primary);
   font-weight: 600;

}
.small-featured-items-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.small-featured-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}
.small-featured-item h4 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: bold;
    font-family: var(--font-primary);

}

/* Column 2 */
.most-read-btn {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: var(--font-primary);
}
.most-read-list {
    list-style: none;
}
.most-read-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #ccc;
}
.most-read-list li:last-child {
    border-bottom: none;
}
.most-read-list li a {
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-primary);
    font-weight: 600;
}
.most-read-list li i {
    margin-top: 5px;
    color: #555;
}


/* --- New Mobile Dropdown for Category Page --- */
.category-dropdown-mobile {
    display: none; /* ডিফল্টভাবে লুকানো থাকবে */
    align-items: stretch; /* লেবেল এবং সিলেক্ট বক্সের উচ্চতা সমান করবে */
    gap: 0;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.dropdown-label {
    background-color: #e9ecef; /* একটি হালকা ধূসর রঙ */
    padding: 10px 15px;
    font-weight: bold;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 5px 0 0 5px;
    white-space: nowrap;
    font-family: var(--font-primary);
    color: #495057;
    display: flex;
    align-items: center; /* টেক্সটকে মাঝখানে আনার জন্য */
}

.district-select {
    flex-grow: 1;
    padding: 10px; /* লেবেলের সাথে প্যাডিং সমান করা হয়েছে */
    border: 1px solid #ced4da;
    border-radius: 0 5px 5px 0;
    font-family: var(--font-primary);
    font-size: 16px;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

/* --- Responsive Code --- */
/* এই মিডিয়া কোয়েরি আপনার style.css ফাইলের মধ্যে খুঁজে বের করে নিচের কোডটুকু যোগ করুন */
@media(max-width: 768px) {
    

  .category-tabs-section .category-tabs {
        display: none;
    }
    .category-tabs-section .category-dropdown-mobile {
        display: flex;
    }
}
/* Column 3 */
.sub-category-block {
    margin-bottom: 20px;
}
.sub-category-block:last-child {
    margin-bottom: 0;
}
.sub-category-title {
    font-size: 22px;
    font-weight: bold;
    border-bottom: 2px solid #1d1f1dd8;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-family: var(--font-primary);
}
.sub-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.sub-cat-card {
    font-size: 15px;
    font-family: var(--font-primary);
}
.sub-cat-card img {
    width: 100%;
    height: 114px;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 8px;
}

/* --- Single Category Page Mobile Layout Update --- */

@media(max-width: 576px) {
    /* Wrapper-টিকে কলাম আকারে সাজানো হলো */
    .small-featured-items-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px; /* দুটি নিউজের মধ্যে স্পেস */
    }

    /* প্রতিটি নিউজ আইটেমের ভেতরের লেআউট পরিবর্তন */
    .small-featured-item {
        display: flex;
        flex-direction: row-reverse; /* ছবিকে ডানে পাঠানোর জন্য */
        align-items: center; /* শিরোনাম ও ছবিকে মাঝখানে আনার জন্য */
        gap: 15px; /* ছবি ও শিরোনামের মধ্যে স্পেস */
    }

    .small-featured-item h4 {
        flex: 1; /* শিরোনামকে বাকি জায়গা নেওয়ার জন্য */
        font-size: 18px;
        line-height: 1.5;
    }

    .small-featured-item img {
        /* ছবির জন্য নতুন স্টাইল */
        width: 120px;
        height: 80px;
        flex-shrink: 0; /* ছবিকে সংকুচিত হওয়া থেকে বিরত রাখতে */
        margin-bottom: 0; /* নিচের মার্জিন সরানো হলো */
    }
}
/* --- Single Category Page Mobile Layout Update --- */

@media(max-width: 576px) {
    
    /* কলামগুলোর ব্যাকগ্রাউন্ড ও প্যাডিং সরানো হলো, যাতে দেখতে একটি কলাম মনে হয় */
    .category-page-grid .category-col-1,
    .category-page-grid .category-col-2,
    .category-page-grid .category-col-3 {
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }

    /* স্ট্যাক করা কলামগুলোর মধ্যে স্পেস তৈরি */
    .category-page-grid .category-col-2,
    .category-page-grid .category-col-3 {
        margin-top: 25px;
    }

    /* Wrapper-টিকে কলাম আকারে সাজানো হলো */
    .small-featured-items-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px; /* দুটি নিউজের মধ্যে স্পেস */
    }

    /* প্রতিটি নিউজ আইটেমের ভেতরের লেআউট পরিবর্তন */
    .small-featured-item {
        display: flex;
        flex-direction: row-reverse; /* ছবিকে ডানে পাঠানোর জন্য */
        align-items: center; /* শিরোনাম ও ছবিকে মাঝখানে আনার জন্য */
        gap: 15px; /* ছবি ও শিরোনামের মধ্যে স্পেস */
    }

    .small-featured-item img {
        /* ছবির জন্য নতুন স্টাইল */
        width: 120px;
        height: 80px;
        flex-shrink: 0; /* ছবিকে সংকুচিত হওয়া থেকে বিরত রাখতে */
        margin-bottom: 0; /* নিচের মার্জিন সরানো হলো */
    }

    /* "রাজনীতি" সেকশনের গ্রিড লেআউট পরিবর্তন করে তালিকা বানানো হলো */
    .sub-category-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* === নতুন পরিবর্তন এখানে === */
    /* ডিফল্টভাবে সব নিউজ কার্ডকে তালিকা স্টাইল দেওয়া হলো */
    .sub-cat-card {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 15px;
    }

    .sub-cat-card h4 {
        flex: 1;
        font-size: 18px;
        line-height: 1.5;
    }

    .sub-cat-card img {
        width: 120px;
        height: 80px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    /* এখন প্রথম নিউজ কার্ডটিকে ওভাররাইড করে ফিচার/কার্ড স্টাইল দেওয়া হলো */
    .sub-cat-card:first-child {
        display: block; /* flex স্টাইল ওভাররাইড করে ডিফল্ট ব্লক করা হলো */
    }

    .sub-cat-card:first-child img {
        width: 100%; /* ছবির প্রস্থ 100% করা হলো */
        height: auto;
        aspect-ratio: 16 / 10;
        margin-bottom: 8px; /* ছবির নিচে মার্জিন যোগ করা হলো */
    }
    
    .sub-cat-card:first-child h4 {
        font-size: 18px; /* প্রথম নিউজের শিরোনাম সামান্য বড় করা হলো */
    }
    /* === নতুন পরিবর্তন শেষ === */


    
    .most-read-list li a{
        font-size: 18px;
    }
}
/* Responsive */
@media(max-width: 992px) {
    .category-page-grid {
        grid-template-columns: 2fr 1fr;
    }
    .category-col-3 {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}
@media(max-width: 768px) {
    .category-page-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Read More Section --- */
.read-more-section {
    margin-top: 30px;
    margin-bottom: 30px;
}
.read-more-btn-wrapper {
    text-align: center;
    margin-top: 30px;
}
.read-more-btn-main {
    background-color: #090a0aee;
    color: #fffffff6;
    padding: 10px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #090909df;
    transition: background-color 0.3s;
    font-family: var(--font-primary);

}
.read-more-btn-main:hover {
    background-color: #000000d2;
}



/* --- Video Carousel Section --- (FINAL UPDATED) */
.video-carousel-section {
    background-color: #fff;
    padding: 20x 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    margin-top: 30px;
}
.video-carousel-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
.video-carousel-header {
    flex-shrink: 0;
    text-align: left;
    margin-right: 15px;
}
.video-carousel-header .section-title {
    border-bottom: none;
    margin-bottom: 5px;
    font-size: 24px;
}
.video-carousel-header .more-link {
    font-weight: bold;
    color: #555;
    display: block;
}
.video-carousel-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
}
.video-carousel-grid {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
}
.video-carousel-card {
    flex: 0 0 24%; /* 4 cards on desktop */
    min-width: 0;
}
.video-carousel-card .video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
}
.video-carousel-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-carousel-card:hover img {
    transform: scale(1.05);
}
.play-icon-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    background-color: rgba(14, 15, 16, 0.705);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    border: 2px solid #fff;
}
.video-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 25px 10px 10px 10px;
    font-size: 16px;
    font-weight: bold;
    font-family: var(--font-primary);
}
.video-carousel-card h4 {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-primary);
}
.carousel-arrow-video {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(14, 15, 16, 0.705);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.carousel-arrow-video:hover {
    background-color: #0056b3;
}

/* Wrapper for desktop layout fix */
.mobile-carousel-row {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
}


@media(max-width: 768px) {
    .video-carousel-container {
        flex-wrap: wrap;
        gap: 15px 0;
    }

    .mobile-carousel-row {
        width: 100%;
    }
    .carousel-arrow-video {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .video-carousel-card {
        flex-basis: 48%; /* 2 cards on mobile */
    }
}



/* --- Child Category Section --- */
.child-category-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.child-category-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 0.8fr; /* Adjusted column ratios */
    gap: 20px;
    align-items: start;
}

.child-category-column {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Styles for Column 1 (Vertical List) */
.news-list-vertical .list-news-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.news-list-vertical .list-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.news-list-vertical .list-news-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.news-list-vertical .list-news-item h4 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    font-family: var(--font-primary);
    
}

/* Styles for Column 2 (2x2 Grid) */
.news-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.grid-card-item img {
    width: 100%;
    height: 135px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}
.grid-card-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.grid-card-item h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--font-primary);
}

/* --- Child Category Section Mobile Layout Fix --- */

/* ট্যাবলেট স্ক্রিনের জন্য গ্রিড কলাম ঠিক করা হলো */
@media(max-width: 992px) {
    .child-category-section .news-grid-2x2 {
        grid-template-columns: 1fr 1fr;
    }
}


/* ছোট মোবাইল স্ক্রিনের জন্য চূড়ান্ত লেআউট */
@media(max-width: 576px) {
    /* "আইন-আদালত" সেকশনের গ্রিডকে কলাম লেআউটে পরিবর্তন করা হলো */
    .child-category-section .news-grid-2x2 {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* "অপরাধ" এবং "আইন-আদালত" উভয় সেকশনের আইটেমগুলোর জন্য একই স্টাইল */
    .child-category-section .list-news-item,
    .child-category-section .grid-card-item {
        display: flex;
        flex-direction: row-reverse; /* ছবিকে ডানে পাঠানোর জন্য */
        align-items: center;
        gap: 15px;
    }

    /* উভয় সেকশনের ছবির জন্য একই সাইজ এবং স্টাইল */
    .child-category-section .list-news-item img,
    .child-category-section .grid-card-item img {
        width: 120px;
        height: 80px;
        flex-shrink: 0;
        object-fit: cover;
        margin-bottom: 0; /* অতিরিক্ত মার্জিন সরানো হলো */
    }

    /* উভয় সেকশনের শিরোনামের জন্য একই স্টাইল */
    .child-category-section .list-news-item h4,
    .child-category-section .grid-card-item h4 {
        flex: 1;
        font-size: 18px;
        line-height: 1.5;
        font-weight: 600; /* ফন্ট-ওয়েট সামঞ্জস্যপূর্ণ করা হলো */
    }
}
/* Styles for Column 3 (Advertisement) */
.ad-placeholder-vertical {
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 18px;
    width: 100%;
    min-height: 300px;
    border: 1px dashed #ccc;
    border-radius: 5px;
}

/* Responsive for Child Category Section */
@media(max-width: 992px) {
    .child-category-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablets */
    }
    .child-ad-column {
        grid-column: 1 / -1; /* Ad takes full width */
        margin-top: 20px;
    }
}

@media(max-width: 768px) {
    .child-category-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}


/* --- Dual Category Row Section --- */
.dual-row-section {
    margin-top: 30px;
    margin-bottom: 30px;
}
.dual-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.dual-row-column {
    background-color: #fff;
    padding: 20px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.news-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.row-news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}
.row-news-card h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--font-primary);
}
.row-news-card:hover h4 {
    color: #008101;
}

/* Responsive for Dual Row Section */
@media(max-width: 992px) {
    .news-card-row {
        grid-template-columns: repeat(2, 1fr); /* 2 cards on tablets */
    }
}
@media(max-width: 768px) {
    .dual-row-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}
@media(max-width: 576px) {
    .news-card-row {
        grid-template-columns: repeat(2, 1fr); /* 2 cards on small mobile */
    }
}

/* --- Dual Row Section Mobile Layout --- */
@media (max-width: 576px) {
    /* দুটি কলামকে একটির নিচে আরেকটি আনা হলো */
    .dual-row-section .dual-row-grid {
        display: flex;
        flex-direction: column;
        gap: 25px; /* দুটি সেকশনের মধ্যে স্পেস */
    }

    /* নিউজ আইটেমগুলোকে তালিকা আকারে দেখানো হলো */
    .dual-row-section .news-card-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .dual-row-section .row-news-card {
        display: flex;
        flex-direction: row-reverse; /* ছবি ডানে, লেখা বামে */
        align-items: center;
        gap: 15px;
    }

    /* ছবির স্টাইল ঠিক করা হলো */
    .dual-row-section .row-news-card img {
        width: 120px;
        height: 80px;
        flex-shrink: 0;
        object-fit: cover;
        margin-bottom: 0;
    }

    /* শিরোনামের স্টাইল ঠিক করা হলো */
    .dual-row-section .row-news-card h4 {
        flex: 1;
        font-size: 18px;
        line-height: 1.5;
        font-weight: 600;
    }
}

/* --- Final Multi Category Section Mobile Layout --- */
@media (max-width: 576px) {
    /* দুটি কলামের গ্রিডকে একটি কলামে পরিবর্তন করা হলো */
    .final-multi-category-section .final-multi-category-grid {
        display: flex;
        flex-direction: column;
        gap: 25px; /* সেকশনগুলোর মধ্যে স্পেস */
    }

    /* নিউজ আইটেমগুলোকে তালিকা আকারে দেখানো হলো */
    .final-multi-category-section .news-card-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .final-multi-category-section .row-news-card {
        display: flex;
        flex-direction: row-reverse; /* ছবি ডানে, লেখা বামে */
        align-items: center;
        gap: 15px;
    }

    /* ছবির স্টাইল ঠিক করা হলো */
    .final-multi-category-section .row-news-card img {
        width: 120px;
        height: 80px;
        flex-shrink: 0;
        object-fit: cover;
        margin-bottom: 0;
    }

    /* শিরোনামের স্টাইল ঠিক করা হলো */
    .final-multi-category-section .row-news-card h4 {
        flex: 1;
        font-size: 18px;
        line-height: 1.5;
        font-weight: 600;
    }
}

/* --- Final Multi Category Section --- */
.final-multi-category-section {
    margin-top: 30px;
    margin-bottom: 30px;
}
.final-multi-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Responsive for Final Multi Category Section */
@media(max-width: 992px) {
    .final-multi-category-grid {
        grid-template-columns: 1fr; /* 1 column on tablets and mobile */
    }
}








/* --- Videos Page Styles (Card Version) --- */
.video-page-main {
    background-color: #f0f2f5; /* Light gray background for the whole page content */
    padding: 30px 0;
}

.videos-hero-section {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 20px;
}

/* New Card Style */
.video-card-style {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.video-card-style:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Common Styles for video cards */
.video-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    line-height: 0;
}
.video-thumbnail-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-card-style a:hover img {
    transform: scale(1.05);
}

.play-icon-main {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 199, 164, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    border: 2px solid #fff;
}

/* Left Column Style */
.featured-video-large h3 {
    font-size: 20px;
    margin-top: 15px; /* Added margin for spacing inside card */
    padding: 0 5px; /* Added padding for text */
}

/* Right Column Style */
.video-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.video-card-small h4 {
    font-size: 16px;
    font-weight: normal;
    margin-top: 10px; /* Added margin for spacing inside card */
    padding: 0 5px; /* Added padding for text */
}
.play-icon-main.small {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 10px;
    left: 10px;
}

/* Responsive for Videos Hero */
@media(max-width: 992px) {
    .videos-hero-section {
        grid-template-columns: 1fr; /* Stack columns */
    }
}
@media(max-width: 576px) {
  @media(max-width: 576px) {
    .video-grid-small {
        grid-template-columns: 1fr 1fr; /* 2 videos per row on small mobile */
    }
}
}

/* --- Drama Carousel Background Color --- */
.drama-carousel {
    background-color: #f0f2f5; /* Light gray background */
}

/* --- Breaking News Ticker (Modified Label Color & Icon) --- */
.breaking-news-section {
    background-color: #fff;
    margin-top: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0; /* Padding কমানো হয়েছে */
    border-radius: 5px;
    overflow: hidden;
    max-width: 1275px;
    margin-left: auto;
    margin-right: auto;
}


.breaking-news-container {
    display: flex;
    align-items: center;
    margin-top: 6px;
}

/* style.css ফাইলের পরিবর্তন */

.breaking-news-label {
    background-color: #FBE9E7;
    color: #333;
    font-weight: bold;
    padding: 2px 8px; /* Padding কমানো হয়েছে */
    white-space: nowrap;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
}

@media screen and (max-width: 576px) {
    .breaking-news-section{
        max-width: 500px;
    }
    .breaking-news-label{
        font-size: 14.5px;
        padding: 4px 12px; /* Padding কমানো হয়েছে */
    }
    .breaking-news-ticker{
            height: 15px;
    }

    .featured-main {
        padding: 4px;
    }
    
    .video-gallery-section-new .featured-main .video-thumbnail-new {
        max-height: 250px; /* উচ্চতা কমানো হয়েছে */
    }
}
.breaking-news-ticker {
    flex-grow: 1;
    overflow: hidden; 
    position: relative;
    height: 20px; 
}

.breaking-news-ticker ul {
    list-style: none;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    white-space: nowrap; 
    animation: scroll-left 100s linear infinite;
}

.breaking-news-ticker li {
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-size: 15px;
}

.breaking-news-ticker li a {
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px; /* Font size ছোট করা হয়েছে */
    font-weight: 600;
    font-family: var(--font-primary);
}
.breaking-news-ticker li a:hover {
    color: #008101;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); 
    }

    
}

/* ব্রেকিং নিউজ সেকশনে আইকনের জন্য CSS */

.breaking-news-label .breaking-icon {
    /* Font Awesome আইকনের উচ্চতা/আকারের সাথে মেলাতে হবে */
    height: 18px; /* আপনি প্রয়োজনমতো পরিবর্তন করতে পারেন */
    width: auto;
    margin-right: 4px; /* টেক্সট থেকে সামান্য দূরত্ব রাখার জন্য */
    vertical-align: middle; /* টেক্সটের সাথে উল্লম্বভাবে অ্যালাইন করার জন্য */
    display: inline-block;
}

/* লিস্টের ভেতরের আইকনগুলোর জন্য CSS */
#breaking-news-list .breaking-icon-list-item {
    height: 16px; /* তালিকার মধ্যে তুলনামূলক ছোট আকার */
    width: auto;
    margin-right: 5px;
    vertical-align: middle;
}

/* যদি আপনি পূর্বের ফন্ট আইকন ব্যবহার করে থাকেন, তবে সেই ক্লাসের (যেমন: .breaking-news-label i, #breaking-news-list i) সব স্টাইল সরাতে হবে, না হলে কনফ্লিক্ট হতে পারে। */


/* --- Header Icon Button Styles (Live & E-Paper) --- */
.live-btn, .epaper-btn {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the icon */
    color: #fff;
    border-radius: 4px;
    font-size:14px; /* Icon size */
    width: 40px; /* Fixed width */
    height: 36px; /* Fixed height */
    padding: 0; /* Remove padding */
    gap: 0; /* Remove gap */
    transition: background-color 0.3s;
}

/* New Video Gallery Section */
.video-gallery-section-new {
    background-color: #1a1a1a;
    padding: 30px 0;
    margin-top: 30px;
    font-size: 20px; /* Font size ছোট করা হয়েছে */
    font-family: var(--font-primary);
}
.video-gallery-content-new {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.main-video-col {
    position: relative;
}
.main-video-col img {
    width: 100%;
    display: block;
}
.video-card-new {
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
}
.featured-main {
    border: 3px solid #e02a2a;
    background-color: #000;
   
}
.video-thumbnail-new {
    position: relative;
}
.video-thumbnail-new.small-thumb img {
    aspect-ratio: 16 / 10;
}
.video-thumbnail-new img {
    width: 100%;
    object-fit: cover;
    display: block;
}
.play-icon-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(224, 42, 42, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    border: 2px solid #fff;
    transition: transform 0.3s;
}

.video-card-new a:hover .play-icon-main {
    transform: translate(-50%, -50%) scale(1.1);
}
/* style.css ফাইলের পরিবর্তন */

.video-gallery-section-new .featured-main .video-thumbnail-new {
    max-height: 380px; /* উচ্চতা কমানো হয়েছে */
    overflow: hidden; /
}
.video-title-overlay-main {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 40px 20px 20px 20px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: bold;
    font-size: 22px; /* Font size ছোট করা হয়েছে */
    font-family: var(--font-primary);
}
.video-caption {
    color: #999;
    padding: 10px 0;
    font-size: 15px; /* Font size ছোট করা হয়েছে */
    color: #999;
    font-weight: 600;
    font-family: var(--font-primary);
    margin-left: 10px;
}
.sidebar-videos-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-videos-col .video-card-new {
    background-color: transparent;
    border: none;
}
.sidebar-videos-col .video-card-new a {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: #222;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid transparent;
    transition: border-left-color 0.3s;
}
.sidebar-videos-col .video-card-new a:hover {
    border-left-color: #e02a2a;
}
.video-thumbnail-new.small-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
}
.video-thumbnail-new.small-thumb img {
    height: 100%;
    border-radius: 5px;
}
.play-icon-overlay-new {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(224, 42, 42, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    border: 2px solid #fff;
}
.video-text-new h4 {
    line-height: 1.4;
    color: #fff;
    font-weight: 600;
     font-size: 15px; /* Font size ছোট করা হয়েছে */
    font-family: var(--font-primary);
}
.sidebar-videos-col .video-card-new a:hover h4 {
    color: #e02a2a;
}

/* Responsive Styles */
@media(max-width: 992px) {
    .video-gallery-content-new {
        grid-template-columns: 1fr;
    }
}




/* New Photo Gallery Section Styles */
.photo-gallery-section-new {
    background-color: #212121;
    padding: 30px 0;
}
.photo-gallery-content-new {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    background-color: #212121;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
}
.large-photo-card-new {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.large-photo-card-new a {
    display: block;
    width: 100%;
    height: 100%;
}
.large-photo-card-new img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.large-photo-card-new:hover img {
    transform: scale(1.05);
}
.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
.photo-overlay h3 {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    font-family: var(--font-primary);
}
.photo-icon-bottom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.small-photos-grid-new {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.photo-card-new {
    position: relative;
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}
.photo-card-new:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.photo-card-new a {
    display: block;
    width: 100%;
    height: 100%;
}
.photo-card-new img {
    width: 100%;
    height: 140px; /* Adjust height to match the image */
    object-fit: cover;
    display: block;
}
.photo-overlay-small-vertical {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 20px 15px 15px;
}
.photo-overlay-small-vertical h4 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: bold;
    font-family: var(--font-primary);

}
.ad-placeholder-small {
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    border: 1px dashed #555;
    border-radius: 8px;
    min-height: 100px;
}
.photo-icon-bottom-small {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    border: 1px solid #fff;
    transition: transform 0.3s;
}
.photo-card-new:hover .photo-icon-bottom-small {
    transform: scale(1.1);
}
.large-photo-card-new {
    border: 2px solid #fff;
}
.photo-card-new a {
    border: 1px solid #444;
}
.photo-card-new {
    border: 2px solid transparent;
}
.photo-card-new:hover {
    border-color: #fff;
}

/* Responsive Styles for the New Photo Gallery Section */
@media (max-width: 992px) {
    .photo-gallery-content-new {
        grid-template-columns: 1fr;
    }
    .large-photo-card-new {
        margin-bottom: 20px;
    }
}

/* Update for Single Category Header */
.logo-with-category {
    display: flex;
    align-items: center;
    gap: 15px; /* লোগো এবং টাইটেলের মধ্যে স্পেস */
}

.logo-with-category .logo img {
    height: 50px; /* লোগোর উচ্চতা বাড়ানো হলো */
}
/* --- New Header Top Links Styles --- */
.header-top-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 16px;
    font-family: var(--font-primary);
}

.header-link i {
    font-size: 20px;
}

.epaper-link {
    color: #333333; /* Blue color */
}

.live-link {
    color: var(--primary-color);
}

.live-link i {
    padding: 4px;
    border-radius: 4px;
    font-size: 16px;
}

/* Make search and menu icons visible on white background */
.search-box {
    background-color: #f0f2f5;
    border: 1px solid #ddd;
}
.menu-icon i {
    color: #333;
}

@media (max-width: 992px) {
    .logo-with-category {
        gap: 10px;
    }
    .category-title-header {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .logo-with-category {
        display: none; /* মোবাইল স্ক্রিনে ক্যাটাগরি টাইটেল লুকানো হলো */
    }
}


/* --- Mobile Meta Info under Title --- */
.news-meta-mobile {
    display: none; /* Hidden on desktop by default */
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .news-meta-mobile {
        display: flex; /* Displayed only on mobile */
    }
}



/* Single Video Page Layout */
.single-video-container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: start;
}
.social-share-sidebar {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}
.social-share-sidebar .social-icon {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
/* Social Icon Colors */
.social-share-sidebar .fb { background-color: #1877f2; }
.social-share-sidebar .messenger { background-color: #0084ff; }
.social-share-sidebar .wa { background-color: #25d366; }
.social-share-sidebar .x { background-color: #000000; }
.social-share-sidebar .copy { background-color: #008101; }
.social-share-sidebar .print { background-color: #555; }



/* Left Sidebar */
.left-sidebar {
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 5px;
}
.left-sidebar .sidebar-title {
    font-size: 19px;
    border-bottom: 2px solid #008101;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: var(--font-primary);
}
.video-list-sidebar .video-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
    text-decoration: none;
    color: inherit;
}
.video-list-sidebar .video-item:last-child {
    border-bottom: none;
}
.video-list-sidebar .video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.video-list-sidebar .video-item h4 {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
    font-family: var(--font-primary);
}
.video-list-sidebar .video-item span {
    font-size: 13px;
    color: #777;
    font-family: var(--font-primary);


}
.video-thumbnail-wrapper {
    position: relative;
    width: 100px;
    height: 70px;
    flex-shrink: 0;
}
.video-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    transition: transform 0.3s;
}
.video-thumbnail-wrapper:hover .play-icon-overlay {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Main Video Content */
.main-video-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.video-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin-bottom: 20px;
}
.main-video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e02a2a;
    font-size: 60px;
    cursor: pointer;
    z-index: 10;
}
.video-title {
    font-size: 24px; /* Title font size reduced */
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: var(--font-primary);
}
.video-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    display: block;
    font-family: var(--font-primary);
}
.video-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.video-social-share button {
    background-color: #f0f2f5;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}
.video-views {
    font-size: 14px;
    color: #555;
}
.video-views i {
    margin-right: 5px;
}
.monthly-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #008101;
    padding-bottom: 5px;
    margin-bottom: 15px;
}
.monthly-header h4 {
    font-size: 15px;
    font-weight: bold;
   font-family: var(--font-primary);
}
.monthly-header select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: var(--font-primary);
}
.video-grid-monthly {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.video-card-monthly {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    padding: 10px;
    background-color: #f9f9f9;
}
.video-card-monthly img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 5px;
}
.video-card-monthly h4 {
    font-size: 15px;
    font-weight: bold;
    font-family: var(--font-primary);
}
.monthly-thumbnail-wrapper {
    position: relative;
    margin-bottom: 5px;
    border-radius: 5px;
    overflow: hidden;
}
.monthly-thumbnail-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* "আরও দেখুন" Button */
.read-more-btn-wrapper {
    text-align: center;
    margin-top: 20px;
}


/* Right Sidebar (Card Style) */
.right-sidebar {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.popular-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.popular-news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
}
.popular-news-item .video-thumbnail-wrapper {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
}
.popular-news-item h4 {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
    font-family: var(--font-primary);
}
.popular-news-item span {
    font-size: 13px;
    color: #777;
    font-family: var(--font-primary);
}

/* Header with Category Name */
.logo-with-category {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-with-category .logo img {
    height: 50px;
}
/* --- Mobile Logo Fixed Width --- */
@media (max-width: 768px) {
    .logo img {
        width: 150px;  /* Ekhane tomar proyojon moto fixed width boshao (eg: 120px, 140px) */
        height: auto;  /* Image-er aspect ratio thik rakhar jonno height auto kora holo */
    }
}
.category-title-header {
    color: #1b1b1bc5;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Footer Styles */
.site-footer {
    background-color: #212121;
    color: #888;
    padding: 20px 0;
    font-size: 12px;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}
.footer-info p {
    margin: 0;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .single-video-container {
        grid-template-columns: 1fr 300px;
    }
    .left-sidebar {
        display: none;
    }
}
@media (max-width: 768px) {
    .single-video-container {
        grid-template-columns: 1fr;
    }
    .main-video-content {
        order: 1;
    }
    .right-sidebar {
        order: 2;
    }
  
    .logo-with-category {
        display: none;
    }
}

/* --- Single Gallery Monthly Grid Mobile Layout --- */
@media (max-width: 576px) {
    /* গ্রিডকে কলাম লেআউটে পরিবর্তন করা হলো */
    .single-gallery-container .video-grid-monthly {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .single-gallery-container .video-card-monthly {
        display: flex;
        flex-direction: row-reverse; /* ছবি ডানে, লেখা বামে */
        align-items: center;
        gap: 15px;
        
        /* ব্যাকগ্রাউন্ড ও বর্ডার ঠিক করা হলো */
        background-color: #fff;
        border: 1px solid #ddd;
        padding: 10px;
    }

    /* ছবির কন্টেইনারের স্টাইল */
    .single-gallery-container .monthly-thumbnail-wrapper {
        width: 120px;
        height: 80px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    /* শিরোনামের স্টাইল */
    .single-gallery-container .video-card-monthly h4 {
        flex: 1;
        font-size: 18px;
        line-height: 1.5;
        font-weight: 600;
    }
}

/* --- Popular Gallery Mobile Layout (Final Fix) --- */
@media (max-width: 576px) {
    .right-sidebar .popular-news-item {
        /* display: flex; এটি আগে থেকেই আছে, তাই নতুন করে লেখার প্রয়োজন নেই */
        gap: 15px; /* আইটেমগুলোর মধ্যে স্পেস */
    }

    /* flexbox order ব্যবহার করে আইটেমের क्रम পরিবর্তন */
    .right-sidebar .popular-news-item .video-text {
        order: 1; /* টেক্সটকে প্রথমে (বামে) আনা হলো */
        flex: 1; /* বাকি জায়গা নেওয়ার জন্য */
        text-align: left; /* টেক্সটকে বামে অ্যালাইন করা হলো */
    }

    .right-sidebar .popular-news-item .video-thumbnail-wrapper {
        order: 2; /* ছবিকে দ্বিতীয়তে (ডানে) পাঠানো হলো */
        width: 100px; /* ছবির প্রস্থ ঠিক রাখা হলো */
        height: 70px;
    }
}

/* Single Category/Video Page Header Fix */
/* For Desktop */
@media (min-width: 769px) {
    .header-top-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header-left {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .header-left .logo {
        display: block;
    }
    .category-title-header {
        display: block;
        color: #1b1b1bff;
        font-size: 20px;
        font-weight: bold;
        margin: 0;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }
}

/* For Mobile */
@media (max-width: 768px) {
    .header-top-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header-left {
        display: block; /* Only show the logo wrapper */
    }
    .header-left .logo {
        display: block;
    }
    .category-title-header {
        display: none; /* Hide category title on mobile */
    }
    .header-right {
        display: flex; /* Keep icons on the right */
        align-items: center;
        gap: 10px;

    }
    .search-box {
        display: none;
    }
}



/* --- Videos Page Hero Section Styles --- */
.videos-page-main {
    background-color: #fff;
    padding: 30px 0;
}
.videos-hero-section {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 20px;
}
.hero-video-large, .hero-video-small {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.hero-video-large:hover, .hero-video-small:hover {
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.hero-video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    line-height: 0;
}
.hero-video-large .hero-video-wrapper img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.hero-video-small .hero-video-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.hero-video-large a:hover img, .hero-video-small a:hover img {
    transform: scale(1.05);
}
.hero-play-icon {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    border: 2px solid #fff;
}
.hero-play-icon.small {
    width: 25px;
    height: 25px;
    font-size: 10px;
    bottom: 10px;
    left: 10px;
}
.hero-video-large h3 {
    font-size: 30px;
    margin-top: 15px;
    padding: 0 5px;
     font-family: var(--font-primary);

}
.hero-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hero-video-small h4 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 10px;
    padding: 0 5px;
     font-family: var(--font-primary);
}
.video-top-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #008101;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}
@media(max-width: 992px) {
    .videos-hero-section {
        grid-template-columns: 1fr;
    }
}
@media(max-width: 576px) {
    .hero-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Videos Page Hero Section Mobile Layout (FINAL CORRECTED) --- */
@media (max-width: 576px) {

    /* বড় ভিডিও এবং ছোট ভিডিও গ্রিডকে একটির নিচে আরেকটি আনা হলো */
    .videos-hero-section {
        grid-template-columns: 1fr;
        gap: 20px; /* দুটি সেকশনের মধ্যে স্পেস */
    }

    .videos-hero-section .hero-video-large h3 {
        font-size: 22px;
    }


    /* --- শুধুমাত্র ছোট ভিডিও গ্রিডের আইটেমগুলোর স্টাইল পরিবর্তন করা হলো --- */
    .videos-hero-section .hero-video-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .videos-hero-section .hero-video-small {
        background-color: #fff;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    }
    
    .videos-hero-section .hero-video-small a {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    /* শিরোনামকে বামে আনা হলো */
    .videos-hero-section .hero-video-small h4 {
        order: 1; 
        flex: 1;
        font-size: 15px;
        line-height: 1.5;
        margin-top: 0;
        text-align: left;
    }

    /* ছবিকে ডানে আনা হলো */
    .videos-hero-section .hero-video-small .hero-video-wrapper {
        order: 2;
        width: 120px;
        height: 80px;
        flex-shrink: 0;
    }
}

/* --- Hero Section Carousel --- */
.hero-main-column .main-article {
    display: none; /* Hide all slides by default */
    width: 100%;
    height: 100%;
    animation: fadeEffect 0.5s ease-in-out;
}

.hero-main-column .main-article.active {
    display: block; /* Show only the active slide */
}

@keyframes fadeEffect {
    from {opacity: 0.5;}
    to {opacity: 1;}
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent; /* Background removed */
    color: white;               /* Arrow color */
    border: none;               /* Border removed */
    padding: 10px 15px;
    font-size: 28px;            /* Increased font size for visibility */
    cursor: pointer;
    z-index: 10;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Added shadow for better visibility */
    transition: transform 0.2s ease; /* Added transition for hover effect */
}

.carousel-control:hover {
    background-color: transparent; /* Ensure no background on hover */
    transform: translateY(-50%) scale(1.1); /* Slightly enlarge arrow on hover */
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}



/* --- New Poll Column Styles --- */
.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.poll-header .section-title {
    margin-bottom: 0;
    border-bottom: none;
}
.download-icon {
    font-size: 18px;
    color: #888;
    transition: color 0.3s;
}
.download-icon:hover {
    color: #000;
}
.poll-form .poll-option {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.poll-form .poll-option:hover {
    background-color: #f5f5f5;
}
.poll-form .poll-option input {
    margin-right: 10px;
}
.poll-submit-btn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-family: var(--font-primary);
    font-weight: bold;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}
.poll-submit-btn:hover {
    background-color: #000;
}

/* Poll Results Bar Styles */
.poll-results-wrapper {
    margin-top: 20px;
}
.result-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--font-primary);
}
.result-label {
    flex-shrink: 0;
    width: 70px;
    font-weight: 600;
}
.result-progress {
    flex-grow: 1;
    background-color: #e0e0e0;
    border-radius: 25px;
    height: 25px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 25px;
}
.result-percent {
    font-weight: bold;
    font-size: 14px;
}
.poll-total-votes {
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    font-size: 15px;
    font-family: var(--font-primary);
}

/* --- Social Share Print Icon --- */
.social-icon.print {
    background-color: #555; /* প্রিন্ট আইকনের জন্য ধূসর রঙ */
}
/* --- New Print Page Design --- */
body.print-page-body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.print-page-wrapper {
    width: 800px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    padding: 20px;
    border-top: 5px solid var(--primary-color);
}

.print-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

.print-logo-left {
    height: 50px;
}
.print-logo-right {
    height: 40px;
}

.print-headline {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 25px;
}

.print-news-image {
    width: 350px;
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.print-news-image img {
    width: 100%;
    height: auto;
}

.print-news-body p {
    font-size: 15px;
    line-height: 1.8;
    font-weight: 600;
    text-align: justify;
    margin-bottom: 1em;
}

/* Clearfix to handle float */
.print-article-content::after {
    content: "";
    display: table;
    clear: both;
}

.print-page-footer {
    border-top: 2px solid #333;
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

.print-action-buttons {
    text-align: center;
    padding: 20px 0;
}

.action-btn {
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    font-family:var(--font-primary);
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    background-color: #008101;
    color: #fff;
    transition: opacity 0.3s;
}
.action-btn:hover {
    opacity: 0.8;
}

/* --- Media Query for Actual Printing --- */
@media print {
    body.print-page-body {
        background: none;
        padding: 0;
    }
    .print-page-wrapper {
        width: 100%;
        border: none;
        box-shadow: none;
    }
    .print-action-buttons {
        display: none;
    }
}

/* --- Tab Panel News List with Images --- */
.tab-panel ol {
    list-style: none;
    padding: 0;
}
.tab-panel li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
/* Remove the old number styling */
.tab-panel li::before {
    display: none;
}
.tab-news-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tab-news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.tab-news-item h4 {
    font-size: 15px;
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}
.tab-news-item:hover h4 {
    color: #008101;
}


/* --- Live Page Final Styles --- */
.live-page-body {
    background-color: #f0f2f5;
}
.live-video-container {
    max-width: 900px !important;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    line-height: 0; 
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}
.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bottom-bar-overlay {
    display: flex;
    width: 100%;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 14px;
}

.bottom-bar-notice {
    background-color: #d42128;
    padding: 8px 15px;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.bottom-bar-ticker-area {
    background-color: #008101;
    flex-grow: 1;
    overflow: hidden;
    padding: 8px 0; /* Consistent padding */
    display: flex;
    align-items: center;
}

.live-clock-display {
    background-color: #d42128;
    padding: 8px 15px;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
}


/* --- Ticker Styles --- */
.ticker-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 20px;
}

.ticker-move {
    position: absolute;
    display: flex;
    align-items: center;
    height: 100%;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 30px;
    font-weight: bold; /* Ticker text is now bold */
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Responsive for Live Page */
@media (max-width: 768px) {
    .bottom-bar-overlay {
        flex-wrap: wrap;
        font-size: 12px;
    }
    .bottom-bar-notice, 
    .bottom-bar-ticker-area {
        padding: 6px 10px;
    }
    .live-clock-display {
        width: 100%;
        justify-content: center;
        order: 3;
        padding: 16px 10px;
        margin-top: 4px;
    }
}

/* --- Trending Section Styles --- */
.trending-section {
    margin-top: 30px;
    margin-bottom: 20px;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trending-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.trending-card a {
    display: block;
    width: 100%;
    height: 100%;
}

.trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.trending-card:hover img {
    transform: scale(1.05);
}

.trending-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 25px 15px 15px;
}

.trending-title h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    font-family: var(--font-primary);
    line-height: 1.5;
}

/* Responsive for Trending Section */
@media (max-width: 992px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr); /* পরিবর্তন এখানে */
        gap: 15px; /* কলামের মধ্যে স্পেস কমানো হলো */
    }
}


/* --- Center Tabs on Mobile --- */
@media (max-width: 768px) {
    
}



.web-story-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 6) - 14px); /* 6 cards with gap */
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px; /* For scrollbar space */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.web-story-grid::-webkit-scrollbar {
    height: 8px;
}
.web-story-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}
.web-story-grid::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.story-card {
    position: relative;
    display: block;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-card:hover img {
    transform: scale(1.05);
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 20%, transparent 60%);
}

.story-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-card h4 {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: #fff;
    font-size: 15px;
    line-height: 20px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-primary);
}

/* Responsive for Web Story Section */
@media (max-width: 992px) {
    .web-story-grid {
        grid-auto-columns: calc((100% / 4) - 12px); /* 4 cards */
    }
}

@media (max-width: 576px) {
    .web-story-grid {
        grid-auto-columns: calc((100% / 2) - 8px); /* 2 cards */
    }
}


/* --- Single Story Page Styles (Blur BG & Replay) --- */
.story-page-body {
    margin: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: background-image 0.4s ease-in-out; /* Smooth background transition */
}

.story-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px); /* Blur effect */
    -webkit-backdrop-filter: blur(15px);
    gap: 20px;
}

.story-viewer {
    width: 100%;
    max-width: 400px;
    height: 95vh;
    max-height: 800px;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* --- Slides & Transition --- */
.story-slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}
.story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out;
}
.story-slide.active {
    opacity: 1;
    visibility: visible;
    animation: zoomInEffect 5s linear forwards;
}
.story-slide.paused {
    animation-play-state: paused;
}

/* --- Keyframes for Animations --- */
@keyframes zoomInEffect {
    from { background-size: 100% 100%; }
    to { background-size: 110% 110%; }
}
@keyframes slideUpEffect {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Progress Bars --- */
.story-progress-bars {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 10;
}
.progress-bar {
    flex: 1;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}
.progress-bar-fill {
    height: 100%;
    width: 0;
    background-color: #fff;
    border-radius: 3px;
}
.progress-bar-fill.active {
    animation: fillProgress 5s linear forwards;
}
.progress-bar-fill.paused {
    animation-play-state: paused;
}
@keyframes fillProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* --- Header & Content --- */
.story-header {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.story-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}
.story-logo img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.story-buttons button, .story-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin-left: 15px;
}

.story-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    text-align: center;
    opacity: 0;
}
.story-slide.active .story-text-overlay {
    animation: slideUpEffect 0.5s ease-out 0.3s forwards;
}
.story-slide.paused .story-text-overlay {
    animation-play-state: paused;
}
#story-date {
    background-color: rgba(255,255,255,0.9);
    color: #000;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}
#story-headline {
    font-size: 22px;
    margin-top: 10px;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* --- Navigation & Replay --- */
.story-nav-prev-clickable, .story-nav-next-clickable {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
}
.story-nav-prev-clickable { left: 0; }
.story-nav-next-clickable { right: 0; }

.story-nav-arrow {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}
.story-nav-arrow:hover {
    transform: scale(1.1);
}
.story-replay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    color: #000;
    border: none;
    font-size: 24px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hidden by default */
    z-index: 20;
}

@media (max-width: 600px) {
    .story-nav-arrow {
        display: none;
    }
}

/* --- Fix for Mobile Horizontal Scroll --- */
.content-wrapper {
    overflow-x: hidden;
    background-color: #fff !important;
}


/* --- Story Archive Page Styles --- */
.story-archive-section {
    margin: 30px 0;
}

.story-archive-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 cards per row on desktop */
    gap: 16px;
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-stories-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 30px;
    font-size: 16px;
    font-family: var(--font-primary);;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.load-more-stories-btn:hover {
    background-color: #333;
    color: #fff;
}

/* Responsive for Story Archive Grid */
@media (max-width: 1200px) {
    .story-archive-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 992px) {
    .story-archive-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .story-archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .story-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Additional Title for Card Row Section --- */
.additional-title {
    font-size: 15px;
    color: red;
    margin-top: 8px;
    line-height: 1.5;
    font-family: var(--font-primary);
}

/* style.css ফাইলের শেষে এই নতুন কোডটুকু যোগ করুন */

/* প্লে বাটন কন্টেইনার (শুধু মোবাইলে দেখা যাবে) */
.speak-button-container {
    display: none; /* ডিফল্টভাবে ডেস্কটপে লুকানো থাকবে */
    margin: 15px 0; /* বাটনের উপরে ও নিচে স্পেস তৈরি করবে */
}

/* প্লে বাটনের নতুন স্টাইল */
#speak-button {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* আইকন এবং লেখার মধ্যে স্পেস */
    background-color: #008101; /* সবুজ রঙ দেওয়া হলো */
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    display: none;
}

#speak-button:hover {
    background-color: #006400;
}

/* শুধুমাত্র মোবাইল স্ক্রিনের জন্য বাটনটি দেখানো হবে */
@media (max-width: 768px) {
    .speak-button-container {
        display: block; /* বাটন কন্টেইনারটি মোবাইলে দেখানো হবে */
    }
}

/* শুধুমাত্র মোবাইল স্ক্রিনে (768px বা তার কম) প্লে বাটনটি দেখা যাবে */
@media (max-width: 768px) {
    #speak-button{
        display: flex; /* বাটনটি দেখানোর জন্য */
    }
}

/* font Size For Mobile Version  */

@media (max-width: 768px) {
    .opinion-card-text h3 {
    font-size: 18px; /* Font size ছোট করা হয়েছে */
    font-weight: 800;
    font-family: var(--font-primary);
}
.side-article h3{
    font-size: 18px; /* Font size ছোট করা হয়েছে */
    line-height: 30px;
}

.container p{

    font-size: 18px;
}

.tab-news-item h4 {
    font-size: 18px;
}

.story-card h4{
    font-size: 18px;
}
.news-card h3{
    font-size: 18px;
}

.video-text-new h4{
    font-size: 18px;
}
.list-news-item h4{
    font-size: 18px;
   
}

.grid-news-card h3{
    font-size: 18px;

}
.photo-overlay-small-vertical h4{
    font-size: 18px;
}
.small-card h4{
    font-size: 18px;
}
.row-card h3{
    font-size: 18px;
}

.large-featured-item p{

    font-size: 18px;
}
.row-card h3{
    font-size: 18px;
}

.video-carousel-card h4{
    font-size: 18px;
}
.popular-news-item h4 {
    font-size: 18px;
}

.monthly-header h4{
    font-size: 18px;
}

.popular-news-item span{
    font-size: 15px;
}


.hero-video-small h4{
    font-size: 18px;
}

.videos-hero-section .hero-video-small h4{
    font-size: 18px;
}








}

/* --- Mobile Meta Info under Title --- */
.news-meta-mobile {
    display: none; /* Hidden on desktop by default */
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .news-meta-mobile {
        display: flex; /* Displayed only on mobile */
    }
}

/* --- News Loading Animation --- */
.news-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    display: none; /* Initially hide all news sections */
}

.news-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    margin-top: 6px;
}

.news-loader {
    display: none;
    padding: 40px 0;
    text-align: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #008101;
    animation: spin 1s ease infinite;
    margin: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



/* --- Mobile Layout for Bangladesh Section (Corrected) --- */
@media (max-width: 576px) {
    #bangladesh-section .category-grid {
        display: flex;
        flex-direction: column;
        gap: 0; /* গ্যাপ এখন প্রতিটি আইটেমের বর্ডার দ্বারা নিয়ন্ত্রিত হবে */
    }
    #bangladesh-section {
        padding: 0px 12px;
    }
 #sports-section{
    padding: 0 12px;
    margin-top: 5px;
    margin-bottom: 5px;
 }
 
 .web-story-section .category-header{
    margin-bottom: 8px;
 }


    #bangladesh-section .category-header{
        margin-bottom: 0px
    }

    /* এই সেকশনের সকল নিউজ কার্ডের জন্য সাধারণ স্টাইল */
    #bangladesh-section .news-card {
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }
    
    #bangladesh-section .news-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* --- প্রথম নিউজ আইটেম (কার্ড স্টাইল) --- */
    #bangladesh-section .news-card:first-child a {
        display: block; /* ফ্লেক্স স্টাইল বাতিল করা হলো */
    }

    #bangladesh-section .news-card:first-child img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 10px;
        border-radius: 5px;
    }

    #bangladesh-section .news-card:first-child h3 {
        padding: 0;
        font-size: 20px;
        line-height: 1.4;
    }

    /* --- বাকি নিউজ আইটেমগুলো (লিস্ট স্টাইল) --- */
    #bangladesh-section .news-card:not(:first-child) a {
        display: flex;
        flex-direction: row-reverse; /* ছবিকে ডানে পাঠানোর জন্য */
        align-items: center;
        gap: 10px;
    }
    
    #bangladesh-section .news-card:not(:first-child) img {
        width: 100px;
        height: 70px;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 5px;
    }

    #bangladesh-section .news-card:not(:first-child) h3 {
        flex-grow: 1; /* বাকি জায়গা শিরোনাম নিয়ে নিবে */
        padding: 0;
        margin: 0; /* h3 ট্যাগের ডিফল্ট মার্জিন সরানো হলো */
        font-size: 18px;
        line-height: 1.5;
    }
}

/* --- Mobile Layout for World Section --- */
@media (max-width: 576px) {
    #world-section .news-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #world-section .list-news-item {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
    }

    #world-section .list-news-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    #world-section .category-header{
        margin-bottom: 0px
    }

    /* First news item as a full card */
    #world-section .list-news-item:first-child {
        display: block;
    }

    #world-section .list-news-item:first-child img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 10px;
        border-radius: 5px;
    }

    #world-section .list-news-item:first-child h4 {
        font-size: 20px;
        line-height: 1.4;
    }

    /* Rest of the news items as a list */
    #world-section .list-news-item:not(:first-child) {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 15px;
    }

    #world-section .list-news-item:not(:first-child) img {
        width: 100px;
        height: 70px;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 5px;
    }

    #world-section .list-news-item:not(:first-child) h4 {
        flex-grow: 1;
        font-size: 18px;
        line-height: 1.5;
    }
}

/* --- Mobile Layout for Entertainment Section --- */
@media (max-width: 576px) {
    #entertainment-section .news-grid-large {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #entertainment-section .grid-news-card {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        border-radius: 0;
    }
    
    #entertainment-section .grid-news-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    #entertainment-section .category-header{
        margin-bottom: 0px
    }

    /* First news item as a full card */
    #entertainment-section .grid-news-card:first-child a {
        display: block;
    }


        .large-photo-card-new img{
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
        }

        .photo-card-new img{
        width: 100%;
        height: 115px;
        object-fit: cover;
        display: block;
        }

    #entertainment-section .grid-news-card:first-child img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 10px;
    }

    #entertainment-section .grid-news-card:first-child h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    /* Rest of the news items as a list */
    #entertainment-section .grid-news-card:not(:first-child) a {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 15px;
    }
    
    #entertainment-section .grid-news-card:not(:first-child) img {
        width: 100px;
        height: 70px;
        object-fit: cover;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    #entertainment-section .grid-news-card:not(:first-child) h3 {
        flex-grow: 1;
        font-size: 18px;
        line-height: 1.5;
        margin: 0;
    }
}

/* --- Mobile Layout for Sports Section --- */
@media (max-width: 576px) {
    #sports-section .category-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }


    #sports-section .news-card {
        padding:8px 0;
        border-bottom: 1px solid #eee;
    }
#sports-section .category-header{
        margin-bottom: 0px
    }

    #sports-section .news-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* First news item as a full card */
    #sports-section .news-card:first-child a {
        display: block;
    }

    #sports-section .news-card:first-child img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 10px;
        border-radius: 5px;
    }

    #sports-section .news-card:first-child h3 {
        font-size: 20px;
        line-height: 1.4;
        padding: 0;
    }

    /* Rest of the news items as a list */
    #sports-section .news-card:not(:first-child) a {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 15px;
    }
    
    #sports-section .news-card:not(:first-child) img {
        width: 100px;
        height: 70px;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 5px;
    }

    #sports-section .news-card:not(:first-child) h3 {
        flex-grow: 1;
        font-size: 18px;
        line-height: 1.5;
        padding: 0;
        margin: 0;
    }
}

/* --- Mobile Layout for Share Market Section --- */
@media (max-width: 576px) {
    #share-market-section .category-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    #share-market-section{
        padding: 0 12px;
    }

    #share-market-section .category-header{
        margin-bottom: 0px
    }

    #share-market-section .news-card {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    #share-market-section .news-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* First news item as a full card */
    #share-market-section .news-card:first-child a {
        display: block;
    }

    #share-market-section .news-card:first-child img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 10px;
        border-radius: 5px;
    }

    #share-market-section .news-card:first-child h3 {
        font-size: 20px;
        line-height: 1.4;
        padding: 0;
    }

    /* Rest of the news items as a list */
    #share-market-section .news-card:not(:first-child) a {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 15px;
    }
    
    #share-market-section .news-card:not(:first-child) img {
        width: 100px;
        height: 70px;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 5px;
    }

    #share-market-section .news-card:not(:first-child) h3 {
        flex-grow: 1;
        font-size: 18px;
        line-height: 1.5;
        padding: 0;
        margin: 0;
    }
}


/* --- Mobile Layout for Lifestyle Section (Final Fix using 'order') --- */
@media (max-width: 576px) {
    /* --- Main Card --- */
    #lifestyle-section .large-card h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    #lifestyle-section .small-card-list {
        gap: 0;
    }

    #lifestyle-section .category-header{
        margin-bottom: 5px
    }
    #lifestyle-section{
        padding: 0 12px;
    }

    /* --- List Item Wrapper (The <a> tag) --- */
    #lifestyle-section .small-card {
        display: flex;
        flex-direction: row; /* row-reverse এর পরিবর্তে row ব্যবহার করা হলো */
        align-items: center;
        gap: 15px;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }

    #lifestyle-section .small-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* --- List Item Title (h4) --- */
    #lifestyle-section .small-card h4 {
        order: 1; /* এটিকে প্রথমে দেখানো হবে (বামে) */
        flex-grow: 1; 
        font-size: 18px;
        line-height: 1.5;
        margin: 0;
        text-align: left; /* বাম দিকে alignment নিশ্চিত করা হলো */
    }

    /* --- List Item Image (img) --- */
    #lifestyle-section .small-card img {
        order: 2; /* এটিকে দ্বিতীয়তে দেখানো হবে (ডানে) */
        width: 100px;
        height: 70px;
        flex-shrink: 0;
    }
}

/* --- Mobile Layout for Health Section --- */
@media (max-width: 576px) {
    #health-section .large-card h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    #health-section .small-card-list {
        gap: 0;
    }

    #health-section .small-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    #health-section .small-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    #health-section .small-card h4 {
        order: 1;
        flex-grow: 1; 
        font-size: 18px;
        line-height: 1.5;
        margin: 0;
        text-align: left;
    }

    #health-section .small-card img {
        order: 2;
        width: 100px;
        height: 70px;
        flex-shrink: 0;
    }
}

/* --- Mobile Layout for Tech Section --- */
@media (max-width: 576px) {
    #tech-section .large-card h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    #tech-section .small-card-list {
        gap: 0;
    }

    #tech-section .small-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        text-align: left;
    }

    #tech-section .small-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    #tech-section .small-card h4 {
        order: 1;
        flex-grow: 1; 
        font-size: 18px;
        line-height: 1.5;
        margin: 0;
    }

    #tech-section .small-card img {
        order: 2;
        width: 100px;
        height: 70px;
        flex-shrink: 0;
    }
}

/* --- Mobile Layout for Opinion Section --- */
@media (max-width: 576px) {
    #opinion-section .small-card-list {
        gap: 0;
    }

    #opinion-section .small-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    
    #opinion-section .small-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    #opinion-section .small-card h4 {
        order: 1;
        flex-grow: 1;
        font-size: 18px;
        line-height: 1.5;
        margin: 0;
    }
    
    #opinion-section .small-card img {
        order: 2;
        width: 100px;
        height: 70px;
        flex-shrink: 0;
    }

    /* First item card style */
    #opinion-section .small-card:first-child {
        flex-direction: column;
        align-items: flex-start;
    }

    #opinion-section .small-card:first-child img {
        order: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 10px;
        border-radius: 5px;
    }

    #opinion-section .small-card:first-child h4 {
        order: 2;
        font-size: 20px;
        line-height: 1.4;
    }
}

/* --- Final Mobile Header & Nav Layout --- */

/* প্রথমে ডেস্কটপের জন্য মোবাইলের নতুন আইটেমগুলো হাইড করুন */
.live-btn-mobile,
.nav-epaper-mobile {
    display: none;
}

@media (max-width: 768px) {
    /* মোবাইলে ডেস্কটপের টপ লিংক হাইড করুন */
    .header-top-links {
        display: none;
    }

    /* মোবাইলের জন্য header-right কে ফ্লেক্স করুন */
    .header-right {
        display: flex;
        align-items: center;
        gap: 15px; /* আইকনগুলোর মধ্যে স্পেস */
    }

    /* মোবাইলের জন্য লাইভ বাটনটি দেখান এবং স্টাইল করুন */
    .live-btn-mobile {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #d42128; /* লাল রঙ */
        font-weight: bold;
        font-size: 16px;
        font-family: var(--font-primary);
    }
    .live-btn-mobile i {
        font-size: 14px;
    }

    /* main-nav এর container কে ফ্লেক্স করুন */
    .main-nav .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* ক্যাটাগরি লিস্ট যেন স্ক্রল করা যায় */
    .main-nav ul {
        flex-grow: 1;
        padding-left: 10px;
    }

    /* মোবাইলের জন্য ইপেপার লিংকটি দেখান এবং স্টাইল করুন */
   .nav-epaper-mobile {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        font-family: var(--font-primary);
        font-weight: bold;
        font-size: 16px;
        color: #333333; /* Blue color */
        
        /* Updated Styles for Highlight and Shadow */
        background-color: #FBE9E7; /* Light background highlight */
        padding: 4px 8px;
        margin-right: 5px; /* ডানদিকে সামান্য স্পেস */
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); /* নতুন শ্যাডো */
    }
    
    .nav-epaper-mobile i {
        font-size: 14px;
    }
}

/* --- Mobile Header & Nav Layout for Category Page --- */
@media (max-width: 768px) {
    /* Hide desktop-only elements */
    .header-right .live-btn,
    .header-right .epaper-btn {
        display: none;
    }

    /* Hide the category title on mobile */
    .category-title-header {
        display: none;
    }
}


/* --- Single News Reporter Info (Mobile) --- */

/* ডেস্কটপে নতুন ব্লকটি লুকিয়ে রাখুন */
.reporter-info-mobile {
    display: none;
}

@media (max-width: 768px) {
    /* মোবাইলে সাইডবারের মেটা-ইনফো লুকিয়ে রাখুন */
    .left-sidebar .meta-sidebar {
        display: none;
    }

    /* মোবাইলের জন্য তৈরি করা নতুন ব্লকটি দেখান এবং স্টাইল করুন */
    .reporter-info-mobile {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 10px;
        padding-left: 12px;
        border-left: 3px solid #e0e0e0;
    }

    .reporter-image img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        object-fit: cover;
    }

    .reporter-details {
        display: flex;
        flex-direction: column;
    }

    .reporter-name {
        font-family: var(--font-primary);
        font-weight: bold;
        font-size: 16px;
        color: #333;
    }

    .publish-date,
    .view-count {
        font-family: var(--font-primary);
        font-size: 13px;
        color: #666;
        line-height: 1.5;
    }

    .news-body p:first-child::first-letter {
        font: 25px;
        padding: 4px 6px;
    }
}
/* --- Drop Cap for News Articles --- */
.news-body p:first-child::first-letter {
    background-color: #d42128; /* লাল ব্যাকগ্রাউন্ড */
    color: white;              /* সাদা অক্ষর */
    float: left;
    font-size: 35px;           /* অক্ষরের আকার */
    line-height: 45px;         /* লাইন উচ্চতা ঠিক করা */
    font-weight: bold;
    padding: 5px 9px;          /* বক্সের ভেতরে স্পেস */
    margin-right: 10px;        /* বক্সের ডানদিকে স্পেস */
    margin-bottom: 5px;        /* বক্সের নিচে স্পেস */
    border-radius: 2px;        /* হালকা গোলাকার বর্ডার */
    font-family: var(--font-primary);
}

/* --- Mobile Layout for Home Page Photo Gallery --- */
/* --- Mobile Layout for Home Page Photo Gallery (Corrected) --- */
@media (max-width: 576px) {
    #home-photo-gallery .photo-gallery-content-new {
        grid-template-columns: 1fr;
    }

    #home-photo-gallery .small-photos-grid-new {
        display: grid;
        grid-template-columns: 1fr 1fr; /* দুটি কলাম তৈরি করা হলো */
        gap: 15px;
    }
}
/* --- Home Page Photo Gallery Layout (Desktop & Mobile) --- */

/* ডেস্কটপে চতুর্থ ছোট আইটেমটি হাইড করা হলো */
.mobile-only-gallery-item {
    display: none;
}

/* মোবাইল লেআউট */
@media (max-width: 576px) {
    #home-photo-gallery .photo-gallery-content-new {
        grid-template-columns: 1fr;
    }

    #home-photo-gallery .small-photos-grid-new {
        display: grid;
        grid-template-columns: 1fr 1fr; /* দুটি কলাম তৈরি করা হলো */
        gap: 15px;
    }
    
    /* মোবাইলে চতুর্থ আইটেমটি আবার দেখানো হলো */
    #home-photo-gallery .mobile-only-gallery-item {
        display: block;
    }
}

/* --- Mobile Layout for Home Page Video Gallery --- */
@media (max-width: 576px) {
    #home-video-gallery .video-gallery-content-new {
        grid-template-columns: 1fr; /* দুটি কলামকে একটির নিচে আরেকটি আনা হলো */
    }

    #home-video-gallery .sidebar-videos-col {
        display: grid;
        grid-template-columns: 1fr 1fr; /* দুটি কলাম তৈরি করা হলো */
        gap: 15px;
    }

    #home-video-gallery .sidebar-videos-col .video-card-new a {
        flex-direction: column; /* আইটেমগুলোকে কলাম আকারে সাজানো হলো */
        align-items: flex-start;
        gap: 10px;
        background: none;
        padding: 0;
        border: none;
    }

    #home-video-gallery .sidebar-videos-col .video-thumbnail-new.small-thumb {
        width: 100%; /* ছবির প্রস্থ পুরো কার্ড জুড়ে থাকবে */
        height: auto;
        aspect-ratio: 16 / 10;
    }

    #home-video-gallery .sidebar-videos-col .video-text-new h4 {
        color: #fff; /* ডার্ক ব্যাকগ্রাউন্ডের জন্য সাদা ছিল, এখন কালো করা হলো */
        font-size: 16px;
    }

    #home-video-gallery .sidebar-videos-col .play-icon-overlay-new {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* --- News Separator Icon Style --- */

/* বিভাজকের জন্য জায়গা তৈরি করা */
.loading-trigger {
    position: relative;
    height: 40px; /* আইকনের জন্য উল্লম্ব জায়গা তৈরি */
    margin: 30px 0; /* উপরে ও নিচে অতিরিক্ত ফাঁকা জায়গা */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* বিভাজকের মাঝখানের লাইন তৈরি */
.loading-trigger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0; /* লাইনের রঙ */
    z-index: 1;
}

/* --- News Separator with SVG Icon --- */
.loading-trigger::after {
    content: ''; /* লেখা মুছে দিন */
    
    /* নিচের অংশটি SVG আইকনকে ব্যাকগ্রাউন্ড হিসেবে ব্যবহার করবে */
    background-image: url('img/icon/n.svg');
    background-size: 14px 14px; /* আইকনের আকার ঠিক করুন */
    background-repeat: no-repeat;
    background-position: center;

    position: relative;
    z-index: 2;
    
    display: block;
    
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: 2px solid var(--primary-color); /* Dynamic Color */
    border-radius: 50%;
}







/* --- Final Footer Design (Uzzal Bangladesh Style) --- */
.final-footer-design {
    background-color: #fff;
    color: #555;
    font-family: var(--font-primary);
}

/* Top Nav */
.footer-top-nav {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}
.footer-top-nav .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-top-nav a {
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}
.footer-top-nav a:hover {
    color: #008101;
}

/* Main Content */
.footer-main-content {
    padding: 30px 0;
}
.footer-grid-final {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 30px;
    align-items: center;
}
.footer-col-logo img {
    max-width: 180px;
}

/* Personnel List */
.footer-col-personnel ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-col-personnel li {
    display: flex;
    align-items: center;
    gap: 15px;
}
.footer-col-personnel img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    flex-shrink: 0;
}
.personnel-info {
    display: flex;
    flex-direction: column;
}
.personnel-info span {
    font-size: 13px;
    color: #777;
}
.personnel-info strong {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}
.personnel-info small {
    font-size: 14px;
}

/* Contact Column */
.footer-col-contact p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
}
.footer-col-contact p i {
    color: #d42128;
    margin-top: 5px;
}
.app-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.app-buttons img {
    height: 40px;
}
.footer-social-icons-simple {
    display: flex;
    gap: 10px;
}
.footer-social-icons-simple a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
}
.footer-social-icons-simple .fb-icon { background-color: #1877F2; }
.footer-social-icons-simple .yt-icon { background-color: #CD201F; }

/* Sub-Footer */
.final-sub-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}
.final-sub-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 14px;
    position: relative;
}
.sub-footer-links {
    display: flex;
    gap: 15px;
}
.final-sub-footer .scroll-to-top {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-color: #d42128;
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid-final {
        grid-template-columns: 1fr 2fr;
    }
    .footer-col-logo {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
}
@media (max-width: 768px) {
    .footer-grid-final {
        grid-template-columns: 1fr;
    }
    .final-sub-footer .container {
        flex-direction: column;
        gap: 10px;
    }
    .final-sub-footer .scroll-to-top {
        display: none;
    }
}

/* --- Final Footer Responsive Design --- */
@media (max-width: 992px) {
    .footer-grid-final {
        grid-template-columns: 1fr 2fr;
        gap: 20px;
    }
    .footer-col-logo {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* টপ ন্যাভিগেশন লিংকগুলোকে ২টি কলামে সাজানো হলো */
    .footer-top-nav .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px 20px;
    }
    .footer-top-nav a {
        padding: 5px 0;
    }
    .footer-top-nav {
        padding-bottom: 20px;
    }

    /* মূল কন্টেন্ট একটি কলামে আনা হলো */
    .footer-grid-final {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* লোগোকে মাঝখানে আনা হলো */
    .footer-col-logo {
        order: 1; /* লোগো প্রথমে দেখাবে */
        text-align: center;
        padding-bottom: 20px;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 0;
    }
    
    .footer-col-personnel {
        order: 2; /* কর্মকর্তার তালিকা দ্বিতীয়তে */
        padding-bottom: 20px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .footer-col-contact {
        order: 3; /* যোগাযোগের তথ্য শেষে */
    }

    /* কন্টাক্ট কলামের আইটেমগুলো মাঝখানে আনা হলো */
    .footer-col-contact .app-buttons,
    .footer-col-contact .footer-social-icons-simple {
        justify-content: center;
    }
    .footer-col-contact p {
        text-align: center;
        justify-content: center;
    }
    
    /* সাব-ফুটার পরিবর্তন */
    .final-sub-footer .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .final-sub-footer .scroll-to-top {
        display: none;
    }
}


/*
==================================================
           SINGLE NEWS PAGE: TAGS SECTION
==================================================
*/

/* পুরো ট্যাগ সেকশনের জন্য স্টাইল */
.tags-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px; /* ট্যাগগুলোর মধ্যে দূরত্ব */
    padding: 15px 0;
    margin-top: 20px;
    /* সেকশনকে আলাদা করতে হালকা বর্ডার */
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* 'ট্যাগ:' প্রিফিক্সের জন্য স্টাইল */
.tags-section .tag-prefix {
    font-weight: bold;
    color: #334155; /* গাঢ় ধূসর রঙ */
    font-size: 16px;
    margin-right: 5px; /* প্রিফিক্সের পর একটু বেশি দূরত্ব */
    white-space: nowrap; /* ছোট স্ক্রিনে যাতে না ভাঙে */
}

/* প্রতিটি ট্যাগ লিংকের (chip) জন্য স্টাইল */
.tags-section .tag-link {
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px; /* বেশি গোলাকার কর্নার (chip look) */
    background-color: #f0fdf4; /* হালকা সবুজ ব্যাকগ্রাউন্ড */
    color: #27ae60; /* মূল সবুজ রঙ */
    border: 1px solid #27ae60; /* সবুজ রঙের বর্ডার */
    transition: all 0.2s;
    white-space: nowrap;
}

.tags-section .tag-link:hover {
    background-color: #27ae60; /* হোভারে সম্পূর্ণ সবুজ ব্যাকগ্রাউন্ড */
    color: #ffffff; /* হোভারে সাদা লেখা */
}

/* ছোট স্ক্রিনের জন্য রেসপনসিভ অ্যাডজাস্টমেন্ট */
@media (max-width: 576px) {
    .tags-section {
        gap: 8px;
        padding: 10px 0;
    }
    .tags-section .tag-prefix {
        font-size: 14px;
        margin-right: 2px;
    }
    .tags-section .tag-link {
        font-size: 13px;
        padding: 4px 10px;
    }
}


/*
=====================================================
# Mobile-specific breadcrumb display modification
=====================================================
*/

/* 1. ডেস্কটপে নতুন যোগ করা ব্রেডক্রাম্ব হাইড করা */
.mobile-breadcrumb-container {
    display: none; /* ডিফল্টভাবে হাইড থাকবে */
    padding: 10px 0; /* প্যাডিং প্রয়োজন হলে যোগ করুন */
    font-size: 14px; /* ফন্টের সাইজ প্রয়োজন হলে ঠিক করুন */
    margin-bottom: 10px; /* নিচের দিকে মার্জিন দিন */
}

/* 2. মোবাইল স্ক্রিনে ব্রেডক্রাম্বের অবস্থান এবং ডেস্কটপ ব্রেডক্রাম্ব হাইড করা */
@media (max-width: 767px) {
    /* বাম সাইডবারে থাকা মূল ব্রেডক্রাম্বটি মোবাইল স্ক্রিনে হাইড করে দেওয়া */
    .left-sidebar .breadcrumbs-sidebar {
        display: none !important; 
    }

    /* main-content এর উপরে যোগ করা ব্রেডক্রাম্বটি মোবাইলে ডিসপ্লে করা */
    .mobile-breadcrumb-container {
        display: block; /* মোবাইলে শো করা */
    }
    
    /* যদি আপনার main-content এবং left-sidebar পাশাপাশি কলামে থাকে, 
       মোবাইলে সেগুলিকে পুরো প্রস্থ দিতে এবং উল্লম্বভাবে সাজাতে নিচের কোড লাগতে পারে। */
    .single-news-container {
        display: block; /* কলাম লেআউট ভেঙে দেওয়া */
    }

    .left-sidebar,
    .main-content,
    .right-sidebar {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }
}


/* --- Mobile Hero Carousel Card Style --- */
@media (max-width: 768px) {
    .hero-main-column {
        max-height: none; /* Remove fixed height on mobile */
        border-radius: 5px; /* Ensure main container has radius */
        background-color: #ffffff; /* Dark background for the title area */
        overflow: hidden; /* Ensure content stays within bounds */
    }

    .hero-main-column .main-article {
        display: none; /* Hide all slides first */
        flex-direction: column; /* Stack image and title vertically */
        height: auto; /* Allow height to adjust based on content */
    }

    .hero-main-column .main-article.active {
        display: flex; /* Show only the active slide as a flex container */
    }

    .hero-main-column .main-article img {
        height: auto; /* Let image height adjust based on width */
        aspect-ratio: 16 / 9; /* Maintain aspect ratio */
        object-fit: cover;
        border-radius: 0; /* Remove radius from image if any */
        transition: none; /* Disable hover effect on mobile */
    }
    
    .hero-main-column .main-article:hover img { 
        transform: none; /* Disable hover effect on mobile */
    }

    .main-article-title {
        position: static; /* Remove absolute positioning */
        background: none; /* Remove gradient overlay */
        color: #000; /* White text color */
        padding: 12px 15px; /* Adjust padding for the title area */
        min-height: 70px; /* Minimum height for the title area */
        display: flex; /* Use flex to center text vertically if needed */
        align-items: center; /* Center text vertically */
    }

    .main-article-title h2 {
        font-size: 18px; /* Adjust font size for mobile */
        line-height: 1.4; /* Adjust line height */
    }

    /* Adjust carousel control button positions */
    .hero-main-column .carousel-control {
        top: 40%; /* Adjust vertical position */
    }
}

/* Lazy Load Placeholder Style */
img.lazy-load {
    background-color: #eee; /* Light grey background for placeholder area */
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* Fade-in transition */
}

/* Style once the image is loaded (optional) */
img.lazy-load.loaded {
    /* You might not need specific styles here if the transition works */
}

/* Optional: Style if image fails to load */
img.lazy-load[src$="placeholder.png"]:not([data-src$="placeholder.png"]) {
   /* Add styles if you want to indicate a failed load visually,
      but typically the placeholder remains */
}



 

    /* UPDATED: In-Article Related Post Style */
    .in-article-related {
        border: 1px solid #eee;
        border-left: 4px solid #d42128;
        padding: 8px; /* Padding komano hoyeche */
        margin: 10px 0;
        background: #f9f9f9;
        border-radius: 4px;
        overflow: hidden;
    }
    .in-article-related-title {
        font-size: 16px;
        font-weight: bold;
        color: #333;
        margin-bottom: 8px; /* Margin komano hoyeche */
        display: block;
        font-family: 'SolaimanLipi', sans-serif; 
    }
    .in-article-related-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 10px; /* Gap komano hoyeche */
    }
    .in-article-related-link img {
        width: 100px;  /* Image width komano hoyeche */
        height: 70px;  /* Image height komano hoyeche */
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }
    .in-article-related-link h4 {
        font-size: 17px; /* Font size komano hoyeche */
        font-weight: 600;
        color: #1a1a1a;
        margin: 0;
        line-height: 1.35; /* Line height komano hoyeche */
    }
    .in-article-related-link:hover h4 {
        color: #d42128;
    }
    /* END UPDATED CSS */

    /* Style for author link */
    .author-link {
        text-decoration: none;
        color: inherit;
    }
    .author-link:hover {
        color: #d42128;
        text-decoration: underline;
    }



/* ===================================
   Writer Details Page Styles
   (Updated Mobile Layout - Date Position & Gap)
   =================================== */

/* --- Main Layout --- */
.writer-details-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: single column */
    gap: 20px;
    padding: 20px 0;
}

/* --- Writer Profile Box --- */
.writer-profile-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.writer-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #d42128; /* NTV Red border */
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.writer-profile-box h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.writer-bio {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.writer-bio p {
    margin: 0;
    padding: 0;
}

/* --- Writer's Post List --- */
.writer-main-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d42128;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.writer-post-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Minimal gap */
}

.writer-post-item {
    display: grid;
    grid-template-columns: 130px 1fr; /* Image + details */
    gap: 20px;
    align-items: start;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.writer-post-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    border-color: #ddd;
}

.post-image-container {
    display: flex; /* Kept flex for potential future use, but not strictly needed now */
    flex-direction: column;
}

.post-image-container img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;
}

/* Date is no longer in image container */
.post-image-container .post-date {
   display: none; /* Hide date if still here */
}

.writer-post-item .post-details {
    display: flex;
    flex-direction: column;
}

.writer-post-item .post-category {
    font-size: 0.85rem;
    font-weight: 700;
    color: #d42128;
    text-decoration: none;
    margin-bottom: 2px; /* Reduced margin */
    display: inline-block;
}

.writer-post-item .post-category:hover {
    text-decoration: underline;
}

/* MOD: Date style within post-details */
.writer-post-item .post-details .post-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 6px; /* Space between date and title */
    display: block; /* Make it visible again */
}


.writer-post-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.writer-post-item h3 a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.2s;
}

.writer-post-item h3 a:hover {
    color: #d42128;
}

.writer-post-item p { /* Excerpt */
    font-size: 0.95rem;
    color: #666;
    margin: 8px 0 0 0;
    line-height: 1.6;
}


/* --- Pagination Styles --- */
.pagination-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination-container a {
    text-decoration: none;
    color: #333;
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.pagination-container a:hover {
    background: #eee;
    border-color: #ccc;
}

.pagination-container a.active {
    background: #d42128;
    color: #fff;
    border-color: #d42128;
    cursor: default;
}

.pagination-container a.disabled {
    color: #aaa;
    background: #f9f9f9;
    border-color: #eee;
    pointer-events: none;
}


/* --- Responsive Design --- */

/* For Desktop (Matching single-news.php layout) */
@media (min-width: 992px) {
    .writer-details-container {
        grid-template-columns: 2fr 1fr; /* Main content + sidebar */
    }
}

/* For small mobile - UPDATED LAYOUT */
@media (max-width: 576px) {
    .writer-profile-box {
        padding: 20px;
    }
    .writer-profile-box h1 {
        font-size: 2rem;
    }
    .writer-bio {
        font-size: 1rem;
    }

    .writer-main-content h2 {
        font-size: 1.5rem;
    }

    /* MOD: Keep stacked layout, adjust gap */
    .writer-post-item {
        grid-template-columns: 1fr; /* Stack image and text */
        gap: 5px; /* MOD: Reduced gap */
        padding: 12px; /* Slightly reduced padding */
    }

    .post-image-container {
       /* Optional: Center image if needed */
       /* align-items: center; */
       margin-bottom: 5px; /* MOD: Add space below image */
    }

    .post-image-container img {
        height: auto;
        width: 100%;
        max-width: 100%; /* Allow full width */
        margin-bottom: 0; /* Remove margin from image */
    }

    /* Hide date from image container if it was there */
    .post-image-container .post-date {
       display: none;
    }

    /* MOD: Style date under category for mobile */
    .writer-post-item .post-details .post-date {
        font-size: 0.75rem; /* Smaller date font */
        margin-bottom: 4px; /* Less space */
    }

    .writer-post-item .post-category {
        margin-bottom: 2px;
    }

    .writer-post-item h3 {
        font-size: 1.1rem;
    }
    .writer-post-item p {
        font-size: 0.9rem;
        margin: 5px 0 0 0;
        line-height: 1.5;
    }

    .pagination-container a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* === Mobile Fix: single-category.php "small-featured-item" (v2) === */

@media (max-width: 768px) {
    
    /* 1. Item-er bhetorer Link (<a> tag) ke pashapashi kora */
    .small-featured-item a {
        display: flex;         /* Eitai shobcheye guruttopurno! */
        flex-direction: row;   /* Pashapashi (horizontal) kora */
        align-items: flex-start; /* Item-gulo-ke upore align kora */
        gap: 12px;             /* Chobi o title-er majhe faka deya */
    }

    /* 2. Chobi-r container-ke fixed width deya */
    .small-featured-item .small-featured-img {
        flex-shrink: 0;      /* Chobi-r container jeno choto na hoye jay */
        width: 100px;        /* Ekta fixed width dilam */
        height: 75px;        /* Ekta fixed height dilam */
        aspect-ratio: unset; /* Desktop-er ratio remove kora holo */
    }

    /* 3. Chobi-ke sothikbhabe fit kora */
    .small-featured-item .small-featured-img img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    /* 4. Title-er container-ke baki jayga deya */
    .small-featured-item .small-featured-title {
        flex-grow: 1;        /* Baki shob jayga title-ke deya */
        padding: 0;          /* Desktop-er padding remove kora */
    }

    /* 5. Title-er font o alignment thik kora */
    .small-featured-item .small-featured-title h3 {
        font-size: 15px;     /* Mobile-er jonno optimal font size */
        line-height: 1.4;
        margin-top: 0;       /* Oproyojoniyo margin remove kora */
    }
}

/* --- Video Player Watermark Styles --- */
.video-player-wrapper {
    position: relative; /* এটি আগে থেকেই আছে, নিশ্চিত হওয়ার জন্য আবার লিখলাম */
}

.player-watermark {
    position: absolute;
    top: 15px;          /* উপর থেকে দূরত্ব */
    left: 15px;         /* বাম থেকে দূরত্ব */
    width: 80px;        /* লোগোর সাইজ (প্রয়োজনে বাড়াতে বা কমাতে পারেন) */
    height: auto;
    z-index: 100;       /* ভিডিওর উপরে থাকার জন্য */
    pointer-events: none; /* যাতে লোগোতে ক্লিক করলে ভিডিও পজ/প্লে না আটকায় */
    opacity: 0.9;       /* স্বচ্ছতা */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); /* শ্যাডো যাতে সব ব্যাকগ্রাউন্ডে দেখা যায় */
    transition: opacity 0.3s;
}

/* মোবাইলের জন্য লোগো একটু ছোট করা */
@media (max-width: 768px) {
    .player-watermark {
        width: 50px;
        top: 10px;
        left: 10px;
    }
}
breaking-news-section container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 ;
    box-sizing: border-box; 
}
/* style.css ফাইলে .breaking-news-section এর কোডটি এভাবে আপডেট করুন */

.breaking-news-section {
    padding: 0 !important; /* বাম ও ডানের গ্যাপ রিমুভ করার জন্য */
    /* বাকি প্রপার্টিগুলো যেমন আছে তেমনই থাকবে */
    background-color: #fff;
    margin-top: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    max-width: 1275px;
    margin-left: auto;
    margin-right: auto;
}

/* নিশ্চিত হওয়ার জন্য নিচের অংশটুকুও চেক করে নিন */
.breaking-news-container {
    margin-left: 0;
    padding-left: 0;
}


/* Carousel Control Button Styles Update (Square & Bigger Icon) */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* একটু গাঢ় ব্যাকগ্রাউন্ড */
    border: none;
    padding: 0; /* প্যাডিং রিমুভ করা হয়েছে যাতে ফ্লেক্সবক্স দিয়ে সেন্টার করা যায় */
    cursor: pointer;
    z-index: 10;
    border-radius: 0; /* গোল না করে চারকোনা (Square) করা হয়েছে */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 45px; /* বাটনের সাইজ একটু বড় করা হয়েছে */
    height: 45px; /* বাটনের সাইজ একটু বড় করা হয়েছে */
}

/* Style for the SVG Image inside the button */
.carousel-control img {
    width: 28px;  /* আইকন সাইজ ২০px থেকে বাড়িয়ে ২৮px করা হয়েছে */
    height: 28px; /* আইকন সাইজ ২০px থেকে বাড়িয়ে ২৮px করা হয়েছে */
    display: block;
    filter: invert(1); /* আইকন সাদা করার জন্য */
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8); /* হোভারে আরও গাঢ় হবে */
}

.carousel-control.prev {
    left: 0; /* বাম পাশের গ্যাপ কমানো হয়েছে */
}

.carousel-control.next {
    right: 0; /* ডান পাশের গ্যাপ কমানো হয়েছে */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .carousel-control {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control img {
        width: 20px;
        height: 20px;
    }
}


/* ntv/style.css ফাইলে .footer-col-logo এর স্টাইলটি এভাবে আপডেট করুন */

.footer-col-logo {
    display: flex;
    flex-direction: column;  /* এটি যোগ করুন: যাতে লোগো এবং ট্যাগলাইন উপর-নিচ থাকে */
    justify-content: center; /* ভার্টিক্যালি মাঝখানে রাখবে */
    align-items: center;     /* হরাইজন্টালি মাঝখানে রাখবে */
    align-self: stretch;     /* কলামটি পুরো উচ্চতা পাবে */
    text-align: center;
    width: 100%;
}

/* ইমেজের স্টাইল যেমন আছে তেমনই থাকবে */
.footer-col-logo img {
    max-width: 180px;
    margin-bottom: 10px; /* লোগোর নিচে একটু গ্যাপ দেওয়ার জন্য */
}

/* --- Mobile Layout for Card Row Section (Updated: Transparent BG, Less Gap) --- */
@media (max-width: 576px) {
    
    /* গ্রিড লেআউট বাদ দিয়ে কলাম স্ট্যাক করা হলো */
    .card-row-section .card-row-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0; /* র‍্যাপারের গ্যাপ ০ করা হলো, প্যাডিং দিয়ে স্পেস ঠিক করা হবে */
    }

    /* প্রতিটি কার্ডকে ফ্লেক্স রো বানানো হলো */
    .card-row-section .row-card {
        display: flex;
        flex-direction: row; /* পাশাপাশি দেখাবে */
        align-items: center; /* ভার্টিক্যালি সেন্টারে */
        gap: 15px; /* ছবি ও লেখার মাঝে গ্যাপ */
        
        /* নতুন পরিবর্তন */
        background-color: transparent; /* ব্যাকগ্রাউন্ড রিমুভ */
        box-shadow: none; /* শ্যাডো রিমুভ */
        border-radius: 0; 
        padding: 15px 0; /* উপরে-নিচে প্যাডিং, ডানে-বামে ০ */
        border-bottom: 1px solid #e0e0e0; /* নিচে হালকা দাগ (সেপারেটর) */
    }

    /* শেষ আইটেম থেকে বর্ডার রিমুভ */
    .card-row-section .row-card:last-child {
        border-bottom: none;
    }

    /* ছবির কন্টেইনার (লিংক) - ডানে যাবে */
    .card-row-section .row-card > a {
        order: 2; /* ছবিকে দ্বিতীয় পজিশনে (ডানে) পাঠানো হলো */
        width: 120px; /* থাম্বনেইলের ফিক্সড উইডথ */
        height: 80px; /* থাম্বনেইলের ফিক্সড হাইট */
        flex-shrink: 0; /* ছবি যেন চ্যাপ্টা না হয় */
    }

    /* ছবির স্টাইল */
    .card-row-section .row-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 5px;
        margin-bottom: 0;
    }

    /* টেক্সট কন্টেন্ট - বামে যাবে */
    .card-row-section .card-text-content {
        order: 1; /* টেক্সটকে প্রথম পজিশনে (বামে) আনা হলো */
        flex: 1; /* বাকি জায়গা নেবে */
        padding: 0;
        text-align: left;
    }

    /* টাইটেল ফন্ট সাইজ */
    .card-row-section .row-card h3 {
        font-size: 16px;
        line-height: 1.4;
        margin: 0;
        padding: 0;
    }

    /* ক্যাটাগরি এবং ডট স্টাইল */
    .card-row-section .card-category {
        margin-bottom: 8px; /* টাইটেল থেকে একটু দূরে */
        display: flex;
        align-items: center;
        gap: 5px;
    }
}

/* Mobile Poll Question Center Alignment */
@media (max-width: 768px) {
    .poll-question {
        text-align: center; /* লেখা মাঝখানে আনবে */
        margin-top: 10px;   /* ইমেজের নিচে একটু স্পেস */
        margin-bottom: 15px; /* অপশনের উপরে একটু স্পেস */
    }
}


/* Responsive Ad Styling */
.ntv-ad-container {
    width: 100%;
    margin: 15px auto;
    text-align: center;
}

/* Default: Show Desktop, Hide Mobile */
.ntv-ad-desktop {
    display: block;
}
.ntv-ad-mobile {
    display: none;
}

/* For Mobile Devices (Max width 768px) */
@media screen and (max-width: 768px) {
    .ntv-ad-desktop {
        display: none !important;
    }
    .ntv-ad-mobile {
        display: block !important;
    }
}