/* style/index-latest-activities-overview.css */

/* Variables for colors */
:root {
    --page-primary-color: #007bff; /* Deep Blue */
    --page-secondary-color: #ffc107; /* Bright Gold */
    --page-text-dark: #212529; /* Dark text for light backgrounds */
    --page-text-light: #ffffff; /* Light text for dark backgrounds */
    --page-background-light: #f8f9fa; /* Light background */
    --page-background-medium: #e9ecef; /* Slightly darker light background */
    --page-background-dark: #0056b3; /* Darker blue for contrast */
    --page-accent-color: #ff8400; /* Complementary to primary, for emphasis */
}

/* Base styles for the page content wrapper */
.page-index-latest-activities-overview {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-text-dark);
    background-color: var(--page-background-light);
}

.page-index-latest-activities-overview__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-index-latest-activities-overview__hero {
    background: linear-gradient(135deg, var(--page-primary-color), var(--page-background-dark)); /* Darker blue for gradient */
    padding: 100px 0;
    text-align: center;
    color: var(--page-text-light); /* Light text on dark background */
    position: relative;
    overflow: hidden;
}

.page-index-latest-activities-overview__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.8;
    z-index: 0;
}

.page-index-latest-activities-overview__hero .page-index-latest-activities-overview__container {
    position: relative;
    z-index: 1;
}

.page-index-latest-activities-overview__title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-text-light);
}

.page-index-latest-activities-overview__subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.page-index-latest-activities-overview__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 0 10px;
    font-size: 1.1em;
    cursor: pointer;
}

.page-index-latest-activities-overview__btn--primary {
    background-color: var(--page-secondary-color); /* Gold button */
    color: var(--page-text-dark); /* Dark text on gold */
    border: 2px solid var(--page-secondary-color);
}

.page-index-latest-activities-overview__btn--primary:hover {
    background-color: #e6b000; /* Slightly darker gold */
    transform: translateY(-3px);
}

.page-index-latest-activities-overview__btn--secondary {
    background-color: transparent;
    color: var(--page-text-light);
    border: 2px solid var(--page-text-light);
}

.page-index-latest-activities-overview__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Sections */
.page-index-latest-activities-overview__section {
    padding: 60px 0;
    text-align: center;
}

.page-index-latest-activities-overview__section:nth-of-type(even) {
    background-color: var(--page-background-medium); /* Slightly darker light background */
}

.page-index-latest-activities-overview__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--page-primary-color);
    font-weight: bold;
}

.page-index-latest-activities-overview__section-title .highlight {
    color: var(--page-secondary-color);
}

.page-index-latest-activities-overview__description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--page-text-dark);
}

