/* Shared styles for user pages (FAQ, legal/rules text, contact, lists). */

.narrow-page {
    max-width: 820px;
}

/* Brand cards: bootstrap's .card resets color, so set white text here. */
.page-content .card.c {
    color: #fff;
}

/* Section heading placed directly on the photo. */
.section-title {
    margin: 8px 0 14px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

/* Long text written in the editor (rules, FAQ answers, legal pages). */
.rich-text {
    font-size: .95rem;
    line-height: 1.65;
    color: #2b2f2c;
}

.rich-text h1,
.rich-text h2,
.rich-text h3 {
    margin: 1.4rem 0 .6rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tmv-green, #2c7744);
}

.rich-text h1:first-child,
.rich-text h2:first-child,
.rich-text h3:first-child {
    margin-top: 0;
}

.rich-text p {
    margin-bottom: .7rem;
}

.rich-text p.mt-5 {
    margin-top: .5rem !important;
}

.rich-text ul,
.rich-text ol {
    padding-left: 1.3rem;
}

.rich-text a {
    color: var(--tmv-green, #2c7744);
    font-weight: 500;
    word-break: break-word;
}

.rich-text img {
    max-width: 100%;
    height: auto;
}

/* FAQ accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid rgba(44, 119, 68, .2);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.faq-item:hover {
    border-color: var(--tmv-green, #2c7744);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 0;
    background: #f6f8f6;
    cursor: pointer;
    user-select: none;
}

.faq-item__question h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #2b2f2c;
}

.faq-item__question .toggle-icon {
    flex: 0 0 auto;
    color: var(--tmv-green, #2c7744);
    font-size: .8rem;
}

.faq-item__answer {
    padding: 14px 18px;
    border-top: 1px solid rgba(44, 119, 68, .15);
}

/* Lists of brand cards rendered by JS (lessons, bills). */
.list-grid .card.c {
    height: 100%;
}

@media (max-width: 575.98px) {
    .rich-text {
        font-size: .9rem;
    }

    .faq-item__question {
        padding: 12px 14px;
    }
}

/* Small number shown inside a page header. */
.header-stat {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: .85rem;
    color: rgba(255, 255, 255, .85);
}

.header-stat span {
    margin-right: 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

/* theme.css paints every .btn brown; keep light buttons light. */
.page-content .btn-light {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #2b2f2c;
}

.page-content .btn-light:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--tmv-green, #2c7744);
}

/* Location cards */
.location-card .card-body {
    padding: 20px;
}

.location-card__name {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.location-card__directions {
    font-size: .9rem;
    line-height: 1.6;
    opacity: .93;
}

.location-card .btn-light {
    color: var(--tmv-green, #2c7744);
    font-weight: 600;
}

/* Font Awesome JS swaps <i> for <svg>; keep the empty-state icon centred. */
.empty-state svg.empty-state__icon {
    display: block;
    margin: 0 auto 10px;
    height: 2rem;
    width: auto;
}

/* Public legal pages (legal/offline-layout) */
.legal-offline {
    max-width: 960px;
    padding-top: 110px;
    padding-bottom: 48px;
}
