/* Resources Page Specific Styles */
.resources-page {
    padding-top: 80px; /* Account for fixed header */
}

.resources-hero {
    background: linear-gradient(rgba(26, 79, 139, 0.9), rgba(26, 79, 139, 0.9)),
                url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.resources-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Resources Grid */
.resources-grid {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.resource-category {
    margin-bottom: 4rem;
}

.resource-category h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.resource-card:hover {
    transform: translateY(-10px);
}

.resource-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.resource-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s, background-color 0.3s;
}

.resource-link:hover {
    transform: translateY(-3px);
    background-color: #15407a;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(rgba(26, 79, 139, 0.9), rgba(26, 79, 139, 0.9)),
                url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 2rem;
}

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

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.newsletter-form button:hover {
    transform: translateY(-3px);
}

/* Contact Widget */
.contact-widget {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.widget-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
}

.widget-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.widget-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.widget-buttons a {
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.widget-buttons a:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.widget-icon {
    width: 24px;
    height: 24px;
}

.whatsapp-btn:hover {
    color: #25D366;
}

.email-btn:hover {
    color: #EA4335;
}

.phone-btn:hover {
    color: #2196F3;
}

.whatsapp-btn,
.email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s;
}

.whatsapp-btn {
    background-color: #25d366;
}

.email-btn {
    background-color: var(--primary-color);
}

.whatsapp-btn:hover,
.email-btn:hover {
    transform: translateY(-3px);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .resources-hero h1 {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .widget-buttons {
        flex-direction: column;
    }
}