/* Custom font style */
.font-farro {
    font-family: "Farro", sans-serif;
}
/* Prevents scrolling of the body when the mobile menu or loader is active */
.body-no-scroll {
    overflow: hidden;
}

/* --- Loader Styles --- */
#loader {
    font-family: "Roboto", sans-serif;
}
.plane-img {
    animation: spin 2.5s linear infinite;
}
.earth {
    background: url("https://zupimages.net/up/19/34/6vlb.gif");
    background-size: 340px;
    animation: earthAnim 12s infinite linear;
}
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
@keyframes earthAnim {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -340px;
    }
}

/* --- Header Scroll Effect --- */
#main-header {
    transition: transform 0.3s ease-in-out;
}

#top-contact-bar {
    /* This ensures the top bar itself also has a smooth transition if needed */
    transition: transform 0.3s ease-in-out;
}

#main-header.header-scrolled {
    /* This moves the ENTIRE header up by 48px (the height of the top bar, h-12) */
    transform: translateY(-48px);
}

/* --- Hero Slider Styles --- */
.slider-dot-active {
    background-color: #0891b2; /* cyan-700 */
    transform: scale(1.25);
}
#slide-content {
    transition: opacity 0.5s ease-in-out;
}
#hero-image {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 1s ease-out forwards;
    animation-delay: 0.5s;
}
@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
#hero-image-2 {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFromBottom 1s ease-out forwards;
    animation-delay: 0.8s;
}
@keyframes slideUpFromBottom {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.shape-float-animation {
    animation: float 4s ease-in-out infinite alternate;
}
@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0);
    }
    100% {
        transform: translateY(-15px) translateX(15px) rotate(5deg);
    }
}

/* --- Inquiry Section Styles --- */
.inquiry-tab-btn.active {
    color: #0e7490; /* text-cyan-800 */
    border-color: #0e7490; /* border-cyan-800 */
}
.inquiry-tab-btn:not(.active) {
    color: #6b7280; /* text-gray-500 */
    border-color: transparent;
}
.inquiry-tab-btn:not(.active):hover {
    color: #0891b2; /* hover:text-cyan-700 */
    border-color: #a5f3fc; /* hover:border-cyan-200 */
}

/* Custom Multi-select Dropdown */
.custom-select-panel {
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* Image Hover Effect - Slower, smoother, and glitch-fixed */
.image-hover-container .hover-image {
    /* Start with the image fully clipped from the right */
    clip-path: inset(0 100% 0 0);
    /* Make the image slightly larger to hide edge artifacts */
    transform: scale(1.03);
    /* Define a slower and smoother transition */
    transition: clip-path 0.7s ease-in-out;
}
.image-hover-container:hover .hover-image {
    /* Reveal the image by moving the clip-path to the edge */
    clip-path: inset(0 0 0 0);
}

/* --- What We Offer Section --- */
.animated-border-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #0891b2; /* cyan-700 */
    pointer-events: none;
    animation: rotate-animate 13s linear infinite;
}
.animated-border-shape:nth-child(1) {
    border-radius: 38% 62% 64% 36% / 43% 35% 65% 57%;
}
.animated-border-shape:nth-child(2) {
    animation-direction: reverse;
    border-radius: 41% 59% 40% 60% / 65% 66% 34% 35%;
}
@keyframes rotate-animate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.play-button-pulse {
    animation: shadow-pulse 1.5s infinite;
}
@keyframes shadow-pulse {
    0% {
        box-shadow: 0 0 0 0px rgba(255, 255, 255, 0.7);
    }
    100% {
        box-shadow: 0 0 0 25px rgba(255, 255, 255, 0);
    }
}

/* --- Testimonial Slider --- */
.testimonial-slider-container {
    transition: transform 0.5s ease-in-out;
}
.testimonial-item .testimonial-card,
.testimonial-item .testimonial-image,
.testimonial-item .testimonial-content p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.testimonial-item.is-active .testimonial-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.testimonial-item.is-active .testimonial-image {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.testimonial-item.is-active .testimonial-content p:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}
.testimonial-item.is-active .testimonial-content p:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}
.testimonial-item.is-active .testimonial-content p:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}
.testimonial-dot {
    width: 40px;
    height: 4px;
    background-color: #cbd5e1; /* gray-300 */
    border-radius: 2px;
    overflow: hidden;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.testimonial-dot span {
    display: block;
    height: 100%;
    width: 0;
    background-color: #0891b2; /* cyan-700 */
    transition: width 0.4s ease;
}

.testimonial-dot.active {
    background-color: #a5f3fc; /* cyan-200 */
}

.testimonial-dot.active span {
    width: 100%;
}

/* --- Floating Action Button Styles --- */
.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}
@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.back-to-top-float {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}
.back-to-top-float.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-float:hover {
    background-color: #0e7490; /* cyan-800 */
}
.back-to-top-float.is-launching #airplane-icon {
    animation: launch-airplane 0.8s ease-in forwards;
}
@keyframes launch-airplane {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-250px);
        opacity: 0;
    }
}

/* ===== 3D SLIDER STYLES ===== */

/* Main container for the slider */
.slider-container {
    width: 100%;
    height: 420px;
    perspective: 1200px;
    margin: 0 auto;
}

/* Wrapper for all the slides */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Individual slide card */
.slide {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: 600px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    cursor: pointer;

    /* Default state for non-active slides */
    filter: blur(4px);

    /* Smooth transitions for all animated properties */
    transition: filter 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styling for the slide in the center */
.slide.active {
    filter: none; /* Remove blur */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25); /* Enhance shadow */
}

/* Destination name caption styles */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 24px 24px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    color: white;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.slide-caption h3 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Hide the caption on non-active slides */
.slide:not(.active) .slide-caption {
    opacity: 0;
}

/* "Explore" button styles */
.explore-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;

    /* Start hidden */
    opacity: 0;
    visibility: hidden;

    /* Center it and set up entry animation */
    transform: translate(-50%, -40%);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;

    /* Transparent outline "glass" effect */
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid white;
    color: white;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Make the button appear ONLY on hover of the ACTIVE slide */
.slide.active:hover .explore-btn {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%); /* Animate to final centered position */
}

/* Hover effect for the button itself */
.explore-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ===== NEW STYLES FOR NAVIGATION BUTTONS ===== */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30; /* Ensure buttons are on top */

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #0e7490; /* text-cyan-800 */
    cursor: pointer;

    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* ===== NEW STYLES FOR RESPONSIVENESS ===== */
@media (max-width: 767px) {
    .slide {
        width: 280px; /* Smaller width for mobile */
        height: 187px; /* Maintain aspect ratio */
    }

    .slider-container {
        height: 220px; /* Adjust container height */
        perspective: 800px; /* Adjust perspective for smaller slides */
    }

    .slide-caption h3 {
        font-size: 20px; /* Smaller font size for captions */
    }

    .explore-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .slider-nav-btn {
        width: 36px;
        height: 36px;
    }
}

/* --- Timeline and FAQ Styles --- */
/* --- Timeline and FAQ Styles --- */
.study-abroad-bg {
    background-image: url("../image/world-map-bg.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.timeline-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        padding 0.5s ease;
    padding-top: 0;
    padding-bottom: 0;
}
.faq-item.is-open .faq-content {
    max-height: 500px; /* A large enough value to not clip content */
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}
