@media only screen and (max-width: 1700px) {
    .py-5 {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
}

@media only screen and (max-width: 1500px) {
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev.gallery-nav-btn {
        left: 5px;
    }

    .carousel-control-next.gallery-nav-btn {
        right: 5px;
    }

    .navbar-nav {
        margin-right: 0rem;
    }

    .brandWhite {
        height: 79px;
        width: 330px;
        top: -15px;
        right: -16px;
    }

    .btn-warning,
    .btn-info {
        scale: 0.8;
        font-size: 0.8rem;
    }

    .navbar-brand {
        scale: 0.8;
    }

    .navbar-nav .nav-link {
        font-size: 0.8rem;
    }

    .footer-links li a, .footer-contact li a, .footer-contact {
        font-size: 0.8rem;
    }

    .footer-heading {
        font-size: 0.9rem;
    }
    
}

@media only screen and (max-width: 1199.98px) {

    /* Workshop Gallery: Adjust Owl Carousel custom nav button positions */
    .owl-prev-custom {
        left: 0px;
    }

    .stat-description {
        font-size: 1rem;
    }
}
@media only screen and (max-width: 1025px) {
    #hero .carousel-item {
        height: unset;
    }
    .col-md-4 {
        flex: 0 0 auto;
        width: 100%;
    }
    .site-footer .container .row {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
@media only screen and (max-width: 991.98px) {

    /* Consolidates 992px and 991.98px */
    /* General Navbar adjustments */
    .navbar-nav {
        margin-top: 90px;
        /* Add some space when navbar collapses */
    }

    .d-flex .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
.container-fluid {
    justify-content: flex-end !important;
}
.navbar-brand {
    position: absolute;
    left: -10px;
}
.clubwork-section .card {
    width: 86%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.brandWhite {
    height: 98px;
}


.navbar-collapse {
    /* padding-top: 90px; */
}
    .d-flex .btn:last-child {
        margin-bottom: 0;
    }

    /* Hero Section */
    .carousel-item {
        height: auto;
        /* Adjust height for smaller screens */
        min-height: unset;
        /* Ensure enough space for content */
    }

    .carousel-caption-custom .row {
        flex-direction: column;
    }

    .hero-text-left,
    .hero-locations-right {
        width: 90%;
        margin: 1rem auto;
        clip-path: none;
        /* Remove angled shape on smaller screens for simplicity */
        text-align: center;
    }

    .hero-text-left {
        order: 1;
    }

    .hero-locations-right {
        order: 2;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .class-description {
        width: 100%;
    }

.workshop-content {
    width: 100%;
}
.age-badge-education {
    top: 90px;
    right: 30px;
}
    .hero-text-left h1 {
        font-size: 2rem;
    }

    .discount-badge {
        margin-bottom: 1rem;
    }

    .hero-locations-right li {
        justify-content: center;
        text-align: left;
    }

    /* Class Programs Section */
    .class-title {
        align-self: center;
        /* Center title on smaller screens */
    }

    .age-badge {
        top: 20px;
        right: 20px;
        width: 80px;
        height: 80px;
        font-size: 1rem;
        padding: 1rem 0.8rem;
    }

    .class-description h3 {
        font-size: 1.7rem;
    }

    .class-description p {
        font-size: 0.95rem;
    }

    /* Workshops Section */
    .workshop-card {
        padding: 2rem;
    }

    .workshop-content h2 {
        font-size: 1.9rem;
    }

    .workshop-content p {
        font-size: 0.95rem;
    }

    .workshop-image-container {
        margin-top: 2rem;
        /* Add space above image on smaller screens */
        text-align: center;
        /* Center image */
    }

    .workshop-image-container img {
        clip-path: none;
        /* Remove clip-path on smaller screens if it causes issues */
        max-width: 90%;
    }

    /* Daily Activities Section */
    .activity-card-main {
        padding: 2rem;
    }

    #daily-activities h2 {
        font-size: 1.9rem;
    }

    #daily-activities .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Stats Section */
    .stat-number {
        font-size: 3rem;
    }

    .stat-description {
        font-size: 1rem;
    }

    /* Footer */
    .site-footer {
        text-align: center;
        /* Center align content in columns on medium screens */
    }

    .footer-logo {
        margin-bottom: 2rem !important;
    }

    .footer-heading {
        margin-top: 1rem;
        /* Add space above headings when stacked */
    }
}

@media only screen and (max-width: 767.98px) {

    /* Hero Section */
    .hero-text-left,
    .hero-locations-right {
        padding: 1.5rem;
    }

    .hero-text-left h1 {
        font-size: 1.8rem;
    }

    .hero-text-left p {
        font-size: 1rem;
    }

    .discount-badge {
        font-size: 1.5rem;
        padding: 0.8rem 1.2rem;
    }

    .discount-badge span {
        font-size: 0.7rem;
    }

    .kontenjan {
        font-size: 1.2rem !important;
    }

    .hero-locations-right strong {
        font-size: 1.1rem;
    }

    .hero-locations-right small {
        font-size: 0.8rem;
    }

    /* Schedule Section */
    .schedule-card-header h3 {
        font-size: 1.3rem;
    }

    .schedule-card-body p {
        font-size: 0.95rem;
    }

    /* Class Programs Section */
    .class-image-container {
        padding: 1.5rem;
    }

    .class-image-container img {
        max-width: 70%;
    }

    .age-badge {
        width: 70px;
        height: 70px;
        font-size: 0.9rem;
        top: 15px;
        right: 15px;
    }

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

    .class-description h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .class-description p {
        font-size: 0.9rem;
        text-align: center;
    }

    .program-nav {
        text-align: center;
    }

    /* Workshops Section */
    .workshop-card {
        padding: 1.5rem;
        text-align: center;
    }

    .workshop-content h2 {
        font-size: 1.7rem;
    }

    .btn-details {
        margin: 0 auto;
        /* Center button */
    }

    /* Daily Activities Section */
    .activity-card-main {
        padding: 1.5rem;
    }

    #daily-activities h2 {
        font-size: 1.7rem;
    }

    .activity-item {
        padding: 0.5rem;
    }

    .activity-item p {
        font-size: 0.9rem;
    }

    .btn-details-green {
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    /* Workshop Gallery Section */
    #workshop-gallery h2 {
        font-size: 1.8rem;
    }

    .owl-prev-custom,
    .owl-next-custom {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .owl-prev-custom {
        left: 5px;
    }

    .owl-next-custom {
        right: 5px;
    }

    .btn-view-all-gallery {
        font-size: 1rem;
    }

    .btn-view-all-icon {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    /* Stats Section */
    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-description {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-logo .logo-text {
        display: block;
        /* Stack logo text below image */
        margin-top: 0.5rem;
    }
}

@media only screen and (max-width: 575.98px) {

    /* General Navbar adjustments */
    .navbar-brand {
        top: -10px;
        scale: 0.8;
    }

    .btn-info,
    .btn-warning {
        scale: 0.8;
    }

    /* Stats Section: Ensure 2 columns on extra small screens if col-sm-6 is used */
    #stats-section .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}