/* Modern FAQ Accordion Styles - Harmonized with Website Colors */
.category-bottom-description {
    margin: 50px 0 60px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 40px 0;
    position: relative;
}

.category-bottom-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #BB339D 0%, #DC143C 50%, #BB339D 100%);
}

/* Modern Row and column layout - Independent heights */
.pagebuilder-column-group {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start; /* Prevent stretching to same height */
}

.pagebuilder-column {
    flex: 1 1 320px; /* Flexible width with minimum */
    min-width: 320px;
    max-width: calc(50% - 15px); /* Ensure 2 columns per row with gap */
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(187, 51, 157, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(187, 51, 157, 0.1);
    position: relative;
    align-self: flex-start; /* Maintain independent height */
}

.pagebuilder-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #BB339D, #DC143C);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pagebuilder-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(187, 51, 157, 0.15);
}

.pagebuilder-column:hover::before {
    opacity: 1;
}

/* Modern Image styles */
.category-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(1) saturate(1);
}

.pagebuilder-column:hover .category-image {
    transform: scale(1.02);
    filter: brightness(1.1) saturate(1.1);
}

/* Modern FAQ Accordion */
.mce-accordion {
    border: none;
    margin: 0;
    background: transparent;
}

.faq-accordion {
    border: none;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border: 2px solid transparent;
    /* Performance optimizations */
    transform: translateZ(0);
    will-change: transform, box-shadow;
    animation-fill-mode: both;
    contain: layout style;
}

/* Ultra-smooth native details animation */
.faq-accordion {
    overflow: hidden;
}

.faq-accordion:not([open]) div {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
}

.faq-accordion[open] div {
    max-height: 1000px; /* Large enough value */
    opacity: 1;
    overflow: visible;
    padding-top: 32px;
    padding-bottom: 32px;
}



.faq-accordion:hover {
    border-color: rgba(187, 51, 157, 0.3);
    box-shadow: 0 6px 25px rgba(187, 51, 157, 0.12);
    transform: translateY(-2px);
}

.faq-accordion[open] {
    border-color: rgba(187, 51, 157, 0.4);
    box-shadow: 0 8px 30px rgba(187, 51, 157, 0.15);
}

