/* ============================================================
   ERAD/SE 2026 — Customizações sobre o tema Cayman
   ============================================================ */


/* --- Variáveis -------------------------------------------- */
:root {
  --navy:      #0B2545;
  --navy2:     #1B3A6B;
 /* --accent:    #1D9E75;*/
  --accent:    #025fb0;
 /* --accent2:   #0F6E56; */
  --accent2:   #ee5100;
  --gold:      #BA7517;
  --light:     #F0F4F8;
  --white:     #FFFFFF;
  --text:      #1a2a3a;
  --muted:     #4a5f75;
  --border:    #d0dde8;
}



/* --- Tipografia base -------------------------------------- */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  padding-top: 64px; /* compensa navbar fixa */
}

h1, h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}


/* Botões do hero */
.btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 12px 28px !important;
  transition: background 0.2s !important;
}

.btn:hover { background: var(--accent2) !important; border-color: var(--accent2) !important; }

.btn-outline {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
}


.btn-outline:hover { background: rgba(255,255,255,0.1) !important; }

/* --- Conteúdo principal ----------------------------------- */
.main-content {
  max-width: 960px !important;
  padding: 2.5rem 2rem 4rem !important;
}

.main-content h1, .main-content h2 {
  font-family: 'DM Serif Display', serif;
  color: var(--navy);
  font-weight: 400;
  border-bottom: none !important;
}

.main-content h2 { font-size: 1.7rem; margin-top: 2.5rem; }

.main-content h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 6px;
}

.main-content h3 {
  font-family: 'DM Serif Display', serif;
  color: #ee5100;
  font-weight: 400;
}

.main-content p { color: var(--muted); line-height: 1.8; }

.main-content strong { color: var(--text); }

.main-content a { color: var(--accent); }

/* --- Cards de data ---------------------------------------- */
.dates-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }

.date-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.date-card.highlight { border-left: 3px solid var(--gold); }

.date-marker {
  min-width: 52px;
  height: 52px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  font-weight: 500;
  flex-shrink: 0;
}

.date-card.highlight .date-marker { background: var(--gold); }

.date-marker b { font-size: 1.2rem; display: block; }

.date-content h4 { font-size: 0.95rem; font-weight: 500; color: var(--text); margin: 0 0 0.2rem; font-family: 'DM Sans', sans-serif; }

.date-content p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* --- Cards de programação --------------------------------- */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.prog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none !important;
  display: block;
}

.prog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.prog-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  background: var(--light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.prog-card h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.3rem;
  font-family: 'DM Sans', sans-serif;
}

.prog-card p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* --- Caixa objetivos -------------------------------------- */
.goals-box {
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.goals-box h3 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent2);
  margin: 0 0 0.75rem;
  font-family: 'DM Sans', sans-serif;
}

.goals-box ul { list-style: none; padding: 0; margin: 0; }

.goals-box li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.goals-box li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- Seção SBC -------------------------------------------- */
.sbc-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.sbc-box-text {
  flex: 1;
}

.sbc-box-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sbc-box-image img {
  width: 160px;
}

@media (max-width: 640px) {
  .sbc-box {
    flex-direction: column;
  }
  .sbc-box-image img {
    width: 120px;
  }
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: var(--navy) !important;
  color: rgba(255,255,255,0.6) !important;
  padding: 3rem 0 1.5rem !important;
  margin-top: 0 !important;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-org {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-group h4 {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin: 0 0 0.75rem;
  font-family: 'DM Sans', sans-serif;
  border: none !important;
}

.footer-group h4::after { display: none !important; }

.footer-logos { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.footer-logo-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: background 0.15s;
}

.footer-logo-pill:hover { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }

.footer-logo-pill.featured {
  background: rgba(29,158,117,0.25);
  border-color: rgba(29,158,117,0.4);
  color: rgba(255,255,255,0.9);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35) !important;
  text-align: center;
  margin: 0;
  line-height: 1.8;
}

/* --- Tabela de datas (página submissões) ------------------ */
.submissoes-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.submissoes-table th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  font-size: 0.85rem;
}

.submissoes-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.submissoes-table tr:hover td { background: var(--light); }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-green { background: #d1fae5; color: #065f46; }
.badge-gold  { background: #fef3c7; color: #92400e; }
.badge-blue  { background: #dbeafe; color: #1e40af; }
.badge-red   { background: #fee2e2; color: #991b1b; }

/* --- Responsivo ------------------------------------------- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    gap: 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }

  .nav-menu.open { display: flex; }

  .nav-menu li { width: 100%; }

  .nav-menu a { padding: 10px 6px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); }

  .dropdown-menu {
    display: none !important;
    position: static;
    background: var(--light);
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .nav-dropdown.open .dropdown-menu { display: block !important; }

  .nav-btn-inscricao { margin: 10px 0 0 !important; width: 100%; text-align: center; }

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

  .footer-org { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* --- Página de organização -------------------------------- */
.org-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.org-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.org-list li {
  padding: 7px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 1rem;
  line-height: 1.4;
}

.org-list li:last-child { border-bottom: none; }

.org-list a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.org-list a:hover { color: var(--accent); }

.org-org {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1px;
}

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

.local_column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.local_text {
  font-size: 1.0rem;
  color: var(--muted);
  line-height: 1.6;
}

.local_img {
  width: 100%;
  border-radius: 1px;
  border: 0px solid var(--border);
}

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

/* --- Container de vídeo ------------------------------------ */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 3rem auto;
  max-width: 70%;
  border-radius: 15px;
  background: var(--light);
}

.video-jf {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.figure-caption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}

.figure-caption a {
  color: var(--accent);
  text-decoration: none;
}

.figure-caption a:hover {
  text-decoration: underline;
}

/* --- Container de mapa ------------------------------------ */
.map-container {
  display: flex;
  justify-content: center;
  margin: 3rem auto;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  max-width: 800px;
  height: 500px;
  border-radius: 10px;
}

/* --- Áreas de interesse ----------------------------------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
 
.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 10px 10px;
  padding: 1.25rem;
}
 
.area-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
 
.area-card h3::after { display: none !important; }
 
.area-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
 
.area-card li {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 4px 0 4px 0.9rem;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  line-height: 1.4;
}
 
.area-card li:last-child { border-bottom: none; }
 
.area-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}