/*
Theme Name: PD Online v3 Professional
Theme URI: https://pdonline.com.bd
Author: PD Online
Description: Professional Bangla News Portal Theme
Version: 3.0
Text Domain: pdonline
*/

/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'SolaimanLipi', 'Noto Sans Bengali', Arial, sans-serif;
    background:#f4f4f4;
    color:#222;
    line-height:1.8;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

ul{
    list-style:none;
}

.container{
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:0 15px;
}

/* =========================
   HEADER
========================= */

.site-header{
    background:#fff;
    border-bottom:4px solid #d60000;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.top-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.site-logo img{
    max-height:90px;
}

.site-title a{
    font-size:34px;
    font-weight:700;
    color:#d60000;
}

.site-tagline{
    font-size:14px;
    color:#777;
}

.header-date{
    font-size:15px;
    font-weight:600;
    color:#444;
}

/* =========================
   ADS
========================= */

.header-ad-space,
.homepage-ad-space,
.category-ad-space,
.article-ad-space,
.footer-ad-space{
    margin:20px 0;
    text-align:center;
    overflow:hidden;
}

/* =========================
   MENU
========================= */

.main-navigation{
    background:#111;
}

.primary-menu{
    display:flex;
    flex-wrap:wrap;
}

.primary-menu > li{
    position:relative;
}

.primary-menu > li > a{
    display:block;
    padding:14px 18px;
    color:#fff;
    font-size:17px;
    font-weight:700;
}

.primary-menu > li:hover > a{
    background:#d60000;
}

.primary-menu .sub-menu{
    display:none;
    position:absolute;
    left:0;
    top:100%;
    background:#222;
    min-width:220px;
    z-index:999;
}

.primary-menu li:hover .sub-menu{
    display:block;
}

.primary-menu .sub-menu a{
    display:block;
    padding:12px 15px;
    color:#fff;
}

/* =========================
   BREAKING NEWS
========================= */

.breaking-news{
    display:flex;
    margin:15px 0;
    background:#fff;
    border:1px solid #ddd;
    overflow:hidden;
}

.breaking-label{
    background:#d60000;
    color:#fff;
    padding:12px 18px;
    font-weight:bold;
    white-space:nowrap;
}

.breaking-content{
    flex:1;
    overflow:hidden;
}

.breaking-scroll{
    white-space:nowrap;
    display:inline-block;
    padding-left:100%;
    animation:breakingTicker 30s linear infinite;
}

.breaking-scroll a{
    margin-right:50px;
    font-weight:600;
}

@keyframes breakingTicker{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-100%);
    }
}

/* =========================
   LAYOUT
========================= */

.main-layout{
    display:flex;
    gap:25px;
    margin-top:20px;
}

.main-content{
    flex:1;
    min-width:0;
}

.sidebar{
    width:340px;
}

/* =========================
   FEATURED NEWS
========================= */

.featured-news-section{
    background:#fff;
    padding:20px;
    margin-bottom:25px;
}

.section-title{
    border-left:5px solid #d60000;
    padding-left:12px;
    margin-bottom:20px;
    font-size:28px;
    font-weight:700;
}

.featured-news-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.featured-news-card{
    border:1px solid #eee;
    overflow:hidden;
}

.featured-news-card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.featured-content{
    padding:15px;
}

.featured-content h3{
    font-size:24px;
    line-height:1.5;
}

/* =========================
   CATEGORY BLOCK
========================= */

.category-news-section{
    background:#fff;
    padding:20px;
    margin-bottom:25px;
}

.category-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    border-bottom:2px solid #eee;
    padding-bottom:10px;
}

.category-header h2{
    font-size:26px;
    color:#d60000;
}

.more-news-btn{
    background:#d60000;
    color:#fff;
    padding:8px 14px;
    border-radius:4px;
}

.category-news-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.news-card{
    border:1px solid #eee;
    overflow:hidden;
}

.news-thumb img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.news-content{
    padding:15px;
}

.news-content h3{
    font-size:22px;
    margin-bottom:10px;
    line-height:1.5;
}

.news-meta{
    font-size:14px;
    color:#777;
    margin-bottom:10px;
}

/* =========================
   SIDEBAR
========================= */

