/* Facilities Page Specific Styles */

/* Dropdown Menu Styles - Consistent with services.html */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: rgba(75, 172, 36, 0.1);
    color: #4BAC24;
    border-left-color: #4BAC24;
    transform: translateX(5px);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4BAC24;
    transition: width 0.3s ease;
}

.dropdown-toggle:hover {
    color: #4BAC24;
}

.dropdown-toggle:hover::after {
    width: 100%;
}

.dropdown-toggle.active {
    color: #4BAC24;
    font-weight: 600;
}

.dropdown-toggle.active::after {
    width: 100%;
}

/* Facilities Hero Section */
.facilities-hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/hero-image.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 120px;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facilities-hero .hero-content {
    max-width: 800px;
    padding: 2rem;
}

.facilities-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

.facilities-hero .hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Facilities Overview Section */
.facilities-overview {
    padding: 3rem 0;
    background: white;
    text-align: center;
}

.overview-content .section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-family: 'Times New Roman', serif;
}

.overview-text {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Facilities Section */
.main-facilities {
    padding: 3rem 0;
    background: #f8f9fa;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.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;
    opacity: 0;
    transform: translateY(30px);
    border: 2px solid transparent;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #4BAC24;
}

.facility-card.featured {
    border: 2px solid #4BAC24;
    background: linear-gradient(135deg, #ffffff, #cef7be);
}

.facility-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.facility-image {
    position: relative;
    height: 250px;
    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-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #4BAC24, #7bdf53);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.facility-content {
    padding: 2rem;
}

.facility-content h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
}

.facility-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.facility-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.facility-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #555;
}

.facility-features li i {
    color: #4BAC24;
    margin-right: 0.8rem;
    font-size: 1rem;
}

.facility-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4BAC24, #7bdf53);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.facility-btn:hover {
    background: linear-gradient(135deg, #3a8c1d, #6bcf45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(75, 172, 36, 0.3);
}

/* Facility Features Section */
.facility-features-section {
    padding: 3rem 0;
    background: white;
}

.facility-features-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-family: 'Times New Roman', serif;
}

.features-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-item:hover {
    background: #cef7be;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4BAC24, #7bdf53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.feature-item h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    /* transition: color 0.3s ease; */

}

.feature-item a {
    color: #2c3e50;
    text-decoration: none;

}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Virtual Tour Section */
.virtual-tour {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.tour-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tour-text .section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-family: 'Times New Roman', serif;
}

.tour-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tour-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tour-btn,
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4BAC24, #7bdf53);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a8c1d, #6bcf45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(75, 172, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #4BAC24;
    border: 2px solid #4BAC24;
}

.btn-secondary:hover {
    background: #4BAC24;
    color: white;
    transform: translateY(-2px);
}

.tour-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tour-preview {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #4BAC24, #7bdf53);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tour-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(75, 172, 36, 0.4);
}

.tour-preview i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.tour-preview span {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.tour-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Testimonials Section */
.testimonials {
    padding: 3rem 0;
    background: linear-gradient(135deg, #2c3e50, #4BAC24);
    color: white;
}

.testimonials .section-title {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-family: 'Times New Roman', serif;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: #7bdf53;
    position: absolute;
    top: -10px;
    left: -15px;
    font-family: serif;
}

.testimonial-author h5 {
    color: #7bdf53;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.testimonial-author span {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #4BAC24;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fff;
    transform: translateY(-2px);
}





.about-text ul {
    list-style: none;
}

.about-text li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #555;
    font-family: helvetica, sans-serif, Arial;
        /* line-height: 1.5; */
}

.about-text i {
    color: #4BAC24;
    width: 20px;
    text-align: center;
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .dropdown {
        width: 80%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(75, 172, 36, 0.1);
        backdrop-filter: none;
        border-radius: 5px;
        margin: 1rem 0;
        padding: 0;
        min-width: auto;
        width: 100%;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: all 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        max-height: 200px;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu a {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        border-left: none;
        text-align: center;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(75, 172, 36, 0.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .facilities-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .facilities-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .facility-card {
        min-width: auto;
    }
    
    .facility-image {
        height: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tour-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .tour-preview {
        width: 250px;
        height: 160px;
    }
    
    .tour-preview i {
        font-size: 3rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tour-buttons {
        justify-content: center;
    }
    
    .overview-content .section-title,
    .facility-features-section .section-title,
    .testimonials .section-title,
    .tour-text .section-title {
        font-size: 2rem;
    }
    
    .facility-content h3 {
        font-size: 1.5rem;
    }
    
    .facility-content,
    .feature-item,
    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .facilities-hero {
        height: 50vh;
        margin-top: 100px;
    }
    
    .facilities-hero .hero-title {
        font-size: 2rem;
    }
    
    .facilities-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .facility-card {
        margin: 0;
    }
    
    .facility-content {
        padding: 1.5rem;
    }
    
    .facility-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .tour-preview {
        width: 200px;
        height: 140px;
    }
    
    .tour-preview i {
        font-size: 2.5rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .main-facilities,
    .facility-features-section,
    .virtual-tour,
    .testimonials {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .tour-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 200px;
        text-align: center;
    }
}

/* Animation delays for staggered effects */
.facility-card:nth-child(1) { transition-delay: 0.1s; }
.facility-card:nth-child(2) { transition-delay: 0.2s; }
.facility-card:nth-child(3) { transition-delay: 0.3s; }
.facility-card:nth-child(4) { transition-delay: 0.4s; }

.feature-item:nth-child(1) { transition-delay: 0.1s; }
.feature-item:nth-child(2) { transition-delay: 0.2s; }
.feature-item:nth-child(3) { transition-delay: 0.3s; }
.feature-item:nth-child(4) { transition-delay: 0.4s; }
.feature-item:nth-child(5) { transition-delay: 0.5s; }
.feature-item:nth-child(6) { transition-delay: 0.6s; }

.testimonial-card:nth-child(1) { transition-delay: 0.1s; }
.testimonial-card:nth-child(2) { transition-delay: 0.2s; }
.testimonial-card:nth-child(3) { transition-delay: 0.3s; }

/* Accessibility Improvements */
.facility-btn:focus,
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid #4BAC24;
    outline-offset: 2px;
}

.tour-preview:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .facility-card,
    .feature-item,
    .testimonial-card {
        border: 2px solid #000;
    }
    
    .facility-btn,
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .facility-card,
    .feature-item,
    .testimonial-card,
    .tour-preview {
        transition: none;
    }
    
    .tour-preview::before {
        animation: none;
    }
    
    .facility-card:hover,
    .feature-item:hover,
    .testimonial-card:hover,
    .tour-preview:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .virtual-tour {
        display: none;
    }
    
    .facilities-hero {
        height: auto;
        background: none;
        color: #000;
        margin-top: 0;
    }
    
    .testimonials {
        background: none;
        color: #000;
    }
    
    .facility-card,
    .feature-item,
    .testimonial-card {
        background: #f0f0f0;
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .facility-image {
        height: 150px;
    }
}