/*
 Theme Name:   THPT Saigon Child
 Theme URI:    https://thptsaigon.edu.vn
 Description:  Child theme cho THPT Saigon - based on Flatsome
 Author:       THPT Saigon
 Template:     flatsome
 Version:      1.0.0
 Text Domain:  thptsaigon-child
*/

/* =========================================
   THPT SAIGON – CUSTOM STYLES
   ========================================= */

/* --- CSS Variables --- */
:root {
  --ts-blue:        #0d2b6e;
  --ts-blue-mid:    #1e4db7;
  --ts-blue-light:  #e8f0fe;
  --ts-gold:        #e8a020;
  --ts-gold-light:  #fef3dc;
  --ts-text:        #1a1a2e;
  --ts-gray:        #6b7280;
  --ts-gray-light:  #f4f6f9;
  --ts-white:       #ffffff;
  --ts-green:       #16a34a;
  --ts-radius:      10px;
  --ts-radius-lg:   16px;
  --ts-shadow:      0 4px 20px rgba(13,43,110,0.10);
  --ts-shadow-hover:0 8px 32px rgba(13,43,110,0.18);
  --ts-transition:  all 0.28s ease;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
body {
  font-family: 'Be Vietnam Pro', 'Montserrat', 'Segoe UI', sans-serif;
  color: var(--ts-text);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Be Vietnam Pro', 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--ts-blue);
  line-height: 1.3;
}

h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(22px, 3.5vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }

/* =========================================
   HEADER
   ========================================= */
#header {
  background: var(--ts-white) !important;
  box-shadow: 0 2px 16px rgba(13,43,110,0.08);
}

#header .header-inner {
  padding: 0 !important;
}

/* Logo */
.header-logo img {
  max-height: 60px !important;
  width: auto;
}

/* Navigation */
#main-nav > ul > li > a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ts-text) !important;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--ts-transition);
}

#main-nav > ul > li > a:hover,
#main-nav > ul > li.current-menu-item > a,
#main-nav > ul > li.current-menu-ancestor > a {
  color: var(--ts-blue) !important;
  background: var(--ts-blue-light);
}

/* Dropdown */
#main-nav ul ul {
  border-top: 3px solid var(--ts-gold);
  border-radius: 0 0 var(--ts-radius) var(--ts-radius);
  box-shadow: var(--ts-shadow);
}

#main-nav ul ul li a {
  font-size: 14px !important;
  padding: 10px 18px !important;
}

/* Header Đăng ký button */
.header-dangky-btn,
.nav-dangky a {
  background: var(--ts-blue) !important;
  color: var(--ts-white) !important;
  padding: 10px 22px !important;
  border-radius: 25px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: var(--ts-transition) !important;
  border: 2px solid var(--ts-blue) !important;
}

.header-dangky-btn:hover,
.nav-dangky a:hover {
  background: var(--ts-gold) !important;
  border-color: var(--ts-gold) !important;
  color: var(--ts-white) !important;
  transform: translateY(-1px);
}

/* Sticky header */
.is-sticky #header {
  box-shadow: 0 4px 24px rgba(13,43,110,0.14);
}

/* =========================================
   BUTTONS
   ========================================= */
.ts-btn-primary,
.button.ts-primary,
a.ts-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ts-blue);
  color: var(--ts-white) !important;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: var(--ts-transition);
  border: 2px solid var(--ts-blue);
  cursor: pointer;
}

.ts-btn-primary:hover {
  background: var(--ts-blue-mid);
  border-color: var(--ts-blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,43,110,0.25);
}

.ts-btn-gold,
a.ts-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ts-gold);
  color: var(--ts-white) !important;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: var(--ts-transition);
  border: 2px solid var(--ts-gold);
}

.ts-btn-gold:hover {
  background: #cf8e18;
  border-color: #cf8e18;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,160,32,0.35);
}

.ts-btn-outline,
a.ts-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ts-blue) !important;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: var(--ts-transition);
  border: 2px solid var(--ts-blue);
}

.ts-btn-outline:hover {
  background: var(--ts-blue);
  color: var(--ts-white) !important;
}

/* =========================================
   HERO SECTION (TRANG CHỦ)
   ========================================= */
