/* Styles for FAQs.php, moved out of the page unchanged. */
/* Hide breadcrumb and reset page wrapper spacing for seamless banner. */
.rui-breadcrumbs,
#page-header {
    display: none !important;
}

#page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#region-main {
    padding-top: 0 !important;
}

/* Center the navigation menu in the header. */
nav.navbar {
    justify-content: space-between !important;
}

.primary-navigation {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.primary-navigation .navigation {
    justify-content: center !important;
}

#usernavigation {
    margin-left: 0 !important;
}

/* Navigation styles matching landing page. */
.primary-navigation .navigation .nav-link {
    padding: 9px 15px;
    margin: 0 .15rem;
    min-height: 40px;
    font-weight: 500;
    color: #212121 !important;
    border: none;
    border-radius: 5px;
}

.primary-navigation .navigation .nav-link:hover,
.primary-navigation .navigation .nav-link:focus {
    color: #0ea5e9 !important;
    background-color: rgba(14, 165, 233, 0.1);
}

.rui-topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    width: max-content;
    min-height: 40px;
    border: none;
    border-radius: 5px;
    font-size: .75rem;
    font-weight: 500;
    background-color: #EEE !important;
    color: #212121 !important;
}

.rui-topbar-btn:hover,
.rui-topbar-btn:focus {
    background-color: #DDD !important;
    color: #212121 !important;
}

.rui-login-btn {
    background-color: #ba9607 !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

/* Page Hero with decorative pattern */
.page-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0c4a6e 100%);
    padding: 64px 20px 48px;
    text-align: center;
    margin-top: -24px;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(186, 150, 7, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero .hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: #7dd3fc;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-hero h1 {
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.page-hero p {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* Search bar inside hero */
.faq-search {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.faq-search input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.faq-search input::placeholder {
    color: rgba(203, 213, 225, 0.7);
}

.faq-search input:focus {
    outline: none;
    border-color: rgba(14, 165, 233, 0.6);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.faq-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(203, 213, 225, 0.7);
    pointer-events: none;
}

/* Category navigation pills (anchor links) */
.faq-categories {
    max-width: 1000px;
    margin: -28px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: white;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-pill:hover,
.category-pill:focus,
.category-pill.is-active {
    background: #e0f2fe;
    color: #0369a1;
    border-color: rgba(14, 165, 233, 0.3);
    text-decoration: none;
}

.category-pill svg {
    width: 16px;
    height: 16px;
}

/* FAQ section */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 20px 24px;
}

.faq-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.faq-toolbar .result-count {
    font-size: 0.88rem;
    color: #64748b;
}

.toggle-all-btn {
    background: none;
    border: 1px solid #e2e8f0;
    color: #0ea5e9;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.toggle-all-btn:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
}

/* Category groups */
.faq-category {
    margin-bottom: 36px;
    scroll-margin-top: 90px;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.faq-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.faq-category-icon svg {
    width: 22px;
    height: 22px;
}

.faq-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.faq-category-count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 999px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: #bae6fd;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
}

.faq-item.is-open {
    border-color: #0ea5e9;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.12);
}

.faq-toggle {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.2s ease;
    gap: 14px;
}

.faq-toggle:hover {
    color: #0284c7;
}

.faq-toggle .question-text {
    flex: 1;
}

.faq-toggle .chevron {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-toggle .chevron svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-toggle .chevron {
    background: #0ea5e9;
    color: white;
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-content.open {
    max-height: 800px;
}

.faq-content-inner {
    padding: 4px 22px 20px;
    color: #475569;
    line-height: 1.75;
    font-size: 0.95rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 2px;
    padding-top: 16px;
}

/* No results state */
.faq-empty {
    display: none;
    text-align: center;
    padding: 48px 24px;
    background: #f8fafc;
    border-radius: 16px;
    color: #64748b;
}

.faq-empty.show {
    display: block;
}

.faq-empty svg {
    width: 48px;
    height: 48px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

/* CTA Card */
.faq-cta {
    max-width: 900px;
    margin: 24px auto 0;
    padding: 0 20px 48px;
}

.faq-cta-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    flex-wrap: wrap;
}

.faq-cta-text h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}

.faq-cta-text p {
    color: #475569;
    font-size: 0.95rem;
    margin: 0;
    max-width: 460px;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ba9607;
    color: white;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.faq-cta-btn:hover {
    background: #a38506;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(186, 150, 7, 0.3);
}

.faq-cta-btn svg {
    width: 18px;
    height: 18px;
}

/* Footer */
.modern-footer {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 48px 20px 24px;
    margin-top: 0;
    margin-bottom: -100px;
    padding-bottom: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-block h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0ea5e9;
    margin-bottom: 16px;
}

.footer-block p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-block ul li {
    margin-bottom: 8px;
}

.footer-block ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-block ul li a:hover {
    color: #0ea5e9;
}

.footer-block .footer-icon {
    color: #0ea5e9;
    margin-right: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 48px 16px 40px;
    }

    .page-hero h1 {
        font-size: 1.7rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .faq-section {
        padding: 32px 16px 16px;
    }

    .faq-cta {
        padding: 0 16px 32px;
    }

    .faq-cta-card {
        padding: 28px 24px;
        text-align: center;
        flex-direction: column;
    }

    .faq-toggle {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    .faq-content-inner {
        padding: 14px 18px 18px;
    }

    .faq-category-title {
        font-size: 1.1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}
