@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@400;500;600;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/mismo');
@import url('https://fonts.cdnfonts.com/css/glacial-indifference-2');

:root {
  /* DxFS Brand Kit Colors */
  --primary-navy: #110239;
  --accent-yellow: #FFBE0B;
  --accent-pink: #FF2281;
  --neutral-white: #FFFFFF;
  --neutral-grey: #F5F5F5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Glacial Indifference', sans-serif; /* Body font */
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255, 34, 129, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(255, 190, 11, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 34, 129, 0.04) 0%, transparent 70%),
    var(--primary-navy);
  background-attachment: fixed;
  color: var(--neutral-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2 {
  font-family: 'Mismo', sans-serif; /* Primary heading font */
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
}

h3, h4, h5, h6 {
  font-family: 'Antonio', sans-serif; /* Subheading font */
  letter-spacing: 1.5px; /* Spaced, as requested */
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------------
   HEADER & NAV
---------------- */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  background: linear-gradient(170deg, #110239 0%, #0e0230 50%, #110239 100%);
  border-bottom: 1px solid rgba(255, 34, 129, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
}

.top-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-pink), var(--accent-yellow), var(--accent-pink), transparent);
  opacity: 0.6;
}

.top-header canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.top-header .side-logo {
  height: 55px;
  width: 55px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  position: relative;
  z-index: 1;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.top-header .side-logo:hover {
  opacity: 1;
}

.center-logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-title {
  font-family: 'Antonio', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent-yellow), var(--neutral-white), var(--accent-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.logo-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(255, 190, 11, 0.2);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.12); opacity: 0.08; }
}

.top-header .center-img {
  height: 110px;
  width: 110px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 30px rgba(255, 34, 129, 0.15), 0 0 60px rgba(17, 2, 57, 0.5);
  border: 2px solid rgba(255, 190, 11, 0.25);
  position: relative;
  z-index: 1;
}

.top-header .center-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 34, 129, 0.25), 0 0 70px rgba(17, 2, 57, 0.5);
}

/* ---------------
   PAGE BG CANVAS
---------------- */
#pageBgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ---------------
   SUB-HEADER
---------------- */
.sub-header-bar {
  padding: 24px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  border-bottom: none;
}

.sub-glass {
  position: relative;
  z-index: 2;
  background: rgba(17, 2, 57, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px 60px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.sub-glass-wide {
  width: 100%;
  max-width: 1400px;
  padding: 28px 60px;
}

.sub-glass canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.sub-three-col {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 30px;
  width: 100%;
}

/* Left column: CPE + Location */
.sub-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 4px;
}

.sub-cpe {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-yellow);
  letter-spacing: 0.5px;
}