.ts-hero {
  min-height: 560px;
  background: linear-gradient(135deg, var(--ts-blue) 0%, #1e4db7 60%, #2563eb 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ts-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.ts-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,160,32,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.ts-hero-content {
  position: relative;
  z-index: 2;
}

.ts-hero-label {
  display: inline-block;
  background: rgba(232,160,32,0.2);
  color: var(--ts-gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border: 1px solid rgba(232,160,32,0.4);
}

.ts-hero h1 {
  color: var(--ts-white);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.ts-hero h1 span {
  color: var(--ts-gold);
}

.ts-hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 520px;
}

.ts-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Form tư vấn nổi trong hero */
.ts-hero-form {
  background: var(--ts-white);
  border-radius: var(--ts-radius-lg);
  padding: 32px 28px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.ts-hero-form h3 {
  color: var(--ts-blue);
  font-size: 20px;
  margin-bottom: 6px;
}

.ts-hero-form .form-note {
  font-size: 13px;
  color: var(--ts-gray);
  margin-bottom: 20px;
}

.ts-form-field {
  margin-bottom: 14px;
}

.ts-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ts-text);
  margin-bottom: 5px;
}

.ts-form-field input,
.ts-form-field select,
.ts-form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #dde1ea;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ts-text);
  background: #fafbfc;
  transition: var(--ts-transition);
  outline: none;
  box-sizing: border-box;
}

.ts-form-field input:focus,
.ts-form-field select:focus,
.ts-form-field textarea:focus {
  border-color: var(--ts-blue-mid);
  background: var(--ts-white);
  box-shadow: 0 0 0 3px rgba(30,77,183,0.10);
}

.ts-form-submit {
  width: 100%;
  background: var(--ts-gold);
  color: var(--ts-white);
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ts-transition);
  margin-top: 6px;
}

.ts-form-submit:hover {
  background: #cf8e18;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,160,32,0.4);
}

/* =========================================
   USP / SỐ LIỆU SECTION
   ========================================= */
.ts-usp-section {
  background: var(--ts-blue);
  padding: 40px 0;
}

.ts-usp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

@media (max-width: 992px) {
  .ts-usp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
  .ts-usp-grid { grid-template-columns: repeat(2, 1fr); }
}

.ts-usp-item {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: var(--ts-transition);
}

.ts-usp-item:last-child { border-right: none; }

.ts-usp-item:hover {
  background: rgba(255,255,255,0.05);
}

.ts-usp-number {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--ts-gold);
  line-height: 1;
  display: block;
}

.ts-usp-unit {
  font-size: 18px;
  font-weight: 700;
  color: var(--ts-gold);
}

.ts-usp-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
  display: block;
}

/* =========================================
   SECTION HEADING
   ========================================= */
.ts-section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.ts-section-tag {
  display: inline-block;
  background: var(--ts-blue-light);
  color: var(--ts-blue-mid);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.ts-section-heading h2 {
  margin-bottom: 12px;
}

.ts-section-heading p {
  color: var(--ts-gray);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
}

.ts-divider {
  width: 56px;
  height: 4px;
  background: var(--ts-gold);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* =========================================
   GIỚI THIỆU NGẮN
   ========================================= */
.ts-intro-section {
  padding: 80px 0;
  background: var(--ts-white);
}

.ts-intro-image {
  border-radius: var(--ts-radius-lg);
  overflow: hidden;
  box-shadow: var(--ts-shadow);
  position: relative;
}

.ts-intro-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.ts-intro-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--ts-gold);
  color: var(--ts-white);
  padding: 12px 20px;
  border-radius: var(--ts-radius);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

.ts-intro-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 40px;
}

@media (max-width: 768px) {
  .ts-intro-content { padding-left: 0; padding-top: 32px; }
}

.ts-intro-content h2 {
  margin-bottom: 20px;
}

.ts-intro-content p {
  color: var(--ts-gray);
  margin-bottom: 16px;
}

/* =========================================
   CHƯƠNG TRÌNH ĐÀO TẠO CARDS
   ========================================= */
.ts-program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .ts-program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .ts-program-grid { grid-template-columns: 1fr; }
}

.ts-program-card {
  background: var(--ts-white);
  border-radius: var(--ts-radius-lg);
  overflow: hidden;
  box-shadow: var(--ts-shadow);
  transition: var(--ts-transition);
  border: 1.5px solid #eaecf0;
  position: relative;
}

.ts-program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ts-shadow-hover);
  border-color: var(--ts-blue-mid);
}

