/* Webinar About Section Styles */
/* Font Awesome fix: define solid 900 weight (file in /assets/fonts/fontawesome) */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url('/assets/fonts/fontawesome/fa-solid-900.woff2') format('woff2'),
       url('/assets/fonts/fontawesome/fa-solid-900.ttf') format('truetype');
}

/* Global overflow protection */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Global overflow protection */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Hide radio buttons completely */
input[type="radio"].sr-only,
input[type="radio"].peer {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
}
.webinar-about-section {
  padding: 3.5rem 0 3rem;
  background: #ffffff;
  overflow-x: hidden;
}

/* Principal Box (Acerca del Webinar) */
.about-box {
  background: #f5f5f5; /* bg-avantech-gray-light */
  padding: 2rem; /* p-8 */
  border-radius: 0.75rem; /* rounded-lg */
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); /* shadow-sm */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.webinar-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* equal halves */
  gap: 3rem;
  align-items: flex-start;
}

/* Mobile: full width, form below content */
@media (max-width: 992px) {
  .webinar-about-section {
    padding: 2.5rem 0 2rem;
  }
  .webinar-about-section .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
  }
  .webinar-about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-box {
    border-radius: 0;
    margin: 0;
    padding: 1.5rem 1rem;
  }
  .about-content {
    padding: 0 0.5rem;
  }
  .about-form-placeholder {
    padding: 0 1rem;
  }
}

.about-content {
  color: #374151; /* slate-700 */
  font-size: 1rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.about-content h1,
.about-content h2,
.about-content h3,
.about-content h4,
.about-content h5 {
  font-weight: 700;
  color: rgb(0 34 68 / var(--tw-text-opacity, 1));
  --tw-text-opacity: 1;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}

/* Ensure all headings inside the webinar about section use the required color */
.webinar-about-section h1,
.webinar-about-section h2,
.webinar-about-section h3,
.webinar-about-section h4,
.webinar-about-section h5,
.webinar-about-section h6 {
  color: rgb(0 34 68 / var(--tw-text-opacity, 1));
  --tw-text-opacity: 1;
}

.about-content h2:first-child {
  margin-top: 0;
}

/* Accent underline for main title */
.about-content h2:first-child {
  position: relative;
  display: inline-block;
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700; /* font-bold */
  padding-bottom: 0.75rem; /* pb-3 */
  margin-bottom: 1.5rem;
  border-bottom: 4px solid #3a4fe8; /* border-b-4 border-avantech-accent */
}

.about-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 1.25rem;
}
.about-content ul {
  margin-top: 0.75rem;
}
.about-content li {
  position: relative;
  padding-left: 2.25rem;
  line-height: 1.5;
  margin-bottom: 0.75rem; /* space-y-3 */
  display: block;
}
.about-content li::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0.45rem; /* align start */
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgb(58 79 232 / var(--tw-text-opacity, 1));
  --tw-text-opacity: 1;
  display: inline-block;
}
.about-content li::after {
  /* Font Awesome check icon (fa-check). Fallback to ✓ if font fails */
  content: '\f00c';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
  font-weight: 900;
  position: absolute;
  left: 0.4rem;
  top: 0.45rem;
  width: 1.15rem;
  height: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.7rem;
  line-height: 1;
  pointer-events: none;
}

/* Sub-heading (Aprenderás a:) tighter spacing */
.about-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600; /* font-semibold */
  font-size: 1.25rem; /* text-xl */
  color: rgb(0 34 68 / 1);
}

.about-form-placeholder {
  background: transparent; /* remove outer panel background */
  border: none; /* remove outer border */
  border-radius: 0;
  padding: 0; /* let inner form-card define spacing */
  color: #1f2937;
  position: relative;
}

.form-title {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: rgb(0 34 68 / 1);
  border-bottom: 4px solid #3a4fe8;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.form-shell {
  border: 2px dashed #cbd5e1; /* slate-300 */
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: #ffffff;
}
.form-pending {
  margin: 0;
  font-size: 0.95rem;
  color: #475569; /* slate-600 */
}

