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

/*************** ADD CUSTOM CSS HERE.   ***************/
:root {
    --control-size: 26px;
    /* chỉnh kích thước ở đây */
    --accent: #ff7a00;
    /* màu cam */
    --border: #cfcfcf;
    --focus-ring: rgba(255, 122, 0, 0.33);
    --main-color:#7B9E0F;
}
main#main {
    background-image: url(images/bg.jpg);
}


/* Course Registration Form Styles */
/* bố cục label để dễ click */
.ctrl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-size: 14px;
}

/* Ẩn appearance mặc định để custom */
.ctrl input[type="checkbox"],
.ctrl input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--control-size);
    height: var(--control-size);
    min-width: var(--control-size);
    min-height: var(--control-size);
    margin: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 4px;
    /* mặc định cho checkbox, sẽ override cho radio */
    border: 2px solid var(--border);
    background-color: white;
    transition: all .15s ease;
    box-sizing: border-box;
    position: relative;
}

/* radio => hình tròn */
.ctrl input[type="radio"] {
    border-radius: 50%;
}

/* khi checked: nền cam và border */
.ctrl input[type="checkbox"]:checked,
.ctrl input[type="radio"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* dot cho radio (chấm ở giữa) */
.ctrl input[type="radio"]::after {
    content: "";
    width: calc(var(--control-size) * 0.48);
    height: calc(var(--control-size) * 0.48);
    border-radius: 50%;
    transform: scale(0);
    transition: transform .12s ease;
    background: white;
    display: block;
}

/* hiển thị dot khi checked */
.ctrl input[type="radio"]:checked::after {
    transform: scale(1);
}

/* dấu tick cho checkbox */
.ctrl input[type="checkbox"]::after {
    content: "";
    width: calc(var(--control-size) * 0.55);
    height: calc(var(--control-size) * 0.32);
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform .12s ease;
    box-sizing: border-box;
    display: block;
    margin-left: 1px;
}

/* hiển thị tick khi checked */
.ctrl input[type="checkbox"]:checked::after {
    transform: rotate(-45deg) scale(1);
}

/* hiệu ứng focus (keyboard accessibility) */
.ctrl input[type="checkbox"]:focus,
.ctrl input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 6px var(--focus-ring);
    border-color: var(--accent);
}

