/* --- Global Styles & Variables --- */
:root {
    --primary-red: #d32f2f;
    --dark-bg: #121212;
    --text-dark: #212121;
    --text-light: #f5f5f5;
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Mukta', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}



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

ul {
    list-style: none;
}

/* --- Header --- */
header .top-bar {
    background-color: #f5f5f5;
    color: var(--text-light);
    padding: 10px 0;
}

header .top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    width: 200px;
    height: auto;
    filter: invert(1);
}

header .header-right {
    color: black;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.3rem;
}

header .social-icons a {
    margin-left: 15px;
}

nav {
    border-bottom: 1px solid var(--border-color);

}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .nav-links {
    display: flex;
    gap: 80px;
    font-weight: bold;
    font-size: 1.3rem;
    padding: 5px 0;
}

nav .nav-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.live-btn {
    background-color: var(--primary-red);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}
.live-btn:hover {
    color: white;
    opacity: 0.9;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Main Content --- */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.article-content h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.meta-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #757575;
    font-size: 0.9rem;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.share-icons a {
    margin-left: 15px;
}

.main-image {
    margin-bottom: 25px;
}
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #424242;
}

.inline-image {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.inline-image img {
    width: 100%;
    height: 40%;
    object-fit: contain;
}
.inline-image2{
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.inline-image2 img {
    width: 40%;
    height: 40%;
}
/* --- Sidebar --- */


.sidebar .widget {
    margin-top: 25px;
}

.widget-title {
    font-size: 1.4rem;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
}

.sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.5;
}

.sidebar ul li::before {
    content: '●';
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 0.8rem;
}

.sidebar ol {
    list-style: none;
    counter-reset: trending-counter;
}

.sidebar ol li {
    padding: 10px 0 10px 35px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    line-height: 1.5;
}

.sidebar ol li::before {
    counter-increment: trending-counter;
    content: counter(trending-counter);
    position: absolute;
    left: 0;
    top: 10px;
    width: 25px;
    height: 25px;
    background-color: #f5f5f5;
    color: var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border-radius: 50%;
}

/* --- Related News --- */
.related-news, .more-news {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin-bottom: 10px;
}

.news-card h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: bold;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding-top: 50px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-col.about p {
    font-size: 0.9rem;
    color: #bdbdbd;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col.links ul li {
    margin-bottom: 10px;
}

.footer-col.links a {
    color: #bdbdbd;
}
.footer-col.links a:hover {
    color: #ffffff;
}

.subscribe form {
    display: flex;
    flex-direction: column;
}

.subscribe input {
    padding: 12px;
    border: 1px solid #616161;
    background: transparent;
    color: white;
    border-radius: 4px;
    margin-bottom: 10px;
}

.subscribe button {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
}

.subscribe button:hover {
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid #424242;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #9e9e9e;
}
.search-menu{
    display: flex;
    align-items: center;
    gap: 10px;
}
/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .article-content h1 {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .header-right span{
        display: none;
    }
    .container{
        width: 100%;
    }
    nav .nav-links {
        display: none; /* In a real project, this would be a JS-powered dropdown */
    }

    .menu-toggle {
        display: block;
    }
    .nav-right {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .article-content h1 {
        font-size: 1.8rem;
    }
    .meta-data {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .share-icons a {
        margin-left: 0;
        margin-right: 15px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
}