/*
 * CSS Version: 1.6.0
 * CSS Version Date: 2025-06-02
 * CSS Version Name: Fixed video carousel functionality and improved navigation
 */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    padding-top: 70px; /* Push all content below fixed navigation */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Menu */
.main-nav {
    background-color: #2c3e50;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-contact-btn {
    background-color: #3498db;
    padding: 8px 15px;
    border-radius: 4px;
}

.nav-contact-btn:hover {
    background-color: #2980b9;
    color: white !important;
}

/* Hero Header with Background */
.hero-header {
    background-image: url('../images/header-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.7);
    z-index: 1;
}

.hero-header .container {
    position: relative;
    z-index: 2;
    text-align: left;
    align-self: center;
    margin-left: 40px;
    max-width: 960px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-header h1 {
    margin-bottom: 20px;
    font-size: 4.5rem;
    color: #2c3e50;
}

.tagline {
    font-size: 1.8rem;
    max-width: 750px;
    margin: 0 0 30px 0;
    color: #34495e;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Sections Styling */
section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2.2rem;
}

/* Services Section */
.services-section {
    background-color: #fff;
}

.excellence-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.excellence-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.8rem;
}

.excellence-section p {
    font-size: 1.47rem;
    color: #555;
    max-width: none;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

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

.service-content {
    padding: 20px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.5rem;
}

/* Gallery Section */
.gallery-section {
    background-color: #e6f3ff;
    display: block !important;
    justify-content: unset !important;
}

.gallery-section .container {
    max-width: 1200px;
    padding: 0 20px;
}

.gallery-carousel {
    width: 95%;
    margin: 0 auto;
}

.gallery-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.gallery-carousel-track {
    position: relative;
    height: 100%;
    width: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 10;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.8);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-slide:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 62, 80, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: background-color 0.3s ease;
}

.gallery-carousel-button:hover {
    background-color: rgba(44, 62, 80, 0.9);
}

.gallery-carousel-button.prev-button {
    left: 20px;
}

.gallery-carousel-button.next-button {
    right: 20px;
}

.gallery-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
}

.gallery-indicator.active {
    background-color: white;
}

/* Videos Section - FIXED CAROUSEL STYLES */
.videos-section {
    background-color: #e6f3ff;
    padding: 80px 0;
}

.videos-section .container {
    max-width: 1200px;
    padding: 0 20px;
}

.videos-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.video-carousel {
    max-width: 95%;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.15);
    height: 500px;
    background-color: #000;
}

.carousel-track {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    background-color: #000;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.video-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-wrapper video {
    width: 100%;
    height: calc(100% - 60px);
    object-fit: contain;
    background-color: #000;
}

.video-wrapper h3 {
    text-align: center;
    padding: 15px;
    margin: 0;
    background-color: #2c3e50;
    color: white;
    font-size: 1.2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 62, 80, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.carousel-button:hover {
    background-color: rgba(44, 62, 80, 1);
    transform: translateY(-50%) scale(1.1);
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 30;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.indicator.active,
.indicator:hover {
    background-color: white;
    transform: scale(1.2);
}

/* Scheduling Section */
.scheduling-section {
    background-color: #fff;
}

.scheduling-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.scheduling-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.scheduling-option {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.scheduling-option:hover {
    transform: translateY(-5px);
}

.scheduling-option h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.scheduling-option p {
    margin-bottom: 20px;
    color: #666;
}

.scheduling-button {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.scheduling-button:hover {
    background-color: #1a2530;
}

/* Contact Section */
.contact-section {
    background-color: #f1f1f1;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9;
}

.contact-info {
    background-color: #2c3e50;
    color: white;
    padding: 30px;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-links {
    list-style: none;
}

.contact-links li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-links i {
    margin-right: 15px;
    margin-top: 5px;
    color: #3498db;
}

.contact-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: #3498db;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

/* Section Container Styles - SIMPLIFIED */
.section-container {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
}

.section-container > section {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 20px; /* Additional breathing room */
}

.services-section,
.gallery-section,
.scheduling-section,
.contact-section {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Videos section specific overrides - REMOVED PROBLEMATIC HEIGHT CALCULATION */
.videos-section {
    height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-header {
        padding: 150px 0 80px;
    }
    
    .hero-header h1 {
        font-size: 2.2rem;
    }
    
    .services-grid,
    .scheduling-options,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-links {
        display: none;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .prev-button {
        left: 10px;
    }
    
    .next-button {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}