.sub-location {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Centre column: Title */
.sub-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.sub-label {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 8px;
  opacity: 0.9;
}

.sub-heading {
  font-family: 'Mismo', sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--neutral-white);
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 190, 11, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub-divider {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
  margin-bottom: 14px;
  opacity: 0.5;
}

.sub-tagline {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* Right column: Countdown */
.sub-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 4px;
}

.countdown-label {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.countdown-timer {
  display: flex;
  gap: 10px;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 48px;
}

.countdown-block span {
  font-family: 'Antonio', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-yellow);
  line-height: 1;
}

.countdown-block small {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
}

/* ---------------
   MAIN DASHBOARD 
---------------- */
.main-content {
  flex: 1;
  padding: 20px 50px 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.content-glass {
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 15px 35px 35px;
  box-shadow: none;
  max-width: 1200px;
  width: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 100%;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Leaderboard Trigger Button */
.lb-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: 1px solid rgba(255, 190, 11, 0.2);
  border-radius: 50px;
  background: rgba(255, 190, 11, 0.06);
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.lb-trigger:hover {
  border-color: rgba(255, 190, 11, 0.4);
  box-shadow: 0 0 30px rgba(255, 190, 11, 0.1);
}

.lb-trigger-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-yellow);
  letter-spacing: 0.5px;
}

/* Leaderboard Modal Overlay */
.lb-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 2, 57, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lb-overlay.active {
  display: flex;
}

.lb-modal {
  background: linear-gradient(170deg, rgba(30, 10, 70, 0.97) 0%, rgba(17, 2, 57, 0.98) 100%);
  border: 1px solid rgba(255, 190, 11, 0.12);
  border-radius: 28px;
  padding: 40px 36px 30px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: lbSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lb-modal canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

@keyframes lbSlideIn {
  0% { transform: translateY(30px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lb-close:hover {
  background: rgba(255, 190, 11, 0.15);
  color: var(--accent-yellow);
  border-color: rgba(255, 190, 11, 0.3);
}

/* Trophy */
.lb-trophy {
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

/* Header */
.lb-modal-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.lb-header-label {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 6px;
}

.lb-modal-header h2 {
  font-family: 'Mismo', sans-serif;
  font-size: 36px;
  color: var(--neutral-white);
  margin-bottom: 12px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lb-header-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-pink));
  margin: 0 auto 12px;
  border-radius: 2px;
}

.lb-modal-header p {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* Podium */
.lb-podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s;
}

.podium-1 {
  background: linear-gradient(180deg, rgba(255, 190, 11, 0.08) 0%, rgba(255, 190, 11, 0.02) 100%);
  border-color: rgba(255, 190, 11, 0.15);
  transform: translateY(-6px);
}

.podium-2 {
  border-color: rgba(255, 255, 255, 0.08);
}

.podium-3 {
  border-color: rgba(255, 255, 255, 0.06);
}

.podium-crown {
  font-size: 18px;
  color: var(--accent-yellow);
  line-height: 1;
  margin-bottom: 2px;
}

.podium-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Antonio', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.podium-gold {
  background: linear-gradient(135deg, rgba(255, 190, 11, 0.2), rgba(255, 190, 11, 0.08));
  border-color: rgba(255, 190, 11, 0.35);
  color: var(--accent-yellow);
  width: 46px;
  height: 46px;
  font-size: 20px;
}

.podium-name {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-white);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-score {
  font-family: 'Antonio', sans-serif;
  font-size: 16px;
  color: var(--accent-yellow);
}

/* List wrap */
.lb-list-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

/* Footer info */
.lb-footer-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
}

.lb-footer-info strong {
  color: rgba(255, 255, 255, 0.55);
}

/* Glass Cards */
.card {
  background: rgba(17, 2, 57, 0.85);
  color: var(--neutral-white);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--accent-yellow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card h2 {
  color: var(--neutral-white);
  margin-bottom: 8px;
  font-size: 28px;
}

.card p.subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  margin-bottom: 30px;
}

/* ---------------
   FORM ELEMENTS
---------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 25px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--neutral-white);
  transition: border-color 0.2s;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

select {
  color: rgba(255, 255, 255, 0.6);
}

select option {
  background: var(--primary-navy);
  color: var(--neutral-white);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent-yellow);
}

.checkbox-group {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  margin-top: 25px;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  transform: scale(1.2);
  accent-color: var(--accent-pink);
}

.validation-msg {
  min-height: 14px;
  transition: color 0.2s;
}

.hint-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  display: block;
  margin-top: 6px;
}

/* ---------------
   BUTTONS
---------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-yellow);
  color: var(--primary-navy);
  box-shadow: 0 4px 10px rgba(255, 190, 11, 0.3);
}

.btn-primary:hover {
  background-color: #e5ab0a;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--neutral-white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Quiz Option buttons */
.btn-options {
  background-color: var(--neutral-grey);
  color: var(--primary-navy);
  border: 2px solid transparent;
  margin-bottom: 12px;
  padding: 16px;
  width: 100%;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}

.btn-options:hover {
  border-color: var(--accent-yellow);
  background-color: #FFF9E6;
}

/* ---------------
   LEADERBOARD
---------------- */
.leaderboard-header {
  display: grid;
  grid-template-columns: 40px 1fr 60px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

.leaderboard-list {
  list-style: none;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 40px 1fr 60px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 16px;
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.leaderboard-item .rank {
  font-weight: bold;
  color: var(--accent-pink);
  font-family: 'Antonio', sans-serif;
  font-size: 18px;
}

.leaderboard-item .name {
  font-weight: 600;
}

.leaderboard-item .score {
  font-weight: bold;
  color: var(--accent-yellow);
  text-align: right;
  font-family: 'Antonio', sans-serif;
  font-size: 18px;
}

.how-it-works {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--neutral-white);
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
}

.how-it-works h4 {
  font-size: 15px;
  color: var(--accent-yellow);
  margin-bottom: 8px;
}

.how-it-works p {
  font-size: 14px;
  color: var(--neutral-grey);
  line-height: 1.6;
}

/* ---------------
   QUIZ SPECIFIC
---------------- */
.quiz-container {
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  align-items: center;
}

.timer {
  background-color: var(--primary-navy);
  color: var(--accent-yellow);
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: bold;
  font-family: 'Antonio', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
}

.question-text {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 25px;
  color: var(--primary-navy);
  font-family: 'Glacial Indifference', sans-serif; /* High readability */
  text-transform: none;
  letter-spacing: 0;
}

/* ---------------
   CERTIFICATE LAYOUT MATCH
---------------- */
.certificate-page {
  background: var(--primary-navy);
  color: var(--neutral-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
  position: relative;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

#certificate-wrap {
  padding: 30px;
  background-color: #110239; /* Fallback for HTML2Canvas */
  background-image: radial-gradient(circle at center, #1b045e 0%, var(--primary-navy) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}



.cert-header {
  background-color: var(--neutral-white);
  padding: 10px 15px; /* Reduced horizontal padding for certificate header */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--primary-navy);
  box-shadow: 0 5px 15px rgba(255,255,255,0.3); /* The bright glow from WOFA */
}

.cert-header img {
  height: 130px;
  object-fit: contain;
}

.cert-header .center-img {
  height: 130px;
  width: 130px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Remove pink pseudo element */
.cert-header::after {
  display: none;
}

.cert-title {
  color: var(--neutral-white);
  font-size: 42px;
  font-weight: 700;
  margin-top: 60px;
  margin-bottom: 25px;
  text-shadow: 0 0 15px rgba(255, 34, 129, 0.4); /* Stylish Pink Glow */
  font-family: 'Mismo', sans-serif;
  text-transform: none;
  position: relative;
}

.cert-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-pink), var(--accent-yellow));
  border-radius: 2px;
}

.cert-subtitle-wrap {
  display: inline-block;
  margin-bottom: 40px;
}

.cert-subtitle {
  color: var(--accent-yellow);
  font-size: 16px;
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 500;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent-yellow);
}

.prep-for {
  color: var(--accent-yellow);
  font-size: 16px;
  margin-bottom: 8px;
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 600;
}

.prep-name {
  color: var(--neutral-white);
  font-size: 26px;
  font-weight: bold;
  font-family: 'Glacial Indifference', sans-serif;
  margin-bottom: 40px;
  text-transform: capitalize;
}

.pink-highlight {
  color: var(--accent-pink) !important;
  text-shadow: 0 0 10px rgba(255, 34, 129, 0.3);
}

/* Designer Graphics & Accents */
.cert-ornament {
  position: absolute;
  width: 100px;
  height: 100px;
  z-index: 11;
  pointer-events: none;
  border: 2px solid var(--accent-pink);
  opacity: 0.7;
}

.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 15px 0 0 0; }
.corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 15px 0 0; border-color: var(--accent-yellow); }
.corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 15px; border-color: var(--accent-yellow); }
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 15px 0; }

