/* Styles for CMS-added block types (richtext, image_text, cards, testimonials, faq, cta).
   Uses the site's existing palette: red #d4202d, dark purple #36183e, gold #d1b16f. */

.cms-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 50px 20px;
}

.cms-heading {
    margin-bottom: 20px;
}

.cms-center {
    text-align: center;
}

.cms-subheading {
    display: block;
    font-size: 18px;
    color: #36183e;
    margin-bottom: 15px;
}

.cms-body {
    font-size: 15px;
    line-height: 1.7;
    color: #333333;
}

.cms-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #d4202d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.cms-btn:hover {
    background: #a91a24;
}

.cms-btn-light {
    background: #ffffff;
    color: #d4202d;
}

.cms-btn-light:hover {
    background: #f2f2f2;
}

/* image_text */
.cms-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.cms-pos-right .cms-flex {
    flex-direction: row-reverse;
}

.cms-image-text-img {
    flex: 1 1 380px;
}

.cms-image-text-img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.cms-image-text-content {
    flex: 1 1 380px;
}

/* cards */
.cms-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.cms-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cms-card-img img {
    max-width: 72px;
    margin: 0 auto 15px;
}

.cms-card-title {
    color: #36183e;
    font-size: 18px;
    margin-bottom: 8px;
}

.cms-card-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
}

/* testimonials */
.cms-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.cms-testimonial {
    background: #faf7f2;
    border-left: 4px solid #d1b16f;
    border-radius: 4px;
    padding: 22px;
}

.cms-testimonial-photo img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.cms-testimonial-quote {
    font-style: italic;
    color: #333333;
    margin-bottom: 12px;
}

.cms-testimonial-name {
    font-weight: 700;
    color: #36183e;
    margin: 0;
}

.cms-testimonial-role {
    font-size: 13px;
    color: #888888;
    margin: 0;
}

/* faq */
.cms-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.cms-faq-item {
    border-bottom: 1px solid #e6e6e6;
}

.cms-faq-q {
    padding: 16px 4px;
    cursor: pointer;
    font-weight: 600;
    color: #36183e;
    position: relative;
    padding-right: 30px;
}

.cms-faq-q::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 14px;
    font-size: 20px;
    color: #d4202d;
    transition: transform 0.2s ease;
}

.cms-faq-item.open .cms-faq-q::after {
    transform: rotate(45deg);
}

.cms-faq-a {
    display: none;
    padding: 0 4px 16px;
    color: #555555;
    line-height: 1.6;
}

.cms-faq-item.open .cms-faq-a {
    display: block;
}

/* cta */
.cms-cta {
    padding: 10px 0;
}

.cms-cta-primary {
    background: linear-gradient(135deg, #d4202d, #a91a24);
    color: #ffffff;
}

.cms-cta-dark {
    background: #36183e;
    color: #ffffff;
}

.cms-cta-heading {
    font-size: 28px;
    margin-bottom: 10px;
    color: inherit;
}

.cms-cta-subtext {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .cms-container {
        padding: 30px 15px;
    }

    .cms-flex {
        flex-direction: column !important;
    }
}
