/* --- Root Variables for Responsive Design --- */
:root {
    --card-shadow: 8px 8px 0px 0px #000000;
    --card-shadow-hover: 12px 12px 0px 0px #E4002B;
}

@media (max-width: 768px) {
    :root {
        --card-shadow: 4px 4px 0px 0px #000000;
        --card-shadow-hover: 6px 6px 0px 0px #E4002B;
    }
}

/* --- Main Section Setup --- */
.faculties-section {
    position: relative;
    overflow: hidden; /* Vital to prevent mobile horizontal scroll */
}

/* --- FACULTY GRID DESIGN --- */
.faculty-grid {
    display: grid;
    /* Responsive Grid: 1 col on mobile, 2 on tablet, 3 on desktop */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 640px) {
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- CARD DESIGN --- */
.faculty-card {
    position: relative;
    background: #0F172A; /* Dark Theme */
    border-radius: 24px;
    padding: 30px;
    border: 2px solid #000000;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: #E4002B;
}

/* Icon Box */
.faculty-icon-box {
    width: 60px;
    height: 60px;
    background: #243A6A;
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    border: 2px solid #000000;
    transition: 0.3s ease;
}

.faculty-card:hover .faculty-icon-box {
    background: #E4002B;
    transform: rotate(10deg) scale(1.1);
    border-color: white;
}

.faculty-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.faculty-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* --- ANIMATIONS --- */
@keyframes gradient-text {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.animate-gradient-text {
    background: linear-gradient(to right, #60a5fa, #E4002B, #60a5fa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-text 4s ease infinite;
}

/* --- MOBILE SPECIFIC TWEAKS --- */
@media (max-width: 768px) {
    .faculty-card {
        padding: 20px;
    }
    .faculty-name {
        font-size: 1.25rem;
    }
    .faculties-section h2 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    /* 1. Reduce the massive top padding of the section on mobile */
    .faculties-section {
        padding-top: 40px !important; 
        padding-bottom: 40px !important;
    }

    /* 2. Tighten the space between the header (button) and the cards */
    .faculties-section .flex-col {
        margin-bottom: 30px !important;
    }

    /* 3. Ensure the background light orbs don't create weird shadows on mobile */
    .faculties-section .bg-blue-600\/10, 
    .faculties-section .bg-red-600\/5 {
        width: 250px !important;
        height: 250px !important;
        blur: 60px !important;
    }

    /* 4. Fix card padding for mobile so they don't look overly chunky */
    .faculty-neon-card {
        padding: 25px !important;
        border-radius: 1.5rem !important; /* Slightly smaller corners for mobile */
    }
}