/* =========================================
   FAQ Page Styles
   ========================================= */

/* =========================================
   1. Banner
   ========================================= */
.faq-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--header-height, 80px);
}

.faq-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.banner-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumbs {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb-sep {
    margin: 0 10px;
    opacity: 0.6;
}

/* =========================================
   2. Top Features (4 Icons)
   ========================================= */
.top-features {
    padding: 50px 0;
    background: var(--white);
}

.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item-4 {
    text-align: center;
}

.feature-icon-4 {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-4 svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.feature-item-4 h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-item-4 p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* =========================================
   3. Main Section Layout
   ========================================= */
.faq-main-section {
    padding: var(--section-padding);
    background: var(--gray-light);
}

.faq-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* =========================================
   4. Sidebar (Categories)
   ========================================= */
.faq-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.faq-cat-list {
    list-style: none;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.faq-cat-item {
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 4px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    transition: 0.2s;
}

.faq-cat-item:hover {
    background-color: var(--gray-light);
}

.faq-cat-item.active {
    background-color: var(--primary);
    color: var(--white);
}

.faq-cat-item span {
    font-size: 0.8rem;
    opacity: 0.7;
}

.faq-cat-item.active span {
    opacity: 1;
}

/* =========================================
   5. Mobile FAQ Filter Dropdown
   ========================================= */
.mobile-faq-filter {
    display: none;
    position: relative;
    margin-bottom: 20px;
}

.mobile-faq-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.mobile-faq-toggle svg:first-child {
    color: var(--primary);
}

.dropdown-chevron {
    margin-left: auto;
    transition: transform 0.3s;
}

.mobile-faq-filter.open .dropdown-chevron {
    transform: rotate(180deg);
}

.mobile-faq-filter.open .mobile-faq-toggle {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.mobile-faq-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 50;
    display: none;
    overflow: hidden;
}

.mobile-faq-filter.open .mobile-faq-dropdown {
    display: block;
}

.mobile-faq-option {
    padding: 10px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid var(--gray-light);
}

.mobile-faq-option:last-child {
    border-bottom: none;
}

.mobile-faq-option:hover {
    background: var(--gray-light);
}

.mobile-faq-option.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

/* =========================================
   6. Right Content (Search + List)
   ========================================= */
.faq-right-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Search Bar */
.faq-search {
    display: flex;
    gap: 10px;
}

.faq-search input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-md);
    outline: none;
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
}

.faq-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.faq-search button {
    padding: 0 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.faq-search button:hover {
    background: var(--primary-dark);
}

.faq-search button svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
}

/* =========================================
   7. FAQ List
   ========================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: 0.3s;
}

/* FAQ Header */
.faq-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.faq-num {
    width: 32px;
    height: 32px;
    background: var(--gray-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-title {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
}

.faq-toggle-icon {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: transform 0.3s;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

/* Active State */
.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-header {
    background: rgba(15, 81, 50, 0.02);
}

.faq-item.active .faq-num {
    background: var(--primary);
    color: var(--white);
}

.faq-item.active .faq-title {
    color: var(--primary);
}

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

/* FAQ Body (Answer) — hidden by default via CSS class */
.faq-body {
    display: none;
    padding: 25px;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    gap: 30px;
    align-items: flex-start;
}

.faq-item.active .faq-body {
    display: flex;
}

/* Answer Layout */
.faq-answer-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
}

.faq-answer-img {
    width: 250px;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.faq-answer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   Responsive - Tablet (max-width: 1024px)
   ========================================= */
@media (max-width: 1024px) {
    /* Banner */
    .faq-banner { height: 260px; }
    .banner-content h1 { font-size: 2rem; }

    /* Features → 2 col */
    .features-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 30px; }

    /* Layout: hide sidebar, show mobile dropdown */
    .faq-layout { grid-template-columns: 1fr; }
    .faq-sidebar { display: none; }
    .mobile-faq-filter { display: block; }

    /* FAQ answer → stack */
    .faq-item.active .faq-body { flex-direction: column; }
    .faq-answer-img { width: 100%; height: 200px; }
}

/* =========================================
   Responsive - Mobile (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    /* Banner */
    .faq-banner { height: 220px; }
    .banner-content h1 { font-size: 1.75rem; }
    .banner-content p { font-size: 1rem; }
    .breadcrumbs { font-size: 0.8rem; }

    /* Features */
    .top-features { padding: 30px 0; }
    .features-grid-4 { gap: 20px; }
    .feature-icon-4 { width: 60px; height: 60px; }
    .feature-icon-4 svg { width: 28px; height: 28px; }
    .feature-item-4 h3 { font-size: 1.1rem; }

    /* Main section */
    .faq-main-section { padding: 40px 0; }

    /* Search */
    .faq-search input { padding: 10px 15px; font-size: 0.9rem; }
    .faq-search button { padding: 0 15px; }

    /* FAQ items */
    .faq-header { padding: 15px; gap: 10px; }
    .faq-num { width: 28px; height: 28px; font-size: 0.9rem; }
    .faq-title { font-size: 1rem; }
    .faq-toggle-icon { font-size: 1.2rem; }
    .faq-body { padding: 15px 20px; }
    .faq-answer-text { font-size: 0.9rem; }

    /* Mobile filter */
    .mobile-faq-toggle { padding: 10px 14px; font-size: 0.9rem; }
    .mobile-faq-option { padding: 8px 14px; font-size: 0.85rem; }
}
.Href{
	border-radius: 10px;
	margin-top: 15px;
}
/* =========================================
   Responsive - Small Mobile (max-width: 480px)
   ========================================= */
@media (max-width: 480px) {
    /* Banner */
    .faq-banner { height: 200px; }
    .banner-content h1 { font-size: 1.5rem; margin-bottom: 8px; }
    .banner-content p { font-size: 0.9rem; }

    /* Features → 2 col (keep) */
    .features-grid-4 { gap: 15px; }
    .feature-item-4 h3 { font-size: 1rem; }
    .feature-item-4 p { font-size: 0.85rem; }

    /* Main */
    .faq-main-section { padding: 30px 0; }

    /* FAQ items */
    .faq-header { padding: 12px; }
    .faq-num { width: 26px; height: 26px; font-size: 0.85rem; }
    .faq-title { font-size: 0.95rem; }
    .faq-body { padding: 12px 15px; }
    .faq-answer-text { font-size: 0.85rem; line-height: 1.6; }
    .faq-answer-img { height: 160px; }

    /* Mobile filter */
    .mobile-faq-toggle { padding: 10px 12px; font-size: 0.85rem; }
}