/* .events-nearest .events-calendar {
    top: 10px;
    bottom: unset;
}

.events-nearest h3 {
    padding-right: 115px;
}

.events-nearest .more {
    color: #3763b9;
}

h2 {
    font-weight: bold;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 1.4em;

  color: #3763b9;
} */



:root {
    --primary-crimson: #59000B;
    --primary-crimson-dark: #3d0007;
    --primary-crimson-light: #7a0a18;
    --accent-blue: #3763b9;
    --accent-blue-dark: #284b91;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
}

body {
    /* font-family: 'Inter', sans-serif; */
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

.min-vh-75 {
    min-height: 75vh;
}

header .site-name {
    color: white;
}

header .b-logo a img {

    padding: 5px;

}

.home .hero-section {
    font-size: 1.25rem;
    font-weight: 300;


}


.hero-section .lead {
    text-align: center;

}

.hero-section .lead * {
    color: #ffffff;
}

/* h1,
h2,
h3,
h4,
.serif-font {
    font-family: 'Playfair Display', serif;
} */

/* Navbar Styling */
.navbar-custom {
    background-color: var(--primary-crimson);
    box-shadow: 0 4px 12px rgba(89, 0, 11, 0.25);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.navbar-custom .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.45rem;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-item.active .nav-link {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Custom Buttons */
.btn.btn-crimson {
    background-color: var(--primary-crimson);
    border-color: var(--primary-crimson);
    color: #ffffff;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn.btn-crimson:hover {
    background-color: var(--primary-crimson-dark);
    border-color: var(--primary-crimson-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(89, 0, 11, 0.25);
}

.btn.btn-royal {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn.btn-royal:hover {
    background-color: var(--accent-blue-dark);
    border-color: var(--accent-blue-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(55, 99, 185, 0.25);
}

.btn.btn-outline-royal {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    font-weight: 500;
    border-radius: 6px;
}

.btn.btn-outline-royal:hover {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.btn.btn-add-event {
    background-color: #ffffff;
    color: var(--primary-crimson);
    font-weight: 600;
    border-radius: 6px;
    padding: 0.45rem 1.1rem;
    transition: all 0.2s ease;
}

.btn.btn-add-event:hover {
    background-color: #f1f3f5;
    color: var(--primary-crimson-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(89, 0, 11, 0.92) 0%, rgba(45, 12, 24, 0.88) 55%, rgba(55, 99, 185, 0.85) 100%),
        url('mb-header.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 4.5rem 0 5.5rem 0;
    position: relative;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Filter Card overlapping Hero */
.search-filter-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    margin-top: -3.2rem;
    position: relative;
    z-index: 10;
    border-top: 4px solid var(--accent-blue);
}

/* Section Headings */
.section-title {
    color: var(--primary-crimson);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.6rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 65px;
    height: 3px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

/* Event Cards */
.event-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(89, 0, 11, 0.14);
}

.event-img-wrapper {
    position: relative;
    height: 100%;
    min-height: 230px;
    overflow: hidden;
    background-color: #e9ecef;
    cursor: pointer;
}

.event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-img-wrapper img {
    transform: scale(1.05);
}

.events-nearest .events-calendar {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-crimson);
    color: #ffffff;
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 64px;
    bottom: unset;
    right: unset;
}


.events-nearest .events-calendar-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
    /* font-family: 'Playfair Display', serif; */
    background: unset;
    color: white;
    padding: 0;
}

.events-nearest .events-calendar-month {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.95;
    background: unset;
    color: white;
    padding: 0;
}

/* Category Badge */
.badge-category {
    background-color: rgba(55, 99, 185, 0.12);
    color: var(--accent-blue);
    font-weight: 600;
    padding: 0.4em 0.75em;
    border-radius: 6px;
    font-size: 0.78rem;
}

.event-title {
    color: var(--primary-crimson);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.65rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.event-title:hover {
    color: var(--accent-blue);
}

.event-date-line {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.45rem;
}

.event-lead {
    color: #495057;
    font-size: 0.96rem;
    line-height: 1.6;
}

/* Single Event Subpage Styling */
.single-event-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.detail-info-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-crimson);
}

.detail-map-box {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent-blue);
}

.program-timeline {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.program-timeline li {
    position: relative;
    padding-left: 1.75rem;
    padding-bottom: 1rem;
    border-left: 2px solid rgba(55, 99, 185, 0.25);
}

.program-timeline li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.program-timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-crimson);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px var(--primary-crimson);
}

.breadcrumb-custom {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.breadcrumb-custom a {
    color: var(--accent-blue);
    font-weight: 500;
}

/* Quick Category Pills */
.filter-pill {
    cursor: pointer;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #495057;
    transition: all 0.2s ease;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    display: inline-block;
}

.filter-pill:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.filter-pill.active {
    background-color: var(--primary-crimson);
    border-color: var(--primary-crimson);
    color: #ffffff;
}

/* Modal Styling */
.modal-header-crimson {
    background-color: var(--primary-crimson);
    color: #ffffff;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-header-crimson .close {
    color: #ffffff;
    opacity: 0.85;
}

/* Toast Notification */
.custom-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
    background-color: var(--primary-crimson);
    color: #fff;
    padding: 1rem 1.4rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--accent-blue);
    display: none;
}

/* Footer */
.footer-custom {
    background-color: #2b0409;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    border-top: 5px solid var(--accent-blue);
}

.footer-custom h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-custom a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-custom a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.88rem;
}

/* DataTables Custom Styling */
/* DataTables Custom Styling (#59000B & #3763b9) */
.calendarium-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--primary-crimson);
    padding: 1.75rem;
}

.spiritual-assumptions-box {
            background: linear-gradient(135deg, rgba(89, 0, 11, 0.03) 0%, rgba(55, 99, 185, 0.05) 100%);
            border: 1px solid #e3e8f0;
            border-left: 5px solid var(--accent-blue);
            border-radius: 10px;
            padding: 1.35rem 1.5rem;
            margin-bottom: 1.5rem;
        }

        .spiritual-assumptions-title {
            color: var(--primary-crimson);
            font-weight: 700;
            font-size: 1.15rem;
            margin-bottom: 0.85rem;
        }

        .spiritual-assumptions-list {
            padding-left: 1.25rem;
            margin-bottom: 0;
            color: var(--text-dark);
        }

        .spiritual-assumptions-list li {
            margin-bottom: 0.5rem;
            line-height: 1.6;
        }

        .spiritual-assumptions-list li:last-child {
            margin-bottom: 0;
        }
        
#eventsCalendarTable thead th {
    background-color: var(--primary-crimson);
    color: #ffffff;
    border-color: var(--primary-crimson);
    /* font-family: 'Playfair Display', serif; */
    font-weight: 600;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

#eventsCalendarTable tbody tr {
    transition: background-color 0.15s ease;
}

#eventsCalendarTable tbody tr:hover {
    background-color: rgba(55, 99, 185, 0.05);
}

.dt-event-link {
    color: var(--primary-crimson);
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dt-event-link:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.dataTables_wrapper .page-item.active .page-link {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

.dataTables_wrapper .page-link {
    color: var(--primary-crimson);
}

.dataTables_wrapper .page-link:hover {
    color: var(--accent-blue);
    background-color: #f1f3f5;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(55, 99, 185, 0.2);
}

@media (max-width: 767.98px) {
    .event-img-wrapper {
        height: 210px;
        min-height: 210px;
    }

    .single-event-hero-img {
        height: 250px;
    }
}