/* =========================================================
   MIDSOFT — Enterprise Website Stylesheet
   Google-inspired design language, pure CSS, no frameworks
   ========================================================= */

/* ---------- 1. ROOT VARIABLES ---------- */
:root {
  /* Google accent colors */
  --blue: #4285F4;
  --red: #EA4335;
  --yellow: #FBBC05;
  --green: #34A853;

  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-dark: #202124;

  /* Text */
  --text-primary: #202124;
  --text-secondary: #5F6368;
  --text-inverse: #FFFFFF;

  /* Radius / shadow */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(32,33,36,.06);
  --shadow-md: 0 8px 24px rgba(32,33,36,.10);
  --shadow-lg: 0 16px 48px rgba(32,33,36,.14);

  /* Font */
  --font-display: 'Google Sans', 'Poppins', -apple-system, sans-serif;
  --font-body: 'Poppins', -apple-system, sans-serif;

  /* Layout */
  --container: 1240px;
  --nav-height: 76px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- 2. RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-secondary); }
.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.eyebrow::before { content:""; width: 24px; height: 2px; background: var(--blue); border-radius: 2px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--text-secondary); font-size: 18px; line-height: 1.6; }

/* gradient text util */
.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* ---------- 3. LOADING SCREEN ---------- */
#loader {
  position: fixed; inset: 0; background: var(--bg-primary); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark { display:flex; gap: 8px; }
.loader-dot { width: 16px; height: 16px; border-radius: 50%; animation: loaderBounce 1s ease-in-out infinite; }
.loader-dot:nth-child(1){background:var(--blue); animation-delay:0s;}
.loader-dot:nth-child(2){background:var(--red); animation-delay:.12s;}
.loader-dot:nth-child(3){background:var(--yellow); animation-delay:.24s;}
.loader-dot:nth-child(4){background:var(--green); animation-delay:.36s;}
@keyframes loaderBounce { 0%,80%,100%{transform:translateY(0);} 40%{transform:translateY(-16px);} }

/* ---------- 4. SCROLL PROGRESS BAR ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
  z-index: 10000; transition: width .1s linear;
}

/* ---------- 5. CUSTOM CURSOR (desktop) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top:0; left:0; pointer-events: none; z-index: 9998;
  border-radius: 50%; transform: translate(-50%,-50%); mix-blend-mode: difference;
}
.cursor-dot { width: 8px; height: 8px; background: #fff; transition: opacity .2s; }
.cursor-ring { width: 36px; height: 36px; border: 1.5px solid #fff; transition: transform .15s var(--ease), opacity .2s; }
body.cursor-active .cursor-ring.grow { transform: translate(-50%,-50%) scale(1.8); }
@media (hover:none), (pointer:coarse) { .cursor-dot, .cursor-ring { display:none; } }

/* ---------- 6. NAVBAR ---------- */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--nav-height); display: flex; align-items: center;
  background: rgba(255,255,255,.7); backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(32,33,36,.06);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
#navbar.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.92); }
.nav-inner { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; flex-shrink: 0; }
.logo-mark { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }

.nav-menu { display: flex; align-items: center; gap: 0; flex-shrink: 1; min-width: 0; }
.nav-menu > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 3px; padding: 9px 10px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--text-primary); transition: background .25s, color .25s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus-visible { background: var(--bg-secondary); color: var(--blue); }
.nav-link svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
li.has-dropdown:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s var(--ease); border: 1px solid rgba(32,33,36,.06);
}
li.has-dropdown:hover .dropdown, li.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text-secondary); transition: background .2s, color .2s; }
.dropdown a:hover { background: var(--bg-secondary); color: var(--blue); }

