/* Google Fonts - Hind Siliguri for Bangla */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #D32F2F;
    /* Deep Red */
    --primary-dark: #B71C1C;
    --secondary-color: #1A237E;
    /* Deep Blue */
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Utility Classes */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-primary {
    color: var(--primary-color);
}

.bg-white {
    background-color: var(--white);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.font-bold {
    font-weight: 700;
}

/* Header Top */
.header-top {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.social-icons a {
    margin-left: 10px;
    color: var(--text-light);
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Header Main */
.header-main {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-dark);
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* News Ticker */
.news-ticker-area {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
}

.ticker-wrap {
    display: flex;
    align-items: center;
}

.ticker-title {
    background-color: var(--primary-color);
    padding: 5px 15px;
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
    border-radius: 4px;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-move {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Hero Section */
.hero-section {
    padding: 30px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.main-news-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.main-news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-news-card:hover img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: var(--white);
}

.news-cat {
    background-color: var(--primary-color);
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.news-meta {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Side News */
.side-news-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    background: var(--white);
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.side-news-img {
    width: 100px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
}

.side-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-news-content h4 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 5px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Latest News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-card-img {
    height: 180px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 15px;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Footer */
footer {
    background-color: #263238;
    color: #ECEFF1;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Responsive Styles */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .logo {
        font-size: 1.75rem;
    }

    .main-nav ul {
        gap: 15px;
    }

    .main-nav a {
        font-size: 0.95rem;
    }

    .hero-grid {
        gap: 15px;
    }

    .main-news-card {
        height: 350px;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

/* Tablets */
@media (max-width: 768px) {

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Header Adjustments */
    .header-top {
        padding: 10px 0;
        font-size: 0.85rem;
    }

    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .social-icons a {
        margin: 0 8px;
    }

    .auth-links {
        margin-left: 0 !important;
        padding-left: 0 !important;
        border-left: none !important;
        margin-top: 5px;
    }

    .header-main {
        padding: 12px 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 60px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a {
        display: block;
        padding: 15px 10px;
        font-size: 1rem;
    }

    .main-nav a::after {
        display: none;
    }

    /* Search Box */
    .search-box {
        margin-right: 10px;
    }

    /* News Ticker */
    .ticker-title {
        font-size: 0.85rem;
        padding: 5px 10px;
        margin-right: 10px;
    }

    .ticker-item {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    /* Hero Section */
    .hero-section {
        padding: 20px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .main-news-card {
        height: 300px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-overlay {
        padding: 15px;
    }

    /* Side News */
    .side-news-item {
        padding: 8px;
        margin-bottom: 12px;
    }

    .side-news-img {
        width: 90px;
        height: 65px;
    }

    .side-news-content h4 {
        font-size: 0.95rem;
    }

    /* Section Headers */
    .section-title {
        font-size: 1.3rem;
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-card-img {
        height: 200px;
    }

    .news-card-title {
        font-size: 1.05rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    footer {
        padding: 30px 0 15px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .header-top {
        font-size: 0.8rem;
    }

    .social-icons a {
        margin: 0 6px;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .search-box a i {
        font-size: 1rem !important;
    }

    /* Mobile Nav Width */
    .main-nav {
        width: 250px;
    }

    /* Ticker */
    .ticker-title {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .ticker-item {
        font-size: 0.85rem;
    }

    /* Hero Section */
    .main-news-card {
        height: 250px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-cat {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .news-meta {
        font-size: 0.75rem;
    }

    /* Side News */
    .side-news-item {
        flex-direction: column;
        gap: 8px;
    }

    .side-news-img {
        width: 100%;
        height: 150px;
    }

    .side-news-content h4 {
        font-size: 0.9rem;
    }

    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    /* News Cards */
    .news-card-img {
        height: 180px;
    }

    .news-card-content {
        padding: 12px;
    }

    .news-card-title {
        font-size: 1rem;
    }

    /* Footer */
    .footer-col h3 {
        font-size: 1.1rem;
    }

    .copyright {
        font-size: 0.85rem;
    }
}

/* Extra Small Phones */
@media (max-width: 375px) {
    .logo {
        font-size: 1.2rem;
    }

    .main-nav {
        width: 220px;
    }

    .main-news-card {
        height: 220px;
    }

    .news-title {
        font-size: 1rem;
    }

    .ticker-wrap {
        flex-wrap: wrap;
    }

    .ticker-title {
        margin-bottom: 5px;
    }
}

/* Search Form Styles */
.search-form-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--white);
    padding: 15px;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    display: none;
    z-index: 1000;
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.search-form-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-form-container form {
    width: 100%;
}

.search-form-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    outline: none;
    font-family: 'Hind Siliguri', sans-serif;
}

.search-form-container button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-form-container button:hover {
    background: var(--primary-dark);
}

/* Mobile Search Adjustments */
@media (max-width: 480px) {
    .search-form-container {
        width: 280px;
        right: -50px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}