/* Base Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-bg: #f5f7fa;
    --dark-bg: #2c3e50;
    --text-color: #333;
    --light-text: #fff;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

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

ul {
    list-style: none;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: #1a252f;
    transform: translateY(-3px);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/webp/hero-bg.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Featured Section */
.featured {
    padding: 100px 0;
    background-color: #fff;
}

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

.featured-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.featured-img {
    height: 100%;
    overflow: hidden;
}

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

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

.featured-content {
    padding: 30px;
    background-color: #fff;
}

.featured-content .category {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.featured-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.featured-content p {
    color: #555;
    margin-bottom: 20px;
}

.author {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.author span {
    font-size: 0.9rem;
    color: #555;
}

.date {
    margin-left: 10px;
    font-size: 0.8rem;
    color: #888;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

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

.featured-sidebar {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.trending h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--secondary-color);
}

.trending li {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.trending .number {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 10px;
    opacity: 0.8;
}

.trending .text {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.trending li:hover .text {
    color: var(--primary-color);
    cursor: pointer;
}

/* Articles Section */
.articles {
    padding: 100px 0;
    background-color: var(--light-bg);
}

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

.article-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

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

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

.article-img .category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.article-content h3 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.article-content p {
    color: #555;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

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

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

.article-meta i {
    margin-right: 5px;
}

.load-more {
    text-align: center;
}

/* Timeline Section */
.timeline {
    padding: 100px 0;
    background-color: #fff;
}

.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 40px);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #f8f9fa;
    top: 20px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px;
    transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
    transform: rotate(45deg);
}

.timeline-content h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.timeline-content p {
    color: #555;
    font-size: 0.95rem;
}

.timeline-content.future {
    background-color: rgba(52, 152, 219, 0.1);
}

.timeline-content.future::after {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/webp/newsletter-bg.webp') no-repeat center center/cover;
    color: var(--light-text);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.newsletter-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

#newsletter-message {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--light-text);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #1a252f;
    color: #fff;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #bbb;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-column ul li a {
    color: #bbb;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links li a {
    display: flex;
    align-items: center;
}

.social-links li a i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid #2c3e50;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    color: #bbb;
}

.footer-bottom ul {
    display: flex;
}

.footer-bottom ul li {
    margin-left: 15px;
}

.footer-bottom ul li a {
    color: #bbb;
}

.footer-bottom ul li a:hover {
    color: var(--primary-color);
}

/* AdSense */
.adsense-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 15px;
}

.ad-banner-top, .ad-banner-bottom {
    background-color: #f0f0f0;
    padding: 15px 0;
    text-align: center;
}

.ad-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ad-placeholder, .adsense-placeholder {
    width: 100%;
    height: 100px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    border: 1px dashed #bbb;
}

.ad-text, .adsense-text {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .featured-wrapper {
        grid-template-columns: 1fr;
    }
    
    .featured-sidebar {
        margin-top: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-main {
        grid-template-columns: 1fr;
    }
    
    .featured-img {
        height: 250px;
    }
    
    .timeline-wrapper::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
    
    .timeline-content::after {
        display: none;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .form-group button {
        border-radius: var(--border-radius);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    .footer-bottom ul li {
        margin: 0 8px;
    }
}

@media screen and (max-width: 576px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}
