/* OTM Forms Styling */
        .otm-form-container {
            /*max-width: 450px;*/
            margin: 40px auto;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .otm-form-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            text-align: center;
            position: relative;
        }

        .otm-form-header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" viewBox=\"0 0 60 60\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"none\" fill-rule=\"evenodd\"%3E%3Cg fill=\"%23ffffff\" fill-opacity=\"0.1\"%3E%3Cpath d=\"M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z\"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
        }

        .otm-form-header h3 {
            margin: 0;
            font-size: 24px;
            font-weight: 600;
            position: relative;
            z-index: 1;
        }

		.otm-form-header h1,
		.otm-form-header h2,
		.otm-form-header h3 {
			color: white !important;
		}


        .otm-form-header .subtitle {
            margin: 8px 0 0 0;
            opacity: 0.9;
            font-size: 14px;
            position: relative;
            z-index: 1;
        }

        .otm-form-body {
            padding: 35px;
        }

        .otm-form-group {
            margin-bottom: 25px;
        }

        .otm-form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #374151;
            font-size: 14px;
        }

        .otm-form-input {
            width: 100%;
            /*padding: 12px 16px;*/
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
            box-sizing: border-box;
            background: #f9fafb;
        }

        .otm-form-input:focus {
            outline: none;
            border-color: #667eea;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            transform: translateY(-1px);
        }

        .otm-form-input:invalid {
            border-color: #ef4444;
        }

        .otm-radio-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 10px;
        }

        .otm-radio-item {
            position: relative;
        }

        .otm-radio-item input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .otm-radio-label {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f9fafb;
            font-size: 14px;
            font-weight: 500;
        }

        .otm-radio-label:hover {
            border-color: #667eea;
            background: #ffffff;
        }

        .otm-radio-item input[type="radio"]:checked + .otm-radio-label {
            border-color: #667eea;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .otm-radio-label::before {
            content: "";
            width: 18px;
            height: 18px;
            border: 2px solid #d1d5db;
            border-radius: 50%;
            margin-right: 10px;
            transition: all 0.3s ease;
        }

        .otm-radio-item input[type="radio"]:checked + .otm-radio-label::before {
            border-color: #ffffff;
            background: #ffffff;
            box-shadow: inset 0 0 0 4px #667eea;
        }

        .otm-submit-btn {
            width: 100%;
            padding: 14px 24px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 15px;
        }

        .otm-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

        .otm-submit-btn:active {
            transform: translateY(0);
        }

.otm-cta-register-button
{
	background: linear-gradient(135deg, #e8377a 0%, #764ba2 100%);
}

        .otm-error {
            background: #fee2e2;
            border: 1px solid #fecaca;
            color: #dc2626;
            padding: 12px 16px;
            border-radius: 8px;
            margin: 20px auto;
            max-width: 450px;
            font-size: 14px;
            font-weight: 500;
        }

        .otm-success {
            background: #d1fae5;
            border: 1px solid #a7f3d0;
            color: #065f46;
            padding: 12px 16px;
            border-radius: 8px;
            margin: 20px auto;
            max-width: 450px;
            font-size: 14px;
            font-weight: 500;
        }

        .otm-logged-in {
            text-align: center;
            padding: 30px;
            background: #f0f9ff;
            border: 2px solid #0ea5e9;
            border-radius: 12px;
            max-width: 450px;
            margin: 40px auto;
            color: #0c4a6e;
            font-weight: 500;
        }

        /* Phone input specific styling */
        .otm-phone-input {
            position: relative;
        }

        /*.otm-phone-input::before {
            content: "+84";
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #6b7280;
            font-weight: 500;
            pointer-events: none;
            z-index: 1;
        }

        .otm-form-input.phone-input {
            padding-left: 50px;
        }*/

        /* Responsive design */
        @media (max-width: 600px) {
            .otm-form-container {
                /*margin: 20px;*/
                max-width: none;
            }
            
            .otm-form-header {
                padding: 25px 20px;
            }
            
            .otm-form-body {
                padding: 25px 20px;
            }
            
            .otm-radio-group {
                grid-template-columns: 1fr;
                gap: 10px;
            }
        }

        /* Animation for form appearance */
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .otm-form-container {
            animation: slideInUp 0.6s ease-out;
        }


/* OTM Profile Additional Styles */

/* ===========================================
   TUTOR DIRECTORY STYLES
   =========================================== */

.otm-tutor-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.otm-directory-header {
    text-align: center;
    margin-bottom: 50px;
}

.otm-directory-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
}

