/* style/resources.css */

/* --- General Page Styling (within .page-resources scope) --- */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark gray text for good contrast on light backgrounds */
    background-color: #f8f9fa; /* Light background for overall page */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #007bff; /* Primary brand color for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-subtitle {
    font-size: 1.2em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

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

.page-resources__btn--primary {
    background-color: #007bff; /* Primary brand color */
    color: #ffffff; /* White text for contrast */
}

.page-resources__btn--primary:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

.page-resources__btn--secondary {
    background-color: #ffc107; /* Auxiliary brand color */
    color: #333333; /* Dark text for contrast */
    border: 1px solid #ffc107;
}

.page-resources__btn--secondary:hover {
    background-color: #e0a800; /* Darker shade on hover */
    border-color: #e0a800;
}

.page-resources__btn--details {
    background-color: #007bff;
    color: #ffffff;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 3px;
}

.page-resources__btn--details:hover {
    background-color: #0056b3;
}

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

/* --- Hero Section --- */
.page-resources__hero-section {
    background: linear-gradient(135deg, #007bff, #4da3ff); /* Gradient using primary color and its lighter variant */
    color: #ffffff; /* White text for hero section */
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 193, 7, 0.1); /* Auxiliary color overlay */
    border-radius: 50%;
    animation: page-resources__float 6s ease-in-out infinite;
    z-index: 0;
}

.page-resources__hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(0, 123, 255, 0.1); /* Primary color overlay */
    border-radius: 50%;
    animation: page-resources__float 8s ease-in-out infinite reverse;
    z-index: 0;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

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

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

/* --- Introduction Section --- */
.page-resources__introduction-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

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

.page-resources__intro-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444444;
}

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

/* --- Categories Section --- */
.page-resources__categories-section {
    padding: 60px 0;
    background-color: #f1f7fe; /* Light blue background */
}

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

.page-resources__category-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__category-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 3px 5px rgba(0, 123, 255, 0.3)); /* Shadow with primary color */
}

.page-resources__category-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-resources__category-description {
    font-size: 1em;
    color: #666666;
}

/* --- Detail List Section --- */
.page-resources__detail-list-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-resources__resource-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__resource-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
}

.page-resources__resource-item h3 {
    padding: 15px 20px 0;
    font-size: 1.3em;
    color: #007bff;
    flex-grow: 1; /* Allow title to take up space */
}

.page-resources__resource-item h3 a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__resource-item h3 a:hover {
    color: #0056b3;
}

.page-resources__resource-description {
    padding: 10px 20px;
    font-size: 0.95em;
    color: #555555;
    flex-grow: 1; /* Allow description to take up space */
}

.page-resources__resource-item .page-resources__btn--details {
    margin: 15px 20px 20px;
    align-self: flex-start; /* Align button to start */
}

/* --- Why Choose Section --- */
.page-resources__why-choose-section {
    padding: 60px 0;
    background-color: #f1f7fe;
}

.page-resources__why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__why-choose-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-resources__why-choose-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 3px 5px rgba(255, 193, 7, 0.3)); /* Shadow with auxiliary color */
}

.page-resources__why-choose-title {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-resources__why-choose-description {
    font-size: 0.95em;
    color: #666666;
}

/* --- Call to Action Section --- */
.page-resources__cta-section {
    background: linear-gradient(135deg, #0056b3, #007bff); /* Darker gradient for CTA */
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__cta-section .page-resources__section-subtitle {
    color: #e0e0e0;
}

.page-resources__cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

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

@media (max-width: 768px) {
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__hero-actions,
    .page-resources__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-resources__category-grid,
    .page-resources__resource-grid,
    .page-resources__why-choose-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-subtitle {
        font-size: 1em;
    }
}

/* --- Animations --- */
@keyframes page-resources__float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}