/* General Styles */
body {
    font-family: 'SolaimanLipi', 'Nikosh', 'Bangla', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* Top Header */
.top-header {
    background: white;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.date-time {
    font-size: 16px;
    color: #666;
}

.date-time span {
    margin: 0 5px;
}

.contact-info {
    font-size: 16px;
    color: #666;
}

/* Breaking News Ticker */
.breaking-news {
    background: #dc3545;
    color: white;
    overflow: hidden;
    position: relative;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.ticker-label {
    background: #c82333;
    padding: 5px 15px;
    font-weight: bold;
    white-space: nowrap;
}

.ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-items {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 20px;
}

.ticker-item a {
    color: white;
    text-decoration: none;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Main Navigation */
.main-nav {
    background: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.main-nav.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white !important;
    padding: 12px 20px !important;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #34495e;
}

/* Mobile Menu */
.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #2c3e50;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #eee;
}

.mobile-nav li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
}

.mobile-nav li a:hover {
    background: #f5f5f5;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.news-meta {
    font-size: 12px;
    color: #999;
    margin: 10px 0;
}

.news-meta span {
    margin-right: 15px;
}

/* Search Card */
.search-card, .popular-news-card, .related-news-card {
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-header {
    background: #2c3e50;
    color: white;
    font-weight: bold;
}

/* Popular News */
.popular-news-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.popular-news-item:last-child {
    border-bottom: none;
}

.popular-news-item a {
    text-decoration: none;
    color: #333;
}

.popular-news-item h6 {
    font-size: 14px;
    margin-bottom: 5px;
}

.popular-news-item small {
    font-size: 11px;
    color: #999;
}

/* News Details */
.news-details {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.news-meta-details {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.news-meta-details span {
    margin-right: 20px;
}

.news-featured-image {
    margin: 20px 0;
}

.news-featured-image img {
    width: 100%;
    border-radius: 8px;
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
    margin: 30px 0;
}

.news-tags {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-tags .badge {
    margin-right: 10px;
    font-size: 12px;
    padding: 5px 10px;
}

/* Related News */
.related-news-item a {
    text-decoration: none;
    color: #333;
}

.related-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.related-info {
    flex: 1;
}

.related-info h6 {
    font-size: 14px;
    margin-bottom: 5px;
}

.related-info small {
    font-size: 11px;
    color: #999;
}

/* Archive Page */
.page-title {
    margin-bottom: 10px;
    color: #2c3e50;
}

.archive-card {
    position: sticky;
    top: 80px;
}

.archive-news-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.archive-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.archive-news-item h5 a {
    text-decoration: none;
    color: #333;
}

.archive-news-item h5 a:hover {
    color: #007bff;
}

/* Editor News */
.editor-news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100%;
}

.editor-news-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.editor-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: white;
    margin-top: 50px;
    padding: 50px 0 20px;
}

.main-footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.main-footer h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #dc3545;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #dc3545;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #ccc;
}

/* Top Header Styles */
.top-header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.logo img,
.newspaper-logo img {
    object-fit: contain;
}

/* Mobile specific styles */
@media (max-width: 767.98px) {
    .logo img {
        max-height: 50px;
    }
    
    .newspaper-logo img {
        max-height: 50px;
    }
    
    .top-header .d-flex {
        flex-wrap: nowrap;
    }
}

/* For extra small devices */
@media (max-width: 480px) {
    .logo img {
        max-height: 45px;
    }
    
    .newspaper-logo img {
        max-height: 35px;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .news-title {
        font-size: 22px;
    }
    
    .news-details {
        padding: 15px;
    }
    
    .news-meta-details span {
        display: block;
        margin-bottom: 5px;
    }
    
    .archive-card {
        position: static;
        margin-bottom: 20px;
    }
    
    .top-header .logo img {
        max-height: 40px;
    }
}