/* ============================================================
   Departments Page — Department.css
   Extends: style.css (Satyadeo College Gouripur)
   ============================================================ */

/* ============================================================
   INNER PAGE BANNER (Mini Hero - Kept identical to Principal Message)
   ============================================================ */
.inner-page-banner {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue), var(--primary-blue-light)), url('../images/mini-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}

    .inner-page-banner::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 340px;
        height: 340px;
        border-radius: 50%;
        background: rgba(253, 163, 27, 0.10);
        pointer-events: none;
    }

    .inner-page-banner::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: -40px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        pointer-events: none;
    }

.inner-banner-pretitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-orange-light);
    margin-bottom: 14px;
}

    .inner-banner-pretitle i {
        font-size: 0.9rem;
    }

.inner-banner-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
}

    .inner-banner-title span {
        color: var(--primary-orange-light);
    }

.inner-banner-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

    .inner-banner-breadcrumb a {
        color: rgba(255, 255, 255, 0.85);
        transition: var(--transition);
    }

        .inner-banner-breadcrumb a:hover {
            color: var(--primary-orange-light);
        }

    .inner-banner-breadcrumb .separator {
        color: var(--primary-orange);
        font-size: 0.7rem;
    }

/* Decorative dots */
.banner-dots {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    opacity: 0.18;
}

    .banner-dots span {
        display: block;
        width: 7px;
        height: 7px;
        background: var(--white);
        border-radius: 50%;
    }


/* ============================================================
   DEPARTMENTS DETAIL SECTION
   ============================================================ */
.departments-detail-section {
    padding: 90px 0;
    background: var(--light-bg);
}

.dept-block {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-grey);
    transition: var(--transition);
}

    .dept-block:last-child {
        margin-bottom: 0;
    }

    .dept-block:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(253, 163, 27, 0.3);
    }

/* Image Wrappers */
.dept-img-wrapper {
    position: relative;
    border-radius: 20px;
    z-index: 1;
}

    .dept-img-wrapper::before {
        content: '';
        position: absolute;
        top: 20px;
        left: -20px;
        width: 100%;
        height: 100%;
        border-radius: 20px;
        z-index: -1;
        transition: transform 0.4s ease;
    }

.dept-block:hover .dept-img-wrapper::before {
    transform: translate(10px, -10px);
}

/* Image Backdrops Based on Department */
.dept-img-wrapper.style-blue::before {
    background: linear-gradient(135deg, rgba(17,110,99,0.1), rgba(17,110,99,0.3));
}

.dept-img-wrapper.style-orange::before {
    background: linear-gradient(135deg, rgba(253,163,27,0.1), rgba(253,163,27,0.3));
    left: 20px; /* Offset right for alternating layout */
}

.dept-img-wrapper.style-teal::before {
    background: linear-gradient(135deg, rgba(26,143,128,0.1), rgba(26,143,128,0.3));
}

.dept-img-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
}

/* Corner Floating Badge */
.dept-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.style-blue .dept-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
}

.style-orange .dept-badge {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    left: -15px;
    right: auto;
}

.style-teal .dept-badge {
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue));
}


/* Text Content */
.dept-content {
    padding: 10px 20px;
}

.dept-subtitle {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.dept-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

    .dept-title span {
        color: var(--primary-blue);
    }

.dept-block:nth-child(even) .dept-title span {
    color: var(--primary-orange);
}

.dept-content p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Features List */
.dept-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

    .dept-features li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 0.95rem;
        color: var(--text-dark);
        font-weight: 600;
        margin-bottom: 14px;
        line-height: 1.5;
    }

        .dept-features li i {
            color: var(--primary-orange);
            font-size: 1.1rem;
            margin-top: 3px;
            flex-shrink: 0;
        }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 991px) {
    .inner-banner-title {
        font-size: 2.2rem;
    }

    .dept-block {
        padding: 30px;
    }

    .dept-content {
        padding: 0;
    }

    .dept-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .inner-page-banner {
        padding: 52px 0 44px;
    }

    .inner-banner-title {
        font-size: 1.75rem;
    }

    .banner-dots {
        display: none;
    }

    .departments-detail-section {
        padding: 60px 0;
    }

    .dept-block {
        padding: 24px;
        margin-bottom: 40px;
    }

    .dept-img-wrapper::before {
        display: none; /* Hide background offset on mobile to avoid overflow */
    }

    .dept-badge {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: -10px;
    }

    .style-orange .dept-badge {
        left: auto;
        right: -10px;
    }

    .dept-content {
        margin-top: 20px;
    }
}
