* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== Google Fonts (Inter + Noto Sans Bengali) ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&family=Noto+Sans+Bengali:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', 'Noto Sans Bengali', 'Segoe UI', 'Hind Siliguri', system-ui, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.2s;
}

/* Theme Light */
body.theme-light {
    background: #f4f7fc;
    color: #1e2a3a;
}
body.theme-light .main-header {
    background: #0A294E;
    border-bottom: 3px solid #f5a623;
}
body.theme-light .main-header a,
body.theme-light .main-nav a {
    color: #fff;
}
body.theme-light .breaking-news {
    background: transparent;
    border-bottom: none;
}
body.theme-light .category-card {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
body.theme-light .category-list li {
    border-bottom-color: #e2e8f0;
}
body.theme-light .latest-card {
    background: #fff;
}
body.theme-light .btn-seemore {
    background: #f5a623;
    color: #1e2a3a;
}
body.theme-light .btn-seemore:hover {
    background: #e09515;
}
body.theme-light footer {
    background: #0A294E;
    color: #cbd5e6;
}
body.theme-light .category-tag {
    background: #f5a623;
    color: #1e2a3a;
}
body.theme-light .category-more {
    background: #f5a62320;
    color: #f5a623;
}
body.theme-light .category-more:hover {
    background: #f5a623;
    color: #1e2a3a;
}
body.theme-light .job-card,
body.theme-light .study-card,
body.theme-light .tool-card {
    background: #f3f6fc;
    border: 1px solid #e0e7f0;
    color: #1e2a3a;
}
body.theme-light .job-card:hover,
body.theme-light .study-card:hover,
body.theme-light .tool-card:hover {
    background: #fff;
    border-color: #f5a623;
}

/* Theme Dark */
body.theme-dark {
    background: #121826;
    color: #e2e8f0;
}
body.theme-dark .main-header {
    background: #0A294E;
    border-bottom: 3px solid #f5a623;
}
body.theme-dark .main-nav a {
    color: #e2e8f0;
}
body.theme-dark .breaking-news {
    background: transparent;
    border-bottom: none;
}
body.theme-dark .category-card {
    background: #1e2836;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
body.theme-dark .category-list li {
    border-bottom-color: #2a3645;
}
body.theme-dark .latest-card {
    background: #1e2836;
}
body.theme-dark .btn-seemore {
    background: #f5a623;
    color: #121826;
}
body.theme-dark footer {
    background: #0A294E;
    color: #8e9aaf;
}
body.theme-dark .category-tag {
    background: #f5a623;
    color: #121826;
}
body.theme-dark .category-more {
    background: #f5a62320;
    color: #f5a623;
}
body.theme-dark .category-more:hover {
    background: #f5a623;
    color: #121826;
}
body.theme-dark .job-card,
body.theme-dark .study-card,
body.theme-dark .tool-card {
    background: #232b38;
    border: 1px solid #334155;
    color: #e2e8f0;
}
body.theme-dark .job-card:hover,
body.theme-dark .study-card:hover,
body.theme-dark .tool-card:hover {
    background: #2a3548;
    border-color: #f5a623;
}

/* Container */
.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.8rem 0;
}

/* Header */
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
}
.logo-text {
    font-size: 28px;
    font-weight: 700;
    margin-left: 10px;
    color: inherit;
}
.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}
.theme-switch {
    display: flex;
    gap: 5px;
}
.theme-icon {
    font-size: 1.2rem;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 30px;
    opacity: 0.7;
    color: #fff;
}
.theme-icon.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}
.lang-switch {
    display: flex;
    gap: 5px;
    align-items: center;
}
.lang-switch a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 30px;
}
.lang-switch a.active {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
}
.lang-switch span {
    color: rgba(255, 255, 255, 0.5);
}

