.footer-top a, .footer-top a:visited, .footer-top a:focus {color: #fff; text-decoration: underline;}
.footer-top a:hover {color: var(--sc-primary);}
.footer-top .subscribe-form .form-group {margin-bottom: 0;}
.footer-top .subscribe-form input {margin-bottom: 0;height: 45px;}
.footer-top .subscribe-form label {margin-bottom: 5px; font-weight: normal;}
.footer-top .subscribe-form .btn {background-color:var(--primary);color:#FFF;}
.footer-top .subscribe-form .btn[type=submit] {margin-top:5px;}
.footer-top .subscribe-form .btn:hover,.footer-top .subscribe-form .btn:active, .footer-top .subscribe-form .btn:focus  {background-color:var(--sc-primary);}
.footer-top img {max-width: 200%;}

.subscribe-form {background-color: #929193; color:#FFF;}
.page-banner {background-color: #FFF;}
main {background-color: #FFFFFF;}
.page-banner-entry > h4 {color: #fff;}

.rev-slider {margin-bottom: 60px;}

.card-footer {
     text-transform: uppercase;
    font-weight: 600;
     color:#8492A6;
    vertical-align: middle;
    outline: 0 none;
    text-align: center;
    padding: 15px 0;
    background: #fff;
    /*border:none;*/
}

.card-footer:hover{
/*    Show a background color filling the box from bottom to top*/
    background: var(--primary);
    color: #fff;
}
.recent-news .info-bx {background: #fff;}
.action-card {margin-bottom:20px;}
.action-card .recent-news-date {
    background: var(--primary);
}
.card-transition-zoom-item > .badge.recent-news-date{
    background: var(--primary);
}

.training {padding:5px; margin-bottom: 5px;}
.training-title {border-bottom: 1px solid var(--primary); font-weight: bold; margin-bottom: 5px;}
.team-page .section-sp3 {padding-top:10px;}

.accordion-button:not(.collapsed) {background-color: rgb(184, 16, 42,0.6);color:var(--bs-accordion-btn-color);}

.portfolio-box.style-3 {margin-bottom: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.09);}
.portfolio-box.style-3 .portfolio-info {padding: 0 15px;}
.portfolio-box.style-3 .portfolio-media img { transition: transform 0.4s ease; }
.portfolio-box.style-3:hover .portfolio-media img { transform: scale(1.04); }
.media .action-card {margin-bottom: 0;}
/*.portfolio-box.style-3 .portfolio-info .title {font-size: 22px; line-height: 22px;margin-bottom:5px; margin-top:2px;);}*/
.media .portfolio-box .portfolio-info span.badge {padding:3px;}

p a {color: var(--primary);}
a:hover {color: var(--sc-primary);}

.team-info p {text-align: left;margin-bottom: 5px;}
.team-info li > p {margin:0}

#calendar .wc-calendar-view-container {border-radius: 0 !important;}
#calendar {background-color: #fff; padding:15px; border-radius:5px; box-shadow: 0 0 10px rgb(0 0 0 / 10%);}
#calendar .me-4 {display: none;}
#calendar button[data-bs-toggle="sidebar"] {display: none;}
#calendar .dropdown-item.active {background-color: var(--bs-dropdown-link-active-bg);}
#calendar .btn {background-color: var(--primary);}
#calendar .btn:hover {background-color: var(--sc-primary);color:#fff;}

#wcCalendarInfoWindowModal .modal-content {border-radius: 0 !important;}
#wcCalendarInfoWindowModal div.modal-body .btn {background-color: #FFF; color: #000;}
#wcCalendarInfoWindowModal div.modal-body button[data-remove] {display: none;}
#wcCalendarInfoWindowModal div.modal-body button {padding: 5px;}
#wcCalendarInfoWindowModal div.modal-body .event-detail-date {color:var(--primary); font-size: 16px;}
#wcCalendarInfoWindowModal div.modal-body .event-detail-header {color:var(--primary); font-weight: bold; font-size: 20px; margin-bottom: 5px; text-shadow: 1px 0 0 #c5c4c7;}
#wcCalendarInfoWindowModal div.modal-body .event-detail-time {font-size: 16px; color: #8492A6; margin-left:20px;}
#wcCalendarInfoWindowModal div.modal-body .event-detail-category {font-size: 18px; line-height:18px;font-weight: bold;margin-bottom: 5px;padding:8px;border-radius: 5px; text-align:center; text-transform: uppercase;}
#wcCalendarInfoWindowModal div.modal-body p.event-detail-description {margin-bottom: 5px;}
#wcCalendarInfoWindowModal div.modal-body .event-detail-location { border-bottom: 1px solid var(--primary); margin-bottom: 0;margin-top:10px;}
#wcCalendarInfoWindowModal div.modal-body .cancelled {text-decoration: line-through;}
#wcCalendarInfoWindowModal div.modal-body .event-detail-cancellation-reason {font-size: 14px; color: #856404; background-color: #fff3cd; border: 1px solid #ffecb5; border-radius: 4px; padding: 4px 8px; margin-top: 8px;}

/* Cancelled appointment block in day/week view — visually consistent with the list component */
#calendar [data-appointment] small.text-decoration-line-through { opacity: 0.85; }

tr.arc > td {background-color: var(--primary);color:white;}

/* Calendar list component */
.team-page .calendar .calendar-day,
.calendar .calendar-day {border-left-width: 5px;border-left-style:dotted;display: flex;align-items: center;min-width: 60px;}
.calendar .calendar-day .date-dayOfWeek {margin-left:10px;display: inline-block;}
.calendar .calendar-day .date-day {font-size:1.75rem; width: 60px;display: inline-block;}
.calendar .calendar-month {min-width: 120px; padding: 0 10px;}
.calendar .calendar-info {padding: 0 8px;}
.calendar .cancelled-event {background-color: #fff8f8;}
.calendar .cancelled-event .date-day,
.calendar .cancelled-event .date-dayOfWeek {opacity: 0.5;}
.calendar .cancellation-reason {border-left: 3px solid #ffb822; font-size: 0.85rem;}

@media (max-width: 575.98px) {
    .calendar .calendar-month {min-width: unset; padding: 0 8px; font-size: 0.85rem;}
    .calendar .calendar-day .date-day {font-size: 1.3rem; width: 45px;}
}

/* ===== Stats Section ===== */
.home-stats-section {
    background-color: black;
    padding: 25px 0;
    margin-top: -60px;
    /*margin-bottom: 30px;*/
}
.home-stat {
    /*padding: 15px;*/
    border-right: 1px solid rgba(255,255,255,0.2);
}
.home-stat:last-child {
    border-right: none;
}
.home-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}
.home-stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 575.98px) {
    .home-stat-value { font-size: 1.8rem; }
    .home-stat-label { font-size: 0.8rem; }
}

/* ===== Header "Probeer gratis" CTA ===== */
.secondary-menu .nav-try-free {
    margin-left: 10px;
}
.secondary-menu .nav-try-free .btn {
    padding: 6px 16px;
    font-size: 13px;
    background-color: #fff;
    color: var(--primary);
    border: 2px solid #fff;
}
.secondary-menu .nav-try-free .btn:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: #fff;
}

/* ===== Game card improvements ===== */
.game-team-logo {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.game-team-logo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 50%;
    color: #aaa;
    font-size: 1.5rem;
}
.game-vs-badge {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.game-detail-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 4px;
}
.game-detail-icon {
    color: var(--primary);
    width: 14px;
    flex-shrink: 0;
}

/* ===== Next Match Section ===== */
.next-match-section {
    background-color: #111;
    padding-top: 100px;
    padding-bottom: 100px;
}
@media (max-width: 575.98px) {
    .next-match-section {
        padding-top: 45px;
        padding-bottom: 45px;
    }
}

.match-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.match-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
    flex-wrap: wrap;
}

.match-badge-category {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border: 1.5px solid #ccc;
    color: #444;
    border-radius: 3px;
    background: transparent;
    white-space: nowrap;
}

.match-date-label {
    font-size: 0.78rem;
    color: #888;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.match-card-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 24px 20px;
    gap: 8px;
}

.match-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    min-width: 0;
}

.match-team-logo {
    width: 70px;
    height: 70px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.match-team-logo-empty {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #ccc;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* Entente: multiple logos side by side with slight overlap */
.match-team-logos {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.match-team-logos .match-team-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 0 2px #fff;
}

.match-team-logos .match-team-logo + .match-team-logo {
    margin-left: -14px;
}

.match-team-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #011B17;
    line-height: 1.3;
    word-break: break-word;
}

.match-vs {
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.match-card-details {
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
}

.match-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.match-detail-label {
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    font-weight: 600;
}

.match-detail-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #011B17;
}

.match-card-cta {
    display: block;
    text-align: center;
    padding: 15px;
    margin-top: auto;
    background: transparent;
    border-top: 1px solid #f0f0f0;
    color: var(--primary) !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none !important;
    transition: all 0.2s linear;
}

.match-card-cta:hover {
    background-color: var(--primary);
    color: #fff !important;
}

/* ===== Teams split tabs ===== */
.feature-filters.style1 .nav-link {
    border: 2px solid #ddd;
    border-radius: 30px;
    padding: 8px 20px;
    color: #555;
    margin: 0 5px;
    font-weight: 600;
    transition: all 0.2s linear;
}
.feature-filters.style1 .nav-link.active,
.feature-filters.style1 .nav-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== Calendar Event List (CalendarByCategory component) ===== */
.calendar-event-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cal-event-row {
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
}
.cal-event-row.cancelled-event {
    opacity: 0.75;
}
.cal-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    min-width: 80px;
    flex-shrink: 0;
}
.cal-day {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.cal-month {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}
.cal-event-info {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
.cal-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border: 1.5px solid;
    border-radius: 3px;
    white-space: nowrap;
    margin-bottom: 4px;
}
.cal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #011B17;
    line-height: 1.3;
}
.cal-details {
    font-size: 0.82rem;
    color: #888;
}
.cal-cancellation {
    font-size: 0.8rem;
    color: #856404;
    margin-top: 2px;
}
#calEventInfoModal .modal-content {
    border-radius: 6px;
    overflow: hidden;
}
.cal-more-info-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 6px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
    background: transparent;
    border: 1.5px solid var(--primary);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s linear;
}
.cal-more-info-btn:hover {
    background: var(--primary);
    color: #fff;
}
@media (max-width: 575.98px) {
    .cal-date-block {
        padding: 12px 14px;
        min-width: 64px;
    }
    .cal-day { font-size: 1.6rem; }
}

/* ===== Calendar month view: hide scrollbars in cells ===== */
/* Cell height growth is handled by JS (fixMonthCellHeights in Kalender.cshtml)
   so we don't touch overflow or height here — that breaks bsCalendar's square-cell
   layout because height=outerWidth feeds into the flex min-content-width. */
#calendar .wc-calendar-content [data-month-date] > .d-flex.flex-column {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
#calendar .wc-calendar-content [data-month-date] > .d-flex.flex-column::-webkit-scrollbar {
    display: none !important;
}

