/*
  Site preliminar do Curso de Inteligência Artificial e Ciência de Dados da Unicamp.
  Inspiração estrutural: Deep Policy Lab.
  Inspiração editorial/propaganda: Real World Data Science.
  Procure por TODO-PLACEHOLDER nos arquivos .qmd para substituir imagens gradualmente.
*/

:root {
  --iacd-navy: #14345a;
  --iacd-blue: #265f8f;
  --iacd-sky: #d7e1ea;
  --iacd-sky-2: #f2f6f9;
  --iacd-teal: #3f7481;
  --iacd-green: #6f8190;
  --iacd-yellow: #dfe7ee;
  --iacd-ink: #10263d;
  --iacd-muted: #5f7286;
  --iacd-paper: #f7f7f5;
  --iacd-white: #ffffff;
  --iacd-line: rgba(20, 52, 90, 0.16);
  --iacd-radius: 22px;
  --iacd-shadow: 0 18px 45px rgba(16, 38, 61, 0.10);
}

body {
  color: var(--iacd-ink);
  background: var(--iacd-paper);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.navbar {
  border-bottom: 3px solid var(--iacd-navy);
  background: rgba(246, 244, 239, 0.96) !important;
  backdrop-filter: blur(12px);
}

.navbar-title,
.navbar-nav .nav-link {
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--iacd-navy) !important;
  text-transform: uppercase;
  font-size: .88rem;
}

.navbar-logo { max-height: 34px; }

.quarto-title-banner { background: linear-gradient(135deg, var(--iacd-navy), var(--iacd-teal)); }

h1, h2, h3 {
  color: var(--iacd-navy);
  letter-spacing: -0.035em;
}

h1 { font-weight: 950; }
h2 { font-weight: 900; margin-top: 2.5rem; }
a { color: var(--iacd-blue); }

.external-link::after {
  content: "↗";
  font-size: .75em;
  margin-left: .15rem;
}

/* Página inicial */
.home-wrap {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 1.2rem 3rem;
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);

  /* A altura mínima preserva o visual; height:auto impede cortes. */
  height: auto;
  min-height: clamp(420px, 29vw, 500px);

  align-items: stretch;
  box-sizing: border-box;
  border-bottom: 4px solid var(--iacd-navy);
  background: var(--iacd-white);
  box-shadow: var(--iacd-shadow);

  /* Mantém cantos e imagem contidos, sem cortar o conteúdo. */
  overflow: hidden;
}

