:root{
    font-size: 1rem;
    font-family: "Host Grotesk", sans-serif;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

.container{
    max-width: 1100px;
}

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

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

footer p{
    color: #929292;
    margin-bottom: 3px;
}

.main-footer{
    color: #929292;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #333333;
}

.post-footer{
    color: #929292;
    background: #2b2b2b;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.custom-button{
    background-color: #2BA58E;
    border: 0px;
}

.custom-button:hover{
    background-color: #289a85;
    border: 0px;
}

.micro-title{
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.macro-title{
    font-size: 3rem;
    font-weight: 650;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.service-icon {
    width: auto;
    height: 75px;
    margin-bottom: 10px;
}

.macro-title.highlight {
    position: static; 
    display: inline-block; 
    background-image: linear-gradient(to bottom, #2BA58E, #2BA58E); 
    background-size: 100% 25%; 
    background-position: left 80%; 
    background-repeat: no-repeat;
}

small{
    font-size: 0.9rem;
}

.custom-grid {
    display: grid;
    grid-template-columns: 6fr 1fr;
    gap: 15px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .custom-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .custom-grid .main-column,
    .custom-grid .side-column {
        padding: 0px;
    }
}

/* Language */
.language-selector {
    border: 1px solid #ccc;
    border-radius: 4px;
}

nav.main-nav {
    display: flex;
    align-items: center;          /* vertical alignment */
    justify-content: space-between;
}

/* Burger menu visibility */
#burgerMenu {
    margin-top: 0;
    line-height: 1;
    font-size: 1.5rem;
    display: none; /* Hidden by default (only visible on mobile) */
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    text-decoration: none;
    color: var(--contrast);
}

#burgerMenu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

nav ul:last-child {
    display: flex;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #burgerMenu {
        display: block; /* Show burger menu on mobile */
    }

    #navItems {
        display: none; /* Hidden by default on mobile */
        flex-direction: column; /* Stack items vertically when visible */
        gap: 0; /* No extra space between items */
        background-color: var(--pico-form-element-background-color); /* Pico's light/dark background */
        color: var(--container-foreground); /* Text color based on the theme */
        border: 0.5px solid #ccc;
        padding: 0.5rem; /* Smaller padding for compactness */
        border-radius: 0.3rem;
        position: absolute; /* Overlay the nav menu */
        right: 1.5rem;
        top: 3.5rem; /* Position below the header */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for card effect */
        z-index: 100; /* Ensure it overlays other content */
        min-width: 175px; /* Enforce a minimum width */
        transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth animation */
        opacity: 0; /* Start hidden */
        transform: translateY(-10px); /* Slide up when hidden */
    }

    #navItems.visible {
        display: flex; /* Show when burger is toggled */
        opacity: 1; /* Fully visible */
        transform: translateY(0); /* Reset slide-up effect */
    }

    /* Individual List Item Styles */
    #navItems li {
        text-align: left; /* Align text to the left */
        margin: 0.2rem; /* Remove any default margins */
        padding: 0.2rem; /* Remove extra padding for tighter layout */
        width: 100%; /* Ensure items fill the available width */
        display: flex;
        justify-content: flex-start; /* Ensure the links are aligned to the left */
    }

    #navItems li a {
        display: block;
        width: 100%;
        margin-left: 0.2rem;
        text-align: left;
        color: var(--contrast);
    }
}

/* ALERTS */
.alert {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-align: center;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert button {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    float: right;
    color: inherit;
    cursor: pointer;
    padding: 0;
}

.alert-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.alert-list li {
    margin-bottom: 1rem;
}