* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    margin: 32px 50px;
    box-shadow: 0px 0px 18px 0px #0000001A;
}

.btn {
    border-radius: 2rem;
    background-color: #10BC69;
    color: white;
}

.navbar-brand {
    font-size: 24px;
    margin-left: 28px;
    color: #5F687B;
    font-weight: bold;
}

.collapse {
    margin-left: 300px;
}

.nav-item {
    margin-right: 16px;
    font-size: 14px;
}

.nav-link {
    color: #5F687B;
}

.btn-outline-success {
    font-size: 14px;
    margin-right: 12px;
}

.main {
    width: 1264.67px;
    margin-top: 90px;
}

.text-start {
    margin-left: 50px;
}

.col h3 {
    color: #5F687B;
}

.col p {
    color: #5F687B;
}

.btn-light {
    background-color: white;
    color: black;
}

.section_2 {
    margin-top: 90px;
}

.col-4 {
    background: #4444440A;
    margin-right: 16px;
    width: 325px;
    height: 200px;
    align-content: center;
}

.section_3 {
    margin-top: 40px;
}

.background-text {
    transform: translate(0%, 80%);
    font-weight: 800;
    color: #5F687B0D;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

.title {
    color: #5F687B;
}

.about p {
    color: #444444;
}

.section_3_content {
    margin-top: 48px;
}

.section_3_text h3 {
    font-size: 24px;
}

.section_3_text p {
    font-size: 14px;
}

.section_3_text_1 p {
    margin-bottom: 8px;
}

.section_3_text_2 {
    margin-top: 16px;
}

.section_4 {
    margin-top: 60px;
}

.section_4 .col-3 h2 {
    color: #10BC69;
}

.section_4 .col-3 p {
    color: #44444499;
    font-size: 15px;
}

.section_5 {
    margin-top: 60px;
    background: #4444440A;
    padding: 20px;
}

.section_5 .services {
    margin-bottom: 24px;
}

.section_5 .services p {
    color: #444444;
}

.section_5_content .col {
    background: #fff;
    border: 1px solid #44444426;
    padding: 20px;
    margin: 10px;
}

.box-icon {
    background-color: #10BC69;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 128px;
}

.section_6 {
    margin-top: 60px;
}

.section_6 .services {
    margin-bottom: 36px;
}

.section_6 .services p {
    color: #444444;
}

.section_6_content .col img {
    width: 300px;
    height: 200px;
    margin: 8px 8px;
}

.section_7 {
    margin-top: 60px;
    background: #4444440A;
    padding: 20px;
}

.section_7 .services {
    margin-bottom: 36px;
}

.section_7 .services p {
    color: #444444;
}

.section_7_content .col .section_7_content_1 {
    background: #44444408;
    padding: 20px;
    margin: 10px;
    text-align: start;
}

.section_7_content .col .img-box {
    transform: translate(0%, -25%);
}

.section_7_content .col .img-box img {
    border: 6px solid #F9F9F9;
    width: 90px;
    height: 90px;
    top: 170.84px;
    left: 40px;
    opacity: 1;
    border-width: 6px;
    border-radius: 45px;
}

.section_7_content .col .img-box h3 {
    font-size: 18px;
}

.section_7_content .col .img-box p {
    font-size: 14px;
    color: #444444CC;
}

.carousel-indicators button {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    border: 1.5px solid #10BC69 !important;
}

.carousel-indicators .active {
    background-color: #10BC69 !important;
}

.section_8 {
    background-color: #10BC69;
    color: #FFFFFF;
    padding: 52px;
}

.section_8 .btn {
    border: 1.5px solid #FFFFFF;
}

.section_9 {
    margin-top: 30px;
}

.section_9 .services p {
    color: #444444;
}

.section_9 .services {
    margin-bottom: 36px;
}

.section_9_content .col img {
    width: 300px;
    height: 300px;
}

.section_9_content .col .content-box {
    box-shadow: 0px 2px 15px 0px #0000001A;
    text-align: start;
    width: 250px;
    background: #FFFFFF;
    margin-left: 48px;
    transform: translate(0%, -50%);
    padding: 8px;
}

.section_9_content .col .content-box h4 {
    color: #5F687B;
    font-size: 16px;
}

.section_9_content .col .content-box p {
    color: #444444CC;
    font-size: 13px;
}

.section_10 .services {
    margin-bottom: 36px;
}

.section_10_content {
    box-shadow: 0px 0px 18px 0px #0000001A;
    padding: 16px;
    height: 100%;
}

.section_10_content_1 h4 {
    color: #5F687B;
    font-size: 18px;
}

.section_10_content_1 p {
    color: #5F687B;
    margin-left: 24px;
    font-size: 14px;
}

.section_10_content_1 img {
    max-width: 100%;
    height: auto;
    margin-top: 32px;
}

.section_10 .col-4 {
    background-color: #fff;
}

.section_10_content .d-flex {
    padding-bottom: 10px;
}

.overlay {
    background: #4444440A;
    margin: 50px 50px;
    padding: 36px;
}

.overlay h4 {
    color: #5F687B;
}

.overlay p {
    margin-top: 16px;
    color: #444444;
}

.overlay_content_1 h4 {
    color: #444444;
    margin-bottom: 24px;
}

.overlay_content_1 p {
    font-size: 14px;
    color: #444444;
    line-height: 4px;
}

.overlay_text1 {
    margin-bottom: 36px;
}

.overlay_content_2 h5 {
    font-size: 16px;
    color: #5F687B;
    margin-bottom: 24px;
}

.overlay_content_2 p {
    font-size: 12px;
    color: #5F687B;
}

.overlay_content_3 h5 {
    font-size: 16px;
    color: #5F687B;
    margin-bottom: 24px;
}

.overlay_content_3 p {
    font-size: 12px;
    color: #5F687B;
}

/* ================== MOBILE RESPONSIVE 390px ================== */
@media (max-width: 390px) {

    /* Toàn bộ container */
    .container,
    .main {
        padding: 0 10px;
        width: 100% !important;
    }

    /* ===== Navbar ===== */
    .navbar-collapse {
        display: none !important;
    }

    .navbar-toggler {
        display: block !important;
    }

    .navbar-nav {
        flex-direction: column !important;
        align-items: center;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    /* ===== Section 1 (Intro) ===== */
    .section_1 .row {
        flex-direction: column !important;
        align-items: center;
        text-align: center !important;
    }

    .section_1 img {
        max-width: 100%;
        height: auto;
        margin: 15px 0;
    }

    /* ===== Section 2 (Features/3 cột) ===== */
    .section_2 .col-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
        text-align: center !important;
    }

    .section_2 img {
        max-width: 80%;
        height: auto;
        margin: 0 auto;
    }

    /* ===== Section 3 (Text + Image) ===== */
    .section_3_content {
        flex-direction: column !important;
        align-items: center;
    }

    .section_3_content .col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
        text-align: center !important;
    }

    .section_3_content img {
        max-width: 90%;
        height: auto;
        margin: 0 auto;
    }

    /* ===== Section 4 (Statistics/4 cột) ===== */
    .section_4 .col-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 15px;
        text-align: center !important;
    }

    /* ===== Section 5 (Services/3 cột) ===== */
    .section_5_content .col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
        text-align: center !important;
    }

    .section_5_content img {
        max-width: 70%;
        height: auto;
        margin: 0 auto 10px auto;
    }

    /* ===== Section 6 (Portfolio images) ===== */
    .section_6_content .col img {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* ===== Section 7 (Testimonials/3 cột) ===== */
    .section_7_content .col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
        text-align: center !important;
    }

    /* ===== Section 8 (Call to Action) ===== */
    .section_8 button {
        width: 100% !important;
        margin-bottom: 10px;
    }

    /* ===== Section 9 (Team/3 cột) ===== */
    .section_9_content .col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
        text-align: center !important;
    }

    .section_9_content img {
        max-width: 80%;
        height: auto;
        margin: 0 auto 10px auto;
    }

    /* ===== Footer ===== */
    footer .row {
        flex-direction: column !important;
        text-align: center !important;
    }

    /* Các text nhỏ, font scale mobile */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    span {
        font-size: calc(12px + 0.5vw) !important;
    }
}

