/* Infrastructure and Facilities Modern Styling */

:root {
    --primary-color: #800000;
    /* Century Rayon Maroon */
    --secondary-color: #f7b731;
    /* Accent Yellow */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f5f6fa;
    --card-bg: #ffffff;
    --transition-speed: 0.3s;
}

/* Common Layouts */
.infra-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    font-family: 'Montserrat', sans-serif;
}

.infra-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.infra-header {
    text-align: center;
    margin-bottom: 50px;
}

.infra-title {
    font-family: 'Quintessential', cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.infra-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.infra-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature Grid System */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Modern Cards */
.infra-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    border: none;
}

.infra-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #a01010);
    position: relative;
    overflow: hidden;
}

.card-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    transform: rotate(45deg);
    transition: transform 0.7s ease;
}

.infra-card:hover .card-icon-wrapper::before {
    transform: rotate(45deg) translate(20%, 20%);
}

.card-icon {
    font-size: 4rem;
    color: #fff;
    z-index: 1;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.card-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-stat {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(247, 183, 49, 0.2);
    color: #d35400;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Laboratory Specific Styles */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.lab-card {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.lab-card:hover {
    transform: scale(1.02);
}

.lab-image {
    width: 40%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.lab-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
}

.lab-details {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Campus Safety Styles */
.safety-section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
    text-align: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.safety-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.safety-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s;
}

.safety-item:hover {
    transform: translateX(10px);
    background: #fff8f8;
}

.safety-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .lab-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .infra-title {
        font-size: 2.5rem;
    }

    .lab-card {
        flex-direction: column;
    }

    .lab-image {
        width: 100%;
        height: 200px;
    }

    .lab-details {
        width: 100%;
    }
}

/* Animation Classes */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}