/* ========================================
   DEPARTMENTS PAGE STYLES - GREEN THEME
   ======================================== */

/* ========== HERO SECTION ========== */
.hero-departments {
    background: linear-gradient(135deg, #90EE90 0%, #228B22 50%, #4169E1 100%);
    min-height: 600px;
    position: relative;
}

/* Background Pattern */
.hero-pattern {
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 4px);
    opacity: 0.5;
}

/* ========== ANIMATED SHAPES ========== */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(144, 238, 144, 0.15);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 5%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* ========== STATS CARD ========== */
.stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* ========== WAVE SEPARATOR ========== */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* ========== ANIMATIONS ========== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-title {
    animation: slideUp 0.8s ease-out;
}

.animate-subtitle {
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.animate-description {
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

/* Badge Animation */
.animate-badge {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ========== CARD EFFECTS ========== */
.card-hover-shadow {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-hover-shadow:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(34, 139, 34, 0.2) !important;
}

.card-hover-shadow:hover .img-zoom {
    transform: scale(1.1);
}

.img-zoom {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Card Overlay */
.card-overlay {
    background: linear-gradient(to top, rgba(34, 139, 34, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover-shadow:hover .card-overlay {
    opacity: 1;
}

/* ========== BUTTON EFFECTS ========== */
.btn-hover-rise {
    transition: all 0.3s ease;
}

.btn-hover-rise:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 139, 34, 0.3);
}

/* ========== ILLUSTRATION EFFECTS ========== */
.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(144, 238, 144, 0.2) 0%, transparent 70%);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ========== DEPARTMENT ICON ========== */
.department-icon-large {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #90EE90 0%, #228B22 100%);
    border-radius: 50%;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 30px rgba(34, 139, 34, 0.3);
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========== PAGINATION ========== */
.pagination-circle .page-link {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-circle .page-item.active .page-link {
    background: linear-gradient(135deg, #90EE90 0%, #228B22 100%);
    border-color: #228B22;
    transform: scale(1.1);
}

.pagination-circle .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 139, 34, 0.3);
}

/* ========== CONTENT TEXT ========== */
.content-text {
    text-align: justify;
    line-height: 1.8;
}

/* ========== UTILITY CLASSES ========== */
.object-fit-cover {
    object-fit: cover;
}

/* ========== LOADING STATE ========== */
.department-item {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.department-item.loading {
    opacity: 0.5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-departments {
        min-height: auto;
    }

    .shape {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-wave svg {
        height: 80px;
    }

    .stats-card {
        padding: 1rem !important;
    }

    .department-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* ========== PRINT STYLES ========== */
@media print {

    .hero-departments,
    .hero-shapes,
    .hero-wave,
    .btn,
    .card-overlay {
        display: none !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}
