/*
Theme Name: Newspaper List
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A custom WordPress theme for listing newspapers by category.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newspaperlist
Tags: news, directory, bangla, newspaper
*/

@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* --- General Theme Colors --- */
:root {
    --accent-blue: #0073aa;
    --header-bg: #0d2235;
    --accent-orange: #ff6600;
    --header-text: #fff;
    --category-header-bg: #f0f4f8;
    --category-title-blue: #0073aa;
    --block-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --block-radius: 14px;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #222;
}

/* Newspaper Grid Styles */
.newspaper-category-block {
    margin-bottom: 40px;
}

.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 28px;
    margin: 0;
    padding: 24px 32px 0 32px;
}

.newspaper-item {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,115,170,0.06);
    padding: 6px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 70px;
    border: 1px solid #e3e8ee;
    position: relative;
}

.newspaper-item:hover {
    box-shadow: 0 8px 32px rgba(0,115,170,0.13);
    transform: translateY(-3px) scale(1.04);
    border-color: var(--accent-blue);
    z-index: 2;
}

.newspaper-logo-container {
    width: 120px;
    height: 80px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    box-shadow: none;
    border: none;
    padding: 0;
}

.newspaper-logo {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: transparent;
    border-radius: 2px;
}

.newspaper-divider {
    width: 60%;
    height: 1px;
    background: #e3e8ee;
    margin: 8px auto 0 auto;
    border: none;
}

.newspaper-link {
    display: block;
    font-size: 0.8em;
    color: #1a202c;
    text-decoration: none;
    font-weight: 400;
    margin-top: 10px;
    transition: none;
    word-break: break-word;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
}

/* Remove hover effect from newspaper name */
.newspaper-link:hover {
    color: #1a202c;
    text-decoration: none;
}

/* Header Styles */
#site-header {
    background: linear-gradient(90deg, #0d2235 80%, #1a3550 100%);
    color: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 0;
    margin-bottom: 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.2s, background 0.2s;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    gap: 18px;
    position: relative;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.custom-logo-link img {
    max-height: 44px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -1px;
}

.site-title a {
    color: var(--header-text);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--accent-blue);
}

.site-description {
    font-size: 0.95rem;
    color: #c7d2e1;
    margin: 2px 0 0 0;
}