.tech-pattern {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(var(--accent-pink) 0.5px, transparent 0.5px);
  background-size: 30px 30px;
  opacity: 0.04;
  z-index: 1;
  pointer-events: none;
}

.cert-graphics-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 20px auto;
  position: relative;
  z-index: 12;
}

.graphic-seal {
  width: 12px;
  height: 12px;
  background-color: var(--accent-yellow);
  transform: rotate(45deg);
}

.graphic-divider {
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-pink), transparent);
}

/* Minimalist Signature Lines */
.cert-signatures {
  display: flex;
  justify-content: space-around;
  width: 85%;
  max-width: 680px;
  margin: 30px auto 40px;
}

.signature-block {
  width: 180px;
  text-align: center;
}

.signature-line {
  border-top: 1px solid var(--accent-pink); /* Stylish Pink Line */
  opacity: 0.6;
  width: 100%;
}

.cert-score-card {
  background-color: var(--neutral-white);
  color: #000000; /* Strict Black text */
  border-radius: 20px;
  padding: 50px 60px;
  width: 90%;
  max-width: 750px;
  margin: 30px auto;
  text-align: center; /* Centered content within the box */
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 4px solid var(--accent-pink); /* Pink Outline */
  position: relative;
  z-index: 5;
}

.cert-recipient-section {
  margin-bottom: 30px;
  text-align: center;
}


.prep-name {
  font-family: 'Mismo', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #000000 !important;
  margin: 0;
  text-transform: capitalize;
}


.cert-card-header {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 15px;
  border-bottom: 1px solid #EEE;
  padding-bottom: 8px;
}


  justify-content: space-around;
  width: 85%;
  max-width: 680px;
  margin: 20px auto 40px;
  position: relative;
  z-index: 5;
}

