﻿
/* ===============================
   COLOR THEME
================================ */
:root {
    --gold: #c9a24d;
    --dark-gold: #8a6d2f;
    --line: #e8e8e8;
    --text-dark: #2c2c2c;
    --text-light: #666;
}



/* ===============================
   CONTAINER
================================ */
.faq-container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    font-size: 36px;
}



/* ===============================
   FAQ GRID
================================ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
    align-items: start;
}

/* ===============================
   FAQ ITEM – LINE STYLE
================================ */
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

    .faq-item:last-child {
        border-bottom: none;
    }

/* ===============================
   QUESTION
================================ */
summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 28px;
}

    summary::after {
        content: "+";
        position: absolute;
        right: 0;
        top: 0;
        font-size: 22px;
        color: var(--gold);
    }

details[open] summary::after {
    content: "−";
}

/* ===============================
   ANSWER
================================ */
details p {
    margin: 12px 0 0;
    /*color: var(--text-light);*/
    line-height: 1.6;
    padding-left: 2px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    h1 {
        font-size: 28px;
    }
}


/* ===============================
   FIXED FAQ LAYOUT (No White Space)
================================ */
.faq-grid {
    /* Use columns instead of grid to allow items to stack tightly */
    column-count: 2;
    column-gap: 40px;
    display: block; /* Switch from grid to block for columns to work */
}

.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    /* Crucial: Prevents the item from splitting across two columns */
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

/* Ensure content looks smooth when opening */
details[open] summary ~ * {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive: 1 column for mobile */
@media (max-width: 768px) {
    .faq-grid {
        column-count: 1;
    }
}