.nav-search {
  position: relative;
  display: flex; align-items: center; flex-shrink: 0;
}
.nav-search input {
  width: 168px; padding: 9px 14px 9px 34px; border-radius: 999px; border: 1px solid rgba(32,33,36,.12);
  font-size: 13px; background: var(--bg-secondary); transition: width .3s var(--ease), border-color .3s, background .3s;
}
.nav-search input:focus { width: 220px; border-color: var(--blue); background:#fff; }
.nav-search svg { position: absolute; left: 12px; width: 14px; height: 14px; color: var(--text-secondary); pointer-events:none; }
.search-results {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px); width: 300px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid rgba(32,33,36,.08);
  padding: 8px; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  max-height: 320px; overflow-y: auto; z-index: 50;
}
.search-results.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.search-result-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 10px; transition: background .2s; }
.search-result-item:hover, .search-result-item.active { background: var(--bg-secondary); }
.search-result-item .srt { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.search-result-item .srd { font-size: 12px; color: var(--text-secondary); }
.search-no-results { padding: 14px; font-size: 13px; color: var(--text-secondary); text-align: center; }

.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-select {
  border: 1px solid rgba(32,33,36,.12); border-radius: 999px; padding: 7px 10px; font-size: 12.5px;
  background: transparent; color: var(--text-secondary);
}
.btn-nav-contact {
  padding: 9px 18px; border-radius: 999px; background: var(--text-primary); color: #fff;
  font-size: 13.5px; font-weight: 600; transition: transform .25s var(--ease), box-shadow .25s; flex-shrink: 0;
}
.btn-nav-contact:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; }
.nav-toggle span { height: 2px; background: var(--text-primary); border-radius: 2px; transition: all .3s var(--ease); }

/* ---------- 7. BUTTONS ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary { background: var(--text-primary); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(32,33,36,.25); }
.btn-outline { background: #fff; color: var(--text-primary); border: 1.5px solid rgba(32,33,36,.15); }
.btn-outline:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-md); }
.btn-google { background: var(--blue); color: #fff; }
.btn-google:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(66,133,244,.35); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); transform: scale(0); animation: rippleAnim .6s var(--ease); pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(3); opacity: 0; } }

/* ---------- 8. HERO ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  padding-top: var(--nav-height); overflow: hidden;
  background: var(--bg-secondary);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; animation: blobFloat 16s ease-in-out infinite; }
.blob-1 { width: 460px; height: 460px; background: var(--blue); top: -10%; left: -8%; }
.blob-2 { width: 420px; height: 420px; background: var(--red); top: 10%; right: -10%; animation-delay: -4s; }
.blob-3 { width: 380px; height: 380px; background: var(--yellow); bottom: -12%; left: 20%; animation-delay: -8s; }
.blob-4 { width: 400px; height: 400px; background: var(--green); bottom: -15%; right: 10%; animation-delay: -12s; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.08); }
  66% { transform: translate(-24px,30px) scale(.95); }
}
.floating-shape { position: absolute; opacity: .5; animation: shapeDrift 12s ease-in-out infinite; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-content h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -.02em; margin-bottom: 24px; }
.typewriter-cursor { border-right: 3px solid var(--blue); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { border-color: transparent; } }
.hero-content .subtitle { font-size: clamp(16px,2vw,19px); color: var(--text-secondary); max-width: 640px; margin: 0 auto 40px; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--text-primary); }
.stat .label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:8px; color: var(--text-secondary); font-size: 12px; z-index: 2; }
.scroll-hint .mouse { width: 22px; height: 36px; border: 2px solid var(--text-secondary); border-radius: 12px; position: relative; }
.scroll-hint .mouse::before { content:""; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; background: var(--text-secondary); border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.6s ease infinite; }
@keyframes scrollDot { 0%{opacity:1; top:6px;} 100%{opacity:0; top:18px;} }

/* ---------- 9. REVEAL / SCROLL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger > *:nth-child(1){transition-delay:.05s} .reveal-stagger > *:nth-child(2){transition-delay:.12s}
.reveal-stagger > *:nth-child(3){transition-delay:.19s} .reveal-stagger > *:nth-child(4){transition-delay:.26s}
.reveal-stagger > *:nth-child(5){transition-delay:.33s} .reveal-stagger > *:nth-child(6){transition-delay:.40s}
.reveal-stagger > *:nth-child(7){transition-delay:.47s}

/* ---------- 10. GRID / CARD SYSTEMS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }

.card {
  background: #fff; border-radius: var(--radius-lg); padding: 36px 30px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(32,33,36,.06); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(66,133,244,.08), transparent 40%);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(66,133,244,.25); }

.icon-wrap {
  width: 56px; height: 56px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; transition: transform .4s var(--ease);
}
.card:hover .icon-wrap { transform: scale(1.1) rotate(-4deg); }
.icon-wrap svg { width: 28px; height: 28px; }
.bg-blue { background: rgba(66,133,244,.12); color: var(--blue); }
.bg-red { background: rgba(234,67,53,.12); color: var(--red); }
.bg-yellow { background: rgba(251,188,5,.14); color: #a97300; }
.bg-green { background: rgba(52,168,83,.12); color: var(--green); }

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; margin-bottom: 20px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }
.card-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- 11. INDUSTRIES ---------- */
.industry-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; height: 380px; box-shadow: var(--shadow-md); }
.industry-card .industry-bg { position: absolute; inset: 0; opacity: .12; transition: transform .6s var(--ease); }
.industry-card:hover .industry-bg { transform: scale(1.1); }
.industry-card .industry-content { position: relative; z-index: 2; padding: 36px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.industry-card h3 { font-size: 24px; margin-bottom: 10px; }
.industry-card p { color: var(--text-secondary); font-size: 14.5px; }
.industry-card svg.industry-illus { position: absolute; top: 30px; right: 30px; width: 90px; height: 90px; opacity: .9; }

/* ---------- 12. TIMELINE (Engineering / Programs) ---------- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--blue), var(--green), var(--yellow), var(--red)); }
.timeline-item { position: relative; padding-left: 68px; margin-bottom: 48px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: 14px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); z-index: 2; }
.timeline-item:nth-child(2) .timeline-dot { border-color: var(--red); }
.timeline-item:nth-child(3) .timeline-dot { border-color: var(--yellow); }
.timeline-item:nth-child(4) .timeline-dot { border-color: var(--green); }
.timeline-item h4 { font-size: 19px; margin-bottom: 8px; }
.timeline-item p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.7; }

/* ---------- 13. PRODUCTS ---------- */
.product-card { display: flex; flex-direction: column; }
.product-logo { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 18px; margin-bottom: 20px; }

/* ---------- 14. CERTIFICATIONS ---------- */
.cert-card {
  display: flex; gap: 28px; align-items: center; background: linear-gradient(135deg,#fff,var(--bg-secondary));
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); border: 1px solid rgba(32,33,36,.06);
}
.cert-badge { flex-shrink: 0; width: 110px; height: 110px; border-radius: 50%; background: conic-gradient(var(--blue),var(--green),var(--yellow),var(--red),var(--blue)); display:flex; align-items:center; justify-content:center; padding: 6px; }
.cert-badge-inner { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--text-primary); flex-direction: column; }
.cert-badge-inner .code { font-size: 15px; color: var(--blue); }
.cert-info h3 { font-size: 22px; margin-bottom: 8px; }
.cert-info p { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 16px; }

