/* assets/css/components.css */

/* -------------------------------------
   Animated Timeline (About Page)
-------------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #e5e7eb;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-right::after {
    left: -10px;
}

/* Mobile Timeline Fixes */
@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-left {
        left: 0;
    }

    .timeline-right {
        left: 0;
    }

    .timeline-left::after,
    .timeline-right::after {
        left: 21px;
    }
}

/* -------------------------------------
   Animated Accordion (FAQ & Doctor Profile)
-------------------------------------- */
.accordion-content {
    display: none;
    overflow: hidden;
}

.accordion-icon {
    transition: transform 0.3s var(--timing-smooth);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

/* -------------------------------------
   Sticky Booking & Floating WhatsApp
-------------------------------------- */
.floating-widget {
    position: fixed;
    z-index: 50;
    transition: transform 0.3s var(--timing-smooth), opacity 0.3s;
}

.float-wa {
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    animation: wa-pulse 2s infinite;
}

@media screen and (max-width: 768px) {
    .float-wa {
        bottom: 90px;
        right: 16px;
    }
}

.float-wa:hover {
    transform: scale(1.1);
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Navigation Active States */
.mobile-nav-link .nav-icon-container,
.mobile-nav-link .nav-text {
    color: #6b7280;
    /* text-gray-500 */
}

.mobile-nav-link.active .nav-icon-container {
    position: absolute;
    top: -24px;
    width: 56px;
    height: 56px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.3);
    border: 4px solid white;
}

.mobile-nav-link.active .nav-text {
    position: absolute;
    bottom: 4px;
    margin-top: 0;
    color: var(--primary-color);
}

.mobile-nav-link.active i,
.mobile-nav-link.active svg {
    color: white !important;
}