/* ===== Calendar popup ===== */
.modal-appointment-content {
    overflow: hidden !important;
}
.cal-popup-wrap {
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
}
.cal-popup-datecol {
    min-width: 72px;
    flex-shrink: 0;
}
.cal-popup-info {
    padding: 14px 16px;
    flex: 1;
    min-width: 0;
}
.cal-popup-time {
    font-size: 0.82rem;
    color: #555;
}
.cal-popup-desc {
    font-size: 0.85rem;
    color: #505050;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

/* ===== Try CTA Block ===== */
.try-cta-block {
    background-color: #111;
    padding: 90px 0;
}
.try-cta-badge {
    display: inline-block;
    background-color: #EFBB20;
    color: #111;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 3px;
    margin-bottom: 20px;
}
.try-cta-headline {
    display: flex;
    flex-direction: column;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 24px;
}
.try-cta-line-white  { color: #fff; }
.try-cta-line-accent { color: #EFBB20; }
.try-cta-intro {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.try-cta-intro p { margin-bottom: 0; }
.try-cta-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.try-cta-features li {
    position: relative;
    padding-left: 24px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.try-cta-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}
.try-cta-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background-color: #EFBB20;
    color: #111 !important;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none !important;
    border-radius: 3px;
    transition: background-color 0.2s linear;
    margin-bottom: 20px;
}
.try-cta-btn:hover {
    background-color: #fff;
    color: #111 !important;
}
.try-cta-footer {
    color: rgba(255,255,255,0.4);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 0;
}
@media (max-width: 767.98px) {
    .try-cta-block { padding: 60px 0; }
    .try-cta-headline { font-size: 2.1rem; }
}

/* ===== Team Cards (Onze Teams section) ===== */
.team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09);
    display: flex;
    flex-direction: column;
}
.team-card-photo {
    display: block;
    overflow: hidden;
}
.team-card-photo img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.team-card:hover .team-card-photo img {
    transform: scale(1.04);
}
.team-card-photo-placeholder {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 3rem;
}
.team-card-body {
    padding: 24px 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}
.team-card-name {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #011B17;
    margin-bottom: 14px;
}
.team-card-desc {
    font-size: 0.88rem;
    color: #505050;
    line-height: 1.65;
    margin-bottom: 22px;
    flex: 1;
}
.team-card-desc p { margin-bottom: 0; }
.team-card-btn {
    display: inline-block;
    padding: 9px 28px;
    border: 2px solid #011B17;
    border-radius: 100px;
    color: #011B17;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.2s linear;
    margin-top: auto;
    white-space: nowrap;
}
.team-card-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}


