/* ============================================================
   DigiMasters Institute Jaipur — Main Stylesheet
   Aesthetic: Editorial luxury meets modern data-driven energy
   Palette: Deep forest green + warm ivory + sharp amber accent
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #1a1a18;
  --ink-soft: #3d3d38;
  --ink-muted: #6b6b62;
  --canvas: #f8f5ef;
  --canvas-alt: #f1ede4;
  --forest: #1e3d2f;
  --forest-mid: #2c5440;
  --forest-light: #3d7057;
  --amber: #d4820a;
  --amber-light: #f2a630;
  --amber-bg: #fef3e2;
  --white: #fefefe;
  --border: #dbd6cb;
  --border-dark: #b5af9e;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(26, 26, 24, .07);
  --shadow: 0 8px 32px rgba(26, 26, 24, .1);
  --shadow-lg: 0 20px 60px rgba(26, 26, 24, .14);
  --shadow-xl: 0 32px 80px rgba(26, 26, 24, .18);

  --trans: 0.22s cubic-bezier(.4, 0, .2, 1);
  --trans-slow: 0.4s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

address {
  font-style: normal;
}

/* ── Typography ──────────────────────────────────────────── */
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
}

em {
  font-style: italic;
  color: var(--forest-light);
}

/* ── Shared Components ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--trans);
  white-space: nowrap;
}

.btn--primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(212, 130, 10, .35);
}

.btn--primary:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 130, 10, .4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}

.btn--ghost:hover {
  background: var(--forest);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--border-dark);
}

.btn--outline:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.section-header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.section-header--light {
  color: var(--white);
}

.section-header--light p {
  color: rgba(255, 255, 255, .75);
}

.section-header p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 245, 239, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--forest);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-city {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links li a {
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: var(--trans);
}

.nav__links li a:hover {
  background: var(--canvas-alt);
  color: var(--forest);
}

.nav__cta {
  background: var(--forest) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}

.nav__cta:hover {
  background: var(--forest-mid) !important;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--trans);
}

.nav__mobile {
  display: none;
  padding: 0 2rem 1rem;
}

.nav__mobile.open {
  display: block;
}

.nav__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__mobile a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: var(--trans);
}

.nav__mobile a:hover {
  background: var(--canvas-alt);
  color: var(--forest);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: var(--canvas);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  pointer-events: none;
}

.hero__accent-blob {
  position: absolute;
  top: -120px;
  right: -180px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(30, 61, 47, .08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber-bg);
  border: 1px solid #f0c97a;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.6s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero__headline {
  margin-bottom: 1.25rem;
  animation: fadeSlideUp 0.7s 0.1s ease both;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}

.hero__sub strong {
  color: var(--forest);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.7s 0.3s ease both;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s 0.4s ease both;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-item strong {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--forest);
}

.proof-item span {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border-dark);
  opacity: 0.6;
}

/* Hero Visual */
.hero__visual {
  position: relative;
  animation: fadeSlideLeft 0.8s 0.3s ease both;
}

.visual-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.visual-card--main {
  position: relative;
}

.vc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.vc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.vc-dot--red {
  background: #ff5f57;
}

.vc-dot--yellow {
  background: #febc2e;
}

.vc-dot--green {
  background: #28c840;
}

.vc-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vc-stat {
  background: var(--canvas);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vc-label {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.vc-val {
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.vc-val--up {
  color: #1a7d3a;
}

.vc-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding-top: 0.5rem;
}

.vc-bar {
  flex: 1;
  height: var(--h);
  background: var(--forest-light);
  border-radius: 4px 4px 0 0;
  opacity: 0.4;
  transition: opacity 0.3s;
  animation: barGrow 0.8s ease both;
}

.vc-bar--active {
  opacity: 1;
  background: var(--forest);
}

@keyframes barGrow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }

  to {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

.visual-card--float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: floatBob 4s ease-in-out infinite;
}

.visual-card--ads {
  bottom: -1rem;
  left: -2rem;
  background: var(--forest);
  color: var(--white);
  border-color: transparent;
  animation-delay: 0.5s;
}

.visual-card--social {
  top: -1rem;
  right: -1.5rem;
  background: var(--white);
  animation-delay: 1.5s;
}

@keyframes floatBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.vc-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.visual-card--social .vc-icon {
  background: var(--canvas-alt);
  color: var(--forest);
}

.vc-float-label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.75;
}

