/* =============================================
   IT.CEA.OR.TH — Apple-Inspired Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Design Tokens ─── */
:root {
  /* Apple Color Palette */
  --apple-blue: #0071e3;
  --apple-blue-dark: #0077ed;
  --apple-blue-light: #e8f2fd;

  --color-primary: #0071e3;
  --color-secondary: #147ce5;
  --color-accent: #bf5af2;
  /* Apple purple — used sparingly */
  --color-green: #34c759;
  --color-orange: #ff9f0a;
  --color-red: #ff3b30;

  /* Backgrounds — Apple uses 2 values only */
  --bg-page: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f7;
  --bg-nav: rgba(255, 255, 255, 0.88);

  /* Borders */
  --border: #d2d2d7;
  --border-light: #e8e8ed;

  /* Shadows — Apple's are extremely subtle */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.12);

  /* Typography */
  --text-primary: #1d1d1f;
  /* Apple's near-black */
  --text-secondary: #6e6e73;
  /* Apple's greyed text */
  --text-muted: #86868b;
  /* Apple's placeholder grey */
  --text-link: #0071e3;

  /* Radius — Apple uses very subtle rounding */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 52px;
  /* Apple nav is slim */
}

/* ─── Base Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'SF Pro Display', 'SF Pro Text', 'Sarabun', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.47059;
  /* Apple's exact body line height */
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f7;
}

::-webkit-scrollbar-thumb {
  background: #c7c7cc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aeaeb2;
}

/* ─── Typography ─── */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
}

a {
  color: var(--text-link);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Apple-style large section title */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

/* Apple uses a simple blue for highlights, never rainbow */
.section-title .highlight {
  color: var(--apple-blue);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  font-weight: 400;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ─── Glass Card → Apple Card ─── */
/* Apple cards = white, 1px border, subtle shadow — no blur */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.glass-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
  transform: translateY(-2px);
}

/* ─── Buttons — Apple style ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-xl);
  font-size: 0.94rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Apple's solid blue CTA */
.btn-primary {
  background: var(--apple-blue);
  color: #fff;
}

.btn-primary:hover {
  background: #0077ed;
  transform: none;
}

.btn-primary:active {
  background: #006edb;
  transform: scale(0.98);
}

/* Apple's transparent outlined button */
.btn-outline {
  background: transparent;
  color: var(--apple-blue);
  border: 1px solid var(--apple-blue);
}

.btn-outline:hover {
  background: var(--apple-blue-light);
}

/* Apple's dark/filled secondary */
.btn-glass {
  background: var(--bg-alt);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-glass:hover {
  background: #ebebf0;
}

/* ─── Navigation — Apple Navbar ─── */
/* Apple nav: white/translucent, slim, with bottom border on scroll */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border-light);
  background: rgba(255, 255, 255, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-blue-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
  position: relative;
}

.nav-logo-text {
  line-height: 1.2;
}

.nav-logo-text span {
  color: var(--apple-blue);
  display: block;
}

.nav-logo-text small {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--apple-blue);
  background: transparent;
}

.nav-links a.active {
  color: var(--apple-blue);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── Mobile Nav ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(40px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  width: 280px;
}

.mobile-nav a:hover {
  color: var(--apple-blue);
}

/* ─── Hero ─── */
/* Apple hero: pure white, large text, NO gradient overlay */
#hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 40px 0;
  background: #fff;
}

#hero canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  animation: canvas-fade-in 1.5s 0.8s forwards;
}

@keyframes canvas-fade-in {
  to {
    opacity: 0.7;
  }
}

.hero-image-bg {
  display: none;
}

/* Remove image bg in Apple style */
.hero-bg {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--apple-blue-light);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8rem;
  color: var(--apple-blue);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--apple-blue);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.4);
  }
}

