/* style/resources.css */
:root {
    --primary-color: #0A2342;
    --secondary-color: #E0B400;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #1a1a2e;
    --card-bg-dark: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.15);
}

.page-resources {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px);
}

.page-resources h1, .page-resources h2, .page-resources h3, .page-resources h4, .page-resources h5, .page-resources h6 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources p {
    margin-bottom: 1em;
    color: var(--text-light);
}

.page-resources a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources a:hover {
    color: var(--text-light);
}

/* Common container styles */
.page-resources__video-container,
.page-resources__title-container,
.page-resources__faq-container,
.page-resources__brand-container,
.page-resources__blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Video Section */
.page-resources__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #06162a 100%);
}

.page-resources__video-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__video-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-resources__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__video-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    background-color: #000;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: none; /* Prevents video controls from interfering with click event */
}

.page-resources__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-resources__video-link:hover .page-resources__video-overlay {
    opacity: 1;
}

.page-resources__video-click-hint {
    color: var(--text-light);
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    padding: 12px 25px;
    background: rgba(224, 180, 0, 0.8);
    border-radius: 8px;
    white-space: nowrap;
}

.page-resources__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.page-resources__play-now-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-resources__play-now-button:hover {
    background: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__play-now-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Title Section (Module 1) */
.page-resources__title-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.page-resources__main-title {
    font-size: 3em;
    margin-bottom: 25px;
    color: var(--secondary-color);
    line-height: 1.2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.page-resources__title-description {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
    opacity: 0.9;
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.page-resources__cta-button--primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-resources__cta-button--primary:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-resources__cta-button--secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section (Module 2) */
.page-resources__faq-section {
    padding: 80px 20px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.page-resources__faq-main-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--card-bg-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources__faq-question:hover {
    background: #1a3c61;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--secondary-color);
    pointer-events: none;
}

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: var(--text-light);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    background: var(--card-bg-dark);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 10px 10px;
}

/* Brand Section (Module 3) */
.page-resources__brand-section {
    padding: 80px 20px;
    background-color: #0d1e33;
    border-bottom: 1px solid var(--border-color);
}

.page-resources__brand-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources__brand-item {
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-resources__brand-item h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-resources__brand-item p {
    color: var(--text-light);
    opacity: 0.85;
    font-size: 0.95em;
}

.page-resources__brand-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Blog List Section (Module 4) */
.page-resources__blog-section {
    padding: 80px 20px;
    background-color: var(--bg-dark);
}

.page-resources__blog-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources__blog-item {
    background-color: var(--card-bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__blog-link {
    display: block;
    padding: 25px;
    color: var(--text-light);
    text-decoration: none;
}

.page-resources__blog-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-resources__blog-item-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.page-resources__blog-item-excerpt {
    font-size: 0.95em;
    color: var(--text-light);
    opacity: 0.85;
    margin-bottom: 15px;
}

.page-resources__blog-item-date {
    font-size: 0.85em;
    color: var(--secondary-color);
    opacity: 0.7;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 2.5em;
    }
    .page-resources__video-title, .page-resources__faq-main-title, .page-resources__brand-title, .page-resources__blog-title {
        font-size: 2em;
    }
    .page-resources__video-container,
    .page-resources__title-container,
    .page-resources__faq-container,
    .page-resources__brand-container,
    .page-resources__blog-container {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__video-section {
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-resources__video-container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 8px;
        overflow: hidden !important;
    }

    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        object-fit: contain;
    }

    .page-resources__video-cta {
        margin-top: 25px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-resources__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 30px !important;
        font-size: 17px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__video-click-hint {
        font-size: 16px !important;
        padding: 10px 20px !important;
    }

    .page-resources__main-title {
        font-size: 2em;
    }
    .page-resources__title-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .page-resources__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }
    
    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-question h3 {
        font-size: 1em;
    }
    .page-resources__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px !important;
    }

    .page-resources__brand-content {
        grid-template-columns: 1fr;
    }
    .page-resources__brand-item {
        padding: 25px;
    }
    .page-resources__brand-item h3 {
        font-size: 1.3em;
    }

    .page-resources__blog-list {
        grid-template-columns: 1fr;
    }
    .page-resources__blog-item-title {
        font-size: 1.2em;
    }
    .page-resources__blog-item-image {
        min-width: 200px !important;
        min-height: 150px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__video-container,
    .page-resources__title-container,
    .page-resources__faq-container,
    .page-resources__brand-container,
    .page-resources__blog-container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size */
        min- /* Ensure minimum size */
    }
}

@media (max-width: 480px) {
    .page-resources__main-title {
        font-size: 1.8em;
    }
    .page-resources__video-title, .page-resources__faq-main-title, .page-resources__brand-title, .page-resources__blog-title {
        font-size: 1.8em;
    }
    .page-resources__play-now-button {
        font-size: 16px !important;
        padding: 12px 25px !important;
    }
    .page-resources__video-click-hint {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
}