.otm-directory-header p {
    font-size: 16px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.otm-tutor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.otm-tutor-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

.otm-tutor-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.otm-tutor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #e5e7eb;
}

.tutor-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.tutor-avatar img {
    border-radius: 50%;
    border: 4px solid #f3f4f6;
    transition: all 0.3s ease;
}

.otm-tutor-card:hover .tutor-avatar img {
    border-color: #667eea;
    transform: scale(1.05);
}

.tutor-info {
    text-align: center;
}

.tutor-name {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
}

.tutor-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tutor-name a:hover {
    color: #667eea;
}

.tutor-bio {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    min-height: 42px;
}

.tutor-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f9fafb;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #f3f4f6;
}

.tutor-view-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tutor-view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Hiển thị nút xem hồ sơ đều nhau*/
/* Box gia sư */
.otm-tutor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Thông tin gia sư chiếm hết chiều cao */
.otm-tutor-card .tutor-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Nút Xem hồ sơ luôn nằm cuối */
.otm-tutor-card .tutor-view-btn {
    margin-top: auto;       /* đẩy nút xuống đáy */
    display: inline-block;  /* giữ nguyên kiểu nút */
}



/* Khối extra (số lớp + gọi ngay) luôn nằm trên nút */
.otm-tutor-card .tutor-extra,
.otm-tutor-card .tutor-stats {
    margin-top: auto;   /* đẩy xuống gần nút */
}




/* ===========================================
   PUBLIC PROFILE STYLES
   =========================================== */

.otm-tutor-profile-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.otm-profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.otm-profile-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" viewBox=\"0 0 60 60\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"none\" fill-rule=\"evenodd\"%3E%3Cg fill=\"%23ffffff\" fill-opacity=\"0.1\"%3E%3Cpath d=\"M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z\"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.profile-avatar {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.profile-avatar img {
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.3);
}

.profile-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
	color: white !important;
}

.profile-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    opacity: 0.95;
}

