/* style/resources.css */

/* General Page Styling */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

.page-resources-section {
    padding: 60px 0;
    text-align: center;
}

.page-resources-section:nth-of-type(even) {
    background-color: #e9ecef;
}

.page-resources-section-title {
    font-size: 2.8em;
    color: #0056b3; /* Darker blue for contrast with #007bff */
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-section-title .highlight {
    color: #997404; /* Darker gold for contrast with #ffc107 */
}

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

.page-resources p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #495057;
}

.page-resources-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    text-align: center;
}

.page-resources-btn-primary {
    background-color: #007bff; /* Primary color */
    color: #ffffff;
}

.page-resources-btn-primary:hover {
    background-color: #0056b3; /* Darker primary for hover */
    transform: translateY(-2px);
}

.page-resources-btn-secondary {
    background-color: #ffc107; /* Secondary color */
    color: #333;
    margin-left: 15px;
}

.page-resources-btn-secondary:hover {
    background-color: #e0a800; /* Darker secondary for hover */
    transform: translateY(-2px);
}

.page-resources-btn-lg {
    padding: 15px 35px;
    font-size: 1.2em;
}

.page-resources-btn-link {
    background: none;
    color: #007bff;
    padding: 0;
    margin: 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-resources-btn-link:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Hero Section */
.page-resources-hero {
    background: linear-gradient(135deg, #007bff, #4da3ff); /* Gradient with primary color */
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

.page-resources-hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-hero-title .highlight {
    color: #ffeb3b; /* Brighter gold for hero highlight */
}

.page-resources-hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e9ecef;
}

.page-resources-hero-actions .page-resources-btn {
    margin: 0 10px;
}

/* Overview Section */
.page-resources-overview p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-image-full-width {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Content Types Grid */
.page-resources-content-types .page-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-grid-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.page-resources-grid-item .page-resources-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.page-resources-grid-item h3 {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-resources-grid-item p {
    font-size: 1em;
    color: #555;
}

/* Detail List Section */
.page-resources-detail-list .page-resources-description-text {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

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

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

.page-resources-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

.page-resources-article-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #007bff;
    line-height: 1.3;
}

.page-resources-article-title a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-article-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.page-resources-article-description {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources-article-card .page-resources-btn-link {
    align-self: flex-start;
}

/* Call to Action Section */
.page-resources-cta {
    background-color: #007bff; /* Primary color */
    color: #ffffff;
    padding: 80px 0;
}

.page-resources-cta .page-resources-section-title {
    color: #ffffff;
}

.page-resources-cta .page-resources-section-title::after {
    background-color: #ffc107;
}

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

/* 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: 2.2em;
    }
    .page-resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-resources-articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources-hero {
        padding: 80px 0;
    }
    .page-resources-hero-title {
        font-size: 2.5em;
    }
    .page-resources-hero-description {
        font-size: 1em;
    }
    .page-resources-hero-actions {
        flex-direction: column;
    }
    .page-resources-hero-actions .page-resources-btn {
        margin: 10px 0;
    }
    .page-resources-section {
        padding: 40px 0;
    }
    .page-resources-section-title {
        font-size: 1.8em;
    }
    .page-resources-btn-secondary {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .page-resources-hero-title {
        font-size: 2em;
    }
    .page-resources-section-title {
        font-size: 1.6em;
    }
    .page-resources p {
        font-size: 0.95em;
    }
    .page-resources-btn {
        padding: 10px 20px;
        font-size: 1em;
    }
    .page-resources-btn-lg {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    .page-resources-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-articles-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-article-title {
        font-size: 1.4em;
    }
}