/* Creative Grid-Based FAQ Redesign CSS */

/* 1. Centered Hero Search Section */
.faq-hero-section {
    position: relative;
    background: linear-gradient(135deg, #0D2142 0%, #162f59 100%);
    padding: 20px 0 10px 0;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
}

.faq-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
    z-index: 1;
}

.faq-hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.faq-hero-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #EB6C19;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.faq-hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.faq-hero-title span {
    color: #EB6C19;
}

.faq-hero-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    padding: 5px 15px 5px 25px;
}

.faq-hero-search-wrapper .search-icon {
    font-size: 18px;
    color: #EB6C19;
    margin-right: 15px;
}

.faq-hero-search-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    color: #0D2142;
    padding: 12px 0;
    font-weight: 500;
}

.faq-hero-search-wrapper input::placeholder {
    color: #999999;
}

.faq-hero-search-wrapper .search-clear-btn {
    background: none;
    border: none;
    color: #999999;
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    display: none;
    transition: color 0.3s ease;
}

.faq-hero-search-wrapper .search-clear-btn:hover {
    color: #EB6C19;
}

/* Breadcrumb overlay banner adjustments */
.faq-hero-section .creative-breadcrumb-pills {
    margin-top: 25px;
    justify-content: center;
}

/* 2. Horizontal Filter Pills */
.faq-filter-container {
    padding: 50px 0 20px 0;
    background: #fafbfc;
}

.faq-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.faq-filter-pill {
    background: #ffffff;
    border: 1px solid rgba(13, 33, 66, 0.08);
    color: #0D2142;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(13, 33, 66, 0.02);
}

.faq-filter-pill i {
    font-size: 14px;
    color: #EB6C19;
}

.faq-filter-pill:hover {
    background: rgba(235, 108, 25, 0.05);
    border-color: rgba(235, 108, 25, 0.25);
    color: #EB6C19;
    transform: translateY(-2px);
}

.faq-filter-pill.active {
    background: #EB6C19;
    border-color: #EB6C19;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(235, 108, 25, 0.25);
    transform: translateY(-2px);
}

.faq-filter-pill.active i {
    color: #ffffff;
}

/* 3. 2-Column Responsive Card Grid */
.faq-grid-section {
    background: #fafbfc;
    padding: 20px 0 80px 0;
}

.faq-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.faq-grid-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(13, 33, 66, 0.06);
    box-shadow: 0 8px 20px rgba(13, 33, 66, 0.03);
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.faq-grid-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #0D2142;
    transition: background 0.3s ease;
}

.faq-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(13, 33, 66, 0.08);
    border-color: rgba(235, 108, 25, 0.15);
}

.faq-grid-card:hover::after {
    background: #EB6C19;
}

.faq-grid-card.active {
    border-color: rgba(235, 108, 25, 0.3);
    box-shadow: 0 12px 35px rgba(235, 108, 25, 0.08);
}

.faq-grid-card.active::after {
    background: #EB6C19;
}

/* Card Header */
.faq-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.faq-card-num {
    font-size: 14px;
    font-weight: 800;
    color: #EB6C19;
    background: rgba(235, 108, 25, 0.08);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-grid-card.active .faq-card-num {
    background: #EB6C19;
    color: #ffffff;
}

.faq-card-question {
    font-size: 16px;
    font-weight: 700;
    color: #0D2142;
    line-height: 1.4;
    margin: 5px 25px 0 0; /* spacing for arrow */
}

.faq-card-arrow {
    position: absolute;
    top: 10px;
    right: 0;
    font-size: 14px;
    color: rgba(13, 33, 66, 0.4);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-grid-card.active .faq-card-arrow {
    transform: rotate(180deg);
    color: #EB6C19;
}

/* Card Body */
.faq-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-card-body-inner {
    padding-top: 15px;
    padding-left: 47px; /* Align with question text */
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    border-top: 1px solid rgba(13, 33, 66, 0.05);
    margin-top: 15px;
}

.faq-card-body-inner a {
    color: #EB6C19;
    font-weight: 700;
}

/* No Search Results */
.faq-no-results {
    grid-column: 1 / -1; /* Stretch across all columns */
    text-align: center;
    padding: 60px 15px;
    display: none;
    background: #ffffff;
    border-radius: 15px;
    border: 1px dashed rgba(13, 33, 66, 0.15);
}

.faq-no-results i {
    font-size: 50px;
    color: rgba(13, 33, 66, 0.15);
    margin-bottom: 20px;
}

.faq-no-results h3 {
    font-size: 20px;
    color: #0D2142;
    margin-bottom: 8px;
}

.faq-no-results p {
    color: #666666;
}

/* Responsive adjustment */
@media (max-width: 868px) {
    .faq-grid-container {
        grid-template-columns: 1fr; /* Single column on mobile/tablet */
    }
}
