
:root {
    --primary-green: #006747; /* Bangladesh Flag Green */
    --primary-red: #F42A41; /* Bangladesh Flag Red */
    --accent-gold: #FFB800;
    --text-dark: #1a1a1a;
    --text-gray: #4a5568;
    --bg-cream: #faf8f5;
    --bg-light: #f7f7f7;
    --border-light: #e5e5e5;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Changed body font to Kalpurush */
    font-family: 'Kalpurush', 'Hind Siliguri', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    /* Headers use Hind Siliguri for modern look */
    font-family: 'Hind Siliguri', 'Kalpurush', sans-serif;
    font-weight: 700;
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ===== HEADER STYLES ===== */
.top-bar {
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: white;
    margin: 0 0.75rem;
    opacity: 0.9;
}

.top-bar a:hover {
    opacity: 1;
}

.top-bar .social-icons a {
    font-size: 1rem;
    margin: 0 0.5rem;
}

/* Main Header */
.main-header {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--primary-red);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: -0.5rem;
}

.header-ad {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-gray);
    text-align: center;
}

/* Navigation */
.main-nav {
    background: white;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 85px;
    z-index: 999;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-red);
    background: var(--bg-cream);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 80%;
}

/* Breaking News Ticker */
.breaking-news {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c92137 100%);
    color: white;
    padding: 0.75rem 0;
    overflow: hidden;
}

.breaking-label {
    background: rgba(0,0,0,0.3);
    padding: 0.4rem 1.2rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    white-space: nowrap;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    margin: 0 1rem;
}

.ticker-content {
    display: inline-block;
    animation: ticker 40s linear infinite;
    white-space: nowrap;
    font-weight: 500;
}

.ticker-content span {
    margin: 0 3rem;
    display: inline-block;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== HERO SECTION (MODIFIED FOR MORE NEWS) ===== */
.hero-section {
    padding: 2rem 0;
    background: var(--bg-cream);
}

/* Featured Main (Left) */
.featured-main {
    position: relative;
    height: 480px; /* Slightly reduced height */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.4s ease;
}

.featured-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-main:hover img {
    transform: scale(1.08);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.category-badge {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.featured-excerpt {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Side Stories (Right) - Now a 6-item Grid/List */
.side-stories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    height: 100%;
}

.side-story-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    height: 155px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

/* Two columns on desktop for side stories */
@media (min-width: 992px) {
    .side-stories-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two columns for 6 stories total */
        gap: 1rem;
    }
    .side-story-card {
        height: 150px;
    }
}

.side-story-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-left-color: var(--primary-red);
}

.side-story-img {
    width: 120px; /* Reduced image size slightly */
    min-width: 120px;
    height: 100%;
    overflow: hidden;
}

.side-story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.side-story-card:hover .side-story-img img {
    transform: scale(1.1);
}

.side-story-content {
    padding: 0.75rem; /* Reduced padding */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.side-story-category {
    font-size: 0.7rem;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.side-story-title {
    font-size: 0.95rem; /* Reduced font size */
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
}

/* ===== SECTION STYLES ===== */
.news-section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-green);
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--primary-red);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green);
    /* Removed icon/emoji styling: display: flex; align-items: center; gap: 0.75rem; */
}

.section-title i {
    display: none; /* Hidden existing icon style for safety */
}

.view-all-btn {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--primary-red);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-red);
    color: white;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    border-color: var(--primary-red);
}

.news-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-red);
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.news-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    flex: 1;
}

.news-title:hover {
    color: var(--primary-red);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.news-meta i {
    color: var(--primary-red);
}

/* Large Featured Card */
.large-featured {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.large-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.large-featured:hover img {
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a3d32 0%, #0d2820 100%);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo .highlight {
    color: var(--primary-red);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-red);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 991px) {
    .featured-main {
        height: 400px;
    }

    .featured-title {
        font-size: 1.8rem;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .nav-menu a {
        padding: 0.75rem 1rem;
    }

    .main-header {
        padding: 1rem 0;
    }

    .logo-text {
        font-size: 2rem;
    }

    .header-ad {
        margin-top: 1rem;
    }

    .side-stories-grid {
        grid-template-columns: 1fr; /* Single column on tablet */
    }
}

@media (max-width: 767px) {
    .logo-text {
        font-size: 1.8rem;
    }

    .featured-main {
        height: 300px; /* Further reduced height for small screens */
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .featured-overlay {
        padding: 1.5rem;
    }

    .side-story-card {
        height: 100px; /* Adjusted side card height for mobile list */
    }

    .side-story-img {
        width: 100px;
        min-width: 100px;
    }

    .side-story-content {
        padding: 0.5rem;
    }

    .side-story-title {
        font-size: 0.85rem;
    }

    .top-bar {
        display: none !important;
    }

    .main-nav {
        top: auto;
        position: relative;
    }

    .breaking-label {
        padding: 0.4rem 0.8rem;
    }

    .ticker-content {
        animation: ticker 30s linear infinite;
    }

    .news-section {
        padding: 2rem 0;
    }
}
