* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SolaimanLipi', 'Siyam Rupali', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
}



/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 10px;
    right: 5px;
    width: 30px;
    height: 30px;
    background-color: #3c65ac;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: #3c65ac;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #0081ce 0%, #3c65ac 100%);
    color: white;
    padding: 2px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 40px;
    background:#fff;
}

.logo img {
    height: 30px;
    width: auto;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.logo span {
    color: #4CAF50;
}

.date-time {
    text-align: right;
    font-size: 14px;
}

.language-switcher {
    margin: 0px 0;
    padding: 1px;
    background: #f5f5f5;
    border-radius: 4px;
}
.language-form {
    display: inline;
}
.language-btn {
    padding: 1px 2px;
    margin: 0 1px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
}
.language-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.breaking-news {
    background: #048978;
    color: white;
    padding: 8px 0;
    margin-top: 10px;
}

.marquee {
    font-weight: bold;
}

/* Navigation */
.nav {
    /*background: #2c3e50;*/
}

.navbar-nav {
    display: flex;
    list-style: none;
    justify-content: left;
    gap: 20px;
}

.navbar-nav li a {
    color: #0081ce;
    text-decoration: none;
    font-weight: 200;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    padding:5px;
}

.navbar-nav li a:hover {
    background: #0081ce;
    color: #fff;
    padding:5px;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* Newspaper Grid */
.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    background:#eee !important;
}

.newspaper-category {
    margin-bottom: 40px;
}

.category-title {
    background: linear-gradient(135deg, #006746 0%, #006746 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.newspaper-card {
    background: white;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.newspaper-card:hover {
    /*transform: translateY(-5px);*/
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-color: #3498db;
}

.newspaper-logo {
    height: 60px;
    margin-bottom: 0px;
    object-fit: contain;
}

.newspaper-name {
    color: #2c3e50;
    margin-bottom: 0px;
    font-size: 12px;
}

.newspaper-founder {
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 0px;
}

.visit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.visit-btn:hover {
    background: #2980b9;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sidebar-widget {
    margin-bottom: 30px;
    border-radius: 10px;
    background:#fff;
    
}

.widget-title {
    background: #0081ce;
    color: white;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 700;
}

.popular-papers {
}

.popular-papers li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor:pointer;
}
.popular-papers li:hover {
    border-bottom: 1px solid #0081ce;
    color:#0081ce;
}

.popular-papers li:last-child {
    border-bottom: none;
}

.popular-papers li i {
    color: #0081ce;
}

/* Newspaper Viewer */
.newspaper-viewer {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 0px;
    display: none;
}

.viewer-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0px;
    padding-bottom: 0px;
    /*border-bottom: 2px solid #ecf0f1;*/
}

.viewer-title {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
    padding-right:10px;
}

.close-viewer {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#newspaperFrame {
    width: 100%;
    height:100vh;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.container_status {
    display: flex;
    border-bottom: 1px solid #ddd;
    gap: 10px; /* Space between divs */
    padding:0px 10px;
}
.container_status:hover {
    border-bottom: 1px solid #0081ce;
    color:#0081ce;
    cursor:pointer;
}

.div1 {
    flex: 1;
    font-weight:bold;
    padding: 2px;
}
.div2 {
    flex: 3;
    padding: 2px;
}


/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0px;
        max-width: 98%;
    }
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .nav-item {
        /*border-bottom:1px solid #fff;*/
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .newspaper-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

