/*
 * Custom Matrimonial Styling Sheet
 * Extracted from index.blade.php & optimized for responsiveness and fast rendering.
 */

/* ==========================================================================
   1. Homepage Slider Section
   ========================================================================== */
.home-slider-area {
    position: relative;
    overflow: hidden;
}

.home-slider-text {
    position: relative;
    z-index: 2;
}

/* Subtle zoom transition for active slick slide with hardware acceleration */
.aiz-carousel-full .slick-slide img {
    transform: scale(1);
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.aiz-carousel-full .slick-active img {
    transform: scale(1.06);
}


/* ==========================================================================
   2. Popular Cities Custom Section
   ========================================================================== */
.city-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.city-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

.city-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.75) 100%);
    transition: opacity 0.4s ease;
    z-index: 1;
}

.city-card-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary, #FD655B) 0%, var(--primary, #FD2C79) 100%);
    z-index: 1;
}

.city-card-overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary, #FD2C79) 0%, var(--secondary, #FD655B) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

.city-card-content {
    position: absolute;
    bottom: 16px;
    left: 8px;
    right: 8px;
    z-index: 3;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.city-card-content i {
    font-size: 1.05rem;
    color: #ffffff;
    margin-right: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
}

.city-card-content span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover States for City Cards */
.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px var(--soft-primary, rgba(253, 41, 123, 0.25));
}

.city-card:hover .city-card-img {
    transform: scale(1.08);
}

.city-card:hover .city-card-overlay-hover {
    opacity: 0.85;
}

.city-card:hover .city-card-content i {
    transform: scale(1.2);
}

/* Responsive Overrides for City Section */
@media (max-width: 991.98px) {
    .city-card-content span {
        font-size: 0.8rem;
    }

    .city-card-content i {
        font-size: 0.9rem;
        margin-right: 4px;
    }

    .city-card-content {
        bottom: 10px;
    }
}

@media (max-width: 767.98px) {
    .city-card-content span {
        font-size: 0.65rem;
        font-weight: 500;
    }

    .city-card-content i {
        font-size: 0.75rem;
        margin-right: 2px;
    }

    .city-card-content {
        bottom: 8px;
    }
}

@media (max-width: 480px) {
    .city-card-content span {
        font-size: 0.55rem;
        font-weight: 500;
        letter-spacing: 0;
    }

    .city-card-content i {
        display: none;
    }

    .city-card-content {
        bottom: 6px;
        left: 2px;
        right: 2px;
    }
}


/* ==========================================================================
   3. How It Works & Statistics Section
   ========================================================================== */
