.topbar {
    background-color: #841500;
    padding: 5px 0;
}
ul.toplinks {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

ul.toplinks li {
    margin-right: 1rem;
    margin-bottom: 0;
}
ul.toplinks li:last-child {
    margin-right: 0;
}
@media (min-width: 30.0rem) {
    ul.toplinks li::after {
        content: "|";
        color: #fff;
        margin-left: 1rem;
    }

    ul.toplinks li:last-child::after {
        display: none;
    }
}

ul.toplinks a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul.toplinks a:hover {
    color: #e0e0e0;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}
.text-center {
    text-align: center;
}
.text-justify {
    text-align: justify;
}
.text-bold {
    font-weight: bold;
}
.menubar {
    max-height: 80px;
    padding: 10px 0;
}

.menubar img {
    max-height: 60px;
}
.breadcrumbs {
    background-color: #eee;
    padding: 10rem 0;
    text-align: center;
}
.main-content {
    margin: 5rem auto;
}
.footer {
    background-color: #350101;
    color: rgba(255, 255, 255, .7);
    padding: 5rem 0;
}
.footer a {
    color: rgba(255, 255, 255, .9);
}
.copyright {
    background-color: #400000;
    border-top: 1px solid rgba(255,255,255,.2);
    color: rgba(255, 255, 255, .7);
    padding: 1.5rem 0;
    font-size: 90%;
}
.menubar .row {
    flex-direction: row;
}
.width-10 {
    width: 10%;
}
.width-20 {
    width: 20%;
}
.width-30 {
    width: 30%;
}
.width-40 {
    width: 40%;
}
.width-50 {
    width: 50%;
}
.width-60 {
    width: 60%;
}
.width-70 {
    width: 70%;
}
.width-80 {
    width: 80%;
}
.width-90 {
    width: 90%;
}
.width-100 {
    width: 100%;
}
.display-block {
    display: block;
}
.display-inline-block {
    display: inline-block;
}
.mt-05 { margin-top: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }

.mb-05 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-5 { margin-bottom: 5rem; }

.ml-1 { margin-left: 1rem; }
.ml-2 { margin-left: 2rem; }
.ml-3 { margin-left: 3rem; }
.ml-4 { margin-left: 4rem; }
.ml-5 { margin-left: 5rem; }

.mr-1 { margin-right: 1rem; }
.mr-2 { margin-right: 2rem; }
.mr-3 { margin-right: 3rem; }
.mr-4 { margin-right: 4rem; }
.mr-5 { margin-right: 5rem; }

.mx-1 { margin-left: 1rem; margin-right: 1rem; }
.mx-2 { margin-left: 2rem; margin-right: 2rem; }
.mx-3 { margin-left: 3rem; margin-right: 3rem; }
.mx-4 { margin-left: 4rem; margin-right: 4rem; }
.mx-5 { margin-left: 5rem; margin-right: 5rem; }

.my-1 { margin-top: 1rem; margin-bottom: 1rem; }
.my-2 { margin-top: 2rem; margin-bottom: 2rem; }
.my-3 { margin-top: 3rem; margin-bottom: 3rem; }
.my-4 { margin-top: 4rem; margin-bottom: 4rem; }
.my-5 { margin-top: 5rem; margin-bottom: 5rem; }

.pt-05 { padding-top: 0.5rem; }
.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }
.pt-4 { padding-top: 4rem; }
.pt-5 { padding-top: 5rem; }

.pb-05 { padding-bottom: 0.5rem; }
.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }
.pb-4 { padding-bottom: 4rem; }
.pb-5 { padding-bottom: 5rem; }

.pl-1 { padding-left: 1rem; }
.pl-2 { padding-left: 2rem; }
.pl-3 { padding-left: 3rem; }
.pl-4 { padding-left: 4rem; }
.pl-5 { padding-left: 5rem; }

.pr-1 { padding-right: 1rem; }
.pr-2 { padding-right: 2rem; }
.pr-3 { padding-right: 3rem; }
.pr-4 { padding-right: 4rem; }
.pr-5 { padding-right: 5rem; }

.px-1 { padding-left: 1rem; padding-right: 1rem; }
.px-2 { padding-left: 2rem; padding-right: 2rem; }
.px-3 { padding-left: 3rem; padding-right: 3rem; }
.px-4 { padding-left: 4rem; padding-right: 4rem; }
.px-5 { padding-left: 5rem; padding-right: 5rem; }

.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }
.py-4 { padding-top: 4rem; padding-bottom: 4rem; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }
.footer-icon {
    opacity: 0.7;
}

.slider-wrapper {
    width: 100%;
    height: 30em;
    position: relative;
    overflow: hidden;
}
@media (max-width: 40.0rem) {
    .slider-wrapper {
        height: 10em;
    }
}
.slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 0.5em;
    cursor: pointer;
    z-index: 10;
}
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }
.widget {
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 15px 0 rgba(0,0,0,.1);
    border: 1px solid rgba(0,0,0,0.1);
}
.widget-title {
    background-color: #841500;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
}
.widget-body {
    background-color: #eee;
    padding: 10px;
}
.latest-links ul {
    list-style: none; /* remove default bullets */
    padding: 0;
    margin: 0;
}

.latest-links ul li {
    position: relative;
    padding: 0 0 0 20px;
    margin-bottom: 6px;
    margin-top: 6px;
    line-height: 1.3;
}

.latest-links ul li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #555;
    font-size: 1em;
    line-height: 1.5;
}
.latest-links ul li::after {
    content: "";
    position: relative;
    background-color: #ccc;
    height: 1px;
    width: 100%;
    display: block;
    margin: 5px 0;
}

.latest-links ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.latest-links ul li:last-child::after {
    display: none;
}

.icon-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.icon-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.icon-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #007BFF;
    flex-shrink: 0;
}

.icon-box-icon img {
    max-width: 120px;
    max-height: 80px;
    width: 100%;
}

.icon-box-title {
    font-weight: 600;
}
.box1 {
    background-color: #ebe9ff;
}
.box2 {
    background-color: #96d8ff;
}
.box3 {
    background-color: #fff2d8;
}
.box4 {
    background-color: #ffd9d9;
}
.bg-light {
    background-color: #eee;
}
.text-primary {
    color: #da251c;
}
.rounded-border {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 4px;
}
.resource-box {
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    margin-bottom: 2.5rem;
}
.resource-box:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}
.resource-title {
    text-align: center;
    color: #000;
    font-size: 22px;
    font-weight: bold;
    padding: 10px 0 15px;
}

.tc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tc-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    color: #333;
    transition: 0.3s ease;
}

.tc-box:hover {
    background-color: #eee;
}

.tc-box img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.tc-title {
    font-size: 14px;
    line-height: 1.2;
    word-wrap: break-word;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

#gallery-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#gallery-popup img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 15px black;
}

#popup-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 10000;
}

.tc-toggle {
    width: 35px;
    user-select: none;
    background-color: #841500;
    color: #fff;
    border-radius: 100%;
    display: inline-block;
    text-align: center;
}

.tcrow:not(:first-of-type) {
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.tc-grid.tc-hidden {
    display: none;
}

.tc-folder-header {
    cursor: pointer;
}
.mxh-img {
	max-height: 350px;
}