/* User Menu */
.user-menu {
    position: relative;
    display: inline-block;
}
.user-menu > a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f5a623;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 5px;
}
.user-menu:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
}
body.theme-dark .dropdown-menu {
    background: #1e2836;
    border: 1px solid #2a3645;
}
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #1f2d3d;
    border-bottom: 1px solid #eef2f6;
}
body.theme-dark .dropdown-menu a {
    color: #e2e8f0;
    border-bottom-color: #2a3645;
}
.dropdown-menu a:hover {
    background: #f8fafc;
}
body.theme-dark .dropdown-menu a:hover {
    background: #253041;
}
.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Navigation */
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.2rem;
    list-style: none;
    padding: 0.4rem 0;
}
.main-nav li a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 40px;
    transition: 0.2s;
    font-size: 0.9rem;
    color: #fff;
}
.main-nav li a:hover {
    background: rgba(245, 166, 35, 0.2);
    color: #f5a623 !important;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}
.footer-links a {
    text-decoration: none;
    opacity: 0.8;
    color: #fff;
    font-size: 13px;
}
.footer-links a:hover {
    opacity: 1;
    color: #f5a623;
}
.footer-copyright {
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
    color: #fff;
}
@media (max-width: 768px) {
    .footer-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 20px !important;
        flex-wrap: wrap !important;
    }
    .footer-links a {
        display: inline-block !important;
        white-space: nowrap !important;
        font-size: 13px !important;
    }
    .footer-copyright {
        font-size: 11px !important;
    }
}

/* Responsive Header */
@media (max-width: 992px) {
    .main-header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }
    .logo-img {
        max-height: 65px;
    }
    .theme-icon {
        font-size: 14px;
        padding: 3px 6px;
    }
    .lang-switch a {
        font-size: 12px;
        padding: 3px 6px;
    }
    .header-right {
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .logo-img {
        max-height: 55px;
    }
    .theme-icon {
        font-size: 13px;
        padding: 2px 5px;
    }
    .lang-switch a {
        font-size: 11px;
        padding: 2px 5px;
    }
}
@media (max-width: 480px) {
    .logo-img {
        max-height: 45px;
    }
    .theme-icon {
        font-size: 12px;
        padding: 2px 4px;
    }
    .lang-switch a {
        font-size: 10px;
        padding: 2px 4px;
    }
}

/* Mobile Navigation Scroll */
@media (max-width: 992px) {
    .main-nav .container {
        padding: 0 !important;
        width: 100% !important;
    }
    .main-nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 3px !important;
        padding: 8px 8px !important;
        margin: 0 !important;
        justify-content: flex-start !important;
    }
    .main-nav ul::-webkit-scrollbar {
        display: none !important;
    }
    .main-nav li {
        display: inline-block !important;
        flex-shrink: 0 !important;
    }
    .main-nav li a {
        display: inline-block !important;
        padding: 4px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 40px !important;
    }
}
@media (max-width: 768px) {
    .main-nav ul {
        gap: 2px !important;
        padding: 6px 6px !important;
    }
    .main-nav li a {
        padding: 3px 8px !important;
        font-size: 10px !important;
    }
}
@media (max-width: 480px) {
    .main-nav ul {
        gap: 1px !important;
        padding: 5px 5px !important;
    }
    .main-nav li a {
        padding: 2px 6px !important;
        font-size: 9px !important;
    }
}

/* Breaking News */
.breaking-news {
    background: transparent;
    padding: 0;
    margin: 10px 0;
    min-height: 54px;
}
.breaking-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: transparent;
    min-height: 54px;
}
.breaking-label {
    background: #1a4a6e;
    display: inline-block;
    padding: 10px 25px;
}
.breaking-text {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.breaking-content {
    flex: 1;
    overflow: hidden;
    background: #eee;
    padding: 10px 15px;
    min-height: 44px;
}
.breaking-content marquee {
    white-space: nowrap;
}
.breaking-link {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    margin-right: 15px;
}
.breaking-link:hover {
    color: #1a4a6e;
    text-decoration: underline;
}
.breaking-sep {
    color: #999;
    margin-right: 15px;
}

/* Main Heading */
.main-heading-area {
    text-align: center;
    margin: 2rem 0 1rem;
    padding: 1rem 0;
    border-bottom: 4px solid #f5a623;
}
.main-heading {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
}
.heading-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 8px;
}

