:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

html {
    /* Adjust this value to match your sticky header's height */
    scroll-padding-top: 112px;
}

body {
    font-family: var(--font-sans);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
}

/* Simple animation for cards on hover */
.training-card:hover, .book-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom brand color */
.brand-orange {
    color: #111827;
}

.bg-brand-orange {
    background-color: #111827;
}

.hover\:brand-orange-dark:hover {
    color: #f05a28;
}

.hover\:bg-brand-orange-dark:hover {
    background-color: #f05a28;
}

.hover\:text-brand-orange:hover {
    color: #111827;
}

.focus\:ring-brand-orange:focus {
    --tw-ring-color: #111827;
}

.text-brand-orange {
    color: #111827;
}

.courses-image {
    height: 30rem;
}

/* Video background styles */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This covers the container, prevents gray bars, and works well with parallax */
}

.hero-section {
    position: relative;
}

/* Styling for the AI Suggester result */
#ai-result {
    transition: opacity 0.5s ease-in-out;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #f05a28;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.client-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Gallery & Testimonials Slider Styles */
.slider-container {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
}

.gallery-item {
    scroll-snap-align: center;
    flex: 0 0 80%;
}

.gallery-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}


.testimonial-item {
    scroll-snap-align: center;
    flex: 0 0 90%;
}

@media (min-width: 768px) {
    /* md breakpoint */
    .gallery-item {
        flex-basis: 45%;
    }

    .testimonial-item {
        flex-basis: 45%;
    }
}

@media (min-width: 1024px) {
    /* lg breakpoint */
    .gallery-item {
        flex-basis: 30%;
    }

    .testimonial-item {
        flex-basis: 30%;
    }
}

/* Training Details Section */
.training-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-in-out, padding 0.7s ease-in-out;
    padding-top: 0;
    padding-bottom: 0;
}

.training-details.open {
    max-height: 1000px; /* Adjust as needed */
    padding-top: 2rem;
    padding-bottom: 2rem;
}


.ai-robot-arm-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Adjust width as needed */
    height: 100%;
    display: flex;
    /*align-items: center; !* Vertically center *!*/


}

.ai-robot-arm-container img {

    max-width: 100%;
    height: 14rem;
    left: 0;
    top: 0;
    object-fit: contain;

}
.centered-arrow {
    width: 12px;
    height: 12px;
    border-left: 2px solid #111827;
    border-bottom: 2px solid #111827;
    transform: rotate(-45deg);
    margin: 8px auto 0;
    animation: bounce-arrow 2s infinite;
}

@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateY(5px) rotate(-45deg);
    }
    60% {
        transform: translateY(3px) rotate(-45deg);
    }
}
