/* BBC Style News - CSS */
/* BBC Reith Sans */
@font-face {
    font-family: 'BBC Reith Sans';
    src: url('../fonts/BBCReithSans_W_Rg.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BBC Reith Sans';
    src: url('../fonts/BBCReithSans_W_Md.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BBC Reith Sans';
    src: url('../fonts/BBCReithSans_W_Bd.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BBC Reith Sans';
    src: url('../fonts/BBCReithSans_W_ExBd.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* BBC Reith Serif */
@font-face {
    font-family: 'BBC Reith Serif';
    src: url('../fonts/BBCReithSerif_W_Rg.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BBC Reith Serif';
    src: url('../fonts/BBCReithSerif_W_Md.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BBC Reith Serif';
    src: url('../fonts/BBCReithSerif_W_Bd.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'BBC Reith Sans', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: rgb(32, 34, 36);
    background-color: #f6f6f6;
}

h1, h2, h3, h4, h5, h6, 
.bbc-left-title, .bbc-center-title, .bbc-right-title, 
.bbc-bottom-heading, .bbc-bottom-title,
.ln-hero-content h3, .ln-card-title, .ln-sidebar-title,
.cat-main-title, .cat-hero-title, 
.bottom-list-title {
    font-family: 'BBC Reith Serif', 'Times New Roman', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    color: #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
}

.header-container {
    margin: 0 auto;
    padding: 0 16px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #000000;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.logo a {
    display: flex;
    gap: 4px;
    align-items: center;
}

.logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #000000;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-register,
.btn-signin {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-register {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.btn-register:hover {
    background-color: #333333;
}

.btn-signin:hover {
    background-color: #f0f0f0;
}

.main-nav {
    display: flex;
    gap: 0;
    padding: 0;
    justify-content: center;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    color: #000000;
    font-weight: 500;
    font-size: 13px;
    padding: 14px 14px;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 4px solid transparent;
}

.nav-link:hover {
    background-color: #f6f6f6;
}

.nav-link.active {
    border-bottom-color: #000000;
}

.nav-link.active-parent {
    border-bottom-color: #000000;
}

/* Sub Navigation */
.sub-nav-link {
    font-weight: 500;
}

.sub-nav-link:hover {
    background-color: #f6f6f6;
}

.sub-nav-link.active {
    font-weight: 700;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 16px;
    white-space: nowrap;
}

.nav-dropdown:hover .dropdown-content {
    display: flex;
    gap: 20px;
}

.dropdown-item {
    color: #000000;
    padding: 10px 0;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s;
    border-left: none;
}

.dropdown-item:hover {
    color: #666666;
    background-color: transparent;
    border-left-color: transparent;
}

.dropdown-item.active {
    color: #666666;
    background-color: transparent;
    border-left-color: transparent;
}

/* Featured Section */
.featured-section {
    padding: 30px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.featured-main .featured-card {
    height: 500px;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-card {
    position: relative;
    overflow: hidden;
    display: block;
    background: #000;
}

.featured-card img,
.featured-card .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.placeholder-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-card:hover img {
    transform: scale(1.05);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #ffffff;
}

.featured-card.small {
    height: 240px;
}

.featured-card.small .featured-content {
    padding: 20px;
}

.featured-card h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.2;
}

.featured-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.3;
}

.featured-card p {
    font-size: 16px;
    margin-top: 10px;
    opacity: 0.9;
}

.category-badge {
    display: inline-block;
    background: #bb1919;
    color: #ffffff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Latest Section */
.latest-section {
    padding: 40px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #bb1919;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-image,
.article-card .placeholder-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-card .placeholder-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.4;
    color: #000000;
    transition: color 0.2s ease;
}

.article-card a:hover .article-title {
    color: #000000;
    text-decoration: underline;
}

.article-excerpt {
    font-size: 14px;
    color: #5a5a5a;
    margin: 10px 0;
    line-height: 1.5;
}

.article-meta {
    font-size: 13px;
    color: #8a8a8a;
    margin-top: 12px;
}

.article-time,
.author {
    display: inline-block;
}

.separator {
    margin: 0 8px;
}

/* Article Detail Page */
.article-detail {
    background: transparent;
    padding: 0;
    margin: 0;
}

.article-header {
    margin-bottom: 30px;
}

.article-title-main {
    font-size: 42px;
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.2;
    color: #000000;
}

.article-meta-detail {
    font-size: 14px;
    color: #6a6a6a;
    margin-top: 15px;
}

.article-featured-image {
    margin: 30px 0;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #3f3f42;
    margin: 30px 0;
}

.article-body p {
    margin-bottom: 20px;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 6px 14px;
    margin: 5px 5px 5px 0;
    border-radius: 3px;
    font-size: 13px;
    color: #5a5a5a;
}

/* Category Page */
.category-header {
    padding: 40px 0 20px;
}

.category-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
}

.category-description {
    font-size: 16px;
    color: #6a6a6a;
    margin-top: 10px;
}

/* Related Articles */
.related-articles {
    margin: 40px 0;
}

/* Footer */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 13px;
    color: #8a8a8a;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-sidebar {
        flex-direction: row;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 57px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 57px);
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-link {
        padding: 16px 20px;
        border-bottom: 1px solid #e5e5e5;
        border-left: 4px solid transparent;
    }

    .nav-link.active {
        border-bottom-color: #e5e5e5;
        border-left-color: #000000;
    }

    .nav-link:hover {
        background-color: #f6f6f6;
        border-left-color: #000000;
    }
    
    /* Mobile dropdown */
    .nav-dropdown {
        display: block;
        width: 100%;
    }
    
    .nav-dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-dropdown > .nav-link:after {
        content: '▼';
        font-size: 0.7rem;
        transition: transform 0.3s;
    }
    
    .nav-dropdown:hover > .nav-link:after {
        transform: rotate(180deg);
    }
    
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        background: #f6f6f6;
        border-left: 4px solid #3498db;
        margin-left: 1rem;
    }
    
    .nav-dropdown:hover .dropdown-content {
        display: block;
    }
    
    .dropdown-item {
        padding: 12px 20px;
        border-bottom: 1px solid #e5e5e5;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .featured-sidebar {
        flex-direction: column;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-detail {
        padding: 20px;
    }

    .article-title-main {
        font-size: 32px;
    }

    .featured-card h2 {
        font-size: 24px;
    }
}
