/* ===================================
   RESET
=================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

/* ===================================
   BODY
=================================== */

body{
    font-family:'Hind', sans-serif;
    background:#f5f5f5;
    color:#222;
    line-height:1.6;
    transition:0.3s;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
}

ul{
    list-style:none;
}

button{
    font-family:inherit;
}

.seo-hidden{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
}

/* ===================================
   HEADER
=================================== */

header{
    width:100%;
    background:#ffffff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 6%;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    position:sticky;
    top:0;
    z-index:1000;
}

/* ===================================
   LOGO
=================================== */

.logo a{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    width:65px;
    height:65px;
    object-fit:contain;
}

.logo span{
    font-size:30px;
    font-weight:700;
    color:#E63946;
}

/* ===================================
   SEARCH BOX
=================================== */

.search-box{
    flex:1;
    display:flex;
    justify-content:center;
    padding:0 20px;
}

.search-box input{
    width:100%;
    max-width:350px;
    padding:12px 15px;
    border:1px solid #cccccc;
    border-radius:8px;
    outline:none;
    font-size:16px;
}

button{
    border-color:black;
    background:blue;
    color:white;
    width: 40px;
}

button:hover{
    background:#b71c2b;
    border-color:#b71c2b;
}


/* ===================================
   DATE & TIME
=================================== */

.date-time{

    display:flex;
    align-items:center;
    justify-content:center;

    white-space:nowrap;

    font-size:15px;

    font-weight:600;

    color:#1D3557;

    min-width:260px;

}

/* ===================================
   BUTTONS
=================================== */

.header-buttons{
    display:flex;
    align-items:center;
    gap:10px;
}

.read-btn{
    display:inline-block;
    padding:12px 25px;
    background:#E63946;
    color:#ffffff;
    text-decoration:none;
    border-radius:8px;
    font-size:18px;
    font-weight:600;
    transition:0.3s;
}

.read-btn:hover{
    background:#b71c2b;
    transform:translateY(-3px);
}



.primary{
    background:#E63946;
    color:white;
}

.primary:hover{
    background:#b71c2b;
}

#themeBtn,
#menuBtn{
    border:none;
    background:none;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
}

#themeBtn:hover{
    transform:rotate(180deg);
}

#menuBtn{
    display:none;
}

/* ===================================
   NAVIGATION
=================================== */

nav{
    width:100%;
    background:#1D3557;
}

nav ul{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    list-style:none;
    margin:0;
    padding:0;
}

nav ul li{
    margin:0;
   
 }

nav ul li a{
    display:block;
    color:#fff;
    padding:15px 16px;
    text-decoration:none;
    font-weight:600;
    transition:all .3s ease;
    border-radius:5px;
}

nav ul li a:hover{
    background:#E63946;
    color:#fff;
}


/*===================================
   BREAKING NEWS
=================================== */

.breaking-news{
    display:flex;
    align-items:center;
    background:#fff;
    padding:12px 6%;
    border-top:1px solid #ddd;
    border-bottom:1px solid #ddd;
    gap:20px;
}

.breaking-label{
    background:#E63946;
    color:#fff;
    padding:8px 15px;
    border-radius:5px;
    font-weight:700;
    white-space:nowrap;
}

#breakingText{
    flex:1;
    color:#222;
    font-weight:600;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    transition:opacity .4s ease;
}

/* ===================================
   NEWSLETTER
=================================== */

.newsletter{
    background:#1D3557;
    color:white;
    text-align:center;
    padding:60px 20px;
}

.newsletter h2{
    margin-bottom:15px;
}

.newsletter p{
    margin-bottom:20px;
}

.newsletter-form{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
}

.newsletter-form input{
    width:320px;
    padding:12px;
    border:none;
    border-radius:8px;
    outline:none;
}

.newsletter-form button{
    padding:12px 22px;
    border:none;
    border-radius:8px;
    background:#E63946;
    color:white;
    cursor:pointer;
    transition:.3s;
}

.newsletter-form button:hover{
    background:#b71c2b;
}

.membership{
    width: 100px;
}

/* ===================================
   FOOTER
=================================== */

footer{
    background:#1D3557;
    color:white;
    text-align:center;
    padding:25px 15px;
}

.footer-links{
    margin-top:15px;
}

.footer-links a{
    color:white;
    margin:0 10px;
    transition:.3s;
}

.footer-links a:hover{
    color:#FFD166;
}