/* ---------- 15. EVENT CARDS ---------- */
.event-card { border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); border:1px solid rgba(32,33,36,.06); transition: all .4s var(--ease); }
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.event-banner { height: 140px; position: relative; overflow:hidden; }
.event-body { padding: 26px; }
.event-date { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; }
.event-body h3 { font-size: 18px; margin-bottom: 8px; }
.event-body p { color: var(--text-secondary); font-size: 14px; }

/* ---------- 16. CAREERS ---------- */
.careers-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 40px; }
.benefit-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-secondary); }
.benefit-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--green); margin-top: 2px; }
.job-list { display: flex; flex-direction: column; gap: 14px; }
.job-item {
  display: flex; align-items: center; justify-content: space-between; padding: 22px 26px;
  background: #fff; border: 1px solid rgba(32,33,36,.08); border-radius: var(--radius-md); transition: all .3s var(--ease);
}
.job-item:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateX(6px); }
.job-item h4 { font-size: 16px; margin-bottom: 6px; }
.job-item span { font-size: 13px; color: var(--text-secondary); }
.job-tag { font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(66,133,244,.1); color: var(--blue); }

/* ---------- 17. CLIENT LOGOS CAROUSEL ---------- */
.logo-carousel { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); mask-image: linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); }
.logo-track { display: flex; gap: 64px; width: max-content; animation: scrollLogos 30s linear infinite; align-items: center; }
.logo-track:hover { animation-play-state: paused; }
@keyframes scrollLogos { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--text-secondary); opacity: .55; transition: opacity .3s; white-space: nowrap; }
.logo-item:hover { opacity: 1; color: var(--blue); }

