/**
 * Homepage Template Styles
 * Modern, attractive, and fully responsive design for the homepage
 */

/* General Homepage Styles */
.homepage-template {
    overflow-x: hidden;
}

.homepage-template section {
    padding: 60px 0;
}

.homepage-template .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    color: #333;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #2271b1;
    border-radius: 3px;
}

.view-all-link {
    text-align: center;
    margin-top: 30px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: transparent;
    color: #2271b1;
    border: 2px solid #2271b1;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover {
    background-color: #2271b1;
    color: #fff;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta-button {
    display: inline-block;
    padding: 14px 28px;
    background-color: #2271b1;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.2);
}

.hero-cta-button:hover {
    background-color: #135e96;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.3);
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: translateY(-10px);
}

/* Featured Categories Section */
.featured-categories-section {
    background-color: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card-inner {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-image::before {
    opacity: 1;
}

.category-icon {
    height: 160px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 48px;
    color: #2271b1;
}

.category-content {
    padding: 20px;
    text-align: center;
    background-color: #fff;
}

.category-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    transition: color 0.3s ease;
}

.category-card:hover .category-content h3 {
    color: #2271b1;
}

.category-count {
    font-size: 14px;
    color: #777;
    display: block;
}

/* Products Sections (Featured & Affiliate) */
.featured-products-section,
.affiliate-products-section {
    background-color: #f8f9fa;
}

.featured-products-section .products-grid,
.affiliate-products-section .products-grid {
    gap: 30px;
}

/* Blog Posts Section */
.recent-posts-section {
    background-color: #fff;
}

.recent-posts-section .posts-grid {
    gap: 30px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f0f7fc;
    position: relative;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px 40px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.testimonial-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    min-width: 300px;
    max-width: 400px;
    flex: 1;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.quote-icon {
    margin-bottom: 15px;
    color: #2271b1;
    font-size: 24px;
    opacity: 0.5;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
    color: #333;
}

.author-role {
    font-size: 13px;
    color: #777;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    padding: 70px 0;
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.newsletter-content p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.subscription-form .form-group {
    display: flex;
}

.subscription-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
}

.subscribe-button {
    padding: 0 25px;
    background-color: #fff;
    color: #2271b1;
    border: none;
    border-radius: 0 30px 30px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-button:hover {
    background-color: #f8f9fa;
}

.privacy-notice {
    margin-top: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .homepage-template section {
        padding: 50px 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content {
        margin-bottom: 30px;
    }
    
    .newsletter-content p {
        margin: 0 auto;
    }
    
    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .homepage-template section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .category-image,
    .category-icon {
        height: 140px;
    }
    
    .testimonial-card {
        min-width: 260px;
        padding: 20px;
    }
    
    .subscription-form .form-group {
        flex-direction: column;
    }
    
    .subscription-form input[type="email"] {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .subscribe-button {
        width: 100%;
        border-radius: 30px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-cta-button {
        width: 100%;
        text-align: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-image,
    .category-icon {
        height: 180px;
    }
} 