/* Categories Row */
.categories-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}
.category-card {
    border-radius: 24px;
    padding: 1.2rem;
    transition: transform 0.2s;
}
.category-card:hover {
    transform: translateY(-5px);
}
.category-header {
    text-align: center;
    margin-bottom: 1.2rem;
}
.category-header h3 {
    font-size: 16px;
    font-weight: 700;
    background: #f5a623;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 40px;
    color: #1e2a3a;
    margin-bottom: 0.5rem;
}
body.theme-dark .category-header h3 {
    color: #121826;
}
.category-underline {
    width: 60px;
    height: 3px;
    background: #f5a623;
    margin: 0 auto;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}
.category-list li {
    margin: 0.8rem 0;
    padding: 0.4rem 0;
    border-bottom: 1px dashed;
}
.category-list li a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: 0.2s;
    color: inherit;
}
.category-list li a:hover {
    color: #f5a623;
    padding-left: 5px;
}
.category-footer {
    text-align: center;
    margin-top: 1rem;
}
.category-more {
    display: inline-block;
    padding: 5px 12px;
    background: #f5a62320;
    color: #f5a623;
    border-radius: 40px;
    font-size: 12px;
    text-decoration: none;
    text-align: center;
}
.category-more:hover {
    background: #f5a623;
    color: #1e2a3a;
}

/* Section Header */
.section-header {
    margin: 40px 0 20px;
}
.section-title {
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 0;
    background: linear-gradient(90deg, #0a294e 0%, #0a294e 4px, #eeeeee 4px, #eeeeee 100%);
    color: #0a294e;
}
body.theme-dark .section-title {
    background: linear-gradient(90deg, #f5a623 0%, #f5a623 4px, #1e2836 4px, #1e2836 100%);
    color: #f5a623;
}
.title-underline {
    width: 80px;
    height: 3px;
    background: #0a294e;
    margin-top: 8px;
}
body.theme-dark .title-underline {
    background: #f5a623;
}
.cat-title {
    font-size: 16px;
    font-weight: 700;
    background: #f5a623;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 40px;
    color: #1e2a3a;
    margin-bottom: 10px;
}
body.theme-dark .cat-title {
    color: #121826;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
body.theme-dark .post-card {
    background: #1e2836;
    border-color: #2a3645;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.post-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.post-img img {
    width: 100%;
    height: auto;
    display: block;
}
.no-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    font-size: 3rem;
}
.post-card h4 {
    padding: 10px 12px 0;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}
.post-card h4 a {
    text-decoration: none;
    color: inherit;
}
.post-card h4 a:hover {
    color: #f5a623;
}
.post-excerpt {
    padding: 6px 12px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}
body.theme-dark .post-excerpt {
    color: #aaa;
}
.read-more-link {
    color: #f5a623;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}
.post-footer {
    padding: 6px 12px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    border-top: 1px solid #eef2f6;
    margin-top: auto;
}
body.theme-dark .post-footer {
    border-top-color: #2a3645;
}
.see-more {
    text-align: center;
    margin: 20px 0 40px;
}
.btn-more {
    display: inline-block;
    padding: 8px 24px;
    background: #f5a623;
    color: #1e2a3a;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.btn-more:hover {
    background: #e09515;
}

/* Detail Page */
.detail-page {
    max-width: 900px;
    margin: 0 auto;
}
.detail-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.detail-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f5a623;
}
.detail-content {
    line-height: 1.8;
    font-size: 1.05rem;
}
.detail-content h2,
.detail-content h3 {
    margin: 1.5rem 0 0.5rem;
}
.detail-content ul,
.detail-content ol {
    margin: 1rem 0 1rem 2rem;
}
.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
}
.not-found {
    text-align: center;
    padding: 60px 20px;
}
.not-found span {
    font-size: 64px;
}
.not-found h2 {
    margin: 20px 0;
}

/* Latest Grid */
.latest-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
.latest-card {
    border-radius: 20px;
    overflow: hidden;
    transition: 0.25s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.latest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}
.latest-image {
    height: 160px;
    overflow: hidden;
}
.latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.latest-content {
    padding: 1rem;
}
.category-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 40px;
    margin-bottom: 10px;
}
.latest-meta {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 6px;
}
.see-more-container {
    text-align: center;
    margin: 1rem 0 2rem;
}
.btn-seemore {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}
.btn-seemore:hover {
    transform: scale(1.02);
}

