/* =========================
   GLOBAL + BASICS
========================= */
:root {
  --header-height: 72px;
  --pad-x: 16px;
}

body {
  margin: 0;
  padding: 0;
  padding-top: var(--header-height);
}

/* Shared top bar on marketing pages: keep clear of legacy header rules
   and give a little more vertical room than the dashboard shell.
   header[data-site-header] beats Tailwind .h-16 (loaded later). */
header[data-site-header] {
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

header[data-site-header] button {
  background: none;
  box-shadow: none;
  padding: 0.5rem 0.75rem;
}

.hidden {
  display: none !important;
}

/* =========================
   HEADER + NAVIGATION
========================= */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* logo left, dropdown center, button right */
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-title img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-title h1 {
  font-size: 1.25rem;
  margin: 0;
  white-space: nowrap;
}

.center-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.login-container {
  display: flex;
  justify-content: flex-end;
}

.login-btn, .logout-btn {
  background: #2563eb;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: filter 0.3s ease;
}

.logout-btn {
  background: #dc2626;
}

.login-btn:hover, .logout-btn:hover {
  filter: brightness(0.95);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  background: #0074EE;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
}

.dropdown-menu {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-radius: 8px;
  display: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  color: #111827;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: #f3f4f6;
}

.dropdown.open .dropdown-menu {
  display: block;
}

header:not([data-site-header]) button {
  background: none !important;
  box-shadow: none !important;
  padding: 0.7rem 1.4rem;
  color: inherit;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.2s ease;
}

/* =========================
   HERO + COURSE CARDS
========================= */
.hero-training {
  background-color: #f7f9fc;
  padding: 60px 20px;
  text-align: center;
}

.course-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* =========================
   About Us PAGE

========================= */

.about-hero {
    background: linear-gradient(135deg, #007bff, #00c7ff);
    padding: 80px 20px;
    text-align: center;
}

.value-icon {
    color: #2563eb; /* Blue accent */
}

/* =========================
   AI TEXTAREA + BUTTON
========================= */
.ai-result, .ai-result *, .ai-copy, .ai-copy * {
  color: #111 !important;
}

.ai-copy {
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.6;
}

.smart-form-wrap {
  position: relative;
  z-index: 10;
  width: 50%;
  max-width: 720px;
  margin: 1rem auto 0;
}

.smart-form-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.75rem 9.5rem 0.75rem 0.75rem;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 8rem;
  background: #fff;
  color: #333;
  text-align: center;
}

.smart-form-wrap textarea::placeholder {
  text-align: center;
}

.smart-form-action {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: inline-block;
}

.smart-form-action .ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  width: auto !important;
  height: auto;
  line-height: 1;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 6px;
  background-color: #ABE96E !important;
  color: #fff !important;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 0.2rem;
}

.smart-form-action .ai-btn:hover {
  background-color: #218838 !important;
}

.smart-form-action .ai-btn svg {
  stroke: #ffffff !important;
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .smart-form-wrap { width: 90%; }
}

/* =========================
   MODAL
========================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  width: min(800px, 92vw);
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.modal-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.modal-body {
  padding: 16px;
  overflow: auto;
  line-height: 1.6;
}

.modal-footer {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  text-align: right;
}

.btn {
  padding: .5rem .9rem;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #111;
}

/* =========================
   LOADER
========================= */
.loader-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-weight: 600;
}

.loader-wrap img {
  width: 22px;
  height: 22px;
}

/* =========================
   COOKIE BANNER
========================= */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 640px);
  background-color: #111827;
  color: #f9fafb;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 100;
}

.cookie-banner__content {
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner__content a {
  color: #60a5fa;
  font-weight: 600;
}

.cookie-banner__content a:hover,
.cookie-banner__content a:focus {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner__accept {
  background-color: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cookie-banner__accept:hover,
.cookie-banner__accept:focus {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.cookie-banner__decline {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(229, 231, 235, 0.4);
  border-radius: 0.5rem;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cookie-banner__decline:hover,
.cookie-banner__decline:focus {
  border-color: rgba(229, 231, 235, 0.8);
  color: #f3f4f6;
}

.cookie-banner--hidden {
  display: none;
}

@media (min-width: 640px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* =========================
   Contact Us PAGE
========================= */
.contact-card-icon {
    color: #10b981; /* Green accent for contact methods */
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db; /* Light gray border */
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
    border-color: #2563eb; /* Blue focus ring */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

/* =========================
   Training Course Accordion
========================= */

/* Accordion behaviour */
.accordion-item {
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
  padding-left: 0.5rem; /* 👈 Adds space from the border */
}

.accordion-item.open {
  border-left: 3px solid #2563EB; /* blue accent */
  background-color: #F8FAFC;      /* light highlight */
  padding-left: 0.75rem;          /* 👈 slightly more space when active */
}

.accordion-header {
  cursor: pointer;
  padding: 0.5rem 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-bottom: 0.25rem; 
}

.accordion-item.open .accordion-content {
  overflow: visible;
}

/* Progress Bar (isolated) */
.progress-bar-container {
  overflow: visible !important;
  position: relative;
}

.progress-bar-fill {
  transition: width 0.5s ease;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: left;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  display: block;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
}

.hero-content {
  max-width: 620px;
}

.hero-content h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 2rem;
}

.hero-content .smart-form-wrap {
  margin: 0;
  width: 100%;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3.5rem 1rem;
  }

  .hero-image {
    order: 1;
  }

  .hero-content {
    order: 2;
    margin: 0 auto;
  }

  .hero-image img {
    margin: 0 auto;
    max-width: 420px;
  }

  .hero-content .smart-form-wrap {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================
   HOME HERO SPLIT
========================= */

.hero-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 3.5rem;
  max-width: 2000px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: left;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 540px;
  display: block;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  font-size: 0.85rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fafafa !important;
  margin-bottom: 1rem !important;
}

.hero-content h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: #111827;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 2rem;
}

.hero-content .smart-form-wrap {
  margin: 0;
  width: 100%;
  max-width: 620px;
}

.hero-content .smart-form-wrap textarea {
  text-align: left;
}

.hero-content .smart-form-wrap textarea::placeholder {
  text-align: left;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3.5rem 1rem;
    gap: 2rem;
  }

  .hero-image {
    order: 1;
  }

  .hero-content {
    order: 2;
    margin: 0 auto;
  }

  .hero-image img {
    max-width: 420px;
  }

  .hero-content .smart-form-wrap {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content .smart-form-wrap textarea {
    text-align: center;
  }

  .hero-content .smart-form-wrap textarea::placeholder {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero-split {
    padding-top: 2.5rem;
  }

  .hero-content h2 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-image img {
    border-radius: 18px;
  }
}
