/* style/resources-download-guide.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --register-login-font-color: #FFFF00;
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --dark-section-bg: #017439;
    --light-section-bg: #ffffff;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --card-bg-light-mode: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources-download-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

/* Ensure proper spacing from fixed header */
.page-resources-download-guide__hero-section {
    padding-top: var(--header-offset, 120px);
}

.page-resources-download-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-download-guide__hero-section {
    position: relative;
    background-color: var(--dark-section-bg);
    color: var(--light-text-color);
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
}

.page-resources-download-guide__hero-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px; /* Adjust as needed */
    height: auto;
    object-fit: cover;
    z-index: 1;
    opacity: 0.8;
}

.page-resources-download-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    z-index: 2;
    padding-top: 40px;
}

.page-resources-download-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.page-resources-download-guide__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.page-resources-download-guide__section {
    padding: 60px 0;
}

.page-resources-download-guide__dark-section {
    background-color: var(--dark-section-bg);
    color: var(--light-text-color);
}

.page-resources-download-guide__light-bg {
    background-color: var(--light-section-bg);
    color: var(--dark-text-color);
}

.page-resources-download-guide__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-resources-download-guide__dark-section .page-resources-download-guide__section-title {
    color: var(--secondary-color);
}

.page-resources-download-guide__light-bg .page-resources-download-guide__section-title {
    color: var(--primary-color);
}

.page-resources-download-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources-download-guide__sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-resources-download-guide__dark-section .page-resources-download-guide__sub-title {
    color: var(--secondary-color);
}

.page-resources-download-guide__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-resources-download-guide__feature-item {
    background-color: var(--card-bg-light-mode);
    color: var(--dark-text-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

.page-resources-download-guide__feature-item strong {
    color: var(--primary-color);
}

.page-resources-download-guide__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.page-resources-download-guide__download-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-download-guide__download-card {
    background-color: var(--card-bg-dark-mode);
    color: var(--light-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-download-guide__download-card .page-resources-download-guide__card-title {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.page-resources-download-guide__download-card .page-resources-download-guide__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: contain; /* Use contain to show full image without cropping */
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-resources-download-guide__step-list {
    list-style: decimal;
    text-align: left;
    margin: 0 0 30px 20px;
    padding: 0;
    flex-grow: 1;
}

.page-resources-download-guide__step-item {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-resources-download-guide__step-item strong {
    color: var(--register-login-font-color);
}

.page-resources-download-guide__checklist {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-resources-download-guide__checklist-item {
    background-color: var(--card-bg-light-mode);
    color: var(--dark-text-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--register-button-bg);
}

.page-resources-download-guide__checklist-item strong {
    color: var(--register-button-bg);
}

.page-resources-download-guide__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-download-guide__feature-item-card {
    background-color: var(--card-bg-dark-mode);
    color: var(--light-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-download-guide__feature-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-download-guide__feature-item-card .page-resources-download-guide__card-title {
    color: var(--register-login-font-color);
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page-resources-download-guide__feature-item-card p {
    font-size: 1em;
    line-height: 1.5;
}

.page-resources-download-guide__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-download-guide__faq-item {
    background-color: var(--card-bg-light-mode);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources-download-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid transparent; /* To prevent double border */
}

.page-resources-download-guide__faq-question:hover {
    background-color: #f5f5f5;
}

.page-resources-download-guide__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.page-resources-download-guide__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-resources-download-guide__faq-item.active .page-resources-download-guide__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-download-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-resources-download-guide__faq-item.active .page-resources-download-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px;
}

.page-resources-download-guide__faq-answer p {
    margin: 0;
    font-size: 1em;
    text-align: justify;
}

.page-resources-download-guide__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--dark-section-bg);
    color: var(--light-text-color);
}

.page-resources-download-guide__cta-section .page-resources-download-guide__section-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-resources-download-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-resources-download-guide__btn-primary,
.page-resources-download-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-download-guide__btn-primary {
    background-color: var(--register-button-bg);
    color: var(--register-login-font-color);
    border-color: var(--register-button-bg);
}

.page-resources-download-guide__btn-primary:hover {
    background-color: darken(var(--register-button-bg), 10%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-download-guide__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-resources-download-guide__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-download-guide__btn-block {
    width: 100%;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-download-guide__hero-title {
        font-size: 2.8em;
    }

    .page-resources-download-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-download-guide {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-download-guide__hero-section {
        padding-bottom: 40px;
    }

    .page-resources-download-guide__hero-image {
        position: static;
        transform: none;
        margin-top: 30px;
        max-width: 100%;
    }

    .page-resources-download-guide__hero-title {
        font-size: 2.2em;
        padding-top: 20px;
    }

    .page-resources-download-guide__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-resources-download-guide__hero-cta-buttons,
    .page-resources-download-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-resources-download-guide__btn-primary,
    .page-resources-download-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-download-guide__container {
        padding: 0 15px;
    }

    .page-resources-download-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-download-guide__sub-title {
        font-size: 1.5em;
    }

    .page-resources-download-guide__download-platforms {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-download-guide__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-download-guide__faq-question h3 {
        font-size: 1em;
    }

    .page-resources-download-guide__faq-toggle {
        font-size: 1.5em;
    }

    /* Image responsiveness */
    .page-resources-download-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-download-guide__section,
    .page-resources-download-guide__card,
    .page-resources-download-guide__container,
    .page-resources-download-guide__download-card,
    .page-resources-download-guide__feature-item-card,
    .page-resources-download-guide__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-resources-download-guide__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
}

@media (max-width: 480px) {
    .page-resources-download-guide__hero-title {
        font-size: 1.8em;
    }

    .page-resources-download-guide__section-title {
        font-size: 1.5em;
    }

    .page-resources-download-guide__btn-primary,
    .page-resources-download-guide__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources-download-guide__faq-question h3 {
        font-size: 0.9em;
    }
}