.faq-accordion summary {
    padding: 24px 28px;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-weight: 600;
    font-size: 17px;
    color: #2c3e50;
    background: linear-gradient(135deg, #fafafb 0%, #f7f8fc 100%);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    letter-spacing: -0.01em;
    /* Performance optimizations */
    will-change: background, color;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.faq-accordion summary:hover {
    background: linear-gradient(135deg, #BB339D 0%, #a02d8a 100%);
    color: white;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.faq-accordion[open] summary {
    background: linear-gradient(135deg, #BB339D 0%, #a02d8a 100%);
    color: white;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Remove default marker */
.faq-accordion summary::-webkit-details-marker {
    display: none;
}

/* Modern plus/minus icon */
.faq-accordion__plus-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.faq-accordion summary:hover .faq-accordion__plus-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.faq-accordion__plus-icon::before,
.faq-accordion__plus-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-accordion__plus-icon::before {
    width: 14px;
    height: 2px;
    top: 11px;
    left: 5px;
}

.faq-accordion__plus-icon::after {
    width: 2px;
    height: 14px;
    top: 5px;
    left: 11px;
}

.faq-accordion[open] .faq-accordion__plus-icon::after {
    transform: rotate(90deg) scale(0);
}

.faq-accordion[open] .faq-accordion__plus-icon::before {
    transform: rotate(180deg);
}

/* Ultra-smooth content area */
.faq-accordion div {
    padding: 32px 28px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    position: relative;
    border-top: 1px solid rgba(187, 51, 157, 0.1);
    /* Optimized for smooth max-height transitions */
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease,
                padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: max-height, opacity, padding;
}

.faq-accordion div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(187, 51, 157, 0.2) 50%, transparent 100%);
}



.faq-accordion p {
    margin: 0 0 16px 0;
    line-height: 1.7;
    color: #4a5568;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.faq-accordion p:last-child {
    margin-bottom: 0;
}

.faq-accordion a {
    color: #BB339D;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-accordion a:hover {
    color: #DC143C;
    border-bottom-color: #DC143C;
    text-decoration: none;
}

/* Modern Section headers */
.section-header {
    text-align: center;
    margin: 60px 0 50px 0;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #BB339D, #DC143C);
    border-radius: 2px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: #718096;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Modern Responsive design */
@media (max-width: 1199px) {
    .pagebuilder-column-group {
        gap: 24px;
    }
    
    .pagebuilder-column {
        max-width: calc(50% - 12px);
        min-width: 280px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 991px) {
    .category-bottom-description {
        padding: 30px 15px;
        margin: 40px 0 50px 0;
    }
    
    .pagebuilder-column-group {
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .section-header p {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .category-bottom-description {
        padding: 25px 10px;
    }
    
    .pagebuilder-column-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .pagebuilder-column {
        border-radius: 12px;
        max-width: 100%;
        min-width: auto;
        flex: 1 1 auto;
    }
    
    .faq-accordion summary {
        padding: 20px 20px;
        font-size: 16px;
    }
    
    .faq-accordion div {
        padding: 24px 20px;
    }
    
    .section-header {
        margin: 40px 0 30px 0;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .category-image {
        height: 180px;
    }
}

@media (max-width: 479px) {
    .category-bottom-description {
        padding: 20px 8px;
        margin: 30px 0 40px 0;
    }
    
    .pagebuilder-column-group {
        gap: 12px;
    }
    
    .pagebuilder-column {
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .faq-accordion {
        border-radius: 10px;
        margin-bottom: 16px;
    }
    
    .faq-accordion summary {
        padding: 18px 16px;
        font-size: 15px;
    }
    
    .faq-accordion div {
        padding: 20px 16px;
    }
    
    .faq-accordion p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .section-header p {
        font-size: 15px;
    }
    
    .section-header::after {
        width: 60px;
        height: 2px;
    }
    
    .category-image {
        height: 160px;
    }
}

@media (max-width: 320px) {
    .faq-accordion summary {
        padding: 16px 14px;
        font-size: 14px;
    }
    
    .faq-accordion div {
        padding: 18px 14px;
    }
    
    .faq-accordion p {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .category-image {
        height: 140px;
    }
}

/* Modern additional styles */
.faq-accordion strong {
    color: #2c3e50;
    font-weight: 600;
    background: linear-gradient(135deg, #BB339D 0%, #DC143C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-accordion p strong {
    background: linear-gradient(135deg, #DC143C 0%, #BB339D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern entrance animation */
@keyframes modernSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pagebuilder-column {
    animation: modernSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pagebuilder-column:nth-child(1) { animation-delay: 0.1s; }
.pagebuilder-column:nth-child(2) { animation-delay: 0.2s; }
.pagebuilder-column:nth-child(3) { animation-delay: 0.3s; }
.pagebuilder-column:nth-child(4) { animation-delay: 0.4s; }

/* Modern button style */
.faq-accordion .btn {
    background: linear-gradient(135deg, #BB339D 0%, #a02d8a 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(187, 51, 157, 0.3);
    position: relative;
    overflow: hidden;
}

.faq-accordion .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.faq-accordion .btn:hover {
    background: linear-gradient(135deg, #DC143C 0%, #c4122d 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.faq-accordion .btn:hover::before {
    left: 100%;
}

/* Modern list styling */
.faq-accordion ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.faq-accordion li {
    margin: 12px 0;
    padding: 10px 0 10px 32px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: rgba(187, 51, 157, 0.02);
}

.faq-accordion li:hover {
    background: rgba(187, 51, 157, 0.05);
    transform: translateX(4px);
}

.faq-accordion li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #BB339D, #DC143C);
    border-radius: 50%;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(187, 51, 157, 0.3);
}

/* Modern scrollbar for content */
.faq-accordion div::-webkit-scrollbar {
    width: 6px;
}

.faq-accordion div::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.faq-accordion div::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #BB339D, #DC143C);
    border-radius: 3px;
}

.faq-accordion div::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a02d8a, #c4122d);
}

/* Ensure modern font stack and smooth rendering */
.category-bottom-description * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add subtle parallax effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    .pagebuilder-column {
        transform-style: preserve-3d;
    }
    
    .category-image {
        transform-style: preserve-3d;
    }
}



/* Container optimization for better paint performance */
.category-bottom-description {
    contain: layout style paint;
    will-change: scroll-position;
}

.pagebuilder-column-group {
    contain: layout style;
}

/* Focus styles for accessibility */
.faq-accordion summary:focus {
    outline: 2px solid #BB339D;
    outline-offset: 2px;
    border-radius: 8px;
}

.faq-accordion summary:focus-visible {
    outline: 2px solid #BB339D;
    outline-offset: 2px;
}

/* Improved mobile touch interactions */
@media (max-width: 767px) {
    .faq-accordion summary {
        min-height: 60px;
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .faq-accordion__plus-icon {
        width: 28px;
        height: 28px;
    }
    
    .faq-accordion__plus-icon::before {
        width: 16px;
        height: 2px;
        top: 13px;
        left: 6px;
    }
    
    .faq-accordion__plus-icon::after {
        width: 2px;
        height: 16px;
        top: 6px;
        left: 13px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .faq-accordion,
    .faq-accordion div,
    .faq-accordion summary,
    .faq-accordion__plus-icon,
    .faq-accordion__plus-icon::before,
    .faq-accordion__plus-icon::after,
    .pagebuilder-column {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .category-bottom-description {
        background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    }
    
    .faq-accordion {
        background: #2a2a2a;
        border-color: rgba(187, 51, 157, 0.3);
    }
    
    .faq-accordion summary {
        background: linear-gradient(135deg, #333 0%, #444 100%);
        color: #e2e8f0;
    }
    
    .faq-accordion summary:hover,
    .faq-accordion[open] summary {
        background: linear-gradient(135deg, #BB339D 0%, #a02d8a 100%);
    }
    
    .faq-accordion div {
        background: linear-gradient(180deg, #2a2a2a 0%, #333 100%);
    }
    
    .faq-accordion p {
        color: #cbd5e0;
    }
    
    .section-header h2 {
        color: #e2e8f0;
    }
    
    .section-header p {
        color: #a0aec0;
    }
}
