/* ============================================================
   TI Survey — Custom Styles
   สไตล์เพิ่มเติมสำหรับปรับแต่งให้ดูเป็นมืออาชีพ
   ============================================================ */

/* ---------- Page Banner / Hero Bar ---------- */
.page-hero {
  background: linear-gradient(135deg, #0d3b8e 0%, #106eea 100%);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.08;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 10px;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin: 0;
}
.page-hero .breadcrumb-bar {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.page-hero .breadcrumb-bar a { color: rgba(255,255,255,0.85); }
.page-hero .breadcrumb-bar span { color: #fff; font-weight: 600; }

/* ---------- Section Divider ---------- */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-divider.left { margin-left: 0; }

/* ---------- Contact Page ---------- */
.contact-section { padding: 70px 0 80px; }

.contact-info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(16,110,234,0.10);
  padding: 36px 30px;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(16,110,234,0.16);
}
.contact-info-card .ci-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg,#106eea,#0d3b8e);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  margin-bottom: 20px;
}
.contact-info-card h5 {
  font-size: 15px; font-weight: 700; color: #222;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.contact-info-card p {
  font-size: 14px; color: #555; line-height: 1.8; margin: 0;
}
.contact-info-card a { color: var(--accent-color); }

.contact-form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(16,110,234,0.10);
  padding: 40px 36px;
}
.contact-form-card h4 {
  font-size: 22px; font-weight: 700; color: #1a1a2e;
  margin-bottom: 6px;
}
.contact-form-card .form-control,
.contact-form-card textarea.form-control {
  border-radius: 8px;
  border: 1.5px solid #d8e3f5;
  padding: 12px 16px;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form-card .form-control:focus,
.contact-form-card textarea.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(16,110,234,0.12);
}
.contact-form-card .btn-send {
  background: linear-gradient(135deg,#106eea,#0d3b8e);
  color: #fff; border: none;
  padding: 13px 38px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  transition: opacity 0.3s, transform 0.2s;
}
.contact-form-card .btn-send:hover {
  opacity: 0.88; transform: translateY(-2px);
}

.map-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
.map-card iframe { display: block; }

/* ---------- Home Page ---------- */
.home-hero {
  position: relative;
  background: #0d1b3e;
  overflow: hidden;
  min-height: 480px;
  display: flex; align-items: center;
}
.home-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0.35;
}
.home-hero-content {
  position: relative; z-index: 2;
  padding: 80px 0;
}
.home-hero-content h1 {
  font-size: 46px; font-weight: 800;
  color: #fff; line-height: 1.2;
  margin-bottom: 20px;
}
.home-hero-content h1 span { color: #5ba4ff; }
.home-hero-content p {
  font-size: 17px; color: rgba(255,255,255,0.78);
  max-width: 580px; line-height: 1.8;
  margin-bottom: 32px;
}
.home-hero-content .btn-hero {
  background: var(--accent-color); color: #fff;
  padding: 14px 36px; border-radius: 50px;
  font-weight: 600; font-size: 15px;
  display: inline-block; transition: 0.3s;
  box-shadow: 0 6px 20px rgba(16,110,234,0.35);
}
.home-hero-content .btn-hero:hover {
  background: #0d3b8e; transform: translateY(-2px);
}

/* Stats bar */
.stats-bar {
  background: linear-gradient(135deg,#0d3b8e 0%,#106eea 100%);
  padding: 40px 0;
}
.stats-bar .stat-item { text-align: center; }
.stats-bar .stat-item .stat-number {
  font-size: 42px; font-weight: 800;
  color: #fff; line-height: 1;
}
.stats-bar .stat-item .stat-label {
  font-size: 14px; color: rgba(255,255,255,0.75);
  margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.stats-bar .stat-divider {
  width: 1px; background: rgba(255,255,255,0.2);
  height: 60px; margin: auto;
}

/* Why us cards */
.why-us-card {
  background: #fff; border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 2px 20px rgba(16,110,234,0.08);
  text-align: center; height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--accent-color);
}
.why-us-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(16,110,234,0.16);
}
.why-us-card .wu-icon {
  font-size: 38px; color: var(--accent-color); margin-bottom: 16px;
}
.why-us-card h5 { font-size: 17px; font-weight: 700; color: #1a1a2e; }
.why-us-card p { font-size: 14px; color: #666; line-height: 1.7; margin: 0; }

/* ---------- Company Page ---------- */
.company-header-card {
  background: linear-gradient(135deg,#0d3b8e 0%,#106eea 100%);
  border-radius: 16px; padding: 48px 40px;
  color: #fff; margin-bottom: 40px;
  position: relative; overflow: hidden;
}
.company-header-card::after {
  content: "TI";
  position: absolute; right: 40px; bottom: -20px;
  font-size: 160px; font-weight: 900;
  color: rgba(255,255,255,0.05); line-height: 1;
  pointer-events: none;
}
.company-header-card h2 { font-size: 32px; font-weight: 800; color: #fff; }
.company-header-card p { color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.8; }

.vision-mission-card {
  border-radius: 12px; padding: 32px;
  height: 100%;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  border-left: 5px solid var(--accent-color);
  background: #fff;
  transition: transform 0.3s;
}
.vision-mission-card:hover { transform: translateY(-4px); }
.vision-mission-card .vm-icon {
  font-size: 32px; color: var(--accent-color); margin-bottom: 14px;
}
.vision-mission-card h4 {
  font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px;
}
.vision-mission-card p { font-size: 14px; color: #555; line-height: 1.8; margin: 0; }

.overseas-table { border-radius: 10px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
.overseas-table th { background: #0d3b8e; color: #fff; font-weight: 600; }

/* ---------- Executive Page ---------- */
.exec-section { padding: 70px 0 80px; background: #f7f9fc; }
.exec-card {
  background: #fff; border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(16,110,234,0.10);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.exec-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(16,110,234,0.18);
}
.exec-card .exec-img-wrap {
  position: relative; overflow: hidden;
  height: 260px;
  background: #e8eef8;
}
.exec-card .exec-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 0.4s;
}
.exec-card:hover .exec-img-wrap img { transform: scale(1.05); }
.exec-card .exec-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,59,142,0.6) 0%, transparent 55%);
}
.exec-card .exec-info { padding: 22px 20px 26px; }
.exec-card .exec-info h4 {
  font-size: 17px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px;
}
.exec-card .exec-info span {
  display: inline-block;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 12px; font-weight: 600;
  padding: 4px 14px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---------- Recruitment Page ---------- */
.recruitment-section { padding: 60px 0 80px; }
.pdf-wrap {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

/* ---------- Map Page ---------- */
.map-section { padding: 60px 0 80px; }
.map-info-row {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 20px rgba(16,110,234,0.08);
  padding: 28px 32px; margin-bottom: 28px;
}
.map-info-row .mi-icon {
  font-size: 28px; color: var(--accent-color); margin-right: 16px; flex-shrink: 0;
}
.map-info-row h6 { font-size: 13px; font-weight: 700; text-transform: uppercase; color: #888; margin: 0 0 4px; }
.map-info-row p { font-size: 15px; color: #222; margin: 0; }

/* ---------- Shared Utilities ---------- */
.ti-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(96,165,250,0.15) !important;
  color: #60a5fa !important;
  font-size: 12px; font-weight: 700;
  padding: 8px 20px; border-radius: 50px;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 15px;
}
.ti-badge i {
  color: #60a5fa !important;
  font-size: 14px;
}
.section-heading {
  font-size: 36px; font-weight: 800; color: #fff !important;
  margin: 0 0 10px;
}
.section-sub {
  font-size: 15px; color: rgba(255,255,255,0.8) !important; line-height: 1.8;
}
body { overflow-x: hidden; }
