/* ============================================================
   CourserTech — Main Layout
   Header · Nav · Hero · Page-hero · Footer · Sections
   ============================================================ */

/* ================= TOP BAR ================= */
.topbar {
  background: var(--c-primary-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-xs);
  height: var(--topbar-h);
}
.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
  white-space: nowrap;
}
.topbar a:hover { color: var(--c-accent); }
.topbar svg { width: 14px; height: 14px; flex: none; }
.topbar .dot { opacity: 0.4; }
.topbar-right .social {
  display: flex;
  gap: 10px;
}
.topbar-right .social a {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.topbar-right .social a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-primary-deep);
}

/* ================= HEADER / NAV ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo-mark {
  /*width: 42px;
  height: 42px;*/
  width:60px;
  height:60px;
  border-radius: 10px;
  /*background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);*/
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-text {
  /*font-size: 1.35rem;*/
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-text span { color: var(--c-primary); }
.logo-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 3px;
}

/* Nav list */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-ink);
  border-radius: var(--radius);
  position: relative;
  transition: color var(--transition);
}
.nav-link svg { width: 13px; height: 13px; transition: transform var(--transition); }
.nav-item:hover > .nav-link,
.nav-item.is-open > .nav-link,
.nav-link.active { color: var(--c-primary); }

.nav-item.has-children::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-item:hover::after,
.nav-item.is-open::after,
.nav-item.active::after { transform: scaleX(1); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition),
              visibility var(--transition);
  z-index: 50;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-body);
  transition: background var(--transition), color var(--transition);
}
.dropdown a svg { width: 17px; height: 17px; color: var(--c-accent); flex: none; }
.dropdown a:hover {
  background: var(--c-accent-soft);
  color: var(--c-primary-dark);
}
.dropdown a.active { color: var(--c-primary); font-weight: 700; }

/* Nav CTA + burger */
.nav-cta { flex: none; }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1.5px solid var(--c-line);
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
  flex: none;
}
.nav-burger svg { width: 22px; height: 22px; }
.nav-burger .icon-close { display: none; }
body.nav-open .nav-burger .icon-burger { display: none; }
body.nav-open .nav-burger .icon-close { display: block; }

/* ================= HOME HERO ================= */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  background: var(--c-primary-deep);
  overflow: hidden;
}
.hero .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(5, 46, 66, 0.92) 0%,
    rgba(5, 46, 66, 0.72) 45%,
    rgba(0, 91, 140, 0.45) 100%);
  z-index: 1;
}
.slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.hero .container { height: 100%; display: flex; align-items: center; }
.slide-content { color: var(--c-white); }
.slide-content .eyebrow { color: var(--c-accent); }
.slide-content .eyebrow::before { background: var(--c-accent); }
.slide-content h1 {
  color: var(--c-white);
  font-size: var(--fs-hero);
  line-height: 1.15;
  margin-bottom: 18px;
}
.slide-content p {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 28px;
}
.slide-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--c-accent); }

/* ================= PAGE HERO (inner pages) ================= */
.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 84px) 0;
  background:
    linear-gradient(rgba(5, 46, 66, 0.88), rgba(5, 46, 66, 0.88)),
    var(--ph-img, var(--c-primary-deep)) center/cover no-repeat;
  overflow: hidden;
}
.page-hero h1 {
  color: var(--c-white);
  font-size: var(--fs-h1);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-lg);
  max-width: 640px;
}
.page-hero .eyebrow { color: var(--c-accent); }
.page-hero .eyebrow::before { background: var(--c-accent); }

/* ================= SECTION COMPOSITIONS ================= */

/* Intro (image + text) */
.intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.intro-media { position: relative; }
.intro-media .img-frame { aspect-ratio: 4 / 3; }
.intro-media .float-card {
  position: absolute;
  right: -18px;
  bottom: -22px;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-card .icon-tile { width: 42px; height: 42px; }
.float-card strong { display: block; font-size: var(--fs-sm); color: var(--c-ink); }
.float-card small { font-size: var(--fs-xs); color: var(--c-muted); }

/* Why-us two column list */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}
.why-item:hover {
  border-color: rgba(0, 169, 206, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.why-item h3 { font-size: var(--fs-h4); margin-bottom: 5px; }
.why-item p { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }

/* Approach steps */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 22px 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 169, 206, 0.5);
  box-shadow: var(--shadow-md);
}
.step .step-num {
  font-size: var(--fs-xs);
  font-weight: 900;
  color: var(--c-accent);
  letter-spacing: 0.12em;
}
.step h4 { font-size: var(--fs-sm); margin: 8px 0 6px; }
.step p { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; line-height: 1.6; }

/* Split feature (text left, list right) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

/* Download card */
.doc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.doc-card:hover {
  border-color: rgba(0, 91, 140, 0.4);
  box-shadow: var(--shadow-sm);
}
.doc-card .doc-ico {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 10px;
  background: var(--c-accent-soft);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
}
.doc-card .doc-ico svg { width: 22px; height: 22px; }
.doc-card h4 { font-size: var(--fs-sm); margin-bottom: 3px; }
.doc-card p { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; }

