/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================================
   AUTHENTICATION UI (Devise Overrides)
   ========================================= */

:root {
  /* CIA BRAND COLORS */
  --navy-midnight: #0a0e27;
  --navy-vibrant: #1a2b6d;
  --aviation-gold: #ffa722;
  --cobalt-blue: #0047AB;
  --royal-blue: #002366;

  /* LITO SYSTEM MAPPING */
  --primary: var(--cobalt-blue);
  --primary-hover: var(--royal-blue);
  --secondary: #6366f1;
  /* Indigo vibrant for gradients */
  --accent: var(--aviation-gold);
  --bg-dark: var(--navy-midnight);

  /* COLOR PALETTE EXPANSION */
  --anac-green: #10b981;
  --anac-blue: #3b82f6;
  --anac-purple: #8b5cf6;

  /* LEGACY / DEFAULT */
  --bg-gradient-start: #f8fafc;
  --bg-gradient-end: #f1f5f9;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --card-bg: rgba(255, 255, 255, 0.85);
  --border-color: #E5E7EB;
  --input-focus: #818CF8;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  min-height: 100vh;
  color: var(--text-main);
}

.container.mx-auto.mt-28.px-5.flex {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 7rem);
  width: 100%;
}

.auth-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
}

.auth-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
  padding: 3rem;
  width: 100%;
  max-width: 440px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text-main);
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: #F9FAFB;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--input-focus);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.custom-checkbox {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 2px;
}

