/* style/resources-registration-withdrawal-guide.css */
.page-resources-registration-withdrawal-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default for light background */
    background-color: #FFFFFF; /* Explicitly setting for contrast check */
}

/* Fixed Header Spacing */
.page-resources-registration-withdrawal-guide__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first visible section */
}

.page-resources-registration-withdrawal-guide__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #FFFFFF;
}

.page-resources-registration-withdrawal-guide__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-resources-registration-withdrawal-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-resources-registration-withdrawal-guide__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit from parent section's color */
}

.page-resources-registration-withdrawal-guide__subsection-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

.page-resources-registration-withdrawal-guide__text-block {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-resources-registration-withdrawal-guide__text-block a {
    color: #017439; /* Link color */
    text-decoration: underline;
}

.page-resources-registration-withdrawal-guide__text-block a:hover {
    color: #005a2d; /* Darker green on hover */
}

/* Hero Section */
.page-resources-registration-withdrawal-guide__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

.page-resources-registration-withdrawal-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-resources-registration-withdrawal-guide__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-resources-registration-withdrawal-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-resources-registration-withdrawal-guide__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

/* CTA Buttons */
.page-resources-registration-withdrawal-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources-registration-withdrawal-guide__btn-primary,
.page-resources-registration-withdrawal-guide__btn-secondary,
.page-resources-registration-withdrawal-guide__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1.1em;
    text-align: center; /* Ensure button text is centered */
}

.page-resources-registration-withdrawal-guide__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-resources-registration-withdrawal-guide__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-resources-registration-withdrawal-guide__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-resources-registration-withdrawal-guide__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

.page-resources-registration-withdrawal-guide__btn-tertiary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-resources-registration-withdrawal-guide__btn-tertiary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* Content Grid for text and image */
.page-resources-registration-withdrawal-guide__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-resources-registration-withdrawal-guide__content-grid.reverse {
    flex-direction: row-reverse;
}

.page-resources-registration-withdrawal-guide__text-content {
    flex: 1;
}

.page-resources-registration-withdrawal-guide__image-right,
.page-resources-registration-withdrawal-guide__image-left {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
    object-fit: cover;
}

/* Lists */
.page-resources-registration-withdrawal-guide__ordered-list,
.page-resources-registration-withdrawal-guide__unordered-list {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-resources-registration-withdrawal-guide__ordered-list li,
.page-resources-registration-withdrawal-guide__unordered-list li {
    margin-bottom: 8px;
}

/* Video Section */
.page-resources-registration-withdrawal-guide__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #000; /* Fallback for video area */
}

.page-resources-registration-withdrawal-guide__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer; /* Indicates it's clickable */
}

/* Card Grid */
.page-resources-registration-withdrawal-guide__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-registration-withdrawal-guide__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    color: #333333; /* Ensure dark text on white card */
}

.page-resources-registration-withdrawal-guide__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-resources-registration-withdrawal-guide__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-resources-registration-withdrawal-guide__card-title a {
    color: #017439;
    text-decoration: none;
}

.page-resources-registration-withdrawal-guide__card-title a:hover {
    text-decoration: underline;
}

.page-resources-registration-withdrawal-guide__card-text {
    font-size: 1em;
    padding: 0 15px;
    margin-bottom: 20px;
}

.page-resources-registration-withdrawal-guide__promotions-note {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
}

.page-resources-registration-withdrawal-guide__promotions-note a {
    color: #017439;
    font-weight: bold;
    text-decoration: none;
}
.page-resources-registration-withdrawal-guide__promotions-note a:hover {
    text-decoration: underline;
}


/* FAQ Section */
.page-resources-registration-withdrawal-guide__faq-list {
    margin-top: 30px;
}

.page-resources-registration-withdrawal-guide__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFFFFF;
}

.page-resources-registration-withdrawal-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker on hover */
    transition: background-color 0.3s ease;
}

.page-resources-registration-withdrawal-guide__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-registration-withdrawal-guide__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #FFFFFF;
}

.page-resources-registration-withdrawal-guide__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Bright color for toggle icon */
}

.page-resources-registration-withdrawal-guide__faq-item.active .page-resources-registration-withdrawal-guide__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-resources-registration-withdrawal-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0; /* Slightly off-white for answer text */
}

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

.page-resources-registration-withdrawal-guide__faq-answer p {
    margin-bottom: 10px;
}

.page-resources-registration-withdrawal-guide__faq-answer a {
    color: #FFFF00; /* Link color in FAQ answer */
    text-decoration: underline;
}

.page-resources-registration-withdrawal-guide__faq-answer a:hover {
    color: #ffd700;
}

/* Conclusion Section */
.page-resources-registration-withdrawal-guide__conclusion-section {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-registration-withdrawal-guide__hero-title {
        font-size: 3em;
    }
    .page-resources-registration-withdrawal-guide__hero-description {
        font-size: 1.2em;
    }
    .page-resources-registration-withdrawal-guide__section-title {
        font-size: 2em;
    }
    .page-resources-registration-withdrawal-guide__subsection-title {
        font-size: 1.6em;
    }
    .page-resources-registration-withdrawal-guide__content-grid {
        flex-direction: column;
    }
    .page-resources-registration-withdrawal-guide__image-right,
    .page-resources-registration-withdrawal-guide__image-left {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources-registration-withdrawal-guide {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-registration-withdrawal-guide__hero-section {
        min-height: 450px;
    }
    .page-resources-registration-withdrawal-guide__hero-title {
        font-size: 2.5em;
    }
    .page-resources-registration-withdrawal-guide__hero-description {
        font-size: 1em;
    }
    .page-resources-registration-withdrawal-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-registration-withdrawal-guide__btn-primary,
    .page-resources-registration-withdrawal-guide__btn-secondary,
    .page-resources-registration-withdrawal-guide__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources-registration-withdrawal-guide__section-title {
        font-size: 1.8em;
    }
    .page-resources-registration-withdrawal-guide__subsection-title {
        font-size: 1.4em;
    }
    .page-resources-registration-withdrawal-guide__text-block {
        font-size: 0.95em;
    }
    .page-resources-registration-withdrawal-guide__card-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-registration-withdrawal-guide__card-image {
        height: 200px;
    }
    .page-resources-registration-withdrawal-guide__faq-question {
        padding: 15px 20px;
    }
    .page-resources-registration-withdrawal-guide__faq-title {
        font-size: 1.1em;
    }
    .page-resources-registration-withdrawal-guide__faq-answer {
        padding: 0 20px;
    }
    .page-resources-registration-withdrawal-guide__faq-item.active .page-resources-registration-withdrawal-guide__faq-answer {
        padding: 10px 20px;
    }

    /* Mobile image responsiveness */
    .page-resources-registration-withdrawal-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    .page-resources-registration-withdrawal-guide__hero-image {
        min-width: unset !important; /* Allow hero image to scale down */
        min-height: unset !important;
    }
    .page-resources-registration-withdrawal-guide__image-right,
    .page-resources-registration-withdrawal-guide__image-left {
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    .page-resources-registration-withdrawal-guide__card-image {
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }

    /* Mobile video responsiveness */
    .page-resources-registration-withdrawal-guide video,
    .page-resources-registration-withdrawal-guide__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-registration-withdrawal-guide__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-registration-withdrawal-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    }
    .page-resources-registration-withdrawal-guide__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}