/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --gray: #95a5a6;
    --light-gray: #f5f5f5;
    --border-radius: 4px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    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(--secondary-color);
}


/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 50px 0 80px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background-color: var(--primary-color);
}

/* Blog Content */
.blog-content {
    padding: 50px 0;
}

.blog-content .container {
    display: flex;
    flex-wrap: wrap;
}

.main-content {
    flex: 0 0 70%;
    max-width: 70%;
    padding-right: 30px;
}

.sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

.blog-post {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-post.featured {
    display: flex;
    margin-bottom: 50px;
}

.blog-post.featured .post-image {
    flex: 0 0 50%;
    max-width: 50%;
}

.blog-post.featured .post-content {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 30px;
}

.blog-post .post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-post.featured .post-image {
    height: auto;
}

.blog-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-post .post-content {
    padding: 20px;
}

.blog-post.featured .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post h2, .blog-post h3 {
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-post h2 a, .blog-post h3 a {
    color: var(--primary-color);
}

.blog-post h2 a:hover, .blog-post h3 a:hover {
    color: var(--secondary-color);
}

.blog-post.featured h2 {
    font-size: 1.8rem;
}

.blog-post h3 {
    font-size: 1.4rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.blog-post p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--secondary-color);
}

.read-more i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(3px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.pagination a:hover, .pagination a.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Sidebar Styles */
.sidebar-widget {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.category-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.category-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    transition: var(--transition);
}

.category-list li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.category-list li a span {
    background-color: var(--light-gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.popular-posts .popular-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.popular-posts .popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 15px;
}

.popular-post-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.popular-post-content .date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    outline: none;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags a {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light-gray);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.tags a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.9)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--white);
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 50px;
    }

    .blog-post.featured {
        flex-direction: column;
    }

    .blog-post.featured .post-image,
    .blog-post.featured .post-content {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        margin-bottom: 30px;
    }

    .footer-col:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}