/* Base Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --border-color: #dddddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

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

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

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    color: white;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

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

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

.nav-menu {
    display: flex;
}

.nav-menu li {
    position: relative;
    margin-left: 20px;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

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

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: var(--shadow);
    min-width: 200px;
    display: none;
    z-index: 1;
    border-radius: 4px;
}

.dropdown li {
    margin: 0;
}

.dropdown a {
    padding: 10px 15px;
}

.dropdown a:hover {
    background-color: var(--light-gray);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark-color);
    position: relative;
}

.hamburger:before, .hamburger:after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark-color);
    position: absolute;
    left: 0;
}

.hamburger:before {
    top: -6px;
}

.hamburger:after {
    bottom: -6px;
}

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

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

.search-box input {
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    padding: 8px 12px;
    width: 200px;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

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

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

/* Featured Posts */
.featured-posts {
    padding: 60px 0;
}

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

.main-feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.main-feature .card-img {
    height: 100%;
}

.main-feature .card-img img {
    height: 100%;
    object-fit: cover;
}

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

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

.card-img {
    position: relative;
    height: 200px;
}

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

.category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

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

.read-more {
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

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

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

/* Latest Posts */
.latest-posts {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.view-all i {
    margin-left: 5px;
    transition: var(--transition);
}

.view-all:hover i {
    transform: translateX(3px);
}

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

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

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

.post-card .card-img {
    position: relative;
}

.post-card .category {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.post-meta {
    display: flex;
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
}

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

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

/* Categories Section */
.categories {
    padding: 60px 0;
}

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

.category-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    display: block;
    color: var(--text-color);
}

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

.category-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background-color: var(--dark-color);
    color: white;
}

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

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

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

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

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

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

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

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

.footer-logo p {
    opacity: 0.7;
}

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

.footer-links ul, .footer-categories ul {
    display: grid;
    grid-gap: 10px;
}

.footer-links a, .footer-categories a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover, .footer-categories a:hover {
    color: var(--primary-color);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom p {
    opacity: 0.7;
}

.footer-bottom ul {
    display: flex;
}

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

.footer-bottom a {
    color: #ccc;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .main-feature {
        grid-template-columns: 1fr;
    }
    
    .main-feature .card-img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 20px;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0 0 10px 0;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }
    
    .has-dropdown.active .dropdown {
        display: block;
    }
    
    .search-box {
        width: 100%;
        margin-top: 15px;
    }
    
    .search-box form {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom ul {
        margin-top: 10px;
        justify-content: center;
    }
    
    .footer-bottom li {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .featured-posts, .latest-posts, .categories, .newsletter {
        padding: 40px 0;
    }
    
    .main-feature .card-img {
        height: 200px;
    }
}
