html {
/*    border: 10px solid red;*/
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    margin-top: 20px;
}

.dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--danger-color);
    color: #fff;
    text-align: center;
    font-weight: bold;
    padding: 8px;
    z-index: 99999;
}

img {
    max-width: 100%;
    height: auto;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.media-image {
    max-width: 200px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.media-thumb {
    width: 100%;
    height: 180px;

    object-fit: cover;

    border-radius: 8px;
}

.image-box {
    margin-bottom: 20px;
}

.news-image {
    max-width: 100%;
    height: auto;
}

.cms-image {
    height: auto;
}

.cms-image-small {
    width: 25%;
}

.cms-image-medium {
    width: 50%;
}

.cms-image-large {
    width: 75%;
}

.cms-image-full {
    width: 100%;
}

.main-navbar {
	position: sticky;
	top: 0;
	z-index: 1050;
    background-color: var(--primary-color);
}

.main-navbar img {
	max-width: 350px;
}

.main-navbar .navbar-brand {
    color: var(--navbar-text);
    font-weight: bold;
}

.main-navbar .nav-link {
    color: var(--navbar-text);
    font-weight: 500;
}

.main-navbar .nav-link:hover {
    color: var(--navbar-hover);
}

.navbar-toggler {
    border-color: var(--navbar-text);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-custom {
    color: var(--navbar-text);
    font-size: 1.5rem;
    line-height: 1;
}

.hero {

    position: relative;

/*    background-size: cover;*/
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
}

.hero-overlay {

    width: 80%;
    height: 650px;

    display: flex;
    align-items: center;

    padding: 40px 0;

    background: rgba(0, 0, 0, .45);

    color: white;
}

.hero h1 {

    font-size: clamp(
        2rem,
        4vw,
        4rem
    );

    font-weight: 700;

    margin-bottom: 15px;

    text-shadow:
        0 2px 8px rgba(0,0,0,.4);
}

.hero p {

    max-width: 700px;

    font-size: 1.15rem;

    margin-bottom: 25px;

    text-shadow:
        0 2px 8px rgba(0,0,0,.4);
}

.hero .btn {

    padding: 12px 24px;

    font-size: 1rem;
}

#homepageHero,
#homepageHero .carousel-inner,
#homepageHero .carousel-item {

    height: 600px;
}

@media (max-width: 768px) {

    .hero-overlay,

    #homepageHero,
    #homepageHero .carousel-inner,
    #homepageHero .carousel-item {

        height: 450px;
    }

    .hero h1 {

        font-size: 2rem;
    }

    .hero p {

        font-size: 1rem;
    }

}
.page-content img {
    max-width: 100%;
    height: auto;
}

.main-navbar .dropdown-menu {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.sidebar-card {
    position: sticky;
    top: 90px;
}

.event-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.event-card {
    border-left: 4px solid var(--secondary-color);
    padding-left: 12px;

    display: flex;
    gap: 15px;

    margin-bottom: 15px;
    padding: 12px;

    border-radius: 10px;

    background: var(--background-color);

    transition: 0.2s;
}

.event-card:hover {
    background: var(--hover-background);
}

.event-date-box {
    min-width: 65px;
    text-align: center;

    background: var(--secondary-color);
    color: white;

    border-radius: 8px;
    padding: 6px;
}

.event-day {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-title {
    font-weight: 600;
}

.event-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;

    border: none;
    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 2px 12px rgba(0,0,0,.08);

    transition: .2s;

    background: var(--card-background);
}

.news-card .card-body {
    flex-grow: 1;
}

.news-card img {
    width: 100%;
    height: var(--news-image-height);

    object-fit: cover;
    object-position: center;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-teaser {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.dashboard-card {

    display: block;

    height: 100%;

    padding: 30px;

    text-align: center;

    background: var(--card-background);

    border-radius: 12px;

    box-shadow: 0 2px 12px rgba(0,0,0,.08);

    color: var(--text-color);

    transition: .2s;
}

.dashboard-card:hover {

    transform: translateY(-5px);

    background: var(--hover-background);

    box-shadow: 0 6px 20px rgba(0,0,0,.12);

    color: var(--text-color);
}

.dashboard-icon {

    font-size: 3rem;

    margin-bottom: 15px;
}

.dashboard-card h4 {

    margin-bottom: 10px;

    font-weight: 700;
}

.dashboard-card p {

    margin: 0;

    color: var(--text-muted);

    font-size: .9rem;
}

.dashboard-danger:hover {

    background: #ffe5e5;
}

@media (max-width: 768px) {

    .news-card img {
        height: 180px;
    }

}

.news-date {
    color: var(--text-muted);
    font-size: .85rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.news-teaser {
    color: var(--text-light);

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn-primary {
    background-color: var(--button-primary);
    border-color: var(--button-primary);
	color: var(--button-primary-text);
}

.btn-primary:hover {
    filter: brightness(.9);
	color: var(--button-primary-text);
}

.btn-secondary {
    background-color: var(--button-secondary);
    border-color: var(--button-secondary);
	color: var(--button-secondary-text);
}

.btn-secondary:hover {
    filter: brightness(.9);
	color: var(--button-secondary-text);
}

.btn-success {
    background-color: var(--button-success);
    border-color: var(--button-success);
	color: var(--button-success-text);
}


.btn-success:hover {
	filter: brightness(85%);
	color: var(--button-success-text);
}

.btn-danger {
    background-color: var(--button-danger);
    border-color: var(--button-danger);
	color: var(--button-danger-text);
}

.btn-danger:hover {
    filter: brightness(.9);
	color: var(--button-danger-text);
}

.hero {

    min-height: 650px;

    background-size: cover;
    background-position: center center;

    display: flex;
    align-items: center;
}

.hero-overlay {

    width: 100%;
    min-height: 650px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            rgba(0,0,0,.55),
            rgba(0,0,0,.35)
        );

    color: white;
}

.hero h1 {

    font-size: clamp(
        2.4rem,
        5vw,
        4.5rem
    );

    font-weight: 700;

    text-shadow:
        0 3px 10px rgba(0,0,0,.35);
}

.hero p {

    max-width: 650px;

    font-size: 1.3rem;
}

@media (max-width: 768px) {

    .hero {

        min-height: 350px;

    }

    .hero h1 {

        font-size: 2rem;

    }

    .hero p {

        font-size: 1rem;

    }
}