/* Prefix: gh-faq- */

.gh-faq-page-wrapper {
    background: #080818;
    min-height: 100vh;
    padding: 160px 20px 80px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.gh-faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.gh-faq-title {
    text-align: center;
    font-family: 'Oxanium';
    font-size: 3.5rem;
    background: linear-gradient(45deg, #008cff, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.gh-faq-subtitle {
    text-align: center;
    color: #a0aec0;
    margin-bottom: 50px;
}

/* Search Input */
.gh-faq-search-box {
    position: relative;
    margin-bottom: 50px;
}

.gh-faq-search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #008cff;
}

.gh-faq-search-box input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 140, 255, 0.2);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gh-faq-search-box input:focus {
    outline: none;
    border-color: #008cff;
    box-shadow: 0 0 25px rgba(0, 140, 255, 0.2);
}

/* Accordion Smooth Logic */
.gh-faq-cat-title {
    font-family: 'Oxanium';
    color: #008cff;
    font-size: 1.5rem;
    margin: 40px 0 20px;
}

.gh-faq-item {
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

.gh-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 25px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.gh-faq-icon {
    width: 30px;
    height: 30px;
    background: rgba(0, 140, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #008cff;
}

/* Question Active State */
.gh-faq-question.is-active { color: #008cff; }
.gh-faq-icon.rotated { transform: rotate(45deg); background: #ef4444; color: white; }

/* THE SMOOTH CSS TRANSITION MAGIC */
.gh-faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr; /* Initial state */
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    opacity: 0;
}

.gh-faq-answer-wrapper.is-open {
    grid-template-rows: 1fr; /* Open state */
    visibility: visible;
    opacity: 1;
}

.gh-faq-answer-content {
    overflow: hidden;
    padding: 0 25px;
    color: #cbd5e0;
    line-height: 1.8;
    font-size: 1rem;
}

.gh-faq-answer-wrapper.is-open .gh-faq-answer-content {
    padding-bottom: 25px;
}

[x-cloak] { display: none !important; }