/* style/crypto-guide.css */

/* Base styles for the crypto guide page */
.page-crypto-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--black-color); /* Assuming shared.css defines --black-color as a dark background */
}

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

.page-crypto-guide__link {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-crypto-guide__link:hover {
    color: #1a7bb5; /* Slightly darker shade for hover */
    text-decoration: underline;
}

.page-crypto-guide__highlight {
    color: #26A9E0;
    font-weight: bold;
}

/* Section Styling */
.page-crypto-guide__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-crypto-guide__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    min-height: 600px;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.page-crypto-guide__dark-bg {
    background-color: #000000; /* Fallback for --black-color, ensuring dark background */
    color: #ffffff;
}

.page-crypto-guide__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-crypto-guide__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-crypto-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-crypto-guide__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-crypto-guide__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability, no color change */
}

.page-crypto-guide__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-crypto-guide__btn-primary,
.page-crypto-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.page-crypto-guide__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-crypto-guide__btn-primary:hover {
    background-color: #1a7bb5;
    border-color: #1a7bb5;
}

.page-crypto-guide__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-crypto-guide__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-crypto-guide__intro-section,
.page-crypto-guide__what-is-crypto-section,
.page-crypto-guide__guide-deposit-section,
.page-crypto-guide__guide-withdraw-section,
.page-crypto-guide__safety-tips-section,
.page-crypto-guide__faq-section,
.page-crypto-guide__cta-section {
    padding: 60px 0;
}

.page-crypto-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-crypto-guide__content-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-crypto-guide__content-grid > div {
    flex: 1;
}

.page-crypto-guide__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-crypto-guide__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-crypto-guide__feature-list,
.page-crypto-guide__tip-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-crypto-guide__feature-list li,
.page-crypto-guide__tip-list li {
    background: rgba(38, 169, 224, 0.1);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.05em;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.page-crypto-guide__feature-list li::before,
.page-crypto-guide__tip-list li::before {
    content: '✅';
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2em;
}

.page-crypto-guide__numbered-list {
    list-style: decimal;
    padding-left: 20px;
    margin: 20px 0;
}

.page-crypto-guide__numbered-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-crypto-guide__step-card {
    background-color: #f8f8f8; /* Light background for step cards */
    color: #333333; /* Dark text for light background */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-crypto-guide__step-card h3 {
    color: #26A9E0;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
}

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

.page-crypto-guide__faq-item {
    background-color: rgba(38, 169, 224, 0.1); /* Light blue tint for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff; /* White text for dark background */
}

.page-crypto-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(38, 169, 224, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-crypto-guide__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.3);
}

.page-crypto-guide__faq-question::-webkit-details-marker,
.page-crypto-guide__faq-question::marker {
    display: none;
}

.page-crypto-guide__faq-qtext {
    flex-grow: 1;
}

.page-crypto-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-crypto-guide__faq-item[open] .page-crypto-guide__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' */
}

.page-crypto-guide__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-crypto-guide__faq-answer p {
    margin: 0;
}

.page-crypto-guide__text-center {
    text-align: center;
}

/* Call to action buttons in CTA section */
.page-crypto-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-crypto-guide__hero-title {
        font-size: 3em;
    }
    .page-crypto-guide__hero-description {
        font-size: 1.2em;
    }
    .page-crypto-guide__section-title {
        font-size: 2em;
    }
    .page-crypto-guide__content-grid {
        flex-direction: column;
    }
    .page-crypto-guide__image-wrapper {
        margin-top: 30px;
    }
}

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

    /* Fixed header offset for mobile */
    .page-crypto-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-crypto-guide__container,
    .page-crypto-guide__intro-section,
    .page-crypto-guide__what-is-crypto-section,
    .page-crypto-guide__guide-deposit-section,
    .page-crypto-guide__guide-withdraw-section,
    .page-crypto-guide__safety-tips-section,
    .page-crypto-guide__faq-section,
    .page-crypto-guide__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-crypto-guide__hero-title {
        font-size: 2.2em;
    }
    .page-crypto-guide__hero-description {
        font-size: 1em;
    }
    .page-crypto-guide__section-title {
        font-size: 1.8em;
    }
    .page-crypto-guide__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-crypto-guide__btn-primary,
    .page-crypto-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-crypto-guide__content-grid {
        gap: 20px;
    }

    .page-crypto-guide__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-crypto-guide__image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .page-crypto-guide__step-card {
        padding: 20px;
    }

    .page-crypto-guide__step-card h3 {
        font-size: 1.5em;
    }

    .page-crypto-guide__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-crypto-guide__faq-answer {
        padding: 0 15px 15px;
    }

    .page-crypto-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-crypto-guide__hero-title {
        font-size: 1.8em;
    }
    .page-crypto-guide__hero-description {
        font-size: 0.9em;
    }
    .page-crypto-guide__section-title {
        font-size: 1.5em;
    }
    .page-crypto-guide__feature-list li,
    .page-crypto-guide__tip-list li {
        font-size: 0.95em;
        padding: 10px 15px;
    }
}