*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --header-bg:#0e0e0f;
    --header-color:#0e0e0f;

    --nav-bg:#2c3138;
    --nav-color:#ffffff;

    --icon-color:#ffffff;

}

body.dark-mode{

    --header-bg:#111;
    --header-color:#fff;

    --nav-bg:#1a1a1a;
    --nav-color:#fff;

    --icon-color:#fff;

}

/* =========================
SITE WRAP
========================= */

.site-wrap{
    position:relative;
    max-width:1420px;
    margin:auto;
}

body{
    font-family:Arial,sans-serif;
    background:#fff;
    color:#111;
    line-height:1.6;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

/* Container */

.container{
    width:100%;
    max-width:1056px;
    margin:auto;
    padding:0 15px;
}

/* =========================
HEADER
========================= */

.site-header{
    position:sticky;
    top:0;

    z-index:9999;
    
    background:var(--header-bg);
    color:var(--header-color);

    width:100%;

}

/* TOPBAR */

.topbar{
    padding:14px 0;
}

/* =========================
HEADER LAYOUT
========================= */

.topbar-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:20px;
}

/* SEARCH */

.header-search{
    flex:1;
    max-width:320px;
}

.header-search form{
    position:relative;
}

.header-search input{
    width:100%;

    height:44px;

    border:none;
    border-radius:10px;

    background:#5b5b5b;

    padding:0 50px 0 20px;

    font-size:14px;

    outline:none;
}

.header-search button{
    position:absolute;

    top:0;
    right:0;

    width:44px;
    height:44px;

    border:none;
    background:none;

    cursor:pointer;
}

/* RIGHT */

.header-right{
    display:flex;
    align-items:center;
    gap:14px;
}

/* =========================
THEME TOGGLE
========================= */

.theme-toggle{
    position:relative;
}

/* BUTTON */

.theme-toggle-btn{
    width:42px;
    height:42px;

    border:none;
    border-radius:10px;

    background:transparent;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    color:var(--icon-color);
}

/* SVG */

.theme-toggle-btn svg{
    width:32px;
    height:32px;
}

/* =========================
DROPDOWN
========================= */

.theme-dropdown{
    position:absolute;

    top:52px;
    right:0;

    width:180px;

    background:#fff;

    border-radius:16px;

    padding:8px;

    box-shadow:0 10px 30px rgba(0,0,0,.12);

    opacity:0;
    visibility:hidden;

    transform:translateY(10px);

    transition:.2s ease;

    z-index:9999;
}

/* ACTIVE */

.theme-dropdown.active{
    opacity:1;
    visibility:visible;

    transform:translateY(0);
}

/* OPTION */

.theme-option{
    width:100%;

    height:48px;

    border:none;
    border-radius:12px;

    background:transparent;

    display:flex;
    align-items:center;
    gap:12px;

    padding:0 14px;

    cursor:pointer;

    color:#111;

    font-size:14px;
    font-weight:600;
}

/* SVG */

.theme-option svg{
    width:18px;
    height:18px;
}

/* HOVER */

.theme-option:hover{
    background:#f5f5f5;
}

/* ACTIVE */

.theme-option.active{
    background:#f1f1f1;
}

/* =========================
DARK MODE
========================= */

body.dark-mode{

    background:#111;
    color:#fff;

    --header-bg:#111;
    --header-color:#fff;

    --nav-bg:#1a1a1a;
    --nav-color:#fff;

    --icon-color:#fff;

}

/* ACCOUNT */

.account-btn{
    display:flex;
    align-items:center;
    justify-content:center;

    height:42px;

    padding:0 18px;

    background:#c40000;

    color:#fff;

    border-radius:10px;

    text-decoration:none;

    font-size:14px;
    font-weight:700;
}

/* HIDE DESKTOP */

.menu-toggle{
    display:none;
}

/* =========================
MOBILE
========================= */

@media(max-width:768px){
    
    .header-right{
        gap:1px;
    }

    .desktop-search{
        display:none;
    }

    .account-btn{
        display:none;
    }

    .menu-toggle{
        display:flex;

        align-items:center;
        justify-content:center;

        width:42px;
        height:42px;

        border:none;
        border-radius:10px;

        background:#ffffff14;

        color:#fff;

        font-size:18px;

        cursor:pointer;
    }

}

/* NAVIGATION */

.main-nav{
    background:var(--nav-bg);
}

.main-nav ul{
    display:flex;
    align-items:center;
    gap:25px;

    list-style:none;

    overflow-x:auto;
    white-space:nowrap;

    padding:14px 0;
}

.main-nav ul::-webkit-scrollbar{
    display:none;
}

.main-nav li{
    flex:none;
}

.main-nav a{
    color:var(--nav-color);
    text-decoration:none;
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
}

/* MOBILE */

@media(max-width:768px){

    .site-logo a{
        font-size:24px;
    }

    .main-nav ul{
        gap:18px;
    }

}

