/* === FAQ Page — Glassmorphism Theme === */

/* Background gradient on the outer content container */
.content.nc-conditions {
    background: linear-gradient(160deg, #a8d99a 0%, #c2e8b0 20%, #8ecc7a 45%, #b5e0a0 65%, #9ad488 85%, #b0dc98 100%);
}

.nc-conditions .workspace {
    padding-bottom: 40px;
    background: transparent;
    border: none;
}

.nc-faq__title {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0;
    color: #2d2d2d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Category Cards Grid === */
.nc-faq__nav {
    margin: 30px 0 10px;
}

.nc-faq__nav .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nc-faq__nav-col {
    width: 33.33%;
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Glass card */
.nc-faq__nav-card {
    display: block;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(49, 169, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nc-faq__nav-card:hover,
.nc-faq__nav-card:focus {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(49, 169, 0, 0.35);
    box-shadow: 0 8px 32px rgba(49, 169, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    color: #444;
    text-decoration: none;
}

.nc-faq__card-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.nc-faq__card-header i {
    font-size: 28px;
    color: #31a900;
    margin-right: 12px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(49, 169, 0, 0.2));
}

.nc-faq__card-header span {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #2d2d2d;
}

.nc-faq__card-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nc-faq__card-items li {
    padding: 4px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* === Modal — Glass Theme === */
.nc-faq__modal .modal-dialog {
    max-width: 700px;
    width: 90%;
}

.nc-faq__modal .modal-content {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(49, 169, 0, 0.08);
    overflow: hidden;
}

.nc-faq__modal .modal-header {
    background: linear-gradient(135deg, rgba(49, 169, 0, 0.08) 0%, rgba(90, 182, 68, 0.05) 100%);
    border-bottom: 1px solid rgba(49, 169, 0, 0.15);
    padding: 18px 24px;
}

.nc-faq__modal .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #278400;
    letter-spacing: 0.3px;
}

.nc-faq__modal .modal-header .close {
    color: #666;
    opacity: 0.6;
    text-shadow: none;
    font-size: 24px;
    transition: opacity 0.2s;
}

.nc-faq__modal .modal-header .close:hover {
    opacity: 1;
    color: #333;
}

.nc-faq__modal .modal-body {
    padding: 16px 24px 24px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Custom scrollbar for modal body */
.nc-faq__modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.nc-faq__modal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.nc-faq__modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(49, 169, 0, 0.2);
    border-radius: 3px;
}

.nc-faq__modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(49, 169, 0, 0.35);
}

/* Modal backdrop */
.nc-faq__modal.in {
    background: rgba(30, 60, 20, 0.35);
}

/* === Accordion Panels (inside modals) === */
/* Force collapse behavior — Bitrix CSS concatenation strips Bootstrap's .collapse rules */
.nc-faq__modal .panel-collapse.collapse {
    display: none;
}

.nc-faq__modal .panel-collapse.collapse.in {
    display: block;
}

.nc-faq__modal .panel-collapse.collapsing {
    display: block;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.nc-faq__modal .panel-group {
    margin-bottom: 0;
}

.nc-faq__modal .panel-default {
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}

.nc-faq__modal .panel-default + .panel-default {
    border-top: 1px solid rgba(49, 169, 0, 0.1);
}

.nc-faq__modal .panel-heading {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.nc-faq__modal .panel-heading + .panel-collapse > .panel-body {
    border-top: none;
}

.nc-faq__modal .panel-title {
    margin: 0;
    font-size: 15px;
}

.nc-faq__modal .panel-title a {
    display: block;
    padding: 14px 14px 14px 28px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.nc-faq__modal .panel-title a:hover,
.nc-faq__modal .panel-title a:focus {
    color: #31a900;
    background: rgba(49, 169, 0, 0.04);
    text-decoration: none;
}

.nc-faq__modal .panel-title a.collapsed {
    color: #333;
}

.nc-faq__modal .panel-title a:not(.collapsed) {
    color: #278400;
    background: rgba(49, 169, 0, 0.06);
}

.nc-faq__chevron {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s;
    color: #31a900;
}

.nc-faq__modal .panel-title a:not(.collapsed) .nc-faq__chevron {
    transform: translateY(-50%) rotate(90deg);
}

.nc-faq__modal .panel-body {
    padding: 2px 14px 18px 28px;
    color: #444;
    font-size: 14px;
    line-height: 1.7;
}

.nc-faq__modal .panel-body p {
    margin-bottom: 10px;
}

.nc-faq__modal .panel-body p:last-child {
    margin-bottom: 0;
}

.nc-faq__modal .panel-body a {
    color: #278400;
    text-decoration: none;
    border-bottom: 1px solid rgba(49, 169, 0, 0.25);
    transition: border-color 0.2s;
}

.nc-faq__modal .panel-body a:hover {
    color: #1f6d00;
    border-bottom-color: rgba(49, 169, 0, 0.5);
}

.nc-faq__modal .panel-body ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.nc-faq__modal .panel-body li {
    margin-bottom: 5px;
}

/* === Mobile Responsive === */
@media screen and (max-width: 740px) {
    .nc-faq__nav-col {
        width: 50%;
        padding: 0 6px;
        margin-bottom: 12px;
    }

    .nc-faq__nav-card {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .nc-faq__card-header i {
        font-size: 22px;
        margin-right: 8px;
    }

    .nc-faq__card-header span {
        font-size: 14px;
    }

    .nc-faq__card-items li {
        font-size: 12px;
    }

    .nc-faq__title {
        font-size: 20px;
    }

    .nc-faq__modal .modal-dialog {
        width: 95%;
        margin: 20px auto;
    }

    .nc-faq__modal .modal-content {
        border-radius: 14px;
    }

    .nc-faq__modal .modal-title {
        font-size: 16px;
    }

    .nc-faq__modal .modal-header {
        padding: 14px 18px;
    }

    .nc-faq__modal .modal-body {
        padding: 12px 16px 18px;
    }

    .nc-faq__modal .panel-title a {
        font-size: 14px;
        padding: 12px 12px 12px 24px;
        border-radius: 8px;
    }

    .nc-faq__modal .panel-body {
        padding: 2px 12px 15px 24px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .nc-faq__nav-col {
        width: 100%;
    }
}
