/* style/resources.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #FFD700;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure body background is respected */
}

/* Ensure page content has top padding for fixed header */
.page-resources__hero-banner {
    padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

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

.page-resources__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-resources__light-bg {
    background-color: var(--light-bg);
    color: var(--text-on-light);
}

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

.page-resources__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-on-dark);
}

.page-resources__subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-on-dark);
}

.page-resources__subtitle a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-resources__subtitle a:hover {
    text-decoration: underline;
}

.page-resources__cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #FFA500);
    color: var(--text-on-light);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-resources__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.3;
    color: inherit;
}

.page-resources__section-title .highlight {
    color: var(--secondary-color);
}

.page-resources__section-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit;
}

.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

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

.page-resources__text-block p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-on-light);
}

.page-resources__text-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__text-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.page-resources__grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-light);
    border: 1px solid var(--border-color);
}

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

.page-resources__card-icon {
    width: 120px; /* Increased size for content image, not small icon */
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--light-bg);
    padding: 10px;
}

.page-resources__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources__card-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-on-light);
}

.page-resources__cta-block {
    margin-top: 50px;
}

.page-resources__cta-button--secondary {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: none;
}

.page-resources__cta-button--secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-resources__grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__tip-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: var(--text-on-light);
    border: 1px solid var(--border-color);
}

.page-resources__tip-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__tip-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources__tip-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-on-light);
}

.page-resources__tip-text a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.page-resources__tip-text a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.page-resources__mistake-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__mistake-item {
    background-color: var(--card-bg);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
    color: var(--text-on-light);
    border: 1px solid var(--border-color);
}

.page-resources__mistake-icon {
    width: 80px; /* Increased size */
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--light-bg);
    padding: 5px;
}

.page-resources__mistake-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.page-resources__mistake-content p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    color: var(--text-on-light);
}

.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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 15px;
    opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--light-bg);
    border-radius: 0 0 5px 5px;
    color: var(--text-on-light);
    text-align: left;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-on-light);
}

.page-resources__faq-question:hover {
    background: var(--light-bg);
    border-color: #d0d0d0;
}

.page-resources__faq-question:active {
    background: #eeeeee;
}

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

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: var(--primary-color);
}

.page-resources__cta-final {
    padding-bottom: 80px;
}

.page-resources__cta-button--large {
    padding: 18px 45px;
    font-size: 20px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 40px;
    }
    .page-resources__section-title {
        font-size: 32px;
    }
    .page-resources__section-description {
        font-size: 16px;
    }
    .page-resources__grid-3-col {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__grid-2-col {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .page-resources__image-block {
      order: -1; /* Image appears above text on smaller screens */
    }
    .page-resources__content-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-banner {
        padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__main-title {
        font-size: 32px;
    }
    .page-resources__subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .page-resources__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-resources__text-block p {
        font-size: 15px;
    }
    .page-resources__card {
        padding: 25px;
    }
    .page-resources__card-icon {
        width: 100px;
    }
    .page-resources__card-title {
        font-size: 20px;
    }
    .page-resources__tip-card {
        padding: 25px;
    }
    .page-resources__tip-image {
        height: 180px;
    }
    .page-resources__tip-title {
        font-size: 20px;
    }
    .page-resources__tip-text {
        font-size: 15px;
    }
    .page-resources__mistake-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .page-resources__mistake-icon {
        width: 70px;
        margin-bottom: 15px;
    }
    .page-resources__mistake-title {
        font-size: 18px;
    }
    .page-resources__mistake-content p {
        font-size: 14px;
    }
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }
    .page-resources__cta-button--large {
        padding: 15px 30px;
        font-size: 18px;
    }
    /* Mobile image adaptation */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources__section,
    .page-resources__container,
    .page-resources__card,
    .page-resources__tip-card,
    .page-resources__mistake-item,
    .page-resources__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}