.hero-copy {
  padding: clamp(1.45rem, 2.75vw, 3.15rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  background:
    linear-gradient(135deg, #ffffff, #f3f6f8);
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-block;
  color: var(--iacd-teal);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 950;
  margin-bottom: .75rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 5.2vw, 5.65rem);
  line-height: .92;
  max-width: 15ch;
}

.hero-copy p {
  font-size: clamp(.96rem, 1.18vw, 1.08rem);
  line-height: 1.5;
  color: var(--iacd-muted);
  max-width: 720px;
  margin: .85rem 0 0;
}

.hero-copy p:has(> .hero-eyebrow),
.section-head p:has(> .section-eyebrow),
.feature-copy p:has(> .card-kicker),
.news-card p:has(> .card-kicker),
.person-card p:has(> .card-kicker),
.callout-band p:has(> .section-eyebrow) {
  margin: 0;
  line-height: 1;
}

.stat-row { margin-top: 1.05rem; }
.hero-actions { margin-top: 1.15rem; }
.hero-brand { margin-top: 1.35rem; }

/* Estes blocos não podem ser comprimidos nem desaparecer no fim do hero. */
.stat-row,
.hero-actions,
.hero-brand {
  flex-shrink: 0;
}

.stat-row p,
.hero-actions p,
.hero-brand p {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.stat-row p { gap: .8rem 1rem; }
.hero-actions p { gap: .72rem .85rem; }
.hero-brand p {
  gap: 1.05rem;
  flex-wrap: nowrap;
  align-items: center;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--iacd-line);
  background: var(--iacd-sky-2);
  border-radius: 999px;
  padding: .43rem .78rem;
  font-weight: 900;
  color: var(--iacd-navy);
  line-height: 1;
  white-space: nowrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .48rem .92rem;
  border-radius: 999px;
  border: 2px solid var(--iacd-navy);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.05;
}

.button-link.primary { background: var(--iacd-navy); color: var(--iacd-white); }
.button-link.secondary { color: var(--iacd-navy); background: transparent; }

.brand-logo {
  height: 38px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
}

.hero-brand img:nth-child(1) { max-width: 78px; }
.hero-brand img:nth-child(2) { max-width: 150px; }
.hero-brand img:nth-child(3) { max-width: 130px; }

.hero-media,
.feature-media {
  background: var(--iacd-navy);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* A coluna visual acompanha a altura real da coluna de texto. */
.hero-strip .hero-media {
  height: auto;
  align-self: stretch;
}

.hero-media p,
.feature-media p,
.matrix-preview p,
.inline-figure p {
  margin: 0;
  width: 100%;
  height: 100%;
}

.hero-media img,
.hero-img,
.feature-media img,
.feature-img {
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

.formation-links {
  margin: 1.1rem 0 0;
}

.formation-links p {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .72rem .85rem;
}

.small-link {
  display: inline-block;
  margin-top: .3rem;
  font-weight: 900;
  text-decoration: none;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  border-bottom: 3px solid var(--iacd-navy);
  padding-bottom: .85rem;
  margin: 3.1rem 0 1.25rem;
}

.section-head p { margin: 0; }
.section-head h2 {
  margin: .15rem 0 0;
  font-size: clamp(2rem, 3.7vw, 3.65rem);
  line-height: .95;
}

.section-head .button-link { justify-self: end; }

.feature-news {
  display: grid;
  grid-template-columns: .36fr .64fr;
  height: clamp(415px, 30vw, 410px);
  margin-bottom: 1.8rem;
  background: #0a0d16;
  color: white;
  box-shadow: var(--iacd-shadow);
  overflow: hidden;
}

.feature-copy {
  padding: clamp(1.55rem, 3vw, 3rem);
  background: #e5ebf1;
  color: #07111f;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy h3 {
  color: #07111f;
  font-size: clamp(1.85rem, 3vw, 3.1rem);
  line-height: .96;
  margin: .1rem 0 .9rem;
}

.feature-copy p {
  font-size: clamp(.98rem, 1.2vw, 1.12rem);
  line-height: 1.5;
}

.card-kicker {
  display: inline-block;
  color: var(--iacd-teal);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .45rem;
}

.news-grid,
.trilhas-grid,
.cards-grid,
.people-grid,
.ingresso-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.news-grid { margin-top: 1.6rem; }

.news-carousel {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: .15rem;
  padding: .15rem .15rem 1rem;
  margin-top: 1.6rem;
  margin-bottom: .4rem;
}

.news-carousel .news-card {
  flex: 0 0 calc((100% - 2.7rem) / 3);
  scroll-snap-align: start;
}

.news-carousel::-webkit-scrollbar {
  height: 10px;
}

.news-carousel::-webkit-scrollbar-track {
  background: rgba(20, 52, 90, .08);
  border-radius: 999px;
}

.news-carousel::-webkit-scrollbar-thumb {
  background: rgba(20, 52, 90, .42);
  border-radius: 999px;
}

.news-card,
.trilha-card,
.info-card,
.person-card,
.ingresso-card,
.course-card {
  background: var(--iacd-white);
  border: 1px solid var(--iacd-line);
  border-radius: var(--iacd-radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(16, 38, 61, .08);
}

.news-card,
.trilha-card,
.info-card,
.person-card,
.ingresso-card,
.course-card { padding: 1.15rem; }

.news-card .card-img,
.trilha-card .card-img,
.news-card > p:first-child > img,
.trilha-card > p:first-child > img,
.news-card .media img,
.trilha-card .media img {
  width: calc(100% + 2.3rem);
  height: 170px !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
  margin: -1.15rem -1.15rem 1rem;
  background: var(--iacd-sky);
}

.news-card h3,
.trilha-card h3,
.info-card h3,
.person-card h3,
.ingresso-card h3,
.course-card h3 {
  margin: 0 0 .6rem;
  font-size: 1.24rem;
  line-height: 1.15;
  color: var(--iacd-navy);
}

.news-card p,
.trilha-card p,
.info-card p,
.person-card p,
.ingresso-card p,
.course-card p {
  color: var(--iacd-muted);
  line-height: 1.48;
}

.matrix-preview {
  background: white;
  border-radius: var(--iacd-radius);
  padding: 1.3rem;
  box-shadow: var(--iacd-shadow);
  border: 1px solid var(--iacd-line);
}

.matrix-preview img {
  width: 100%;
  height: auto;
  display: block;
}


.people-grid-home,
.people-page-grid {
  align-items: stretch;
}

.person-card {
  position: relative;
  min-height: 100%;
}

.person-card > p:first-child {
  margin: 0 0 .8rem;
}

.person-photo,
.person-card > p:first-child > img {
  width: 92px;
  height: 92px !important;
  max-height: 92px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--iacd-white);
  box-shadow: 0 0 0 2px rgba(20, 52, 90, .18), 0 10px 24px rgba(16, 38, 61, .13);
  background: var(--iacd-sky-2);
}

.people-page-grid .person-photo,
.people-page-grid .person-card > p:first-child > img {
  width: 108px;
  height: 108px !important;
  max-height: 108px !important;
}

.callout-band {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--iacd-navy), #344d68);
  color: white;
  padding: clamp(1.8rem, 3.5vw, 3.4rem);
  border-radius: var(--iacd-radius);
}

.callout-band h2,
.callout-band h3 { color: white; margin-top: .2rem; }
.callout-band p { color: rgba(255,255,255,.84); font-size: 1.08rem; }
.callout-band .button-link { margin-top: .6rem; }


.person-card .card-kicker {
  margin-top: .1rem;
}

.person-card strong {
  color: var(--iacd-navy);
}

.person-links {
  margin-top: .85rem;
}

.person-links p {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  flex-wrap: wrap;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(20, 52, 90, .22);
  background: var(--iacd-white);
  text-decoration: none;
}

.person-icon,
.icon-link img {
  width: 24px;
  height: 24px !important;
  max-height: 24px !important;
  display: block;
}

.icon-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 38, 61, .12);
}

