@media (min-width: 1399px) {
    #home .workshop-image {
        height: 16rem;
    }

    #su-kien .workshop-image {
        height: 12.5rem;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1140px !important;
    }
}

@media (max-width: 1366px) {
    .social-icons-custom {
        left: 4% !important;
    }
}

@media (max-width: 1280px) {
    .event-wrapper {
        width: unset !important;
    }
}

@media (max-width: 1093px) {
    .social-icons-custom {
        left: 0% !important;
    }
}

@media (max-width: 1023px) {
    .navbar-toggler {
        display: block !important;
        background: #ffffff00;
    }

    .logo {
        display: flex;
        width: 100% !important;
        align-items: center;
        justify-content: center;
    }

    .top-header .container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .top-header .header-links {
        margin-top: 5px;
        text-align: center;
    }

    .mobile-mt {
        width: 100% !important;
        justify-content: center;
        margin-top: 0 !important;
    }

    .top-header .language-switcher,
    .top-header .fa-search {
        display: none;
    }

    .top-header .col-md-3,
    .top-header .col-md-6,
    .top-header .col-md-3.text-end {
        flex: 0 0 auto;
        width: auto;
    }

    .main-nav .navbar-collapse {
        display: none !important;
    }

    .breadcrumb-section {
        position: fixed;
        top: 115px;
        left: 0;
        width: 100%;
    }

    .top-header {
        padding: 0 !important;
    }

    .top-header .container {
        padding-bottom: 0 !important;
    }

    .main-content {
        padding-top: 30px;
        /* top-header (~80px with header-links) + breadcrumb (~40px) */
    }

    .top-header.scrolled~.main-content {
        padding-top: 100px;
        /* top-header (~60px without header-links) + breadcrumb (~40px) */
    }

    .top-header.fixed-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    .main-nav .navbar-nav .nav-link {
        padding: 10px 15px;
        border-right: none;
        border-bottom: 1px solid #555;
    }
}

@media (max-width: 992px) {
    .cc-window.cc-banner {
        width: 20.41rem !important;
    }
#mobile-schedule {
    display: block !important;
}
    #prevWeek,
    #nextWeek {
        white-space: nowrap;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 14px;
        justify-content: center;
    }

    .mobile-mb-filter {
        margin-bottom: 1.5rem;
    }

    .mobile-mb-0 {
        margin-bottom: 0 !important;
    }

    .mobile-m-0 {
        margin: 0px 0 20px 0px !important;
    }

    .mobile-mt-0 {
        margin-top: 0 !important;
    }

    .logo-img {
        width: 100px !important;
        margin-left: 2rem;
    }

    .custom-ml-vie {
        margin-top: 3px;
        margin-left: 11.5px !important;
        font-size: 14px;
    }

    .navbar-toggler {
        top: 15px !important;
        left: 7px !important;
    }

    .search-input {
        width: 15rem !important;
        font-size: 15px !important;
    }

    .gap-4 {
        gap: 1rem !important;
    }

    .schedule-table td {
        width: 100%;
    }

    #nhom-su-kien .workshop-card img {
        /* height: auto !important; */
        height: 18.5rem !important;
    }

    .modal-content-premium.pl-8 {
        padding-left: 1.5rem !important;
    }

    .mobile-gap {
        gap: 0.5rem !important;
    }

    .btn-advanced {
        margin-top: 0px !important;
    }

    .mobile-form-text {
        flex-direction: unset !important;
    }

    .container.custom-left {
        padding: 0 !important;
    }

    .mobile-cancel {
        position: relative;
    }

    .text-title-details {
        font-size: 19px !important;
    }

    .color-text {
        font-size: 15px !important;
    }

    .info-content {
        font-size: 15px;
    }

    .mobile-cancel .close-button {
        position: absolute;
        right: -14px;
        top: -19px;
    }

    .form-input-workshop {
        font-size: 15px !important;
    }

    .select2-selection__rendered {
        font-size: 15px !important;
    }

    label {
        font-size: 15px !important;
    }

    .icon-main.floating {
        width: 3.5rem !important;
    }

    .text-lg {
        font-size: 15px !important;
    }

    #type-guest {
        width: 6rem !important;
        font-size: 11px !important;
    }

    #type-b2b {
        width: 6rem !important;
        font-size: 10px !important;
    }

    .card-premium.p-6.mb-6.mt-4 {
        margin-top: 0 !important;
    }

    .flex.items-center.space-x-4 {
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .fa-times {
        font-size: 20px !important;
    }

    .mobile-footer {
        display: none !important;
    }

    .mobile-center {
        justify-content: center !important;
    }

    .gradient-text {
        font-size: 20px !important;
    }

    .schedule-container-title h1 {
        margin-bottom: 10px;
        font-size: 22px;
        height: unset !important;
        line-height: unset !important;
    }

    .workshop-card-custom .flex {
        justify-content: center !important;
    }

    .mobile-p-0 {
        padding: 0 !important;
    }

    #su-kien .workshop-image {
        width: 100%;
        height: auto !important;
    }

    .day-column {
        padding: 0;
    }

    .custom-mobile img {
        width: 100% !important;
    }

    .card-cb .card-title-space,
    .card-cb .card-text {
        text-align: center;
    }

    .card-cb .card-body .d-flex {
        justify-content: center;
    }

    .modal-content-premium #closeModal {
        position: absolute;
        right: -40px;
        top: 2px;
        color: #cc0000 !important;
        font-weight: 900;
    }

    .min-h-screen.py-6 .space-x-4 {
        justify-content: center;
    }

    .custom-middle-body {
        height: unset !important;
    }

    .border-b .flex.items-center.justify-between {
        gap: 8px;
    }

    .social-icons-custom {
        flex-direction: unset;
        display: flex;
        position: unset;
        margin-top: 1rem;
        padding-left: 1rem;
    }

    .mobile-flex-wrap {
        flex-wrap: unset !important;
    }

    .mobile-gap-0 {
        gap: 0px !important;
    }

    .w-mobile {
        justify-content: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

    .mobile-justify-center {
        justify-content: center !important;
    }

    .accordion-body {
        padding: 1rem;
    }

    .social-icons-custom a {
        margin: unset !important;
    }

    .main-content.pt-0 .container .container.my-5 {
        margin-top: 1.5rem !important;
    }

    .customer-type-section .d-flex {
        gap: 10px !important;
    }
}

