/* 1. Global Variables & Reset */
:root {
    --primary-color: #2563eb;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

/* 2. Main Section Container */
.faq-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.faq-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start; /* Changed to flex-start for better alignment */
    gap: 60px;
}

/* 3. Left Side: Content Area */
.faq-content {
    flex: 1;
    min-width: 0; /* Allow flex shrink */
}

.faq-title {
    font-family: "montserrat-medium", sans-serif;
    font-size: 3rem; /* Fluid responsive title */
    color: var(--text-main);
    margin-bottom: 1.8rem;
    font-weight: normal;
    font-style: normal;
    line-height: 1.3;
    text-rendering: optimizeLegibility;
}

/* 4. FAQ Item Styling */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    overflow: hidden; /* Prevent content bleed */
}

.faq-question {
    font-family: montserrat-medium, sans-serif;
    width: 100%;
    padding: clamp(18px, 3vw, 24px) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.7rem;
    font-weight: 100;
    color: var(--text-main);
    text-align: left;
    transition: var(--transition);
    text-transform:none;
    letter-spacing: 0;
    color: #2d2d2d;
}


.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    margin-bottom: 10px;
}


/* 5. Right Side: Image Area */
.faq-image {
    flex: 1;
    min-width: 300px; /* Prevent too small image */
    position: relative;
}

.faq-image img {
    width: 100%;
    height: clamp(250px, 35vw, 400px); /* Fluid responsive height */
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* 6. Active States */
.faq-item.active .faq-answer {
    max-height: 500px; /* Increased for longer content */
}

.faq-item.active .icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.icon {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    font-weight: 300;
    margin-left: 20px;
    transition: var(--transition);
    display: inline-block;
    flex-shrink: 0; /* Prevent icon squeeze */
}

/* 7. Responsive Breakpoints */

/* Large Tablets / Small Desktop */
@media (max-width: 1024px) {
    .faq-section {
        padding: 60px 20px;
    }
    
    .faq-wrapper {
        gap: 40px;
    }
    
    .faq-image {
        min-width: 280px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .faq-wrapper {
        flex-direction: column-reverse;
        gap: 40px;
        align-items: stretch;
    }
    
    .faq-content {
        order: 2;
    }
    
    .faq-image {
        order: 1;
        min-width: unset;
    }
    
    .faq-title {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .faq-section {
        padding: 50px 15px;
    }
    
    .faq-wrapper {
        gap: 32px;
    }
    
    .faq-question {
        padding-right: 15px; /* Space for icon */
        font-size: 1.5rem;
    }
    
    .icon {
        margin-left: 15px;
    }
    
    .faq-image img {
        border-radius: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .faq-section {
        padding: 40px 12px;
    }
    
    .faq-wrapper {
        gap: 28px;
    }
    
    .faq-question {
        font-size: 1.5rem;
    }
    
    .faq-answer p {
        padding-left: 4px;
        padding-right: 4px;
        /* font-size: 1.6rem; */
    }
    
    .icon {
        margin-left: 12px;
        font-size: 1.4rem;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .faq-image img {
        height: 220px;
    }
    
    .faq-title {
        font-size: 1.75rem;
    }
}




.cta-section {
    padding: 60px 5%;
    background: #ffffff;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
    min-height: 450px;
    border-radius: 20px;
    overflow: hidden;
}

.cta-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 100%);
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.cta-content p {
    font-size: 1.5rem;
    margin-bottom: 28px;
    opacity: 0.95;
    max-width: 480px;
    line-height: 1.7;
    color: white;
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: white;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    background: transparent;
    color: white;
}

.cta-image {
    position: relative;
    overflow: hidden;
    background: url('/images/transform-your-digital-experience-today.webp') center/cover;
    background-color: #1a1a1a;
}

/* .cta-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(26, 26, 26, 0.9) 0%, 
        rgba(26, 26, 26, 0.7) 15%,
        rgba(26, 26, 26, 0.4) 35%,
        rgba(26, 26, 26, 0.2) 60%,
        transparent 100%);
    transition: all 0.6s ease;
} */

.cta-image:hover::before {
    background: linear-gradient(90deg, 
        rgba(26, 26, 26, 0.8) 0%, 
        rgba(26, 26, 26, 0.6) 15%,
        rgba(26, 26, 26, 0.3) 35%,
        rgba(26, 26, 26, 0.1) 60%,
        transparent 100%);
}

@media (max-width: 968px) {
    .cta-container {
        grid-template-columns: 1fr;
        width: 95%;
    }

    .cta-content {
        padding: 50px 40px;
    }

    .cta-content h2 {
        font-size: 2.25rem;
    }

    .cta-image {
        min-height: 350px;
    }
}

@media (max-width: 640px) {
    .cta-section {
        padding: 40px 3%;
    }

    .cta-container {
        width: 100%;
        border-radius: 15px;
    }

    .cta-content {
        padding: 40px 30px;
    }

    .cta-content h2 {
        font-size: 1.85rem;
    }

    .cta-content p {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}