.contact-item i::before {
    content: "●";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.otm-profile-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.class-count {
    font-size: 16px;
    /*color: #6b7280;*/
    font-weight: 400;
}

.bio-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.otm-classes-grid {
    display: grid;
    gap: 20px;
}

.class-card {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.class-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.class-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.class-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.class-title a:hover {
    color: #667eea;
}

.class-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.class-link {
    /*color: #667eea;*/
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.class-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.reviews-container {
    min-height: 100px;
}

.otm-profile-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.back-to-directory {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-directory:hover {
    color: #667eea;
    text-decoration: none;
}

/* ===========================================
   EMPTY STATES
   =========================================== */

.otm-empty-state {
    text-align: center;
    padding: 60px 30px;
    color: #6b7280;
}

.otm-empty-state h3 {
    font-size: 20px;
    color: #374151;
    margin: 0 0 10px 0;
}

.otm-empty-state p {
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .otm-tutor-directory {
        padding: 20px 15px;
    }
    
    .otm-directory-header h2 {
        font-size: 24px;
    }
    
    .otm-tutor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .otm-tutor-card {
        padding: 20px;
    }
    
    .otm-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .otm-tutor-profile-page {
        padding: 20px 15px;
    }
    
    .otm-profile-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .tutor-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .otm-directory-header h2 {
        font-size: 20px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .contact-item {
        font-size: 14px;
    }
    
    .class-card {
        padding: 20px 15px;
    }
}

/* ===========================================
   ANIMATION IMPROVEMENTS
   =========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Apply animations */
.otm-tutor-card {
    animation: fadeInUp 0.6s ease-out;
}

.otm-tutor-card:nth-child(2) { animation-delay: 0.1s; }
.otm-tutor-card:nth-child(3) { animation-delay: 0.2s; }
.otm-tutor-card:nth-child(4) { animation-delay: 0.3s; }

.otm-profile-header {
    animation: slideInLeft 0.8s ease-out;
}

.otm-profile-section {
    animation: fadeInUp 0.6s ease-out;
}

.otm-profile-section:nth-child(2) { animation-delay: 0.1s; }
.otm-profile-section:nth-child(3) { animation-delay: 0.2s; }
.otm-profile-section:nth-child(4) { animation-delay: 0.3s; }

/* Hover effects */
.tutor-avatar img:hover {
    animation: pulse 0.6s ease-in-out;
}

/* ===========================================
   LOADING STATES & INTERACTIONS
   =========================================== */

.otm-submit-btn:active {
    transform: scale(0.98);
}

.otm-form-input:focus {
    transform: translateY(-1px);
}

/* ===========================================
   ADDITIONAL UTILITY CLASSES
   =========================================== */

.otm-text-center { text-align: center; }
.otm-text-left { text-align: left; }
.otm-text-right { text-align: right; }

.otm-mt-10 { margin-top: 10px; }
.otm-mt-20 { margin-top: 20px; }
.otm-mt-30 { margin-top: 30px; }

.otm-mb-10 { margin-bottom: 10px; }
.otm-mb-20 { margin-bottom: 20px; }
.otm-mb-30 { margin-bottom: 30px; }

.otm-p-10 { padding: 10px; }
.otm-p-20 { padding: 20px; }
.otm-p-30 { padding: 30px; }

/* ===========================================
   THEME VARIATIONS (Optional)
   =========================================== */

.otm-theme-dark .otm-tutor-card {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}

.otm-theme-dark .otm-profile-section {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {
    .otm-tutor-card,
    .otm-profile-section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .otm-profile-header {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
    
    .tutor-view-btn,
    .back-to-directory {
        display: none;
    }
}


.site-content .ast-container
{
	/*display: block !important;*/
}


.otm-form-group-column
{
	display: flex;
}
.otm-form-group-column
{
  display: flex;
  gap: 10px; /* khoảng cách giữa các div con */
}

.otm-form-group-column > div {
  flex: 1;              /* chia đều chiều rộng */
  background: #eee;     /* màu nền để dễ nhìn */
  padding: 20px;        /* khoảng cách bên trong */
  text-align: center;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
  .otm-form-group-column {
    flex-direction: column; /* xếp dọc khi màn hình nhỏ */
  }
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* khoảng cách giữa 2 nút */
    flex-wrap: wrap; /* cho phép xuống hàng khi không đủ chỗ */
    margin: 20px 0;
}

.cta-buttons a {
    display: inline-block;
    padding: 12px 24px;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    
    flex: 1; /* chia đều chiều rộng */
    min-width: 150px; /* không quá nhỏ */
}

.cta-buttons a:hover {
    
}

/* Responsive cho mobile */
@media (max-width: 600px) {
    .cta-buttons {
        flex-direction: column;
    }
    .cta-buttons a {
        width: 100%;
    }
}

.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a)
{
	text-decoration: none;
}

/* ==== Grid cho các term cấp 0 ==== */
.taxonomy-grid > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ==== Box chung ==== */
.taxonomy-grid .term-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 6px;
  flex: 1 1 calc(25% - 20px); /* 4 box / hàng mặc định */
  box-sizing: border-box;
  min-width: 200px;
  transition: all 0.2s ease;
}

/* Hover hiệu ứng */
.taxonomy-grid .term-box:hover {
  background: #fff;
  border-color: #aaa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Link trong box */
.taxonomy-grid .term-box > a {
  font-weight: bold;
  text-decoration: none;
  color: #333;
  display: block;
  margin-bottom: 10px;
}

/* ==== Box có con thì chiếm full hàng ==== */
.taxonomy-grid .term-box.has-children {
  flex: 1 1 100%;
}

/* ==== Grid cho term con bên trong ==== */
.taxonomy-grid .term-box.has-children > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Box con bên trong cha */
.taxonomy-grid .term-box.has-children > ul > .term-box {
  flex: 1 1 calc(25% - 15px);
  background: #fefefe;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px;
  min-width: 180px;
  transition: all 0.2s ease;
}

/* Hover cho box con */
.taxonomy-grid .term-box.has-children > ul > .term-box:hover {
  background: #fff;
  border-color: #bbb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Link trong box con */
.taxonomy-grid .term-box.has-children > ul > .term-box > a {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #444;
}

/* Các cấp con sâu hơn nữa (nếu có) sẽ hiển thị danh sách nhỏ) */
.taxonomy-grid .term-box ul ul {
  margin: 8px 0 0 12px;
  padding: 0;
  list-style: disc;
}

.taxonomy-grid .term-box ul ul li a {
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.taxonomy-grid .term-box ul ul li a:hover {
  text-decoration: underline;
}
