/* Homepage Styles */
.homepage-main {
    padding: 0;
}

/* Hero Section */
.home-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.home-hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-title {
    font-size: 48px;
    margin: 0 0 15px;
    color: #212529;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: #495057;
    margin: 0 0 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Featured Categories */
.featured-categories {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-name {
    margin: 15px 20px 5px;
    font-size: 18px;
    color: #212529;
}

.category-count {
    margin: 0 20px 20px;
    color: #6c757d;
    font-size: 14px;
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Call to Action */
.home-cta {
    padding: 100px 0;
    background: #343a40;
    color: #fff;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    margin: 0 0 15px;
}

.cta-text {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #dee2e6;
}

/* Latest Posts */
.latest-posts {
    padding: 80px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 20px;
    margin: 0 0 10px;
}

.post-title a {
    color: #212529;
    text-decoration: none;
}

.post-title a:hover {
    color: #d63384;
}

.post-meta {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-excerpt {
    margin-bottom: 15px;
    color: #495057;
}

.read-more {
    color: #d63384;
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .home-hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        text-align: center;
    }
    
    .categories-grid,
    .products-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .categories-grid,
    .products-grid,
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-image {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}