/* ==============================
   Base & Global
============================== */

:root {
  --primary: #0060d9;
  --primary-dark: #00459f;
  --accent: #f0a500;
  --text: #111827;
  --muted: #6b7280;
  --bg-light: #f7f9fc;
  --white: #ffffff;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 100% - 2.75rem);
  margin: 0 auto;
}

/* ==============================
   Top Bar
============================== */

.top-bar {
  background: #020617;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-bar-left span {
  margin-right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.top-bar-right .top-link {
  margin-left: 0.8rem;
  font-weight: 500;
  color: #c7d2fe;
  position: relative;
}

.top-bar-right .top-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.top-bar-right .top-link:hover::after {
  width: 100%;
}

/* ==============================
   Header & Navigation
============================== */

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.04);
}

.navbar {
  padding: 0.6rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-wrap img {
  height: 50px;
}

.site-title {
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
}

.site-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Buttons */

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 96, 217, 0.3);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 69, 159, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary.full-width {
  width: 100%;
}

.nav-cta {
  white-space: nowrap;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  transition: var(--transition);
}

/* ==============================
   Hero / Slider
============================== */

.hero {
  background: radial-gradient(circle at top left, #e3f0ff, #ffffff 55%);
  padding: 2.6rem 0 3rem;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.slides {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.4rem;
  padding: 2.4rem 2.6rem 2.6rem;
  align-items: center;
}

.slide-title {
  font-size: clamp(2rem, 3.1vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: #111827;
}

.slide-title span {
  color: var(--primary);
}

.slide-text {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1rem;
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #e0edff;
  color: #1f3a8a;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.slide-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.slide-visual {
  justify-self: end;
}

.card {
  background: linear-gradient(135deg, #0b1120, #1d4ed8);
  color: #ffffff;
  padding: 1.7rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.55);
  max-width: 320px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.card-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
  gap: 0.7rem;
}

.card-pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  font-size: 0.75rem;
}

/* Slider dots */

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.slider-dot.active {
  width: 18px;
  background: var(--primary);
}

/* ==============================
   Sections: Global
============================== */

.section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.1rem;
}

.section-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

.section-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.section-note.center {
  text-align: center;
}

/* ==============================
   About Preview
============================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.about-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.4rem 0;
}

.about-box {
  padding: 0.9rem 1rem;
  border-radius: 13px;
  background: #eef2ff;
  font-size: 0.86rem;
  font-weight: 600;
  color: #111827;
}

.about-box span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.about-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.about-card ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
}

.about-card li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.45rem;
}

.about-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
}

.about-btn {
  margin-top: 0.6rem;
}

/* ==============================
   Malaysia & Malta Sections
============================== */

.highlight {
  background: var(--bg-light);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.subheading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tick-list {
  list-style: none;
  padding-left: 0;
  margin: 0.2rem 0 0.8rem;
  font-size: 0.9rem;
}

.tick-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.35rem;
}

.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 0.85rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.info-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.info-card li {
  margin-bottom: 0.35rem;
}

/* ==============================
   Countries Preview
============================== */

.countries-preview {
  background: #ffffff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.country-card {
  border-radius: 14px;
  padding: 1.4rem 1.3rem;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid transparent;
  transition: var(--transition);
  font-size: 0.9rem;
}

.country-card:hover {
  transform: translateY(-4px);
  border-color: #e5edff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.1);
}

.country-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.flag-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #111827;
}

.country-name {
  font-weight: 700;
}

.country-type {
  font-size: 0.8rem;
  color: var(--muted);
}

.service-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==============================
   Testimonial Preview
============================== */

.testimonial-preview {
  background: var(--bg-light);
}

.quote-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.7rem 1.4rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
}

.quote-text {
  margin-bottom: 0.6rem;
}

.quote-author {
  font-weight: 600;
  color: var(--primary-dark);
}

.video-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.7rem 1.4rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.video-label {
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.video-placeholder {
  border-radius: 12px;
  background: #0f172a;
  color: #e5e7eb;
  padding: 2rem 1.2rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

/* ==============================
   Assessment Section & Forms
============================== */

.assessment {
  background: #ffffff;
}

.assessment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.form-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin-bottom: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  border-radius: 9px;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.6rem;
  font-family: inherit;
  font-size: 0.88rem;
  background: #ffffff;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(0, 96, 217, 0.18);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.assessment-side {
  font-size: 0.9rem;
}

.assessment-side h3 {
  margin-bottom: 0.4rem;
}

.assessment-side p {
  margin: 0.3rem 0;
}

.social-list {
  list-style: none;
  padding-left: 0;
}

.social-list li {
  margin-bottom: 0.25rem;
}

.assessment-footer {
  margin-top: 0.8rem;
  color: var(--muted);
}

/* ==============================
   Footer
============================== */

footer {
  background: #020617;
  color: #9ca3af;
  padding: 2.6rem 0 1.3rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 1.9rem;
}

.footer-brand img {
  height: 42px;
  margin-bottom: 0.7rem;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 0.6rem;
}

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

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: #9ca3af;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 2rem;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-bottom a {
  color: #cbd5f5;
}

/* ==============================
   WhatsApp Floating Button
============================== */

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.5);
  z-index: 1000;
}

/* ==============================
   Modal
============================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 1001;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.9rem 1.7rem 1.6rem;
  max-width: 420px;
  width: min(90%, 420px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
  position: relative;
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.modal p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
  font-size: 1rem;
}

.modal-form .form-field {
  margin-bottom: 0.7rem;
}

/* ==============================
   Responsive
============================== */

@media (max-width: 960px) {
  .slide {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

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

  .about-grid,
  .two-col,
  .assessment-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 768px) {
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .nav-inner {
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 1.5rem 1.1rem;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.45rem 0;
  }

  .nav-cta {
    display: none;
  }

  .slide {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.9rem 1.7rem 2.3rem;
  }

  .slide-visual {
    justify-self: stretch;
    order: -1;
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2rem;
  }
}
