* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

button {
    user-select: none;
    cursor: pointer;
    color: white;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.nav-bar {
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    background-color: #fefef9;
    border-bottom: 1px solid #ffaa00;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    transition: background-color 0.3s ease;
    animation: slideIn 0.5s ease-out;
    overflow: hidden;
}


.logo a {
    display: inline-block;
}

.logo img {
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links .menu,
.nav-links .social {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-links .menu li {
    position: relative;
}

.nav-links .menu li a {
    cursor: pointer;
    font-weight: 500;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-links .menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #ffee00;
    transition: width 0.3s ease;
}

.nav-links .menu li a:hover {
    color: #222;
}

.nav-links .menu li a:hover::after {
    width: 100%;
}

.nav-links .social li {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-links .social a {
    display: inline-block;
}

.nav-links .social img {
    height: 30px;
    width: 30px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 rgb(0, 0, 0));
}

.nav-links .social li:hover img,
.nav-links .social a:hover img {
    transform: scale(1.2);
}

@keyframes slideIn {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.layout {
    margin-top: 60px;
    flex: 1;
}


.site-footer {
    background-color: #222;
    color: #ddd;
    padding: 2rem 1rem 1.5rem;
    font-size: 16px !important;
    line-height: 1.6;
    margin-top: auto;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-menu-container,
.footer-social-container {
    flex: 1 1 250px;
    min-width: 250px;
}

.footer-menu-container h3,
.footer-social-container h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-left: 1rem;
}

.footer-menu li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    font-size: 1.2em;
}

.footer-menu li a:hover {
    color: #fff7be;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-social a img {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 1px rgb(255, 255, 255));
}

.footer-social a:hover img {
    transform: scale(1.2);
}

.footer-contact {
    flex: 1 1 250px;
    min-width: 250px;
    color: #ccc;
}

.footer-contact h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-contact p {
    margin-bottom: 0.7rem;
    font-size: 15px;
}

.footer-contact a {
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-contact a:hover {
    color: #fff7be;
    cursor: pointer;
}


.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 1rem;
    color: #999;
    font-size: 13px;
}

.site-footer {
    background-color: #222;
    color: #ddd;
    padding: 3rem 1rem 2.5rem;
    font-size: 14px;
    line-height: 1.6;
    margin-top: auto;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-container {
        padding: 0 10px;
    }

    .footer-menu li a,
    .footer-contact p {
        word-wrap: break-word;
    }


    .footer-menu-container,
    .footer-social-container,
    .footer-contact {
        min-width: 100%;
        max-width: 100%;
    }

    .footer-menu li a,
    .footer-contact p {
        word-wrap: break-word;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links .menu {
        gap: 1rem;
    }

    .nav-bar {
        padding: 0 1rem;
    }

    .page-intro-wrap {
        padding-right: 0;
        height: 220px;
    }

    .mobile-menu-toggle {
        display: block;
    }
}


.scroll-to-top {
    position: fixed;
    background-color: #ffe312;
    color: #ffffff;
    border-radius: 50rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    opacity: 0;
    bottom: 14px;
    right: 0%;
    z-index: 1000;
    transform: translateX(-50%) translateY(0);
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, transform 0.3s;
    visibility: hidden;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
}

.scroll-to-top.show {
    opacity: 0.9;
    visibility: visible;
}

.angle-up {
    animation: floatUp 2.5s ease-in-out infinite, glow 2.5s ease-in-out infinite;
    will-change: transform, filter;
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }
}


.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    width: 25px;
    height: 22px;
    z-index: 1100;
}

.mobile-menu-toggle i {
    font-size: 30px;
}

.page-intro-wrap {
    max-width: 100%;
    width: 100%;
    height: 300px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.page-intro-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("../images/page-intro.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: 0;
}

.page-intro {
    position: relative;
    z-index: 1;
    margin-left: 60px;
    animation: slideInLeft 1.2s ease-out forwards;
    opacity: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

.page-intro p:first-child {
    font-size: 1.2rem;
    margin: 0.2rem 0;
    font-weight: 400;
    justify-content: start;
}

.page-intro p:first-child::before {
    content: '';
    height: 3px;
    width: 30px;
    margin-right: 5px;
    background-color: rgb(255, 170, 0);
}

.page-intro p:last-child {
    font-size: 2rem;
    margin: 0.5rem 0;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.empty-page-error {
    color: #b40000;
    font-size: 2rem;
    padding: 25px;
    width: 100%;
    height: 50vh;
    text-align: center;
}