/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* Light background for the page content */
}

/* Fixed header offset - apply to the first main content section or .page-resources */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* Sections */
.page-resources__section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources__dark-bg {
    background-color: #0A192F;
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-resources__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: inherit; /* Inherit color from parent section */
}

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

.page-resources__paragraph {
    margin-bottom: 15px;
    color: inherit;
}

/* Container */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.page-resources__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #0A192F;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-resources__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: none; /* Keep original image color */
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__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;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-resources__btn-primary {
    background-color: #FFD700;
    color: #0A192F;
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A192F;
}

/* Grid Layouts */
.page-resources__grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.page-resources__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.page-resources__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #333333;
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Keep original image color */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #0A192F;
}

.page-resources__card-title a {
    text-decoration: none;
    color: #0A192F;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #FFD700;
}

.page-resources__card-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-resources__card-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__card-link:hover {
    text-decoration: underline;
    color: #e6c200;
}

/* Content Wrapper for image and text side-by-side */
.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    margin-top: 40px;
}

.page-resources__text-content {
    flex: 1;
}

.page-resources__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* Keep original image color */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Feature Items (for tech advantages) */
.page-resources__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources__feature-icon {
    width: 200px; /* Enforce minimum size as per requirement */
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: none; /* Keep original image color */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-resources__feature-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFD700;
}

.page-resources__feature-text {
    font-size: 0.95em;
}

/* News Cards */
.page-resources__news-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    text-align: left;
    overflow: hidden;
    color: #333333;
}

.page-resources__news-image {
    width: 200px; /* Enforce minimum size */
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    filter: none; /* Keep original image color */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-resources__news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-resources__news-title {
    font-size: 1.3em;
    margin-bottom: 5px;
    color: #0A192F;
}

.page-resources__news-title a {
    text-decoration: none;
    color: #0A192F;
    transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
    color: #FFD700;
}

.page-resources__news-date {
    font-size: 0.85em;
    color: #666666;
    margin-bottom: 10px;
}

.page-resources__news-excerpt {
    font-size: 0.95em;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #FFD700;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px;
}

.page-resources__faq-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 0;
}

/* Final Call to Action */
.page-resources__cta-final {
    background-color: #FFD700;
    color: #0A192F;
    padding: 80px 20px;
}

.page-resources__cta-content {
    max-width: 900px;
    text-align: center;
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #0A192F;
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #333333;
}

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

/* Bottom CTAs within sections */
.page-resources__cta-bottom {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.15em;
    }
    .page-resources__section-title {
        font-size: 2.2em;
    }
    .page-resources__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    /* Mobile general adjustments */
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-content {
        padding: 15px;
    }

    .page-resources__hero-title {
        font-size: 2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources__section {
        padding: 40px 15px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-resources__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-resources__sub-title {
        font-size: 1.5em;
    }

    .page-resources__grid--2-cols,
    .page-resources__grid--3-cols {
        grid-template-columns: 1fr;
    }

    .page-resources__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-resources__content-wrapper--reverse-mobile {
        flex-direction: column-reverse;
    }

    .page-resources__content-image {
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__card-image,
    .page-resources__feature-icon {
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__news-card {
        flex-direction: column;
        align-items: center;
    }

    .page-resources__news-image {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-resources__news-content {
        padding: 15px;
        text-align: center;
    }

    .page-resources__news-title {
        font-size: 1.15em;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
    }

    .page-resources__faq-title {
        font-size: 1.1em;
    }

    .page-resources__faq-answer {
        padding: 0 20px;
    }

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px;
    }

    .page-resources__cta-final {
        padding: 50px 15px;
    }

    .page-resources__cta-title {
        font-size: 2em;
    }

    .page-resources__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    /* Mobile image and container overflow prevention */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video wrapper for aspect ratio (if used) */
    .page-resources__video-wrapper {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    
    .page-resources__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-resources__text-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* CSS for image size enforcement - applies to all images within .page-resources */
.page-resources img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific override for feature icons to ensure they meet the minimum size, even if the original design intent might be smaller */
.page-resources__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: auto !important; /* Allow natural width if larger, but ensure min */
    height: auto !important; /* Allow natural height if larger, but ensure min */
}