/* Apple hero text: compact for readability and whitespace */
.hero-title {
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.hero-title-en {
  display: block;
  font-size: clamp(1.1rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.hero-title-en span {
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--apple-blue);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 600px;
  line-height: 1.55;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-actions .btn {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator i {
  color: var(--apple-blue);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(7px);
  }
}

/* ─── Announcement Bar ─── */
/* Apple uses a subtle grey-blue banner */
.announcement-bar {
  background: var(--text-primary);
  padding: 8px 0;
  overflow: hidden;
}

.announcement-track {
  display: flex;
  gap: 60px;
  animation: scroll-track 30s linear infinite;
  white-space: nowrap;
}

.announcement-track:hover {
  animation-play-state: paused;
}

/* ─── Team Sections Hierarchy ─── */
.team-group-header {
  text-align: center;
  margin-bottom: 30px;
  grid-column: 1 / -1;
}

.team-sub-header {
  width: 100%;
  padding: 10px 20px;
  background: var(--bg-alt);
  border-left: 4px solid var(--apple-red);
  margin: 40px 0 20px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  border-radius: 0 8px 8px 0;
  grid-column: 1 / -1;
}

.team-leader-card {
  max-width: 400px;
  margin: 0 auto 50px auto;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 400;
}

@keyframes scroll-track {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ─── Quick Access ─── */
#quick-access {
  padding: 88px 0;
  background: #fff;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.quick-card:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
  border-color: var(--border-light);
}

.quick-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.quick-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.quick-card p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Light bg icon variants — Apple palette */
.ic-blue {
  background: #def0ff;
  color: #0071e3;
}

.ic-violet {
  background: #f0ebff;
  color: #5856d6;
}

.ic-pink {
  background: #ffebf5;
  color: #ff2d55;
}

.ic-green {
  background: #e3f9eb;
  color: #34c759;
}

.ic-yellow {
  background: #fff4db;
  color: #ff9500;
}

.ic-purple {
  background: #f5ebff;
  color: #af52de;
}

/* ─── Services ─── */
#services {
  padding: 88px 0;
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.service-card {
  padding: 32px;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--apple-blue);
  transition: all var(--transition);
}

.service-icon i {
  color: inherit;
}

.service-card:hover .service-icon {
  transform: scale(1.02);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag {
  padding: 3px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ─── Stats ─── */
/* Apple uses dark sections for contrast */
#stats {
  padding: 80px 0;
  background: var(--text-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.stat-card:last-child {
  border-right: none;
}

.stat-card:hover {
  transform: none;
  box-shadow: none;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  color: #fff;
  letter-spacing: -0.03em;
  -webkit-text-fill-color: #fff;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* ─── News ─── */
#news {
  padding: 88px 0 40px;
  /* Reduced bottom padding to tighten gap with Contact section */
  background: #fff;
}

/* news-layout: stacked — featured on top, row of 3 below */
.news-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Featured card centred */
.news-featured-center {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  min-height: 480px;
}

/* Row of 3 cards */
.news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Individual card */
.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 0;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--bg-alt);
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.07);
}

.news-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.news-card-body h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

.news-card-body p {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.news-card-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}



.news-featured {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  background: #1d1d1f;
  color: #fff;
  text-decoration: none;
}

.news-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.news-featured:hover::after {
  opacity: 0.75;
}

.news-featured-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-featured:hover .news-featured-bg {
  transform: scale(1.08);
}

.news-featured-content {
  position: relative;
  z-index: 2;
}

.news-featured-content h2,
.news-featured-content p {
  color: #fff !important;
}

.news-featured-emoji {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 3.5rem;
  opacity: 0.25;
}

.news-featured-content {
  position: relative;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}

.news-item h4 {
  color: var(--text-primary);
}

.news-date {
  min-width: 46px;
  text-align: center;
}

.news-date .day {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--apple-blue);
  line-height: 1;
  letter-spacing: -0.02em;
}

.news-date .month {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.news-text p {
  font-size: 0.79rem;
  color: var(--text-muted);
}

.news-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.badge-new {
  background: #e8faf0;
  color: #1c8139;
}

.badge-info {
  background: #e8f2fd;
  color: #0071e3;
}

.badge-update {
  background: #f2effe;
  color: #6e40c9;
}

/* ─── Team Preview ─── */
#team-preview {
  padding: 88px 0;
  background: var(--bg-alt);
}

.team-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 44px;
  background: var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3px;
  width: fit-content;
  margin-inline: auto;
}