/* =========================
MOBILE MENU
========================= */

.mobile-menu{
    position:fixed;

    top:0;
    right:-100%;

    width:100%;
    max-width:380px;

    height:100vh;

    background:#fff;

    z-index:99999;

    transition:.3s ease;

    overflow-y:auto;

    -webkit-overflow-scrolling:touch;
}

.mobile-menu.active{
    right:0;
}

/* TOP */

.mobile-menu-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#0e0e0f;
    padding: 15px;
}

.mobile-close{
    width:40px;
    height:30px;

    border:none;
    border-radius:50%;

    background:#999999;

    font-size:20px;

    cursor:pointer;
}

/* =========================
MOBILE SEARCH
========================= */

.mobile-search{
    margin-top: 15px;
    padding:0 10px 10px;
}

/* WRAPPER */

.mobile-search-wrap{
    position:relative;
}

/* INPUT */

.mobile-search-wrap input{
    width:100%;

    height:48px;

    border:none;
    border-radius:14px;

    background:#f5f5f5;

    padding:0 10px 0 16px;

    font-size:14px;

    outline:none;
}

/* FOCUS */

.mobile-search-wrap input:focus{
    background:#fff;

    border:1px solid #ddd;
}

/* BUTTON */

.mobile-search-wrap button{
    position:absolute;

    top:50%;
    right:16px;

    transform:translateY(-50%);

    border:none;

    background:none;

    padding:0;

    cursor:pointer;

    font-size:18px;

    color:#666;
}

/* GRID MENU */

.mobile-menu-grid ul{
    display:grid;

    grid-template-columns:1fr 1fr;

    gap:12px;

    padding:0 20px 20px;

    list-style:none;
}

.mobile-menu-grid a{
    display:block;

    background:#f5f5f5;

    padding:14px;

    border-radius:12px;

    text-decoration:none;

    color:#111;

    font-size:14px;
    font-weight:700;
}

/* PAGE MENU */

.mobile-page-menu ul{
    list-style:none;

    padding:0 20px 40px;
}

.mobile-page-menu li{
    border-bottom:1px solid #eee;
}

.mobile-page-menu a{
    display:block;

    padding:16px 0;

    text-decoration:none;

    color:#111;
}

/* LOCK BODY */

body.menu-open{
    overflow:hidden;
}

/* =========================
MOBILE MENU STICKY TOP
========================= */

.mobile-menu-top-wrap{
    position:sticky;

    top:0;

    z-index:20;

    background:#fff;

    padding-bottom:15px;

    border-bottom:1px solid #eee;
}

.menu-overlay{
    position:fixed;

    inset:0;

    background:rgba(0,0,0,.5);

    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:9990;
}

.menu-overlay.active{
    opacity:1;
    visibility:visible;
}

/* MOBILE MENU LIST */

.mobile-menu ul{
    list-style:none;
}

.mobile-menu li{
    border-bottom:1px solid #eee;
}

.mobile-menu a{
    display:block;

    padding:14px 0;

    color:#111;
    text-decoration:none;

    font-weight:600;
}

/* Content */

.main-content{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
    margin-top:20px;
}

/* Article */

.post-item{
    margin-bottom:30px;
}

.post-item img{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    border-radius:10px;
}

/* Sidebar */

.sidebar{
    background:#f5f5f5;
    padding:20px;
}

.sidebar-post{
    padding:15px 0;
    border-bottom:1px solid #ddd;
}

.sidebar-post a{
    color:#111;
    text-decoration:none;
    font-weight:bold;
    line-height:1.5;
}

/* Footer */

.site-footer{
    margin-top:50px;
    background:#111;
    color:#fff;
    padding:30px 0;
}


/* BREAKING NEWS */

.breaking-news{
    display:flex;
    align-items:center;
    gap:15px;
    background:#f5f5f5;
    padding:12px;
    margin:20px 0;
    overflow:hidden;
}

.breaking-label{
    background:#c40000;
    color:#fff;
    font-size:12px;
    font-weight:bold;
    padding:6px 10px;
    border-radius:3px;
}

.breaking-items{
    display:flex;
    gap:20px;
    overflow:auto;
    white-space:nowrap;
}

.breaking-items a{
    color:#111;
    text-decoration:none;
    font-size:14px;
}

/* HOMEPAGE GRID */

.homepage-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
}

/* HEADLINE */

.headline-post{
    position:relative;
}

.headline-post img{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    border-radius:15px;
}

.headline-content{
    padding:20px 0;
}

.headline-content h1{
    font-weight:700;
    font-size:36px;
    line-height:1.3;
    margin-bottom:10px;
}

.headline-content a{
    color:#111;
    text-decoration:none;
}

/* SECTION */

.section-title{
    margin:40px 0 20px;
    font-size:24px;
    border-left:5px solid #c40000;
    padding-left:10px;
}

.news-card a:hover,
.sidebar-post a:hover,
.headline-content a:hover{
    color:#c40000;
}

