/* ========================================
   1. DESIGN SYSTEM (VARIÁVEIS)
======================================== */
:root {
  /* Cores principais */
  --primary: #2563eb;
  --secondary: #64748b;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;

  /* Base */
  --bg: #e9e9e9;
  --text: #3c3c3c;
  --link: #0058cc;

  /* UI */
  --border: #ccc;
  --surface: #ffffff;
  --nav-bg: #f2f2f2;
  --blue-section: #0a5aa0;

  /* Layout */
  --max-width: 1200px;
  --content-width: 700px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 40px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  /* Shadow */
  --shadow-soft: 0 4px 10px rgba(0,0,0,0.2);

  /* Typography */
  --font-main: 'Montserrat', sans-serif;
}


/* ========================================
   2. RESET / BASE
======================================== */
html, body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--link);
  text-decoration: none;
}


/* ========================================
   3. TIPOGRAFIA
======================================== */
h1 {
  text-align: center;
  font-size: 34px;
  margin: var(--space-sm);
  font-weight: bold;
  min-height: 34px;
  line-height: 1.2;
}

h2 {
  text-align: center;
  font-size: 26px;
  margin: var(--space-sm) 0;
  font-weight: bold;
  min-height: 26px;
}

h3 {
  font-size: 20px;
  margin: var(--space-sm) 0;
  font-weight: bold;
  min-height: 20px;
}

h3 i {
  margin-right: 8px;
  color: var(--primary);
}

p {
  font-size: 14px;
  line-height: 1.4;
  text-align: justify;
}


/* ========================================
   4. UTILITÁRIOS
======================================== */
.center {
  text-align: center;
}

.justify {
  text-align: justify;
}


/* ========================================
   5. LAYOUT PRINCIPAL
======================================== */
.page-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  gap: var(--space-md);

  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
}

.left { grid-column: 1; }
.content { grid-column: 2; }
.right { grid-column: 3; }

.left,
.right {
  position: sticky;
  top: var(--space-md);
  align-self: start;
}

.full { grid-column: 1 / -1; }


/* ========================================
   6. HEADER
======================================== */
.header {
  position: relative;
  max-width: var(--content-width);
  margin: 45px auto 0;
  text-align: center;
}

.logo {
  height: 80px;
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}


/* ========================================
   7. NAVBAR
======================================== */
nav {
  background: var(--nav-bg);
  padding: var(--space-xs);
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-top: 30px;

  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  margin: 0 8px;
  font-size: 14px;
  color: black;
}


/* ========================================
   8. DROPDOWN
======================================== */
.dropdown {
  position: relative;
  display: inline-block;
  margin: 0 8px;
}

.dropbtn::after {
  content: "▼";
  font-size: 10px;
  margin-left: 5px;
  opacity: 0.9;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  width: 250px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.dropdown-content a {
  display: block;
  padding: 10px;
  color: #333;
}

.dropdown-content a:hover {
  background: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}


/* ========================================
   9. SECÇÕES
======================================== */
.blue-section {
  background: var(--blue-section);
  color: white;
  padding: var(--space-md) 0;
  width: 100%;
}


/* ========================================
   10. BOTÕES
======================================== */
.big-button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;

  color: white;
  background: linear-gradient(135deg, #4a90e2, #0077ff);

  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;

  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}

.big-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.big-button:active {
  transform: translateY(0);
}


/* ========================================
   11. COMPONENTES
======================================== */
.image {
  width: 50px;
  height: auto;
  filter: invert(30%) sepia(100%) saturate(500%) hue-rotate(190deg);
}

.topo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.titulo {
  font-weight: bold;
}

.descricao {
  font-size: 14px;
}

sup {
  font-size: 10px;
  vertical-align: super;
}


/* ========================================
   12. GRID DE BLOCOS
======================================== */
.blocos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.box {
  width: 320px;
  padding: var(--space-sm);
  border-radius: var(--radius-md);

  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.box-grey { background-color: #d6d6d6; }

/* =========================
   COURSE CARD SYSTEM
========================= */

.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);

  display: flex;
  flex-direction: column;
  
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
  width: 340px;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* imagem / ícone */
.course-image {
  background: var(--blue-section);
  color: white;

  height: 60px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  font-size: 40px;
}

/* conteúdo */
.course-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.course-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.course-description {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.4;
}

.course-spacer {
  flex: 1;
}

/* meta info */
.course-meta {
  margin-top: auto;
  
  font-size: 12px;
  color: var(--secondary);

  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* botão */
.course-button {
  margin-top: auto;

  text-align: center;
  padding: 10px;

  background: var(--primary);
  color: white;

  border-radius: var(--radius-md);

  font-weight: bold;
  font-size: 14px;

  transition: background 0.2s ease;
}

.course-button:hover {
  background: #1e4fd6;
}

.course-header {
  background: var(--blue-section);
  color: white;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
}

.course-icon {
  font-size: 18px;
}

.course-type {
  font-size: 16px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ========================================
   13. FAQ
======================================== */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: #f2f2f2;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.05em;
  list-style: none;
}

/* remove seta default */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* seta personalizada */
.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 1.2em;
}

/* quando aberto */
.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  line-height: 1.4;
}


/* ========================================
   13. CONTACTO
======================================== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contacto-form input,
.contacto-form textarea,
.contacto-form select {
  width: 100%;
  padding: var(--space-sm);
  margin-top: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  box-sizing: border-box;
}

.contacto-form textarea {
  height: 140px;
  resize: vertical;
}

.contacto-info p {
  margin: 10px 0;
}


/* ========================================
   14. FOOTER
======================================== */
.footer {
  text-align: center;
  margin: var(--space-xl) auto;
  font-size: 12px;
}


/* ========================================
   15. TOAST
======================================== */
.toast {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;

  background: var(--blue-section);
  color: white;

  padding: 12px 20px;
  border-radius: var(--radius-md);
  z-index: 9999;
}


/* ========================================
   15. COMING SOON
======================================== */
.coming-soon {
  display: inline-block;
  border-radius: 5px;
  font-size: 0.85em;
}

.course-coming-soon {
  display: inline-block;
  padding: 8px 12px;
  color: #555;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.course-coming-soon::after {
  content: "🚧 Brevemente disponível";
}


/* ========================================
   16. RESPONSIVO
======================================== */
@media (max-width: 900px) {

  .page-layout {
    grid-template-columns: 1fr;
  }

  .left,
  .right {
    display: none;
  }

  .content,
  .full {
    grid-column: 1;
  }

  .logo {
    left: 20px;
  }

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