/* ============================================
   STYLE.CSS — Skill Course Academy
   Green Nature Theme (replaces maroon)
   ============================================ */

:root {
  /* ── Green Palette ── */
  --g1:         #84B179;
  --g2:         #A2CB8B;
  --g3:         #C7EABB;
  --g4:         #E8F5BD;
  --g-dark:     #5C8A52;
  --g-text:     #2D5A27;
  --g-muted:    #6B8F65;
  --glow-green: rgba(132,177,121,0.38);

  /* ── Legacy alias (old code uses --maroon) ── */
  --maroon:      #5C8A52;
  --cream:       #E8F5BD;
  --light-green: #C7EABB;
  --green:       #84B179;

  /* ── Neutrals ── */
  --text:   #1a2e1a;
  --muted:  #6B8F65;
  --border: rgba(132,177,121,0.22);
  --white:  #FFFFFF;

  /* ── Layout ── */
  --br: 20px;
}

/* =========================
   Base / Reset
========================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: #F4FBF0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* text-theme now green */
.text-theme {
  background: linear-gradient(135deg, #5C8A52, #84B179, #A2CB8B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================
   Brand Icon Box
========================= */
.brand-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--g-dark), var(--g1), var(--g2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px var(--glow-green);
  flex-shrink: 0;
}
.brand-icon-box i { font-size: 18px; }

/* =========================
   Buttons
========================= */
.btn { display: inline-block; cursor: pointer; border: none; }
.btn-pill { border-radius: 999px; padding: 10px 18px; }
.btn-lg   { padding: 12px 20px; font-weight: 800; font-size: 15px; }

.btn-theme {
  background: linear-gradient(135deg, var(--g-dark), var(--g1), var(--g2)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 6px 20px var(--glow-green);
  transition: all .22s ease;
}
.btn-theme:hover {
  filter: brightness(1.05);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(92,138,82,.45) !important;
}

.btn-outline-theme {
  border: 2px solid var(--g1) !important;
  color: var(--g-dark) !important;
  background: transparent !important;
  font-weight: 700;
  transition: all .22s ease;
}
.btn-outline-theme:hover {
  background: linear-gradient(135deg, rgba(199,234,187,.3), rgba(232,245,189,.25)) !important;
  border-color: var(--g-dark) !important;
  color: var(--g-dark) !important;
  transform: translateY(-1px);
}

/* =========================
   Container
========================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* =========================
   Mini Grid
========================= */
.row         { display: flex; flex-wrap: wrap; margin-left: -10px; margin-right: -10px; }
.row > *     { padding-left: 10px; padding-right: 10px; }
.col-12      { width: 100%; }
.col-md-6    { width: 100%; }
@media (min-width: 768px) { .col-md-6 { width: 50%; } }
.g-3  { row-gap: 16px; }
.g-4  { row-gap: 20px; }
.g-5  { row-gap: 28px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 22px; }
.w-100 { width: 100%; }

/* =========================
   AUTH (Login/Register) — legacy support
========================= */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, #F0FAF0 0%, #E8F5BD 25%, #C7EABB 50%, #EDF7E8 72%, #F4FBE8 100%);
  background-size: 400% 400%;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(132,177,121,.2);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 22px 70px rgba(92,138,82,.15);
}
.auth-card.auth-wide { max-width: 980px; }

.auth-brand   { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.auth-dot     { width: 14px; height: 14px; border-radius: 999px; background: var(--g1); box-shadow: 0 6px 18px var(--glow-green); }
.auth-name    { font-weight: 900; font-size: 18px; color: var(--text); }
.auth-sub     { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.auth-label   { display: block; font-weight: 800; font-size: 13px; margin: 10px 0 6px; color: var(--text); }
.auth-input   {
  width: 100%; padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid rgba(132,177,121,.22);
  background: linear-gradient(135deg, rgba(199,234,187,.08), rgba(232,245,189,.06));
  color: var(--g-text); outline: none; transition: .22s ease; font-weight: 600;
}
.auth-input:focus {
  border-color: var(--g1);
  box-shadow: 0 0 0 3px rgba(132,177,121,.18);
  background: #fff;
}
select.auth-input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(92,138,82,.6) 50%),
    linear-gradient(135deg, rgba(92,138,82,.6) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.auth-alert { padding: 12px 14px; border-radius: 14px; margin: 12px 0 10px; font-weight: 800; font-size: 13px; border: 1px solid; }
.auth-alert.error   { background: rgba(239,68,68,.08);   border-color: rgba(239,68,68,.25);   color: #B91C1C; }
.auth-alert.success { background: rgba(16,185,129,.08);  border-color: rgba(16,185,129,.25);  color: #065F46; }

.auth-foot { margin-top: 14px; font-weight: 700; color: var(--muted); font-size: 13px; }
.auth-link { color: var(--g-dark); font-weight: 900; }
.auth-link:hover { text-decoration: underline; }

/* =========================
   Payment Card (Register)
========================= */
.pay-card {
  border: 1px solid rgba(132,177,121,.22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(199,234,187,.18), rgba(232,245,189,.14), rgba(255,255,255,.9));
  padding: 18px;
}
.pay-top      { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.pay-title    { font-weight: 900; color: var(--text); font-size: 15px; }
.pay-sub      { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pay-price    { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.pay-price del { color: rgba(0,0,0,.4); font-weight: 800; }
.pay-price span {
  background: linear-gradient(135deg, var(--g-dark), var(--g1), var(--g2));
  color: #fff; font-weight: 900;
  padding: 8px 14px; border-radius: 999px;
  display: inline-block;
  box-shadow: 0 8px 22px var(--glow-green);
}
.pay-details  { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.pay-box      { border: 1px solid rgba(132,177,121,.2); border-radius: 16px; background: #fff; padding: 14px; }
.pay-h        { font-weight: 900; color: var(--g-dark); margin-bottom: 4px; }
.pay-t        { color: var(--muted); font-size: 13px; line-height: 1.5; }
.pay-t b      { color: var(--g-dark); }
.pay-mini     { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 6px; }
@media (max-width: 768px) { .pay-details { grid-template-columns: 1fr; } }

/* =========================
   Contact form inputs
========================= */
.c-label { font-weight: 800; font-size: 13px; color: var(--text); margin-bottom: 6px; display: block; }
.c-input {
  width: 100%;
  border: 2px solid rgba(132,177,121,.22);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  background: linear-gradient(135deg, rgba(199,234,187,.08), rgba(232,245,189,.06));
  color: var(--g-text);
  font-weight: 600;
  transition: .22s ease;
}
.c-input::placeholder { color: var(--muted); font-weight: 500; }
.c-input:focus {
  border-color: var(--g1);
  box-shadow: 0 0 0 3px rgba(132,177,121,.18);
  background: #fff;
}
.c-textarea { min-height: 130px; resize: vertical; }

/* =========================
   Misc utility
========================= */
.section-pad { padding: 70px 0; }
.text-muted   { color: var(--muted) !important; }

/* =========================
   Responsive
========================= */
@media (max-width: 991px) { .section-pad { padding: 55px 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
