/* Section White Background */
.section-white {
  background: #fff !important;
}

/* Gallery Title */
.gallery-title {
  color: #e11d2f;
}
:root {
  --navy-900: #0b1a2d;
  --navy-800: #11243b;
  --navy-700: #1b3250;
  --navy-600: #274264;
  --ink: #e5ecf5;
  --muted: #a9b7cc;
  --line: #22324b;
  --white: #fff;
  --red: #e11d2f;
  --red-2: #b10f1f;
  --pink: #ff5976;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(0, 0, 0, .25);
  --container: 1200px;
}

/* Base */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", system-ui, -apple-system, Segoe UI, Roboto, Noto Sans Thai, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(var(--navy-900), var(--navy-900)) fixed;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container-custom { 
  width: min(var(--container), 92vw); margin-inline: auto;
 }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
[data-ani] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-ani].show { opacity: 1; transform: none; animation: fadeUp .6s ease both; }
.a-float { animation: floatY 6s ease-in-out infinite; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 19, 36, .85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .3px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff; box-shadow: var(--shadow); font-weight: 800;
}
nav.primary { display: flex; gap: 22px; align-items: center; }
nav.primary a { color: var(--muted); font-weight: 700; }
nav.primary a:hover { color: #fff; }

/* Buttons */
.btn-theme { border-radius: 999px; font-weight: 800; letter-spacing: .2px; }
.btn-theme-primary {
  background: var(--red); color: #fff; border: none;
  box-shadow: 0 10px 22px rgba(225, 29, 47, .35);
}
.btn-theme-primary:hover { background: red; }
.btn-theme-outline { border: 1px solid #314663; color: #d9e4f2; background: transparent; }
.btn-theme-outline:hover { background: rgba(255, 255, 255, .2); }

.btn-theme-primary a {
  color: #fff;
}

.btn-theme-primary a:hover {
  color: #fff;
}

/* Join US Button Animation */
.btn-join {
  padding: 16px 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 24px;
}

.btn-join i {
  transition: transform 0.3s ease;
}

.btn-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(225, 29, 47, .4);
}

.btn-join:hover i {
  transform: translateX(4px);
}

.btn-join::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-join:hover::before {
  left: 100%;
}

.nav-toggle { display: none; }
.offcanvas-custom { display: none; }

@media (max-width: 960px) {
  nav.primary { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid var(--line); background: transparent; color: #d9e4f2;
  }
  .offcanvas-custom {
    position: fixed; 
    background: rgba(10, 19, 36, .85);
    backdrop-filter: saturate(140%) blur(10px);
    border-left: 1px solid var(--line); 
    flex-direction: column; padding: 24px; gap: 16px;
    display: none;
    width: 100%;
    height: 95vh;
    left: 0;
    top: 80px;
  }

  .offcanvas-custom.open { transform: translateX(0); display: block;}
  .offcanvas-custom a { 
    display: block;
    padding: 12px 8px; border-radius: 10px; color: #c5d1e3; font-size: 18px; border-bottom: 1px soldi #ccc;}
  .offcanvas-custom a:hover { background: #12223c; color: #fff; }

  .offcanvas-custom ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  ..offcanvas-custom ul li {
    display: block;
    text-align: center;
    padding: 10px 0;
  }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  background-size: cover;
}

.eyebrow { font-weight: 900; color: #ff90a3; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.display { 
  font-size: clamp(40px, 7vw, 100px); line-height: 1.02; margin: 6px 0 2px; font-weight: 900; color: #ff3131; text-shadow: 0 2px 0 #8b0d12, 0 14px 35px rgba(0,0,0,.6); 
}

.bni-title {
  font-size: 36px; 
  line-height: 1.02; 
  margin: 6px 0 2px; 
  font-weight: 900; 
  color: #ff3131; 
  text-shadow: 0 2px 0 #8b0d12, 0 14px 35px rgba(0,0,0,.6); 
}

.subtitle { font-weight: 900; 
  font-size: clamp(18px, 2.4vw, 30px); letter-spacing: .02em; color: #e7edf7; margin: 0 0 18px; }
.lead { color: #b9c6da; }

.mission-card { background: #0f213a; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.video-thumb { position: relative; border-radius: 14px; overflow: hidden; }
.video-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.play .dot { width: 72px; height: 72px; border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(3px); display: grid; place-items: center; border: 2px solid rgba(255,255,255,.5); }

.ribbon { position: absolute; right: -60px; top: 580px; transform: rotate(90deg); transform-origin: right top; color: #ff90a3; letter-spacing: .42em; font-weight: 900; }
.badge-theme { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #27101b; color: #ff90a3; font-weight: 800; font-size: 12px; border: 1px solid #51202d; }

.t-red {
  color: #ff3131;
}

/* About + Stats */
.stat { background: #470e17; border: 1px solid #5b1a23; border-radius: 12px; padding: 14px; text-align: center; }
.stat .num { font-weight: 900; font-size: clamp(20px, 3.4vw, 32px); color: #fff; }
.stat .sub { color: #ffc4cb; font-size: 12px; font-weight: 700; }

@media (max-width: 1024px) {
  .ribbon { display: none; }
  .stats { 
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo-band { margin-top: 26px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.photo-band img {
  width: 100%;
}

/* Steps */
#steps { background: #0f1f37; border-block: 1px solid var(--line); }
.step-card {
  background: #fff; border: 1px solid #e6e9f2; border-radius: 16px; color: #0f172a;
  box-shadow: 0 10px 28px rgba(5,17,33,.15); padding: 18px;
}
.iconbox { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: #f2f5fb; border: 1px solid #dde3ef; }

/* News */
.news-card { 
  background: #fff; 
  border: 1px solid #e6e9f2; 
  border-radius: 20px; 
  overflow: hidden; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.news-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card:hover .news-overlay {
  opacity: 1;
}

.news-category {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  align-self: flex-start;
}

.news-date {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e11d2f, #ff5976);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  align-self: flex-start;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-excerpt {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.meta-item i {
  color: #e11d2f;
  font-size: 12px;
}

.news-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e11d2f;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  color: #b10f1f;
  transform: translateX(4px);
}

.btn-read-more i {
  transition: transform 0.3s ease;
}

.btn-read-more:hover i {
  transform: translateX(4px);
}

.btn-bookmark {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.btn-bookmark:hover {
  color: #e11d2f;
  background: rgba(225, 29, 47, 0.1);
  transform: scale(1.1);
}

.btn-bookmark.active {
  color: #e11d2f;
}

/* Benefits */
.benefits {
  position: relative; padding: 70px 0;
  background: radial-gradient(1200px 500px at 20% -10%, rgba(255,255,255,.05), transparent), linear-gradient(#0b1a2d, #0b1a2d);
}
.benefits::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(255,255,255,.06) 95%), linear-gradient(90deg, transparent 95%, rgba(255,255,255,.06) 95%);
  background-size: 28px 28px; opacity: .1; pointer-events: none;
}
.benefit-card {
  background: #0f213a; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }

.benefit-card img {
  display: block;
  border-radius: 16px;
  max-width: 100%;
  margin-bottom: 16px;
}

/* CTA */
.cta-band { border-block: 1px solid var(--line); background: #0b1a2d; }

/* Footer */
footer { border-top: 1px solid var(--line); background: #0b1a2d; }
.foot-nav { display: grid; gap: 8px; }
.legal { border-top: 1px solid var(--line); color: #8ea3bf; font-size: 14px; }

/* Utilities */
section { padding: 70px 0; }
.section-head { display: grid; gap: 6px; margin-bottom: 18px; }
.section-head p { color: var(--muted); margin: 0; }
.muted { color: var(--muted); }

.footer-section {
  background-color: #111;
  color: #0f172a;
  padding: 70px 0;
}

.footer-section .about-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

.footer-section .form-control {
  border: 1px solid #d1d5db;
  color: #374151;
}

.footer-section .form-control::placeholder {
  color: #9ca3af;
}

.footer-section .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.footer-section h3 {
  color: #111827;
}

.footer-section p {
  color: #6b7280;
}

.footer-section .muted {
  color: #6b7280;
}

/* Enhanced Stats Card Styles */
.stats-card {
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  padding: 60px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.stat {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #3966ec);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ed3d3d, #203aab);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.stat:hover .stat-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.stat-icon i {
  font-size: 24px;
  color: white;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat .num {
  font-weight: 900;
  font-size: clamp(24px, 4vw, 36px);
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.stat:hover .num {
  color: #0f172a;
}

.stat .sub {
  color: #718096;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo-brand {
  width: 60px;
  border-radius: 16px;
  overflow: hidden;
}

.font-join {
  font-size: 24px;
}

/* Member Page Styles */
.member-main {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  min-height: 100vh;
}

.member-hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
}

.member-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?q=80&w=1987&auto=format&fit=crop') center/cover no-repeat;
  opacity: .15;
  mix-blend: screen;
}

.member-hero .container-custom {
  position: relative;
  z-index: 2;
}

.member-title {
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.02;
  margin-bottom: 16px;
  font-weight: 900;
  color: #ff3131;
  text-shadow: 0 2px 0 #8b0d12, 0 14px 35px rgba(0,0,0,.6);
  position: relative;
  z-index: 1;
}

.member-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #b9c6da;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.member-grid {
  padding: 80px 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

.member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Game-like Member Card Styles */
.member-card {
  background: rgba(15, 33, 58, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: block;
  margin-bottom: 32px;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(225, 29, 47, 0.1) 0%, 
    rgba(255, 89, 118, 0.1) 50%, 
    rgba(225, 29, 47, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.member-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    #e11d2f, #ff5976, #e11d2f, #ff5976, #e11d2f);
  background-size: 300% 300%;
  border-radius: 22px;
  opacity: 0;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hover Effects - Game-like Character Selection */
.member-card:hover {
  transform: scale(1.02);
  border-color: rgba(225, 29, 47, 0.6);
  box-shadow: 
    0 25px 60px rgba(225, 29, 47, 0.4),
    0 0 40px rgba(255, 89, 118, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.member-card:hover::before {
  opacity: 1;
}

.member-card:hover::after {
  opacity: 1;
}

/* Member Image with Grayscale Effect */
.member-image {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(1.1);
}

.member-card:hover .member-image img {
  filter: grayscale(0%) brightness(1) contrast(1);
  transform: scale(1);
}

/* Member Overlay with Stats */
.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(0, 0, 0, 0.8) 0%, 
    rgba(0, 0, 0, 0.4) 50%, 
    rgba(0, 0, 0, 0.8) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: all 0.4s ease;
}

.member-card:hover .member-overlay {
  opacity: 1;
}

.member-stats {
  display: flex;
  gap: 20px;
  width: 100%;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Member Info */
.member-info {
  padding: 25px;
  position: relative;
  z-index: 2;
  background: rgba(15, 33, 58, 0.9);
  backdrop-filter: blur(10px);
	
  display: flex;
  column-gap: 16px;
}

.member-logo-item {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 8px;
}

.member-info h5 {
	font-size: 14px;
	color: #e11d2f;
	font-weight: bold;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* จำนวนบรรทัด */
  -webkit-box-orient: vertical;
}

.member-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.member-position {
  font-size: 16px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 4px;
}

.member-company {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 15px;
  font-weight: 500;
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(225, 29, 47, 0.2);
  color: #ff5976;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 89, 118, 0.3);
  transition: all 0.3s ease;
}

.member-card:hover .skill-tag {
  background: rgba(255, 89, 118, 0.3);
  color: #fff;
  border-color: rgba(255, 89, 118, 0.6);
  transform: translateY(-2px);
}

/* CTA Section */
.member-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-top: 1px solid var(--line);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cta-content p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .member-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }
  
  .member-card {
    margin: 0 auto;
    max-width: 400px;
  }
  
  .member-hero {
    padding: 60px 0 40px;
  }
  
  .member-grid {
    padding: 60px 0;
  }
  
  .member-cta {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .member-cards {
    padding: 0 10px;
  }
  
  .member-image {
    height: 240px;
  }
  
  .member-info {
    padding: 20px;
  }
  
  .member-name {
    font-size: 20px;
  }
  
  .member-position {
    font-size: 14px;
  }
  
  .member-company {
    font-size: 13px;
  }
}

/* Single Member Page Styles */
.single-member-main {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  min-height: 100vh;
}

/* Member Banner Section */
.member-banner {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--navy-900), #000);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.member-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?q=80&w=1987&auto=format&fit=crop') center/cover no-repeat;
  opacity: .15;
  mix-blend: screen;
}

.member-inside-banner {
  padding-top: 60px;
  padding-bottom: 0;
  background-image: url('../img/member-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

.member-inside-banner:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  left: 0;
  top: 0;
  z-index: -1;
}

.member-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.profile-image {
  position: relative;
  text-align: center;
}

.profile-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.profile-image:hover img {
  transform: scale(1.05);
  border-color: var(--red);
}

.profile-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(225, 29, 47, 0.3);
}

.profile-info {
  color: white;
  text-align: left;
}

.profile-info h1,
.profile-info h2,
.profile-info h3 {
  text-align: left;
}

.profile-info h3 {
  background-color: var(--red);
  color: #fff;
  margin-bottom: 24px;
  padding: 10px 16px;
  border-radius: 30px;
  display: inline-block;
}

.profile-header h1 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 900;
  color: #ff3131;
  text-shadow: 0 2px 0 #8b0d12, 0 14px 35px rgba(0,0,0,.6);
  margin-bottom: 8px;
}

.profile-header .member-title {
  font-size: 20px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-header .member-company {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 30px;
}

.profile-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.profile-actions {
  display: flex;
  gap: 16px;
}

/* Services Section */
.member-services {
  padding: 80px 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(15, 33, 58, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--red);
  box-shadow: 0 20px 40px rgba(225, 29, 47, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon i {
  font-size: 24px;
  color: white;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  color: #fff;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  padding-left: 20px;
}

.service-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

/* Key Customers Section */
.key-customers {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.customer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.customer-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--red);
}

.customer-logo {
  margin-bottom: 20px;
}

.customer-logo img {
  width: 120px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.8);
  transition: all 0.3s ease;
}

.customer-card:hover .customer-logo img {
  filter: grayscale(0%) brightness(1);
}

.customer-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.customer-info p {
  color: var(--muted);
  margin-bottom: 15px;
}

.customer-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stars {
  color: #ffd700;
}

.customer-rating span {
  color: #fff;
  font-weight: 600;
}

/* Looking For Section */
.looking-for {
  padding: 80px 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

.looking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.looking-card {
  background: rgba(15, 33, 58, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.looking-card:hover {
  transform: translateY(-10px);
  border-color: var(--pink);
  box-shadow: 0 20px 40px rgba(255, 89, 118, 0.2);
}

.looking-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--pink), var(--red));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.looking-icon i {
  font-size: 24px;
  color: white;
}

.looking-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.looking-card p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.looking-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  background: rgba(255, 89, 118, 0.2);
  color: var(--pink);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 89, 118, 0.3);
}

.contact-cta {
  text-align: center;
  background: rgba(15, 33, 58, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.contact-cta h3 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.contact-cta p {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 16px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* Contact Section */
.member-contact {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-top: 1px solid var(--line);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--muted);
}

.contact-item i {
  color: var(--red);
  font-size: 18px;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--red);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
}

.contact-form h4 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  width: 100%;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 29, 47, 0.1);
}

.form-control::placeholder {
  color: var(--muted);
}

.primary-menu ul {
  list-style: none;
  height: 100%;
  display: flex;
  align-items: center;
  column-gap: 16px;
  margin-bottom: 0;
}

.primary-menu ul li {
  display: inline-block;
}

.form-box {
  max-width: 960px;
  margin: auto;
  margin-top: -180px;
  background-color: #fff;
  padding: 36px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 5;
}

.form-box input {
  width: 100%;
}

.form-box .wpforms-field-row {
  max-width: 100%!important;
  width: 100%!important;
}

.form-box .wpforms-field > input {
  width: 100%!important;
  max-width: 100%!important;
}

.form-box .wpforms-submit {
  margin: auto;
  display: block;
  font-size: 24px!important;
}

.we-looking-for {
  text-align: center;
  padding-top: 60px;
  max-width: 800px;
  margin: auto;
}

.we-looking-for img {
  max-width: 800px;
  display: inline-block;
  border-radius: 16px;
}

.section-grey {
  padding: 60px 16px;
  background-color: #0E1F37;
}

.job-title {
  text-align: center;
  color: #fff;
  font-size: 40px;
  margin-bottom: 32px;
  padding: 0;
}

.we-looking-for img {
  max-width: 100%;
  box-shadow: var(--shadow); 
}

.inside-member-card {
  padding: 32px 16px;
  border-radius: 16px;
}

.member-social-container {
	display: block;
	margin-bottom: 8px;
}

.the-icon {
  display: inline-block;
  text-align: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 40px;
  border-radius: 100%;
  background-color: #FF3132;
  color: #fff;
}

.member-social-icon {
	transition: 0.4s;
	display: inline-flex;
	white-space: nowrap; 
	align-items: center;
	gap: 10px;
	padding: 6px;
	padding-right: 16px;
	border-radius: 32px;
	background-color: #333;
	color: #fff;
}

.second-icon {
	transition: 0.4s;
	width: 32px;
	height: 32px;
	text-align: center;
	line-height: 32px;
	border-radius: 50%;
    background-color: #fff;
	color: #333;
}

.member-social-icon:hover {
	transition: 0.4s;
	background-color: #FF3132;
}

.member-social-icon:hover .second-icon {
	transition: 0.4s;
	color: #FF3132;
}

.member-company-logo {
	width: 120px;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 16px;
}

.member-sub {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-item {
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 8px;
  border-radius: 16px;
  background-color: #fff;
  aspect-ratio: 1/1;
}

.customer-item img {
  height: 80px;
}

.in-member-title {
  font-size: 60px;
  font-weight: 900;
  position: relative;
  display: inline-block;
}

.in-member-title .sub {
  font-size: 24px;
  color: #FF3132;
  position: absolute;
  z-index: 2;
  margin-left: 16px;
  padding-left: 8px;
  bottom: 0px;
  left: 100%;
  min-width: 240px;
}

.in-member-title .sub:before {
  content: "";
  height: 32px;
  width: 3px;
  display: block;
  background-color: #fff;
  transform: skewX(-45deg);
  position: absolute;
  left: 0;
  bottom: 14px;
}

.req-item {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.req-item .req-number {
  transition: 0.4s;
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  font-size: 30px;
  text-align: center;

  border-radius: 50%;
  background-color: #FF3132;
  color: #fff;
  font-weight: bold;
  margin-right: 16px;
}

.req-item p {
  transition: 0.4s;
  margin-bottom: 0;
  font-size: 28px;
  background-color: #eee;
  color: #666;
  border-radius: 32px;
  padding: 4px 0;
  padding-left: 6px;
  flex: 1;
  text-align: left;
  cursor: pointer;
}

.req-item:hover p {
  transition: 0.4s;
  color: #fff;
  background-color: #FF3132;
  margin-left: 10px;
}

.req-item:hover .req-number {
	transition: 0.4s;
	background-color: #fff;
	color: #ff3132;
}

.members-swiper {
  padding-bottom: 40px;
}

.member-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  text-align: center;
}

.member-thumb img {
  border-radius: 50%;
  max-width: 120px;
  margin: 0 auto 15px;
}

.member-title {
  font-size: 18px;
  font-weight: 600;
}

.member-desc {
  font-size: 14px;
  opacity: 0.8;
}

.member-form {
  max-width: 800px;
  margin: auto;
}

.member-form form {
  width: 100%;
  display: block!important;
  margin: auto!important;
  background: #fff!important;
  border-radius: 32px!important;
  padding: 32px!important;
}

.member-form form .wpforms-field {
  width: 100%;
}

.member-form form .wpforms-field input,
.member-form form .wpforms-field textarea {
  width: 100%!important;
  max-width: 100%;
  border-radius: 8px!important;
  font-size: 18px;
}

.member-form form button[type="submit"] {
  transition: 0.4s;
  width: 100%;
  padding: 16px!important;
  border-radius: 16px!important;
  font-size: 20px!important;
  max-width: 100%;
  height: auto!important;
  background: #FF3132!important;
}

.member-form form button[type="submit"]:hover {
  transition: 0.4s;
  font-size: 24px!important;
  padding: 14px!important;
}

.social-item {
  font-size: 36px;
}

.social-item a {
  transition: 0.4s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;

  border-radius: 50%;
  background-color: #FF3132;
  border: 2px solid #FF3132;
  color: #fff;
}

.social-item a:hover {
  transition: 0.4s;
  background-color: #FF3132;
  border: 2px solid #fff;
}

.footer-social {
  text-align: right;
}

.footer-social a {
  display: inline-block;
  margin-left: 8px;
}

.product-item p {
  margin: 0;
  height: 85px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;        /* จำนวนบรรทัด */
  -webkit-box-orient: vertical;
}

/*zzz*/

/* Responsive Design */
@media (max-width: 768px) {
  .member-profile {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .profile-stats {
    justify-content: center;
  }
  
  .profile-actions {
    justify-content: center;
  }
  
  .services-grid,
  .customers-grid,
  .looking-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .member-banner,
  .member-services,
  .key-customers,
  .looking-for,
  .member-contact {
    padding: 60px 0;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 600px) {
  .profile-image img {
    width: 200px;
    height: 200px;
  }
  
  .service-card,
  .looking-card {
    padding: 20px;
  }
  
  .contact-form {
    padding: 20px;
  }
	
	.in-member-title {
		font-size: 30px;
	}
	
	.in-member-title .sub {
		font-size: 18px;
	}
	
	.in-member-title .sub:before {
		height: 18px;
		bottom: 8px;
	}
	
	.req-item p {
		font-size: 16px;
	}
	
	.req-item .req-number {
		width: 40px;
		height: 40px;
		line-height: 40px;
		font-size: 18px;
	}
}