/* styles.css */
body {
    font-family: "Lexend Deca", sans-serif;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section {
    padding: 1em;
    margin: 0 auto;
    width: 95vw;
    max-width: 1350px;
}

header {
    background-color: #333333;
    color: #fff;
    text-align: center;
    padding: 1em;
}

h1 {
    margin-top: 0px;
    font-size: 34px;
    text-align: center;
}

p {
    font-size: 18px;
    line-height: 1.5;
}

nav {
    display: flex;
    align-items: center;     /* <-- important */
    flex-wrap: wrap;
    background-color: #444;
    padding: 0.3em;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: visible;
}

nav a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 1.5em 1em;
    font-size: 16px;
    font-weight: bold;
}

nav a:hover, nav .submenu:hover {
    background-color: #222;
    border-radius: 6px;
}

.nav-logo {
    padding: 0.5em;       /* removes left/right/top/bottom padding */
}

/* Regular screen navbar */
.regular-navbar {
    justify-content: left;
}

/* Small screen navbar */
.small-screen-navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    display: none;
}

.small-screen-navbar a {
    padding: 0.5em 1em;
    text-align: center;
    display: inline-block;
}

.small-screen-navbar a:first-child {
    margin-right: auto;
}

/* Dropdown Buttons */
.more-dropdown {
    display: flex;
    align-items: center;
}

.more-dropdown .dropbtn {
    margin-left: auto;
}

.submenu-dropbtn {
    display: inline-flex;    /* small inline flex for icon+text */
    align-items: center;
    gap: 0.4ch;              /* small gap between text and caret */
    padding: 0;              /* IMPORTANT: remove padding so .submenu controls height */
    margin: 0;
    background: transparent; /* let wrapper paint the background */
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    line-height: normal;
}




.submenu-dropbtn:hover {
    background-color: #222;
    border-radius: 6px;
}

.submenu-dropbtn i {
    vertical-align: middle;
}

/* Dropdown container */
.submenu {
    display: flex;           /* same display as nav a */
    align-items: center;     /* vertically center contents */
    padding: 1.5em 1em;      /* same padding as nav a */
    margin: 0;               /* no extra margin */
    background-color: transparent;
    border-radius: 6px;      /* keeps the same rounded look on hover */
    position: relative;      /* for dropdown positioning */
    box-sizing: border-box;
    cursor: default;
}

.submenu-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    z-index: 1000;        /* high z-index so it appears over content */
    visibility: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.submenu:hover .submenu-dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.submenu-dropdown-content a {
    color: #333;
    padding: 0.5em 1em;
    text-decoration: none;
    display: block;
}

.submenu-dropdown-content a:hover {
    background-color: #ddd;
}

/* Dropdown Button */
.dropbtn {
    background-color: #3498db;
    color: white;
    padding: 0.3em 0.6em;
    font-size: 28px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.dropbtn i {
    vertical-align: middle;
}

/* Optimized main dropdown (no CLS) */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 6px;
    font-size: 22px;
    z-index: 1;

    visibility: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.dropdown-content a {
    color: #333;
    padding: 0.5em 1em;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

/* Social icons */
.social-icons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.social-icon {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 0.75em 0.75em;
}

.social-icon:hover {
    color: #ccc;
}

/* Prevent icon layout shift */
.social-icon i {
    display: inline-block;
    width: 1em;
    height: 1em;
}

.lexend-deca {
    font-family: "Lexend Deca", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* Media query for smaller screens */
@media screen and (max-width: 1250px) {
    .regular-navbar {
        display: none;
    }

    .small-screen-navbar {
        display: flex;
    }

    .submenu-dropdown-content {
        display: none;
    }

    .submenu-dropdown-content a {
        display: none;
    }
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    bottom: 0;
    width: 100%;
    margin-top: auto;
    margin-bottom: 0px;
    overflow: hidden;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer p:first-child {
    margin-bottom: 6px;
}

footer p:last-child {
    margin-top: 5px;
}

.button {
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    background-color: #3498db;
    padding: 10px 10px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    flex-grow: 1;
    margin-right: 10px;
}

/* Cookie Tooltip */
#cookie-tooltip {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
}

#cookie-tooltip a {
    color: #fff;
    text-decoration: underline;
}

#cookie-buttons {
    margin-top: 10px;
    display: flex;
}

#cookie-close, #cookie-accept {
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    background-color: #3498db;
    padding: 8px 0;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    flex-grow: 1;
    margin-right: 10px;
}

#cookie-accept {
    margin-right: 0;
}

#cookie-close:hover, #cookie-accept:hover {
    background-color: #26607D;
}

/* Counter */
.counter {
    font-weight: bold;
    font-size: 34px;
    color: #3498db;
    display: inline-block;
    min-width: 4ch;
}

.count {
    color: #3498db;
}

.container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.box {
    width: 18%;
    background-color: #333333;
    border-radius: 25px;
    padding: 20px;
    margin: 0 auto;
    min-width: 200px;
    box-sizing: border-box;
    text-align: center;
}

.box-text {
    color: white;
}

.box-text.large {
    font-weight: bold;
    font-size: 34px;
    color: #3498db;
}

.faq-box {
    width: 30%;
    background-color: #333333;
    border-radius: 25px;
    padding: 20px;
    margin: 0 auto;
    min-width: 380px;
    box-sizing: border-box;
    text-align: center;
}

.faq-box-question {
    font-weight: bold;
    font-size: 24px;
    color: #3498db;
    padding-bottom: 10px;
}

.faq-box-answer {
    color: white;
    font-size: 18px;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: auto;
}

.mySlides {
    display: none;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.image-container img {
    width: 33%;
}

/* Slideshow navigation */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    margin-top: -30px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