/* hover nhẹ */
.ctrl input[type="checkbox"]:not(:disabled):hover,
.ctrl input[type="radio"]:not(:disabled):hover {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

/* disabled */
.ctrl input[type="checkbox"]:disabled,
.ctrl input[type="radio"]:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* nếu muốn control thật to: override --control-size */
.big {
    --control-size: 36px;
    font-size: 16px;
}
/* You can customize these styles as needed */


.cr-register-wrap {
    max-width: 760px;
    margin: 30px auto;
    text-align: center;
   
}

.cr-title {
    font-size: 40px;
    color: #6b9b00;
    font-weight: 800;
    margin: 10px 0 6px;
    letter-spacing: 1px;
}

.cr-sub {
    margin-bottom: 24px;
    color: #111;
    font-size: 16px;
}

.cr-sub a {
    font-weight: 700;
    color: #222;
    text-decoration: none;
}

.cr-form-card {
    background: #fff;
    padding: 38px 54px;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.cr-field {
    text-align: left;
    margin-bottom: 22px;
}

.cr-field label {
    display: block;
    font-weight: 400;
    margin-bottom: 8px;
    color: #111;
}

.cr-field input[type="text"],
.cr-field input[type="email"],
.cr-field input[type="password"] {
    width: 100%;
    padding: 20px 16px;
    border-radius: 6px;
    border: none;
    background: #ecf4db;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.02);
    font-size: 16px;
    outline: none;
    transition: box-shadow .12s ease;
}

.cr-field input:focus {
    box-shadow: 0 0 0 3px rgba(107, 155, 0, 0.12);
}

.cr-submit-wrap {
    text-align: center;
    margin-top: 10px;
}

.cr-btn {
    display: inline-block;
    padding: 0px 34px;
    border-radius: 6px;
    background: var(--main-color);
    color: #fff;
    border: none;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.cr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#cr-result {
    margin-top: 16px;
    font-weight: 700;
}

#cr-result.cr-success {
    color: #2a7a2a;
}

#cr-result.cr-error {
    color: #c0392b;
}
.h1_title, .block_title {
    background: #7B9E0F;
    margin-bottom: 30px;
    padding: 15px;
}
.date-post {
    background: #fff;
    padding: 18px;
    text-align: center;
    font-weight: bold;
    font-size: 50px;
    border-radius: 20px;
    color: #7B9E0F;
    line-height: 55px;
}
h1.entry-title {
    font-size: 50px;
    color: #fff;
    text-align: left;
    text-shadow: -2px 1px 2px #000;
    margin-bottom: 0px;
    text-transform: uppercase;
}
.custom_flex {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    padding-top: 25px;
    align-items: baseline;
}
.single_content h3 {
    font-size: 40px;
    color: #7B9E0F;
}
h2.entry-title {
    text-align: center;
    color: #fff;
    font-size: 50px;
    margin-bottom: 0px;
}
form#form-dang-ky-khoa-hoc {
    max-width: 1000px;
    background: #fff;
    padding: 30px;
    display: block;
    margin: 0px auto;
    border-radius: 10px;
    box-shadow: 10px 10px 10px #eee;
}
.form-control label {
    font-weight: 500;
    font-size: 14px;
    color: #808080;
}
.form-control input {
    background: #7B9E0F33;
    height: 50px;
    border-radius: 4px;
    font-size: 16px;
}
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.checkbox-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.form-control textarea {
    background: #e5eccf;
    border-radius: 5px;
}
label.title {
    color: #000;
    padding-bottom: 10px;
    font-weight: 400;
    font-size: 16px;
    padding-top: 10px;  
}
.form-control label {
    color: #000;
}
button.btn_submit {
    background: #7d9f07;
    width: 100%;
    padding: 10px 20px;
    border-radius: 10px;
    color: #fff;
}
.info-bank {
    padding: 10px;
    background: #e5eccf;
    border-radius: 10px;
    border: dotted 3px #ccc;
}
strong.bank_number {
    padding: 5px 10px;
    background: #fff;
    border-radius: 5px;
}
.single_content {
    max-width: 1000px;
    display: block;
    margin: 0px auto !important;
}
.form-control select {
    background: #e5eccf;
    height: 50px;
    border-radius: 5px;
}
/* Container form */
#custom-login-form {
    max-width: 360px;
    margin: 50px auto;
    padding: 30px 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: "Segoe UI", Roboto, sans-serif;
}

/* Label */
#custom-login-form label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Input */
#custom-login-form input[type="text"],
#custom-login-form input[type="password"] {
    width: 100%;
    padding: 20px 16px;
    border-radius: 6px;
    border: none;
    background: #ecf4db;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.02);
    font-size: 16px;
    outline: none;
    transition: box-shadow .12s ease;
}

#custom-login-form input[type="text"]:focus,
#custom-login-form input[type="password"]:focus {
    border-color: #7B9E0F;
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.3);
}

/* Button */
#custom-login-form button {
    width: 100%;
    padding: 5px 12px;
    background: var(--main-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#custom-login-form button:hover {
    background: #000;
}

/* Message area */
#custom-login-form #login-message {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

/* Success & error message style (nếu có thêm class) */
#custom-login-form #login-message.success {
    color: #28a745;
}

#custom-login-form #login-message.error {
    color: #dc3545;
}

/* Form forgot password */
#custom-forgot-form {
    max-width: 360px;
    margin: 50px auto;
    padding: 30px 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: "Segoe UI", Roboto, sans-serif;
}

/* Label */
#custom-forgot-form label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Input */
#custom-forgot-form input[type="text"] {
    width: 100%;
        padding: 20px 16px;
        border-radius: 6px;
        border: none;
        background: #ecf4db;
        box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.02);
        font-size: 16px;
        outline: none;
        transition: box-shadow .12s ease;
}

#custom-forgot-form input[type="text"]:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.3);
}

/* Button */
#custom-forgot-form button {
    width: 100%;
    padding: 5px 12px;
    background: var(--main-color);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#custom-forgot-form button:hover {
    background: #000;
}

/* Message */
#custom-forgot-form #forgot-message {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

/* Success & error style */
#custom-forgot-form #forgot-message.success {
    color: #28a745;
}

.account-custom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-custom__name {
    font-weight: 600;
    margin-right: 8px;
}

.account-custom__btn {
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #ddd;
}