.widget{
    background:#fff;
    margin-bottom:20px;
    padding:20px;
}

.widget-title{
    font-size:22px;
    margin-bottom:15px;
    border-left:4px solid #d60000;
    padding-left:10px;
}

.recent-news-list li,
.popular-news-list li{
    border-bottom:1px solid #eee;
    padding:10px 0;
}

.post-views{
    display:block;
    margin-top:5px;
    color:#777;
    font-size:13px;
}

.ad-placeholder{
    background:#fafafa;
    border:2px dashed #ddd;
    padding:40px 10px;
    text-align:center;
}

/* =========================
   SINGLE POST
========================= */

.single-news-article{
    background:#fff;
    padding:25px;
}

.article-category{
    margin-bottom:10px;
}

.article-category a{
    background:#d60000;
    color:#fff;
    padding:6px 10px;
    border-radius:3px;
}

.single-title{
    font-size:42px;
    line-height:1.4;
    margin-bottom:20px;
}

.article-meta{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    color:#666;
    font-size:14px;
    margin-bottom:20px;
    padding-bottom:15px;
    border-bottom:1px solid #eee;
}

.featured-image{
    margin-bottom:20px;
}

.featured-image img{
    width:100%;
}

.article-content{
    font-size:22px;
    line-height:2;
    text-align: justify;
    word-spacing: 1px;
    letter-spacing: 0.2px;
    color:#222;
}

/* Paragraph spacing */
.article-content p{
    margin-bottom:20px;
}

/* First paragraph (news lead style) */
.article-content p:first-of-type{
    font-size:23px;
    font-weight:500;
}

/* =========================
   SHARE BUTTON
========================= */

.social-share-box{
    margin:25px 0;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
}

.share-label{
    font-weight:bold;
}

.share-btn{
    padding:10px 14px;
    color:#fff;
    border-radius:4px;
    font-size:14px;
}

.facebook{
    background:#1877F2;
}

.whatsapp{
    background:#25D366;
}

.twitter{
    background:#000;
}

.email{
    background:#e74c3c;
}

/* =========================
   RELATED NEWS
========================= */

.related-news-section{
    background:#fff;
    padding:25px;
    margin-top:25px;
}

.related-news-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.related-news-card{
    border:1px solid #eee;
}

.related-news-card h3{
    padding:10px;
    font-size:18px;
    line-height:1.5;
}

/* =========================
   FOOTER
========================= */

.site-footer{
    background:#151515;
    color:#ddd;
    margin-top:40px;
    padding-top:40px;
}

.footer-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.footer-col h4{
    color:#fff;
    margin-bottom:15px;
}

.footer-col p{
    margin-bottom:10px;
}

.footer-col a{
    color:#ddd;
}

.footer-menu-wrap{
    margin:25px 0;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.1);
}

.footer-menu{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
}

.footer-menu a{
    color:#ddd;
}

.editor-info{
    text-align:center;
    margin-top:15px;
}

.footer-bottom{
    text-align:center;
    border-top:1px solid rgba(255,255,255,.1);
    margin-top:20px;
    padding:20px 0;
}

/* =========================
   SEARCH FORM
========================= */

.search-form{
    display:flex;
}

.search-form input[type="search"]{
    flex:1;
    padding:10px;
    border:1px solid #ddd;
}

.search-form input[type="submit"]{
    background:#d60000;
    color:#fff;
    border:none;
    padding:10px 15px;
    cursor:pointer;
}

/* =========================
   MOBILE
========================= */

@media (max-width:991px){

    .main-layout{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

    .featured-news-grid,
    .category-news-grid,
    .related-news-grid{
        grid-template-columns:1fr;
    }

    .footer-row{
        grid-template-columns:1fr;
    }

    .top-header{
        flex-direction:column;
        gap:10px;
        text-align:center;
    }

}

@media (max-width:768px){

    .primary-menu{
        flex-direction:column;
    }

    .single-title{
        font-size:30px;
    }

    .article-content{
        font-size:19px;
    }

    .category-header{
        flex-direction:column;
        gap:10px;
        align-items:flex-start;
    }

    .breaking-news{
        flex-direction:column;
    }

}