/* Facilities Page Custom Styles */

/* Hero Section */
.facilities-hero-section {
    background: linear-gradient(135deg, #F39F5F 0%, #a42c2f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.facilities-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/image/hero-shape.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.facilities-hero-section .container {
    position: relative;
    z-index: 2;
}

.facilities-hero-section .section-title h2 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.facilities-hero-section .lead {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.2rem;
}

/* Section Headings */
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 1rem;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--theme), var(--header));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0;
}

/* Facility Cards */
.facility-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.facility-card:hover::before {
    left: 100%;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.facility-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--theme), var(--header));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.facility-icon i {
    font-size: 2rem;
    color: white;
}

.facility-card:hover .facility-icon {
    transform: scale(1.1) rotate(5deg);
}

.facility-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 1rem;
}

.facility-content p {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.facility-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facility-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.facility-features li i {
    color: var(--theme);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Sports Facility Cards */
.sports-facility-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.sports-facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.sports-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.sports-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sports-facility-card:hover .sports-image img {
    transform: scale(1.1);
}

.sports-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(243, 159, 95, 0.8), rgba(164, 44, 47, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sports-facility-card:hover .sports-overlay {
    opacity: 1;
}

.sports-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.sports-facility-card:hover .sports-icon {
    transform: scale(1);
}

.sports-icon i {
    font-size: 1.5rem;
    color: var(--header);
}

.sports-content {
    padding: 1.5rem;
}

.sports-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 1rem;
}

.sports-content p {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sports-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, var(--theme), var(--header));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sports-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--theme), var(--header));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 1.5rem;
    transition: all 0.3s ease;
}

.sports-icon-large i {
    font-size: 2.5rem;
    color: white;
}

.sports-facility-card:hover .sports-icon-large {
    transform: scale(1.1) rotate(-5deg);
}

/* Infrastructure Cards */
.infrastructure-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.infrastructure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.infrastructure-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--theme), var(--header));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.infrastructure-icon i {
    font-size: 1.8rem;
    color: white;
}

.infrastructure-card:hover .infrastructure-icon {
    transform: scale(1.1);
}

.infrastructure-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 1rem;
}

.infrastructure-card p {
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Technology Section */
.technology-content h4 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 1.5rem;
}

.technology-content p {
    color: var(--text);
    line-height: 1.7;
    font-size: 1.1rem;
}

.technology-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--theme);
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.feature-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text);
    margin: 0;
    font-size: 0.95rem;
}

.technology-image img {
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--header) 0%, var(--theme) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/image/hero-shape.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-button .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section-heading {
        font-size: 2rem;
    }
    
    .facility-card,
    .infrastructure-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .facility-icon,
    .infrastructure-icon {
        width: 60px;
        height: 60px;
    }
    
    .facility-icon i,
    .infrastructure-icon i {
        font-size: 1.5rem;
    }
    
    .sports-image {
        height: 150px;
    }
    
    .sports-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .sports-icon-large i {
        font-size: 2rem;
    }
    
    .technology-content h4 {
        font-size: 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        text-align: center;
        margin-top: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .facilities-hero-section .lead {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .facility-card,
    .infrastructure-card {
        padding: 1rem;
    }
    
    .sports-content {
        padding: 1rem;
    }
    
    .sports-features {
        justify-content: center;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Animation */
.facility-card,
.sports-facility-card,
.infrastructure-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects for Better UX */
.facility-card:hover .facility-content h4,
.infrastructure-card:hover h4,
.sports-facility-card:hover .sports-content h4 {
    color: var(--theme);
    transition: color 0.3s ease;
}

/* Accessibility Improvements */
.facility-card:focus,
.sports-facility-card:focus,
.infrastructure-card:focus {
    outline: 2px solid var(--theme);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .facility-card,
    .sports-facility-card,
    .infrastructure-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .facilities-hero-section {
        background: white;
        color: black;
    }
}
