/* resources.css */

/* Root Variables */
:root {
    --primary-color: #00a2e0;
    --secondary-color: #00a651;
    --accent-color: #00c2a8;
    --dark-color: #121212;
    --light-color: #ffffff;
    --gray-color: #f9f9f9;
    --text-color: #333333;
    --text-light: #777777;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-light {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--light-color);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--light-color);
    transform: translateY(-3px);
}

/* Page Hero Section */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 162, 224, 0.9), rgba(0, 166, 81, 0.9));
    overflow: hidden;
    color: var(--light-color);
    padding-top: 80px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 40px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    border-radius: 50%;
}

.page-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Resources Section */
.resources-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.resource-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.resource-card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.resource-card h3 {
    color: #0e7c7b;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.resource-card p {
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.resource-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.resource-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    background: none;
    border: 2px solid #0e7c7b;
    color: #0e7c7b;
    padding: 8px 20px;
    margin: 0 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: #0e7c7b;
    color: var(--light-color);
}

/* Resources Tabs */
.resources-tabs {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-description {
    text-align: center;
    margin-bottom: 40px;
}

.tab-description h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.tab-description p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(12, 83, 111, 0.9), rgba(0, 166, 81, 0.9)), url(../images/hero-bg.jpg) no-repeat center center / cover;
    color: var(--light-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 80px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-hero {
        height: 60vh;
        min-height: 350px;
        padding-top: 60px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .page-hero::after {
        width: 60px;
        height: 60px;
        top: 20px;
        right: 20px;
    }

    .resources-section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .resource-container {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 6px 15px;
        margin: 0 5px;
        font-size: 0.9rem;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        border-bottom-width: 1.5px; /* Reduced for mobile */
    }

    .tab-description h2 {
        font-size: 1.8rem;
    }

    .tab-description p {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 80px 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-hero {
        height: 50vh;
        min-height: 300px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .resource-card {
        padding: 20px;
    }

    .resource-card h3 {
        font-size: 1.2rem;
    }

    .resource-card p {
        font-size: 0.9rem;
    }

    .resource-meta {
        font-size: 0.85rem;
    }

    .filter-btn {
        padding: 5px 12px;
        font-size: 0.85rem;
    }

    .tab-btn {
        font-size: 1rem;
        padding: 10px 20px;
        border-bottom-width: 1px; /* Further reduced for small screens */
    }

    .tab-description h2 {
        font-size: 1.6rem;
    }

    .tab-description p {
        font-size: 0.9rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 0.9rem;
    }
}