body {
    font-size: 18px;
}

.content-wrapper {
    width: 70%;
    margin: 24px auto;
}

@media (max-width: 900px) {
    .content-wrapper {
        width: 98%;
        margin: 12px auto;
        padding: 0;
    }
}

.qual-img-float {
    float: right;
    margin: 0 0 12px 24px;
    width: 250px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

@media (max-width: 600px) {
    .qual-img-float {
        float: none;
        display: block;
        margin: 0 auto 12px auto;
        width: 80vw;
        max-width: 300px;
    }
}

.fancy-underline {
    display: inline-block;
    position: relative;
    padding-bottom: 6px;
}

.fancy-underline::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4e6e6e 0%, #a3c9c9 100%);
    border-radius: 2px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.custom-navbar-dropdown {
    background: rgba(107, 151, 150, 1.0);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 6px 6px;
    min-width: 200px;
}

.custom-navbar-dropdown .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 8px; /* Less padding */
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    margin: 2px 4px;
}

.custom-navbar-dropdown .nav-link:hover,
.custom-navbar-dropdown .nav-link:focus {
    background: rgba(78, 110, 110, 0.7) !important;
    color: #e0f7fa !important;
    text-decoration: none;
}

.custom-navbar-dropdown .nav-item {
    margin-bottom: 4px;
}

.custom-navbar-dropdown .nav-item:not(:last-child) {
    border-bottom: 1px solid #5f7d7d;
}

.footer-link {
    color: #4e6e6e;
    font-size: 12px;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 16px;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}

.footer-link:hover,
.footer-link:focus {
    color: #6B9796;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .footer-link {
        margin-right: 0;
        margin-bottom: 8px;
        display: block;
        text-align: left;
    }
    footer div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        padding: 12px !important;
    }
    footer span {
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-top: 8px;
    }
}

.navbar-title {
        font-size: 1.2rem;
    }
.navbar-subtitle {
    font-size: 1.0rem;
}

.navbar-title-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.navbar-title-substack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (max-width: 600px) {
    .navbar-title-stack {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .navbar-title-substack {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .navbar-title {
        font-size: 1.0rem;
    }
    .navbar-subtitle {
        font-size: 0.7rem;
    }
    .navbar-logo {
        height: 30px !important;
    }
}

.welcome-img-mobile {
    order: 0;
    float: right;
    margin: 0 0 12px 24px;
    width: 300px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

@media (max-width: 600px) {
    .welcome-img-mobile {
        order: 99 !important;
        float: none;
        display: block;
        margin: 0 auto 12px auto;
        width: 98%;        /* Match .content-wrapper width */
        max-width: none;
    }
}
