body::before {
    content: "EXERCISE";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);

    font-size: 20vw;
    font-weight: bold;
    color: rgba(255, 0, 0, 0.08);

    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}


/* =========================================================
   HEADER – secondary navbar
   ========================================================= */
.nav-bar-secondary {
    background-color: #757575;
}

/* Bootstrap navbar CSS variables for dark-ish background */
.nav-bar-secondary.navbar {
    --bs-navbar-color: #fff;
    --bs-navbar-hover-color: #f2f2f2;
    --bs-navbar-toggler-border-color: rgba(255,255,255,.6);
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Base nav alignment + link style */
.nav-bar-secondary .nav-link {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-weight: 700;
}

/* Default border (desktop overridden to full-height behavior) */
.nav-bar-secondary .nav-link {
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}
.nav-bar-secondary .nav-item:last-child .nav-link {
    border-right: none;
}

/* Mobile adjustments (stacked) */
@media (max-width: 991.98px) {
    .nav-bar-secondary .navbar-nav .nav-link {
        padding-top: .75rem;
        padding-bottom: .75rem;
        border-right: none;
    }
}

/* Desktop: fixed navbar height + stretch children */
@media (min-width: 992px) {
    .nav-bar-secondary {
        height: 62px;
    }

    .nav-bar-secondary > .container-lg,
    .nav-bar-secondary .navbar-collapse,
    .nav-bar-secondary .navbar-nav,
    .nav-bar-secondary .nav-item,
    .nav-bar-secondary .nav-link,
    .nav-bar-secondary .nav-extras {
        height: 100%;
    }
}

/* =========================================================
   INDEX PAGE – content boxes
   ========================================================= */
.content-box {
    background-color: #137faa;
    color: #ffffff;
    padding: 1.5rem;
    width: 100%;
    text-align: center;
}

.content-box p {
    font-weight: 600;
}

.text-link {
    color: #00ccff;
}

/* =========================================================
   INDEX PAGE – carousel
   ========================================================= */
.carousel-section,
.carousel-section .carousel-inner,
.carousel-section .carousel-item {
    background-color: #137faa;
}

/* Image base */
#homeCarousel .carousel-image {
    position: relative;
    overflow: hidden;
}
#homeCarousel .carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.25) brightness(1.05) saturate(0.9);
}

#homeCarousel .carousel-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(15, 126, 163, 0.38); /* your brand blue */
    pointer-events: none;
}

/* Text */
.carousel-text {
    max-width: 540px;
}

/* Indicators below */
.carousel-indicators-below {
    position: static;
    justify-content: center;
    margin-top: 1rem;
}
.carousel-indicators-below [data-bs-target] {
    background-color: #000;
    opacity: 0.4;
}
.carousel-indicators-below .active {
    opacity: 1;
}

/* Reset height constraints */
#homeCarousel .carousel-item {
    max-height: none;
    overflow: visible;
}

/* Carousel breakpoint heights */
@media (max-width: 991.98px) {
    #homeCarousel .carousel-item {
        height: 405px;
        overflow: hidden;
    }

    #homeCarousel .carousel-slide-inner,
    #homeCarousel .carousel-slide-inner .row {
        height: 100%;
    }

    #homeCarousel .carousel-image {
        height: 405px;
    }

    #homeCarousel .carousel-text {
        max-height: 405px;
        overflow: hidden;
    }
}

@media (min-width: 992px) {
    #homeCarousel .carousel-item {
        height: 215px;
        overflow: hidden;
    }

    #homeCarousel .carousel-slide-inner,
    #homeCarousel .carousel-slide-inner .row {
        height: 100%;
    }

    #homeCarousel .carousel-image {
        height: 215px;
    }

    #homeCarousel .carousel-text {
        max-height: 215px;
        overflow: hidden;
    }
}

/* =========================================================
   SECTION SHELL – left nav + right content
   ========================================================= */
.section-nav .list-group-item {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.25rem 1.5rem;
    letter-spacing: 0.02em;
    display: flex;              /* ensures icon/text spacing behaves */
    align-items: center;
    gap: 1rem;                  /* spacing between icon and text */
}

/* Big icons */
.section-nav img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-right: 1rem;
}

.section-content h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #0F7EA3;
}

.sidebar-latest-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.sidebar-latest-title {
    color: #0E7395;
    text-decoration: underline;
    font-weight: 700;
}

.sidebar-latest-summary {
    color: #212529;
    margin-bottom: 1rem;
}