.vc-float-val {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  animation: fadeIn 1s 1s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ink-muted), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }

  100% {
    opacity: 0;
    transform: scaleY(0.2);
    transform-origin: top;
  }
}

/* ── Trust Section ───────────────────────────────────────── */
.trust {
  background: var(--forest);
  padding: 2rem 2rem;
  overflow: hidden;
}

.trust__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
  flex-shrink: 0;
}

.trust__logos {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-logo {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, .55);
  text-transform: uppercase;
  transition: var(--trans);
  cursor: default;
}

.trust-logo:hover {
  color: rgba(255, 255, 255, .9);
}

/* ── Courses ─────────────────────────────────────────────── */
.courses {
  padding: 6rem 2rem;
  background: var(--canvas);
}

.courses__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--trans-slow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-dark);
}

.course-card--featured {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  display: grid;
  grid-template-areas:
    "tag tag"
    "icon title"
    "icon desc"
    "modules modules"
    "meta meta"
    "cta cta";
  background: var(--forest);
  color: var(--white);
  border-color: transparent;
  gap: 0.75rem 1.5rem;
}

.course-card--featured p {
  color: rgba(255, 255, 255, .8);
}

.course-card--featured .course-card__icon {
  color: var(--amber-light);
}

.course-card--featured .course-card__tag {
  color: var(--amber-light);
  background: rgba(242, 166, 48, .15);
  border-color: rgba(242, 166, 48, .3);
}

.course-card--featured .course-card__meta {
  border-top-color: rgba(255, 255, 255, .15);
}

.course-card--featured .course-duration {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
}

.course-card--featured .course-price {
  color: var(--amber-light);
}

.course-card--featured .btn {
  justify-self: start;
}

.course-card__tag {
  grid-area: tag;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid #f0c97a;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  width: fit-content;
}

.course-card__icon {
  grid-area: icon;
  color: var(--forest-light);
  flex-shrink: 0;
  margin-top: 0.2rem;
  align-self: start;
}

.course-card h3 {
  grid-area: title;
}

.course-card p {
  grid-area: desc;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.highlight-text {
  color: var(--forest);
  font-weight: 600;
  display: inline-block;
  font-size: 0.9rem;
  position: relative;
  text-decoration: none;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  border-radius: 2px;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.8;
    transform: scaleX(0.95);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

p.des6m {
   color: white;
}

.course-card__modules {
  grid-area: modules;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.course-card__modules li {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .85);
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-weight: 500;
}

.course-card__meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.course-duration {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--canvas-alt);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  color: var(--ink-soft);
}

.course-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
}

/* ── Outcomes ────────────────────────────────────────────── */
.outcomes {
  padding: 6rem 2rem;
  background: var(--canvas-alt);
}

.outcomes__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.outcomes__text p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.outcomes__list {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.outcomes__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.outcomes__list svg {
  color: var(--forest);
  flex-shrink: 0;
  margin-top: 2px;
}

.outcomes__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--trans-slow);
}

.stat-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
}

.stat-label {
  font-size: 0.87rem;
  color: var(--ink-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ── About ───────────────────────────────────────────────── */
.about {
  padding: 6rem 2rem;
  background: var(--canvas);
}

.about__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__image-side {
  position: relative;
}

.about-img-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
}

.about-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255, 255, 255, .4);
  font-size: 0.85rem;
}

.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.about-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatBob 5s ease-in-out infinite;
}

.about-card--cert {
  bottom: -1.5rem;
  right: -1.5rem;
  animation-delay: 0.8s;
}

.about-card--exp {
  top: -1rem;
  left: -1rem;
  animation-delay: 2s;
}

.ac-icon {
  color: var(--amber);
}

.ac-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}

.ac-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.ac-big {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
}

.ac-desc {
  font-size: 0.75rem;
  color: var(--ink-muted);
  max-width: 120px;
}

.about__content h2 {
  margin-bottom: 1rem;
}

.about__content p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 0.85rem;
}

.about__features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.af-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.af-icon {
  width: 40px;
  height: 40px;
  background: var(--canvas-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  flex-shrink: 0;
}

.af-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.af-item span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials {
  padding: 6rem 2rem;
  background: var(--forest);
}

.testimonials__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tcard {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--trans-slow);
}

