html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .main-content {
    flex: 1;
  }

.inline-hide-desktop {
    display: none;
}

.text-sans-serif {
    font-family: sans-serif;
}

.text-crimson {
    font-family: "Crimson Text", serif;
    letter-spacing: -1px;
    /* font-size: 24px; */
}

.text-lg {
    font-size: 1.25rem; /* 20px */
    line-height: 1.75rem; /* 28px */
}

header {
    background-color: #052962;
    color: white;
    padding-top: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #242788;
    padding-left: 10%;
    padding-right: 10%;
}

/* Avoid image dragging */

a, img {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -ms-user-drag: none;
    user-drag: none;
}

.navbar-title .main-logo {
    width: 282px;
    position: relative;
    top: 10px;
}

/* Navbar */
.navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 100;
    position: relative;
    padding: 0;
}

.navbar-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.navbar-brand {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    bottom: 75px;
    margin-top: 25px;
}

.navbar-logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffc107;
    text-decoration: none;
}

.navbar-nav {
    list-style: none;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.navbar-nav li {
    margin-right: 20px;
}

.navbar-nav a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.navbar-nav a:hover,
.navbar-nav .active a {
    border-top: 2px solid #ffc107;
}

.navbar-title {
    flex-shrink: 0;
    text-align: right;
    padding-right: 50px;
    /* position: relative; */
}

.navbar-search {
    position: absolute;
    top: -5px;
    left: 98px;
}

/* .navbar-search {
    position: relative;
} */

/* .search-form {
    display: flex;
    align-items: center;
} */

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 24px;
    color: white;
}

.search-input {
    width: 0;
    opacity: 0;
    border: none;
    border-bottom: 2px solid #ccc;
    transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    border-radius: 15px;
}

/* .search-input:focus {
    outline: none;
    border-bottom: 2px solid #000;
} */

/* .navbar-search.open .search-input {
    width: 200px;
    padding: 5px;
    opacity: 1;
    padding-left: 12px;
} */

.submit-button {
    display: none;
}

.navbar-search.open .submit-button {
    display: none;
}


.navbar-title img {
    max-width: 60%;
}

.navbar-icon {
    color: white;
    font-size: 30px;
    margin-right: 15px;
}

.main-content { 
    padding-left: 0;
    padding-right: 0;
    padding-top: 30px;
}

@media (min-width: 860px) {
    .main-content {
        padding-left: 0;
        padding-right: 0;
    }
}

.content article {
    text-align: center;
}

.content {
    width: 100%;
    display: inline-block;
}

.ad-column {
    width: 39%;
    display: inline-block;
    vertical-align: top;
    padding-top: 50px;
}

.ad-column .ad-container {
    margin: 50px 0;
    text-align: right;
}