.sidebar-latest-date {
    color: #6c757d;
    font-size: 0.95rem;
}

.grayscale-hover {
    filter: grayscale(100%);
    transition: filter 0.45s ease;
}

.sidebar-latest-card:hover .grayscale-hover {
    filter: grayscale(0%);
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: #000;
}

.sidebar-section-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.sidebar-section-title{
    font-size: 2rem;
}

/* =========================================================
   ARTICLE LIST (right column list pages)
   ========================================================= */

/* Remove separators between items (scoped) */
.section-content .list-group.list-group-flush .list-group-item {
    border: 0;
}

/* Date (left) */
.article-date {
    color: #6c757d;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Title link */
.article-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: underline;
    line-height: 1.4;
    color: #0E7395;
}

/* =========================================================
   ARTICLE SINGLE (right column single pages)
   ========================================================= */
.article-date-single {
    display: block;
    color: #6c757d;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumb-nav {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: inline-flex;
}

.breadcrumb-sep,
.breadcrumb-current {
    color: #6c757d;
}

.breadcrumb-current {
    font-weight: 600;
}

.breadcrumb-link {
    text-decoration: underline;
}

/* Breadcrumb links should be black by default */
.breadcrumb-nav a {
    color: #000;
}

/* =========================================================
   PAGINATION
   ========================================================= */

/* Pagination wrapper spacing */
.section-content .pagination {
  gap: 0.5rem;          /* space between items */
}

/* Page links – base */
.section-content .page-link {
  color: #0D7FA5;
  border-color: #0D7FA5;
  border-radius: 6px;   /* optional: softer look */
}

/* Hover state */
.section-content .page-link:hover {
  color: #fff;
  background-color: #0D7FA5;
  border-color: #0D7FA5;
}

/* Active page */
.section-content .page-item.active .page-link {
  background-color: #0D7FA5;
  border-color: #0D7FA5;
  color: #fff;
}

/* Disabled (if you add prev/next later) */
.section-content .page-item.disabled .page-link {
  color: #adb5bd;
  border-color: #dee2e6;
}

/* =========================================================
   RIGHT PANEL – markdown content styling
   ========================================================= */

/* Remove default bullets */
.section-article-content ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* List item spacing */
.section-article-content li {
    position: relative;
    padding-left: 2rem;     /* space for custom bullet */
    margin-bottom: 0.75rem;
}

/* Custom image bullet */
.section-article-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;            /* aligns with first text line */
    width: .75rem;
    height: .75em;

    background-image: url("/img/arrow.png");
    background-repeat: no-repeat;
    background-size: contain;
}

.section-article-content p{
    line-height: 1.7;
    font-size: 18px;
    text-align: justify;
}

.section-article-content a,
.in-text-link {
    color: #0E7395;
    text-decoration: underline;
}

.section-article-content img {
    display: block;
    margin: 1.5rem auto;
}


/* =========================================================
   CONTACTS
   ========================================================= */
.section-contacts .contacts-map iframe {
    width: 100%;
    height: 100%;
}

.section-contacts .contacts-table tbody tr:nth-child(odd) td {
    background-color: #f2f2f2;
}

.section-contacts .contacts-table td {
    border: none;
    padding: 1rem;
}

.section-article-content h3{
    color: #0F7EA3;
}

/* =========================================================
   BOARD – table
   ========================================================= */
.section-board .board-table tbody tr:nth-child(odd) td {
    background-color: #f2f2f2;
}

.section-board .board-table th,
.section-board .board-table td {
    border: none;
    padding: 1rem;
}

.section-board .board-table thead th {
    font-weight: 700;
    color: #0F7EA3;
}


/* =========================================================
   FOOTER
   ========================================================= */
.footer-main {
    background-color: #f2f2f2;
}

.footer-main a {
  color: #0E7395;
  text-decoration: underline;
}

.footer-card {
    background-color: #e4e4e4;
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
}

.footer-card h5 {
    font-weight: 700;
    margin-bottom: .75rem;
}

.footer-card ul {
    padding-left: 1rem;
    margin-bottom: 0;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    width: 100%;
    justify-content: flex-end;
    padding-right: 2rem;
}

.footer-links a {
    color: #000;
    text-decoration: underline;
}

.footer-links a:hover {
    text-decoration-thickness: 2px;
}

.footer-icons {
    display: flex;
    gap: .5rem;
}

.footer-icons img {
    height: 37px;
    width: auto;
    display: block;
}

.footer-icons a {
    display: inline-flex;
    align-items: center;
}