/* Apple segmented control */
.tab-btn {
  padding: 8px 24px;
  border-radius: calc(var(--radius-xl) - 2px);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #fff;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.tab-btn:not(.active):hover {
  color: var(--text-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.team-card {
  text-align: center;
  padding: 24px 16px;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.team-card h4 {
  font-size: 0.88rem;
  margin-bottom: 2px;
  font-weight: 600;
}

.team-card .position {
  font-size: 0.75rem;
  color: var(--apple-blue);
  font-weight: 500;
  margin-bottom: 10px;
}

.team-card .contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  align-items: center;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  width: fit-content;
  max-width: 100%;
}

.contact-info i {
  color: var(--apple-blue);
  font-size: 0.7rem;
}

.contact-link:hover {
  background: #e8f2fd;
  border-color: var(--apple-blue);
  color: var(--apple-blue);
}

/* ─── Contact Tooltip ─── */
.contact-tooltip {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 99;
}

.contact-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text-primary);
}

.contact-link.show-tooltip .contact-tooltip {
  opacity: 1;
}

/* ─── Contact Quick ─── */
#contact-quick {
  padding: 40px 0 88px;
  /* Reduced top padding to tighten gap with News section */
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.contact-card {
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.contact-card h3 {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.contact-card .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--apple-blue);
}

/* ─── Footer ─── */
footer {
  background: #f5f5f7;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 44px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li,
.footer-col ul a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--apple-blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ─── Page Hero (sub-pages) — Apple section header style ─── */
/* ─── Page Hero (sub-pages) — Refined Minimalist Style ─── */
.page-hero {
  padding: 80px 0 60px;
  min-height: 280px;
  /* Force uniform size based on Manuals page */
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;

}

/* Base background layer for all heroes */
.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  /* Slightly increased opacity for better detail visibility */
  z-index: 1;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 90%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 90%);
}

/* Unique Minimalist Pastel Backgrounds (Abstract Patterns) */
.hero-team::after {
  background-image: url('/images/team.jpg');
  opacity: 0.65;
}

/* Manuals Hero - Clean Specialist Line Art */
.hero-manuals::after {
  background-image: url('/images/manual.jpg');
  background-size: contain;
  background-position: right 60px center;
  opacity: 0.7;
}

.hero-contact::after {
  background-image: url('/images/contact.jpg');
  opacity: 0.7;
}

.hero-documents::after {
  background-image: url('/images/documents.jpg');
  opacity: 0.7;
}

.hero-knowledge::after,
.hero-faq::after {
  background-image: url('/images/faq.jpg');
  opacity: 0.7;
}

/* Content Layer - Ensures text is always on top and visible */
.page-hero .container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.page-hero .section-title {
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  margin-top: 0;
  color: #000000 !important;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 1 !important;
  transform: none !important;
  letter-spacing: -0.05em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
  /* Subtle glow to pop against any background */
}

.page-hero .section-title i {
  color: var(--apple-blue);
  font-size: 0.8em;
}

.page-hero .breadcrumb {
  display: none !important;
  /* Remove directory link / breadcrumbs as requested */
}

.page-hero .breadcrumb a {
  color: var(--text-muted);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.1));
  z-index: 2;
}

/* Subtle decorative shape — hidden when using background image */
.page-hero:not([class*="hero-"])::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--apple-blue-light);
  right: -200px;
  top: -200px;
  opacity: 0.5;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--apple-blue);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ─── Filter / Search ─── */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 9px 16px;
  flex: 1;
  min-width: 210px;
  max-width: 380px;
  transition: border-color var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  flex: 1;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box i {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Apple segmented pills */
.chip {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.chip.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
}

.chip:hover:not(.active) {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

/* ─── Responsive ─── */
@media(max-width:1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 0 24px;
  }
}

@media(max-width:768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .news-row {
    grid-template-columns: 1fr;
  }
}

@media(max-width:480px) {
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .container {
    padding: 0 16px;
  }
}