/*
Theme Name: V56 Clean News (Custom)
Version: 1.0
*/

/* ================= RESET ================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #e6e6e6;
    color: #000;
}
body, html {
    height: 100%;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
}

/* ================= HEADER ================= */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 550;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header {
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: 1px;
}

/* ================= MENU ================= */
.main-menu {
    background: #111;
    padding: 10px 0;
    text-align: center;
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    display: inline-block;
    margin: 0 15px;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.main-menu a:hover {
    color: red;
}

/* ================= TICKER ================= */
.ticker {
    display: flex;
    align-items: center;
    background: red;
    color: #fff;
    overflow: hidden;
}

.ticker-label {
    background: black;
    padding: 8px 12px;
    font-weight: bold;
}

.ticker-wrapper {
    overflow: hidden;
    flex: 1;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    animation: tickerMove 45s linear infinite;
}

.ticker-move span {
    margin-right: 40px;
}

@keyframes tickerMove {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ================= LAYOUT ================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff; /* IMPORTANT */
}
.main-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    width: 100%;
}
.main-content {
    width: 100%;
}

/* ================= SIDEBAR ================= */
.sidebar {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.sidebar-categories li {
    margin-bottom: 8px;
}

.sidebar-categories a {
    text-decoration: none;
    color: #000;
}

.sidebar-categories a:hover {
    color: red;
}

.side-post {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.side-post:last-child {
    border-bottom: none;
}

.side-post img {
    width: 70px;
    height: 50px;
    object-fit: cover;
}

.side-post a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.side-post a:hover {
    color: red;
}

/* ================= FEATURED ================= */
.featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}

.featured-item {
    display: flex;
    flex-direction: column;
}

.featured-1 {
    grid-row: span 2;
}

.featured-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 6px;
}

.featured h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0;
}

.featured a {
    text-decoration: none;
    color: #000;
}

.featured a:hover {
    color: purple;
}

/* ================= SECTION TITLE ================= */
.section-title {
    font-size: 22px;
    margin: 30px 0 15px;
    border-left: 4px solid red;
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================= NEWS GRID ================= */
.news-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.four-grid {
    grid-template-columns: repeat(4, 1fr);
}

.three-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ================= CARD ================= */
.news-card {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card:hover {
    transform: translateY(-5px);
}

.thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.title {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    line-height: 1.4;
}

.title a {
    text-decoration: none;
    color: #000;
}

.title a:hover {
    color: purple;
}

/* ================= PAGINATION ================= */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
}

.pagination .current {
    background: red;
    color: #fff;
}

/* ================= FOOTER ================= */
.footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .featured {
        grid-template-columns: 1fr;
    }

    .featured-1 {
        grid-row: auto;
    }

    .featured-item img {
        height: 200px;
    }

    .four-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .three-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header h1 {
        font-size: 22px;
    }

    .sidebar {
        margin-top: 30px;
    }
}