/* style/latest-strategies.css */

/* Base styles for the page content */
.page-latest-strategies {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly setting for consistency */
}

/* Fixed header spacing - Only apply if shared.css doesn't add padding to body */
/* For now, assuming it needs to be set here */
.page-latest-strategies__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-latest-strategies__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-latest-strategies h3 {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-latest-strategies p {
    margin-bottom: 1em;
}

.page-latest-strategies__highlight {
    color: #017439;
    font-weight: bold;
}

/* Hero Section */
.page-latest-strategies__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: #f5f5f5; /* Light background for hero */
    color: #333333;
    overflow: hidden;
    padding-bottom: 60px; /* Add some space below hero */
}

.page-latest-strategies__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-latest-strategies__main-title {
    font-size: 3.5em;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-latest-strategies__intro-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #555555;
}

.page-latest-strategies__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-latest-strategies__btn-primary,
.page-latest-strategies__btn-secondary {
    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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    text-align: center;
}

/* Custom button colors based on requirements, ensuring contrast */
.page-latest-strategies__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFFFF; /* Changed from #FFFF00 for WCAG AA contrast */
    border: 2px solid #C30808;
}

.page-latest-strategies__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-latest-strategies__btn-secondary {
    background-color: #C30808; /* Login color */
    color: #FFFFFF; /* Changed from #FFFF00 for WCAG AA contrast */
    border: 2px solid #C30808;
}

.page-latest-strategies__btn-secondary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

.page-latest-strategies__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

/* Video Section */
.page-latest-strategies__video-section {
    background-color: #017439; /* Dark background */
    color: #FFFFFF;
    padding: 80px 0;
    text-align: center;
}

.page-latest-strategies__video-section .page-latest-strategies__section-title {
    color: #FFFFFF;
}

.page-latest-strategies__video-wrapper {
    position: relative;
    max-width: 960px; /* Standard video width */
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-latest-strategies__video-link {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.page-latest-strategies__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-latest-strategies__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 2em;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 10; /* Ensure overlay is above video */
}

.page-latest-strategies__video-link:hover .page-latest-strategies__video-overlay {
    opacity: 0.8;
}

.page-latest-strategies__play-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.page-latest-strategies__video-cta {
    font-size: 1.2em;
    font-weight: bold;
}


/* Content Sections */
.page-latest-strategies__content-section {
    padding: 80px 0;
}

.page-latest-strategies__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-latest-strategies__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-latest-strategies__dark-bg .page-latest-strategies__section-title,
.page-latest-strategies__dark-bg h3 {
    color: #FFFFFF;
}

.page-latest-strategies__dark-text-block {
    color: #FFFFFF;
}

.page-latest-strategies__dark-text-block .page-latest-strategies__highlight {
    color: #FFFF00; /* Yellow highlight on dark background */
}

.page-latest-strategies__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.page-latest-strategies__grid--two-columns {
    grid-template-columns: 1fr 1fr;
}

.page-latest-strategies__text-block ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

.page-latest-strategies__text-block li {
    margin-bottom: 0.5em;
}

.page-latest-strategies__content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

/* FAQ Section */
.page-latest-strategies__faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.page-latest-strategies__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-latest-strategies__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-latest-strategies__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.page-latest-strategies__faq-question:hover {
    background-color: #e5e5e5;
}

.page-latest-strategies__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #333333;
    font-weight: bold;
}

.page-latest-strategies__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

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

.page-latest-strategies__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-latest-strategies__faq-answer p {
    margin-bottom: 0;
}

/* Call to Action Section */
.page-latest-strategies__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
}

.page-latest-strategies__cta-section .page-latest-strategies__section-title {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.page-latest-strategies__cta-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-latest-strategies__main-title {
        font-size: 3em;
    }
    .page-latest-strategies__section-title {
        font-size: 2em;
    }
    .page-latest-strategies__grid--two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-latest-strategies {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-latest-strategies__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-latest-strategies__hero-content {
        padding: 15px;
    }
    .page-latest-strategies__main-title {
        font-size: 2em;
    }
    .page-latest-strategies__intro-text {
        font-size: 1em;
    }
    .page-latest-strategies__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-latest-strategies__btn-primary,
    .page-latest-strategies__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-latest-strategies__section-title {
        font-size: 1.8em;
    }
    .page-latest-strategies h3 {
        font-size: 1.5em;
    }
    .page-latest-strategies__content-section,
    .page-latest-strategies__video-section,
    .page-latest-strategies__faq-section,
    .page-latest-strategies__cta-section {
        padding: 40px 0;
    }
    .page-latest-strategies__container {
        padding: 0 15px;
    }
    .page-latest-strategies img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-latest-strategies__video,
    .page-latest-strategies__video-wrapper,
    .page-latest-strategies__video-link {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* For video wrapper, if it's not padding-bottom trick */
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-latest-strategies__video-link {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }
    /* Ensure all image/video containers also respect max-width 100% */
    .page-latest-strategies__hero-image-wrapper,
    .page-latest-strategies__image-block,
    .page-latest-strategies__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-latest-strategies__video-overlay {
        font-size: 1.5em;
    }
    .page-latest-strategies__play-icon {
        font-size: 2.5em;
    }
    .page-latest-strategies__video-cta {
        font-size: 1em;
    }
}