/* style/resources.css */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

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

.page-resources__section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #0A246A; /* Royal Blue */
    text-align: center;
    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 */
    border-radius: 2px;
}

.page-resources__text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
}

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, #0A246A 0%, #1A3B85 100%); /* Darker blue gradient */
    color: #fff;
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.page-resources__hero-content {
    max-width: 800px;
    z-index: 2;
    padding: 20px;
}

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

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

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 1;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.page-resources__button--primary {
    background-color: #FFD700; /* Gold */
    color: #0A246A; /* Royal Blue */
    border: 2px solid #FFD700;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-resources__button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #071a4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
}

.page-resources__button--secondary {
    background-color: #0A246A; /* Royal Blue */
    color: #FFD700; /* Gold */
    border: 2px solid #0A246A;
}

.page-resources__button--secondary:hover {
    background-color: #071a4a;
    border-color: #071a4a;
    color: #fff;
    transform: translateY(-2px);
}

.page-resources__button--tertiary {
    background-color: #f0f0f0;
    color: #0A246A;
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-size: 0.95em;
}

.page-resources__button--tertiary:hover {
    background-color: #e0e0e0;
    color: #071a4a;
}

/* Why Choose Section */
.page-resources__why-choose {
    background-color: #f0f4f8;
}

.page-resources__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-resources__feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-resources__feature-title {
    font-size: 1.5em;
    color: #0A246A;
    margin-bottom: 15px;
}

.page-resources__feature-description {
    font-size: 1em;
    color: #666;
}

/* Resource Categories Section */
.page-resources__resource-categories .page-resources__category-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    gap: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-resources__resource-categories .page-resources__category-item:nth-child(even) {
    flex-direction: row-reverse;
}

.page-resources__category-image {
    width: 40%;
    min-width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-resources__category-content {
    flex: 1;
}

.page-resources__category-title {
    font-size: 2em;
    color: #0A246A;
    margin-bottom: 20px;
}

/* Articles Grid */
.page-resources__articles {
    background-color: #fdfdfd;
}

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

.page-resources__article-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

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

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

.page-resources__article-title {
    font-size: 1.4em;
    color: #0A246A;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__article-title a {
    color: #0A246A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #FFD700;
}

.page-resources__article-summary {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Bottom CTA */
.page-resources__cta-bottom {
    background: linear-gradient(90deg, #0A246A, #1A3B85);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-top: 20px;
}

.page-resources__cta-content {
    max-width: 900px;
}

.page-resources__cta-title {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

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

/* Floating Promotion Button */
.page-resources__floating-promo-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.page-resources__floating-promo-button {
    background-color: #FFD700; /* Gold */
    color: #0A246A; /* Royal Blue */
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-resources__floating-promo-button:hover {
    transform: scale(1.1);
    background-color: #e6c200;
}

.page-resources__floating-promo-icon {
    animation: page-resources-pulse 2s infinite;
}

@keyframes page-resources-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.page-resources__floating-promo-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    background-color: #0A246A; /* Royal Blue */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    min-width: 180px;
}

.page-resources__floating-promo-menu.page-resources__active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-resources__floating-menu-item {
    display: block;
    padding: 12px 20px;
    color: #FFD700; /* Gold */
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-resources__floating-menu-item:last-child {
    border-bottom: none;
}

.page-resources__floating-menu-item:hover {
    background-color: #1A3B85;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__resource-categories .page-resources__category-item {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__resource-categories .page-resources__category-item:nth-child(even) {
        flex-direction: column;
    }
    .page-resources__category-image {
        width: 80%;
        min-width: unset;
        margin-bottom: 20px;
    }
    .page-resources__category-title {
        font-size: 1.8em;
    }
    .page-resources__cta-title {
        font-size: 2.5em;
    }
    .page-resources__cta-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 80px 0;
        min-height: 350px;
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__floating-promo-wrapper {
        bottom: 20px;
        right: 20px;
    }
    .page-resources__floating-promo-button {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    .page-resources__floating-promo-menu {
        bottom: 65px;
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__feature-item, .page-resources__article-card, .page-resources__category-item {
        padding: 20px;
    }
    .page-resources__category-image {
        width: 100%;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 0.9em;
    }
}