:root {
  --primary-color: #003366;
  --secondary-color: #005bbb;
  --accent-color: #00a8e8;

  --text-color-main: #2c3e50;
  --text-color-secondary: #546e7a;
  --text-color-light: #ffffff;

  --bg-color-body: #f8f9fa;
  --bg-color-card: #ffffff;
  --bg-color-dark: #1c2331;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  --font-family-base: "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-size-h1: 2.75rem;
  --font-size-h2: 2.25rem;
  --font-size-h3: 1.75rem;
  --font-size-p: 1.125rem;
  --line-height-base: 1.7;
  --line-height-heading: 1.3;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

body {
  background-color: var(--bg-color-body);
  font-family: var(--font-family-base);
  color: var(--text-color-main);
  line-height: var(--line-height-base);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.main-content {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  min-height: 80vh;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.custom-navbar {
  background-color: var(--bg-color-card);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.titulo-navbar {
  font-weight: 500;
  color: var(--text-color-main) !important;
  margin: 0 0.75rem;
  position: relative;
  font-size: 1.05rem;
  padding-bottom: 4px;
}

.titulo-navbar::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.titulo-navbar:hover::after,
.titulo-navbar.active::after {
  width: 100%;
}

.titulo-navbar:hover,
.titulo-navbar.active {
  color: var(--secondary-color) !important;
}

footer {
  background-color: var(--bg-color-dark);
  color: #b0bec5;
  padding: var(--spacing-lg) 0;
  margin-top: auto;
  font-size: 0.95rem;
}

footer .nav-link {
  color: #b0bec5 !important;
  transition: color 0.2s;
  padding: 0.5rem 1rem;
}

footer .nav-link:hover {
  color: var(--text-color-light) !important;
}

footer img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
  max-width: 180px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: var(--line-height-heading);
  margin-bottom: 1.5rem;
}

.titulo {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  position: relative;
}

h1.titulo {
  font-size: var(--font-size-h1);
}
h2.titulo {
  font-size: var(--font-size-h2);
}
h3.titulo {
  font-size: var(--font-size-h3);
}

.paragrafo {
  font-size: var(--font-size-p);
  color: var(--text-color-main);
  margin-bottom: var(--spacing-md);
  text-align: justify;
}

.paragrafo-centralizado {
  font-size: var(--font-size-p);
  text-align: center;
  margin-top: var(--spacing-md);
  color: var(--text-color-main);
}

.hyperlink {
  color: var(--secondary-color);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.hyperlink:hover {
  border-bottom-color: var(--secondary-color);
}

.standard-image {
  display: block;
  margin: var(--spacing-md) auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.standard-pdf {
  display: block;
  margin: var(--spacing-md) auto;
  width: 100%;
  max-width: 900px;
  height: 600px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
}

.event-card {
  background: var(--bg-color-card);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
  display: block;
  text-decoration: none !important;
}

.event-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  background-color: white;
}

.event-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.event-details {
  color: var(--text-color-secondary);
  font-size: 1rem;
  display: block;
}

.card-custom {
  background-color: var(--bg-color-card);
  border: none;
  width: 260px;
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-body-custom {
  padding: 1.5rem;
  text-align: center;
}

.cartao-titulo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.cartao-subtitulo {
  font-size: 0.95rem;
  color: var(--text-color-secondary);
  line-height: 1.4;
}

.contact-card {
  background-color: var(--bg-color-card);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  color: var(--text-color-main);
  text-align: center;
  height: 100%;
}

.contact-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.tutorials-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.tutorials-card {
  background-color: var(--bg-color-card);
  border-radius: var(--border-radius-md);
  text-align: center;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tutorials-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.05);
}

.tutorials-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--primary-color);
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorials-card p {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.tutorials-card a {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  background-color: #e3f2fd;
  color: var(--secondary-color);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.tutorials-card a:hover {
  background-color: var(--secondary-color);
  color: white;
}

.workshop-body {
  background-color: var(--bg-color-body);
}

.workshop-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.workshop-header h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.workshop-header p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 1rem;
  opacity: 0.95;
  line-height: 1.6;
}

.workshop-header img {
  max-height: 80px;
  margin-bottom: 2rem;
  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.workshop-main {
  padding: 0 var(--spacing-md);
  max-width: 1100px;
  margin: auto;
}

.workshop-section {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.workshop-section h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 1rem;
}

.workshop-section ul {
  list-style-type: none;
  padding: 0;
}

.workshop-section li {
  padding: 1rem 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  flex-wrap: wrap;
}

.workshop-section li:last-child {
  border-bottom: none;
}

.agenda-time {
  font-weight: 700;
  color: var(--secondary-color);
  display: inline-block;
  min-width: 100px;
  margin-right: 1rem;
}

.agenda-desc {
  flex: 1;
}

.workshop-buttons {
  text-align: center;
  margin: 2rem 0 4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.workshop-buttons a {
  display: inline-flex;
  align-items: center;
  background-color: white;
  color: var(--secondary-color);
  padding: 14px 28px;
  margin: 0;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.workshop-buttons a:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.workshop-speaker:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.1);
}

.workshop-speaker img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid #f8f9fa;
  box-shadow: var(--shadow-sm);
}

.workshop-speaker h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin: 0.5rem 0;
}

.workshop-speaker p {
  font-size: 0.95rem;
  color: var(--text-color-secondary);
  margin: 4px 0;
}

.see-profile {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 20px;
  padding: 20px;
  border-radius: var(--border-radius-lg);
  background-color: #f0fbff;
  background-image: linear-gradient(
      rgba(26, 83, 145, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(26, 83, 145, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item.wide {
  grid-column: span 2;
}
.gallery-item.tall {
  grid-row: span 2;
}
.gallery-item.big {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 768px) {
  .gallery-item.wide,
  .gallery-item.big {
    grid-column: span 1;
  }
  .gallery-item.tall,
  .gallery-item.big {
    grid-row: span 1;
  }
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.back-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

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

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.footer-nav a {
  color: #b0bec5;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: white;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.footer-nav a {
  color: #b0bec5;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: white;
}

.gallery-item {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.slice-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: -1;
  transition: transform 0.1s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  background: #000;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-images img {
  width: 100%;
  flex-shrink: 0;
  object-fit: contain;
  max-height: 500px;
  background: #000;
}

.carousel-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 10px;
  z-index: 10;
}

.workshop-speaker img {
  max-width: 140px;
  max-height: 140px;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
}

/* =========================================
   Gallery & Lightbox
   ========================================= */
.gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 40px;
  padding: 40px;
  border-radius: 15px;
  background-color: #f0fbff;
  background-image: linear-gradient(
      rgba(26, 83, 145, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(26, 83, 145, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  overflow: visible;
  perspective: 1000px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateZ(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 2;
}

.slice-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0.3;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 4s ease-in-out, opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover .slice-layer {
  opacity: 0.7;
  transition: transform 0.1s ease-out, opacity 0.4s ease;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.big {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: 200px;
  }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    grid-auto-rows: 160px;
  }

  .gallery-item.wide,
  .gallery-item.big {
    grid-column: span 1;
  }

  .gallery-item.tall,
  .gallery-item.big {
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    grid-auto-rows: 110px;
  }
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.back-link:hover {
  background-color: #0d3d6b;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  transform: scale(0.8) translateZ(-100px) rotateX(10deg);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.5s ease;
}

.lightbox.active img {
  transform: scale(1) translateZ(0) rotateX(0);
  opacity: 1;
}

.lightbox:target {
  display: flex;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  text-decoration: none;
  cursor: pointer;
}

.workshop-speakers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
  align-items: stretch;
}

.workshop-speaker {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.carousel-buttons button {
  pointer-events: auto;
  background-color: rgba(0, 51, 102, 0.6);
  color: white;
  border: 2px solid white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-buttons button:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pagination {
  margin-top: 2rem;
}

.page-item .page-link {
  color: var(--primary-color);
  border: 1px solid #dee2e6;
  margin: 0 2px;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

.page-item .page-link:hover {
  background-color: #e9ecef;
  color: var(--secondary-color);
  text-decoration: none;
}

.page-item.active .page-link:hover {
  background-color: var(--primary-color);
  color: white;
}

div.workshop-speaker {
  cursor: default;
}

div.workshop-speaker:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); 
}

.carousel-buttons button {
  font-size: 1.5rem; 
  line-height: 1;
  padding: 0;
}
