/* =============================================
   HOMEPAGE STYLES - PREMIUM DESIGN
   ============================================= */

/* ========== PREMIUM HERO SECTION - IMAGE CAROUSEL ========== */

.hero-premium {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    aspect-ratio: 12 / 5;
    height: auto;
    min-height: 0;
    align-items: stretch;
    justify-content: center;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

/* ========== IMAGE SLIDER ========== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #f3f3f3;
    transform: none;
}

/* ========== PREMIUM SLIDER CONTROLS ========== */

.slider-controls-premium {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(29, 26, 29, 0.12);
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(29, 26, 29, 0.18);
}

.slider-btn:active {
    transform: scale(0.96);
}

.slider-dots-premium {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dot-premium {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0;
}

.dot-premium:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.dot-premium.is-active {
    width: 26px;
    height: 12px;
    border-radius: 999px;
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

/* ========== FLOATING CTA CARD ========== */

.hero-floating-cta {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 380px;
    padding: 0 var(--spacing-md);
}

.cta-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2rem 1.8rem;
    box-shadow: 0 20px 60px rgba(29, 26, 29, 0.22);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-card.premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 237, 241, 0.95) 100%);
}

.cta-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-card .btn {
    width: 100%;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== TRUST INDICATORS ========== */

.trust-indicators {
    background: var(--bg-lighter);
    padding: var(--spacing-2xl) var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-xl);
}

.indicator {
    text-align: center;
    padding: var(--spacing-lg);
}

.indicator-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    display: inline-block;
}

.indicator h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.indicator p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========== SPECIALTIES SECTION ========== */

.specialties {
    background: var(--white);
    padding: var(--spacing-3xl) var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.section-header h2 i {
    margin-right: 0.6rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ========== SPECIALTY CARD - PREMIUM ========== */

.specialty-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(117, 88, 109, 0.06);
}

.specialty-card.premium {
    border: 1px solid rgba(117, 88, 109, 0.1);
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
}

.specialty-card.premium:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(117, 88, 109, 0.14);
}

.specialty-icon {
    font-size: 2.8rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.specialty-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.specialty-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.specialty-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1.2rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(117, 88, 109, 0.1);
    border-bottom: 1px solid rgba(117, 88, 109, 0.1);
}

.specialty-features span {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.specialty-features i {
    color: var(--accent-color);
    font-weight: 700;
}

.specialty-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
}

.specialty-link:hover {
    color: var(--accent-color);
    gap: 0.8rem;
}

/* ========== TELEMEDICINE SECTION ========== */

.telemedicine-intro {
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--white) 100%);
    padding: var(--spacing-3xl) var(--spacing-md);
}

.telemedicine-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-2xl);
}

.telemedicine-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.telemedicine-text h3 i {
    margin-right: 0.6rem;
    color: var(--primary-color);
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-xl) 0;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.benefit-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(117, 88, 109, 0.06);
}

