@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    #carouselStart {
        height: 50vh;
    }
    #carouselStart .title {
        font-size: 1.6rem;
        color: #fff;
        font-weight: 600;
        line-height: 1;
    }
    #carouselStart .carousel-container {
        bottom: 3rem;
        top: initial;
        left: 1rem;
        right: 1rem;
    }
    .page-person .person-photo {
        padding-bottom: 100%;
    }
    #footer .copyright,
    #footer .credits {
        float: none;
        text-align: center;
        padding: 2px 0;
    }
    .gallery .item .text {
        position: relative;
    }
    .gallery .row {
        --bs-gutter-x: 0.5rem;
    }
    .gallery .item .text h4 {
        font-size: 0.8rem;
        text-align: center;
        font-weight: 400;
        color:black;
    }
/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
/* 
[data-aos-delay] {
    transition-delay: 0 !important;
}
*/
}

/* ==========================================================================
   SORMOVO-AVIA — modern mobile layer
   ========================================================================== */
@media (max-width: 768px) {
    body:not(.page-start) {
        padding-top: 68px;
    }

    body {
        font-size: 14px;
        line-height: 1.65;
    }

    section {
        padding: 52px 0;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    .section-title {
        padding-bottom: 24px;
    }

    .section-title h3 {
        font-size: 1.75rem;
    }

    .section-title p {
        font-size: .95rem;
    }

    #topbar {
        display: none;
    }

    #header,
    #header.header-scrolled {
        height: 68px;
    }

    #header .logo img {
        max-height: 42px;
    }

    #header .logo {
        font-size: 22px;
    }

    .mobile-nav-toggle {
        font-size: 26px;
    }

    .navbar-mobile {
        background: rgba(10, 25, 45, .62);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .navbar-mobile ul {
        top: 78px;
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 10px 0;
        border-radius: 16px;
        border: 1px solid #e6ebf2;
        box-shadow: 0 18px 50px rgba(20,45,80,.18);
    }

    .navbar-mobile a,
    .navbar-mobile a:focus {
        padding: 12px 20px;
        font-size: 15px;
    }

    #carouselStart {
        height: 62vh;
        min-height: 430px;
    }

    #carouselStart .title {
        font-size: clamp(1.7rem, 8vw, 2.35rem);
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    #carouselStart p {
        width: 100%;
        font-size: .95rem;
        margin-bottom: 20px;
    }

    #carouselStart .carousel-container {
        bottom: 2.5rem;
        top: initial;
        left: 1.25rem;
        right: 1.25rem;
    }

    #carouselStart .btn-get-started {
        padding: 10px 22px;
        margin: 6px;
        font-size: 14px;
    }

    .courses .item {
        padding: 28px 22px;
    }

    .info-block {
        padding: 1rem;
        border-radius: 14px;
    }

    .team {
        padding: 52px 0;
    }

    .team .member {
        margin-bottom: 18px;
    }

    .team .member .member-info {
        padding: 18px;
    }

    .our-values .card {
        padding: 125px 14px 14px;
        border-radius: 18px;
    }

    .our-values .card-body {
        padding: 14px 18px;
        border-radius: 12px;
    }

    .gallery .row {
        --bs-gutter-x: .75rem;
        --bs-gutter-y: .75rem;
    }

    .gallery .item {
        border-radius: 12px;
    }

    .gallery .item .text {
        position: relative;
        padding: 10px 8px 4px;
        background: #fff;
    }

    .gallery .item .text h4 {
        font-size: .85rem;
        line-height: 1.35;
        text-align: center;
        font-weight: 600;
        color: #243244;
    }

    .gallery .item .text .description {
        display: none !important;
    }

    .gallery .item .date {
        font-size: .7rem;
        margin: .5rem;
    }

    #footer .footer-top {
        padding: 42px 0 20px;
    }

    #footer .footer-newsletter {
        padding: 40px 0;
    }

    #footer .footer-newsletter form {
        margin-top: 20px;
    }

    #footer .copyright,
    #footer .credits {
        float: none;
        text-align: center;
        padding: 4px 0;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        right: 14px;
        bottom: 14px;
        border-radius: 11px;
    }
}

/* Small phones */
@media (max-width: 420px) {
    section {
        padding: 44px 0;
    }

    #carouselStart {
        height: 58vh;
        min-height: 390px;
    }

    #carouselStart .carousel-container {
        bottom: 2rem;
        left: 1rem;
        right: 1rem;
    }

    #carouselStart .title {
        font-size: 1.65rem;
    }

    #carouselStart p {
        font-size: .88rem;
    }

    #carouselStart .btn-get-started {
        padding: 9px 18px;
    }
}

/* Disable AOS delay on mobile devices */
@media (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}
