/* ===== DOWNLOADABLE RESOURCES SECTION STYLES ===== */
/* Following the same styling rules as existing sections */

/* Main Resources Section */
.resources-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.resources-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="resources-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(26, 104, 91, 0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23resources-dots)"/></svg>');
    z-index: 1;
}

.resources-section .container {
    position: relative;
    z-index: 2;
}

/* Resource Cards */
.resource-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 3px 15px rgba(26, 104, 91, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 104, 91, 0.15);
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1A685B 0%, #FFAC00 100%);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    z-index: 2;
    border-radius: 20px 20px 0 0;
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 35px 80px rgba(26, 104, 91, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(26, 104, 91, 0.25);
}

/* Resource Card Icon */
.resource-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A685B 0%, #FFAC00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    box-shadow: 
        0 10px 30px rgba(26, 104, 91, 0.35),
        0 0 0 8px rgba(255, 255, 255, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.resource-card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.resource-card:hover .resource-card-icon {
    transform: scale(1.1) rotate(10deg);
}

.resource-card:hover .resource-card-icon::before {
    opacity: 1;
}

/* Resource Card Content */
.resource-card-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.4s ease;
}

.resource-card:hover .resource-title {
    color: #1A685B;
}

.resource-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    flex-grow: 1;
    font-weight: 400;
}

/* Resource Meta Information */
.resource-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.resource-size,
.resource-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
    background: rgba(26, 104, 91, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-size,
.resource-card:hover .resource-type {
    background: rgba(26, 104, 91, 0.15);
    color: #1A685B;
}

/* Resource Download Button */
.resource-btn {
    background: linear-gradient(135deg, #1A685B 0%, #0f4a42 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(26, 104, 91, 0.3);
    margin-top: auto;
}

.resource-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 104, 91, 0.4);
    background: linear-gradient(135deg, #0f4a42 0%, #1A685B 100%);
    color: white;
    text-decoration: none;
}

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

.resource-btn:hover i {
    transform: translateX(3px);
}

/* Resource Background Shape */
.resource-bg-shape {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(26, 104, 91, 0.08) 0%, rgba(255, 172, 0, 0.08) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
}

.resource-card:hover .resource-bg-shape {
    opacity: 1;
    transform: scale(4) rotate(45deg);
}

/* Decorative Shapes */
.resources-shape-1,
.resources-shape-2 {
    position: absolute;
    z-index: 1;
    opacity: 0.7;
}

.resources-shape-1 {
    bottom: -20px;
    left: -20px;
    animation: float 6s ease-in-out infinite;
}

.resources-shape-2 {
    top: 20%;
    right: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

/* Scroll Reveal Animations */
.resource-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.resource-card.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.resource-card:nth-child(1) { transition-delay: 0.1s; }
.resource-card:nth-child(2) { transition-delay: 0.2s; }
.resource-card:nth-child(3) { transition-delay: 0.3s; }
.resource-card:nth-child(4) { transition-delay: 0.4s; }
.resource-card:nth-child(5) { transition-delay: 0.5s; }
.resource-card:nth-child(6) { transition-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .resources-section {
        padding: 40px 0;
    }
    
    .resource-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .resource-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .resource-title {
        font-size: 1.2rem;
    }
    
    .resource-description {
        font-size: 0.95rem;
    }
    
    .resource-meta {
        gap: 15px;
    }
    
    .resource-size,
    .resource-type {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
}

@media (max-width: 576px) {
    .resource-card {
        padding: 20px 15px;
    }
    
    .resource-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .resource-title {
        font-size: 1.1rem;
    }
    
    .resource-description {
        font-size: 0.9rem;
    }
    
    .resource-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .resource-btn {
        width: 100%;
        justify-content: center;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .resource-card {
        border: 2px solid currentColor;
    }
    
    .resource-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .resource-card,
    .resource-card-icon,
    .resource-btn,
    .resources-shape-1,
    .resources-shape-2 {
        animation: none;
        transition: none;
    }
}

/* Print Styles */
@media print {
    .resources-section {
        background: white;
    }
    
    .resource-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .resources-shape-1,
    .resources-shape-2 {
        display: none;
    }
}