/* NEWS GRID */

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.news-card img{
    width:100%;
    border-radius:12px;
    aspect-ratio:16/9;
    object-fit:cover;
}

.news-card h3{
    margin-top:10px;
    font-size:18px;
    line-height:1.5;
}

.news-card a{
    text-decoration:none;
    color:#111;
}

a{
    transition:0.2s ease;
}

h1,h2,h3,h4,h5{
    line-height:1.4;
}



/* MOBILE */

@media(max-width:768px){
    
    .main-content{
        grid-template-columns:1fr;
    }

    .main-nav ul{
        overflow-x:auto;
        white-space:nowrap;
    }

    .homepage-grid{
        grid-template-columns:1fr;
    }

    .headline-content h1{
        font-size:28px;
    }

    .news-grid{
        grid-template-columns:1fr;
    }

}

/* =========================
FLOATING ADS
========================= */

.floating-ads{
    position:fixed;

    top:120px;

    width:160px;
    height:100vh;

    background:#111;

    z-index:998;

    display:none;
}

/* LEFT */

.floating-left{
    left:0;
}

/* RIGHT */

.floating-right{
    right:0;
}

/* INNER */

.floating-inner{
    position:sticky;

    top:120px;

    width:160px;

    margin:auto;

    min-height:600px;

    background:#f1f1f1;

    overflow:hidden;

    border-radius:12px;

}

/* ADS */

.floating-inner img,
.floating-inner iframe{
    width:100%;
    display:block;
}

/* SHOW ONLY DESKTOP */

@media(min-width:1280px){

    .floating-ads{
        display:flex;
        justify-content:center;
    }

}

/* =========================
TOP BANNER
========================= */

.top-banner{
    padding:20px 0;
}

.desktop-banner{
    display:block;
    text-align:center;
}

.mobile-banner{
    display:none;
    text-align:center;
}

/* MOBILE */

@media(max-width:768px){

    .desktop-banner{
        display:none;
    }

    .mobile-banner{
        display:block;
    }

}

/* =========================
PARALLAX MOBILE ADS
========================= */

.dr-parallax-mobile-ads{
    display:none;
}

/* MOBILE */

@media(max-width:768px){

    .dr-parallax-mobile-ads{
    display:block;

    position:relative;

    width:100%;
    height:540px;

    background:#111;

    z-index:1;
    }

    /* STICKY */

.dr-parallax-mobile-inner{
    position:sticky;

    top:70px;

    width:100%;
    height:500px;

    display:flex;
    align-items:center;
    justify-content:center;
}

    /* WRAPPER */

    .dr-parallax-mobile-box-wrap{
        position:relative;

        width:320px;
        max-width:100%;

        padding:0 10px;
    }

    /* ADS BOX */

    .dr-parallax-mobile-box{
        width:320px;
        max-width:100%;

        min-height:480px;

        background:#f1f1f1;

        overflow:hidden;

    }

    /* IMAGE */

    .dr-parallax-mobile-box img{
        width:100%;
        height:480px;

        object-fit:cover;

        display:block;
    }

    /* IFRAME */

    .dr-parallax-mobile-box iframe{
        width:100%;
    }

    /* TEXT */

    .dr-parallax-mobile-text{
        color:#fff;
        margin-top:-60px;

        text-align:center;

        font-size:14px;
        font-weight:700;

        padding:0 10px 10px;

        position:relative;
    }

    /* CLOSE */

    .dr-parallax-mobile-close{
        position:absolute;

        top:-66px;
        right:0;

        width:34px;
        height:34px;

        border:none;
        border-radius:50%;

        background:rgba(255,255,255,.15);

        color:#fff;

        font-size:26px;
        line-height:38px;

        cursor:pointer;

        z-index:10;
    }
    
    .site-wrap{
    position:relative;
    z-index:2;
    background:#fff;
    }
    
/* =========================
MENU TOGGLE
========================= */

.menu-toggle{
    display:none;

    width:42px;
    height:42px;

    padding:0;

    border:none;
    border-radius:10px;

    background:transparent;

    color:#111;

    cursor:pointer;
}

/* SVG */

.menu-toggle svg{
    width:32px;
    height:32px;
    
    color:var(--icon-color);

    display:block;

    margin:auto;
}

/* MOBILE */

@media(max-width:768px){

    .menu-toggle{
        display:flex;

        align-items:center;
        justify-content:center;
    }

}

/* =========================
MOBILE ACCOUNT
========================= */

.mobile-account{
    padding:20px;
}

/* BUTTON */

.mobile-account-btn{
    width:100%;
    height:48px;

    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    text-decoration:none;

    font-size:15px;
    font-weight:700;

    padding:0 20px;
}

/* LOGIN */

.mobile-account .login-btn{
    background:#f5f5f5;
    color:#111;
}

/* WRITE */

.mobile-account .write-btn{
    background:#c40000;
    color:#fff;
}
}