/* ============================================
   FAQ Section Styles
   ============================================ */

/* Hero Section (reused from responsible-lending for consistency) */
.responsible-lending-section {
    position: relative;
    overflow: hidden;
}

.responsible-lending-hero {
    width: 100%;
    background: #0A0E27;
    background-image: url('https://pocketly-public-bucket.s3.ap-south-1.amazonaws.com/6713e838-9ad8-4379-be3c-d21e13f477f9.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 160px 90px 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.responsible-lending-hero-content {
    max-width: 1200px;
    width: 100%;
}

.responsible-lending-hero-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 600;
    color: #7594CC;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.responsible-lending-hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 2.2vw, 18px);
    font-weight: 400;
    color: #B0B5C8;
    line-height: 1.8;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

   .faq-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px 50px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Headline Section */
.faq-headline {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #183FBA;
    border-radius: 20px;
    background: #ffffff;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #183FBA;
}

.faq-badge-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.faq-headline-line1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 1.2;
    text-align: center;
    color: #A7BFE9;
    margin: 0;
}

.faq-headline-line2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 64px;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(180deg, #0256DB 0%, #0256DB 35%, #031450 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 1000px;
    width: 100%;
    margin-bottom: 0px;
}

/* FAQ Item */
.faq-item {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #E8EFF9;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.faq-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.faq-item.active {
    background: #F0F4FF;
    border-color: #D4E8FF;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1A1F3A;
    outline: none;
}

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

.faq-question:focus-visible {
    outline: none;
}

.faq-item.active .faq-question {
    color: #2B4C9B;
}

/* Hover animations removed */

.faq-question span {
    flex: 1;
    padding-right: 20px;
}

/* FAQ Icon */
.faq-icon {
    font-size: 18px;
    color: #0256DB;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    display: inline-block;
    transform: rotate(0deg);
    will-change: transform;
}

/* Chevron down - points down (default/closed state) */
.faq-icon.fa-chevron-down {
    transform: rotate(0deg);
}

/* Chevron up - points up (rotated 180 degrees - open state) */
.faq-icon.fa-chevron-up {
    transform: rotate(180deg);
}

/* Active state - rotate chevron 180 degrees */
.faq-item.active .faq-icon {
    transform: rotate(180deg) !important;
}

/* FAQ Answer */
.faq-answer {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 32px;
    position: relative;
    will-change: max-height, opacity, padding;
}

.faq-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: #E5E7EB;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding: 20px 32px 28px 32px;
}

.faq-item.active .faq-answer::before {
    opacity: 1;
}

.faq-answer p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* View All FAQ Button */
.faq-cta {
    text-align: center;
    margin-top: 20px;
}

.view-all-faq-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
  background: #ffffff;
  border: 1.5px solid #183FBA;
  border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
  font-weight: 700;
  color: #183FBA;
    text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view-all-faq-btn:hover {
  background: #183FBA;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 63, 186, 0.25);
}

.view-all-arrow-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* Match hero arrow rotation behavior */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.view-all-faq-btn:hover .view-all-arrow-icon {
  transform: rotate(45deg);
  filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .faq-section {
        padding: 40px 20px 40px;
    }
    
    .faq-headline-line1 {
        font-size: 48px;
    }
    
    .faq-headline-line2 {
        font-size: 56px;
    }
    
    .faq-question {
        font-size: 18px;
        padding: 24px 28px;
    }
    
    .faq-answer {
        padding: 0 28px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 28px 24px 28px;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 80px 20px 40px;
    }
    
    .faq-headline {
        margin-bottom: 40px;
    }
    
    .faq-headline-line1 {
        font-size: 36px;
    }
    
    .faq-headline-line2 {
        font-size: 42px;
    }
    
    .faq-question {
        font-size: 17px;
        padding: 22px 24px;
    }
    
    .faq-answer {
        padding: 0 24px;
    }
    
    .faq-item.active .faq-answer {
        /* Add space between the line and the description text on mobile */
        padding: 12px 24px 22px 24px;
    }
    
    .faq-answer p {
        font-size: 15px;
    }
    
    .faq-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .faq-headline-line1 {
        font-size: 28px;
    }
    
    .faq-headline-line2 {
        font-size: 32px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 20px 22px;
    }
    
    .faq-answer {
        padding: 0 22px;
    }
    
    .faq-item.active .faq-answer {
        /* Extra breathing room above the description on very small screens */
        padding: 12px 22px 20px 22px;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
    
    .view-all-faq-btn {
        padding: 8px 20px;
        font-size: 15px;
    }
}

/* Hero Section Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .responsible-lending-hero {
        padding: 140px 50px 90px;
    }
    
    .responsible-lending-hero-title {
        font-size: 52px;
    }
    
    .responsible-lending-hero-tagline {
        font-size: 16px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .responsible-lending-hero {
        padding: 140px 40px 80px;
    }
    
    .responsible-lending-hero-title {
        font-size: 42px;
    }
    
    .responsible-lending-hero-tagline {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .responsible-lending-hero {
        padding: 100px 20px 50px;
    }
    
    .responsible-lending-hero-title {
        font-size: 32px;
    }
    
    .responsible-lending-hero-tagline {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .responsible-lending-hero {
        padding: 80px 16px 40px;
    }
    
    .responsible-lending-hero-title {
        font-size: 28px;
    }
    
    .responsible-lending-hero-tagline {
        font-size: 12px;
    }
}