.form-actions {
  margin-top: 2rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

/* .btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
} */

.btn-primary:active {
  transform: translateY(1px);
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* =========================================
   NAVIGATION & LAYOUT
   ========================================= */

.main-content {
  padding: 2rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 5%;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-greeting {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
}

.flash-messages {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 400px;
  pointer-events: none;
}

.flash {
  pointer-events: auto;
  position: relative;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: slide-in-toast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.flash-notice {
  background-color: rgba(236, 253, 245, 0.9);
  color: #064e3b;
  border-left: 4px solid #10b981;
}

.flash-alert {
  background-color: rgba(254, 242, 242, 0.9);
  color: #7f1d1d;
  border-left: 4px solid #ef4444;
}

.flash-close {
  background: transparent;
  border: none;
  color: currentColor;
  opacity: 0.5;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.flash-close:hover {
  opacity: 1;
}

@keyframes slide-in-toast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-out.slide-out-to-right {
  animation: slide-out-toast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-out-toast {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* =========================================
   DASHBOARD UI
   ========================================= */

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text-main);
}

.page-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.topic-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.topic-card-body {
  padding: 1.5rem;
  flex: 1;
}

.topic-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.topic-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.topic-card-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.topic-card-footer form {
  display: inline-block;
  margin: 0;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

/* .btn-outline:hover {
  background: var(--primary);
  color: white;
} */

.btn-danger {
  background: transparent;
  color: #dc2626;
  border: 1px solid #dc2626;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

/* .btn-danger:hover {
  background: #dc2626;
  color: white;
} */

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.topic-details-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 2px dashed var(--border-color);
  border-radius: 1rem;
  color: var(--text-muted);
}

/* =========================================
   MODAL UI NATIVO
   ========================================= */

.exam-modal {
  padding: 0;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background: var(--card-bg);
  max-width: 500px;
  width: 90%;
  margin: auto;
}

.exam-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.exam-modal .modal-content {
  padding: 2rem;
}

/* =========================================
   LANDING PAGE STYLES (CIA x LITO)
   ========================================= */

.landing-wrapper {
  background-color: #ffffff;
  /* Fundo branco limpo */
  color: var(--text-main);
  min-height: 100vh;
}

/* Hero Slider Section */
.hero-sales-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  border-bottom: 4px solid var(--aviation-gold);
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-sales-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 14, 39, 0.6) 25%, rgba(10, 14, 39, 0.2) 100%);
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10%;
}


.navbar-sales {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 10%;
  background: white;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links-sales {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link-sales {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-link-sales:hover {
  color: var(--aviation-gold);
}

.btn-area-aluno {
  background: linear-gradient(180deg, var(--cobalt-blue) 0%, var(--royal-blue) 100%);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3);
}

.btn-area-aluno:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 71, 171, 0.4);
  filter: brightness(1.1);
}

/* --- Mobile Menu Styles (Landing Only) --- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--navy-midnight);
  border-radius: 10px;
  transition: all 0.3s linear;
}

.mobile-menu-close {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--navy-midnight);
  cursor: pointer;
  line-height: 1;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 1024px) {
  .navbar-sales {
    padding: 1rem 5%;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links-sales {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem;
    gap: 2rem;
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links-sales.active {
    right: 0;
  }

  .mobile-menu-close {
    display: block;
  }

  .btn-area-aluno {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* ... (hero content and titles stay the same) ... */

/* Stage 2: Carousel Sales */
.carousel-sales {
  position: relative;
  width: 100vw;
  height: 400px;
  overflow: hidden;
  background: var(--navy-midnight);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slide-sales {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  color: white;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .carousel-sales {
    height: 320px;
  }

  .carousel-title {
    font-size: 2rem !important;
  }
}

.slide-1 {
  background: linear-gradient(rgba(10, 14, 39, 0.8), rgba(10, 14, 39, 0.8)), #1a2b6d;
}

.slide-2 {
  background: linear-gradient(rgba(10, 14, 39, 0.8), rgba(10, 14, 39, 0.8)), #002366;
}

.slide-3 {
  background: linear-gradient(rgba(10, 14, 39, 0.8), rgba(10, 14, 39, 0.8)), #0047ab;
}

.carousel-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.carousel-subtitle {
  font-size: 1.2rem;
  color: var(--aviation-gold);
  font-weight: 700;
  letter-spacing: 2px;
}

/* For simplicity, we'll use a small script or radio-button hack for the carousel later. For now, just the layout. */

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.subject-card {
  background: linear-gradient(135deg, rgba(26, 43, 109, 0.4) 0%, rgba(10, 14, 39, 0.8) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 1.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.subject-card:hover {
  transform: translateY(-15px);
  border-color: var(--aviation-gold);
  box-shadow: 0 20px 40px -10px rgba(255, 215, 0, 0.2);
  filter: brightness(1.2);
}

.subject-icon-placeholder {
  width: 60px;
  height: 60px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aviation-gold);
  font-size: 2rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.subject-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.subject-footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--aviation-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: white;
}

.text-accent {
  color: var(--aviation-gold);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: #cad1e9;
  margin-bottom: 3.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero-sales-section {
    height: auto;
    min-height: 500px;
    padding: 6rem 0;
  }

  .hero-content-wrapper {
    padding: 0 5%;
  }

  .hero-title {
    font-size: 3rem;
  }

  .text-gold {
    font-size: 3.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .text-gold {
    font-size: 2.4rem;
  }

  .hero-content div[style*="display: flex"] {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
  }
}

.btn-hero-primary {
  background: linear-gradient(180deg, var(--cobalt-blue) 0%, var(--royal-blue) 100%);
  color: white;
  padding: 1.3rem 2.8rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  box-shadow: 0 0 25px rgba(0, 71, 171, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 71, 171, 0.7);
  filter: brightness(1.1);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--aviation-gold);
  padding: 1.3rem 2.8rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  border: 2px solid var(--aviation-gold);
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: var(--aviation-gold);
  color: var(--navy-midnight);
  transform: scale(1.02);
}

/* =========================================
   UTILITIES
   ========================================= */
.text-gold {
  color: var(--aviation-gold);
}

/* Stage 4: Rules Section */
.rules-section {
  padding: 8rem 5%;
  background: radial-gradient(circle at top, #111827 0%, var(--navy-midnight) 100%);
}

/* Stage 2.5: About Sales Section (Authority) */
.about-sales-section {
  padding: 10rem 10%;
  background: #f8fafc;
  overflow: hidden;
}

.about-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.about-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--aviation-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.about-main-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--navy-midnight);
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.about-description {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-midnight);
  margin-bottom: 0.5rem;
}

.feature-text p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .about-sales-section {
    padding: 4rem 1.5rem;
    /* Padding lateral menor para respiro */
    width: 100%;
    overflow: hidden;
  }

  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .about-image {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .about-image img {
    width: 65% !important;
    /* Foto bem menor conforme pedido */
    max-width: 350px;
    height: auto;
    border-radius: 1rem;
    margin: 0 auto;
  }

  .about-text-content {
    width: 100%;
    text-align: center;
    padding: 0;
  }

  .about-tag {
    margin: 0 auto 1rem;
  }

  .about-main-title {
    font-size: 1.5rem !important;
    /* Fonte bem menor */
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 5%;
  }

  .about-description {
    font-size: 0.9rem !important;
    /* Fonte menor */
    text-align: center;
    padding: 0 5%;
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  .about-features {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .about-main-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .about-image img {
    width: 95% !important;
  }

  .about-features {
    gap: 1.2rem;
    width: 100%;
  }

  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }

  .feature-text p {
    font-size: 0.9rem;
  }
}

.rules-container {
  max-width: 1100px;
  margin: 0 auto;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.rule-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2rem;
  border-radius: 2rem;
  text-align: center;
}

.rule-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #10b981;
  margin-bottom: 1.5rem;
  font-family: 'Outfit', sans-serif;
}

.rule-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.rule-desc {
  color: #94a3b8;
  line-height: 1.6;
}

/* Footer */
/* Footer */
.landing-footer {
  padding: 4rem 5% 2rem;
  background: var(--navy-midnight);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}


.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}


.footer-link-premium {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.footer-link-premium::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--aviation-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-link-premium:hover {
  color: white;
}

.footer-link-premium:hover::after {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  color: #4b5563;
  font-size: 0.8rem;
  letter-spacing: 1px;
}


@media (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .footer-brand {
    text-align: center !important;
  }

  .footer-brand p {
    margin: 1rem auto 0;
  }

  .footer-nav-horizontal {
    align-items: center !important;
  }
}

@media (max-width: 768px) {
  .footer-nav-horizontal ul {
    gap: 1.5rem !important;
    justify-content: center !important;
  }
}


/* --- Custom Modal Confirmation (Turbo) --- */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(8px);
  z-index: 999999 !important;
  /* Total sobreposição */
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.modal-card {
  position: relative !important;
  background: white !important;
  width: 100%;
  max-width: 450px;
  border-radius: 1.5rem;
  padding: 3.5rem 2.5rem 2.5rem !important;
  /* Espaço para o X */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modal-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.3rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

/* ==========================================================================
   PREMIUM EXAM UI (CMS/ANAC STYLE)
   ========================================================================== */

.exam-container-v2 {
  display: flex;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: flex-start;
}

/* Sidebar Status Area */
.exam-status-sidebar {
  flex: 0 0 350px;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.status-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

/* Digital LED Clock */
.digital-clock-container {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  border: 4px solid #333;
}

.clock-label {
  color: #888;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.led-timer {
  font-family: 'Courier New', Courier, monospace;
  font-size: 3rem;
  color: #00ff00;
  /* LED Green */
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  font-weight: bold;
  letter-spacing: 4px;
}

/* Subject Progress Bars */
.subject-progress-item {
  margin-bottom: 1.2rem;
}

.subject-label {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.4rem;
}

.progress-track {
  height: 12px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  transition: width 0.4s ease;
  width: 0%;
}

/* Question Navigator Grid */
.question-navigator {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.nav-btn {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #64748b;
}

.nav-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.nav-btn.nav-active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.nav-btn.nav-answered {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

/* Main Content Styles */
.exam-main-content {
  flex: 1;
}

.question-card-v2 {
  background: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  min-height: 400px;
}

.options-v2 {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.option-item-v2 {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border: 2px solid #f1f5f9;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.option-item-v2:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.option-item-v2 input[type="radio"] {
  margin-right: 1.5rem;
  transform: scale(1.5);
  accent-color: var(--primary);
}

.option-text {
  font-size: 1.1rem;
  color: #1e293b;
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.modal-footer button {
  padding: 0.9rem 1.5rem;
  border-radius: 0.9rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.modal-footer .btn-outline {
  background: #f1f5f9;
  color: #64748b;
}

.modal-footer .btn-primary {

  background: #ffa722;
  color: white;
}

/* ==========================================================================
   TOGGLE SWITCH (AUTO-AVANCE) - FIX
   ========================================================================== */
.switch {
  position: relative !important;
  display: inline-block !important;
  width: 44px !important;
  height: 22px !important;
  margin: 0 !important;
}

.switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
  border-radius: 34px !important;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
  background-color: var(--primary) !important;
}

/* ==========================================================================
   QUESTION EXPLANATION / CBA COMMENTARY
   ========================================================================== */
.explanation-details {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
}

.explanation-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.explanation-summary:hover {
  background: #eff6ff;
  color: var(--primary);
}

.explanation-summary .icon {
  font-size: 1.1rem;
}

.explanation-details[open] .explanation-summary {
  border-bottom: 1px solid #e2e8f0;
  color: #f59e0b;
}

.img-explanation {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  display: block;
  margin: 0 auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-in;
}

.img-explanation:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   LIGHTBOX ZOOM (MODAL DE ELITE)
   ========================================================================== */
.lightbox-modal {
  border: none;
  background: rgba(0, 0, 0, 0.85);
  /* Fundo escuro semi-transparente */
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal[open] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: -50px;
    right: 0;
  }
}

/* ==========================================================================
   SIMULATOR SECTION (BOEING 737)
   ========================================================================== */
.simulator-section {
  position: relative;
  z-index: 1;
}

.simulator-image img:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.sim-features>div {
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid transparent;
}

.sim-features>div:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 167, 34, 0.2);
  transform: translateX(10px);
}

@media (max-width: 968px) {
  .simulator-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem !important;
  }

  .sim-features>div {
    text-align: left;
  }

  .simulator-content h2 {
    text-align: center;
  }

  .simulator-content h3 {
    font-size: 2.5rem !important;
    text-align: center;
  }

  .simulator-content p {
    text-align: center;
    font-size: 1.1rem;
  }

  .simulator-content div[style*="margin-top: 4rem"] {
    margin-top: 2rem !important;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .simulator-content h3 {
    font-size: 2rem !important;
  }

  .sim-features {
    gap: 1.5rem;
  }

  .sim-features>div {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}