/* ==========================================================================
   GIZ KNOWLEDGE WEBINAR - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Color Palette
   -------------------------------------------------------------------------- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette matching poster header */
  --giz-green-dark: #044E29;
  --giz-green-header: #0B6538;
  --giz-green-primary: #0C8346;
  --giz-green-cta: #0D9448;
  --giz-green-cta-hover: #086F35;
  --giz-accent-lime: #A2E030;
  --giz-green-light-bg: #F2FAF5;
  --giz-green-mint-border: #C8EBD6;
  --giz-pill-bg: #E4F5EB;
  --giz-pill-text: #065F46;

  /* Neutrals */
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --bg-page: #F8FAFC;
  --white: #FFFFFF;

  /* Form & UI Elements */
  --border-color: #E2E8F0;
  --input-focus-ring: rgba(12, 131, 70, 0.2);
  --danger-color: #EF4444;
  --success-color: #10B981;
  --warning-color: #F59E0B;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(4, 78, 41, 0.15);
  --shadow-cta: 0 8px 20px rgba(13, 148, 72, 0.35);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   2. Global Resets & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px 10px;
}

/* Outer Container styling (Poster Container centered) */
.page-wrapper {
  width: 100%;
  max-width: 820px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   3. Hero Header Section
   -------------------------------------------------------------------------- */
.hero-header {
  position: relative;
  background: url('public/bg-esg-webinar.jpg') center top / cover no-repeat, url('./public/bg-esg-webinar.jpg') center top / cover no-repeat;
  background-color: var(--giz-green-dark);
  padding: 48px 48px 60px 48px;
  color: var(--white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 78, 41, 0.3) 0%, rgba(4, 78, 41, 0.75) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Tag Pill */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 50, 27, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--giz-accent-lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--giz-accent-lime);
}

.badge-text {
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--white);
  text-transform: uppercase;
}

/* Main Title */
.main-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: #E2E8F0;
  margin-bottom: 20px;
}

/* Accent Line */
.accent-bar {
  width: 72px;
  height: 5px;
  background-color: var(--giz-accent-lime);
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. Event Details Cards (Floating Overlap)
   -------------------------------------------------------------------------- */
.event-details-section {
  position: relative;
  z-index: 10;
  margin-top: -32px;
  padding: 0 36px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--white);
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #F1F5F9;
}

.detail-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.card-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--giz-green-light-bg);
  border: 1px solid var(--giz-green-mint-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--giz-green-primary);
  flex-shrink: 0;
}

.card-icon {
  width: 20px;
  height: 20px;
}