/* ── Site Search Results ─────────────────────────────────────────────────── */

/* When results are present: shift the form to the top of the overlay */
.nav-search-bar.has-results form {
    top: 30px;
    transform: none;
    -webkit-transform: none;
    -moz-transform: none;
    opacity: 1;
}

/* Results container: scrollable area below the search form */
.search-results-container {
    display: none;
    position: absolute;
    top: 130px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 0 15px 40px;
}

.nav-search-bar.has-results .search-results-container {
    display: block;
}

/* Group: one category section */
.search-result-group {
    max-width: 800px;
    margin: 20px auto 0;
}

.search-result-group-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

/* Result list */
.search-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-result-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.search-result-item a {
    display: block;
    padding: 10px 6px;
    text-decoration: none;
    color: #011B17;
    transition: background 0.2s ease;
}

.search-result-item a:hover {
    background: rgba(184,16,42,0.06);
    color: var(--primary);
}

.search-result-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.search-result-snippet {
    font-size: 14px;
    color: #505050;
    margin: 3px 0 0;
    line-height: 1.5;
}

/* Highlight matched term */
.search-result-snippet mark,
.search-result-title mark {
    background: rgba(184,16,42,0.15);
    color: var(--primary);
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}

/* Content-type label (e.g. "Nieuws") shown before result title */
.search-result-label {
    display: inline-block;
    margin-right: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--primary);
    color: #fff;
    border-radius: 3px;
    vertical-align: middle;
}

