/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --dark-gray: #7f8c8d;
    --light-gray: #bdc3c7;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header Styles */
.site-header {
    background-color: var(--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 h1 {
    font-size: 24px;
    color: var(--dark-color);
}

.logo h1 a {
    color: inherit;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.language-switcher select,
.country-switcher select {
    padding: 8px 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background-color: var(--white);
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li a {
    display: block;
    padding: 15px 20px;
    font-weight: 500;
    color: var(--dark-color);
}

.main-nav li a:hover {
    color: var(--primary-color);
    background-color: var(--light-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: var(--white);
    padding: 15px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li a {
    display: block;
    padding: 10px 0;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1495020689067-958852a7765e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&h=600') no-repeat center center/cover;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 16px;
}

.search-form button {
    padding: 0 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: var(--secondary-color);
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--dark-color);
}

/* Featured News */
.featured-news {
    margin-bottom: 50px;
}

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

.featured-main .featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.featured-main .article-image {
    height: 300px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.featured-main .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-main .article-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.featured-main .article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.featured-main .article-content p {
    margin-bottom: 20px;
}

.featured-main .article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-share a {
    color: var(--dark-color);
    font-size: 1.2rem;
}

.social-share a:hover {
    color: var(--primary-color);
}

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

.secondary-article {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.secondary-article:last-child {
    border-bottom: none;
}

.secondary-article .article-image {
    height: 80px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.secondary-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-article h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.secondary-article .article-meta {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Category Highlights */
.category-highlights {
    margin-bottom: 50px;
}

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

.category-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.category-article h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.category-article p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.view-all {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-color);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.view-all:hover {
    border-bottom-color: var(--primary-color);
}

/* News Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.card-content p {
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* News List Layout */
.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.news-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.item-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.item-image {
    max-height: 300px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.item-image img {
    width: 100%;
    height: auto;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* Single Article */
.single-article {
    padding: 40px 0;
}

.article-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.article-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-content {
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    color: var(--dark-color);
}

.tag a {
    color: inherit;
}

.social-share {
    margin-bottom: 40px;
}

.social-share h4 {
    margin-bottom: 15px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 0.9rem;
    text-align: center;
}

.share-buttons .facebook {
    background-color: #3b5998;
}

.share-buttons .twitter {
    background-color: #1da1f2;
}

.share-buttons .linkedin {
    background-color: #0077b5;
}

.share-buttons .email {
    background-color: var(--gray-color);
}

.related-articles {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

.related-articles h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.related-article {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.related-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-image {
    height: 120px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.related-article .date {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.no-results p {
    margin-bottom: 20px;
}

.back-home {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.back-home:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--gray-color);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Ad Styles */
.ad-placeholder {
    padding: 20px;
    background-color: var(--light-color);
    border: 1px dashed var(--gray-color);
    text-align: center;
    margin: 20px 0;
    color: var(--gray-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-main .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-main .article-image {
        height: 250px;
    }
    
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .related-articles {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

/* Static Pages */
.static-page {
    padding: 40px 0;
}

.page-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.page-content h2 {
    margin: 25px 0 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.page-content h3 {
    margin: 20px 0 10px;
    font-size: 1.3rem;
}

.page-content h4 {
    margin: 15px 0 10px;
    font-size: 1.1rem;
}

.page-content p, .page-content ul {
    margin-bottom: 15px;
}

.page-content ul {
    padding-left: 20px;
}

/* Contact Page */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.contact-method {
    text-align: center;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-method h3 {
    margin-bottom: 10px;
}

.social-contact {
    margin: 40px 0;
    text-align: center;
}

.social-contact .social-links {
    justify-content: center;
    margin-top: 20px;
}

.faq-section {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Base button style */
.browse-source {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #4a6fa5;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    margin-right: 10px;
}

/* Hover effect */
.browse-source:hover {
    background-color: #3a5a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Active/pressed effect */
.browse-source:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

/* Optional: Add a small icon */
.browse-source::before {
    content: "→";
    margin-right: 6px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.browse-source:hover::before {
    transform: translateX(3px);
}

/* Alternative color scheme for different categories */
.browse-source.technology {
    background-color: #6c5ce7;
}
.browse-source.business {
    background-color: #00b894;
}
.browse-source.sports {
    background-color: #e17055;
}
.browse-source.entertainment {
    background-color: #fd79a8;
}
.browse-source.health {
    background-color: #00cec9;
}

/* Small size variant */
.browse-source.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Outline variant */
.browse-source.outline {
    background-color: transparent;
    border: 2px solid #4a6fa5;
    color: #4a6fa5 !important;
}

.browse-source.outline:hover {
    background-color: #4a6fa5;
    color: white !important;
}

/* Gradient version */
.browse-source.gradient {
    background: linear-gradient(135deg, #4a6fa5 0%, #6c5ce7 100%);
}

.browse-source.gradient:hover {
    background: linear-gradient(135deg, #3a5a8a 0%, #5a4cc7 100%);
}