.card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card-value {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.venue-sub {
  font-weight: 500;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   5. Main Content Container
   -------------------------------------------------------------------------- */
.content-container {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Partner Logos Wrapper */
.partner-logos-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0 8px 0;
}

.partner-logos-img {
  max-width: 793px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* About Section */
.section-header-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header-title h2 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--giz-green-primary);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.about-body p {
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

/* Topic Pills */
.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.topic-pill {
  background-color: var(--giz-pill-bg);
  color: var(--giz-pill-text);
  border: 1px solid var(--giz-green-mint-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.topic-pill:hover {
  transform: translateY(-1px);
  background-color: #D1FAE5;
}

/* --------------------------------------------------------------------------
   6. Registration Box Section
   -------------------------------------------------------------------------- */
.registration-box-wrapper {
  margin-top: 10px;
}

.registration-box {
  background: var(--giz-green-light-bg);
  border: 1.5px solid var(--giz-green-mint-border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.reg-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.reg-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--giz-green-primary);
  margin-bottom: 4px;
}

.reg-heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Register Now Button */
.btn-register-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--giz-green-cta) 0%, var(--giz-green-cta-hover) 100%);
  color: var(--white);
  border: none;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 18px;
}

.btn-register-main:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px rgba(13, 148, 72, 0.45);
  background: linear-gradient(135deg, #0EA550 0%, #075E2D 100%);
}

.btn-register-main:active {
  transform: translateY(0) scale(0.99);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-register-main:hover .btn-arrow {
  transform: translateX(4px);
}

/* Link Pill Box */
.link-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px dashed var(--giz-green-primary);
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  cursor: pointer;
  transition: background 0.2s;
}

.link-box:hover {
  background: var(--white);
}

.link-label {
  color: var(--text-muted);
  font-weight: 500;
}

.link-url {
  color: var(--giz-green-primary);
  font-weight: 700;
  word-break: break-all;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
}

.copy-btn svg {
  width: 15px;
  height: 15px;
}

.copy-btn:hover {
  color: var(--giz-green-primary);
}

/* QR Code Section */
.reg-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-card {
  border: 2px dashed var(--giz-green-mint-border);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.qr-card:hover {
  transform: scale(1.03);
  border-color: var(--giz-green-primary);
}

.qr-image-holder {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image-holder img, .qr-image-holder canvas {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.qr-label-group {
  text-align: center;
}

.qr-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. Page Footer
   -------------------------------------------------------------------------- */
.page-footer {
  border-top: 1px solid var(--border-color);
  padding: 20px 36px;
  background: #FAFBFD;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.giz-brand {
  color: var(--giz-green-dark);
}

.footer-admin-link {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.admin-link-btn, .config-link-btn {
  background: none;
  border: none;
  color: var(--giz-green-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}

.admin-link-btn:hover, .config-link-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   8. Modals System (Registration, Admin, Config)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-card {
  background: var(--white);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: translateY(0) scale(1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.hidden .modal-card {
  transform: translateY(20px) scale(0.95);
}

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

.modal-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--giz-green-primary);
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: var(--text-primary);
}

/* DB Status Bar */
.db-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.db-status-bar.firebase {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.db-status-bar.demo {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.db-status-bar.firebase .status-dot {
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.db-status-bar.demo .status-dot {
  background: #F59E0B;
  box-shadow: 0 0 6px #F59E0B;
}

/* --------------------------------------------------------------------------
   9. Form Controls & Validation
   -------------------------------------------------------------------------- */
.registration-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.required {
  color: var(--danger-color);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text-primary);
  background-color: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%36475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: var(--giz-green-primary);
  box-shadow: 0 0 0 4px var(--input-focus-ring);
}

/* Invalid field */
.form-group.error .input-wrapper input,
.form-group.error .input-wrapper select {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.error-msg {
  font-size: 0.775rem;
  color: var(--danger-color);
  display: none;
  font-weight: 500;
}

.form-group.error .error-msg {
  display: block;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.btn-primary {
  background: var(--giz-green-primary);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--giz-green-cta-hover);
}

.btn-secondary {
  background: #F1F5F9;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #E2E8F0;
}

.btn-danger {
  background: #FEE2E2;
  color: var(--danger-color);
  border: 1px solid #FCA5A5;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger:hover {
  background: #FCA5A5;
  color: #7F1D1D;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   10. Success View & Ticket Pass
   -------------------------------------------------------------------------- */
.success-view {
  text-align: center;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  background: var(--giz-green-light-bg);
  border: 2px solid var(--giz-green-mint-border);
  color: var(--giz-green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.success-icon-badge svg {
  width: 32px;
  height: 32px;
}

.success-view h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.success-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.ticket-card {
  width: 100%;
  background: linear-gradient(135deg, #044E29 0%, #0B6538 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: left;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255,255,255,0.3);
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.ticket-id {
  color: var(--giz-accent-lime);
}

.ticket-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.t-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.t-row span:first-child {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.t-row strong, .t-row span:last-child {
  font-weight: 600;
  text-align: right;
}

.success-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   11. Admin Table & Config Modal
   -------------------------------------------------------------------------- */
.admin-card {
  max-width: 900px;
}

.admin-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.admin-search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.table-responsive {
  max-height: 400px;
  overflow: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F1F5F9;
  white-space: nowrap;
}

.data-table th {
  background: #F8FAFC;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-secondary);
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table tbody tr:hover {
  background: #F1F5F9;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}

.config-card {
  max-width: 540px;
}

.config-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   12. Toast Notifications System
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--text-primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease forwards;
}

.toast.success {
  background: var(--giz-green-dark);
  border-left: 4px solid var(--giz-accent-lime);
}

@keyframes toastIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* CTA Buttons Group (Register Now + View Agenda) */
.reg-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.btn-agenda-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--giz-green-primary);
  border: 2px solid var(--giz-green-primary);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.025rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 18px;
}

.btn-agenda-main:hover {
  background: var(--giz-green-light-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(12, 131, 70, 0.15);
}

.btn-agenda-icon {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   DRAFT AGENDA MODAL & CATALOGUE STYLING
   -------------------------------------------------------------------------- */
.agenda-card {
  max-width: 860px;
  padding: 0;
  overflow: hidden;
}

.agenda-banner {
  background: url('public/bg-esg-webinar.jpg') center top / cover no-repeat, url('./public/bg-esg-webinar.jpg') center top / cover no-repeat;
  background-color: var(--giz-green-dark);
  padding: 32px 36px;
  color: var(--white);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.agenda-header-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agenda-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--giz-accent-lime);
  text-transform: uppercase;
}

.agenda-main-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin: 2px 0 6px 0;
}

.agenda-details-bar {
  font-size: 0.875rem;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.agenda-details-bar strong {
  color: var(--white);
}

.dot-sep {
  color: var(--giz-accent-lime);
  font-weight: bold;
}

.agenda-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.agenda-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Agenda Body */
.agenda-body {
  padding: 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 65vh;
  overflow-y: auto;
}

.agenda-table-header {
  display: flex;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 10px;
}

.col-time {
  width: 100px;
  flex-shrink: 0;
}

.col-session {
  flex: 1;
  padding-right: 16px;
}

.col-speaker {
  width: 220px;
  text-align: left;
  flex-shrink: 0;
}

/* Session Section */
.agenda-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-capsule {
  background: #044E29;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

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

.agenda-row {
  display: flex;
  align-items: flex-start;
  padding: 14px 12px;
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.15s ease;
  border-radius: 6px;
}

.agenda-row:hover {
  background: #F8FAFC;
}

.agenda-row.quiz-row {
  background: #FEFCE8;
  border-bottom-color: #FEF08A;
}

.badge-time {
  display: inline-block;
  background: #D1FAE5;
  color: #065F46;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.badge-time.quiz-badge {
  background: #FEF08A;
  color: #854D0E;
}

.session-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  display: block;
}

.session-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.speaker-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Agenda Footer (Sticky & High Contrast) */
.agenda-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border-top: 2px solid var(--giz-green-mint-border);
  padding: 20px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -8px 24px rgba(4, 78, 41, 0.08);
}

#print-agenda-btn {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1.5px solid #CBD5E1;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

#print-agenda-btn:hover {
  background: #F8FAFC;
  border-color: var(--giz-green-primary);
  color: var(--giz-green-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

#agenda-register-cta-btn {
  background: linear-gradient(135deg, var(--giz-green-cta) 0%, var(--giz-green-cta-hover) 100%);
  color: var(--white);
  border: none;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

#agenda-register-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px rgba(13, 148, 72, 0.45);
  background: linear-gradient(135deg, #0EA550 0%, #075E2D 100%);
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-header {
    padding: 36px 24px 48px 24px;
  }
  .main-title {
    font-size: 2rem;
  }
  .event-details-section {
    padding: 0 16px;
  }
  .details-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card-value {
    white-space: normal;
    font-size: 0.9rem;
  }
  .content-container {
    padding: 24px 16px;
  }
  .registration-box {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
  }
  .reg-right {
    margin-top: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .page-footer {
    padding: 20px 16px;
  }
  .footer-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .agenda-footer {
    flex-direction: column-reverse;
    gap: 12px;
    padding: 16px 20px;
  }
  #print-agenda-btn, #agenda-register-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

.hidden {
  display: none !important;
}

@media print {
  body {
    background: #FFF !important;
    padding: 0 !important;
  }
  .page-wrapper, .modal-backdrop:not(#agenda-modal) {
    display: none !important;
  }
  #agenda-modal {
    position: static !important;
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .agenda-card {
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }
  .agenda-close-btn, .agenda-footer {
    display: none !important;
  }
  .agenda-body {
    max-height: none !important;
    overflow: visible !important;
  }
}
