/* style/resources-latest-official-link.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #26A9E0;
    --login-button-color: #EA7C07;
    --black-color: #000000;
}

.page-resources-latest-official-link {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color); /* Default light background for content */
}

.page-resources-latest-official-link__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-resources-latest-official-link__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-resources-latest-official-link__hero-content {
    max-width: 800px;
    z-index: 1;
    text-align: left;
    padding-right: 40px;
}

.page-resources-latest-official-link__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-resources-latest-official-link__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources-latest-official-link__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.page-resources-latest-official-link__hero-image-wrapper {
    flex-shrink: 0;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources-latest-official-link__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* General Section Styling */
.page-resources-latest-official-link__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-resources-latest-official-link__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-resources-latest-official-link__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-resources-latest-official-link__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

/* Buttons */
.page-resources-latest-official-link__btn-primary,
.page-resources-latest-official-link__btn-secondary,
.page-resources-latest-official-link__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-latest-official-link__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-resources-latest-official-link__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

.page-resources-latest-official-link__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-resources-latest-official-link__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-resources-latest-official-link__download-button {
    margin-top: 20px;
    background-color: var(--login-button-color);
    border-color: var(--login-button-color);
}

.page-resources-latest-official-link__download-button:hover {
    background-color: darken(var(--login-button-color), 10%);
}

/* Introduction Section */
.page-resources-latest-official-link__introduction-section {
    padding: 60px 0;
}

/* Advantages Section */
.page-resources-latest-official-link__advantages-section {
    padding: 60px 0;
    text-align: center;
}

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

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

.page-resources-latest-official-link__advantage-card:hover {
    transform: translateY(-5px);
}

.page-resources-latest-official-link__card-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-resources-latest-official-link__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources-latest-official-link__card-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* Access Guide Section */
.page-resources-latest-official-link__access-guide {
    padding: 60px 0;
}

.page-resources-latest-official-link__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources-latest-official-link__list-item {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-latest-official-link__list-item-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources-latest-official-link__list-item-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* Video Section */
.page-resources-latest-official-link__video-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-resources-latest-official-link__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
}

.page-resources-latest-official-link__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.page-resources-latest-official-link__video-caption {
    font-size: 1em;
    color: var(--text-light);
    margin-top: 10px;
}

/* FAQ Section */
.page-resources-latest-official-link__faq-section {
    padding: 60px 0;
}

.page-resources-latest-official-link__faq-list {
    margin-top: 40px;
}

.page-resources-latest-official-link__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources-latest-official-link__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources-latest-official-link__faq-question:hover {
    background-color: darken(var(--bg-light), 5%);
}

.page-resources-latest-official-link__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: var(--primary-color);
}

.page-resources-latest-official-link__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-resources-latest-official-link__faq-item.active .page-resources-latest-official-link__faq-toggle {
    transform: rotate(45deg);
}

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

.page-resources-latest-official-link__faq-item.active .page-resources-latest-official-link__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

.page-resources-latest-official-link__faq-answer p {
    margin-bottom: 0;
}

/* Call to Action Section */
.page-resources-latest-official-link__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-resources-latest-official-link__cta-button {
    margin-top: 40px;
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Inline links */
.page-resources-latest-official-link__inline-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources-latest-official-link__inline-link:hover {
    color: darken(var(--primary-color), 10%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-latest-official-link__hero-section .page-resources-latest-official-link__container {
        flex-direction: column;
        text-align: center;
    }

    .page-resources-latest-official-link__hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .page-resources-latest-official-link__hero-title {
        font-size: 2.8em;
    }

    .page-resources-latest-official-link__hero-description {
        font-size: 1.1em;
    }

    .page-resources-latest-official-link__hero-buttons {
        justify-content: center;
    }

    .page-resources-latest-official-link__hero-image-wrapper {
        width: 80%;
    }

    .page-resources-latest-official-link__section-title {
        font-size: 2em;
    }

    .page-resources-latest-official-link__advantages-grid {
        grid-template-columns: 1fr;
    }
}

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

    .page-resources-latest-official-link__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-latest-official-link__hero-title {
        font-size: 2.2em;
    }

    .page-resources-latest-official-link__hero-description {
        font-size: 1em;
    }

    .page-resources-latest-official-link__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-latest-official-link__btn-primary,
    .page-resources-latest-official-link__btn-secondary,
    .page-resources-latest-official-link__cta-button,
    .page-resources-latest-official-link__download-button,
    .page-resources-latest-official-link a[class*="button"],
    .page-resources-latest-official-link a[class*="btn"] {
        max-width: 100% !important;
        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-latest-official-link__hero-image-wrapper {
        width: 90%;
    }

    .page-resources-latest-official-link__container,
    .page-resources-latest-official-link__content-area,
    .page-resources-latest-official-link__video-section,
    .page-resources-latest-official-link__video-wrapper,
    .page-resources-latest-official-link__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources-latest-official-link img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-latest-official-link video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-latest-official-link__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

    .page-resources-latest-official-link__section-title {
        font-size: 1.8em;
    }

    .page-resources-latest-official-link__list-item {
        padding: 15px;
    }

    .page-resources-latest-official-link__faq-question {
        padding: 15px;
    }

    .page-resources-latest-official-link__faq-answer {
        padding: 0 15px;
    }

    .page-resources-latest-official-link__faq-item.active .page-resources-latest-official-link__faq-answer {
        padding: 15px !important;
    }
}