/* ============================================================
   CMS Section Styles — for admin-managed page sections
   (Admin → Page Sections). Matches the site's brand system.
   ============================================================ */

/* ---- Section wrapper + admin edit bar ---- */
.cms-section-wrap { position: relative; }

.cms-edit-bar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 50;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cms-section-wrap:hover .cms-edit-bar { opacity: 1; }
.cms-edit-bar a {
    background: #006cb5;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 108, 181, 0.35);
    transition: background 0.2s, transform 0.2s;
}
.cms-edit-bar a:hover { background: #00508a; transform: translateY(-1px); color: #fff; }

/* ---- Shared ---- */
.cms-sec { position: relative; }
.cms-content { color: var(--text-light, #666); line-height: 1.8; font-size: 15px; }
.cms-content p { margin-bottom: 14px; }
.cms-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cms-sec .section-tag { margin-bottom: 12px; }

/* ---- Text block ---- */
.cms-text-block { max-width: 860px; }
.cms-text-block h2 { margin-bottom: 16px; }

/* ---- Image + text split ---- */
.cms-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.cms-split-media img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}
.cms-split-body h2 { margin-bottom: 14px; }
@media (max-width: 991px) {
    .cms-split { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- Image cards ---- */
.cms-image-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cms-image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.cms-image-card > img { width: 100%; height: 200px; object-fit: cover; }
.cms-image-card-body { padding: 22px; }
.cms-image-card-body h3 { font-size: 18px; margin-bottom: 6px; }
.cms-image-card-sub {
    display: block;
    color: var(--primary, #006cb5);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.cms-image-card-body p { color: var(--text-light, #666); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.cms-image-card-body a {
    color: var(--primary, #006cb5);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.cms-image-card-body a:hover { text-decoration: underline; }

/* ---- Icon card link ---- */
.cms-card-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary, #006cb5);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}
.cms-card-link:hover { text-decoration: underline; }

/* ---- Video ---- */
.cms-video { max-width: 860px; margin: 0 auto; }
.cms-video .video-embed { border-radius: 16px; overflow: hidden; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.15); }

/* ---- Gallery ---- */
.cms-gallery-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.cms-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.cms-gallery-item:hover img { transform: scale(1.06); }
.cms-gallery-item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* ---- Raw HTML section ---- */
.cms-raw { padding: 40px 0; }