.info-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-box h4 i {
    margin-right: 0.6rem;
    color: var(--primary-color);
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.info-box i {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.alert {
    background: rgba(160, 210, 219, 0.1);
    border-color: rgba(160, 210, 219, 0.3);
}

.alert strong {
    color: var(--text-dark);
}

.alert i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* ========== SERVICES SECTION ========== */

.services {
    background: var(--white);
    padding: var(--spacing-3xl) var(--spacing-md);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.service-item {
    background: var(--white);
    border: 1px solid rgba(117, 88, 109, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 20px 40px rgba(117, 88, 109, 0.08);
}

.service-item:hover {
    transform: translateY(-6px);
    border-color: rgba(117, 88, 109, 0.2);
    box-shadow: 0 24px 48px rgba(117, 88, 109, 0.08);
}

.service-header {
    background: linear-gradient(135deg, #75586D 0%, #5c4255 100%);
    color: var(--white);
    padding: 1.35rem 1.4rem 1rem;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    display: block;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.service-body {
    padding: var(--spacing-lg);
}

.service-body p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ========== ABOUT DOCTOR SECTION ========== */

.about-doctor {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-lighter) 100%);
    padding: var(--spacing-3xl) var(--spacing-md);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    margin-top: var(--spacing-2xl);
}

.about-text {
    max-width: 600px;
}

.doctor-titles {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg) 0;
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.doctor-titles .title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.doctor-titles i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.doctor-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: var(--spacing-md);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.info-item .label i {
    color: var(--primary-color);
}

.info-item .value {
    color: var(--text-light);
    flex: 1;
    line-height: 1.7;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 28px 60px rgba(117, 88, 109, 0.16);
    border: 3px solid var(--white);
}

/* ========== BOOKING PROCESS SECTION ========== */

.booking-process {
    background: var(--white);
    padding: var(--spacing-3xl) var(--spacing-md);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-2xl);
    align-items: start;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-lg);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(117, 88, 109, 0.14);
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.12);
    box-shadow: 0 16px 36px rgba(117, 88, 109, 0.18);
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.step-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ========== FAQ SECTION ========== */

.faqs {
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--white) 100%);
    padding: var(--spacing-3xl) var(--spacing-md);
}

.faqs-container {
    max-width: 800px;
    margin: var(--spacing-2xl) auto 0;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(117, 88, 109, 0.08);
}

.faq-question {
    background: var(--white);
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-lighter);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: var(--spacing-lg);
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========== CTA SECTION ========== */

.cta-section {
    background: linear-gradient(135deg, #4d3948 0%, #75586D 50%, #A0D2DB 100%);
    color: var(--white);
    padding: var(--spacing-3xl) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-section h2 i {
    margin-right: 0.6rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 220px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .hero-premium {
        aspect-ratio: 4 / 5;
        max-height: none;
        min-height: 0;
    }

    .slider-controls-premium {
        bottom: 1.5rem;
        gap: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .dot-premium {
        width: 10px;
        height: 10px;
    }

    .dot-premium.is-active {
        width: 20px;
    }

    .hero-floating-cta {
        bottom: 8%;
        max-width: 320px;
    }

    .cta-card {
        padding: 1.5rem;
    }

    .telemedicine-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .doctor-photo {
        max-width: 300px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: -0.5rem 0;
    }

    .cta-buttons {
        gap: var(--spacing-md);
    }

    .cta-buttons .btn {
        flex: 1;
        min-width: 160px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-premium {
        width: 100%;
        margin: 0.08rem 0 0.45rem;
        aspect-ratio: 4 / 5;
        max-height: none;
        min-height: 0;
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
    }

    .hero-slider-wrapper {
        width: 100%;
        border-radius: 0;
        overflow: hidden;
    }

    .hero-slide-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        background: #f8f2f4;
    }
}

@media (max-width: 480px) {
    .hero-premium {
        margin: 0.04rem 0 0.35rem;
        min-height: 0;
        border-radius: 0;
        aspect-ratio: 4 / 5;
    }

    .slider-controls-premium {
        width: auto;
        max-width: calc(100% - 2rem);
        bottom: 0.8rem;
        gap: 0.8rem;
        padding: 0.55rem 0.8rem;
        background: rgba(255, 255, 255, 0.18);
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .slider-dots-premium {
        gap: 0.55rem;
    }

    .dot-premium {
        width: 10px;
        height: 10px;
    }

    .dot-premium.is-active {
        width: 22px;
        height: 10px;
    }

    .hero-floating-cta {
        bottom: 1rem;
        max-width: calc(100% - 1rem);
    }

    .cta-card {
        padding: 1rem 1.2rem;
    }

    .cta-card h3 {
        font-size: 1.2rem;
    }

    .cta-card p {
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .specialty-card.premium {
        padding: 1.2rem;
    }

    .specialty-icon {
        font-size: 2.2rem;
        width: 60px;
        height: 60px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========== UTILITY CLASSES ========== */

.text-center {
    text-align: center;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(117, 88, 109, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
