@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --primary-blue: #1e3a8a;
    --nav-blue: #0ea5e9;
    --topbar-blue: #3b82f6;
    --ticker-cyan: #06b6d4;
    --badge-green: #22c55e;
    --bg-color: #f1f5f9;
    --surface-color: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e2e8f0;
    --font-sans: 'Mukta', 'Roboto', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
}

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

/* Topbar */
.topbar {
    background-color: var(--topbar-blue);
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
}

/* Header */
header {
    background-color: var(--surface-color);
    text-align: center;
    padding: 2rem 5%;
}

.logo-main {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 2px;
}
.logo-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Navbar */
.navbar {
    background-color: var(--nav-blue);
    padding: 0 5%;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li a {
    color: #111;
    font-weight: 700;
    padding: 1rem 1.2rem;
    display: block;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.nav-links li a:hover {
    background: rgba(255,255,255,0.2);
}
.nav-links li a i {
    margin-right: 5px;
    color: #1e3a8a;
}

/* Ticker */
.ticker-wrapper {
    background: var(--surface-color);
    margin: 1rem 5%;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 50px;
    overflow: hidden;
}
.ticker-label {
    background-color: var(--ticker-cyan);
    color: white;
    font-weight: bold;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    z-index: 2;
    position: relative;
}
.ticker-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    white-space: nowrap;
    overflow: hidden;
}
.ticker-item {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.ticker-item img {
    width: 40px;
    height: 30px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 2px;
}

/* Main Layout */
.main-container {
    max-width: 1300px;
    margin: 1.5rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 2rem;
}

/* Section Titles */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}
.section-tabs {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.section-tabs span {
    margin-left: 1rem;
    cursor: pointer;
}
.section-tabs span.active {
    color: var(--nav-blue);
}

/* Popular Grid (Left) */
.popular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card-large {
    display: flex;
    flex-direction: column;
}
.img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}
.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-card-large:hover .img-wrapper img {
    transform: scale(1.05);
}
.cat-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--badge-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    text-transform: uppercase;
}

.news-title-large {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.news-title-large a:hover {
    color: var(--nav-blue);
}

.meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
}
.meta i {
    margin-right: 4px;
}
.desc {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

/* List News (Left Bottom) */
.list-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.news-item-small {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.news-item-small .img-wrapper {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    margin-bottom: 0;
}
.news-item-small .cat-badge {
    font-size: 0.65rem;
    padding: 2px 4px;
    bottom: 4px;
    left: 4px;
}
.news-item-small-content {
    flex: 1;
}
.news-item-small-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

/* Sidebar (Right) */
.sidebar {
    background: var(--surface-color);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sidebar .section-title {
    border-bottom: 2px solid #000;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.latest-card .img-wrapper {
    height: 100px;
    margin-bottom: 0.5rem;
}
.latest-card .news-title-small {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.ad-banner {
    margin-top: 2rem;
    background: #f8e71c;
    text-align: center;
    padding: 3rem 1rem;
    font-weight: bold;
    border: 1px dashed #ccc;
}

/* Horizontal Carousel Section */
.missed-section {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 1.5rem 5%;
    background: var(--surface-color);
}
.missed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.missed-card .img-wrapper {
    height: 160px;
}
.missed-card .news-title-small {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}
.missed-card .meta {
    justify-content: center;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background-color: #0b1120;
    color: #d1d5db;
    padding: 4rem 5% 2rem;
    margin-top: 3rem;
}
.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 2rem;
}
.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #1f2937;
    padding-bottom: 0.5rem;
}
.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: #9ca3af;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--nav-blue);
}
.footer-links a i {
    color: var(--nav-blue);
    margin-right: 8px;
    font-size: 0.7rem;
}
.copyright {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .missed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-links {
        display: none; /* In a real app, add a hamburger menu */
    }
}
@media (max-width: 768px) {
    .popular-grid, .list-news-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* Post Page Styles */
.breadcrumbs {
    max-width: 1300px;
    margin: 1rem auto;
    padding: 0 5%;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumbs a {
    color: var(--nav-blue);
}

.post-box {
    background: var(--surface-color);
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cat-badge-static {
    display: inline-block;
    background: var(--badge-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.post-title-large {
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 700;
}

.post-full-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.post-content-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 3rem;
}

.share-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.8; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.facebook { background: #3b5998; }
.share-btn.telegram { background: #0088cc; }
.share-btn.x { background: #000000; }

/* Comments Form */
.comment-form {
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.btn-submit {
    background: black;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* Comments List */
.comment-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1.5rem;
}
.comment-avatar {
    width: 50px;
    height: 50px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.comment-author {
    font-weight: bold;
    color: #111;
}
.comment-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}
.comment-text {
    font-size: 0.95rem;
    color: #4b5563;
}

/* Sidebar Specific */
.mv-hero {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}
.mv-hero .img-wrapper {
    height: 200px;
}
.cat-badge-text {
    color: var(--badge-green);
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.mv-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
.mv-number {
    font-size: 2rem;
    font-weight: bold;
    color: #cbd5e1;
    background: #f8fafc;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}
.sidebar-recent-list {
    list-style: none;
}
.sidebar-recent-list li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 1rem;
}
.sidebar-recent-list li:last-child {
    border-bottom: none;
}
.sidebar-recent-list i {
    color: var(--nav-blue);
    font-size: 0.8rem;
    margin-right: 5px;
}


/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface-color);
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    border-top: 3px solid var(--primary-blue);
}
.dropdown-content a {
    color: var(--text-main) !important;
    padding: 12px 16px !important;
    text-decoration: none;
    display: block !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    border-bottom: 1px solid #f1f5f9;
}
.dropdown-content a:last-child {
    border-bottom: none;
}
.dropdown-content a:hover {
    background-color: #f8fafc !important;
    color: var(--primary-blue) !important;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
}
body.dark-mode .section-title { color: #f8fafc; border-color: #f8fafc; }
body.dark-mode .nav-links li a { color: #f8fafc; }
body.dark-mode .dropdown-content { background-color: #1e293b; }
body.dark-mode .dropdown-content a { color: #f8fafc !important; border-bottom: 1px solid #334155; }
body.dark-mode .dropdown-content a:hover { background-color: #0f172a !important; }
body.dark-mode .mv-number { background-color: #0f172a; color: #475569; }
body.dark-mode .post-content-body { color: #cbd5e1; }
body.dark-mode .share-box { background-color: #0f172a; }
body.dark-mode .form-group input, body.dark-mode .form-group textarea { background-color: #0f172a; color: #f8fafc; border-color: #334155; }
body.dark-mode .comment-item { border-color: #334155; }
body.dark-mode .comment-author { color: #f8fafc; }
body.dark-mode .comment-text { color: #cbd5e1; }
body.dark-mode .sidebar-recent-list li { border-color: #334155; }
body.dark-mode .ad-banner { background-color: #334155; color: #94a3b8; border-color: #475569; }
body.dark-mode .meta { color: #94a3b8; }
body.dark-mode .mv-hero { border-color: #334155; }

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 1rem;
    outline: none;
}
