/* Departments at DAP - Amazing Cards & Pictures */

/* Section Background */
.departments-amazing-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e6f2ec 100%);
    padding: 80px 0;
    overflow: hidden;
}

.departments-amazing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23148255" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.departments-amazing-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.departments-header {
    text-align: center;
    margin-bottom: 60px;
}

.departments-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #148255, #377f4b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(20, 130, 85, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

.departments-icon i {
    font-size: 2.5rem;
    color: white;
}

.departments-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #148255 0%, #377f4b 50%, #2c5f3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
}

.departments-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #148255, #377f4b);
    border-radius: 2px;
}

.departments-subtitle {
    font-size: 1.2rem;
    color: #148255;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 600;
}

.departments-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Departments Grid */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Department Card */
.department-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(20, 130, 85, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #148255, #377f4b, #2c5f3a);
    z-index: 2;
}

.department-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(20, 130, 85, 0.2);
}

/* Card Image Section */
.card-image-section {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e6f2ec 100%);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.department-card:hover .card-image {
    transform: scale(1.1);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 130, 85, 0.8) 0%, rgba(55, 127, 75, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.department-card:hover .card-image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.overlay-content span {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Content Section */
.card-content-section {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    position: relative;
    z-index: 2;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #148255, #377f4b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 8px 20px rgba(20, 130, 85, 0.3);
    transition: all 0.3s ease;
}

.department-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #148255;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.department-card:hover .card-title {
    color: #0d5a3a;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #377f4b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* Card Features */
.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: linear-gradient(135deg, rgba(20, 130, 85, 0.1) 0%, rgba(55, 127, 75, 0.15) 100%);
    color: #148255;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(20, 130, 85, 0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, rgba(20, 130, 85, 0.2) 0%, rgba(55, 127, 75, 0.25) 100%);
    transform: translateY(-2px);
}

/* Card Footer */
.card-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.explore-btn {
    background: linear-gradient(135deg, #148255, #377f4b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(20, 130, 85, 0.3);
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 130, 85, 0.4);
    background: linear-gradient(135deg, #0d5a3a, #148255);
}

/* Card Animations */
.department-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.department-card:nth-child(1) { animation-delay: 0.1s; }
.department-card:nth-child(2) { animation-delay: 0.2s; }
.department-card:nth-child(3) { animation-delay: 0.3s; }
.department-card:nth-child(4) { animation-delay: 0.4s; }
.department-card:nth-child(5) { animation-delay: 0.5s; }
.department-card:nth-child(6) { animation-delay: 0.6s; }
.department-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Glow Effect */
.department-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(20, 130, 85, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.department-card:hover::after {
    width: 400px;
    height: 400px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .departments-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .departments-title {
        font-size: 2.5rem;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .department-card {
        height: 450px;
    }
    
    .card-image-section {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .departments-title {
        font-size: 2rem;
    }
    
    .departments-icon {
        width: 60px;
        height: 60px;
    }
    
    .departments-icon i {
        font-size: 2rem;
    }
    
    .department-card {
        height: 400px;
    }
    
    .card-content-section {
        padding: 20px;
    }
}

/* Loading State */
.department-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus States for Accessibility */
.department-card:focus-within {
    outline: 2px solid #148255;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .department-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .department-card:hover {
        transform: none;
    }
} 