.ts-program-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ts-program-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--ts-blue) 0%, var(--ts-blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ts-program-card-body {
  padding: 20px;
}

.ts-program-tag {
  display: inline-block;
  background: var(--ts-blue-light);
  color: var(--ts-blue-mid);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.ts-program-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ts-blue);
}

.ts-program-card p {
  font-size: 13.5px;
  color: var(--ts-gray);
  margin-bottom: 14px;
  line-height: 1.6;
}

.ts-program-card-link {
  color: var(--ts-blue-mid);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--ts-transition);
}

.ts-program-card-link:hover {
  color: var(--ts-gold);
  gap: 10px;
}

/* =========================================
   HOẠT ĐỘNG HỌC SINH - MASONRY GALLERY
   ========================================= */
.ts-activities-section {
  padding: 80px 0;
  background: var(--ts-gray-light);
}

.ts-masonry {
  columns: 4;
  column-gap: 16px;
}

@media (max-width: 992px) { .ts-masonry { columns: 3; } }
@media (max-width: 768px) { .ts-masonry { columns: 2; } }
@media (max-width: 480px) { .ts-masonry { columns: 1; } }

.ts-masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--ts-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.ts-masonry-item img {
  width: 100%;
  display: block;
  transition: var(--ts-transition);
}

.ts-masonry-item:hover img {
  transform: scale(1.04);
}

.ts-masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,43,110,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--ts-transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.ts-masonry-item:hover .ts-masonry-overlay {
  opacity: 1;
}

.ts-masonry-caption {
  color: var(--ts-white);
  font-size: 14px;
  font-weight: 600;
}

/* =========================================
   TIN TỨC SECTION
   ========================================= */
.ts-news-section {
  padding: 80px 0;
  background: var(--ts-white);
}

.ts-news-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .ts-news-layout { grid-template-columns: 1fr; }
}

/* Bài viết nổi bật */
.ts-news-featured {
  border-radius: var(--ts-radius-lg);
  overflow: hidden;
  box-shadow: var(--ts-shadow);
  transition: var(--ts-transition);
}

.ts-news-featured:hover {
  box-shadow: var(--ts-shadow-hover);
  transform: translateY(-3px);
}

.ts-news-featured-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.ts-news-featured-body {
  padding: 24px;
  background: var(--ts-white);
  border: 1.5px solid #eaecf0;
  border-top: none;
  border-radius: 0 0 var(--ts-radius-lg) var(--ts-radius-lg);
}

/* Grid tin tức */
.ts-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 576px) {
  .ts-news-grid { grid-template-columns: 1fr; }
}

.ts-news-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--ts-radius);
  border: 1.5px solid #eaecf0;
  transition: var(--ts-transition);
  background: var(--ts-white);
  text-decoration: none;
}

.ts-news-card:hover {
  border-color: var(--ts-blue-mid);
  box-shadow: var(--ts-shadow);
  transform: translateY(-2px);
}

.ts-news-card-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ts-news-card-meta {
  font-size: 12px;
  color: var(--ts-gray);
  margin-bottom: 4px;
}

.ts-news-card h4 {
  font-size: 14px;
  color: var(--ts-text);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News category tag */
.ts-news-cat {
  display: inline-block;
  background: var(--ts-gold-light);
  color: var(--ts-gold);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* =========================================
   CTA TUYỂN SINH CUỐI TRANG
   ========================================= */
.ts-cta-section {
  background: linear-gradient(135deg, var(--ts-blue) 0%, #1e4db7 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.ts-cta-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,160,32,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.ts-cta-section h2 {
  color: var(--ts-white);
  font-size: clamp(24px, 4vw, 38px);
  margin-bottom: 14px;
}

.ts-cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin-bottom: 32px;
}

.ts-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================
   PAGE BANNER (INNER PAGES)
   ========================================= */
.ts-page-banner {
  background: linear-gradient(135deg, var(--ts-blue) 0%, #1e4db7 100%);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}

.ts-page-banner::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--ts-white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.ts-page-banner h1 {
  color: var(--ts-white);
  font-size: clamp(24px, 4vw, 40px);
  margin-bottom: 12px;
}

.ts-page-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 600px;
}

/* Breadcrumb */
.ts-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.ts-breadcrumb a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-decoration: none;
  transition: var(--ts-transition);
}

.ts-breadcrumb a:hover {
  color: var(--ts-gold);
}

.ts-breadcrumb span {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.ts-breadcrumb .current {
  color: var(--ts-gold);
  font-size: 13px;
  font-weight: 600;
}

/* =========================================
   CARDS CHUNG
   ========================================= */
.ts-card {
  background: var(--ts-white);
  border-radius: var(--ts-radius-lg);
  padding: 28px;
  box-shadow: var(--ts-shadow);
  border: 1.5px solid #eaecf0;
  transition: var(--ts-transition);
}

.ts-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ts-shadow-hover);
  border-color: var(--ts-blue-mid);
}

.ts-card-icon {
  width: 56px;
  height: 56px;
  background: var(--ts-blue-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ts-card-icon svg,
.ts-card-icon img {
  width: 28px;
  height: 28px;
}

/* Value cards (Sứ mệnh, Tầm nhìn, Giá trị) */
.ts-value-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--ts-radius-lg);
  background: var(--ts-white);
  box-shadow: var(--ts-shadow);
  border-top: 4px solid var(--ts-blue);
  transition: var(--ts-transition);
}

.ts-value-card:nth-child(2) { border-top-color: var(--ts-gold); }
.ts-value-card:nth-child(3) { border-top-color: var(--ts-green); }

.ts-value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ts-shadow-hover);
}

