:root {
    --primary-color: #1e88e5;
    --secondary-color: #03a9f4;
    --accent-color: #00bcd4;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --text-color: #333;
    --link-color: #1e88e5;
    --footer-color: #0d47a1;
    --gradient-bg: linear-gradient(135deg, #1e88e5 0%, #00bcd4 100%);
}

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

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

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

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

a:hover {
    color: white;
}

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

/* Header Styles */
.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-trending span {
    margin-right: 20px;
    font-size: 0.9rem;
}

.social-links a {
    color: white;
    margin-left: 15px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.main-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.logo2 span {
    color: var(--secondary-color);
}

.logo-tagline {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-top: -5px;
}

.search-subscribe {
    display: flex;
    align-items: center;
}

.search-form {
    position: relative;
    margin-right: 15px;
}

.search-input {
    padding: 10px 15px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
    width: 220px;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1rem;
    padding: 5px 10px;
}

.subscribe-button {
    background: var(--gradient-bg);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.subscribe-button i {
    margin-right: 8px;
}

.subscribe-button:hover {
    box-shadow: 0 5px 15px rgba(140, 82, 255, 0.3);
    transform: translateY(-2px);
}

.nav-container {
    background-color: var(--primary-color);
    border-radius: 4px;
    margin-bottom: 20px;
}

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

nav li {
    position: relative;
}

nav li a {
    display: block;
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Ad Styles */
.ad-section {
    margin: 30px 0;
}

.wide-ad {
    background-color: #f0f0f0;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    position: relative;
}

.ad-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px 10px;
    border-radius: 0 0 4px 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.ad-placeholder {
    background-color: #e0e0e0;
    display: inline-block;
}

.ad-placeholder.wide {
    width: 100%;
    height: 90px;
}

.ad-placeholder.block {
    width: 300px;
    height: 250px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
}

.trending-news {
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.trending-label {
    background: var(--gradient-bg);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.trending-label i {
    margin-right: 5px;
}

.trending-content {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

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

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

.featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.category-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.featured-excerpt {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
}

.featured-meta {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

.featured-meta span {
    margin-right: 20px;
    color: #777;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.featured-meta span i {
    margin-right: 5px;
    color: var(--primary-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: var(--gradient-bg);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    box-shadow: 0 5px 15px rgba(140, 82, 255, 0.3);
    color: white;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.section-title {
    position: relative;
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-bg);
}

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

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.article-meta {
    color: #888;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
}

.article-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.article-meta span i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--gradient-bg);
    padding: 60px 0;
    color: white;
    margin-top: 40px;
}

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

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    margin-bottom: 25px;
}

.newsletter-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-button {
    background-color: var(--dark-color);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: #000;
}

.newsletter-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
}

.check-icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.8rem;
}

.block-ad {
    justify-self: end;
    position: relative;
}

/* Footer */
footer {
    background-color: var(--footer-color);
    color: white;
    padding-top: 50px;
}

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

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    margin-top: 20px;
}

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

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* Article page specific styles */
.article-container {
    display: grid;
    grid-template-columns: 3fr 275px;
    gap: 30px;
    margin-bottom: 40px;
}

.article-main {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.article-sidebar {
    align-self: start;
}

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

.article-featured-image {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

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

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

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

.article-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px;
    color: var(--dark-color);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-quote {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    margin: 25px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}

.article-quote-author {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
}

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

.article-tags span {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 5px 15px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.article-tags span:hover {
    background-color: var(--secondary-color);
    color: white;
}

.article-author {
    display: flex;
    align-items: center;
    margin: 40px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.author-social a {
    color: var(--dark-color);
    margin-right: 15px;
    transition: color 0.3s ease;
}

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

.article-share {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.share-label {
    margin-right: 15px;
    font-weight: 600;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

.share-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.share-buttons a.email {
    background-color: #777;
}

.sidebar-block {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.sidebar-block-title {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-block-content {
    padding: 20px;
    position: relative;
}

.sidebar-block-content.ad-container {
    padding: 0;
    position: relative;
}

.popular-articles {
    list-style: none;
}

.popular-articles li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-articles li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-article-link {
    display: flex;
    align-items: center;
}

.popular-article-image {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    margin-right: 15px;
    overflow: hidden;
}

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

.popular-article-title {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.popular-article-link:hover .popular-article-title {
    color: var(--primary-color);
}

.related-article-card {
    margin-bottom: 20px;
}

.related-article-image {
    height: 150px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.related-article-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.related-article-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.ad-container {
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    box-sizing: border-box;
}

.ad-placeholder.block {
    width: 250px;
    height: 250px;
    background-size: contain;
}

.ad-placeholder.wide {
    width: 100%;
    height: 90px;
    background-size: contain;
}

/* Category Page Specific Styles */
.category-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.category-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.category-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.category-articles {
    flex-grow: 1;
}

.articles-list {
    margin-bottom: 40px;
}

/* Article Row Styles */
.article-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-row:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.article-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-row:hover .article-row-image img {
    transform: scale(1.05);
}

.article-row-content {
    padding: 20px 30px;
}

.article-row-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-row-title a {
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.article-row-title a:hover {
    color: var(--primary-color);
}

.article-row-excerpt {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination-link.disabled {
    color: #999;
    cursor: not-allowed;
}

.pagination-link.disabled:hover {
    background-color: transparent;
    color: #999;
}

.pagination-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.pagination-list li {
    margin: 0 3px;
}

.pagination-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-list a:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination-list a.current {
    background-color: var(--primary-color);
    color: white;
}

.pagination-ellipsis {
    color: #999;
    padding: 10px 5px;
}

/* Icons in pagination */
.pagination i {
    margin: 0 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .newsletter-container {
        grid-template-columns: 1fr;
    }
    
    .block-ad {
        justify-self: center;
        margin-top: 30px;
    }
    
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .article-row {
        grid-template-columns: 1fr;
    }
    
    .article-row-image {
        height: 250px;
    }
    
    .article-row-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo-container {
        margin-bottom: 20px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .newsletter-benefits {
        grid-template-columns: 1fr;
    }
    
    .top-bar-content {
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        margin-top: 10px;
    }
    
    .social-links a:first-child {
        margin-left: 0;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .article-row-title {
        font-size: 1.3rem;
    }
    
    .article-row-excerpt {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .search-subscribe {
        flex-direction: column;
        width: 100%;
    }
    
    .search-form {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .subscribe-button {
        width: 100%;
        justify-content: center;
    }
    
    .trending-label {
        display: none;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav li a {
        padding: 12px 15px;
    }
    
    .article-row-image {
        height: 200px;
    }
    
    .article-row-content {
        padding: 15px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 20px;
    }
    
    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .prev-page, .next-page {
        width: 100%;
        max-width: 200px;
        text-align: center;
        justify-content: center;
    }
}