/* =========================
   NAVBAR BRAND RESPONSIVE
   ========================= */

.navbar-brand {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.navbar-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: normal;
}

/* Logo default size */
.navbar-brand .logo {
    max-height: 70px;
    width: auto;
}

/* Tablet */
@media (max-width: 1220px) {
    .navbar-brand .logo {
        max-height: 40px;
    }

    .navbar-brand span {
        font-size: 0.95rem;
    }

    .navbar-brand small {
        font-size: 0.75rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .navbar-brand {
        justify-content: center;

    }

    .navbar-brand .logo {
        max-height: 40px;
        margin: 0 6px;
    }

    .navbar-brand span {
        font-size: 0.85rem;
    }

    .navbar-brand small {
        font-size: 0.7rem;
    }
}

/* =========================
   HERO / CAROUSEL FIXES
   ========================= */

@media (max-width: 768px) {
    .hero-section-full-height {
        height: auto !important;
    }

    .carousel-inner {
        height: auto !important;
    }

    .carousel-image {
        width: 100%;
        height: auto !important;
        object-fit: contain;
    }
}

/* =========================
   FIX FIXED BUTTON ON MOBILE
   ========================= */

@media (max-width: 576px) {
    a.btn.btn-warning.flash {
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.9rem;
        text-align: center;
    }
}

/* =========================
   TOP HEADER RESPONSIVE
   ========================= */

.site-header .col-12 {
    align-items: center;
    justify-content: space-evenly;
}

/* Mobile: center + stack */
@media (max-width: 750px) {
    .site-header .col-12 {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .site-header p {
        justify-content: center;
        margin-right: 0 !important;
    }

    .site-header i {
        margin-right: 6px;
    }

    #datetime {
        display: block;
    }
}

.navbar .container{
    flex-wrap: nowrap;
    max-width: 500px;

    @media (max-width: 1220px) {
        max-width: 400px;
        
    }

    @media (max-width: 990px) {
        max-width: 100%;
        
    }
}

li a{
    font-size: 14px !important;
    font-weight: 400 !important;
}

        /* Prevent horizontal scroll */
        html, body {
            max-width: 100%;
            overflow-x: hidden;
        }
        
.carousel-item a {
    cursor: zoom-in;
}

.intro-title {
    color: #0056b3;
}

.intro-subtitle {
    font-size: 1rem;
    color: black;
}

.news-title {
    font-size: 1rem;
}

.news-created-at {
    font-size: 1rem;
    margin:0;
}

.responsive-logo{
    width: 70%;
}

@media (max-width: 768px) {
    .intro-title {
        text-align: center;
    }

    .intro-subtitle {
        font-size: 0.9rem;
    }

    .hero-section p {
        text-align: center;
    }

    .news-created-at {
        margin-top: 10px;
        text-align: end !important;
    }
    
    .news-title {
        font-size: 1rem;
    }

    .news-created-at {
        font-size: 1rem;
        text-align: end;
    }

    .responsive-logo{
        width: clamp(40%,10vw,60%)
    }
}

.footer-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
}

/* Smaller on mobile */
@media (max-width: 768px) {
    .footer-logo {
        height: 120px;
    }
}

#newsModal.modal.show {
    display: flex !important;
}

#newsModal.modal {
    justify-content: center;
}