.ts-value-card-icon {
  font-size: 44px;
  margin-bottom: 16px;
  display: block;
}

.ts-value-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--ts-blue);
}

.ts-value-card p {
  font-size: 14px;
  color: var(--ts-gray);
  line-height: 1.7;
}

/* =========================================
   TIMELINE
   ========================================= */
.ts-timeline {
  position: relative;
  padding: 20px 0;
}

.ts-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--ts-blue), var(--ts-gold));
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .ts-timeline::before { left: 20px; }
}

.ts-timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
  align-items: flex-start;
}

.ts-timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .ts-timeline-item,
  .ts-timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-left: 50px;
  }
}

.ts-timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--ts-gold);
  border: 3px solid var(--ts-blue);
  border-radius: 50%;
  top: 6px;
  z-index: 1;
}

@media (max-width: 768px) {
  .ts-timeline-dot { left: 20px; }
}

.ts-timeline-content {
  flex: 1;
  background: var(--ts-white);
  border-radius: var(--ts-radius);
  padding: 20px 24px;
  box-shadow: var(--ts-shadow);
  border-left: 4px solid var(--ts-gold);
}

.ts-timeline-year {
  font-size: 22px;
  font-weight: 800;
  color: var(--ts-gold);
  display: block;
  margin-bottom: 6px;
}

.ts-timeline-content h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--ts-blue);
}

.ts-timeline-content p {
  font-size: 14px;
  color: var(--ts-gray);
  margin: 0;
}

/* =========================================
   TEAM CARDS (BAN GIÁM HIỆU)
   ========================================= */
.ts-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) { .ts-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ts-team-grid { grid-template-columns: 1fr; } }

.ts-team-card {
  text-align: center;
  background: var(--ts-white);
  border-radius: var(--ts-radius-lg);
  padding: 28px 20px;
  box-shadow: var(--ts-shadow);
  transition: var(--ts-transition);
  border: 1.5px solid #eaecf0;
}

.ts-team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ts-shadow-hover);
  border-color: var(--ts-blue-mid);
}

.ts-team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 4px solid var(--ts-blue-light);
}

.ts-team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ts-blue);
  margin-bottom: 4px;
}

.ts-team-title {
  font-size: 13px;
  color: var(--ts-gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.ts-team-desc {
  font-size: 13px;
  color: var(--ts-gray);
  line-height: 1.6;
}

/* =========================================
   TUYỂN SINH - THÔNG TIN
   ========================================= */
.ts-info-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--ts-radius);
  overflow: hidden;
  box-shadow: var(--ts-shadow);
}

.ts-info-table th {
  background: var(--ts-blue);
  color: var(--ts-white);
  padding: 14px 20px;
  font-size: 14px;
  text-align: left;
}

.ts-info-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid #eaecf0;
  color: var(--ts-text);
}

.ts-info-table tr:last-child td { border-bottom: none; }

.ts-info-table tr:nth-child(even) td {
  background: var(--ts-gray-light);
}

/* Process steps */
.ts-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

@media (max-width: 768px) {
  .ts-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .ts-steps { grid-template-columns: 1fr; }
}

