/* Enhanced color palette and modern styling following design brief */
.hero-section {
    background: url('../../../assetsRevamp/public/images/gradient2.png') center / cover no-repeat;
    border-radius: 32px;
    padding: 3rem;
    margin-bottom: 4rem;
    color: white;
    box-shadow: 0 12px 64px rgba(213, 158, 11, 0.25);
    position: relative;
    overflow: hidden;
}

/* Added subtle abstract background pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.03)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.6;
    animation: subtleFloat 25s infinite linear;
    pointer-events: none;
}

@keyframes subtleFloat {
    0% {
        transform: translateX(-10px) translateY(-10px);
    }

    100% {
        transform: translateX(10px) translateY(10px);
    }
}

/* Updated typography to Work Sans Bold as specified in design brief */
.hero-title {
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Updated to Open Sans Regular for body text */
.hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    font-weight: 400;
}

/* Enhanced search container with better visual hierarchy */
.search-container {
    background: rgb(0 0 0 / 38%);
    backdrop-filter: blur(25px);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    padding: 1.5rem 1.5rem;
    font-size: 1.1rem;
    color: white;
    width: 100%;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
}

input:valid {
    border: none !important;
    -webkit-box-shadow: none !important;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.search-btn {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 40px;
    padding: 1.5rem 2.5rem;
    color: white;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Improved layout with generous spacing as per design brief */
.faq-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* Enhanced sidebar with modern styling */
.category-sidebar {
    /* background: white; */
    /* border-radius: 24px; */
    /* padding: 2.5rem; */
    box-shadow: 0 16px 48px rgb(98 98 98 / 5%);
    height: fit-content;
    position: sticky;
    top: 2rem;
    /* border: 1px solid #fefce8; */

    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.sidebar-title {
    font-weight: 700;
    color: #efa63e;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.category-filter {
    display: flex;
    /* Make text + span flexible */
    justify-content: space-between;
    /* Push text left, count right */
    align-items: center;
    /* Align vertically */
    width: 100%;
    margin-bottom: 12px;
    border: 2px solid transparent;
    border-radius: 18px;
    color: black;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 1rem;

}

.category-filter a {
    padding: 8px 16px;
    font-size: 13px;
}

.category-filter:hover {
    color: var(--primary-emerald);
    transform: translateX(8px);

}

.category-filter.active {
    color: var(--primary-emerald);
}

.category-count {
    background: #3c38381c;
    color: inherit;
    border-radius: 12px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 1rem;
    /* optional */
}

/* Enhanced FAQ cards with modern accordion design */
.faq-grid {
    display: grid;
    gap: 1rem;
}

.faq-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #efa63e;
}

.faq-card:hover {
    border-color: #efa63e;
}

.faq-card.expanded {
    border-color: #efa63e;
}

/* Active state for expanded question card */
.faq-card.expanded .faq-question-card {
    background: #f8f9fa !important;
    border-color: #efa63e;
}

.faq-card.expanded .faq-question-text {
    color: #efa63e !important;
}

/* Question card styling */
.faq-question-card {
    padding: 1.8rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question-card:hover {
    background: #f8f9fa;
    border-color: #efa63e;
}

.faq-question-text:hover {
    color: #efa63e;
}

/* Toggle indicator */
.faq-question-card::after {
    content: '';
    position: absolute;
    right: 2.53rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #efa63e;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question-card::before {
    content: '\276F';
    position: absolute;
    right: 3.05rem;
    top: 51%;
    transform: translateY(-50%) rotate(0deg);
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card.expanded .faq-question-card::before {
    transform: translateY(-50%) rotate(90deg);
}

.faq-card.expanded .faq-question-card::after {
    background: #efa63e;
    /* transform: translateY(-50%) scale(1.15); */
}

/* Question text */
.faq-question-text {
    font-weight: 500;
    color: black;
    font-size: 1.1rem;
    margin: 0;
    padding-right: 4rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Answer section */
.faq-answer-card {
    padding: 0 2.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.faq-card.expanded .faq-answer-card {
    padding: 1.9rem;
    max-height: 400px;
}

/* Answer text */
.faq-answer-text {
    font-family: 'Open Sans', sans-serif;
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.05rem;
    font-weight: 400;
}

.faq-answer-text a {
    color: #efa63e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-answer-text a:hover {
    color: #efa63e;
    border-bottom-color: #efa63e;
}

/* Enhanced feedback section with modern styling */
.feedback-section {
    border-top: 2px solid #fefce8;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-text {
    color: #4b5563;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.feedback-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Modern feedback buttons with better interactions */
.feedback-btn {
    background: #fefce8;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: #efa63e;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-btn:hover {
    background: #efa63e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.feedback-btn.active {
    background: #efa63e;
    color: white;
    border-color: #efa63e;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

/* Enhanced no results styling */
.no-results {
    text-align: center;
    padding: 5rem 3rem;
    color: #4b5563;
    display: none;
    background: white;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.06);
}

.no-results-icon {
    font-size: 5rem;
    color: #fefce8;
    margin-bottom: 2rem;
}

.no-results h3 {
    font-weight: 700;
    color: #efa63e;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.no-results p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
}

/* Enhanced contact section with modern gradient and typography */
.contact-section {
    /* background: linear-gradient(135deg, #efa63e 0%, #efa63e 50%, #efa63e 100%); */
    background: url('../../../assetsRevamp/public/images/gradient2.png') center / cover no-repeat;
    border-radius: 32px;
    padding: 3rem 3rem;
    margin-top: 5rem;
    text-align: center;
    color: white;
    box-shadow: 0 32px 64px rgba(245, 158, 11, 0.25);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contactGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="70" cy="60" r="1.5" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="90" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23contactGrain)"/></svg>') repeat;
    opacity: 0.5;
    pointer-events: none;
}

.contact-title {
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    color: white;
}

.contact-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    font-weight: 400;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Modern contact links with enhanced styling */
.contact-link {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    color: white;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Enhanced responsive design with better breakpoints */
@media (max-width: 992px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .category-sidebar {
        position: static;
        display: block;
        overflow-x: auto;
        padding: 2rem;
        gap: 1.5rem;
        border-radius: 20px;
    }

    .category-filter {
        white-space: nowrap;
        margin-bottom: 0;
        min-width: fit-content;
    }

    .hero-title {
        font-size: 3rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 2rem;
        border-radius: 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .faq-question-card {
        padding: 2rem;
    }

    .faq-question-text {
        font-size: 1.2rem;
        padding-right: 3rem;
    }

    .faq-card.expanded .faq-answer-card {
        padding: 2rem;
    }

    .contact-section {
        padding: 4rem 2rem;
        border-radius: 24px;
    }

    .contact-title {
        font-size: 2.2rem;
    }
}

/* Enhanced loading animation */
.loading-cloud {
    display: inline-block;
    animation: gentleBounce 2s infinite ease-in-out;
}

@keyframes gentleBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}