/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #E0E0E0; /* Light grey for general text on dark background */
    background-color: #0A192F; /* Primary dark blue background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-resources__hero-section {
    background: linear-gradient(135deg, #0A192F 0%, #203554 100%); /* Dark blue gradient */
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: page-resources__rotate 20s linear infinite;
    z-index: 0;
}

@keyframes page-resources__rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-resources__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Gold for main titles */
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.page-resources__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #B0B0B0;
    position: relative;
    z-index: 1;
}

.page-resources__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.page-resources__btn--primary {
    background-color: #FFD700; /* Gold button */
    color: #0A192F; /* Dark blue text on gold */
    border: 2px solid #FFD700;
}

.page-resources__btn--primary:hover {
    background-color: #E6C200;
    border-color: #E6C200;
    transform: translateY(-3px);
}

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

.page-resources__btn--secondary:hover {
    background-color: #FFD700;
    color: #0A192F;
    transform: translateY(-3px);
}

.page-resources__btn--download {
    background-color: #304C6C; /* A slightly lighter dark blue */
    color: #FFD700;
    border: 2px solid #304C6C;
}

.page-resources__btn--download:hover {
    background-color: #405C7C;
    border-color: #405C7C;
    transform: translateY(-3px);
}

/* Intro Section */
.page-resources__intro-section {
    padding: 80px 0;
    background-color: #12233D;
}

.page-resources__intro-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-resources__intro-text {
    flex: 1;
    min-width: 300px;
}

.page-resources__intro-text p {
    margin-bottom: 15px;
    color: #B0B0B0;
}

.page-resources__intro-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

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

/* Content Section */
.page-resources__content-section {
    padding: 80px 0;
    background-color: #0A192F;
}

.page-resources__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold for section titles */
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-resources__section-title--spacing {
    margin-top: 60px;
}

.page-resources__section-subtitle {
    font-size: 1.1em;
    color: #B0B0B0;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__description {
    font-size: 1.05em;
    color: #E0E0E0;
    margin-bottom: 25px;
    text-align: justify;
}

/* Resource Grid */
.page-resources__resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-resources__resource-card {
    background-color: #12233D;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #FFD700;
}

.page-resources__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__card-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

.page-resources__card-description {
    font-size: 0.95em;
    color: #B0B0B0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__btn-detail {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700;
    color: #0A192F;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

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

/* CTA Section */
.page-resources__cta-section {
    background-color: #12233D;
    padding: 80px 0;
    text-align: center;
}

.page-resources__cta-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 20px;
}

.page-resources__cta-description {
    font-size: 1.1em;
    color: #B0B0B0;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2.2em;
    }
    .page-resources__intro-content {
        flex-direction: column;
    }
    .page-resources__intro-image {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 80px 0;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta, .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn {
        padding: 12px 25px;
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-subtitle {
        font-size: 0.95em;
    }
    .page-resources__resource-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__card-title {
        font-size: 1.4em;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-section {
        padding: 60px 0;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__btn {
        width: 90%;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__card-image {
        height: 150px;
    }
}