/*
Theme Name: Giao Diện Thiét Kế Website - Kandemy
Description: 
Author: kandemy.edu.vn
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


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


}


/* --- TITLE MÀU TRẮNG --- */
.accor-custom .accordion-title,
.accor-custom .accordion-title span,
.accor-custom .accordion-title * {
  color: #ffffff !important;
}

/* Nền tiêu đề để chữ trắng nổi bật (tuỳ chọn) */
/* Nếu không cần thì xoá phần này */
.accor-custom .accordion-title {
  background: rgba(255, 255, 255, 0.08);
}

/* Hover tiêu đề */
.accor-custom .accordion-title:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* --- ACCORDION MƯỢT HƠN --- */
.accor-custom .accordion-inner {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    max-height 0.5s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* Khi mở */
.accor-custom .accordion-title[aria-expanded="true"] + .accordion-inner {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

/* Icon xoay mượt */
.accor-custom .toggle i {
  transition: transform 0.3s ease;
}

.accor-custom .accordion-title[aria-expanded="true"] .toggle i {
  transform: rotate(180deg);
}

/* Khung đẹp */
.accor-custom {
  border: 1px solid #ffffff30;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  background: #ffffff10;
  backdrop-filter: blur(4px);
  transition: box-shadow 0.3s ease;
}

.accor-custom:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}


.accordion .toggle {
    top: 0.8em !important;
    left: 567px !important;
  
}


.accordion-title {
    
    padding: 1em 2.3em !important;
    
}


/* ==== FORM LAYOUT ==== */
.form-row {
   
    gap: 20px;
 
    flex-wrap: wrap;
}

.form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==== LABEL ==== */
.form-row label,
.form-col label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
    color: #333;
}

/* Dấu * màu đỏ */
.form-row label span.wpcf7-required {
    color: #e63946 !important;
}

/* ==== INPUT / SELECT / TEXTAREA ==== */
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    background: #fff;
    transition: all 0.25s ease;
	    height: 50px;
}

/* Hover + Focus */
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #2fa8ff;
    box-shadow: 0 0 0 2px rgba(47, 168, 255, 0.2);
    outline: none;
}

/* Textarea */
.form-row textarea {
    height: 120px;
    resize: vertical;
}

/* ==== SUBMIT BUTTON ==== */
.form-row input[type="submit"] {
    background: #87c831 ;
    color: #fff;
    font-size: 16px;
    border: none;
    padding: 14px 28px;
    width: auto;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.25s;
    font-weight: 600;
	width: 100%;
	height: 65px
}

.form-row input[type="submit"]:hover {
    background: #ea258f;
}

/* ==== MOBILE RESPONSIVE ==== */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}



/* ==== CUSTOM BLOG BOX STYLE ==== */
.box.box-blog-post {
    background: #fff;
    border-radius: 14px; /* Bo góc tổng */
    overflow: hidden; /* Hình bo theo luôn */
    padding: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1); /* Bóng nhẹ */
    transition: all 0.3s ease;
    position: relative;
}

/* Hover lên box */
.box.box-blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* ==== IMAGE BO GÓC ==== */
.box.box-blog-post .box-image img {
    border-radius: 12px; /* Bo góc hình */
    object-fit: cover;
}

/* ==== TEXT AREA ==== */
.box.box-blog-post .box-text-inner {
    padding-top: 12px;
}

/* Title */
.box.box-blog-post h5.post-title a {
    font-weight: 700;
    line-height: 1.35;
    display: block;
    color: #333;
    transition: color 0.25s;
}

.box.box-blog-post h5.post-title a:hover {
    color: #04a75a;
}

/* Excerpt */
.box.box-blog-post .from_the_blog_excerpt {
    margin-top: 8px;
    color: #555;
    font-size: 15px;
}

/* Divider */
.box.box-blog-post .is-divider {
    margin: 10px 0 12px;
    width: 50px;
    height: 3px;
    background: #04a75a;
    border-radius: 3px;
}

/* ==== DATE BOX ==== */
.box.box-blog-post .post-date {
    background: #87c831;
    color: #fff;
    padding: 8px 0;
    border-radius: 10px;
    width: 48px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-weight: 600;
}

.box.box-blog-post .post-date-day {
    font-size: 18px;
}

.box.box-blog-post .post-date-month {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}


.is-divider {
    display: none;
}

a.tritam-card-img {
    /* z-index: 10; */
    position: relative;
}

.tritam-card-content {
    background: #04a75a;
    color: #fff;
    padding: 22px;
    border-radius: 14px;
    margin-top: -40px;
    width: 88%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    position: relative !important;
}
.tritam-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.4;
    color: #fff !important;
}


/* --- Style chung cho Form --- */
.tritam-contact-form input.form-input, 
.tritam-contact-form textarea.form-input {
    border: 1px solid #ddd; /* Viền màu xám nhạt */
    border-radius: 4px; /* Bo góc nhẹ */
    padding: 30px 15px; /* Khoảng cách chữ */
    background-color: #fff;
    font-size: 15px;
    width: 100%;
    margin-bottom: 5px; /* Khoảng cách giữa các ô */
    box-shadow: none; /* Bỏ bóng mặc định của theme */
    color: #555;
}

/* Hiệu ứng khi click vào ô nhập */
.tritam-contact-form input.form-input:focus, 
.tritam-contact-form textarea.form-input:focus {
    border-color: #4080ff; /* Đổi màu viền khi nhập */
    outline: none;
}

/* --- Style cho Nút Gửi (Màu xanh dương) --- */
.tritam-contact-form input.wpcf7-submit.tritam-submit-btn {
    background-color: #3b82f6; /* Màu xanh giống ảnh */
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    padding: 10px 40px; /* Độ rộng nút */
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 5px;
}

/* Hiệu ứng hover nút gửi */
.tritam-contact-form input.wpcf7-submit.tritam-submit-btn:hover {
    background-color: #2563eb; /* Màu đậm hơn khi di chuột */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive cho mobile: Đảm bảo nút ko bị full width nếu không muốn */
@media (max-width: 600px) {
    .tritam-contact-form input.wpcf7-submit.tritam-submit-btn {
        width: 100%; /* Trên mobile nút sẽ full chiều rộng */
    }
}



.admission-text {
    position: relative !important;
    top: -21px !important;
    padding: 0px 20px !important;
}


 .post-date-admission {
    background: #87c831;
    color: #fff;
    padding: 4px 0 !important;
    border-radius: 6px !important;
    width: 48px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    top: -35px !important;
    left: 20px !important;
    position: relative !important;
}