:root {
    --primary-gradient: linear-gradient(135deg, #1F453B 0%, #238D45 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #238D45 0%, #1F453B 100%);
    --accent-color: #1F453B;
    --accent-secondary: #f5576c;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-secondary);
}

/* Modern Header */
.modern-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-top {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    font-size: 0.875rem;
}

.header-top .badge {
    background: var(--primary-gradient);
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 15px;
    font-weight: 600;
}

.trending-topics a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.trending-topics a:hover {
    color: var(--accent-color);
}

.trending-topics a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s;
}

.trending-topics a:hover::after {
    width: 100%;
}

.header-main {
    padding: 20px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.3s;
    border-radius: 2px;
}

.main-nav a:hover::before,
.main-nav a.active::before {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-dark);
}

.search-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}


/* Hero Section - Masonry Style */
.hero-masonry {
    padding: 40px 0;
}

.hero-main-card {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s;
}

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

.hero-main-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: white;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    width: fit-content;
}

.hero-main-card h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-main-card p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: white;
    color: var(--text-dark);
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    margin-top: 20px;
}

.btn-modern:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    color: var(--accent-color);
}

/* Side Cards */
.side-card {
    position: relative;
    height: 285px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    margin-bottom: 30px;
}

.side-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.side-card:hover img {
    transform: scale(1.1);
}

.side-card-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.side-card h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}

.side-card-meta {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Modern Section Title */
.section-title-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px 0 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.section-title-modern h2 {
    font-size: 2.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.view-all-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s;
}

.view-all-modern:hover {
    gap: 12px;
}

/* Card Grid Modern */
.modern-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.modern-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.modern-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.modern-card:hover .modern-card-image img {
    transform: scale(1.15) rotate(2deg);
}

.modern-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-card-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.modern-card-title {
    font-size: 1.35rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.modern-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.modern-card-title a:hover {
    color: var(--accent-color);
}

.modern-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.7;
}

.modern-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.publish-date {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Featured Stories Tabs */
.featured-tabs {
    background: white;
    padding: 50px 0;
    margin: 60px 0;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
}

.nav-tabs-modern {
    border: none;
    display: flex;
    gap: 10px;
    padding: 0 50px;
    margin-bottom: 40px;
}

.nav-tabs-modern .nav-link {
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 25px;
    transition: all 0.3s;
}

.nav-tabs-modern .nav-link:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.nav-tabs-modern .nav-link.active {
    background: var(--primary-gradient);
    color: white;
}

/* Large Feature Card */
.large-feature-card {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 0 50px;
}

.large-feature-image {
    flex: 1;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.large-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.large-feature-card:hover .large-feature-image img {
    transform: scale(1.1);
}

.large-feature-content {
    flex: 1;
}

.large-feature-content .category-badge {
    background: var(--primary-gradient);
    color: white;
}

.large-feature-content h3 {
    font-size: 2.5rem;
    margin: 20px 0;
    font-weight: 800;
}

.large-feature-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    background-size: cover;
    background-position: center;
}
.author-avatar.large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.author-details {
    line-height: 1.4;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
}


/* Trending Sidebar Modern */
.trending-modern {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.trending-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--secondary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.trending-header h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.trending-item-modern {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.trending-item-modern:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.trending-item-modern:hover {
    transform: translateX(5px);
}

.trending-rank {
    font-size: 2rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 45px;
}

.trending-item-content h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 700;
}

.trending-item-content h5 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.trending-item-content h5 a:hover {
    color: var(--accent-color);
}

.trending-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Footer Modern */
.footer-modern {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 30px;
    margin-top: 80px;
}

.footer-brand {
    margin-bottom: 25px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 20px 0;
}

.footer-social-modern {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-btn-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-btn-modern:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
    color: white;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: white;
}

.footer-links-modern {
    list-style: none;
    padding: 0;
}

.footer-links-modern li {
    margin-bottom: 12px;
}

.footer-links-modern a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links-modern a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom-modern {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-left: 25px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: white;
}


/* NEW: Article Details Page Styles */
.article-post-container {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.breadcrumb-modern {
    margin-bottom: 30px;
}

.breadcrumb-modern .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
}

.breadcrumb-modern .breadcrumb-item a {
    color: var(--text-light);
    font-weight: 500;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}
.article-header .modern-category {
    position: static;
    display: inline-block;
    margin-bottom: 20px;
}
.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}
.article-summary {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.meta-dot {
    margin: 0 8px;
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content h2, .article-content h3, .article-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}
.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}
.article-content ul, .article-content ol {
    padding-left: 25px;
    margin-bottom: 1.5rem;
}

.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.article-tags .tag-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 5px 5px 0;
    transition: all 0.3s;
}
.article-tags .tag-badge:hover {
    background: var(--accent-color);
    color: white;
}

.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.social-share-buttons span {
    font-weight: 600;
    color: var(--text-light);
}
.social-share-buttons .social-btn-modern {
    background: var(--bg-light);
    color: var(--text-dark);
}

.article-author-box {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}
.author-bio h4 {
    margin-bottom: 5px;
}
.author-bio p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}
.author-bio a {
    font-weight: 600;
    font-size: 0.9rem;
}


/* --- RESPONSIVE SECTION FIXES --- */

/* Feature Highlight (ঢালিউড) Image Container */
.feature-highlight-img-container {
    width: 100%; /* Default to full width on mobile */
    min-height: 200px;
    height: 200px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .feature-highlight-img-container {
        width: 240px; /* Set fixed width on desktop */
        min-height: 100%;
        height: auto; /* Let content determine height */
    }
}

.feature-highlight-img-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* --- MOBILE MENU FIXES --- */

/* Mobile Menu Button - Use d-lg-none class on the button itself instead of this media query */
.mobile-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-light);
    border: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
}

/* Mobile Navigation Styles within Offcanvas */
.mobile-nav a.nav-link {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 0;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.mobile-nav a.nav-link:hover,
.mobile-nav a.nav-link.active {
    color: var(--accent-color);
    background-color: var(--bg-light);
    border-radius: 5px;
    padding-left: 10px;
}


/* Responsive */
@media (max-width: 992px) {

    .hero-main-card {
        height: 500px;
    }

    .hero-main-card h1 {
        font-size: 2rem;
    }

    .large-feature-card {
        flex-direction: column;
    }

    .large-feature-content h3 {
        font-size: 1.8rem;
    }

    .section-title-modern h2 {
        font-size: 1.8rem;
    }

    .article-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .trending-topics {
        display: none;
    }

    .footer-bottom-modern {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-links a {
        margin: 0 15px;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