/* ================== CMS ADMIN PANEL ================== */
#openCMSBtn {
    display: flex;
    align-items: center;
    gap: 5px;
}

#openCMSBtn svg {
    width: 18px;
    height: 18px;
}

/* CMS Dashboard */
.cms-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    overflow-y: auto;
}

.cms-header {
    background-color: #10BC69;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cms-header .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    font-size: 12px;
    padding: 4px 12px;
}

.cms-header .btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
}

.cms-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.btn-close-dashboard {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
    transition: opacity 0.3s;
}

.btn-close-dashboard:hover {
    opacity: 0.7;
}

.cms-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.cms-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.cms-content {
    margin-top: 20px;
}

.cms-forms {
    padding-right: 20px;
}

.cms-tables {
    padding-left: 20px;
}

.cms-form-card,
.cms-table-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cms-form-card h5,
.cms-table-card h5 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.cms-form-card .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.cms-form-card .form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.cms-form-card .form-control:focus {
    border-color: #10BC69;
    box-shadow: 0 0 0 0.2rem rgba(16, 188, 105, 0.25);
}

.cms-form-card .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 8px 20px;
}

.cms-form-card .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #333;
}

.table tbody td {
    vertical-align: middle;
}

.table .btn-sm {
    padding: 4px 12px;
    font-size: 13px;
    margin-right: 5px;
}

/* Responsive cho CMS Dashboard */
@media (max-width: 768px) {
    .cms-content {
        flex-direction: column;
    }

    .cms-forms,
    .cms-tables {
        padding: 0;
        margin-bottom: 20px;
    }

    .cms-container {
        padding: 15px;
    }

    .cms-title {
        font-size: 28px;
    }

    .table-responsive {
        overflow-x: auto;
    }
}

@media (max-width: 390px) {
    .cms-header {
        padding: 10px 15px;
    }

    .cms-header h3 {
        font-size: 20px;
    }

    .cms-container {
        padding: 10px;
    }

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

    .cms-form-card,
    .cms-table-card {
        padding: 15px;
    }
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.5;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #10BC69;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}