/* Navigation Styles */
.nav-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}
#main-nav {
    display: none;
}
@media (min-width: 801px) {
    .nav-wrapper {
        display: flex !important;
        align-items: center;
    }
    #main-nav {
        display: none !important;
    }
    .main-menu {
        display: flex;
        flex-direction: row;
        gap: 24px;
        background: none;
        margin: 0;
        padding: 0;
        list-style: none;
        width: auto;
    }
    .main-menu li {
        border: none;
        margin: 0;
        padding: 0;
        position: relative;
    }
    .main-menu a, .main-menu ul a,
    .main-menu a:hover, .main-menu .current-menu-item > a,
    .main-menu ul a:hover, .main-menu ul a:focus, .main-menu ul .current-menu-item > a {
        border-radius: 5px !important;
    }
    .main-menu a {
        color: var(--header-text, #fff);
        background: none;
        font-weight: 600;
        font-size: 1em;
        padding: 10px 18px;
        border-radius: 0;
        min-width: 0;
        min-height: 0;
        display: block;
        text-align: left;
        transition: background 0.2s, color 0.2s;
    }
    .main-menu a:hover,
    .main-menu .current-menu-item > a {
        background: var(--accent-blue, #0073aa);
        color: #fff;
    }
    .main-menu ul {
        display: none;
        position: absolute;
        left: 0;
        top: 100%;
        background: #fff;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        min-width: 220px;
        z-index: 1000;
        padding: 10px 0;
        border-radius: 2px;
        margin-top: 0;
        transition: opacity 0.2s, visibility 0.2s;
        opacity: 0;
        visibility: hidden;
        word-break: break-word;
        overflow: visible;
    }
    .main-menu li:hover > ul,
    .main-menu li:focus-within > ul,
    .main-menu li.open > ul {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    .main-menu ul li {
        border: none;
        margin: 0;
        padding: 0;
    }
    .main-menu ul a {
        color: #222;
        font-size: 0.97em;
        padding: 12px 24px 12px 32px;
        border-radius: 2px;
        transition: background 0.2s, color 0.2s;
        width: 100%;
        display: block;
        white-space: normal;
        word-break: break-word;
        box-sizing: border-box;
    }
    .main-menu ul a:hover,
    .main-menu ul a:focus,
    .main-menu ul .current-menu-item > a {
        background: #f0f4f8;
        color: var(--accent-blue, #0073aa);
        border-radius: 2px;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
    .main-menu ul li:not(:last-child) {
        border-bottom: none;
    }
    .main-menu ul li + li {
        position: relative;
    }
    .main-menu ul li + li::before {
        content: '';
        display: block;
        height: 1px;
        background: #e3e8ee;
        margin: 0 16px;
        margin-bottom: 2px;
    }
    .mobile-menu-header, .close-menu {
        display: none !important;
    }
    .hamburger {
        display: none !important;
    }
    .main-menu a:hover,
    .main-menu .current-menu-item > a,
    .main-menu ul a:hover,
    .main-menu ul a:focus,
    .main-menu ul .current-menu-item > a {
        border-radius: 2px !important;
    }
}
@media (max-width: 800px) {
    .nav-wrapper {
        display: none !important;
    }
    .hamburger {
        display: block !important;
    }
    #main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        box-shadow: none;
        transform: translateX(100%);
        transition: transform 0.3s;
        z-index: 200;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        overflow-y: auto;
        max-width: 100vw;
    }
    #main-nav.open {
        transform: translateX(0);
        display: flex;
    }
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px 18px 10px 18px;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 2;
    }
    .mobile-menu-title {
        font-size: 1.25em;
        font-weight: 700;
        color: #1a2233;
        letter-spacing: 0.01em;
    }
    .close-menu {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.7em;
        color: #1a2233;
        cursor: pointer;
        padding: 0 8px;
        line-height: 1;
        margin-left: 10px;
        margin-top: -2px;
    }
    .main-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: #fff;
        margin: 0;
        padding: 0;
    }
    .main-menu li {
        width: 100%;
        display: block;
        box-sizing: border-box;
        border-bottom: 1px solid #f0f0f0;
        margin: 0;
        padding: 0;
    }
    .main-menu li:last-child {
        border-bottom: none;
    }
    .main-menu a {
        width: 100%;
        padding: 18px 18px 18px 18px;
        font-size: 1.08em;
        font-weight: 600;
        border-radius: 0;
        display: flex;
        align-items: center;
        text-align: left;
        box-sizing: border-box;
        overflow-wrap: break-word;
        color: #1a2233;
        background: none;
        min-height: 44px;
        text-decoration: none;
        position: relative;
        transition: background 0.2s;
    }
    .main-menu a:hover,
    .main-menu a:focus {
        background: #f7f8fa;
        color: #0073aa;
    }
    .main-menu > li.menu-item-has-children > a::after {
        content: '\203A'; /* › */
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%) scale(1.3);
        font-size: 1.1em;
        color: #b3c6d9;
        pointer-events: none;
        transition: transform 0.2s;
    }
    .main-menu > li.open > a::after {
        transform: translateY(-50%) scale(1.3) rotate(90deg);
    }
    .main-menu ul {
        display: none;
    }
    .main-menu li.open > ul {
        display: block;
    }
    .main-menu ul a {
        color: #1a2233;
        font-size: 1em;
        padding: 18px 18px 18px 32px;
        border-radius: 0;
        min-height: 40px;
        font-weight: 500;
    }
    .main-menu ul a:hover,
    .main-menu ul a:focus {
        background: #f7f8fa;
        color: #0073aa;
    }
    .main-menu ul li {
        border-bottom: 1px solid #f0f0f0;
    }
    .main-menu ul li:last-child {
        border-bottom: none;
    }
    .main-menu > li.menu-item-has-children > a::after {
        content: '\203A'; /* › */
    }
    #mobile-menu-overlay {
        display: none !important;
    }
}
@media (max-width: 500px) {
    .newspaper-logo-container {
        width: 90px;
        height: 54px;
    }
    .newspaper-logo {
        max-width: 100%;
        max-height: 42px;
    }
    .hamburger {
        padding: 8px;
    }
    .hamburger span {
        width: 24px;
        height: 2px;
        margin: 4px 0;
    }
}

/* Homepage Category Blocks */
.homepage-categories-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px 40px 10px;
}

.homepage-category-block {
    background: #fff;
    border-radius: var(--block-radius);
    box-shadow: var(--block-shadow);
    margin-bottom: 36px;
    padding: 0 0 18px 0;
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.homepage-category-block:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}

.homepage-category-title {
    background: var(--category-header-bg);
    color: var(--category-title-blue);
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 18px 0;
    padding: 18px 24px 12px 24px;
    border-bottom: 1px solid #e3e8ee;
    text-align: left;
}