/* Form Card (spec styles) */
.form-card {
  background: #ffffff; /* bg-white */
  padding: 2rem; /* p-8 */
  border-radius: 0.75rem; /* rounded-lg */
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-lg */
}
.form-title {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700; /* font-bold */
  margin: 0 auto 1.5rem; /* center with auto margins and mb-6 */
  text-align: center; /* text-center */
  color: rgb(0 34 68 / 1); /* text-avantech-blue-dark */
  border: 0;
  padding-bottom: 0;
  width: 100%; /* ensure it takes full width for centering */
}
.form-fieldset { border: 0; padding: 0; margin: 0; }
.form-group { margin-bottom: 1.25rem; position: relative; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #2b4c7e; margin-bottom: 0.25rem; }
.field-error {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 400;
}
.field-error.visible { display: block; }
/* Screen reader only - hides radio buttons visually but keeps them accessible */
.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0,0,0,0); 
  white-space: nowrap; 
  border-width: 0; 
}
.form-label .req { color: #ef4444; }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem; /* px-4 py-3 */
  border: 1px solid #cbd5e1; /* border-avantech-border-light */
  border-radius: 0.5rem; /* rounded-md */
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  background-color: #ffffff; /* white input background */
  color: #1f2937; /* dark text */
  box-sizing: border-box;
  max-width: 100%;
}
.form-input::placeholder { color: #cbd5e1; opacity: 1; }
.form-input:focus {
  outline: none;
  border-color: #3a4fe8; /* focus:border-avantech-accent */
  box-shadow: 0 0 0 3px rgba(58,79,232,0.25); /* focus:ring-avantech-accent */
 
}
.input-white {
  background-color: #ffffff !important;
  color: #1f2937 !important;
}
.input-white::placeholder { 
  color: #9ca3af !important;
}
.input-white:focus {
  background-color: #ffffff !important;
}
.input-inline {
  flex: 0 1 auto;
  min-width: 200px;
  max-width: 300px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  margin: 0;
  height: auto;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}
  .pill-group { display: flex; flex-wrap: wrap; }
.pill {
  display: block; font-size: 0.875rem; text-align: center; cursor: pointer;
  padding: 0.5rem 1rem; border-radius: 0.375rem; border: 1px solid #e5e7eb;
  background: #ffffff; color: #111827;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pill-selected,
.pill.pill-selected {
  background: #6475e6 !important; /* approx avantech blue medium */
  color: #ffffff !important;
  font-weight: 600;
  border-color: #6475e6 !important;
  box-shadow: 0 0 0 2px rgba(58,79,232,0.25) !important;
}
.pill:hover { background: #f1f5f9; }
.form-actions { margin-top: 1.5rem; }
.actions-row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .actions-row { flex-direction: row; } }
.btn-primary {
  flex: 1; background: #3a4fe8; color: #ffffff; font-weight: 700;
  padding: 0.75rem 1rem; border-radius: 0.375rem; transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.btn-primary:hover { background: #3546d7; transform: translateY(-2px); }
.btn-primary:disabled { background: #9ca3af; }
.btn-secondary {
  flex: 1; background: #ffffff; border: 2px solid #9db2ff; color: #9db2ff;
  font-weight: 600; padding: 0.75rem 1rem; border-radius: 0.375rem;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  font-size: 0.875rem;
}
.btn-secondary:hover { background: rgba(157,178,255,0.1); box-shadow: 0 4px 6px rgba(0,0,0,0.08); }

/* Utility margin-right for icon spacing */
.mr-2 { margin-right: 0.5rem; }

/* Speaker Section */
.speaker-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.speaker-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.speaker-avatar {
  width: 7rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 2px solid #3a4fe8;
}

.speaker-info {
  flex: 1;
}

.speaker-label {
  font-weight: 600;
  font-size: 1.125rem;
  color: rgb(0 34 68 / 1);
  margin: 0 0 0.05rem 0;
}

.speaker-name {
  color: #1f2937;
  font-weight: 500;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  font-size: 1rem;
}

.speaker-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.speaker-social-link {
  color: #6b7280;
  font-size: 1.25rem;
  transition: color 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.speaker-social-link:hover {
  color: #3a4fe8;
}

/* Share Webinar Section */
.share-webinar-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.share-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(0 34 68 / 1);
  margin: 0 0 1rem 0;
}

.social-icons-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #6b7280;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-link:hover {
  color: rgb(58 79 232 / 1);
  transform: translateY(-2px);
}

.social-icon-link:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .webinar-about-section {
    padding: 2rem 0 1.75rem;
  }
  .webinar-about-section .container {
    padding-left: 0;
    padding-right: 0;
  }
  .about-box { 
    padding: 1.25rem 1rem;
    margin: 5px;
    border-radius: 0;
    margin-right: 0.75rem;
    width: 100% !important;
  }
  .about-content { 
    font-size: 0.9rem; 
    line-height: 1.5;
    padding: 0 0.25rem;
    margin-right: 0.75rem;
  }
  .about-content h2:first-child { 
    font-size: 1.375rem; 
    padding-bottom: 0.5rem; 
    margin-bottom: 1rem; 
  }
  .about-content h4 { 
    font-size: 1rem; 
    margin-top: 1.25rem; 
    margin-bottom: 0.75rem; 
  }
  .about-content li { 
    padding-left: 1.5rem; 
    margin-bottom: 0.625rem;
    padding-right: 0.25rem;
  }
  .about-content li::before { 
    width: 1rem; 
    height: 1rem; 
    top: 0.35rem; 
    left: 0.25rem; 
  }
  .about-content li::after { 
    width: 1rem; 
    height: 1rem; 
    top: 0.35rem; 
    left: 0.25rem; 
    font-size: 0.625rem; 
  }
  .webinar-about-grid {
    gap: 1.5rem;
  }
  .form-card {
    border-radius: 0;
    width: 100% !important;
    max-width: 100% !important;
  }
  .form-shell {
    padding: 1.25rem 1rem;
  }
  .about-form-placeholder {
    padding: 0;
    display: flex !important;
    justify-content: center !important;
  }
  .form-fieldset {
    width: 100% !important;
  }
  .form-group {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .form-label {
    width: 100% !important;
    text-align: left !important;
  }
  .form-input,
  .input-inline {
    width: 100% !important;
    max-width: 100% !important;
  }
  .pill-group {
    width: 100% !important;
    max-width: 100% !important;
  }
  .pill {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  .btn-primary,
  .btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
  }
  .captcha-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .form-actions {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .actions-row {
    width: 100% !important;
    max-width: 100% !important;
  }
  .share-webinar-section {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    margin-right: 0.75rem;
  }
  .speaker-section {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    margin-right: 0.75rem;
  }
  .related-content {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    margin-right: 0.75rem;
  }
  .related-title {
    font-size: 1rem;
  }
  .related-tag {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
  }
  .slider-responsive {
    padding: 0 0.5rem !important;
  }
  .social-icons-wrapper {
    gap: 0.625rem;
  }
  .social-icon-link {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

/* Slider responsive container */
.slider-responsive {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

.slider-responsive .slider-area {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.slider-responsive .swiper {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 992px) {
  .slider-responsive {
    padding: 0 1rem;
    overflow-x: hidden;
  }
}

@media (max-width: 640px) {
  .slider-responsive {
    padding: 0 0.5rem;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }
  .slider-responsive .slider-area {
    padding: 0;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  .slider-responsive .swiper {
    overflow-x: hidden;
  }
  .slider-responsive .swiper-wrapper {
    padding: 0 0.75rem;
  }
}

/* Related Content Section */
.related-content {
  margin-top: 2rem; /* mt-8 */
  padding-top: 1.5rem; /* pt-6 */
  border-top: 1px solid #e5e7eb; /* border-avantech-border-light */
  max-width: 100%;
  overflow: hidden;
}
.related-title {
  font-weight: 600; /* font-semibold */
  font-size: 1.125rem; /* text-lg */
  color: #2b4c7e; /* text-avantech-blue-dark */
  margin-bottom: 1rem; /* mb-4 */
}
.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem; /* gap-3 */
}
.related-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* gap-2 */
  background-color: rgba(58, 79, 232, 0.10); /* bg-avantech-blue-light/10 */
  color: #2b4c7e; /* text-avantech-blue-dark */
  font-weight: 500; /* font-medium */
  padding: 0.5rem 1rem; /* py-2 px-4 */
  border-radius: 9999px; /* rounded-full */
  font-size: 0.875rem; /* text-sm */
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease; /* transition-colors duration-200 */
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* shadow-sm */
  border: 1px solid rgba(58,79,232,0.20); /* border-avantech-blue-light/20 */
  text-decoration: none;
  word-break: break-word;
  max-width: 100%;
}
.related-tag:hover {
  background-color: rgba(58, 79, 232, 0.20); /* hover:bg-avantech-blue-light/20 */
  color: #2b4c7e; /* hover:text-avantech-blue-dark */
}
.related-tag .tag-icon {
  display: inline-block;
}
.related-tag .tag-icon i {
  color: #3a4fe8; /* text-avantech-blue-light */
}
.related-tag .tag-exit {
  margin-left: 0.25rem; /* ml-1 */
  font-size: 0.75rem; /* text-xs */
  opacity: 0.5; /* opacity-50 */
  transition: opacity 0.2s ease, transform 0.2s ease; /* transition-opacity */
}
.related-tag:hover .tag-exit {
  opacity: 1; /* group-hover:opacity-100 */
  transform: translateX(2px); /* group-hover:translate-x-0.5 */
}
.related-description {
  color: #6b7280; /* text-gray-500 */
  margin-top: 1rem;
  margin-left: 0.75rem;
  margin-right: 5rem;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 90%;
  overflow: hidden;
  box-sizing: border-box;
}