/* ---------- 18. UNIVERSITY / ECOSYSTEM GRID ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.partner-tile {
  background: #fff; border: 1px solid rgba(32,33,36,.08); border-radius: var(--radius-md); padding: 28px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; transition: all .3s var(--ease);
}
.partner-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.partner-tile svg { width: 34px; height: 34px; }
.partner-tile span { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

/* ---------- 19. FAQ ACCORDION ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid rgba(32,33,36,.08); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 22px 26px;
  font-size: 15.5px; font-weight: 600; text-align: left;
}
.faq-question .plus { width: 22px; height: 22px; position: relative; flex-shrink: 0; }
.faq-question .plus::before, .faq-question .plus::after { content:""; position: absolute; background: var(--blue); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-question .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-question .plus::after { height: 100%; width: 2px; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item.active .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-answer p { padding: 0 26px 22px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.7; }

/* ---------- 20. NEWSLETTER ---------- */
.newsletter {
  border-radius: var(--radius-lg); padding: 64px; text-align: center; position: relative; overflow: hidden;
  background: var(--text-primary); color: #fff;
}
.newsletter::before {
  content:""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 20% 20%, rgba(66,133,244,.35), transparent 45%),
              radial-gradient(circle at 80% 30%, rgba(234,67,53,.3), transparent 45%),
              radial-gradient(circle at 40% 85%, rgba(52,168,83,.3), transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(251,188,5,.3), transparent 45%);
}
.newsletter-inner { position: relative; z-index: 2; }
.newsletter h2 { font-size: 32px; margin-bottom: 14px; }
.newsletter p { color: rgba(255,255,255,.7); margin-bottom: 32px; }
.newsletter-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto 32px; }
.newsletter-form input {
  flex: 1; padding: 15px 20px; border-radius: 999px; border: none; font-size: 14.5px;
}
.newsletter-form button { padding: 15px 28px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; transition: transform .3s var(--ease); }
.newsletter-form button:hover { transform: scale(1.05); }
.social-row { display: flex; gap: 14px; justify-content: center; }
.social-icon {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center;
  transition: all .3s var(--ease);
}
.social-icon:hover { background: var(--blue); transform: translateY(-4px); }
.social-icon svg { width: 18px; height: 18px; color: #fff; }

/* ---------- 21. FOOTER ---------- */
footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 90px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin: 18px 0 24px; color: rgba(255,255,255,.55); }
.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13.5px; padding: 7px 0; color: rgba(255,255,255,.55); transition: color .25s, transform .25s; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-contact-item { display: flex; gap: 10px; font-size: 13.5px; margin-bottom: 12px; color: rgba(255,255,255,.55); }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.footer-map { border-radius: var(--radius-md); overflow: hidden; margin-top: 16px; height: 130px; background: linear-gradient(135deg,#2c2d30,#1a1b1d); display:flex; align-items:center; justify-content:center; color: rgba(255,255,255,.3); font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; flex-wrap: wrap; gap: 16px; font-size: 13px; color: rgba(255,255,255,.45); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center; transition: background .3s; }
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- 22. BACK TO TOP ---------- */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--text-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .35s var(--ease); z-index: 500;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--blue); transform: translateY(-4px); }

/* ---------- 23. UTILITIES ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.dot-tag { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- 24. RESPONSIVE ---------- */
@media (max-width: 1300px) {
  .nav-search input { width: 130px; }
  .nav-search input:focus { width: 180px; }
}
@media (max-width: 1180px) {
  .lang-select { display: none; }
  .nav-search input { width: 110px; }
  .nav-search input:focus { width: 160px; }
  .nav-link { padding: 9px 8px; font-size: 13px; }
}
@media (max-width: 960px) {
  .nav-menu, .nav-search { display: none; }
  .nav-toggle { display: flex; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .careers-wrap { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2,1fr); }
  .section { padding: 80px 0; }
  .newsletter { padding: 40px 24px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 28px; }
  .grid-4 { grid-template-columns: 1fr; }
  .cert-card { flex-direction: column; text-align: center; }
}

.mobile-menu .mobile-search { display: none; position: relative; width: 100%; margin-bottom: 20px; }
.mobile-menu .mobile-search input { width: 100%; padding: 13px 16px 13px 40px; font-size: 14px; }
.mobile-menu .mobile-search input:focus { width: 100%; }
.mobile-menu .mobile-search svg { left: 16px; width: 16px; height: 16px; }
.mobile-menu .mobile-search .search-results { width: 100%; left: 0; transform: translateY(8px); }
.mobile-menu .mobile-search .search-results.show { transform: translateY(0); }
@media (max-width: 960px) { .mobile-menu .mobile-search { display: flex; } }
.mobile-menu {
  position: fixed; top: var(--nav-height); left: 0; width: 100%; height: calc(100vh - var(--nav-height));
  background: #fff; z-index: 999; transform: translateX(100%); transition: transform .4s var(--ease);
  overflow-y: auto; padding: 30px 24px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { display: block; padding: 16px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--bg-secondary); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
