/******************* GENERAL *******************/
body {
    color: #333;
    background-color: #EEEEE4;
    font-family: "Noto Sans", "Source Han Sans", Arial, sans-serif;
}

a {
    color: #ce001d;
    text-decoration: underline;
}

a:hover, a:focus {
    color: #333;
    text-decoration: none;
    transition: color 0.4s ease, text-decoration 0.4s ease; /* Smooth animation */
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 1rem;
}

main {
  flex: 1; /* This pushes the footer down */
}

main.container {
    padding: 80px 0 0;
}

hr {
    border-color: #ccc;
}

input.text-input, select.text-input {
    padding: 0.2rem;
    height: 2.5rem;
}

.btn-auto {
  display: inline-block;   /* instead of block */
  width: auto;             /* shrink to fit content */
  max-width: none;         /* remove Pico's max-width constraint */
}

/******************* TOP MENU *******************/
.visually-hidden { /*To hide h1 text around logo on the home page only*/
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* prevent line breaks */
  border: 0;
}

.supertop-menu {
    background-color: #092857;
    display: flex;
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

div#logo {
    margin: 10px 0;
    display: inline-block;
    float: left;
}

div#top-nav {
    display: inline-block;
    float: right;
}

nav.container {
    z-index: 1;
    overflow: hidden;
    align-items: center;
}

.top-menu {
    display: inline-block;
    align-items: center; /
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.item, .item a {
    display: inline-block; 
    align-items: center; 
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    float: left;
    padding-top: 19px;
    transition: color 0.4s ease, text-decoration 0.4s ease; /* Smooth animation */
}

.item a:hover {
    color: #ce001d;
}

nav ul:last-of-type {
    margin: 0;
}

li.language-selector {
    padding-top: 16px;
    list-style: none;
    float: left;
}

form#language-form {
    float: left;
    margin-left: 2px;
}

select#language {
    padding: 2px 35px 2px 20px;
    font-size: 0.9rem;
    margin-top: 8px;
}

.language-icon {
    width: 30px;
    height: 30px;
    margin-top: 10px;
    background-image: url('../images/icons/language-white.svg');
    background-size: contain;
    float: left;
}


/******************* HAMBURGER MENU *******************/
/* Menu container */
.hamburger-menu {
    position: relative;
    display: none;
}

/* Hamburger/Close button */
.menu-button {
    position: fixed;
    top: 15px;
    right: 20px;
    background-color: #092857;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 5px 10px;
    border: 2px solid #fff;   
    border-radius: 5px;
    box-shadow: none;
    transition: transform 0.3s ease; /* Smooth animation */
}

/* Sliding menu */
.menu {
    position: fixed;
    top: 0;
    right: -310px; /* Start off-screen */
    width: 300px;
    height: 100%;
    background-color: #fff;
    color: #333;
    transition: right 0.3s ease; /* Smooth slide-in effect */
    z-index: 999;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    display: flex; /* Ensure vertical alignment for content */
    flex-direction: column;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 50px 0 0;
}

.menu li {
    width: 100%;
}

.menu a {
    color: #0b316a;
    text-decoration: none;
    transition: color 0.4s ease, text-decoration 0.4s ease; /* Smooth animation */
}

.menu a:hover {
    text-decoration: underline;
}

.hamburger-hr {
    border: 1px solid #666;
}

.hamburger-menu li.item a.selected-page {
    color: #2993a4;
}


/******************* ANNOUNCE *******************/
.announcement {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
}