/* Slider */
.slider-section {
    margin: 20px 0 40px;
    position: relative;
}
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}
.slider-wrapper {
    overflow: hidden;
    flex: 1;
}
.slider-track {
    display: flex;
    gap: 25px;
    transition: transform 0.4s ease-in-out;
    cursor: grab;
}
.slider-track:active {
    cursor: grabbing;
}
.slider-card {
    flex: 0 0 calc(33.333% - 17px);
    min-width: calc(33.333% - 17px);
}
.slider-btn {
    background: #f5a623;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: #1e2a3a;
    transition: opacity 0.3s;
    z-index: 10;
}
.slider-btn:hover {
    background: #e09515;
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}
.dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
}
.dot.active {
    width: 20px;
    background: #f5a623;
    border-radius: 10px;
}
.latest-track {
    display: flex;
    gap: 25px;
    transition: transform 0.4s ease-in-out;
    cursor: grab;
}
.latest-track:active {
    cursor: grabbing;
}
.latest-slide-card {
    flex: 0 0 calc(12.5% - 22px);
    min-width: calc(12.5% - 22px);
}

/* Responsive */
@media (max-width: 992px) {
    .latest-slide-card {
        flex: 0 0 calc(16.666% - 21px);
        min-width: calc(16.666% - 21px);
    }
    .slider-card {
        flex: 0 0 calc(50% - 13px);
        min-width: calc(50% - 13px);
    }
    .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .breaking-label {
        padding: 6px 15px;
    }
    .breaking-text {
        font-size: 11px;
    }
    .breaking-content {
        padding: 6px 10px;
    }
    .breaking-link {
        font-size: 11px;
        margin-right: 10px;
    }
    .breaking-sep {
        margin-right: 10px;
    }
    .section-title {
        font-size: 13px !important;
        padding: 3px 12px !important;
    }
    .cat-title {
        font-size: 13px !important;
        padding: 3px 10px !important;
    }
    .category-header h3 {
        font-size: 13px !important;
        padding: 3px 10px !important;
    }
    .category-list li a {
        font-size: 12px !important;
    }
    .post-card h4 {
        font-size: 12px !important;
    }
    .post-footer {
        font-size: 10px !important;
    }
    .category-more {
        font-size: 11px !important;
    }
    .btn-more {
        font-size: 12px !important;
    }
}
@media (max-width: 576px) {
    .container {
        width: 94%;
    }
    .main-heading {
        font-size: 1.5rem;
    }
    .categories-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding: 10px 5px;
        margin: 1rem 0;
    }
    .categories-row .category-card {
        flex: 0 0 calc(33.333% - 7px);
        min-width: calc(33.333% - 7px);
    }
    .categories-row::-webkit-scrollbar {
        display: none;
    }
    .slider-card {
        flex: 0 0 calc(100% - 0px);
        min-width: calc(100% - 0px);
    }
    .latest-track {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 10px !important;
        padding: 10px 5px !important;
    }
    .latest-track .latest-slide-card {
        flex: 0 0 calc(33.333% - 7px) !important;
        min-width: calc(33.333% - 7px) !important;
    }
    .latest-track::-webkit-scrollbar {
        display: none !important;
    }
    .posts-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        margin: 1rem 0 !important;
    }
    .posts-grid .post-card h4 {
        font-size: 11px !important;
        padding: 5px 5px 0 !important;
    }
    .posts-grid .post-excerpt {
        display: none !important;
    }
    .posts-grid .post-footer {
        font-size: 9px !important;
        padding: 3px 5px 5px !important;
    }
    .slider-btn {
        display: none;
    }
    .slider-dots {
        display: flex;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.6rem;
    }
    .section-title {
        font-size: 11px !important;
        padding: 2px 8px !important;
    }
    .cat-title {
        font-size: 11px !important;
        padding: 2px 8px !important;
    }
    .category-header h3 {
        font-size: 11px !important;
        padding: 2px 8px !important;
    }
    .category-list li a {
        font-size: 11px !important;
    }
    .post-card h4 {
        font-size: 11px !important;
    }
}
@media (max-width: 480px) {
    .posts-grid {
        gap: 6px !important;
    }
    .posts-grid .post-card h4 {
        font-size: 10px !important;
    }
    .section-title {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    .cat-title {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    .category-header h3 {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    .category-list li a {
        font-size: 10px !important;
    }
}