/* ============================================
   Professional News Website Style
   Clean, modern news appearance with dropdown menu
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== Base Styles ========== */
body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* ========== Links ========== */
a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s ease;
}

a:hover {
    color: #e74c3c;
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header with Dropdown Menu ========== */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.logo span {
    color: #e74c3c;
}

/* ========== Dropdown Navigation ========== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.nav-dropdown-btn:hover {
    background-color: #c0392b;
}

.nav-dropdown-btn::after {
    content: "▼";
    font-size: 12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1;
    overflow: hidden;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* ========== Main Content ========== */
.main-content {
    padding: 30px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* ========== Featured Section ========== */
.featured-section {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== Article Cards ========== */
.article-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #e74c3c;
}

.article-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #e74c3c;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-excerpt {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #95a5a6;
}

/* ========== Section Styles ========== */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e74c3c;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== Sidebar ========== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e74c3c;
}

/* ========== Categories ========== */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.2s;
    border: 1px solid #eaeaea;
}

.category-item:hover {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: translateX(5px);
}

/* ========== Popular Posts ========== */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s;
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
}

.popular-item:hover {
    background-color: #f1f1f1;
    border-color: #e74c3c;
}

.popular-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eaeaea;
}

.popular-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.popular-item:hover .popular-item-image img {
    transform: scale(1.05);
}

.popular-item-content {
    flex: 1;
}

.popular-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 4px;
}

.popular-item-date {
    font-size: 12px;
    color: #95a5a6;
}

/* ========== Load More Button ========== */
.load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 12px 32px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.load-more-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* ========== Footer ========== */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer a {
    color: #e74c3c;
    text-decoration: underline;
}

.footer a:hover {
    color: #c0392b;
}

/* ========== Article Detail Page ========== */
.article-detail {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    position: relative;
}

.breadcrumb {
    font-size: 14px;
    color: #95a5a6;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #e74c3c;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #95a5a6;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin: 16px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #95a5a6;
}

.article-meta .separator {
    margin: 0 4px;
    color: #95a5a6;
}

.article-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-image:hover img {
    transform: scale(1.02);
}

.article-summary {
    font-size: 18px;
    color: #7f8c8d;
    line-height: 1.8;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 16px;
    color: #34495e;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 30px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e74c3c;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 24px 0 12px;
}

.article-body ul, .article-body ol {
    margin: 16px 0 16px 24px;
}

.article-body li {
    margin-bottom: 8px;
    color: #34495e;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eaeaea;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    padding: 6px 14px;
    background-color: #f8f9fa;
    color: #2c3e50;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #eaeaea;
    transition: all 0.2s;
}

.article-tag:hover {
    background-color: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

/* ========== Related Articles ========== */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eaeaea;
}

/* ========== Category Page ========== */
.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.category-description {
    font-size: 18px;
    color: #7f8c8d;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .featured-grid, .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .featured-grid, .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-detail {
        padding: 24px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-image {
        height: 250px;
    }
}

/* ========== Ad Styles ========== */
.ad-space {
    margin: 20px 0;
}

.ad-placeholder {
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 40px 20px;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

.ad-top .ad-placeholder {
    min-height: 90px;
}

.ad-mid .ad-placeholder {
    min-height: 90px;
}

.ad-sidebar .ad-placeholder {
    min-height: 250px;
}

.ad-article .ad-placeholder {
    min-height: 90px;
    margin: 30px 0;
}

/* ========== Sticky Ad ========== */
.ad-sticky-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.ad-sticky-bottom.show {
    transform: translateY(0);
}

.ad-sticky-container {
    position: relative;
    padding: 10px;
}

.ad-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #7f8c8d;
    z-index: 1;
}
