/* style/resources-latest-trends.css */

/* Base Styles & Typography */
.page-resources-latest-trends {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default for dark-bg-1 body */
}

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

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

.page-resources-latest-trends__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: justify;
    color: #333333; /* For light background content area */
}

/* Hero Section */
.page-resources-latest-trends__hero-section {
    position: relative;
    padding: 120px 0 80px; /* Adjusted padding-top for header offset */
    background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Gradient with brand color */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.page-resources-latest-trends__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources-latest-trends__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-latest-trends__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-resources-latest-trends__btn-primary,
.page-resources-latest-trends__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;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-resources-latest-trends__btn-primary {
    background: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-resources-latest-trends__btn-primary:hover {
    background: #d46f06;
    border-color: #d46f06;
}

.page-resources-latest-trends__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
}

.page-resources-latest-trends__btn-secondary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* Video Section */
.page-resources-latest-trends__video-section {
    background-color: #f5f5f5; /* Light background for video */
    padding: 80px 0;
    text-align: center;
    color: #333333;
}

.page-resources-latest-trends__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    box-sizing: border-box; /* Crucial for responsive */
}

.page-resources-latest-trends__video-link {
    display: block; /* Make the whole video wrapper clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-resources-latest-trends__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    max-width: 100%; /* Ensures video is responsive */
    height: auto; /* Ensures video is responsive */
    display: block;
}

.page-resources-latest-trends__video-caption {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto;
    color: #555555;
}

/* Content Area */
.page-resources-latest-trends__content-area {
    padding: 80px 0;
    background-color: #ffffff; /* White background for main content */
    color: #333333;
}

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

.page-resources-latest-trends__feature-card {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-resources-latest-trends__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-resources-latest-trends__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
    display: block;
}

.page-resources-latest-trends__feature-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-latest-trends__feature-description {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources-latest-trends__feature-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-resources-latest-trends__feature-list li {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.page-resources-latest-trends__feature-list strong {
    color: #26A9E0;
}

/* FAQ Section */
.page-resources-latest-trends__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-latest-trends__faq-item {
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: #333333;
}

.page-resources-latest-trends__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-resources-latest-trends__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-latest-trends__faq-heading {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
    font-weight: bold;
}

.page-resources-latest-trends__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

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

.page-resources-latest-trends__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
}

.page-resources-latest-trends__faq-item.active .page-resources-latest-trends__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px 25px;
}

.page-resources-latest-trends__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #555555;
}

/* CTA Section */
.page-resources-latest-trends__cta-section {
    background: linear-gradient(135deg, #26A9E0, #1a7bb0);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 60px;
}

.page-resources-latest-trends__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-latest-trends__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-latest-trends__cta-button {
    background: #EA7C07; /* Login color */
    border-color: #EA7C07;
}

.page-resources-latest-trends__cta-button:hover {
    background: #d46f06;
    border-color: #d46f06;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-latest-trends__hero-title {
        font-size: 2.8em;
    }
    .page-resources-latest-trends__hero-description {
        font-size: 1.2em;
    }
    .page-resources-latest-trends__section-title {
        font-size: 2em;
    }
    .page-resources-latest-trends__feature-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for main content on mobile */
    .page-resources-latest-trends__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }

    .page-resources-latest-trends__hero-title {
        font-size: 2.2em;
    }
    .page-resources-latest-trends__hero-description {
        font-size: 1em;
    }
    .page-resources-latest-trends__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-latest-trends__btn-primary,
    .page-resources-latest-trends__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources-latest-trends__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-latest-trends__text-block {
        font-size: 0.95em;
    }

    /* Video responsiveness */
    .page-resources-latest-trends__video-section,
    .page-resources-latest-trends__video-container,
    .page-resources-latest-trends__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources-latest-trends__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-latest-trends__video-caption {
        font-size: 0.9em;
    }

    /* Image responsiveness - content area */
    .page-resources-latest-trends img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-latest-trends__section,
    .page-resources-latest-trends__card,
    .page-resources-latest-trends__container,
    .page-resources-latest-trends__feature-card { /* Ensure card containers are responsive */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-latest-trends__feature-image {
        height: auto;
        min-height: 200px;
    }

    .page-resources-latest-trends__feature-title {
        font-size: 1.5em;
    }
    .page-resources-latest-trends__faq-question {
        padding: 15px 20px;
    }
    .page-resources-latest-trends__faq-heading {
        font-size: 1.1em;
    }
    .page-resources-latest-trends__faq-answer {
        padding: 0 20px;
    }
    .page-resources-latest-trends__faq-item.active .page-resources-latest-trends__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-resources-latest-trends__cta-title {
        font-size: 2em;
    }
    .page-resources-latest-trends__cta-description {
        font-size: 1em;
    }
    .page-resources-latest-trends__cta-section {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .page-resources-latest-trends__hero-title {
        font-size: 1.8em;
    }
    .page-resources-latest-trends__section-title {
        font-size: 1.5em;
    }
    .page-resources-latest-trends__feature-title {
        font-size: 1.3em;
    }
    .page-resources-latest-trends__cta-title {
        font-size: 1.8em;
    }
}

/* Color Contrast Safeguards */
.page-resources-latest-trends__dark-bg {
    color: #ffffff;
}

.page-resources-latest-trends__light-bg {
    color: #333333;
}

.page-resources-latest-trends__content-area,
.page-resources-latest-trends__text-block {
  color: #333333; /* For white background */
}

.page-resources-latest-trends p,
.page-resources-latest-trends li {
  color: #555555; /* Slightly softer for body text */
}

.page-resources-latest-trends__card,
.page-resources-latest-trends__feature-card,
.page-resources-latest-trends__faq-item {
  background: #ffffff; /* White background for cards */
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-resources-latest-trends__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-resources-latest-trends__btn-primary {
  background: #EA7C07;
  color: #ffffff;
  border: 2px solid transparent;
}

.page-resources-latest-trends__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}