.signature-block {
  text-align: center;
  width: 180px;
}

.signature-line {
  border-top: 1px solid var(--neutral-white);
  margin-bottom: 8px;
  width: 100%;
}

.signature-label {
  font-size: 13px;
  color: var(--accent-yellow);
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 500;
}

.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04; /* Very faint */
  z-index: 0;
  pointer-events: none;
  width: 600px;
}

.cert-watermark img {
  width: 100%;
}


.cert-score-value {
  font-size: 24px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 10px;
  font-family: 'Glacial Indifference', sans-serif;
}

.cert-message {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.cert-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-navy);
}

.cert-footer {
  margin-top: auto;
  padding: 30px 40px;
  position: relative;
  text-align: center;
}

.cert-footer-motto {
  color: var(--accent-yellow);
  font-style: italic;
  font-size: 14px;
  margin-bottom: 8px;
}

.cert-footer-icai {
  color: var(--accent-yellow);
  font-weight: 500;
  font-size: 14px;
}

.cert-hashtag {
  position: absolute;
  bottom: 30px;
  right: 40px;
  color: var(--accent-yellow);
  font-weight: bold;
  font-size: 18px;
}

/* ---------------
   SHARE MODAL
---------------- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(17, 2, 57, 0.95); /* Deeper navy overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(12px); /* Increased blur */
  padding: 20px;
}

.share-modal-container {
  background: #110239;
  color: white;
  padding: 40px;
  border-radius: 28px;
  max-width: 600px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: translateY(30px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}


.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  text-align: left;
}

.share-header-text h2 {
  font-size: 24px;
  color: white;
  margin-bottom: 5px;
  text-transform: none; /* Keep natural casing for modern look */
  letter-spacing: 0;
}

.share-header-text p {
  font-size: 14px;
  opacity: 0.8;
}

.share-close-btn {
  background: white;
  color: #110239;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.share-close-btn:hover {
  transform: scale(1.1);
}

.close-icon {
  font-size: 11px;
  font-weight: bold;
  line-height: 1.1;
}

.close-icon span {
  font-size: 22px;
}

.cert-preview-area {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 25px;
  height: 280px; /* Increased height */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%; /* Fully horizontal */
}

#cert-clone {
  transform-origin: center;
  pointer-events: none;
  background: #110239;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: block;
}

#cert-clone .no-print, 
#cert-clone #submitBtn,
#cert-clone #downloadBtn,
#cert-clone #shareBtn,
#cert-clone #homeBtn {
  display: none !important;
}


.spinner {
  font-size: 14px;
  color: var(--accent-yellow);
  font-weight: bold;
}

.caption-container {
  text-align: left;
  margin-bottom: 30px;
}

