/* Mobile-friendly styles for resources page */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.resource-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.resource-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.resource-content {
    padding: 20px;
}

.resource-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.resource-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

.resource-btn {
    width: 100%;
    text-align: center;
}

/* Concepts section */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.concept-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.concept-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.concept-icon i {
    color: white;
    font-size: 24px;
}

.concept-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.concept-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.concept-types, .concept-applications {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.concept-type, .concept-application {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.concept-type h4, .concept-application h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4a00e0;
    font-size: 16px;
}

.concept-type p, .concept-application p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Frameworks section */
.frameworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.framework-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.framework-header {
    padding: 20px;
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.framework-title {
    margin: 0;
    font-size: 20px;
}

.framework-tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.framework-content {
    padding: 20px;
}

.framework-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.framework-phases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.framework-phase {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 8px 15px;
    border-radius: 20px;
}

.phase-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #4a00e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 8px;
}

.framework-principles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.framework-principle {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
}

.framework-principle i {
    color: #4a00e0;
    margin-right: 10px;
}

/* Free resources section */
.free-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.free-resource-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.resource-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.resource-icon i {
    color: white;
    font-size: 30px;
}

.free-resource-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.free-resource-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .resources-grid,
    .concepts-grid,
    .frameworks-grid,
    .free-resources-grid {
        grid-template-columns: 1fr;
    }
    
    .concept-types,
    .concept-applications,
    .framework-principles {
        grid-template-columns: 1fr;
    }
    
    .framework-phases {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resource-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .resource-image {
        height: 150px;
    }
    
    .concept-card,
    .framework-card,
    .free-resource-card {
        padding: 20px;
    }
    
    .resource-icon,
    .concept-icon {
        width: 50px;
        height: 50px;
    }
    
    .resource-icon i,
    .concept-icon i {
        font-size: 20px;
    }
}
