body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #feffdf;
}

.container {
    max-width: 600px;
    margin: 80px auto;
    padding: 30px;
    background-color: #ffe79a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

h1 {
    text-align: center;
    color: #ef5a5a;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

button {
    background-color: #ef5a5a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d64e4e;
}


/* Base */
* { box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; margin:0; padding:0; }
.container { max-width: 960px; margin: 32px auto; padding: 24px; border-radius: 12px; }

/* Original Palette A (Exams/Results) */
.exam-theme .container { background: #ffe79a; }
.exam-theme h1 { color: #ef5a5a; }
.exam-theme .note { background: #feffdf; padding: 8px 12px; border-radius: 8px; }
.pill { display:inline-block; margin:6px; padding:8px 12px; background:#ffa952; border-radius:999px; }
.pill.accent { background:#ef5a5a; color:#fff; }

/* Palette 01 (Awareness) */
.palette01 .container { background: #badfdb; }
.palette01 h1, .palette01 h2, .palette01 h3 { color: #49beb7; }
.palette01 .sub { color:#234; }
.progressbar { position: relative; background:#fcf9ea; border-radius: 999px; height: 14px; margin: 10px 0 20px; }
.progressbar #progressFill { height:100%; width:0%; background:#49beb7; border-radius:999px; transition: width .4s; }
.progressbar #progressText { position:absolute; top:-26px; right:8px; font-size:12px; color:#234; }

/* Palette 02 (Admin) */
.palette02 .container { background: #fcf8f3; }
.palette02 h1, .palette02 h2 { color: #698474; }
.btn { background:#698474; color:#fff; text-decoration:none; padding:8px 12px; border-radius:8px; }
.error { color:#b00020; }

/* Forms */
.form-box { display:flex; flex-direction:column; gap:14px; }
input, select, textarea { padding:10px; border:1px solid #ccc; border-radius:8px; font-size:1rem; }
button { background:#ef5a5a; color:#fff; border:none; padding:10px 14px; border-radius:8px; cursor:pointer; }
button:hover { opacity:.95; }

/* Test UI */
.qcard { background:#fff; border-radius:12px; padding:16px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.qheader { display:flex; justify-content:space-between; margin-bottom:12px; }
.qimg { max-width:100%; border-radius:10px; margin-bottom:12px; border: 1px solid #eee; }
.qtext { font-weight:600; margin-bottom:10px; }
.opt { display:block; background:#fff; border:1px solid #ddd; border-radius:8px; padding:10px; margin-bottom:8px; cursor:pointer; }
.opt:hover { border-color:#bbb; }
.nextbtn { margin-top:6px; }

/* Awareness cards */
.cardset { margin: 24px 0; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:16px; }
.card { background:#fcf9ea; border-radius:12px; padding:14px; }
.card h3 { margin:8px 0; }
.card ul { margin:0 0 8px 18px; }

/* Hotspots (simple presentation) */
.hotspot { background:#fcf9ea; border-radius:12px; padding:12px; margin-bottom:12px; }
.hotspot img { width:100%; border-radius:10px; border:1px solid #eee; }
.caption { font-size:.95rem; color:#234; margin-top:6px; }

/* Stepper */
.stepper { counter-reset: s; list-style:none; padding-left:0; }
.stepper li { counter-increment:s; background:#fcf9ea; border-radius:10px; padding:10px; margin:8px 0; }
.stepper li::before { content: counter(s) ". "; font-weight:700; color:#49beb7; }

/* Admin table */
.gridtable { width:100%; border-collapse: collapse; background:#fff; border-radius:12px; overflow:hidden; }
.gridtable th, .gridtable td { padding:10px; border-bottom:1px solid #eee; text-align:left; }
.gridtable th { background:#ffd3b6; }

/* Results */
.results canvas { background:#fff; border-radius:12px; padding:8px; }
.feedback { margin-top:16px; }

/* Existing original palette (for index etc.) */
.first-color { background: #feffdf; }
.second-color { background: #ffe79a; }
.third-color { background: #ffa952; }
.fourth-color { background: #ef5a5a; }

/* New palettes available for future pages if needed (not mixed) */
.theme-palette01 .first-color { background:#fcf9ea; }
.theme-palette01 .second-color{ background:#badfdb; }
.theme-palette01 .third-color { background:#49beb7; }
.theme-palette01 .fourth-color{ background:#ff8a5c; }

.theme-palette02 .first-color { background:#ffaaa5; }
.theme-palette02 .second-color{ background:#fcf8f3; }
.theme-palette02 .third-color { background:#ffd3b6; }
.theme-palette02 .fourth-color{ background:#698474; }

/* ---- Awareness image fixes ---- */
html, body { overflow-x: hidden; }              /* prevent sideways scroll from overflow */
.card { overflow: hidden; }                     /* clip any overflow inside cards */

.card img,
.hotspot img,
.grid .card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;                            /* cap tall images */
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
}

/* Align grid cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}

.card h3 { margin: 10px 0 6px; }
.card ul, .card ol { margin: 0 0 8px 18px; }

/* ===== Compact images for Pre/Post Tests ===== */
.exam-theme .qimg {
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: contain;
  margin: 6px auto 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
}
@media (max-width: 1200px) { .exam-theme .qimg { max-height: 300px; } }
@media (max-width: 992px)  { .exam-theme .qimg { max-height: 260px; } }
@media (max-width: 768px)  { .exam-theme .qimg { max-height: 220px; } }

/* --- Admin table: fixed height + sticky header --- */
/* PARTICIPANTS table (main grid): taller viewport + own scrollbars */
.table-wrap {
  max-height: 540px;           /* increased from 360px so you see more rows */
  overflow-y: auto;
  overflow-x: auto;            /* keep horizontal scroll when needed */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

/* Sticky table header */
.gridtable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffd3b6;
}

/* Slightly tighter cells for dense data */
.gridtable th, .gridtable td { white-space: nowrap; }

/* --- Charts row --- */
.charts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
}
.chart-box {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.chart-box .note { margin-top: 6px; font-size: 0.95rem; color: #445; }

@media (max-width: 900px) {
  .charts-row { flex-direction: column; }
  .table-wrap { max-height: 420px; }
}

/* Buttons */
.btn {
  display:inline-block; padding:8px 14px; border-radius:8px; text-decoration:none;
  background:#ef5a5a; color:#fff; transition:.2s; border:0; cursor:pointer;
}
.btn:hover { background:#d64e4e; }

/* Feedback table: fixed height, internal scroll (separate from participants) */
.table-wrap.feedback-wrap {
  max-height: 360px;         /* keep feedback section smaller, with its own scroll */
  overflow: auto;
}

/* Make columns predictable in feedback table */
.feedback-table { table-layout: fixed; width: 100%; }

/* Suggested column widths for feedback table */
.feedback-table th:nth-child(1),
.feedback-table td:nth-child(1) { width: 60px; }   /* ID */
.feedback-table th:nth-child(2),
.feedback-table td:nth-child(2) { width: 110px; }  /* Participant */
.feedback-table th:nth-child(3),
.feedback-table td:nth-child(3) { width: 60px; }   /* Age */
.feedback-table th:nth-child(4),
.feedback-table td:nth-child(4) { width: 220px; }  /* Institute */
.feedback-table th:nth-child(6),
.feedback-table td:nth-child(6) { width: 180px; }  /* Created */

/* Feedback text: wrap, but don’t overflow rows (clamped) */
.fbtxt {
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;     /* show ~3 lines */
  -webkit-box-orient: vertical;
}


/* ===== Landing Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 0;
}

/* Calm animated gradient using Palette 02 */
.hero-gradient {
  background: linear-gradient(135deg, #fcf8f3 0%, #ffd3b6 60%, #ffaaa5 100%);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  color: #698474;
  line-height: 1.1;
}

.hero-sub {
  margin: 10px 0 18px;
  font-size: clamp(16px, 2.1vw, 18px);
  color: #334;
}

.hero-cta .btn.btn-lg {
  padding: 12px 18px;
  font-size: 1.05rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.trust-row {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #445;
  font-size: 0.95rem;
}
.trust-row li::before {
  content: "• ";
  color: #49beb7;
}

.hero-right {
  display: grid;
  place-items: center;
  min-height: 280px;
}

/* (Legacy) Lottie sizing — harmless if unused */
.lottie-wrap {
  width: min(520px, 95%);
  aspect-ratio: 12 / 7;
  position: relative;
  will-change: transform;
  transition: transform .15s ease-out;
}
.lottie-poster,
.lottie-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-wave {
  width: 100%;
  height: 120px;
  display: block;
  fill: #fff9d6; /* Palette 01 base to transition into the login area */
}

/* Login glass card under hero */
.hero-login.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-radius: 16px;
}
.hero-login .login-title {
  text-align: center;
  margin-top: 4px;
  margin-bottom: 12px;
  color: #698474;
}

/* Larger CTA button variant */
.btn.btn-lg { padding: 10px 16px; font-size: 1.05rem; border-radius: 10px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-right { order: -1; }
  .lottie-wrap { width: min(620px, 100%); }
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  .lottie-wrap { transform: none !important; }
}

/* Space below hero for the login card */
#start { padding: 0 0 36px; }

/* Size the lottie-player like the old wrapper (safe to keep) */
.hero-right lottie-player {
  width: min(520px, 95%);
  aspect-ratio: 12/7;
  display: block;
  margin: 0 auto;
}


/* === New: Animated SVG brand mark (shield + check + orbit) === */

/* Color tokens for the logo (hooked to your palettes) */
:root {
  --logo-shield: #698474;   /* palette02 fourth */
  --logo-accent: #49beb7;   /* palette01 third  */
  --logo-accent-2: #ff8a5c; /* palette01 fourth */
}

/* Hero logo wrapper */
.hero-logo {
  display: grid;
  place-items: center;
  width: min(520px, 95%);
  aspect-ratio: 12/7;
  margin: 0 auto;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

/* Invisible orbit path (guide only) */
.orbit-path {
  fill: none;
  stroke: none;
}

/* Orbiting node */
.orbit-dot {
  fill: var(--logo-accent-2);
  transform-origin: 0 0;
  animation: orbit 7s linear infinite;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}

/* Hex shield outline: draw + gentle breathe */
.shield {
  fill: transparent;
  stroke: var(--logo-shield);
  stroke-width: 10;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation:
    draw 2s ease-out forwards,
    breathe 4s ease-in-out infinite 2s;
}

/* Check mark: draws after the shield */
.check {
  fill: transparent;
  stroke: var(--logo-accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: draw 1.6s ease-out forwards;
  animation-delay: 1.4s;
}

/* Keyframes for drawing and subtle breathing */
@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}

/* Orbit animation: rotate SVG group and counter-rotate dot */
@keyframes orbit {
  from { transform: rotate(0deg) translate(115px) rotate(0deg); }
  to   { transform: rotate(360deg) translate(115px) rotate(-360deg); }
}

/* Respect reduced motion for all logo animations */
@media (prefers-reduced-motion: reduce) {
  .orbit-dot,
  .shield,
  .check { animation: none !important; }
}


/* Thank-you hero tweaks */
.ty-hero { padding-top: 56px; padding-bottom: 0; }
.ty-inner { align-items: center; gap: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.stat-pills { margin: 12px 0 4px; }
.stat-pills .pill { background:#ffd3b6; }
.stat-pills .pill.accent { background:#ef5a5a; color:#fff; }

/* A little bigger animation box on large screens */
@media (min-width: 992px) {
  .hero-right { min-height: 320px; }
  .hero-right lottie-player { width: min(580px, 95%); aspect-ratio: 12/7; }
}

/* Thank-you info card under the hero */
.ty-card { margin-top: 8px; }


/* Pick ONE color for the area below the wave */
:root {
  --below-bg: #fff9d6;   /* <- use your yellow here */
}

/* Make the wave overlap the next section (no seam) */
.hero { padding-bottom: 0; position: relative; }
.hero-wave {
  display: block;
  width: 100%;
  height: 140px;           /* a touch taller */
  margin-top: -6px;        /* overlaps the section below by a few px */
  fill: var(--below-bg);   /* EXACT same color as the section background */
  transform: translateZ(0); /* kills hi-DPI hairline seams */
}

/* Ensure the section below uses the same color as the wave fill */
main { 
  background: var(--below-bg);
}

/* Optional: if your main container had a top margin, cancel it */
main .container { margin-top: 0; }