.disc-meta {
  margin: 1.2rem 0 2rem;
  padding: 1rem 1.15rem;
  background: var(--iacd-sky-2);
  border: 1px solid var(--iacd-line);
  border-radius: var(--iacd-radius);
}

.disc-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.5rem;
}

.disc-meta li {
  margin: 0;
  color: var(--iacd-muted);
}

.disc-meta strong {
  color: var(--iacd-navy);
}

/* Elementos de páginas internas */
.badge-list ul,
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.badge-list li {
  background: var(--iacd-sky-2);
  color: var(--iacd-navy);
  border: 1px solid var(--iacd-line);
  padding: .42rem .65rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: .9rem;
  margin: 0;
}

.table-wrap { overflow-x: auto; }
.table-wrap table,
table { width: 100%; border-collapse: collapse; }

th { background: var(--iacd-navy); color: white; }
th, td { border: 1px solid var(--iacd-line); padding: .72rem; vertical-align: top; }
td:first-child, th:first-child { font-weight: 900; }

.note-box {
  padding: 1rem 1.2rem;
  border-left: 6px solid var(--iacd-yellow);
  background: #fff8dd;
  color: #4f4217;
  border-radius: 0 var(--iacd-radius) var(--iacd-radius) 0;
}

.inline-figure {
  margin: 1.4rem 0;
  border-radius: var(--iacd-radius);
  overflow: hidden;
  border: 1px solid var(--iacd-line);
  box-shadow: 0 12px 30px rgba(16, 38, 61, .08);
}

.inline-figure img { width: 100%; height: auto; display: block; }

/* Compatibilidade com blocos criados na versão anterior */
.section-block { margin-top: 3.5rem; }
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 3px solid var(--iacd-navy);
  padding-bottom: .8rem;
  margin-bottom: 1.2rem;
}
.section-header h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: .95; }
.media p, .body p { margin: 0; }
.news-card .body, .trilha-card .body { padding: 0; }


/* Imagens em Markdown sem legenda visível quando usadas como elementos visuais. */
.hero-media figure,
.feature-media figure,
.news-card figure,
.trilha-card figure,
.person-card figure,
.matrix-preview figure,
.inline-figure figure {
  margin: 0;
}

.hero-media figure,
.feature-media figure {
  width: 100%;
  height: 100%;
}

.news-card figure,
.trilha-card figure,
.person-card figure,
.matrix-preview figure,
.inline-figure figure {
  width: 100%;
}

.hero-media figcaption,
.feature-media figcaption,
.news-card figcaption,
.trilha-card figcaption,
.person-card figcaption,
.matrix-preview figcaption,
.inline-figure figcaption {
  display: none;
}

