/* style/resources.css */

/* General styles for the resources page */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #333; /* Dark text for contrast on light backgrounds */
    line-height: 1.6;
    background-color: #f8f8f8; /* Light background for readability */
}

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

/* Hero Section */
.page-resources__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background-color: #003366; /* Fallback */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8), rgba(255, 215, 0, 0.4)); /* Primary and secondary colors */
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 40px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.page-resources__btn--primary {
    background-color: #FFD700; /* Gold */
    color: #003366; /* Dark blue */
}

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

.page-resources__btn--secondary {
    background-color: #003366; /* Dark blue */
    color: #FFD700; /* Gold */
    border: 1px solid #FFD700;
}

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

/* Section general styles */
.page-resources__section {
    padding: 80px 0;
    text-align: center;
}

.page-resources__section:nth-of-type(even) {
    background-color: #fff;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #003366; /* Dark blue */
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-resources__subsection-title {
    font-size: 1.8em;
    color: #003366;
    margin-top: 50px;
    margin-bottom: 20px;
}

.page-resources__text {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__text strong {
    color: #003366;
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
}

.page-resources__list li {
    background-color: #fff;
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid #FFD700;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
    color: #333;
}

.page-resources__list li strong {
    color: #003366;
}

/* Grid for content items */
.page-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__grid-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-resources__item-title {
    font-size: 1.5em;
    color: #003366;
    margin: 20px 20px 10px;
}

.page-resources__item-description {
    font-size: 1em;
    color: #666;
    padding: 0 20px 20px;
}

/* Why Choose Section specific styles */
.page-resources__advantages-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
}

.page-resources__advantages-list li {
    background-color: #e6f0f8; /* Lighter blue */
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid #003366;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    color: #333;
}

.page-resources__advantages-list li strong {
    color: #003366;
}

/* Detail List Section */
.page-resources__detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__detail-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__detail-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__detail-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__detail-title a {
    color: #003366; /* Dark blue */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__detail-title a:hover {
    color: #FFD700; /* Gold */
}

.page-resources__detail-description {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* CTA Section */
.page-resources__section--cta {
    background-color: #003366; /* Primary dark blue */
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.page-resources__section--cta .page-resources__container {
    position: relative;
    z-index: 2;
}

.page-resources__section--cta .page-resources__section-title {
    color: #FFD700; /* Gold */
    margin-bottom: 30px;
}

.page-resources__section--cta .page-resources__section-title::after {
    background-color: #FFD700;
}

.page-resources__section--cta .page-resources__text {
    color: #e0e0e0;
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__section--cta .page-resources__text a {
    color: #FFD700;
    text-decoration: underline;
}

.page-resources__section--cta .page-resources__btn--primary {
    background-color: #FFD700;
    color: #003366;
}

.page-resources__section--cta .page-resources__btn--primary:hover {
    background-color: #e6c200;
}

.page-resources__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__subsection-title {
        font-size: 1.6em;
    }
    .page-resources__text {
        font-size: 1em;
    }
    .page-resources__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__detail-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        min-height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section {
        padding: 60px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__subsection-title {
        font-size: 1.4em;
    }
    .page-resources__grid,
    .page-resources__detail-list {
        gap: 20px;
    }
    .page-resources__detail-item {
        padding: 20px;
    }
    .page-resources__detail-title {
        font-size: 1.4em;
    }
    .page-resources__btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero {
        min-height: 300px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-content {
        padding: 20px;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__subsection-title {
        font-size: 1.2em;
    }
    .page-resources__text,
    .page-resources__list li,
    .page-resources__advantages-list li,
    .page-resources__item-description,
    .page-resources__detail-description {
        font-size: 0.95em;
    }
    .page-resources__grid-item,
    .page-resources__detail-item {
        margin: 0 10px;
    }
}