:root {
  --primary: #0b4f3a;
  --primary-dark: #073627;
  --secondary: #1e6b52;
  --accent: #d97706;
  --bg-light: #f4f7f6;
  --text-dark: #1f2937;
  --white: #ffffff;
  --border: #e5e7eb;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: var(--primary-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.brand span {
  background: var(--accent);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

nav ul { list-style: none; display: flex; gap: 0.4rem; flex-wrap: wrap; }

nav a {
  display: inline-block;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover, nav a.active {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
}

nav a.active { border-bottom: 3px solid var(--accent); }

.hero {
  background-image: url('http://www.algebra.ufam.edu.br/fondo.png');
  background-size: cover;   
  color: var(--white);
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-bottom: 5px solid var(--accent);
}

.hero-logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
}

  

.hero-small {
  background-image: url('http://www.algebra.ufam.edu.br/fondo.png');
  background-size: cover;   
  color: var(--white);
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero h1, .hero-small h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.hero p.subtitle { font-size: 1.2rem; color: #d1fae5; margin-bottom: 0.4rem; }
.hero p.venue { font-size: 1rem; color: #f3f4f6; margin-bottom: 1.75rem; }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary { background-color: var(--accent); color: var(--white); }
.btn-primary:hover { background-color: #b45309; }
.btn-outline { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background-color: var(--white); color: var(--primary-dark); }

main { max-width: 1100px; width: 100%; margin: 0 auto; padding: 2rem 1.5rem; flex: 1; }

section {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

h2 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-light);
}

h3 { color: var(--secondary); font-size: 1.2rem; margin: 1.5rem 0 0.75rem; scroll-margin-top: 85px; }
p { margin-bottom: 1rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.info-card { background: var(--bg-light); padding: 1.5rem; border-radius: 8px; border-left: 4px solid var(--primary); }
.info-card h3 { margin-top: 0; color: var(--primary-dark); }

.quick-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.quick-links a {
  background: var(--white);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.quick-links a:hover { background: var(--primary); color: var(--white); }

.table-responsive { overflow-x: auto; margin-bottom: 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { border: 1px solid var(--border); padding: 0.65rem; text-align: center; vertical-align: middle; }
th { background-color: var(--primary); color: var(--white); }
td.time-col { background-color: #f9fafb; font-weight: 700; white-space: nowrap; color: var(--primary-dark); }
td.break-row { background-color: #fef3c7; font-weight: 600; color: #92400e; }
td.holiday-col { background-color: #f3f4f6; color: #6b7280; font-weight: 700; writing-mode: vertical-rl; letter-spacing: 2px; }

.item-list { list-style: none; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.item-list li {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.item-list li:nth-child(even) { background: #fafafa; }
.item-list li:last-child { border-bottom: none; }
.speaker-name { font-weight: 700; color: var(--primary-dark); }
.talk-title { font-style: italic; }

.session-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  width: fit-content;
}

.committee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.committee-box { background: var(--bg-light); padding: 1.25rem; border-radius: 8px; }
.committee-box ul { margin-left: 1.25rem; margin-top: 0.5rem; }
.committee-box li { margin-bottom: 0.45rem; }

.timeline { border-left: 3px solid var(--primary); padding-left: 1.5rem; margin-left: 0.5rem; }
.timeline-item { margin-bottom: 1.25rem; position: relative; }
.timeline-item::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: -1.92rem;
  top: 0.35rem;
}
.timeline-year { font-weight: 700; color: var(--primary); }

.sponsors { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1rem; }
.sponsor-tag {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

footer {
  background-color: var(--primary-dark);
  color: #d1d5db;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
  margin-top: auto;
}
footer a { color: #fde68a; text-decoration: none; }

@media (max-width: 768px) { .hero h1, .hero-small h1 { font-size: 1.7rem; } }
