/*
Theme Name: ICB
Description: Tema personalizado para Instituto Corpo Bueno
Version: 2.0
Author: Instituto Corpo Bueno
*/

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700;800&display=swap');

/* Root variables */
:root {
  --primary-color: #831536;
  --primary-hover: #a01c42;
  --primary-light: #fdf2f4;
  --primary-50: #fdf2f4;
  --primary-100: #fce7ea;
  --primary-200: #f9d0d9;
  --primary-300: #f4a8bc;
  --primary-400: #ec7496;
  --primary-500: #e04773;
  --primary-600: #cd2a56;
  --primary-700: #b01e47;
  --primary-800: #931c42;
  --primary-900: #831536;
  --accent-color: #f59e0b;
}

/* Force Quicksand font on everything */
* {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body {
  font-family: 'Quicksand', sans-serif !important;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 600;
}

/* Custom Tailwind classes using CSS variables */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-primary-50 {
  background-color: var(--primary-50) !important;
}

.bg-primary-100 {
  background-color: var(--primary-100) !important;
}

.bg-primary-200 {
  background-color: var(--primary-200) !important;
}

.bg-primary-300 {
  background-color: var(--primary-300) !important;
}

.bg-primary-400 {
  background-color: var(--primary-400) !important;
}

.bg-primary-500 {
  background-color: var(--primary-500) !important;
}

.bg-primary-600 {
  background-color: var(--primary-600) !important;
}

.bg-primary-700 {
  background-color: var(--primary-700) !important;
}

.bg-primary-800 {
  background-color: var(--primary-800) !important;
}

.bg-primary-900 {
  background-color: var(--primary-900) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-primary-50 {
  color: var(--primary-50) !important;
}

.text-primary-100 {
  color: var(--primary-100) !important;
}

.text-primary-200 {
  color: var(--primary-200) !important;
}

.text-primary-300 {
  color: var(--primary-300) !important;
}

.text-primary-400 {
  color: var(--primary-400) !important;
}

.text-primary-500 {
  color: var(--primary-500) !important;
}

.text-primary-600 {
  color: var(--primary-600) !important;
}

.text-primary-700 {
  color: var(--primary-700) !important;
}

.text-primary-800 {
  color: var(--primary-800) !important;
}

.text-primary-900 {
  color: var(--primary-900) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.border-primary-200 {
  border-color: var(--primary-200) !important;
}

.border-primary-700 {
  border-color: var(--primary-700) !important;
}

.hover\:bg-primary:hover {
  background-color: var(--primary-color) !important;
}

.hover\:bg-primary-hover:hover {
  background-color: var(--primary-hover) !important;
}

.hover\:bg-primary-50:hover {
  background-color: var(--primary-50) !important;
}

.hover\:bg-primary-800:hover {
  background-color: var(--primary-800) !important;
}

.hover\:text-primary:hover {
  color: var(--primary-color) !important;
}

.hover\:text-primary-200:hover {
  color: var(--primary-200) !important;
}

.focus\:ring-primary:focus {
  --tw-ring-color: var(--primary-color) !important;
}

/* Gradients */
.from-primary {
  --tw-gradient-from: var(--primary-color) !important;
  --tw-gradient-to: rgba(131, 21, 54, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.from-primary-900 {
  --tw-gradient-from: var(--primary-900) !important;
  --tw-gradient-to: rgba(131, 21, 54, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.from-primary-500 {
  --tw-gradient-from: var(--primary-500) !important;
  --tw-gradient-to: rgba(224, 71, 115, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-primary {
  --tw-gradient-to: var(--primary-color) !important;
}

.to-primary-600 {
  --tw-gradient-to: var(--primary-600) !important;
}

.to-primary-700 {
  --tw-gradient-to: var(--primary-700) !important;
}

.to-primary-800 {
  --tw-gradient-to: var(--primary-800) !important;
}

.to-primary-hover {
  --tw-gradient-to: var(--primary-hover) !important;
}

.via-primary {
  --tw-gradient-to: rgba(131, 21, 54, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--primary-color), var(--tw-gradient-to) !important;
}

/* Accent colors */
.bg-accent {
  background-color: var(--accent-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.from-accent {
  --tw-gradient-from: var(--accent-color) !important;
  --tw-gradient-to: rgba(245, 158, 11, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

/* Custom shadows */
.shadow-soft {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.shadow-medium {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.shadow-strong {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* Ensure icons display properly */
ion-icon {
  display: inline-block;
  vertical-align: middle;
}

/* SVG icons - garantir display correto */
svg {
  display: block;
}

/* Font weight utilities for Quicksand */
.font-light {
  font-weight: 300 !important;
}

.font-normal {
  font-weight: 400 !important;
}

.font-medium {
  font-weight: 500 !important;
}

.font-semibold {
  font-weight: 600 !important;
}

.font-bold {
  font-weight: 700 !important;
}

.font-extrabold {
  font-weight: 800 !important;
}

/* ============================================
   FORMATAÇÃO DE CONTEÚDO DE POSTS/CURSOS
   ============================================ */

/* Container principal do conteúdo */
.course-content {
  line-height: 1.8;
  color: #374151;
}

/* Títulos H2 - Seções principais */
.course-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #831536;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #831536;
}

.course-content h2:first-child {
  margin-top: 0;
}

/* Títulos H3 - Subseções */
.course-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
}

/* Parágrafos */
.course-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: #4b5563;
}

.course-content p:last-child {
  margin-bottom: 0;
}

/* Listas não ordenadas */
.course-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

/* Listas ordenadas */
.course-content ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

/* Itens de lista */
.course-content li {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 0.625rem;
  color: #4b5563;
  padding-left: 0.5rem;
}

.course-content li:last-child {
  margin-bottom: 0;
}

/* Links */
.course-content a {
  color: #831536;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.course-content a:hover {
  color: #a01c42;
}

/* Negrito */
.course-content strong,
.course-content b {
  font-weight: 700;
  color: #1f2937;
}

/* Itálico */
.course-content em,
.course-content i {
  font-style: italic;
}

/* Citações */
.course-content blockquote {
  border-left: 4px solid #831536;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
}

/* Código inline */
.course-content code {
  background-color: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  font-family: 'Courier New', monospace !important;
}

/* Blocos de código */
.course-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.course-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* Tabelas */
.course-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.course-content th,
.course-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.course-content th {
  background-color: #831536;
  color: white;
  font-weight: 600;
}

.course-content tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Imagens */
.course-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* Divisores horizontais */
.course-content hr {
  border: 0;
  border-top: 2px solid #e5e7eb;
  margin: 2rem 0;
}

/* Ajustes de espaçamento entre elementos adjacentes */
.course-content h2 + p,
.course-content h3 + p {
  margin-top: 0.5rem;
}

.course-content ul + p,
.course-content ol + p,
.course-content p + ul,
.course-content p + ol {
  margin-top: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .course-content h2 {
    font-size: 1.5rem;
  }

  .course-content h3 {
    font-size: 1.25rem;
  }

  .course-content p,
  .course-content li {
    font-size: 1rem;
  }
}
/* ============================================
   CARDS DE CURSOS - Design Minimalista
   Inspirado no design do Jony Ive
   ============================================ */

.course-card {
  position: relative;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(131, 21, 54, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.course-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.course-card:hover img {
  transform: scale(1.05);
}

.course-card .p-6 {
  padding: 2rem;
  background: #ffffff;
  position: relative;
}

.course-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #831536;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.course-card:hover h3 {
  color: #a01c42;
}

.course-card h3 a {
  color: inherit;
  text-decoration: none;
  display: block;
  pointer-events: none;
}

.course-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-card ul li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4b5563;
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.course-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: #831536;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.course-card:hover ul li {
  color: #1f2937;
}

.course-card:hover ul li::before {
  width: 6px;
  height: 6px;
  background: #a01c42;
}

/* Design refinado para diferentes tamanhos */
@media (min-width: 768px) {
  .course-card {
    border-radius: 2px;
  }
}

/* Cards de professores e features usando o mesmo padrão */
.teacher-card,
.feature-card {
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.teacher-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(131, 21, 54, 0.1), 0 6px 12px rgba(0, 0, 0, 0.06);
}

/* Ajustes para o grid de cards */
.grid.gap-8 {
  gap: 2rem;
}

@media (max-width: 768px) {
  .course-card img {
    height: 240px;
  }

  .course-card .p-6 {
    padding: 1.5rem;
  }

  .course-card h3 {
    font-size: 1.25rem;
  }

  .course-card ul li {
    font-size: 0.875rem;
  }
}

/* ============================================
   SEÇÃO DE PROFESSORES - Design Moderno
   ============================================ */

.teacher-card {
  min-height: 480px;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.teacher-card img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.teacher-card:hover img {
  transform: scale(1.08);
}

.teacher-card .space-y-3 > p {
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #831536;
  transition: all 0.2s ease;
}

.teacher-card .space-y-3 > p:hover {
  background: #f3f4f6;
  border-left-width: 4px;
  padding-left: 0.875rem;
}

/* Swiper customization para professores */
.teachersSwiper {
  padding: 0 60px;
  overflow: hidden;
}

.teachersSwiper .swiper-wrapper {
  padding-bottom: 12px;
}

.teachersSwiper .swiper-slide {
  height: auto;
}

.teachersSwiper .swiper-button-next,
.teachersSwiper .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(131, 21, 54, 0.15);
  transition: all 0.3s ease;
  z-index: 30;
}

.teachersSwiper .swiper-button-next {
  right: 12px;
}

.teachersSwiper .swiper-button-prev {
  left: 12px;
}

.teachersSwiper .swiper-button-next::after,
.teachersSwiper .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
  color: #831536;
  transition: color 0.3s ease;
}

.teachersSwiper .swiper-button-next:hover,
.teachersSwiper .swiper-button-prev:hover {
  background: #831536;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(131, 21, 54, 0.3);
}

.teachersSwiper .swiper-button-next:hover::after,
.teachersSwiper .swiper-button-prev:hover::after {
  color: white;
}

/* Responsive - Mobile com setas coladas nas bordas */
@media (max-width: 768px) {
  .teachersSwiper {
    padding: 0 44px;
  }

  .teachersSwiper .swiper-button-next,
  .teachersSwiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(131, 21, 54, 0.2);
  }

  /* Seta direita - flat no lado direito, redondo no esquerdo */
  .teachersSwiper .swiper-button-next {
    right: 0;
    border-radius: 12px 0 0 12px;
  }

  /* Seta esquerda - flat no lado esquerdo, redondo no direito */
  .teachersSwiper .swiper-button-prev {
    left: 0;
    border-radius: 0 12px 12px 0;
  }

  .teachersSwiper .swiper-button-next::after,
  .teachersSwiper .swiper-button-prev::after {
    font-size: 16px;
  }

  .teachersSwiper .swiper-button-next:hover,
  .teachersSwiper .swiper-button-prev:hover {
    transform: scale(1.02);
  }
}

.teachersSwiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #d1d5db;
  opacity: 1;
  transition: all 0.3s ease;
}

.teachersSwiper .swiper-pagination-bullet-active {
  background: #831536;
  width: 32px;
  border-radius: 6px;
}

/* Responsividade */
@media (max-width: 768px) {
  .teacher-card {
    min-height: auto;
  }

  .teacher-card .space-y-3 > p {
    padding: 0.625rem;
    font-size: 0.8125rem;
  }
}

/* ============================================
   GALERIA DE INFRAESTRUTURA - Design Elegante
   ============================================ */

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallerySwiper {
  position: relative;
  border-radius: 16px;
}

.gallerySwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Altura responsiva das imagens - Desktop mais quadrado */
.gallery-image {
  width: 100%;
  height: 750px;
  object-fit: cover;
  display: block;
}

/* Navegação customizada */
.gallerySwiper .swiper-button-next,
.gallerySwiper .swiper-button-prev {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.gallerySwiper .swiper-button-next {
  right: 16px;
}

.gallerySwiper .swiper-button-prev {
  left: 16px;
}

.gallerySwiper .swiper-button-next::after,
.gallerySwiper .swiper-button-prev::after {
  font-size: 22px;
  color: #831536;
  font-weight: bold;
  transition: color 0.3s ease;
}

.gallerySwiper .swiper-button-next:hover,
.gallerySwiper .swiper-button-prev:hover {
  background: #831536;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(131, 21, 54, 0.4);
}

.gallerySwiper .swiper-button-next:hover::after,
.gallerySwiper .swiper-button-prev:hover::after {
  color: white;
}

/* Paginação moderna */
.gallerySwiper .swiper-pagination {
  bottom: 24px !important;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  z-index: 15;
}

.gallerySwiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}

.gallerySwiper .swiper-pagination-bullet-active {
  background: #831536;
  width: 40px;
  border-radius: 5px;
  border-color: #831536;
}

/* Efeito de zoom nas imagens */
.gallerySwiper .swiper-slide img {
  cursor: grab;
}

.gallerySwiper .swiper-slide img:active {
  cursor: grabbing;
}

/* Ajustes responsivos - Tablet */
@media (max-width: 1024px) {
  .gallery-image {
    height: 550px;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    padding: 0;
  }

  /* Altura 3:4 aspect ratio para mobile - vertical */
  .gallery-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 500px;
  }

  .gallery-slide-wrapper {
    height: auto;
  }

  .gallerySwiper {
    border-radius: 0;
  }

  .gallery-slide-wrapper {
    border-radius: 0;
  }

  /* Setas flat coladas nas bordas - igual professores */
  .gallerySwiper .swiper-button-next,
  .gallerySwiper .swiper-button-prev {
    width: 48px;
    height: 48px;
    box-shadow: 0 2px 12px rgba(131, 21, 54, 0.25);
  }

  /* Seta direita - flat no lado direito, redondo no esquerdo */
  .gallerySwiper .swiper-button-next {
    right: 0;
    border-radius: 12px 0 0 12px;
  }

  /* Seta esquerda - flat no lado esquerdo, redondo no direito */
  .gallerySwiper .swiper-button-prev {
    left: 0;
    border-radius: 0 12px 12px 0;
  }

  .gallerySwiper .swiper-button-next::after,
  .gallerySwiper .swiper-button-prev::after {
    font-size: 18px;
  }

  /* Paginação com menos bolinhas visíveis */
  .gallerySwiper .swiper-pagination {
    bottom: 20px !important;
  }

  .gallerySwiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 3px !important;
  }

  .gallerySwiper .swiper-pagination-bullet-active {
    width: 24px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  /* Mobile pequeno - mantém 3:4 vertical */
  .gallery-image {
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 420px;
  }

  .gallerySwiper .swiper-button-next,
  .gallerySwiper .swiper-button-prev {
    width: 44px;
    height: 44px;
  }

  .gallerySwiper .swiper-button-next::after,
  .gallerySwiper .swiper-button-prev::after {
    font-size: 16px;
  }

  /* Bolinhas ainda menores em telas pequenas */
  .gallerySwiper .swiper-pagination-bullet {
    width: 5px;
    height: 5px;
    margin: 0 2px !important;
  }

  .gallerySwiper .swiper-pagination-bullet-active {
    width: 20px;
    height: 5px;
  }
}