.custom-content img {
    width: 100%;
    height: auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

.force-color-red {
    border-color: red !important;
}

.navbar-nav li.active a:hover.force-color-red {
    border-color: #ff6666 !important;
}

.force-color-orange {
    border-color: rgb(196, 127, 0) !important;
}

.navbar-nav li.active a:hover.force-color-orange {
    border-color: #edbc51 !important;
}

.force-color-yellow {
    border-color: #ffc107 !important;
}

.navbar-nav li.active a:hover.force-color-yellow {
    border-color: #ffe127 !important;
}

.force-color-green {
    border-color: green !important;
}

.navbar-nav li.active a:hover.force-color-green {
    border-color: #59b74a !important;
}

.force-color-lightblue {
    border-color: lightblue !important;
}

.navbar-nav li.active a:hover.force-color-lightblue {
    border-color: #d9e8ed !important;
}

.force-color-violet {
    border-color: darkviolet !important;
}

.navbar-nav li.active a:hover.force-color-violet {
    border-color: #ac5acf !important;
}

.navbar-nav li a {
    padding-left: 5px;
    padding-right: 5px;
}

.custom-content section.block-text_block:first-child > div:first-child::first-letter {
    font-size: 5em;
    line-height: 1;
    color: #C70039;
}

/* .preview-container .read-more {
    position: absolute;
    text-align: center;
    margin: auto;
    width: 100%;
    bottom: 20px;
    color: white;
    transition: opacity 0.3s ease-in-out;
    padding: 10px 0;
    text-shadow: 2px 2px 12px darkorange;
    font-size: 2em;
    font-family: Arial;
} */


.custom-content-preview-block-grid {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.custom-content-preview-block-grid .preview-container {
    width: 24em;
    margin: 15px;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* .preview-container .read-more {
    display: none;
} */

/* .custom-content-preview-block .preview-container:hover h1,
.custom-content-preview-block .preview-container:hover .overlay
 {
    text-shadow: 1px 1px 1px darkblue;
} */

.preview-container img {
    object-fit: cover;
}

.custom-content-preview-block-grid .preview-container img {
    height: 250px;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}

.custom-content-preview-block .preview-container img {
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}

.custom-content-preview-block-grid .preview-container:hover img {
    transition: 0.3s;
    filter: brightness(0.7);
}


/* .custom-content-preview-block .preview-container .overlay {
    position: absolute;
    width: 100%;
    color: white;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    padding: 10px;
    text-shadow: 2px 2px 2px black;
    bottom: 0;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
    height: auto;
    max-height: 100%;
    overflow: hidden;
} */

.custom-content-preview-block-grid .preview-container .content-description {
    margin: 0 10px 10px 0px;
    font-size: 1.3em;
    color: #666;
    text-align: left;
}

.text-ellipsis {
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-content-preview-block-grid .preview-container h1 {
    margin: 10px 0 5px 0;
    font-size: 1.6em;
    text-decoration: none;
}

.title-align-left {
    text-align: left;
}

.title-align-right {
    text-align: right;
}

.title-align-center {
    text-align: center;
}

.title-align-justify {
    text-align: justify;
}

.block-text_block {
    line-height: 28px;
    font-size: 24px;
    text-align: justify;
    letter-spacing: -1px;
}

.text-preview {
    line-height: 28px;
    font-size: 24px;
    text-align: justify;
    letter-spacing: -1px;
}

.footer {
    position: relative;
    background-color: #052962;
    color: #ffc107;
    padding: 10px 0;
    margin-top: 100px;
    text-align: center;
}

.footer-title {
    display: inline-block;
    margin-right: 7px;
}

.social-icon {
    color: white;
    margin-left: 5px;
}

.footer a {
    text-decoration: none; 
}

.footer-mail {
    margin-left: 10px;
}

.cc-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.cc-info img {
    width: 10%;
}

.cc-details {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.cc-name {
    font-weight: bold;
    margin: 0;
}

.cc-role {
    font-size: 0.9em;
    color: gray;
    margin: 0;
}

.custom-content-preview-block .preview-container.specific-content {
    position: relative;
    overflow: hidden;
}

.custom-content-preview-block .preview-container.specific-content .image-container {
    width: 75%;
    margin: auto;
    position: relative;
}

.custom-content-preview-block .preview-container.specific-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* .custom-content-preview-block .preview-container.specific-content .content-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    text-align: center;
} */

.custom-content-preview-block .preview-container.specific-content h1 {
    font-size: 2.3em;
    margin: 0 0 5px;
    color: #C70039;
}

.custom-content-preview-block .preview-container.specific-content .content-description {
    font-size: 1.2em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
}

.custom-content-preview-block .preview-container.specific-content:hover {
    transition: 0.3s;
    filter: brightness(0.7);
}

.specific-content {
    max-width: 1100px;
    margin: auto;
}

#weather-container {
    position: relative;
    top: -38px;
    text-align: center;
    width: 300px;
    margin: 0;
    left: 0;
}

#weather-container .weather {
    width: 200px !important;
    color: rgb(134, 134, 134);
    background-color: transparent;
    border: 1px solid yellow !important;
    margin: 0px auto;
    font-family: Arial;
    border-radius: 43px;
}


.main-image-container img {
    max-width: 100%;
    height: auto;
}

.image-caption {
    font-size: 1rem;
    color: black;
    position: relative;
    bottom: 10px;
    text-align: left;
}

@media (min-width: 720px) and (max-width: 900px) {
    .main-content {
        padding-left: 15%;
        padding-right: 15%;
    }

    header {
        padding-left: 5%;
        padding-right: 5%;
    }

    .navbar-title {
        margin-left: -125px;
    }
}

@media screen and (max-width: 990px) {
    .footer div {
        flex-direction: column;
        align-items: center;
      }
      .footer img {
        margin: 10px 0;
      }
      .social-icons {
        flex-wrap: wrap;
      }
}


@media screen and (max-width: 720px) {
    .inline-hide-desktop {
        display: inline;
    }

    .main-content {
        padding-left: 5%;
        padding-right: 5%;
        padding-top: 20px;
    }

    .navbar-title {
        right: 15px;
        text-align: right;
        display: block;
        width: 130px;
        top: 20px;
        font-size: 25px;
        padding-right: 10px;
    }

    .navbar-title div {
        margin-right: 10px;
        font-size: 25px;
    }

    .navbar-nav li {
        margin-right: 10px;
        /* background-color: #052962;
        margin: 0;
        padding: 10px 0; */
    }

    .navbar-nav li a {
        padding-left: 0px;
        padding-right: 0px;
        /* color: #ffffff;
        display: block;
        padding: 10px 15px;
        text-decoration: none; */
    }

    .navbar-nav a {
        font-size: 13px;
    }	

    .navbar-nav {
        max-width: 100%;
    }

    .ad-column .ad-container {
        text-align: center;
    }

    .custom-content-preview-block .preview-container {
        width: 100% !important;
        max-width: 100%;
        margin: 30px 0;
    }

    .custom-content-preview-block .preview-container.specific-content .image-container {
        width: 100%;
    }

    .ad-column {
        width: 100% !important;
    }

    .content {
        width: 100% !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    article {
        text-align: justify;
    }

    .custom-content-preview-block {
        padding-right: 0px !important;
        font-size: 0.9em;
    }

    header {
        padding-left: 4%;
        padding-right: 4%;
    }

    .navbar-title .main-logo {
        width: 100%;
    }

    /* .preview-container .read-more {
        display: block !important;
    } */

    .preview-container .overlay {
        display: none;
    }

    .navbar-title img {
        max-width: 80%;
        margin-bottom: 10px;
    }
    
    .navbar-brand {
        bottom:25px;
        width: 100%;
    }

    .navbar-brand a {
        margin-right: -8px;
    }

    .navbar-icon {
        font-size: 26px;
    }

    .footer {
        position: static;
    }

    .footer-mail {
        left: 24px;
    }

    .custom-content-preview-block .preview-container.specific-content h1 {
        font-size: 1.6em;
    }

    .custom-content-preview-block .preview-container.specific-content .content-description {
        font-size: 1.3em;
    }

    #weather-container {
        width: 100%;
        left: -122px;
        top: -68px;
    }

    #weather-container div.weather {
        width: 142px !important;
        background-color: transparent;
        position: absolute;
        top: 15px;
        width: 20px;
        left: 100px;
        border: 0 solid;
        height: 47px;
        border: 0px solid transparent !important;
    }

    .weather iframe {
        width: 159px;
        color: rgb(134, 134, 134);
        height: 63px;
        background-color: transparent;
    }

    .weather .slink {
        display: none;
    }

    /* .search-button {
        position: relative;
        top: 76px;
        right: 100px;
    }

    .search-input {
        position: relative;
        top: 75px;
        right: 100px;
    } */
}