/* Activity Cards */
.page-index-latest-activities-overview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-latest-activities-overview__activity-card {
    background-color: var(--page-text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index-latest-activities-overview__activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-latest-activities-overview__card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index-latest-activities-overview__card-title {
    font-size: 1.5em;
    color: var(--page-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-latest-activities-overview__card-text {
    color: var(--page-text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index-latest-activities-overview__card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-index-latest-activities-overview__card-features li {
    margin-bottom: 8px;
    color: var(--page-text-dark);
    position: relative;
    padding-left: 25px;
}

.page-index-latest-activities-overview__card-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--page-primary-color); /* Contrast for icon */
}

.page-index-latest-activities-overview__btn--link {
    display: inline-block;
    background-color: var(--page-primary-color);
    color: var(--page-text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push button to the bottom */
    cursor: pointer;
}

.page-index-latest-activities-overview__btn--link:hover {
    background-color: var(--page-background-dark);
}

/* How to Join Section */
.page-index-latest-activities-overview__how-to-join {
    background-color: var(--page-primary-color);
    color: var(--page-text-light);
    padding: 80px 0;
}

.page-index-latest-activities-overview__how-to-join .page-index-latest-activities-overview__section-title {
    color: var(--page-text-light);
}

.page-index-latest-activities-overview__how-to-join .page-index-latest-activities-overview__description {
    color: rgba(255, 255, 255, 0.9);
}

.page-index-latest-activities-overview__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-latest-activities-overview__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index-latest-activities-overview__step-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.page-index-latest-activities-overview__step-icon {
    font-size: 2.5em;
    color: var(--page-secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-latest-activities-overview__step-title {
    font-size: 1.4em;
    color: var(--page-text-light);
    margin-bottom: 10px;
}

.page-index-latest-activities-overview__step-text {
    color: rgba(255, 255, 255, 0.8); /* Sufficient contrast on primary blue */
    margin-bottom: 20px;
}

.page-index-latest-activities-overview__btn--link-small {
    display: inline-block;
    background-color: var(--page-secondary-color);
    color: var(--page-text-dark);
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.page-index-latest-activities-overview__btn--link-small:hover {
    background-color: #e6b000;
}

/* Why Join Section */
.page-index-latest-activities-overview__why-join {
    background-color: var(--page-background-light);
    padding: 80px 0;
}

.page-index-latest-activities-overview__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-latest-activities-overview__feature-item {
    background-color: var(--page-text-light);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-latest-activities-overview__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-latest-activities-overview__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-index-latest-activities-overview__feature-title {
    font-size: 1.3em;
    color: var(--page-primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index-latest-activities-overview__feature-text {
    color: var(--page-text-dark);
}

.page-index-latest-activities-overview__cta-block {
    margin-top: 60px;
    background-color: var(--page-secondary-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: var(--page-text-dark);
}

.page-index-latest-activities-overview__cta-text {
    font-size: 1.4em;
    margin-bottom: 25px;
    font-weight: bold;
    color: var(--page-text-dark); /* Ensure contrast on gold background */
}

/* FAQ Section */
.page-index-latest-activities-overview__faq {
    padding: 80px 0;
    background-color: var(--page-background-medium);
}

.page-index-latest-activities-overview__accordion {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-index-latest-activities-overview__accordion-item {
    background-color: var(--page-text-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-index-latest-activities-overview__accordion-header {
    width: 100%;
    background-color: var(--page-primary-color);
    color: var(--page-text-light);
    padding: 18px 25px;
    border: none;
    text-align: left;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index-latest-activities-overview__accordion-header:hover {
    background-color: var(--page-background-dark);
}

.page-index-latest-activities-overview__accordion-icon {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-index-latest-activities-overview__accordion-header.active .page-index-latest-activities-overview__accordion-icon {
    transform: rotate(45deg);
}

.page-index-latest-activities-overview__accordion-content {
    padding: 0 25px;
    background-color: #fcfcfc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: var(--page-text-dark); /* Ensure contrast on light background */
}

.page-index-latest-activities-overview__accordion-content.active {
    max-height: 200px; /* Adjust as needed, will be overridden by JS for scrollHeight */
    padding: 15px 25px;
}

.page-index-latest-activities-overview__accordion-content p {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--page-text-dark);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-index-latest-activities-overview__title {
        font-size: 2.8em;
    }
    .page-index-latest-activities-overview__section-title {
        font-size: 2em;
    }
    .page-index-latest-activities-overview__grid,
    .page-index-latest-activities-overview__steps-grid,
    .page-index-latest-activities-overview__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index-latest-activities-overview__hero {
        padding: 80px 0;
    }
    .page-index-latest-activities-overview__title {
        font-size: 2.2em;
    }
    .page-index-latest-activities-overview__subtitle {
        font-size: 1.1em;
    }
    .page-index-latest-activities-overview__btn {
        padding: 12px 25px;
        font-size: 1em;
        margin: 10px 0;
    }
    .page-index-latest-activities-overview__section {
        padding: 40px 0;
    }
    .page-index-latest-activities-overview__section-title {
        font-size: 1.8em;
    }
    .page-index-latest-activities-overview__cta-block {
        padding: 30px;
    }
    .page-index-latest-activities-overview__cta-text {
        font-size: 1.2em;
    }
}

@media (max-width: 576px) {
    .page-index-latest-activities-overview__title {
        font-size: 1.8em;
    }
    .page-index-latest-activities-overview__subtitle {
        font-size: 1em;
    }
    .page-index-latest-activities-overview__btn {
        display: block;
        width: 80%;
        margin: 15px auto;
    }
    .page-index-latest-activities-overview__grid,
    .page-index-latest-activities-overview__steps-grid,
    .page-index-latest-activities-overview__features-grid {
        grid-template-columns: 1fr;
    }
    .page-index-latest-activities-overview__activity-card,
    .page-index-latest-activities-overview__step-card,
    .page-index-latest-activities-overview__feature-item {
        padding: 20px;
    }
    .page-index-latest-activities-overview__accordion-header {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-index-latest-activities-overview__accordion-content {
        padding: 10px 20px;
    }
}