/**
 * TMS Content Management System
 * @version 4.x
 * @author TMS Holdings <contact@thuongmaiso.vn>
 * @copyright (C) 2009-2021 TMS Holdings. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://thuongmaiso.vn
 */

/* Các tùy chỉnh CSS của giao diện nên để vào đây */

.title_teacher{
    margin-top: 10px;
    padding: 1.4rem;
    background: #0aad69;
    border-radius: 0.6rem;
    font-size: 1.5rem;
    color: #fff;
    line-height: 1.8;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    font-family: 'Oswald', sans-serif;
    -ms-align-items: center;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    justify-content: flex-start;
    -webkit-justify-content: flex-start;
    flex-direction: column;
    -webkit-flex-direction: column;
    align-items: stretch;
    -webkit-align-items: stretch;
    flex-grow: 1;
    
}
.review_imgteacher{
    border-radius: 50%;
 background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
   margin-bottom: 5px;
    justify-content: center;
    height: 100%;
    transition: transform 0.3s ease;   
}
.description{
margin-bottom: 1.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 9.6rem;
    flex-grow: 80;
    font-size: 20px;
    margin: 10px 0;
    color: #333;
    font-family: 'Oswald', sans-serif;
}

.review_imgbangvang{
    border-radius: 50%;
 background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
   margin-bottom: 5px;
    justify-content: center;
    height: 100%;
    transition: transform 0.3s ease;   
}
#tms_home_sanpham {
    font-family: 'Oswald', sans-serif;
    position: relative;
    padding: 10px 0px 10px 0px;
    background: #fff;
    background: linear-gradient(180deg, rgb(245 245 245 / 42%) 0%, rgb(10 173 105 / 26%) 35%, rgba(0, 212, 255, 0) 100%);
    margin: auto;
}


#tms_home_about
{
    width: 100%;
    padding-bottom: 30px;
    margin: auto;
    background: url(../images/bg-client.jpg) center center no-repeat;
    background-size: cover;
}
#tms_home_teacher
{
    width: 100%;
    padding-bottom: 30px;
    margin: auto;
    background: url(../images/bg_news.jpg) center center no-repeat;
    background-size: cover;
}

