/* Resources Page Styles */

/* Hero Section */
.hero-section {
    background-color: #0a2540;
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Resources Container */
.resources-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

/* Resource Filters */
.resource-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #e9ecef;
}

.filter-btn.active {
    background-color: #0a2540;
    color: white;
    border-color: #0a2540;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Resource Card */
.resource-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.resource-image {
    position: relative;
    height: 200px;
    background-color: #f0f0f0;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 8px 8px 0 0;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9;
}

.resource-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #d00;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

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

.resource-content h3 {
    color: #0a2540;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.resource-content p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.resource-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.resource-details li {
    color: #4a5568;
    font-size: 0.9rem;
}

.resource-details li span {
    font-weight: bold;
    color: #0a2540;
}

.download-btn, .view-btn {
    display: inline-block;
    background-color: #0a2540;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
}

.download-btn:hover, .view-btn:hover {
    background-color: #0d3158;
}

.download-btn::before {
    content: "↓ ";
}

.view-btn::before {
    content: "▶ ";
}

/* Newsletter Section */
.newsletter-section {
    background-color: #f8f9fa;
    padding: 50px;
    border-radius: 8px;
    margin-bottom: 60px;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    color: #0a2540;
    margin-top: 0;
    margin-bottom: 20px;
}

.newsletter-content p {
    color: #4a5568;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #0a2540;
}

.submit-btn {
    background-color: #d00;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #aa0000;
}

.privacy-note {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 10px;
}

/* Contact CTA */
.contact-cta {
    background-color: #0a2540;
    color: white;
    padding: 50px;
    border-radius: 8px;
    text-align: center;
}

.contact-cta h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta-button {
    display: inline-block;
    background-color: #d00;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #aa0000;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.4rem;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .newsletter-section, .contact-cta {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .resource-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Placeholder styles */
.resource-image img[src*="placeholder.png"] {
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 14px;
}