/* Status messages */
.search-no-results,
.search-loading,
.search-error {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0;
    font-size: 16px;
    color: #505050;
}

.search-error { color: #FF4045; }

/* ===== Table Block ===== */
.arc-table-block {
    padding-top: 30px;
    padding-bottom: 30px;
}

.arc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    color: #505050;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: none;
}

.arc-table thead tr {
    background-color: var(--primary);
    color: #fff;
}

.arc-table thead th {
    padding: 13px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    white-space: nowrap;
}

.arc-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s;
}

.arc-table tbody tr:last-child {
    border-bottom: none;
}

.arc-table tbody tr:hover {
    background-color: rgba(184,16,42,0.04);
}

.arc-table tbody td,
.arc-table tbody th[scope="row"] {
    padding: 12px 18px;
    vertical-align: middle;
    border: none;
}

.arc-table tbody th[scope="row"] {
    font-weight: 700;
    color: #011B17;
    background-color: #f8f8f8;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .arc-table thead th,
    .arc-table tbody td,
    .arc-table tbody th[scope="row"] {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* ===== Page Content Card ===== */
.arc-content-card {
    max-width: 1170px;
    margin: 0 auto 40px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 24px 0 rgba(0, 10, 105, 0.07);
    overflow: hidden;
}

@media (max-width: 1199.98px) {
    .arc-content-card {
        margin-left: 15px;
        margin-right: 15px;
    }
}

.arc-content-card .umb-block-grid__layout-item {
    margin-bottom: 0 !important;
}

.arc-richtext-block {
    padding: 20px 0;
}
/* ===== Table alignment ===== */
.arc-table-align-center .heading-bx { text-align: center; }
.arc-table-align-right .heading-bx  { text-align: right; }

.arc-table-align-center .arc-table { margin: 0 auto; width: auto; }
.arc-table-align-right  .arc-table { margin-left: auto; margin-right: 0; width: auto; }

.search-error { color: #FF4045; }

/* Make the timeline center line visible (style.css defaults to white) */
.timeline-view:after {
    background-color: #d0d7de;
}

/* ===== Timeline: extend single-column layout to md breakpoint ===== */
/* style.css only applies the single-column rules at max-width:600px,
   leaving a broken 50/50 layout between 601px and 767px where h3 is still 35px. */
@media screen and (min-width: 601px) and (max-width: 767px) {
    .timeline-view:after { left: 31px; }
    .timeline-area { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-area:before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    .timeline-view .left:after,
    .timeline-view .right:after { left: 15px; }
    .timeline-view .right { left: 0; }
}

/* ===== History Timeline Interactive ===== */
.history-timeline-item {
    cursor: pointer;
}
.history-timeline-item .timeline-content {
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.history-timeline-item:hover .timeline-content,
.history-timeline-item.active .timeline-content {
    background-color: var(--primary);
    box-shadow: 0 10px 40px 0 rgba(184, 16, 42, 0.25);
}
.history-timeline-item:hover .timeline-content h3,
.history-timeline-item:hover .timeline-content p,
.history-timeline-item.active .timeline-content h3,
.history-timeline-item.active .timeline-content p {
    color: #fff;
}
.history-timeline-item:hover .timeline-content h6,
.history-timeline-item.active .timeline-content h6 {
    color: #000 !important;
}
.history-timeline-item.active::after {
    background-color: var(--primary);
}
@keyframes historyFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.history-section-visible {
    animation: historyFadeIn 0.4s ease both;
}

/* ===== History Detail Card ===== */
.history-detail-card {
    background: #f4f7fa;
    border-radius: 8px;
    border-top: 4px solid var(--primary);
    margin: 50px 30px 40px;
    overflow: hidden;
}
.history-detail-card .arc-richtext-block {
    padding: 30px 40px 10px;
}
.history-detail-card > .umb-block-grid__layout-item:last-child .arc-richtext-block {
    padding-bottom: 30px;
}
@media (max-width: 767.98px) {
    .history-detail-card {
        margin-left: 10px;
        margin-right: 10px;
    }
    .history-detail-card .arc-richtext-block {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===== Call To Action Block ===== */
.arc-cta-block {
    position: relative;
    margin-bottom: 30px;
}
.arc-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(184, 16, 42, 0.82);
}
.arc-cta-overlay-solid {
    background: rgba(184, 16, 42, 1);
}
.arc-cta-inner {
    position: relative;
    z-index: 1;
    padding-top: 50px;
    padding-bottom: 50px;
}
.arc-cta-card {
    border: none;
    border-radius: 12px;
    padding: 10px 6px;
    width: 100%;
}
.arc-cta-card .card-title {
    font-size: 26px;
    font-weight: 700;
    color: #011B17;
    margin-bottom: 10px;
}
.arc-cta-card .card-text {
    color: #505050;
    margin-bottom: 0;
}
.arc-cta-img-wrap {
    position: absolute;
    right: 8%;
    top: 20px;
    bottom: 20px;
    display: flex;
    align-items: flex-end;
    z-index: 2;
    pointer-events: none;
}
.arc-cta-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

/* ===== FAQ Accordion Redesign ===== */
.arc-faq-block {
    padding: 60px 0 70px;
}

/* Sticky title column */
.arc-faq-title-wrap {
    position: sticky;
    top: 100px;
    padding: 10px 30px 10px 10px;
}
.arc-faq-title-wrap::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 18px;
}

/* Give accordion column a little right breathing room for card shadows */
.faq-bx {
    padding-right: 8px;
}

/* Accordion items as individual cards */
.faq-bx.accordion-flush .accordion-item.arc-faq-item {
    border: 1px solid #edf0f4;
    border-radius: 10px !important;
    margin-bottom: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.faq-bx.accordion-flush .accordion-item.arc-faq-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border-color: #d8dce3;
}
.faq-bx.accordion-flush .accordion-item.arc-faq-item:has(.accordion-button:not(.collapsed)) {
    border-color: rgba(184, 16, 42, 0.28);
    box-shadow: 0 6px 28px rgba(184, 16, 42, 0.08);
}

/* Button: override Bootstrap and the generic line-48 rule */
.faq-bx .accordion-button {
    padding: 18px 20px;
    gap: 14px;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #011B17;
    background: #fff;
    box-shadow: none !important;
    border-radius: 10px !important;
    transition: background 0.25s ease, color 0.25s ease;
}
.faq-bx .accordion-button:not(.collapsed) {
    background-color: #fff9f9 !important;
    color: var(--primary);
    box-shadow: none !important;
    border-radius: 10px 10px 0 0 !important;
}

/* Number badge */
.arc-faq-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(184, 16, 42, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease;
}
.faq-bx .accordion-button:not(.collapsed) .arc-faq-num {
    background: var(--primary);
    color: #fff;
}

/* Custom toggle: + when closed, − when open */
.faq-bx .accordion-button::after {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-left: auto;
    border-radius: 50%;
    border: 2px solid rgba(184, 16, 42, 0.22);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23b8102a' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    transform: none !important;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}
.faq-bx .accordion-button:not(.collapsed)::after {
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8h9' stroke='%23b8102a' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E");
    background-color: rgba(184, 16, 42, 0.06);
}

/* Body: align text under the question text (past the number badge) */
.faq-bx .accordion-body {
    padding: 4px 20px 24px 68px;
    color: #505050;
    font-size: 15px;
    line-height: 1.8;
    background: #fff9f9;
}
.faq-bx .accordion-body p:last-child {
    margin-bottom: 0;
}

/* ===== Social buttons (footer + contact page) ===== */
.ft-social-bx .btn {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.ft-social-bx .btn:hover,
.ft-social-bx .btn:focus {
    background-color: var(--sc-primary);
    border-color: var(--sc-primary);
    color: #fff;
}

/* ===== Contact Page ===== */
.contact-info-panels {
    position: relative;
    z-index: 10;
    margin-top: -120px;
    padding-bottom: 50px;
    background: linear-gradient(to bottom, transparent 120px, #e0e9e7 120px);
}
.contact-info-box {
    position: relative;
    z-index: 20;
    padding: 36px 24px;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.contact-info-box h5 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #011B17;
}
.contact-info-box p,
.contact-info-box a {
    font-size: 0.95rem;
    color: #505050;
}
.contact-info-box a:hover { color: var(--primary); }
.contact-map iframe {
    display: block;
    width: 100%;
}
.contact-complex-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-radius: 4px;
}
@media (max-width: 767.98px) {
    .contact-info-panels { margin-top: -30px; }
}