@media (max-width: 768px) {
    #nhom-su-kien .workshop-card a {
        display: flex;
        justify-content: center;
    }

    #nhom-su-kien .workshop-card img {
        height: 100% !important;
    }

    .cc-window {
        left: 0 !important;
        bottom: 0 !important;
    }

    .cc-window.cc-floating {
        box-shadow: 0 10px 24px 7px rgba(0, 0, 0, .11);
    }

    .cc-floating .cc-message {
        line-height: 18px;
    }

    .cc-deny i {
        font-size: 16px !important;
    }

    .cc-floating .cc-message {
        margin-bottom: 0 !important;
        margin-top: 10px;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .card {
        margin-bottom: 30px;
    }

    .card-img-top {
        height: 200px;
    }

    .card-body {
        padding: 20px;
    }

    .modal-content-terms {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .terms-header {
        padding: 1rem 1.5rem;
    }

    .terms-header h2 {
        font-size: 1.2rem;
        margin-right: 2rem;
    }

    .terms-close-btn {
        top: 1rem;
        right: 1.5rem;
    }

    .terms-body {
        padding: 1.5rem;
    }

    .demo-card {
        padding: 2rem;
        margin: 1rem;
    }

    .mobile-schedule th,
    .mobile-schedule td {
        font-size: 12px !important;
        padding: 4px !important;
    }

    .event-wrapper,
    .mobile-schedule .event {
        width: 100%;
        max-width: 120px;
        padding: 6px;
        font-size: 0.85rem;
    }

    .event-wrapper,
    .mobile-schedule .event-mobile {
        width: 100%;
        max-width: 120px;
        padding: 6px;
        font-size: 0.85rem;
    }

    .event-wrapper .event-title {
        font-size: 0.85rem;
        text-align: center;
    }

    .event-wrapper .event-time {
        font-size: 0.8rem;
    }

    .event-wrapper i.event-icon {
        font-size: 10px;
        margin-right: 4px;
    }

    .schedule-wrapper {
        box-shadow: unset !important;
    }

    .desktop-schedule {
        display: none;
    }

    .mobile-schedule {
        display: table;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 6px 4px;
        font-size: 12px;
    }

    .event {
        font-size: 10px;
        padding: 2px 4px;
    }

    .event-mobile {
        font-size: 10px;
        padding: 2px 4px;
    }

    .event-time {
        font-size: 9px;
    }

    .popup {
        max-width: 90vw;
    }

    .carousel-item {
        height: 300px !important;
    }

    .carousel-item img {
        height: 100%;
    }

    .desktop-schedule {
        display: none;
    }

    .mobile-schedule {
        display: block;
    }

    .schedule-wrapper {
        padding-top: 20px;
    }

    .mobile-section {
        margin-bottom: 30px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .mobile-section-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 15px;
        text-align: center;
        font-weight: 600;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-day {
        display: flex;
        border-bottom: 1px solid #e0e0e0;
        background: white;
    }

    .mobile-day:last-child {
        border-bottom: none;
    }

    #prevWeekNew,
    #nextWeekNew {
        justify-content: center;
    }

    .flex.items-center.justify-between .flex.items-center {
        justify-content: center !important;
    }

    .mobile-day-header {
        width: 9rem;
        gap: 7px;
        background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
        color: white;
        padding: 15px;
        min-width: 80px;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .event.group1 {
        width: 12rem !important;
    }

    .event.group2 {
        width: 12rem !important;
    }

    .event.group3 {
        width: 12rem !important;
    }

    .mobile-day-content {
        flex: 1;
        padding: 10px;
        background: #fafafa;
        min-height: 100px;
    }

    .mobile-day-content .event {
        margin-bottom: 8px;
    }

    .mobile-day-content .event-mobile {
        margin-bottom: 8px;
    }

    .popup {
        max-width: 280px;
        min-width: 220px;
    }

    .event {
        font-size: 12px;
        padding: 10px;
    }

    .event-mobile {
        font-size: 12px;
        padding: 10px;
    }

    .event-title {
        font-size: 13px;
    }

    .event-time {
        font-size: 11px;
    }

    .poster-placeholder img {
        width: 80px;
    }

    .workshop-card-custom h4 {
        font-size: 1.1rem;
    }

    .workshop-card-custom p {
        font-size: 0.8rem;
    }

    .datetime-container {
        margin: 20px 10px;
        max-width: none;
    }

    .form-input-workshop {
        padding: 18px 60px 18px 20px;
        font-size: 18px;
    }

    .calendar-icon {
        font-size: 22px;
        right: 20px;
        padding: 12px;
    }

    .datetime-picker {
        padding: 20px;
    }

    .picker-row {
        flex-direction: column;
        gap: 15px;
    }

    .picker-select {
        padding: 15px 18px;
        font-size: 18px;
    }

    .btn-custom {
        padding: 15px 25px;
        font-size: 18px;
        min-width: 120px;
    }

    .picker-buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .modal-content-premium {
        margin: 16px;
        padding: 24px;
    }

    .flex-col {
        flex-direction: column;
    }

    .space-y-3 {
        display: flex;
        flex-direction: column;
    }

    .space-y-3>*+* {
        margin-top: 0.75rem;
        margin-left: 0;
    }

    .card-premium {
        margin: 10px;
        border-radius: 16px;
    }

    .min-h-screen .floating {
        margin-right: 0 !important;
    }

    #todayBtn {
        margin-left: 0 !important;
    }

    .calendar-container {
        padding: 16px 8px;
    }

    .day-column {
        margin-bottom: 16px;
        padding: 12px;
    }

    .time-slot {
        min-height: 44px;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .btn-premium {
        min-height: 48px;
        font-size: 16px;
    }

    .modal-content-premium {
        margin: 16px;
        border-radius: 20px;
        max-height: calc(100vh - 32px);
    }

    .form-input {
        min-height: 48px;
        padding: 12px 16px;
    }

    .day-header {
        padding: 8px 12px;
        font-size: 14px;
    }

    .bg-white.rounded-lg.shadow-md.p-6.mb-6 {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .flex.items-center.mb-4 {
        flex-direction: column;
        text-align: center;
    }

    .flex.items-center.mb-4 img {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    .flex.items-center.justify-between {
        flex-direction: column;
        gap: 1rem;
    }

    .flex.items-center.justify-between>div {
        width: 100%;
        text-align: center;
    }

    /* .flex.items-center.justify-between>button {
        width: 120px;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    } */

    .grid.grid-cols-7 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .grid.grid-cols-7.gap-4.mb-4 {
        display: flex !important;
        overflow-x: auto;
        gap: 0.5rem !important;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem !important;
    }

    .grid.grid-cols-7.gap-4.mb-4>div {
        min-width: 80px;
        flex-shrink: 0;
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    #calendarGrid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    #calendarGrid>div {
        width: 100% !important;
    }

    #calendarGrid>div .space-y-2 {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    #calendarGrid .text-center.p-2.bg-gray-100.rounded-lg {
        margin-bottom: 0.5rem;
        padding: 0.75rem;
        font-weight: bold;
    }

    .time-slot {
        padding: 0.75rem !important;
        font-size: 0.875rem !important;
        min-height: 44px;
    }

    .action-button {
        padding: 1rem !important;
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem !important;
        max-width: calc(100vw - 2rem) !important;
        width: calc(100vw - 2rem) !important;
        max-height: calc(100vh - 2rem);
    }

    input,
    textarea,
    select {
        font-size: 16px !important;
        /* Prevent zoom on iOS */
        padding: 0.75rem !important;
    }

    .bg-blue-50.border.border-blue-200.rounded-lg.p-3 {
        padding: 0.75rem !important;
        margin-bottom: 0.5rem;
    }

    .text-sm.text-gray-600 {
        font-size: 0.75rem;
    }

    .footer-bottom--text {
        text-align: center;
        margin-top: 10px;
    }

    footer {
        padding: 20px 0 30px !important;
    }

    .section-title {
        font-size: 24px;
    }

    .featured-content {
        padding: 30px 20px;
    }

    .workshop-content {
        padding: 20px;
    }

    .text-end {
        text-align: left !important;
    }

    .social-icons {
        margin-top: 10px;
    }

    .accordion-item {
        border-left: 0 !important;
        border-right: 0 !important;
    }

    .accordion-button {
        padding: 10px !important;
        padding: 0;

        background: none;
        border: none;
        box-shadow: none !important;
    }

    .accordion-body {
        padding: 10px;
    }
}


@media (max-width: 600px) {
    #currentWeek {
        font-size: 14px;
    }

    p.text-sm.text-gray-600 {
        font-size: 14px;
    }

    .read-more {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 45px;
    }

    .read-more i {
        font-size: 12px;
    }
}


@media (max-width: 576px) {
    .search-container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 560px) {
    .cc-compliance.cc-highlight .cc-deny {
        top: -99px !important;
    }
}

@media (max-width: 480px) {
    .time-slot {
        padding: 8px;
        font-size: 13px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .schedule-wrapper {
        padding: 15px;
    }

    .popup {
        max-width: 250px;
        min-width: 200px;
        padding: 15px;
    }

    .popup-image {
        height: 100px;
    }

    .btn-premium {
        padding: 12px 16px;
        font-size: 15px;
    }

    .text-2xl {
        font-size: 1.25rem !important;
    }

    .text-xl {
        font-size: 1.125rem !important;
    }

    .p-4 {
        padding: 0.75rem !important;
    }

    .px-4 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .z-50 {
        z-index: 9999999 !important;
    }

    .datetime-container {
        margin: 15px 8px;
    }

    /* .font-16pt {
        font-size: 14pt;
    } */

    .form-input-workshop {
        padding: 16px 55px 16px 18px;
        font-size: 16px;
    }

    .calendar-icon {
        top: 25px;
        font-size: 20px;
        right: 5px;
        padding: 10px;
    }

    .datetime-picker {
        padding: 18px;
    }

    .picker-header {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .picker-select {
        padding: 14px 16px;
        font-size: 16px;
    }

    .btn-custom {
        padding: 14px 22px;
        font-size: 16px;
        min-width: 110px;
    }
}

@media (max-width: 430px) {
    .cc-compliance.cc-highlight .cc-deny {
        top: -116px !important;
    }

    .cc-window.cc-floating {
        max-width: 100% !important;
    }
}

@media (max-width: 375px) {
    .header-links a {
        font-size: 12px !important;
    }

    .flex.items-center.space-x-3 {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
}

/* min width  */

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1170px !important;
    }
}

/* Fixed positioning for desktop */
@media (min-width: 1024px) {
    .main-nav.fixed-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    .breadcrumb-section.fixed-nav {
        position: fixed;
        top: 55px;
        left: 0;
        width: 100%;
    }

    .main-content.fixed-nav-padding {
        padding-top: 120px;
        /* main-nav (~56px) + breadcrumb (~40px) */
    }
}

@media (min-width: 768px) {
    .accordion {
        display: none;
    }
}

@media (min-width: 576px) {
    .header-logo {
        padding-left: 15px;
        padding-right: 15px;
    }
}