/* Resources Page Styles */

/* Resources Hero Section */
.resources-hero {
    padding: 140px 20px 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.resources-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

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

.resources-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.resources-hero-description {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Resources Section */
.resources-section {
    padding: 6rem 0;
    background: var(--light-bg);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Resource Card */
.resource-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.resource-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.resource-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.resource-card:hover .resource-card-image img {
    transform: scale(1.1);
}

.resource-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.resource-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.resource-card-category,
.resource-card-time {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-card-category i,
.resource-card-time i {
    color: var(--secondary-color);
}

.resource-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.resource-card-excerpt {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.resource-card-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-1);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.resource-card-button:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.resource-card-button i {
    transition: transform 0.3s ease;
}

.resource-card-button:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .resources-hero {
        padding: 120px 20px 60px;
    }

    .resources-hero-title {
        font-size: 2.2rem;
    }

    .resources-hero-description {
        font-size: 1.1rem;
    }

    .resources-section {
        padding: 4rem 0;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .resource-card-image {
        height: 200px;
    }

    .resource-card-content {
        padding: 1.5rem;
    }

    .resource-card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .resources-hero-title {
        font-size: 1.8rem;
    }

    .resources-hero-description {
        font-size: 1rem;
    }

    .resource-card-meta {
        gap: 1rem;
    }

    .resource-card-button {
        width: 100%;
        justify-content: center;
    }
}
