/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.dangky-hoc-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 6px;
/*     box-shadow: 0 10px 35px rgba(0,0,0,0.08); */
    border: 1px solid #e5e7eb;
}

.dangky-hoc-form label {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    display: block;
}

.dangky-hoc-form input,
.dangky-hoc-form select,
.dangky-hoc-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 12px 14px;
    min-height: 48px;
    background: #fff;
    transition: all 0.3s ease;
}

.dangky-hoc-form input:focus,
.dangky-hoc-form select:focus,
.dangky-hoc-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.dangky-hoc-form textarea {
    min-height: 120px;
}

.dangky-hoc-form input[type=submit] {
    width: 100%;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
}

.dangky-hoc-form input[type=submit]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37,99,235,0.25);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    min-width: 800px;
    background: #fff;
}

.table-scroll thead {
    background: #0b6b3a;
    color: #fff;
}

.table-scroll th,
.table-scroll td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.caee-box-icon p{
	font-family: "oswald", sans-serif;
	font-weight: bold;
}

.nav-dropdown .menu-item-has-children>a, .nav-dropdown .title>a, .nav-dropdown .nav-dropdown-col>a {
	color: #555!important;
}

.nav-dropdown-col.menu-item-has-children > a {
    position: relative;
    padding-right: 20px;
}

.nav-dropdown-col.menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

h2.caee-camnhan-title {
	font-family: "Lobster", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
}

.khoidong_btn a, .khoidong_btn .primary.is-outline{
	color: #fff;
}

.post-title {
	font-weight: 500!important;
	font-size: 16px;
}

h1.entry-title {
	font-weight: 500;
}

.page-wrapper h1 {
	font-weight: 700;
}

/* Wrapper */
.caee-readmore-box {
    position: relative;
    max-width: 100%;
}

/* Ẩn checkbox */
.caee-readmore-toggle {
    display: none;
}

/* Nội dung mặc định */
.caee-readmore-content {
    max-height: 500px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
    line-height: 1.8;
}

/* Hiệu ứng mờ cuối */
.caee-readmore-content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Khi mở */
.caee-readmore-toggle:checked ~ .caee-readmore-content {
    max-height: 3000px;
}

.caee-readmore-toggle:checked ~ .caee-readmore-content::after {
    opacity: 0;
}

/* Nút */
.caee-readmore-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: #0a6ebd;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.caee-readmore-btn:hover {
    background: #08599a;
}

/* Giữ định dạng nội dung bên trong */
.caee-readmore-content * {
    box-sizing: border-box;
}

/* Paragraph */
.caee-readmore-content p {
    margin-bottom: 12px;
}

/* Danh sách bullet */
.caee-readmore-content ul,
.caee-readmore-content ol {
    display: block !important;
    margin: 0 0 15px 20px !important;
    padding-left: 20px !important;
    list-style-position: outside !important;
}

/* Item list */
.caee-readmore-content li {
    display: list-item !important;
    list-style: inherit !important;
    margin-bottom: 8px;
    line-height: 1.7;
    white-space: normal !important;
}

/* Nếu Flatsome flex làm vỡ list */
.caee-readmore-content ul li,
.caee-readmore-content ol li {
    float: none !important;
    width: 100% !important;
    clear: both;
}

/* Text nút mặc định */
.caee-readmore-btn::before {
    content: "Xem thêm";
}

/* Text khi mở */
.caee-readmore-toggle:checked ~ .caee-readmore-btn::before {
    content: "Thu gọn";
}


.teacher-review-form {
    max-width: 700px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.teacher-review-form label {
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
    color: #333;
}

.teacher-review-form input,
.teacher-review-form select,
.teacher-review-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    margin-top: 8px;
    font-size: 15px;
    background: #fff;
}

.teacher-review-form textarea {
    min-height: 140px;
}