.caption-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.caption-header span {
  font-weight: bold;
  font-size: 18px;
  color: white;
  font-family: 'Glacial Indifference', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.shuffle-btn {
  background: none;
  border: none;
  color: var(--accent-yellow);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.shuffle-btn:hover { transform: rotate(180deg); }

.caption-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 20px;
  font-size: 15px;
  line-height: 1.6;
  max-height: 120px;
  overflow-y: auto;
}

.share-action-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill-btn {
  border-radius: 30px;
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
  font-family: 'Glacial Indifference', sans-serif;
}

.orange-btn {
  background: #C84620; /* Matching the orange from the reference */
  color: white;
}

.dark-btn {
  background: #34495e; /* Matching the dark grey/blue from reference */
  color: white;
}

.pill-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

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

@media (max-width: 600px) {
  .share-modal-container {
    padding: 20px;
  }
  
  .share-header-text h2 {
    font-size: 18px;
  }
  
  .share-close-btn {
    width: 60px;
    height: 60px;
  }
}


/* ---------------
   PRINT OPTIMIZATIONS
---------------- */

@page {
  size: landscape; /* Forces landscape orientation for the certificate */
  margin: 0;      /* Removes browser header/footer default margins */
}

@media print {
  .certificate-page {
    background-color: #110239 !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 120px, #110239 150px, #110239 100%) !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-shadow: inset 0 0 0 5000px #110239 !important;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Make the scorecard box more rectangular for landscape */
  .cert-score-card {
    width: 70% !important;
    max-width: 800px !important;
    margin: 20px auto !important;
    padding: 30px !important;
    border-radius: 20px !important;
  }

  .cert-title {
    margin-top: 20px !important;
    font-size: 32px !important;
  }

  .prep-name {
    margin-bottom: 20px !important;
  }

  /* Ensure the header stays white even with the shadow trick */
  .cert-header {
    background-color: #FFFFFF !important;
    box-shadow: inset 0 0 0 1000px #FFFFFF !important;
    -webkit-print-color-adjust: exact !important;
    position: relative;
    z-index: 10;
  }

  .cert-header, .cert-score-card, .btn-primary, .timer, .how-it-works {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Ensure card shadow is visible in print */
  .cert-score-card {
    box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
    border: 1px solid #FFBE0B !important;
  }
}
/* ---------------
   VENUE SECTION
---------------- */
.venue-section {
  background: transparent;
  padding: 40px 40px 45px;
  position: relative;
  z-index: 1;
}

.venue-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.venue-title {
  font-family: 'Mismo', sans-serif;
  color: var(--accent-yellow);
  font-size: 22px;
  margin-bottom: 28px;
  text-transform: none;
  letter-spacing: 0.5px;
}

.venue-glass {
  background: rgba(17, 2, 57, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px 35px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 35px;
  align-items: center;
}

.venue-pin {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.venue-pin h4 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-white);
  text-transform: none;
  letter-spacing: 0;
}

.venue-address {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 16px;
}

.venue-directions {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-pink);
  text-decoration: none;
  transition: color 0.2s;
}

.venue-directions:hover {
  color: var(--primary-navy);
}

.venue-map {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.venue-map a {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------------
   SITE FOOTER
---------------- */
.site-footer {
  background-color: var(--primary-navy);
  color: var(--neutral-white);
  padding: 0;
  border-top: 1px solid rgba(255, 190, 11, 0.15);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 45px 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 35px;
}

.footer-brand h3 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--neutral-white);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 4px;
  line-height: 1.4;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-white);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-icon:hover {
  background: var(--accent-yellow);
  color: var(--primary-navy);
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-white);
  text-transform: none;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: var(--accent-yellow);
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact ul li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-yellow);
}

.footer-contact ul li a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact ul li a:hover {
  color: var(--accent-yellow);
}

.footer-contact ul li span {
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------------
   MOBILE RESPONSIVENESS
---------------- */
@media (max-width: 768px) {
  .top-header {
    padding: 18px 20px;
  }

  .top-header .side-logo {
    height: 32px;
  }

  .top-header .center-img {
    height: 62px;
    width: 62px;
  }

  .header-title {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .logo-ring {
    width: 78px;
    height: 78px;
  }

  .sub-header-bar {
    padding: 24px 10px 20px;
  }

  .sub-header-bar {
    padding: 18px 15px;
  }

  .sub-glass-wide {
    padding: 22px 20px;
    border-radius: 16px;
  }

  .sub-three-col {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .sub-left {
    align-items: center;
  }

  .sub-right {
    align-items: center;
  }

  .sub-heading {
    font-size: 32px;
    letter-spacing: 4px;
  }

  .sub-tagline {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .main-content {
    padding: 20px 15px;
  }

  .content-glass {
    padding: 20px;
    border-radius: 16px;
  }

  .venue-glass {
    padding: 20px;
    border-radius: 16px;
  }

  .card h2 {
    font-size: 24px;
  }

  .cert-title {
    font-size: 24px;
    margin-top: 30px;
  }

  .cert-header img {
    height: 60px;
  }

  .cert-header .center-img {
    height: 90px;
    width: 90px;
  }

  .cert-score-card {
    width: 95%;
    padding: 25px 20px;
  }

  .venue-section {
    padding: 30px 15px;
  }

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

  .venue-map {
    height: 180px;
  }

  .footer-inner {
    padding: 35px 20px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .top-header .side-logo {
    height: 26px;
  }

  .top-header .center-img {
    height: 52px;
    width: 52px;
  }

  .logo-ring {
    width: 66px;
    height: 66px;
  }

  .sub-glass-wide {
    padding: 18px 15px;
    border-radius: 14px;
  }

  .sub-heading {
    font-size: 26px;
    letter-spacing: 3px;
  }

  .sub-tagline {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .countdown-block {
    padding: 6px 8px;
    min-width: 40px;
  }

  .countdown-block span {
    font-size: 20px;
  }

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

  .btn {
    width: 100%;
    margin: 5px 0 !important;
  }

  .cert-title {
    font-size: 20px;
  }

  .prep-name {
    font-size: 20px;
  }

  .cert-score-value {
    font-size: 18px;
  }
}