/******************* HOME CONTENT *******************/
.grid-home {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.home-item-text h2 a {
    font-size: 0.9rem;
    line-height: 30px;
}

.home-item-text a {
    line-height: 40px;
}

.home-item {
    border: 1px solid #ccc;
    background-color: #fff;
}

.home-item img {
    transition: filter 0.3s ease;
    aspect-ratio: 500 / 281;
}

.home-item img:hover {
    filter: blur(1px);
}

.home-item-text {
    padding: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

a.home-item-title {
    color: #0b316a;
    font-weight: 600;
    transition: color 0.4s ease, text-decoration 0.4s ease; /* Smooth animation */
}

a.home-item-title:hover {
    color: #333;
}


/******************* OTHER PAGES CONTENT *******************/
section.banner-section {
    background-color: #092857;
    display: inline-flex;
    margin-bottom: 0;
    width: 100%;
}

.banner-photo {
    width: 60%;
    overflow: hidden;
}

.banner-video {
    width: 720px;
    height: 405px;
}

.banner-photo img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

.banner-text, .banner-text-video {
    width: 40%;
    padding: 1rem;
    color: #fff;
}

.banner-text h1, .banner-text-video h1 {
    color: #fff;
    font-size: 1.6rem;
}

a.red-button, .btn-auto {
    min-width: 180px;
    background-color: #B01818;
    border: none;
    font-weight: 700;
    transition: color 0.4s ease, background-color 0.4s ease
}

.btn-auto {
  border: 1px solid transparent;
}

a.red-button:hover, .btn-auto:hover {
    background-color: #fff;
    color: #B01818;
}

.btn-auto:hover {
  border: 1px solid #ccc;
}

.stuff { /* Honeypot in contact form */
  position: absolute;
  left: -9999px; 
  visibility: hidden; 
}

.content-section {
    width: 100%;
    background-color: #fff;
    padding: 1rem;
    font-size: 0.9rem;
}

.content-section h1 {
    font-size: 1.6rem;
}

.content-section h2 {
    color: #0b316a;
    font-size: 1rem;
}

.content-section h3, .content-section h4 {
    font-size: 0.9rem;
    margin: 0;
}

.blue-text {
    color: #0b316a;
}

.grid.grid-menu {
    grid-template-columns: repeat(2, 1fr);
}

.menu-picture {
    width: 100px;
    float: left;
    padding-top: 1rem;
}

.menu-text {
    float: left;
    padding: 1rem 0 0 0.8rem;
}

.menu-text2 {
    float: left;
    padding: 1.6rem 0 0 0.8rem;
}

.menu-additional-text {
    float: left;
    width: 100%;
}

.menu-additional-text ul {
    padding: 0;
}

.menu-additional-text ul li {
    list-style-type: none;
}

.menu-additional-text ul li::before {
    content: '\26AC ';
    color: #444;
    left: 0;
    padding-left: 0;
}

.content-section img {
    margin-bottom: 1rem;
}

.error404 {
    text-align: center;
    color: #0b316a;
}

.error404 h1 {
    text-align: center;
    color: #0b316a;
}

.calendar-container {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* aspect ratio: 4:3 */
  height: 0;
  overflow: hidden;
}

.calendar-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/******************* FOOTER *******************/
div#footer {
    width: 100%;
    background-color: #EEEEE4;
    padding: 1rem 0;
    color: #333;
    text-align: center;
}

.social-black img {
    margin: 0 1rem;
}


/******************* MEDIA SETTINGS *******************/

@media (width < 1300px) {
    .large-nav {
        display: none;
    }
    .hamburger-menu {
        position: relative;
        display: block;
    }
    .menu li {
        border-bottom: 1px solid #ccc;
    }

    .menu li a {
      display: block;       /* makes <a> fill its parent */
      width: 100%;          /* ensures full width */
    }

    .menu li.language-selector {
        border: 0;
    }

    .item, .item a {
        padding: 5px 0;
    }
    .language-icon {
        background-image: url('../images/icons/language.svg');
        margin-top: 5px;
    }
}

@media (width < 1024px) {
    .large-nav {
        display: none;
    }
    .hamburger-menu {
        position: relative;
        display: block;
    }
    .menu li {
        border-bottom: 1px solid #ccc;
    }
    .item, .item a {
        padding: 5px 0;
    }
    .menu-picture {
        width: 100%;
        text-align: center;
    }
    .menu-text {
        padding: 0.8rem 0 0;
    }

    section.banner-section {
       display: block;
    }

    .banner-video, .banner-text-video {
        width: 100%;
    } 
}

@media (width < 768px) {
    .wrapper {
        padding: 0;
    }
    .wrapper-home {
        padding: 0 15px;
    }
    section.banner-section {
        display: block;
    }
    .banner-photo {
        width: 100%;
    }
    .banner-text {
        width: 100%;
    }
    .grid.grid-menu {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .menu-picture {
        width: 100px;
    }
    .menu-text {
        padding: 1rem 0 0 0.8rem;
    }
    .banner-video{
        height: 250px;
    } 
}

