/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Bengali', 'SolaimanLipi', 'Siyam Rupali', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

[class*="col-"] {
    padding: 0 15px;
}

/* Header Styles */
.header-top {
    background-color: #1a237e;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-left .date-time {
    display: inline-block;
}

.top-right a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.top-right a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.login-btn {
    background-color: #2196f3;
}

.register-btn {
    background-color: #4caf50;
}

/* Main Header */
.main-header {
    padding: 20px 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a237e;
}

.logo-img {
    max-height: 60px;
    margin-right: 10px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
}

.header-ad img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;
}

.social-links {
    margin-bottom: 10px;
}

.social-icon {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 50%;
    margin-left: 5px;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #1a237e;
    color: white;
}

.header-search form {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-family: 'Noto Sans Bengali', sans-serif;
}

.search-btn {
    background-color: #1a237e;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Navigation */
.main-nav {
    background-color: #1a237e;
}

.nav-container {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    background-color: #3949ab;
}

/* Breaking News */
.breaking-news {
    background-color: #ff3d00;
    color: white;
    padding: 10px 0;
}

.breaking-label {
    background-color: #d32f2f;
    padding: 5px 15px;
    border-radius: 3px;
    margin-right: 15px;
    font-weight: bold;
}

.breaking-content marquee a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.breaking-content marquee a:hover {
    text-decoration: underline;
}

/* Featured Slider */
.featured-slider {
    margin: 20px 0;
}

.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px;
}

.slide-content .category {
    background-color: #ff3d00;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 10px;
}

.slide-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.slide-content h2 a {
    color: white;
    text-decoration: none;
}

.slide-content h2 a:hover {
    text-decoration: underline;
}

/* Categories Section */
.categories-section {
    margin: 30px 0;
}

.category-box {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 22px;
    color: #1a237e;
    border-bottom: 2px solid #ff3d00;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.category-title a {
    color: inherit;
    text-decoration: none;
}

.news-count {
    font-size: 16px;
    color: #666;
}

.category-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.news-item {
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-content h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.news-content h4 a {
    color: #333;
    text-decoration: none;
}

.news-content h4 a:hover {
    color: #1a237e;
}

.news-meta {
    font-size: 14px;
    color: #666;
}

/* Latest News */
.latest-news {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    color: #1a237e;
    border-bottom: 2px solid #ff3d00;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.latest-news-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.latest-news-item:last-child {
    border-bottom: none;
}

.news-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.category-badge {
    background-color: #1a237e;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 10px;
}

.latest-news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.latest-news-item h3 a {
    color: #333;
    text-decoration: none;
}

.latest-news-item h3 a:hover {
    color: #1a237e;
}

.news-meta {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.news-meta span {
    margin-right: 15px;
}

.news-meta span i {
    margin-right: 5px;
}

/* Sidebar */
.sidebar {
    padding-left: 20px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 18px;
    color: #1a237e;
    border-bottom: 2px solid #ff3d00;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Footer */
.main-footer {
    background-color: #1a237e;
    color: white;
    margin-top: 50px;
}

.footer-top {
    padding: 40px 0;
}

.footer-widget {
    margin-bottom: 20px;
}

.widget-title {
    color: white;
    border-bottom-color: #ff3d00;
}

.about-text {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.footer-social a:hover {
    background-color: #ff3d00;
}

.footer-links,
.footer-categories {
    list-style: none;
}

.footer-links li,
.footer-categories li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-categories a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-categories a:hover {
    color: #ff3d00;
}

.footer-bottom {
    background-color: #0d153a;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright,
.developer-credit {
    margin: 0;
    font-size: 14px;
}

.developer-credit a {
    color: #ff3d00;
    text-decoration: none;
}

/* Pagination */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination-list {
    list-style: none;
    display: inline-flex;
    margin-bottom: 10px;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: block;
    padding: 8px 15px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #1a237e;
    color: white;
    border-color: #1a237e;
}

.page-item.active .page-link {
    background-color: #1a237e;
    color: white;
    border-color: #1a237e;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .col-1, .col-2, .col-3, .col-4, 
    .col-5, .col-6, .col-7, .col-8,
    .col-9, .col-10, .col-11, .col-12 {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a237e;
        z-index: 1000;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu li a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .sidebar {
        padding-left: 0;
        margin-top: 30px;
    }
}