html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: rgb(16, 16, 16);
    animation: fadeIn 1s ease-in-out forwards;
}

body.no-fade {
    animation: none;
}

@keyframes fadeIn {
  0%, 9.09% {
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.693);
  }
  100% {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.693);
  }
}

.banner h1,
.banner h2 {
    color: white;
    margin: 0 0 0 1%;
    text-shadow: 2px 2px black;
    transition: transform 0.2s ease;
}

.banner h1:hover,
.banner h2:hover {
    transform: translateY(-1px);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1%;
    margin-right: 1rem;
    overflow: hidden;
}

.banner .topnav a {
    color: #f2f2f2;
    text-shadow: 2px 2px black;
    text-decoration: none;
    transition: transform 0.2s ease, text-decoration 0.2s ease;
    font-size: 1.1rem;
}

.banner .topnav a:hover {
    text-decoration: underline;
    transform: translateY(-1.5px);
}

.title-container {
    display: flex;
    flex-direction: column;
    margin-left: 0.5rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.title-container h2 {
    font-size: 1rem;
}

.banner {
    background-size: cover;
    position: relative;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 1%;
}

.button {
    display: inline-block;
    padding: 14px 28px;
    margin: 15px;
    background-color: #f79d4f;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    background-color: #db8438;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.card {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 5%;
    margin: 1% auto;
    box-sizing: border-box;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    line-height: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card p {
    font-size: 1.15rem;
}

.card a {
    font-size: 1.45rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.559);
}

h1, h2, h3, h4, h5, h6 {
    color: rgb(16, 16, 16);
    text-shadow: none;
    margin-left: 0;
}

h1 {
    text-decoration: none;
}

.footer {
    text-align: center;
    padding: 30px 20px;
    background-size: cover;
    color: white;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-mask-image: linear-gradient(to top, black 95%, transparent 100%);
    mask-image: linear-gradient(to top, black 95%, transparent 100%);
}

.footer h1,
.footer h2 {
    color: white;
    text-shadow: 2px 2px black;
    margin: 0.3em 0;
}

.footer h1 {
    font-size: 1.8em;
}

.footer h2 {
    font-size: 1.2em;
}

.footer a {
    color: white;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffd1a3;
}

.blog-container {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post {
    background: #ffffffc9;
    backdrop-filter: blur(4px);
    padding: 1.75rem 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.6;
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.38);
}

.post-title {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
}

.post-date {
    font-size: 0.95rem;
    color: rgb(70, 70, 70);
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.read-more {
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    color: #d8762d;
    transition: color 0.15s ease, transform 0.15s ease;
}

.read-more:hover {
    color: #b85c18;
    text-decoration: underline;
    transform: translateX(2px);
}

.post-image-header {
    width: 100%;
    aspect-ratio: 16 / 5; 
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.post-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-container {
    width: 100%;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.blog-full {
    width: 100%;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 0.4rem 2rem rgba(0,0,0,0.06);
}

#preloader {
    background: #F5F4F5 url(/Assets/PreloaderGateMate.gif) no-repeat center center;
    background-size: 50%;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 100;
    opacity: 1;
    transition: opacity 1s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 600px) {
    .blog-post {
        padding: 1.25rem 1.4rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-excerpt {
        font-size: 1.05rem;
    }

    .banner h1 {
        font-size: 1.5rem;
    }

    .banner h2 {
        font-size: 1rem;
    }

    .topnav {
        margin-top: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .banner .topnav a {
        font-size: 0.9rem;
    }
}