.ts-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: repeating-linear-gradient(to right, var(--ts-blue-mid) 0, var(--ts-blue-mid) 8px, transparent 8px, transparent 16px);
}

@media (max-width: 768px) { .ts-steps::before { display: none; } }

.ts-step-item {
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.ts-step-num {
  width: 64px;
  height: 64px;
  background: var(--ts-blue);
  color: var(--ts-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 16px;
  border: 4px solid var(--ts-white);
  box-shadow: 0 0 0 2px var(--ts-blue);
}

.ts-step-item h4 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ts-blue);
}

.ts-step-item p {
  font-size: 13px;
  color: var(--ts-gray);
}

/* FAQ */
.ts-faq-item {
  border: 1.5px solid #eaecf0;
  border-radius: var(--ts-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--ts-transition);
}

.ts-faq-item.active {
  border-color: var(--ts-blue-mid);
  box-shadow: var(--ts-shadow);
}

.ts-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  background: var(--ts-white);
  font-weight: 600;
  font-size: 15px;
  color: var(--ts-text);
  gap: 16px;
}

.ts-faq-question:hover { background: var(--ts-gray-light); }

.ts-faq-icon {
  width: 24px;
  height: 24px;
  background: var(--ts-blue-light);
  color: var(--ts-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: var(--ts-transition);
  font-weight: 300;
}

.ts-faq-item.active .ts-faq-icon {
  background: var(--ts-blue);
  color: var(--ts-white);
  transform: rotate(45deg);
}

.ts-faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 14px;
  color: var(--ts-gray);
  line-height: 1.7;
}

.ts-faq-item.active .ts-faq-answer {
  max-height: 300px;
  padding: 4px 22px 20px;
}

/* =========================================
   TABS CHƯƠNG TRÌNH
   ========================================= */
.ts-tabs {
  border-bottom: 2px solid #eaecf0;
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.ts-tab-btn {
  padding: 14px 28px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--ts-gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--ts-transition);
}

.ts-tab-btn:hover {
  color: var(--ts-blue);
}

.ts-tab-btn.active {
  color: var(--ts-blue);
  border-bottom-color: var(--ts-blue);
}

.ts-tab-pane {
  display: none;
}

.ts-tab-pane.active {
  display: block;
}

/* =========================================
   MULTI-STEP FORM (ĐĂNG KÝ)
   ========================================= */
.ts-step-progress {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  position: relative;
}

.ts-step-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: #eaecf0;
  z-index: 0;
}

.ts-step-progress-fill {
  position: absolute;
  top: 20px;
  left: 40px;
  height: 2px;
  background: var(--ts-blue);
  z-index: 1;
  transition: width 0.4s ease;
}

.ts-sp-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.ts-sp-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaecf0;
  color: var(--ts-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--ts-transition);
  border: 2px solid #eaecf0;
}

.ts-sp-item.active .ts-sp-dot {
  background: var(--ts-blue);
  color: var(--ts-white);
  border-color: var(--ts-blue);
  box-shadow: 0 0 0 4px var(--ts-blue-light);
}

.ts-sp-item.done .ts-sp-dot {
  background: var(--ts-green);
  color: var(--ts-white);
  border-color: var(--ts-green);
}

.ts-sp-label {
  font-size: 12px;
  color: var(--ts-gray);
  font-weight: 600;
}

.ts-sp-item.active .ts-sp-label { color: var(--ts-blue); }

/* =========================================
   LIÊN HỆ / TƯ VẤN
   ========================================= */
.ts-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) { .ts-contact-grid { grid-template-columns: 1fr; } }

.ts-contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.ts-contact-icon {
  width: 48px;
  height: 48px;
  background: var(--ts-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.ts-contact-info-item h4 {
  font-size: 15px;
  color: var(--ts-blue);
  margin-bottom: 4px;
}

.ts-contact-info-item p,
.ts-contact-info-item a {
  font-size: 14px;
  color: var(--ts-gray);
  text-decoration: none;
}

.ts-contact-info-item a:hover { color: var(--ts-blue); }

/* Map embed */
.ts-map-embed {
  border-radius: var(--ts-radius-lg);
  overflow: hidden;
  box-shadow: var(--ts-shadow);
  margin-top: 24px;
}

.ts-map-embed iframe {
  width: 100%;
  height: 280px;
  display: block;
  border: none;
}

/* =========================================
   FOOTER
   ========================================= */
#footer {
  background: var(--ts-blue) !important;
  color: rgba(255,255,255,0.85) !important;
}

.ts-footer-top {
  padding: 64px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.ts-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 992px) { .ts-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .ts-footer-grid { grid-template-columns: 1fr; } }

.ts-footer-logo img {
  max-height: 56px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.ts-footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 20px;
}

.ts-footer-social {
  display: flex;
  gap: 10px;
}

.ts-social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ts-white);
  font-size: 16px;
  text-decoration: none;
  transition: var(--ts-transition);
  border: 1px solid rgba(255,255,255,0.15);
}