/* Partner block */
.partner-block {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--c-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.partner-block:hover {
  border-color: rgba(0, 91, 140, 0.4);
  box-shadow: var(--shadow-md);
}
.partner-slide {
  min-width: 0;
  overflow: hidden;
}

.partner-block .partner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.partner-block .p-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  overflow-wrap: break-word;
  word-break: break-word;
}

.partner-block .p-loc {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.partner-block p {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ================= CTA BAND ================= */
.cta-band {
  position: relative;
  padding: clamp(48px, 7vw, 72px) 0;
  background:
    linear-gradient(120deg, var(--c-primary-deep) 0%, var(--c-primary) 90%);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(0, 169, 206, 0.14);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: 60px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 169, 206, 0.3);
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ================= CONTACT ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.contact-grid.grid-single {
  grid-template-columns: 1fr !important;
}
.contact-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  background: var(--c-white);
}
.contact-list { display: grid; gap: 20px; margin-top: 22px; }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  min-height: 280px;
  background: var(--c-bg-soft);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

/* ================= PRODUCT GRID + FILTERS ================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--c-line);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-muted);
  background: var(--c-white);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.product-card { display: flex; flex-direction: column; }
.product-card .p-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.product-card .p-code { font-size: var(--fs-xs); font-weight: 900; letter-spacing: 0.08em; color: var(--c-accent); }
.product-card h3 { font-size: var(--fs-h4); margin-bottom: 8px; }
.product-card p { font-size: var(--fs-sm); color: var(--c-muted); flex: 1; }
.product-card .p-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-primary);
  transition: gap var(--transition), color var(--transition);
}
.product-card .p-link:hover { color: var(--c-primary-dark); gap: 11px; }
.product-card .p-link svg { width: 15px; height: 15px; }

/* ================= TESTIMONIALS ================= */
.t-card {
  position: relative;
  padding: 30px 28px 26px;
}
.t-card .t-quote-mark {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  color: var(--c-accent-soft);
}
.t-card .t-quote-mark svg { width: 100%; height: 100%; }
.t-card blockquote {
  font-size: var(--fs-sm);
  color: var(--c-body);
  line-height: 1.75;
  margin-bottom: 20px;
}
.t-author { display: flex; align-items: center; gap: 13px; }
.t-avatar {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}
.t-author strong { display: block; font-size: var(--fs-sm); color: var(--c-ink); }
.t-author small { font-size: var(--fs-xs); color: var(--c-muted); }
.t-stars { color: var(--c-gold); letter-spacing: 2px; font-size: var(--fs-xs); margin-bottom: 12px; }

/* ================= TIMELINE (about) ================= */
.timeline { display: grid; gap: 0; max-width: 720px; }
.tl-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-bottom: 32px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  font-weight: 900;
  font-size: var(--fs-lg);
  color: var(--c-primary);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 8px;
}
.tl-dot-col {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  position: relative;
  align-items: start;
}
.tl-item:not(:last-child) .tl-dot-col::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: -10px;
  width: 2px;
  background: var(--c-line);
}
.tl-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 3px solid var(--c-white);
  position: relative;
  z-index: 1;
  margin-top: 4px;
  box-shadow: 0 0 0 1px var(--c-accent);
}
.tl-dot-col > div { padding-top: 0; }
.tl-item h4 { margin-bottom: 4px; }
.tl-item p { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }

/* ================= MISC ================= */
.divider {
  border: 0;
  height: 1px;
  background: var(--c-line);
  margin: 0;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-success);
}
.badge-verified svg { width: 13px; height: 13px; }

/* ================= FOOTER ================= */
.site-footer {
  background: var(--c-primary-deep);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-sm);
}
.footer-main {
  padding: clamp(52px, 7vw, 72px) 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
}
.footer-col h4 {
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-about p { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.65); margin-top: 14px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-primary-deep);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-links { display: grid; gap: 10px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition), transform var(--transition);
}
.footer-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
  flex: none;
}
.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-contact { display: grid; gap: 14px; }
.footer-contact li {
  display: flex;
  gap: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
}
.footer-contact svg { width: 17px; height: 17px; color: var(--c-accent); flex: none; margin-top: 3px; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom .fb-links { display: flex; gap: 18px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.65); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--c-accent); }

/* Footer logo variant */
.footer-logo .logo-text { color: #fff; }
.footer-logo .logo-text span { color: var(--c-accent); }
.footer-logo .logo-sub { color: rgba(255, 255, 255, 0.5); }

/* ================= PRODUCT GALLERY ================= */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + var(--topbar-h) + 24px);
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg-soft);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.35s ease;
}

.gallery-thumbs-wrap {
  position: relative;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  padding: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}


.gallery-thumb {
  flex: 0 0 calc(20% - 8px);
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--c-bg-soft);
  transition: border-color var(--transition), transform var(--transition), opacity var(--transition);
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.gallery-thumb:hover {
  border-color: var(--c-primary);
  opacity: 1;
  transform: translateY(-2px);
}

.gallery-thumb.active {
  border-color: var(--c-accent);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--c-line);
  background: var(--c-white);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex: none;
}

.gallery-arrow:hover:not(:disabled) {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-arrow svg {
  width: 18px;
  height: 18px;
}

.product-details-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