/* Homepage Hero */
.homepage-hero {
    background: #eaf3fa;
    border-radius: var(--block-radius);
    box-shadow: var(--block-shadow);
    max-width: 1200px;
    margin: 0 auto 32px auto;
    padding: 36px 20px 28px 20px;
    text-align: center;
}
.homepage-hero h1 {
    font-size: 2.2em;
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -1px;
}
.homepage-hero p {
    font-size: 1.15em;
    color: #224758;
    margin: 0 auto;
    max-width: 600px;
    padding: 15px;
    line-height: 30px;
}

@media (max-width: 600px) {
    .homepage-hero {
        padding: 18px 6px 14px 6px;
    }
    .homepage-category-block {
        padding: 0 0 8px 0;
    }
    .homepage-category-title {
        font-size: 1.05em;
        padding: 12px 10px 8px 10px;
    }
    .newspaper-grid {
        padding: 10px 6px 24px 6px;
        gap: 10px;
    }
    .newspaper-item {
        min-height: 80px;
        padding: 8px 2px 6px 2px;
    }
    .newspaper-logo {
        max-width: 100%;
        max-height: 32px;
    }
} 

/* --- Enhanced Hero Section --- */
.enhanced-hero {
    background: linear-gradient(120deg, #eaf3fa 60%, #d0e6f7 100%);
    border-radius: var(--block-radius);
    box-shadow: var(--block-shadow);
    max-width: 1200px;
    margin: 0 auto 32px auto;
    padding: 56px 20px 48px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.enhanced-hero h1 {
    font-size: 2.7em;
    color: var(--accent-blue);
    margin-bottom: 16px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 1.25em;
    color: #8ca0b3;
    margin: 0 auto 28px auto;
    max-width: 600px;
    font-weight: 300;
    letter-spacing: 0.01em;
}
.hero-cta {
    display: inline-block;
    background: var(--accent-blue);
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,115,170,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    margin-top: 10px;
}
.hero-cta:hover {
    background: #005177;
    box-shadow: 0 6px 24px rgba(0,115,170,0.18);
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 600px) {
    .enhanced-hero {
        padding: 28px 6px 18px 6px;
    }
    .enhanced-hero h1 {
        font-size: 1.35em;
        padding: 0 15px;
    }
    .hero-subtitle {
        font-size: 1em;
        margin-bottom: 16px;
    }
    .hero-cta {
        font-size: 1em;
        padding: 10px 20px;
    }
} 

/* --- Modern Footer Styles --- */
.modern-footer {
    background: #0d2235;
    color: #fff;
    padding: 0;
    margin-top: 48px;
    font-size: 1em;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0 12px 0;
    flex-wrap: wrap;
    border-bottom: 1px solid #1a3550;
}
.footer-branding {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-site-title {
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.footer-tagline {
    font-size: 1em;
    color: #b3c6d9;
    font-weight: 400;
}
.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-link {
    color: #b3c6d9;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #fff;
    text-decoration: none;
    padding: 10px;
}
.footer-bottom {
    text-align: center;
    padding: 16px 0 12px 0;
    color: #b3c6d9;
    font-size: 0.98em;
}
@media (max-width: 700px) {
    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 24px 0 8px 0;
    }
    .footer-nav {
        gap: 14px;
    }
    .footer-container {
        padding: 0 8px;
    }
} 

/* --- Responsive Hamburger Menu --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 130;
    position: relative;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger:hover span {
    background: #c7d2e1;
}

.hamburger:active span {
    transform: scale(0.95);
}

/* Mobile menu overlay removed - not used in current implementation */

.newspaper-hidden {
    display: none;
}

.show-all-btn {
    display: block;
    margin: 18px auto 0 auto;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 10px 32px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,115,170,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.show-all-btn:hover {
    background: #005177;
    box-shadow: 0 6px 24px rgba(0,115,170,0.18);
    transform: translateY(-2px) scale(1.04);
}

.category-page-container {
    max-width: 1200px;
    margin: 32px auto 32px auto;
    padding: 0 16px;
}

.main-menu a, .main-menu ul a {
    text-decoration: none !important;
}

@media (min-width: 801px) {
    .main-menu > li.menu-item-has-children > a {
        position: relative;
        padding-right: 28px;
    }
    .main-menu > li.menu-item-has-children > a::after {
        content: '\25BC'; /* ▼ */
        position: absolute;
        right: 10px;
        top: 55%;
        transform: translateY(-50%) scale(0.8);
        font-size: 0.85em;
        color: #b3c6d9;
        pointer-events: none;
        transition: transform 0.2s;
        margin-left: 6px;
    }
    .main-menu > li.open > a::after {
        transform: translateY(-50%) scale(0.8) rotate(180deg);
    }
} 

.main-menu li.open {
    border: none !important;
} 