.ts-social-link:hover {
  background: var(--ts-gold);
  border-color: var(--ts-gold);
  transform: translateY(-2px);
}

.ts-footer-heading {
  color: var(--ts-white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.ts-footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px;
  height: 2px;
  background: var(--ts-gold);
  border-radius: 1px;
}

.ts-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ts-footer-links li {
  margin-bottom: 10px;
}

.ts-footer-links a {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  text-decoration: none;
  transition: var(--ts-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ts-footer-links a::before {
  content: '›';
  color: var(--ts-gold);
  font-size: 16px;
}

.ts-footer-links a:hover {
  color: var(--ts-gold);
  padding-left: 4px;
}

.ts-footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
}

.ts-footer-contact-item .icon {
  font-size: 16px;
  color: var(--ts-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.ts-footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* =========================================
   FLOATING ELEMENTS
   ========================================= */

/* Zalo / Phone floating buttons */
.ts-floating-btns {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ts-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: var(--ts-transition);
  animation: ts-float-pulse 2s infinite;
}

.ts-float-btn:hover {
  transform: scale(1.12);
  animation: none;
}

.ts-float-btn.phone {
  background: var(--ts-green);
  color: var(--ts-white);
  font-size: 22px;
}

.ts-float-btn.zalo {
  background: #0068ff;
  color: var(--ts-white);
  font-size: 14px;
  font-weight: 800;
}

@keyframes ts-float-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 0 rgba(22,163,74,0.4); }
  50% { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 8px rgba(22,163,74,0); }
}

/* Scroll to top */
.ts-scroll-top {
  position: fixed;
  right: 20px;
  bottom: 40px;
  width: 44px;
  height: 44px;
  background: var(--ts-blue);
  color: var(--ts-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--ts-shadow);
  transition: var(--ts-transition);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  font-size: 18px;
}

.ts-scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.ts-scroll-top:hover {
  background: var(--ts-gold);
  transform: translateY(-3px);
}

/* =========================================
   STICKY FORM (TUYỂN SINH)
   ========================================= */
.ts-sticky-form {
  position: sticky;
  top: 90px;
  background: var(--ts-white);
  border-radius: var(--ts-radius-lg);
  box-shadow: var(--ts-shadow-hover);
  overflow: hidden;
  border: 2px solid var(--ts-blue-light);
}

.ts-sticky-form-header {
  background: var(--ts-blue);
  padding: 18px 22px;
  color: var(--ts-white);
}

.ts-sticky-form-header h4 {
  color: var(--ts-white);
  font-size: 16px;
  margin: 0 0 4px;
}

.ts-sticky-form-header p {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.ts-sticky-form-body {
  padding: 22px;
}

/* =========================================
   CHECKLIST HỒ SƠ
   ========================================= */
.ts-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ts-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eaecf0;
  font-size: 14px;
  color: var(--ts-text);
}

.ts-checklist li:last-child { border-bottom: none; }

.ts-checklist li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--ts-green);
  color: var(--ts-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =========================================
   RESPONSIVE UTILITIES
   ========================================= */
.ts-section {
  padding: 80px 0;
}

.ts-section-sm {
  padding: 48px 0;
}

@media (max-width: 768px) {
  .ts-section { padding: 56px 0; }
  .ts-section-sm { padding: 36px 0; }
  .ts-hero { min-height: 480px; }
}

@media (max-width: 480px) {
  .ts-section { padding: 40px 0; }
}

/* Flatsome row overrides */
.row.ts-full-width {
  max-width: 100% !important;
  padding: 0 !important;
}

/* =========================================
   NEWS CATEGORY PAGE
   ========================================= */
.ts-news-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 992px) { .ts-news-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .ts-news-cat-grid { grid-template-columns: 1fr; } }

.ts-post-card {
  background: var(--ts-white);
  border-radius: var(--ts-radius-lg);
  overflow: hidden;
  box-shadow: var(--ts-shadow);
  border: 1.5px solid #eaecf0;
  transition: var(--ts-transition);
}

.ts-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ts-shadow-hover);
  border-color: var(--ts-blue-mid);
}

