@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* For hover effects on desktop navigation */
.dropdown-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.group:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-dropdown-content {
        transition: max-height 0.3s ease-out;
        overflow: hidden;
    }

    .mobile-dropdown-content:not(.hidden) {
        max-height: 500px; /* Adjust based on content */
    }

    .mobile-dropdown-content.hidden {
        max-height: 0;
    }
}
/* ------------------------- hero section -------------------------- */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

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

.lazy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    transition: background 0.3s ease;
    cursor: pointer;
}

.slider-dot.active {
    background: #49b2e5;
}

.slider-dot:hover {
    background: #49b2e5;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}
/* _____________________________ testimonials css _____________________________ */

.testimonial-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% + 100vw));
    }
}

.testimonial-container:hover .testimonial-track {
    animation-play-state: paused;
}

.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dot.active {
    width: 15px;
    background: #c1c0bd;
}

.fade-edge {
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );
}

/* gallery  css */

.gallery-item {
    transition: all 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.03);
}

/* legacy css  */
.font-gv {
    font-family: "Great Vibes", cursive;
}

/* FQA  css */
.faq-item {
    transition: all 0.3s ease;
}

.faq-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

/* Explicitly define the hidden state */
.faq-content.hidden {
    height: 0;
    opacity: 0;
}

.faq-content:not(.hidden) {
    opacity: 1;
    height: auto;
}

.icon-plus,
.icon-minus {
    transition: transform 0.4s ease-in-out;
}

.icon-plus.hidden {
    transform: rotateX(180deg);
}

.icon-minus:not(.hidden) {
    transform: rotateX(0deg);
}

/* gallery  */

.grid.grid-cols-2 > .hidden,
.sm\\:flex > .hidden {
    display: none !important;
}
.transition.opacity-0 {
    opacity: 0;
    transform: scale(0.95);
}

.transition.opacity-100 {
    opacity: 1;
    transform: scale(1);
}
#main-header {
    transition: background-color 0.3s ease;
}

/* new gallery  */

.gallery-img-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.gallery-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

/* about us  */

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease-in-out;
}
.card-hover:hover {
    transform: translateY(-4px);
}
/* Timeline line for larger screens */
.timeline-line {
    background: linear-gradient(to bottom, #49b2e5, #06297b);
    width: 4px;
    left: 2rem;
}
/* Timeline item animation */
.timeline-item {
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.5s ease-out forwards;
}
.timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}
.timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}
.timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Responsive adjustments for timeline on mobile */
@media (max-width: 767px) {
    .timeline-item {
        padding-left: 0 !important;
        transform: none;
        animation: none;
        opacity: 1;
    }
    .timeline-icon {
        position: relative !important;
        margin: 0 auto 1rem !important;
        left: 0 !important;
    }
}

/* past event  */

/* ========== SCROLLBAR STYLING FOR LIGHTBOX THUMBNAILS ========== */

.scrollerrbrrModify {
    scrollbar-width: thin !important; /* For Firefox */
    scrollbar-color: #49b2e5 transparent !important;
}

.scrollerrbrrModify::-webkit-scrollbar {
    height: 5px;
}

.scrollerrbrrModify::-webkit-scrollbar-track {
    background: transparent !important;
}

.scrollerrbrrModify::-webkit-scrollbar-thumb {
    background-color: #49b2e5 !important;
    border-radius: 1px;
}

.scrollerrbrrModify::-webkit-scrollbar-thumb:hover {
    background-color: #06297b !important;
}

/* back to top button  */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #49b2e5; /* --color-secondary */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    outline: none;
    border: 2px solid #06297b;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #06297b; /* --color-primary-dark */
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: white;
}
