/* =====================================================
   1. BASE / GENERAL
===================================================== */

body{
    font-family: Arial, Helvetica, sans-serif;
    background:#f5f5f5;
    margin:0;
    padding:0;
}

.container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:0 15px;
    box-sizing:border-box;
}

a{
    text-decoration:none;
    color:#000;
}

a:hover{
    color:#007bff;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}


/* =====================================================
   2. BREAKING NEWS
===================================================== */

.breaking-news{
    background:#fff;
    border-left:4px solid red;
    padding:8px 10px;
    font-size:13px;
    margin-bottom:20px;
    overflow:hidden;
}

.breaking-scroll{
    white-space:nowrap;
    display:inline-block;
    animation:scrollNews 20s linear infinite;
}

@keyframes scrollNews{
    from{transform:translateX(100%);}
    to{transform:translateX(-100%);}
}


/* =====================================================
   3. HERO SECTION (STABLE)
===================================================== */

.hero-section{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
    margin:25px 0;
}

.hero-left{
    position:relative;
    height:400px;
    overflow:hidden;
}

.hero-card{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    opacity:0;
    transition:opacity 0.5s ease-in-out;
}

.hero-card.active{
    opacity:1;
    z-index:2;
}

.hero-img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-overlay{
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    padding:12px;
    background:linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.hero-overlay h2{
    font-size:18px;
    color:#fff;
    margin:0;
}

.hero-overlay a{
    color:#fff;
}

.hero-overlay a:hover{
    color:#ffd700;
}

.hero-right{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.side-news{
    display:flex;
    gap:8px;
    background:#fff;
    padding:6px;
    border-radius:4px;
    align-items:center;
}

.side-news img{
    width:110px;
    height:70px;
    object-fit:cover;
}

.side-text a{
    font-size:12.5px;
    font-weight:600;
}


/* =====================================================
   4. CONTENT LAYOUT
===================================================== */

.content-wrapper{
    display:grid;
    grid-template-columns:3fr 1fr;
    gap:25px;
    margin:30px 0 60px;
}

.section-title{
    margin:25px 0 10px;
    font-size:18px;
}


/* =====================================================
   5. NEWS GRID
===================================================== */

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.news-card{
    background:#fff;
    border-radius:6px;
    overflow:hidden;
    box-shadow:0 2px 6px rgba(0,0,0,0.05);
    transition:0.2s ease;
}

.news-card:hover{
    transform:translateY(-3px);
}

.news-card img{
    width:100%;
    height:170px;
    object-fit:cover;
}

.news-card h5{
    font-size:14px;
    padding:8px;
}


/* =====================================================
   6. SIDEBAR
===================================================== */

.sidebar-box{
    background:#fff;
    padding:12px;
    margin-bottom:15px;
    border-radius:4px;
}

.sidebar-box ul{
    list-style:none;
    padding:0;
    margin:0;
}

.sidebar-box ul li{
    margin-bottom:6px;
}


/* =====================================================
   7. TRENDING
===================================================== */

.trending-list li{
    position:relative;
    padding-left:14px;
    margin-bottom:6px;
}

.trending-list li::before{
    content:"➤";
    position:absolute;
    left:0;
    color:#e60000;
}


/* =====================================================
   8. ARTICLE IMAGE
===================================================== */

.article-image img,
.article-container img{
    width:100%;
    max-width:800px;
    margin:auto;
    border-radius:6px;
}


/* =====================================================
   9. FOOTER
===================================================== */

footer{
    clear:both;
    margin-top:40px;
}


/* =====================================================
   10. NAVBAR (RED PROFESSIONAL)
===================================================== */

.main-navbar{
    background:#d40000;
    position:sticky;
    top:0;
    z-index:9999;
}

.nav-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 0;
}

/* LOGO */
.logo-wrap{
    display:flex;
    align-items:center;
    gap:8px;
}

.logo img{
    height:40px;
}

.logo-text{
    font-size:18px;
    font-weight:bold;
    color:#fff;
}

/* MENU */
.nav-menu{
    display:flex;
    gap:18px;
    list-style:none;
    margin:0;
    padding:0;
}

.nav-menu li a{
    font-size:13px;
    color:#fff;
    font-weight:600;
}

.nav-menu li a:hover{
    color:#ffd700;
}

/* SEARCH */
.nav-search{
    display:flex;
    gap:5px;
}

.nav-search input{
    border:none;
    padding:5px;
    border-radius:3px;
}

.nav-search button{
    background:#000;
    color:#fff;
    border:none;
    padding:5px 8px;
    cursor:pointer;
}

/* TOGGLE */
.menu-toggle{
    display:none;
    font-size:24px;
    cursor:pointer;
    color:#fff;
}


/* =====================================================
   11. TABLET
===================================================== */

@media(max-width:992px){

.hero-section{
    grid-template-columns:1.5fr 1fr;
}

.news-grid{
    grid-template-columns:repeat(2,1fr);
}

.logo img{
    height:34px;
}

}


/* =====================================================
   12. MOBILE (FINAL CLEAN FIX)
===================================================== */

@media(max-width:768px){

.container{
    padding:0 10px;
}

.hero-section{
    grid-template-columns:1fr;
}

.hero-left{
    height:220px;
}

.content-wrapper{
    grid-template-columns:1fr;
}

.news-grid{
    grid-template-columns:1fr;
}

/* LOGO */
.logo img{
    height:30px;
}

.logo-text{
    font-size:15px;
}

/* TOGGLE */
@media(max-width:768px){

/* TOGGLE */
.menu-toggle{
    display:block;
    font-size:18px;
    padding:2px 5px;
}

/* MENU BOX */
.nav-menu{
    display:none;
    flex-direction:column;
    position:absolute;
    top:100%;
    left:0;
    width:100%;

    background:#110e0e;

    padding:4px 8px; /* 🔥 VERY SMALL */

    box-shadow:0 4px 8px rgba(0,0,0,0.08);
}

.nav-menu.active{
    display:flex;
}

/* MENU ITEMS */
.nav-menu li{
    padding:2px 0; /* 🔥 VERY TIGHT */
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.nav-menu li:last-child{
    border-bottom:none;
}

/* LINKS */
.nav-menu li a{
    font-size:10.5px;   /* 🔥 SMALL */
    font-weight:500;
    color:#fff;
    line-height:1.2;    /* 🔥 REDUCES HEIGHT */
}

/* HIDE SEARCH */
.nav-search{
    display:none;
}

}

/* =====================================================
   13. COMMENTS DESKTOP AND MOBILE (FINAL CLEAN FIX)
===================================================== */
.comment-wrapper{
    background:#fff;
    padding:20px;
    margin-top:30px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

.comment-title{
    margin-bottom:15px;
    font-size:18px;
}

.comment-form{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:20px;
}

.comment-form input,
.comment-form textarea{
    padding:10px;
    border:1px solid #ddd;
    border-radius:5px;
    font-size:14px;
}

.comment-form textarea{
    min-height:100px;
}

.comment-form button{
    background:#d40000;
    color:#fff;
    border:none;
    padding:10px;
    cursor:pointer;
    border-radius:5px;
}

.comment-box{
    border-top:1px solid #eee;
    padding:12px 0;
}

.admin-reply{
    margin-top:8px;
    background:#f8f8f8;
    padding:10px;
    border-left:3px solid #d40000;
    border-radius:4px;
}
