﻿body {
}
.page-hero {
    background-color: var(--highlight-color-light);
    padding: 40px 0;
    text-align: center;
    margin-top: 0;
    margin-bottom: 50px;
}

    .page-hero h1 {
        font-size: 3rem;
        color: var(--primary-color);
        margin-bottom: 15px;
        font-weight: 700;
    }

    .page-hero p {
        font-size: 1.1rem;
        color: var(--text-color);
        max-width: 800px;
        margin: 0 auto;
    }

.section-heading {
    font-size: 2.2rem;
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    width: auto;
}

.departments-grid, .sections-grid {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    text-align: left;
}

.dept-card {
    background-color: var( --bg-mid);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .dept-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .dept-card .icon-circle {
        background-color: var(--highlight-color-light);
        color: var(--primary-color);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin-bottom: 15px;
    }

    .dept-card h3 {
        font-size: 1.3rem;
        color: var(--primary-color);
        margin-bottom: 10px;
        font-weight: 600;
    }

    .dept-card p {
        font-size: 0.9rem;
        color: var(--text-color);
        line-height: 1.5;
        flex-grow: 1;
    }

/* Mobile Responsive Styles */

/* Tablets and smaller desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Small tablets (max-width: 768px) */
@media (max-width: 768px) {
    .page-hero {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

        .page-hero h1 {
            font-size: 2.2rem;
            margin-bottom: 12px;
        }

        .page-hero p {
            font-size: 1rem;
            padding: 0 15px;
        }

    .section-heading {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding-bottom: 8px;
        border-bottom-width: 2px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }

    .dept-card {
        padding: 25px;
    }

        .dept-card .icon-circle {
            width: 50px;
            height: 50px;
            font-size: 20px;
            margin-bottom: 12px;
        }

        .dept-card h3 {
            font-size: 1.2rem;
            margin-bottom: 8px;
        }

        .dept-card p {
            font-size: 0.85rem;
        }
}

/* Mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .page-hero {
        padding: 25px 15px;
        margin-bottom: 30px;
    }

        .page-hero h1 {
            font-size: 1.8rem;
            margin-bottom: 10px;
        }

        .page-hero p {
            font-size: 0.95rem;
        }

    .section-heading {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-bottom: 6px;
        width: 100%;
        text-align: center;
    }

    .departments-grid, .sections-grid {
        padding: 0 15px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .dept-card {
        padding: 20px;
    }

        .dept-card .icon-circle {
            width: 45px;
            height: 45px;
            font-size: 18px;
            margin-bottom: 10px;
        }

        .dept-card h3 {
            font-size: 1.1rem;
            margin-bottom: 8px;
        }

        .dept-card p {
            font-size: 0.85rem;
            line-height: 1.4;
        }

        .dept-card:hover {
            transform: translateY(-5px);
        }
}

/* Extra small devices (max-width: 360px) */
@media (max-width: 360px) {
    .page-hero h1 {
        font-size: 1.6rem;
    }

    .section-heading {
        font-size: 1.3rem;
    }

    .dept-card {
        padding: 18px;
    }

        .dept-card h3 {
            font-size: 1rem;
        }

        .dept-card p {
            font-size: 0.8rem;
        }
}