.ts-post-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.ts-post-card-body {
  padding: 20px;
}

.ts-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ts-post-date {
  font-size: 12px;
  color: var(--ts-gray);
}

.ts-post-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--ts-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ts-post-card p {
  font-size: 13.5px;
  color: var(--ts-gray);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

/* Pagination */
.ts-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.ts-page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1.5px solid #eaecf0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ts-text);
  text-decoration: none;
  transition: var(--ts-transition);
}

.ts-page-num:hover,
.ts-page-num.active {
  background: var(--ts-blue);
  color: var(--ts-white);
  border-color: var(--ts-blue);
}

/* =========================================
   SINGLE POST
   ========================================= */
.ts-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 992px) { .ts-single-layout { grid-template-columns: 1fr; } }

.ts-post-content {
  background: var(--ts-white);
  border-radius: var(--ts-radius-lg);
  padding: 40px;
  box-shadow: var(--ts-shadow);
}

.ts-post-content h1 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 16px;
}

.ts-post-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaecf0;
}

.ts-post-featured-img {
  width: 100%;
  border-radius: var(--ts-radius);
  margin-bottom: 28px;
}

.ts-post-body {
  font-size: 16px;
  color: var(--ts-text);
  line-height: 1.85;
}

.ts-post-body h2, .ts-post-body h3 { color: var(--ts-blue); margin: 32px 0 14px; }
.ts-post-body p { margin-bottom: 18px; }
.ts-post-body ul, .ts-post-body ol { padding-left: 24px; margin-bottom: 18px; }
.ts-post-body li { margin-bottom: 8px; }
.ts-post-body blockquote {
  border-left: 4px solid var(--ts-gold);
  padding: 16px 20px;
  background: var(--ts-gold-light);
  border-radius: 0 var(--ts-radius) var(--ts-radius) 0;
  font-style: italic;
  color: var(--ts-text);
  margin: 24px 0;
}

/* Sidebar */
.ts-sidebar {
  position: sticky;
  top: 90px;
}

.ts-sidebar-widget {
  background: var(--ts-white);
  border-radius: var(--ts-radius-lg);
  padding: 24px;
  box-shadow: var(--ts-shadow);
  margin-bottom: 24px;
  border: 1.5px solid #eaecf0;
}

.ts-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ts-blue);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ts-blue-light);
}

.ts-related-post {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  text-decoration: none;
  padding-bottom: 14px;
  border-bottom: 1px solid #eaecf0;
}

.ts-related-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ts-related-post img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ts-related-post h5 {
  font-size: 13px;
  color: var(--ts-text);
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ts-related-post:hover h5 { color: var(--ts-blue); }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes ts-fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.ts-anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ts-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

.ts-anim-delay-1 { transition-delay: 0.1s; }
.ts-anim-delay-2 { transition-delay: 0.2s; }
.ts-anim-delay-3 { transition-delay: 0.3s; }
.ts-anim-delay-4 { transition-delay: 0.4s; }
.ts-anim-delay-5 { transition-delay: 0.5s; }

/* =========================================
   MOBILE MENU OVERRIDES
   ========================================= */
@media (max-width: 768px) {
  #mobile-menu-overlay { background: rgba(13,43,110,0.95) !important; }
  .mobile-menu a { color: var(--ts-white) !important; }
}

/* =========================================
   UTILITIES
   ========================================= */
.text-blue    { color: var(--ts-blue) !important; }
.text-gold    { color: var(--ts-gold) !important; }
.text-gray    { color: var(--ts-gray) !important; }
.text-white   { color: var(--ts-white) !important; }
.bg-blue      { background-color: var(--ts-blue) !important; }
.bg-gold      { background-color: var(--ts-gold) !important; }
.bg-light     { background-color: var(--ts-gray-light) !important; }
.bg-white     { background-color: var(--ts-white) !important; }
.fw-700       { font-weight: 700 !important; }
.fw-800       { font-weight: 800 !important; }
.text-center  { text-align: center; }
.mb-0         { margin-bottom: 0 !important; }
.mt-auto      { margin-top: auto; }
