.cyber-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('{% static "images/header-background.jpg" %}');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.cyber-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(225, 90, 42, 0.3) 0%, transparent 70%);
    animation: radialPulse 4s ease-in-out infinite;
}

@keyframes radialPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.cyber-header h1 {
    font-size: 3.5em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.cyber-header p {
    font-size: 1.2em;
    margin-top: 10px;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.resources {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5em;
    color: #e15a2a;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.language-section {
    margin-bottom: 40px;
}

.lang-title {
    font-size: 1.8em;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff69b4, #e15a2a);
    color: #fff;
    padding: 10px;
    border-radius: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.lang-title:hover {
    transform: scale(1.05);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.resource-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(225, 90, 42, 0.3);
}

.resource-card.expanded {
    height: auto;
    max-height: 300px; /* Adjust as needed */
}

.resource-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-img {
    transform: scale(1.1);
}

.resource-name {
    margin-top: 10px;
    font-size: 1.1em;
    color: #333;
    text-align: center;
    max-width: 180px;
    transition: color 0.3s ease;
}

.resource-card:hover .resource-name {
    color: #e15a2a;
}

@media (max-width: 768px) {
    .cyber-header h1 {
        font-size: 2.5em;
    }

    .cyber-header p {
        font-size: 1em;
    }

    .section-title {
        font-size: 2em;
    }

    .lang-title {
        font-size: 1.5em;
    }

    .resource-img {
        width: 150px;
        height: 150px;
    }

    .resource-name {
        font-size: 1em;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .cyber-header {
        padding: 30px 10px;
    }

    .cyber-header h1 {
        font-size: 2em;
    }

    .cyber-header p {
        font-size: 0.9em;
    }

    .resources {
        padding: 20px 10px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .lang-title {
        font-size: 1.3em;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-img {
        width: 120px;
        height: 120px;
    }

    .resource-name {
        font-size: 0.9em;
        max-width: 120px;
    }
}