#tms_home_bangvang
{
    width: 100%;
    padding-bottom: 30px;
    margin: auto;
        background-image: linear-gradient(#f7f3f3, #8BC34A);
    background-size: cover;
}

#tms_home_review
{
    position: relative;
    padding: 50px 0px 20px 0px;
    background-image: url(../images/bghuongdan.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    margin: auto;
    font-family: SVN-Anastasia;
}
.tms_block_home_title h2 {
    margin: 0;
    display: inline-block;
    font-size: 32px;
    padding: 10px 10px;
    position: relative;
     font-weight: 500;
    color: #df1d25;
       font-family: SVN-Anastasia;
}
.tms_block_home_title {
         font-family: SVN-Anastasia;
    display: inline-block;
    width: 100%;
    text-align: center;
    color: #df1d25;
    font-size: 32px;
    font-weight: 500;
    position: relative;
    text-transform: capitalize;
}

#tms_home_album
{
   margin: auto;
    padding: 6px 0px 6px 0px;
    background: -webkit-gradient(linear, left top, right top, from(#00b14b), to(#f7ead2));
}


/* Mỗi ô */
.album-demo .album-card {
    position: relative;
    padding: 20px 15px;
}

/* Hai tờ giấy lệch phía sau */
.album-demo .album-card::before,
.album-demo .album-card::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    top: 15px;
    bottom: 25px;
    background: #ffffff;
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    z-index: 0;
}

.album-demo .album-card::before {
    transform: rotate(-4deg);
}

.album-demo .album-card::after {
    transform: rotate(3deg);
}

/* Khung chính */
.album-demo .album-main {
    position: relative;
    background: #ffffff;
    box-shadow: 0 18px 30px rgba(0,0,0,0.18);
    padding: 10px 10px 18px;
    text-align: center;
    z-index: 1;
}

/* Hình */
.album-demo .album-img img {
    width: 100%;
    height: 230px;      /* tăng/giảm cho đúng tỉ lệ */
    object-fit: cover;
    display: block;
}

/* Tiêu đề */
.album-demo .album-caption {
    margin-top: 10px;
}

.album-demo .album-caption a {
    display: block;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

/* Ẩn mô tả (demo không có mô tả) */
.album-demo .album-caption p {
    display: none;
}

/* Màu chữ từng ô giống demo:
   1: xanh lá, 2: tím, 3: cam, 4: xanh dương, 5: đỏ, 6: xanh dương */
.album-demo .col-md-8:nth-child(1) .album-caption a {
    color: #69b32b;
}

.album-demo .col-md-8:nth-child(2) .album-caption a {
    color: #a02a9f;
}

.album-demo .col-md-8:nth-child(3) .album-caption a {
    color: #f15a24;
}

.album-demo .col-md-8:nth-child(4) .album-caption a {
    color: #0091ff;
}

.album-demo .col-md-8:nth-child(5) .album-caption a {
    color: #e32929;
}

.album-demo .col-md-8:nth-child(6) .album-caption a {
    color: #0056d6;
}
/* Tờ giấy phía sau – mặc định */
.album-demo .album-card::before,
.album-demo .album-card::after {
    transition: all 0.35s ease-in-out;
}

/* Khi hover: chỉ tờ giấy phía sau xoay */
.album-demo .album-card:hover::before {
    transform: rotate(-6deg) translateY(-3px);
}

.album-demo .album-card:hover::after {
    transform: rotate(6deg) translateY(-3px);
}

/* Khung chính hoàn toàn đứng yên */
.album-demo .album-main {
    transform: none !important;
    box-shadow: 0 18px 30px rgba(0,0,0,0.18);
}

/* Ảnh KHÔNG zoom */
.album-demo .album-main .album-img img {
    transform: none !important;
    transition: none !important;
}

#tms_home_footer
{
    position: relative;
    padding: 50px 0px 20px 0px;
    background-image: url(../images/footer-bg.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    margin: auto;
    font-family: SVN-Anastasia;
}

.mn-about-wrapper {
  padding: 60px 0;
  background: #ffffff;
}

.mn-about-inner {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.mn-about-left {
  font-family: "Poppins", sans-serif;
}

.mn-about-subtitle {
  color: #d54a91;             /* màu hồng nhỏ phía trên */
  letter-spacing: 2px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.mn-about-title {
  font-size: 38px;
  font-weight: 700;
  color: #6a1b9a;             /* màu tím như demo */
  margin: 10px 0 18px;
  line-height: 1.2;
}

.mn-about-title a {
  color: inherit;
  text-decoration: none;
}

.mn-about-title a:hover {
  text-decoration: underline;
}

.mn-about-text {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.mn-about-desc {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Nếu bạn muốn list icon giống demo thì có thể đưa {ROW.description} thành <ul> trong admin
   và style thêm .mn-about-text ul li ở đây */

.mn-about-more {
  margin-top: 20px;
}

.mn-about-btn {
  display: inline-block;
  background: #ffb400;
  padding: 12px 28px;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.mn-about-btn:hover {
  background: #e09e00;
}

/* Ảnh bên phải kiểu blob như demo */
.mn-about-right {
  text-align: right;
}

.mn-about-image-blob {
  display: inline-block;
  position: relative;
}

.mn-about-image-blob img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 60% 40% 55% 45% / 40% 60% 45% 55%; /* tạo shape cong cong */
  border: 10px solid #ffcc33;                        /* viền vàng giống demo */
}

/* Responsive */
@media (max-width: 992px) {
  .mn-about-inner {
    grid-template-columns: 1fr;
  }
  .mn-about-right {
    text-align: center;
    margin-top: 20px;
  }
  .mn-about-title {
    font-size: 30px;
  }
}