.tcard:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-3px);
}

.tcard__rating {
  color: var(--amber-light);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.tcard p {
  color: rgba(255, 255, 255, .82);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.tcard__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tcard__avatar {
  width: 42px;
  height: 42px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--forest);
  flex-shrink: 0;
}

.tcard__author strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}

.tcard__author span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, .55);
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq {
  padding: 6rem 2rem;
  background: var(--canvas-alt);
}

.faq__inner {
  max-width: 860px;
  margin: 0 auto;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: var(--trans);
}

.faq-item__q:hover {
  color: var(--forest);
}

.faq-item__q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--trans);
  color: var(--ink-muted);
}

.faq-item__a {
  padding: 0 0 1.25rem;
}

.faq-item__a p {
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.faq-item__a:not([hidden]) {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact {
  padding: 6rem 2rem;
  background: var(--canvas);
}

.contact__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact__text h2 {
  margin-bottom: 1rem;
}

.contact__text p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.ci-item svg {
  color: var(--forest);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--canvas);
  transition: var(--trans);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--forest);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30, 61, 47, .1);
}

.form-group input.error,
.form-group select.error {
  border-color: #c0392b;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 0.78rem;
  color: #c0392b;
  min-height: 1em;
  font-weight: 500;
}

.form-note {
  font-size: 0.76rem;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.5;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #eaf7ee;
  border: 1px solid #a8d8b5;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  color: #1a5c30;
  font-size: 0.93rem;
  animation: fadeIn 0.3s ease;
}

.form-success:not([hidden]) {
  display: flex;
}

.form-success svg {
  color: #1a7d3a;
  flex-shrink: 0;
}

/* ── Success Popup ───────────────────────────────────── */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.success-popup:not([hidden]) {
  display: flex;
}

.success-popup__content {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(26, 26, 24, 0.15);
  animation: popupSlideIn 0.3s ease-out;
}

.success-popup__icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.success-popup__content h3 {
  color: var(--forest);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.success-popup__content p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 4rem;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 280px;
  color: rgba(255, 255, 255, .55);
}

.footer__logo .logo-text {
  color: rgba(255, 255, 255, .9);
}

.footer__logo .logo-city {
  color: var(--amber-light);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .6);
  transition: var(--trans);
}

.footer__social a:hover {
  background: var(--forest-light);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 1rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col li a,
.footer__col p,
.footer__col address {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, .6);
  transition: var(--trans);
  line-height: 1.6;
}

.footer__col li a:hover {
  color: rgba(255, 255, 255, .9);
}

.footer__col a {
  color: rgba(255, 255, 255, .6);
}

.footer__col a:hover {
  color: rgba(255, 255, 255, .9);
}

.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .35);
}

.footer__bottom a {
  color: rgba(255, 255, 255, .45);
  transition: var(--trans);
}

.footer__bottom a:hover {
  color: rgba(255, 255, 255, .8);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Scroll reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 2rem 3rem;
  }

  .hero__visual {
    display: none;
  }

  .hero__proof {
    gap: 1rem;
  }

  .courses__grid {
    grid-template-columns: 1fr 1fr;
  }

  .course-card--featured {
    grid-column: 1 / -1;
  }

  .outcomes__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__image-side {
    display: none;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .courses__grid {
    grid-template-columns: 1fr;
  }

  .course-card--featured {
    display: flex;
    flex-direction: column;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__proof {
    gap: 0.75rem;
  }

  .proof-divider {
    display: none;
  }

  .trust__logos {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 15px;
  }

  .footer__nav {
    grid-template-columns: 1fr;
  }

  .nav__inner {
    padding: 0.75rem 1rem;
  }

  .hero__inner {
    padding: 3rem 1rem 2rem;
  }

  .courses,
  .outcomes,
  .about,
  .testimonials,
  .faq,
  .contact {
    padding: 4rem 1rem;
  }

  .trust {
    padding: 1.5rem 1rem;
  }

  .trust__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .contact__form {
    padding: 1.5rem;
  }

  .footer__inner {
    padding: 3rem 1rem 1.5rem;
  }

  .footer__bottom {
    padding: 1.25rem 1rem;
    flex-direction: column;
    text-align: center;
  }
}