/* Resources Page Styles */
.resources-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #fff;
    padding: 120px 0 60px;
    text-align: center;
}

.resources-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

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

.resources-container {
    padding: 60px 0;
    background-color: #f7fafc;
}

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

.filter-btn {
    padding: 10px 24px;
    border: 2px solid #e2e8f0;
    background-color: #fff;
    color: #4a5568;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background-color: #667eea;
    border-color: #667eea;
    color: #fff;
}

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

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

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

.resource-card.hidden {
    display: none;
}

.resource-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #e2e8f0;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.resource-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.resource-meta span {
    color: #a0aec0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.resource-meta i {
    font-size: 0.85rem;
}

.resource-btn {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

.resource-btn:hover {
    background: #5a67d8;
}

/* Individual Resource Page */
.resource-detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
}

.resource-detail-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.resource-detail-hero .meta {
    font-size: 1.1rem;
    color: #e9d8fd;
}

.resource-detail {
    padding: 60px 0;
}

.resource-detail .container {
    max-width: 1000px;
}

.resource-preview {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.resource-preview-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resource-info {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.resource-description h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 20px;
}

.resource-description p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.resource-features {
    margin-top: 30px;
}

.resource-features h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.resource-features ul {
    list-style: none;
    padding: 0;
}

.resource-features li {
    padding: 10px 0;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.resource-features li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.download-box {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.download-box h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.download-stats {
    margin: 20px 0;
}

.download-stats p {
    color: #718096;
    margin: 8px 0;
    font-size: 0.95rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #667eea;
    color: #fff;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.download-btn:hover {
    background: #5a67d8;
}

.download-btn i {
    font-size: 1.2rem;
}

.download-attribution {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #718096;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resources-hero h1 {
        font-size: 2rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .resource-info {
        grid-template-columns: 1fr;
    }
    
    .download-box {
        margin-top: 30px;
    }
    
    .resource-detail-hero h1 {
        font-size: 1.8rem;
    }
}