/* ============================================
   Homepage Styles
   ============================================ */

.homepage {
    background-color: #EAEAEA;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-background {
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================
   Categories Section
   ============================================ */
.categories-section {
    background-color: #dfdde8;
    padding: 20px 0;
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #cccad7;
    padding: 12px 24px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.category-btn:hover {
    background-color: #ac10ea;
}

.category-btn:hover .category-text a {
    color: #fff;
}

.category-icon {
    font-size: 20px;
}

.category-text {
    margin: 0;
}

.category-text a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgb(47, 47, 47);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ============================================
   Section Common Styles
   ============================================ */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: rgb(47, 47, 47);
    margin: 0 0 30px;
    text-align: center;
}

/* ============================================
   Popular Creators Section
   ============================================ */
.popular-creators-section {
    padding: 50px 0;
    background-color: #dfdde8;
}

.creators-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.creator-card {
    text-align: center;
}

.creator-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.creator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.creator-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin: 0;
}

.creator-name a {
    color: rgb(47, 47, 47);
    text-decoration: none;
    transition: color 0.3s ease;
}

.creator-name a:hover {
    color: #ac10ea;
}

/* ============================================
   New Content Section
   ============================================ */
.new-content-section {
    padding: 50px 0;
    background-color: #EAEAEA;
}

.new-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.content-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.content-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

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

.content-image a {
    display: block;
}

/* ============================================
   Inspiration Section
   ============================================ */
.inspiration-section {
    padding: 50px 0;
    background-color: #dfdde8;
}

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

.article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.article-info {
    padding: 20px;
}

.article-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.article-title a {
    color: rgb(47, 47, 47);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #ac10ea;
}

/* ============================================
   Challenge Section
   ============================================ */
.challenge-section {
    padding: 50px 0;
    background-color: #EAEAEA;
}

.challenge-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.challenge-info {
    flex: 1;
}

.challenge-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 15px;
}

.challenge-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px;
}

.challenge-participants {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 15px;
}

.participants-list {
    display: flex;
    gap: -10px;
}

.participant-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    margin-left: -10px;
}

.participant-avatar:first-child {
    margin-left: 0;
}

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

.participant-more {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #cccad7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: rgb(47, 47, 47);
    margin-left: -10px;
    border: 3px solid #fff;
}

.challenge-image {
    flex: 0 0 400px;
}

.challenge-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ============================================
   Past Challenges Section
   ============================================ */
.past-challenges-section {
    padding: 50px 0;
    background-color: #dfdde8;
}

.challenges-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.past-challenge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #cccad7;
    padding: 15px 25px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.past-challenge-item:hover {
    background-color: #ac10ea;
}

.past-challenge-item:hover .challenge-name a {
    color: #fff;
}

.challenge-icon {
    font-size: 24px;
}

.challenge-name {
    margin: 0;
}

.challenge-name a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgb(47, 47, 47);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    padding: 50px 0;
    background-color: #EAEAEA;
}

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

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: rgb(47, 47, 47);
    margin: 0 0 5px;
}

.author-role {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.testimonial-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: rgb(47, 47, 47);
    margin: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    .creators-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .categories-grid {
        flex-wrap: wrap;
    }

    .creators-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .challenge-content {
        flex-direction: column;
    }

    .challenge-image {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .challenges-list {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 250px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .creators-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .new-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        gap: 10px;
    }

    .category-btn {
        padding: 10px 15px;
    }

    .category-text a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 200px;
    }

    .categories-section {
        padding: 15px 0;
    }

    .category-btn {
        padding: 8px 12px;
    }

    .category-icon {
        font-size: 16px;
    }

    .creators-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .new-content-grid {
        grid-template-columns: 1fr;
    }

    .past-challenge-item {
        padding: 10px 15px;
    }

    .testimonial-card {
        padding: 20px;
    }
}