@media (max-width: 980px) {
  .hero-strip,
  .feature-news { grid-template-columns: 1fr; height: auto; }
  .hero-media { min-height: 260px; }
  .feature-news { height: auto; }
  .feature-media { min-height: 260px; }
  .news-grid,
  .trilhas-grid,
  .cards-grid,
  .people-grid,
  .ingresso-grid { grid-template-columns: 1fr 1fr; }
  .news-carousel .news-card { flex-basis: calc((100% - 1.35rem) / 2); }
  .hero-brand p { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .home-wrap { padding-left: .8rem; padding-right: .8rem; }
  .hero-strip { min-height: 0; }
  .hero-copy h1 { font-size: 3rem; }
  .brand-logo { height: 32px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .button-link { justify-self: start; }
  .news-grid,
  .trilhas-grid,
  .cards-grid,
  .people-grid,
  .ingresso-grid { grid-template-columns: 1fr; }
  .news-carousel .news-card { flex-basis: 86%; }
}


/* Legenda da matriz curricular */
.matrix-legend ul,
.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem .85rem;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: .2rem 0 1rem;
}

.matrix-legend li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  padding: .38rem .9rem;
  border: 1px solid rgba(16, 38, 61, .2);
  color: var(--iacd-navy);
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(16, 38, 61, .08);
  white-space: nowrap;
}