/* ===================================
   DARK MODE
=================================== */

.dark{
    background:#121212;
    color:white;
}

.dark header{
    background:#1f1f1f;
}

.dark nav{
    background:#000;
}

.dark .breaking-news{
    background:#1f1f1f;
}

.dark #breakingText{
    color:white;
}

.dark .date-time{
    color:white;
}

.dark .search-box input{
    background:#2d2d2d;
    color:white;
    border:1px solid #555;
}

.dark .newsletter{
    background:#000;
}

.dark footer{
    background:#000;
}

/* ===================================
   TEXT SELECTION
=================================== */

::selection{
    background:#E63946;
    color:white;
}

/*=========================================
        BREAKING NEWS
=========================================*/

.breaking-news{

    display:flex;

    align-items:center;

    background:#ffffff;

    border-top:1px solid #ddd;

    border-bottom:1px solid #ddd;

    padding:15px 8%;

}

.breaking-label{

    background:#E63946;

    color:#fff;

    padding:8px 15px;

    border-radius:5px;

    font-weight:bold;

    margin-right:20px;

    white-space:nowrap;

}

#breakingText{

    font-size:17px;

    font-weight:600;

    color:#222;

    transition:opacity .5s;

}

.dark .breaking-news{

    background:#1f1f1f;

}

.dark #breakingText{

    color:#ffffff;

}

/*=========================================
        SEARCH BOX
=========================================*/

.search-box{

    position:relative;

}

.search-dropdown{

    position:absolute;

    top:105%;

    left:0;

    width:100%;

    background:#ffffff;

    border-radius:8px;

    box-shadow:0 5px 15px rgba(0,0,0,.15);

    display:none;

    z-index:1000;

    overflow:hidden;

}

.search-item{

    display:block;

    padding:12px 15px;

    color:#222;

    border-bottom:1px solid #eeeeee;

    transition:.3s;

}

.search-item:hover{

    background:#f2f2f2;

}

.search-item h4{

    font-size:16px;

    margin-bottom:4px;

}

.search-item p{

    font-size:13px;

    color:#777;

}

.no-result{

    padding:15px;

    text-align:center;

    color:red;

}

.dark #searchResults{

    background:#1f1f1f;

}

.dark .search-item{

    color:white;

    border-color:#333;

}

.dark .search-item:hover{

    background:#333;

}

/* ==========================
   PAGE CONTAINER
========================== */

.page-container{

    width:90%;
    max-width:1000px;

    margin:50px auto;

    background:#ffffff;

    padding:40px;

    border-radius:10px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.page-container h1{

    color:#1D3557;

    margin-bottom:25px;

    font-size:38px;

}

.page-container h2{

    color:#E63946;

    margin-top:35px;

    margin-bottom:15px;

}

.page-container p{

    font-size:18px;

    line-height:1.9;

    margin-bottom:15px;

}

.page-container ul{

    margin-left:25px;

}

.page-container li{

    margin-bottom:10px;

    font-size:18px;

}

/* Dark Mode */

.dark .page-container{

    background:#1f1f1f;

}

.dark .page-container h1{

    color:#ffffff;

}

.dark .page-container p,

.dark .page-container li{

    color:#dddddd;

}

/* =====================================
   404 PAGE
===================================== */

.error-page{

    text-align:center;

    padding:80px 20px;

}

.error-code{

    font-size:120px;

    color:#E63946;

    margin-bottom:20px;

    font-weight:bold;

}

.error-page h2{

    color:#1D3557;

    margin-bottom:20px;

    font-size:36px;

}

.error-page p{

    font-size:20px;

    color:#555;

    margin-bottom:30px;

}

.error-image{

    width:100%;

    max-width:350px;

    margin:30px auto;

    display:block;

}

/* Dark Mode */

.dark .error-page h2{

    color:#ffffff;

}

.dark .error-page p{

    color:#dddddd;

}

/* Responsive */

@media(max-width:768px){

.error-code{

font-size:80px;

}

.error-page h2{

font-size:28px;

}

.error-page p{

font-size:18px;

}

.error-image{

max-width:250px;

}

}

/* ===================================
   Responsive Images
=================================== */

.news-card img,
.sidebar-news img,
.category-card img,
.related-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

/* Sidebar */

.sidebar-news img{
    width:90px;
    height:70px;
    flex-shrink:0;
}

/* Related */

.related-card img{
    height:180px;
}

/* Category */

.category-card img{
    height:220px;
}