.rating-face {
    display: flex;
    gap: 15px;
    margin: 15px 0 20px;
    flex-wrap: wrap;
}

.rating-face .wpcf7-list-item {
    margin: 0;
}

.rating-face .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all .3s ease;
    background: #fafafa;
    font-weight: 500;
}

.rating-face .wpcf7-list-item label:hover {
    background: #f5f5f5;
    border-color: #999;
}

.rating-face input[type="radio"] {
    display: none;
}

.rating-face input[type="radio"]:checked + .wpcf7-list-item-label {
    color: #fff;
    background: #2e7d32;
    padding: 6px 10px;
    border-radius: 8px;
}

.teacher-review-form input[type="submit"] {
    width: 100%;
    background: #e53935;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
}

.teacher-review-form input[type="submit"]:hover {
    background: #c62828;
}


/* ===============================
   Responsive Mobile / Tablet
================================= */

/* Tablet */
@media (max-width: 849px) {
    .caee-readmore-content {
        max-height: 180px;
        line-height: 1.7;
        font-size: 15px;
    }

    .caee-readmore-content::after {
        height: 70px;
    }

    .caee-readmore-btn {
        padding: 9px 20px;
        font-size: 14px;
        border-radius: 24px;
        margin-top: 12px;
    }
	.custom-timeline .timeline-icon {
		left: 20px;
	}
}

/* Mobile */
@media (max-width: 549px) {
    .caee-readmore-box {
        width: 100%;
    }

    .caee-readmore-content {
        max-height: 140px;
        line-height: 1.6;
        font-size: 14px;
    }

    .caee-readmore-content::after {
        height: 60px;
        background: linear-gradient(
            rgba(255,255,255,0),
            rgba(255,255,255,0.95),
            #fff
        );
    }

    .caee-readmore-btn {
        display: block;
        width: fit-content;
        margin: 12px auto 0;
        padding: 10px 18px;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        border-radius: 20px;
    }
	.custom-timeline .timeline-icon {
		left: 20px;
	}
}

/* Mobile nhỏ */
@media (max-width: 390px) {
    .caee-readmore-content {
        max-height: 120px;
        font-size: 13px;
        line-height: 1.5;
    }

    .caee-readmore-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
	.custom-timeline .timeline-icon {
		left: 20px;
	}
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

.iconbox-ts .col-inner{
    transition: all .3s ease;
}

.iconbox-ts:hover .col-inner{
    background: #08a908 !important;
}

/* Đổi màu toàn bộ chữ */
.iconbox-ts:hover .icon-box-text,
.iconbox-ts:hover .icon-box-text h5,
.iconbox-ts:hover .icon-box-text h6,
.iconbox-ts:hover .icon-box-text p,
.iconbox-ts:hover .icon-box-text span{
    color: #fff !important;
}

/* Đổi màu icon SVG */
.iconbox-ts:hover .card-icon{
    color: #fff !important;
}

.iconbox-ts:hover .card-icon path{
    fill: #fff !important;
}

/* Hiệu ứng mượt */
.iconbox-ts .icon-box-text,
.iconbox-ts .card-icon,
.iconbox-ts .card-icon path{
    transition: all .3s ease;
}

.iconbox-ts .col-inner{
    transition: all .3s ease;
}

.iconbox-ts:hover .col-inner{
    background: #08a908 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

/* Quá trình phát triển */
.caee-tree{

    width:100%;
    margin:auto;

}

.tree-svg{

    width:100%;
    height:auto;
    display:block;

}

/* toàn bộ line */

.tree-svg line{

    fill:none;
    stroke:url(#lineGradient);
    stroke-width:6;
    stroke-linecap:round;
    stroke-linejoin:round;

}


/* Animation */

.draw{

    stroke-dasharray:2200;
    stroke-dashoffset:2200;

    animation:drawTree 2s ease forwards;

}

@keyframes drawTree{

    to{

        stroke-dashoffset:0;

    }

}