.legend-ai { background: #c9dda3; }
.legend-computacao { background: #cbd8e8; }
.legend-matematica { background: #d9b2d8; }
.legend-transversais { background: #eeeeec; }
.legend-estatistica { background: #f0c84d; }

.matrix-preview .matrix-legend:last-child { margin-top: 1rem; margin-bottom: 0; }

/* Páginas individuais de disciplinas */
.quarto-title-block + p .small-link,
.small-link {
  color: var(--iacd-navy);
}

main table + h2 {
  margin-top: 2.2rem;
}

main h2 + h3 {
  margin-top: 1.1rem;
}

main h3 {
  color: var(--iacd-teal);
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

main h3 + ul {
  margin-top: .45rem;
}

main li {
  margin-bottom: .28rem;
}



/* =========================================================
   Pessoas envolvidas: cards, fotos e ícones
   ========================================================= */

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.person-card {
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid #d9e2ec;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 35, 55, 0.06);
  display: flex;
  flex-direction: column;
}

.person-card > p:first-child {
  margin-top: 0;
  margin-bottom: 0.9rem;
  text-align: center;
}

/* Foto circular, inclusive quando for GIF/JPG/PNG */
.person-card img.person-photo,
.person-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto 0.9rem;
  border: 4px solid #f5f8fb;
  box-shadow:
    0 0 0 1px #cfd9e5,
    0 8px 18px rgba(15, 35, 55, 0.12);
  background: #f5f8fb;
}

.person-card .card-kicker {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2c8790;
}

.person-card h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #12365f;
}

.person-card p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #5f7288;
}

.person-card strong {
  color: #12365f;
}

/* Área dos ícones */
.person-links,
.person-links p {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

/* Cada botão circular */
.person-links .icon-link,
.person-links a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #cbd6e2;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 35, 55, 0.06);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.person-links .icon-link:hover,
.person-links a:hover {
  transform: translateY(-1px);
  border-color: #12365f;
  background: #f5f8fb;
  box-shadow: 0 5px 12px rgba(15, 35, 55, 0.10);
}

/* Tamanho real dos SVGs dos ícones */
.person-links img.person-icon,
.person-icon {
  width: 19px;
  height: 19px;
  margin: 0;
  display: block;
}

/* Remove setas automáticas de link externo do Quarto dentro dos ícones */
.person-links a::after,
.person-links a.external::after,
.person-links a[target="_blank"]::after {
  content: none !important;
  display: none !important;
  background-image: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

/* Evita que imagens dentro dos links ganhem borda/efeitos globais */
.person-links a img {
  border: 0;
  box-shadow: none;
}

/* Responsividade */
@media (max-width: 1100px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .person-card {
    padding: 1.35rem;
  }

  .person-card img.person-photo,
  .person-photo {
    width: 96px;
    height: 96px;
  }
}

/* =========================================================
   Ajuste v10.3 — fotos de pessoas mais circulares e sem cortar cabeça
   ========================================================= */
.people-grid-home .person-photo,
.people-grid-home .person-card img.person-photo {
  width: 142px !important;
  height: 142px !important;
  max-width: 142px !important;
  max-height: 142px !important;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}

.people-page-grid .person-photo,
.people-page-grid .person-card img.person-photo {
  width: 132px !important;
  height: 132px !important;
  max-width: 132px !important;
  max-height: 132px !important;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}

@media (max-width: 700px) {
  .people-grid-home .person-photo,
  .people-grid-home .person-card img.person-photo,
  .people-page-grid .person-photo,
  .people-page-grid .person-card img.person-photo {
    width: 112px !important;
    height: 112px !important;
    max-width: 112px !important;
    max-height: 112px !important;
  }
}

/* =========================================================
   Versão v11: recuperação da identidade visual da v8
   mantendo estrutura dinâmica de pessoas da v10
   ========================================================= */

.navbar-logo {
  max-height: 42px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
}

.navbar {
  box-shadow: 0 8px 22px rgba(16, 38, 61, 0.05);
}

.hero-identity-media {
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 0, 22, .06), transparent 30%),
    linear-gradient(135deg, #ffffff, #f2f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.1rem, 2.4vw, 2rem);
}

.hero-identity-media p {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-identity-media img.hero-course-logo,
.hero-identity-media .hero-course-logo {
  object-fit: contain !important;
  width: 100%;
  height: 100% !important;
  padding: .35rem;
  filter: drop-shadow(0 14px 22px rgba(16, 38, 61, 0.10));
}

.hero-strip {
  border-radius: 0 0 10px 10px;
}

.media-feature {
  height: clamp(340px, 29vw, 410px);
  border-radius: 0;
}

.media-feature .feature-media img,
.media-feature .feature-img {
  object-fit: cover;
  object-position: center;
}

.feature-copy {
  background:
    linear-gradient(135deg, #eef3f6, #ffffff);
}

.news-page-hero {
  background:
    linear-gradient(135deg, var(--iacd-navy), #203f63);
  color: #ffffff;
  border-radius: var(--iacd-radius);
  padding: clamp(1.6rem, 3vw, 3rem);
  margin: 1rem 0 2rem;
  box-shadow: var(--iacd-shadow);
}

.news-page-hero h2 {
  color: #ffffff;
  margin-top: .2rem;
}

.news-page-hero p {
  color: rgba(255,255,255,.86);
  max-width: 880px;
  font-size: 1.05rem;
}

.post-hero-img {
  width: 100%;
  max-height: 430px !important;
  object-fit: cover;
  border-radius: var(--iacd-radius);
  box-shadow: var(--iacd-shadow);
  border: 1px solid var(--iacd-line);
  margin: .6rem 0 1.6rem;
}

.official-art-card {
  background: #ffffff;
  padding: clamp(1rem, 2.4vw, 2rem);
}

.official-art-card img {
  object-fit: contain;
  max-height: 520px;
  background: #ffffff;
}

.horizontal-art img {
  max-height: 180px;
}

.quarto-listing .card,
.quarto-grid-item,
.listing-card {
  border: 1px solid var(--iacd-line) !important;
  border-radius: var(--iacd-radius) !important;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(16, 38, 61, .08);
}

.quarto-listing img,
.quarto-grid-item img,
.listing-image img {
  object-fit: cover;
}

.icon-link.external-link::after,
.person-links a.external-link::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 980px) {
  .media-feature { height: auto; }
  .hero-identity-media { min-height: 250px; }
}

@media (max-width: 640px) {
  .navbar-logo { max-height: 36px; max-width: 160px; }
  .hero-identity-media { min-height: 220px; }
}


/* Destaque principal da seção O curso em movimento */
.home-news-feature {
  height: auto !important;
  min-height: 390px;
  grid-template-columns: minmax(320px, 36%) minmax(0, 64%);
  overflow: hidden;
}

.home-news-feature .feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  overflow: visible;
}

.home-news-feature .feature-copy .button-link {
  align-self: flex-start;
  margin-top: 1.25rem;
  flex-shrink: 0;
}

.home-news-feature .feature-media {
  min-height: 390px;
}

.home-news-feature .feature-media img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f4f6f8;
}

@media (max-width: 900px) {
  .home-news-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-news-feature .feature-media {
    min-height: 300px;
  }
}