.account-custom__btn--account {
    background: #f5f5f5;
}

.account-custom__btn--logout {
    background: #fff;
    color: var( --main-color);
    border-color: #f2c2c2;
}

/* Success & error style */
#custom-forgot-form #forgot-message.success {
    color: #28a745;
}

#custom-forgot-form #forgot-message.error {
    color: #dc3545;
}

/* Container chung */
.cr-account-wrap {
    max-width: 100%;
    margin: 40px auto;
    padding: 25px 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    font-family: "Segoe UI", Roboto, sans-serif;
}

/* Tiêu đề chính */
.cr-account-wrap h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Tabs menu */
.cr-tabs-nav {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
    gap: 15px;
}

.cr-tabs-nav li {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    margin-bottom: 0px;
    margin-left: 0px !important;
    border: solid 1px #eee;
    border-bottom: unset;
}

.cr-tabs-nav li:hover {
    background: #f7f7f7;
    color: #222;
}

.cr-tabs-nav li.active {
    background: var(--main-color);
    color: #fff;
    font-weight: 600;
}
.account-custom__info span {
    font-size: 16px;
}
/* Nội dung tab */
.cr-tabs-content {
    padding: 10px 0;
}
.account-custom__actions a {
    font-size: 16px;
    margin-right: 10px;
}
.cr-tab-pane {
    display: none;
}

.cr-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
.thumb-header img {
    height: 500px;
    object-fit: cover;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bảng trong tab */
.cr-account-table,
.cr-demo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.cr-account-table th,
.cr-account-table td,
.cr-demo-table th,
.cr-demo-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    font-size: 14px;
}

.cr-account-table th,
.cr-demo-table th {
    background: #f9fafb;
    text-align: left;
    font-weight: 600;
    color: #333;
}

/* Form đổi mật khẩu */
#cr-change-pass-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    align-content: center;
    align-items: center;
}

#cr-change-pass-form input[type="password"] {
    flex: 1 1 45%;
    padding: 20px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#cr-change-pass-form input[type="password"]:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.3);
}

#cr-change-pass-form button {
    padding: 5px 20px;
    background: var(--main-color);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

#cr-change-pass-form button:hover {
    background: #357ab7;
}

/* Thông báo đổi mật khẩu */
#cr-change-pass-msg {
    margin-top: 10px;
    font-size: 14px;
}

#cr-change-pass-msg.success {
    color: #28a745;
}

#cr-change-pass-msg.error {
    color: #dc3545;
}
/* Bọc input + icon */
.cr-pass-field {
    position: relative;
    margin-bottom: 10px;
}

.cr-pass-field input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

/* Icon mắt */
.toggle-pass {
    position: absolute;
    right: 12px;
    top: 60%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 16px;
}
form#cr-change-pass-form span.toggle-pass {
    top: 50%;
}
.toggle-pass:hover {
    color: #333;
}
.ux-menu-title.flex {
    font-size: 18px;
    font-weight: 500;
}
div#tab-courses {
    overflow: auto;
}

label.ctrl.custom-radio span {
    font-weight: 500;
}
div#tab-posts {
    overflow: auto;
}
/* Spinner loading trong nút */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
@media (max-width: 780px) {
    .cr-form-card {
        padding: 26px;
    }

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

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .cr-account-wrap {
        padding: 25px 10px;
    }
    .cr-account-table th,
    .cr-demo-table th {
        background: #f9fafb;
        text-align: left;
        font-weight: 600;
        color: #333;
        width: 130px;
        font-size: 10px;
        padding: 5px;
    }
    .cr-tabs-nav li {
        font-size: 13px;
    }
    ul.nav.header-bottom-nav.nav-center.mobile-nav.nav-uppercase {
        width: max-content;
    }
    .overlow-x {
        overflow-x: auto;
    }
    .overlow-x ul.cr-tabs-nav {
        width: max-content;
    }
	.thumb-header img {
		height: 100%;
		object-fit: cover;
	}
	h1.entry-title {
		font-size: 33px;
		color: #fff;
		text-align: left;
		text-shadow: -2px 1px 2px #000;
		margin-bottom: 0px;
		text-transform: uppercase;
	}
	h2.entry-title {
		text-align: center;
		color: #fff;
		font-size: 29px;
		margin-bottom: 0px;
	}

}