/* style/resources-secure-withdrawal-guide.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --login-button-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
}

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

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

.page-resources-secure-withdrawal-guide__hero-section {
    position: relative;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    overflow: hidden;
}

.page-resources-secure-withdrawal-guide__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-secure-withdrawal-guide__light-bg {
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-resources-secure-withdrawal-guide__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
    border-radius: 10px;
}

.page-resources-secure-withdrawal-guide__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-resources-secure-withdrawal-guide__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources-secure-withdrawal-guide__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-resources-secure-withdrawal-guide__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image for text readability */
}

.page-resources-secure-withdrawal-guide__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

.page-resources-secure-withdrawal-guide__light-bg .page-resources-secure-withdrawal-guide__section-title,
.page-resources-secure-withdrawal-guide__light-bg .page-resources-secure-withdrawal-guide__text-block {
    color: var(--text-dark);
}

.page-resources-secure-withdrawal-guide__dark-bg .page-resources-secure-withdrawal-guide__section-title,
.page-resources-secure-withdrawal-guide__dark-bg .page-resources-secure-withdrawal-guide__text-block {
    color: var(--text-light);
}

.page-resources-secure-withdrawal-guide__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-resources-secure-withdrawal-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-resources-secure-withdrawal-guide__btn-primary,
.page-resources-secure-withdrawal-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-secure-withdrawal-guide__btn-primary {
    background-color: var(--login-button-color);
    color: var(--text-light);
    border: 2px solid var(--login-button-color);
}

.page-resources-secure-withdrawal-guide__btn-primary:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}

.page-resources-secure-withdrawal-guide__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-resources-secure-withdrawal-guide__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Why Important Section */
.page-resources-secure-withdrawal-guide__why-important-section {
    padding: 80px 0;
}

.page-resources-secure-withdrawal-guide__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources-secure-withdrawal-guide__card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-resources-secure-withdrawal-guide__card:hover {
    transform: translateY(-5px);
}

.page-resources-secure-withdrawal-guide__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-secure-withdrawal-guide__card-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* Steps Section */
.page-resources-secure-withdrawal-guide__steps-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-secure-withdrawal-guide__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-resources-secure-withdrawal-guide__step-item {
    text-align: center;
}

.page-resources-secure-withdrawal-guide__step-icon {
    margin-bottom: 20px;
    width: 100%; /* Ensure container is responsive */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources-secure-withdrawal-guide__step-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Limit image size within step item */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

.page-resources-secure-withdrawal-guide__step-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-resources-secure-withdrawal-guide__step-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

/* Video Section */
.page-resources-secure-withdrawal-guide__video-section {
    padding: 80px 0;
}

.page-resources-secure-withdrawal-guide__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--black-color);
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-secure-withdrawal-guide__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.page-resources-secure-withdrawal-guide__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    cursor: pointer;
}

.page-resources-secure-withdrawal-guide__video-link:hover .page-resources-secure-withdrawal-guide__video {
    filter: brightness(1.1); /* Subtle hover effect */
}

/* Tips Section */
.page-resources-secure-withdrawal-guide__tips-section {
    padding: 80px 0;
}

.page-resources-secure-withdrawal-guide__tips-list {
    list-style: none;
    padding: 0;
    margin: 50px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-secure-withdrawal-guide__tip-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-resources-secure-withdrawal-guide__tip-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-secure-withdrawal-guide__tip-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-resources-secure-withdrawal-guide__tip-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.page-resources-secure-withdrawal-guide__faq-section {
    padding: 80px 0;
}

.page-resources-secure-withdrawal-guide__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-secure-withdrawal-guide__faq-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-resources-secure-withdrawal-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

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

.page-resources-secure-withdrawal-guide__faq-toggle {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

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

.page-resources-secure-withdrawal-guide__faq-item.active .page-resources-secure-withdrawal-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px 20px 20px;
}

.page-resources-secure-withdrawal-guide__faq-answer p {
    margin: 0;
    color: var(--text-dark);
}

/* CTA Section */
.page-resources-secure-withdrawal-guide__cta-section {
    padding: 80px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-secure-withdrawal-guide__main-title {
        font-size: 2.5em;
    }
    .page-resources-secure-withdrawal-guide__section-title {
        font-size: 2em;
    }
}

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

    .page-resources-secure-withdrawal-guide__hero-section {
        padding: 40px 0;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-secure-withdrawal-guide__hero-content {
        padding: 15px;
    }

    .page-resources-secure-withdrawal-guide__main-title {
        font-size: 2em;
    }

    .page-resources-secure-withdrawal-guide__intro-text {
        font-size: 1em;
    }

    .page-resources-secure-withdrawal-guide__section-title {
        font-size: 1.8em;
    }

    .page-resources-secure-withdrawal-guide__text-block {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-resources-secure-withdrawal-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-secure-withdrawal-guide__btn-primary,
    .page-resources-secure-withdrawal-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-secure-withdrawal-guide__why-important-section,
    .page-resources-secure-withdrawal-guide__steps-section,
    .page-resources-secure-withdrawal-guide__video-section,
    .page-resources-secure-withdrawal-guide__tips-section,
    .page-resources-secure-withdrawal-guide__faq-section,
    .page-resources-secure-withdrawal-guide__cta-section {
        padding: 40px 0;
    }

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

    .page-resources-secure-withdrawal-guide__features-grid,
    .page-resources-secure-withdrawal-guide__steps-grid,
    .page-resources-secure-withdrawal-guide__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-secure-withdrawal-guide__card,
    .page-resources-secure-withdrawal-guide__tip-item {
        padding: 20px;
    }

    .page-resources-secure-withdrawal-guide__step-image {
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .page-resources-secure-withdrawal-guide__video-wrapper {
        margin-top: 20px;
    }

    .page-resources-secure-withdrawal-guide__video,
    .page-resources-secure-withdrawal-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-secure-withdrawal-guide__section,
    .page-resources-secure-withdrawal-guide__card,
    .page-resources-secure-withdrawal-guide__container,
    .page-resources-secure-withdrawal-guide__video-section,
    .page-resources-secure-withdrawal-guide__video-container,
    .page-resources-secure-withdrawal-guide__video-wrapper,
    .page-resources-secure-withdrawal-guide__cta-buttons,
    .page-resources-secure-withdrawal-guide__button-group,
    .page-resources-secure-withdrawal-guide__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources-secure-withdrawal-guide__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-resources-secure-withdrawal-guide__faq-answer {
        padding: 0 15px;
    }

    .page-resources-secure-withdrawal-guide__faq-item.active .page-resources-secure-withdrawal-guide__faq-answer {
        padding: 15px 15px 15px 15px;
    }

    /* Ensure content area images are not too small */
    .page-resources-secure-withdrawal-guide__steps-section img,
    .page-resources-secure-withdrawal-guide__video-section img {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .page-resources-secure-withdrawal-guide__main-title {
        font-size: 1.8em;
    }
    .page-resources-secure-withdrawal-guide__section-title {
        font-size: 1.5em;
    }
    .page-resources-secure-withdrawal-guide__hero-section {
        min-height: 350px;
    }
}