/* style/resources.css */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #f0f8ff; /* Light text for dark background */
    background-color: #001a33; /* Darker shade of primary for main background */
    line-height: 1.6;
}

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

.page-resources__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-resources__hero {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    color: #ffffff;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.page-resources__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:kv999,abstract,pattern,blue_gold]') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFCC00; /* Golden yellow for emphasis */
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    color: #e0e0e0;
}

.page-resources__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.05em;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-resources__btn--primary {
    background-color: #FFCC00;
    color: #003366;
}

.page-resources__btn--primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.page-resources__btn--secondary {
    background-color: #003366;
    color: #FFCC00;
    border: 1px solid #FFCC00;
}

.page-resources__btn--secondary:hover {
    background-color: #004080;
    transform: translateY(-2px);
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFCC00;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #c0c0c0;
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__introduction .page-resources__content-wrapper,
.page-resources__why-kv999 .page-resources__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-resources__introduction .page-resources__text-content,
.page-resources__why-kv999 .page-resources__text-content {
    flex: 2;
    min-width: 300px;
}

.page-resources__introduction .page-resources__image-wrapper,
.page-resources__why-kv999 .page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

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

.page-resources__articles {
    background-color: #002244; /* Slightly lighter dark blue for contrast */
    padding: 80px 0;
}

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

.page-resources__article-card {
    background-color: #003366;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #f0f8ff;
}

.page-resources__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.page-resources__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #FFCC00;
}

.page-resources__article-card h3 {
    font-size: 1.5em;
    padding: 20px 20px 10px;
    color: #FFCC00;
}

.page-resources__article-card h3 a {
    color: #FFCC00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-card h3 a:hover {
    color: #fff;
}

.page-resources__article-excerpt {
    padding: 0 20px 20px;
    color: #c0c0c0;
    flex-grow: 1;
}

.page-resources__article-card .page-resources__btn {
    margin: 0 20px 20px;
    align-self: flex-start;
}

.page-resources__faq-item {
    background-color: #003366;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources__faq-question {
    font-size: 1.3em;
    color: #FFCC00;
    margin-bottom: 15px;
}

.page-resources__faq-answer {
    color: #e0e0e0;
}

.page-resources__faq-answer a {
    color: #FFCC00;
    text-decoration: none;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__introduction .page-resources__content-wrapper,
    .page-resources__why-kv999 .page-resources__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__content-wrapper--reverse {
        flex-direction: column;
    }
    .page-resources__introduction .page-resources__text-content,
    .page-resources__why-kv999 .page-resources__text-content {
        order: 2;
    }
    .page-resources__introduction .page-resources__image-wrapper,
    .page-resources__why-kv999 .page-resources__image-wrapper {
        order: 1;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-subtitle {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    .page-resources__article-card h3 {
        font-size: 1.3em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        font-size: 0.95em;
    }
}