:root {
    --primary-blue: #0056b3;
    --primary-light: #0066cc;
    --secondary-blue: #e3f2fd;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 86, 179, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 86, 179, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 86, 179, 0.15);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    list-style: none;
    padding: 0;
    gap: 16px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

/* Header/Toggle */
.faq-toggle {
    width: 100%;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-toggle:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0ff 100%);
}

.faq-toggle.active {
    background: linear-gradient(135deg, #e3f2fd 0%, #d6e8ff 100%);
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
    flex: 1;
    letter-spacing: 0.3px;
}

.faq-toggle:hover .faq-question {
    color: var(--primary-blue);
}

.faq-toggle.active .faq-question {
    color: var(--primary-blue);
}

.faq-icon-wrapper {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0ff 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-toggle:hover .faq-icon-wrapper {
    background: linear-gradient(135deg, #e3f2fd 0%, #d6e8ff 100%);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.faq-toggle.active .faq-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    color: #fff;
    border-color: var(--primary-blue);
    transform: rotate(90deg);
    box-shadow: 0 4px 16px rgba(0, 86, 179, 0.3);

}


.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;

}

.faq-toggle.active+.faq-answer {
    grid-template-rows: 1fr;

}

.faq-answer-content {
    min-height: 0;
    padding: 0 16px;
    color: var(--text-light);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 86, 179, 0.02));
    transition: all 0.3s ease;
}

.faq-answer-content p {
    margin: 0;
    padding: 10px 0 10px 0;
}

.faq-en-box {
    margin-top: 18px;
    padding: 16px 16px;
    background: linear-gradient(135deg, #e3f2fd, #f0f7ff);
    border-left: 5px solid var(--primary-blue);
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 86, 179, 0.1);
}

.en-label {
    display: block;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.en-text {
    font-size: 0.93rem;
    margin: 0;
    color: var(--text-light);
    font-style: italic;
}

@media (max-width: 768px) {
    .faq-toggle {
        padding: 18px 20px;
    }

    .faq-answer-content {
        padding: 0 20px 18px 20px;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

.faq-portal-container {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.portal-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent, #0056b3);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.portal-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.15);
}

.portal-card:hover::before {
    transform: scaleX(1);
}

.portal-icon {
    font-size: 60px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #0056b3, #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease;
}

.portal-card:hover .portal-icon {
    transform: scale(1.1);
}

.portal-card h2 {
    font-size: 24px;
    color: #2d3436;
    margin-bottom: 15px;
    font-weight: 700;
}

.portal-card p {
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 25px;
}

.portal-btn {
    background: #f1f3f5;
    color: #2d3436;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portal-card:hover .portal-btn {
    background: #0056b3;
    color: #fff;
}

@media (max-width: 768px) {
    .faq-portal-container {
        padding: 40px 20px;
    }
}