.hover-card {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #ffffff;
    will-change: transform, box-shadow;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Icon wrapper style for How It Works steps */
.step-icon-wrap {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--soft-primary, rgba(253, 41, 123, 0.06));
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hover-card:hover .step-icon-wrap {
    transform: scale(1.1);
    background: var(--primary, #FD2C79) !important;
}

.hover-card:hover .step-icon-wrap img {
    filter: brightness(0) invert(1);
}

.step-icon-wrap img {
    transition: filter 0.3s ease;
}

/* Distinct Statistics Box Colors */
.stat-card-male {
    background-color: rgba(52, 152, 219, 0.04) !important;
    border-color: rgba(52, 152, 219, 0.12) !important;
}

.stat-card-male:hover {
    border-color: #3498db !important;
}

.stat-card-male .stat-icon-wrap {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.stat-card-male .stat-number {
    color: #2980b9;
}

.stat-card-female {
    background-color: rgba(253, 44, 121, 0.04) !important;
    border-color: rgba(253, 44, 121, 0.12) !important;
}

.stat-card-female:hover {
    border-color: var(--primary, #FD2C79) !important;
}

.stat-card-female .stat-icon-wrap {
    color: var(--primary, #FD2C79);
    background: var(--soft-primary, rgba(253, 44, 121, 0.1));
}

.stat-card-female .stat-number {
    color: var(--primary, #FD2C79);
}

.stat-card-divorced-male {
    background-color: rgba(155, 89, 182, 0.04) !important;
    border-color: rgba(155, 89, 182, 0.12) !important;
}

.stat-card-divorced-male:hover {
    border-color: #9b59b6 !important;
}

.stat-card-divorced-male .stat-icon-wrap {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}

.stat-card-divorced-male .stat-number {
    color: #8e44ad;
}

.stat-card-divorced-female {
    background-color: rgba(230, 126, 34, 0.04) !important;
    border-color: rgba(230, 126, 34, 0.12) !important;
}

.stat-card-divorced-female:hover {
    border-color: #e67e22 !important;
}

.stat-card-divorced-female .stat-icon-wrap {
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
}

.stat-card-divorced-female .stat-number {
    color: #d35400;
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.hover-card:hover .stat-icon-wrap {
    transform: scale(1.1);
}


/* ==========================================================================
   4. FAQ Section & Testimonials Layout
   ========================================================================== */
/* FAQ Accodion Styles */
.faq-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
    overflow: hidden;
    margin-bottom: 0.5rem !important;
    /* Overrides mb-3 to reduce spacing between cards */
}

.faq-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    border-color: rgba(253, 44, 121, 0.15) !important;
}

.faq-trigger {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #2e2f30;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    transition: color 0.2s ease;
}

.faq-trigger:focus {
    outline: none;
}

.faq-trigger:hover {
    color: var(--primary, #FD2C79);
    text-decoration: none;
}

.faq-trigger[aria-expanded="true"] {
    color: var(--primary, #FD2C79);
}

.faq-icon-wrap {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    color: #6d6e6f;
    flex-shrink: 0;
}

.faq-trigger:hover .faq-icon-wrap {
    background: var(--soft-primary, rgba(253, 44, 121, 0.1));
    color: var(--primary, #FD2C79);
}

.faq-trigger[aria-expanded="true"] .faq-icon-wrap {
    background: var(--primary, #FD2C79);
    color: #ffffff;
    transform: rotate(180deg);
}

.faq-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height;
}

.faq-answer-text {
    padding: 0 16px 12px 16px;
    color: #6d6e6f;
    font-size: 0.85rem;
    line-height: 1.45;
    font-weight: 400;
}

.faq-card.active {
    border-color: var(--primary, #FD2C79) !important;
    box-shadow: 0 4px 10px var(--soft-primary, rgba(253, 44, 121, 0.06));
}

/* Modern Testimonial Custom Styling */
.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 10px 5px;
    position: relative;
    text-align: left;
}

.testimonial-quote-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary, #FD655B) 0%, var(--primary, #FD2C79) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonial-text {
    font-size: 0.98rem;
    line-height: 1.65;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    min-height: 80px;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.testimonial-info {
    margin-left: 12px;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 1px;
    display: block;
}

.testimonial-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    display: block;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 0.8rem;
    margin-left: auto;
    display: flex;
    gap: 2px;
}

/* Modern Testimonial Slider Arrows */
.testimonial-slider-wrap .aiz-carousel.large-arrow .slick-arrow {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-50%) !important;
    /* Resets the 45deg rotation from .large-arrow */
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.testimonial-slider-wrap .aiz-carousel.large-arrow .slick-arrow:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
}

.testimonial-slider-wrap .aiz-carousel.large-arrow .slick-prev {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    left: -12px !important;
}

.testimonial-slider-wrap .aiz-carousel.large-arrow .slick-next {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    right: -12px !important;
}

/* Pure CSS custom arrow icon implementation for slick arrows */
.testimonial-slider-wrap .aiz-carousel.large-arrow .slick-arrow i {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    border: none !important;
    background: transparent !important;
    transform: rotate(45deg) !important;
    transition: border-color 0.3s ease;
}

.testimonial-slider-wrap .aiz-carousel.large-arrow .slick-prev i {
    border-left: 2px solid #ffffff !important;
    border-bottom: 2px solid #ffffff !important;
    margin-left: 4px !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.testimonial-slider-wrap .aiz-carousel.large-arrow .slick-next i {
    border-right: 2px solid #ffffff !important;
    border-top: 2px solid #ffffff !important;
    margin-right: 4px !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.testimonial-slider-wrap .aiz-carousel.large-arrow .slick-arrow:hover i {
    border-color: var(--primary, #FD2C79) !important;
}

.testimonial-slider-wrap .aiz-carousel.large-arrow .slick-arrow i:before {
    content: none !important;
    display: none !important;
}

/* Responsive Testimonial Arrow Styling overrides */
@media (max-width: 767.98px) {
    .testimonial-slider-wrap .aiz-carousel.large-arrow .slick-prev {
        left: 5px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
    }

    .testimonial-slider-wrap .aiz-carousel.large-arrow .slick-next {
        right: 5px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
    }
}

/* ==========================================================================
   5. Premium Ribbon Badge
   ========================================================================== */
.premium-ribbon-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #E5B23E 0%, #D4A437 50%, #C3962F 100%);
    color: #ffffff;
    font-size: 10px;
    /* font-weight: 700; */
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.premium-ribbon-badge i {
    font-size: 10px;
}

.premium-ribbon-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    opacity: 0;
}

/* Subtle hover animations */
.rounded.border:hover .premium-ribbon-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #F3C350 0%, #E5B23E 50%, #D4A437 100%);
}

.rounded.border:hover .premium-ribbon-badge::after {
    left: 125%;
    opacity: 1;
}

.premium-crown {
    color: #D4A437;
    margin-left: 4px;
    font-size: 13px;
    vertical-align: middle;
}