/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e1e1e1;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    margin-right: 10px;
    border-radius: 5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-form {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 10px 15px;
    width: 250px;
    outline: none;
}

.search-btn {
    background: var(--secondary-color);
    border: none;
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #2980b9;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navigation */
.navigation {
    background: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: white;
}

/* Main Content */
.main-content {
    padding: 20px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Newspapers Section */
.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.section-title i {
    color: var(--secondary-color);
}

.newspapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.newspaper-item {
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.newspaper-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.newspaper-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.newspaper-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.newspaper-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.3;
}

.newspaper-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

/* Table Styles for Newspaper List */
.newspaper-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.newspaper-table th,
.newspaper-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.newspaper-table th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.newspaper-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.newspaper-table tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Newspaper Groups */
.newspaper-group {
    margin-bottom: 30px;
}

.group-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.group-item {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.group-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    display: block;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.widget-title i {
    color: var(--secondary-color);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.widget-list a:hover {
    color: var(--secondary-color);
}

/* Sidebar Widget Grid Styles */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.widget-item {
    background: white;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.widget-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.widget-logo {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.widget-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.widget-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    font-size: 12px;
    line-height: 1.2;
}

.widget-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Footer */
.footer {
    background: var(--primary-color);
    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 h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-actions {
        gap: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
         width: 100%;
  padding: 10px 20px;
    }
    
    .search-input {
        width: 200px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: static;
    }
    
    .newspapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .group-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .newspaper-table {
        display: block;
        overflow-x: auto;
    }
}
.main-content-custom{
    margin-right: 70px;
    margin-left: 70px;
}
@media (max-width: 480px) {
    .newspapers-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    
    .newspaper-item {
        padding: 15px 10px;
    }
    
    .hero-banner {
        padding: 30px 20px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .search-input {
        width: 150px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .group-items {
        grid-template-columns: 1fr;
    }

    .main-content-custom{
    margin-right: 10px;
    margin-left: 10px;
}
}



