/* Infrastructure Page Specific Styles */

/* Infrastructure Stats */
.infrastructure-stats-area {
    background: #f8f9fa;
}

.infra-stat-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #007bff;
}

.infra-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.infra-stat-card .stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 20px;
}

.infra-stat-card .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.infra-stat-card .stat-label {
    color: #6c757d;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Default: 3 columns */
    gap: 30px;
    align-items: start;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablets */
    }
}

@media (max-width: 575.98px) {
    .facilities-grid {
        grid-template-columns: 1fr;
        /* Mobile */
    }
}

/* Facility Card */
.facility-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Category-specific colors */
.research-labs-facility {
    border-left-color: #dc3545;
}

.research-labs-facility:hover {
    border-left-color: #c82333;
}

.academic-facilities-facility {
    border-left-color: #28a745;
}

.academic-facilities-facility:hover {
    border-left-color: #1e7e34;
}

/* Facility Image */
.facility-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
}

.facility-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Facility Content */
.facility-content {
    padding: 25px;
}

.facility-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.facility-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Facility Features */
.facility-features {
    margin-bottom: 20px;
}

.facility-features h5 {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: #495057;
}

.features-list i {
    color: #28a745;
    font-size: 12px;
}

/* Facility Meta */
.facility-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
}

.meta-item i {
    color: #007bff;
}

/* Facility Actions */
.facility-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.facility-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.facility-link:hover {
    color: #0056b3;
}

.facility-link i {
    transition: transform 0.3s ease;
}

.facility-link:hover i {
    transform: translateX(3px);
}

.book-link {
    color: #28a745;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.book-link:hover {
    color: #1e7e34;
}

/* Computing Resources */
.computing-resources-area {
    position: relative;
    background-attachment: fixed;
}

.computing-resources-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.computing-resources-area .container {
    position: relative;
    z-index: 2;
}

.computing-resources-list {
    display: grid;
    gap: 25px;
}

.resource-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.resource-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.resource-content h4 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.resource-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    line-height: 1.6;
}

.resource-specs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.spec-item i {
    color: #007bff;
}

.computing-image {
    text-align: center;
}

.computing-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.equipment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.equipment-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-status {
    position: absolute;
    top: 15px;
    right: 15px;
}

.equipment-status .status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.available {
    background: #28a745;
    color: white;
}

.status-badge.in-use {
    background: #ffc107;
    color: #212529;
}

.status-badge.maintenance {
    background: #dc3545;
    color: white;
}

.equipment-content {
    padding: 25px;
}

.equipment-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.equipment-model {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 12px;
}

.equipment-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.equipment-applications h5 {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.applications-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.app-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.equipment-contact {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.equipment-contact p {
    margin-bottom: 5px;
    color: #6c757d;
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Make the entire card a link */
.equipment-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Equipment Card */
.equipment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Image Wrapper */
.equipment-image {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

/* Image Fill */
.equipment-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* Status Badge */
.equipment-status {
    position: absolute;
    top: 15px;
    right: 15px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.available {
    background: #28a745;
    color: white;
}

.status-badge.in-use {
    background: #ffc107;
    color: #212529;
}

.status-badge.maintenance {
    background: #dc3545;
    color: white;
}

/* Equipment Info */
.equipment-content {
    padding: 25px;
}

.equipment-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.equipment-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.equipment-applications h5 {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.applications-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.app-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.equipment-image {
    height: 200px;
    width: 100%;
    background: #f8f9fa;
    /* optional light background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.equipment-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain !important;
}

/* Virtual Tour */
.virtual-tour-area {
    position: relative;
    background-attachment: fixed;
}

.virtual-tour-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.virtual-tour-area .container {
    position: relative;
    z-index: 2;
}

.tour-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

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

.tour-icon {
    width: 80px;
    height: 80px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 20px;
}

.tour-card h4 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tour-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tour-link {
    color: #007bff;
    background: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.tour-link:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Infrastructure CTA */
.infrastructure-cta {
    position: relative;
    background-attachment: fixed;
}

.infrastructure-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.infrastructure-cta .container {
    position: relative;
    z-index: 2;
}

/* Section Headers */
.section-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .computing-image {
        margin-top: 30px;
    }
    
    .resource-specs {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .facility-content,
    .equipment-content {
        padding: 20px;
    }
    
    .facility-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .resource-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .resource-icon {
        margin: 0 auto 15px;
    }
    
    .facility-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .infra-stat-card {
        padding: 25px 20px;
    }
    
    .infra-stat-card .stat-number {
        font-size: 28px;
    }
    
    .tour-card {
        padding: 25px 20px;
    }
    
    .applications-tags {
        gap: 6px;
    }
    
    .app-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Equipment Categories Styling */
.equipment-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.equipment-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.equipment-card-link:hover {
    transform: scale(1.03);
}

.equipment-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.equipment-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.equipment-image {
    height: 250px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.equipment-card-link:hover .equipment-image img {
    transform: scale(1.1);
}

.equipment-content {
    padding: 15px;
    background-color: #f9f9f9;
}

.equipment-name {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.equipment-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}