:root {
  --rl-blue: #0755b8;
  --rl-blue-dark: #071b68;
  --rl-purple: #7e168f;
  --rl-gold: #ffb800;
  --rl-ink: #132451;
  --rl-shell: 1180px;
}

[hidden] {
  display: none !important;
}

.rl-content-shell,
.rl-gallery-shell {
  width: min(calc(100% - 40px), var(--rl-shell));
  margin-inline: auto;
}

.rl-section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.rl-section-heading > span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--rl-purple);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rl-section-heading h2 {
  margin: 0;
  color: var(--rl-blue-dark);
  font-family: "Kurdis", "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.rl-section-heading p {
  max-width: 650px;
  margin: 16px auto 0;
  color: #5b6480;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.6;
}

/* Notícias da landing */
.rl-news {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 120px) 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 168, 232, .14), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.rl-news::before,
.rl-news::after {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(255, 184, 0, .12);
  border-radius: 52% 48% 60% 40%;
  content: "";
  pointer-events: none;
  transform: rotate(24deg);
}

.rl-news::before {
  top: -120px;
  left: -110px;
}

.rl-news::after {
  right: -130px;
  bottom: -145px;
}

.rl-news-years {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}

.rl-news-year {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.rl-news-year h3 {
  position: sticky;
  top: 20px;
  margin: 0;
  color: var(--rl-gold);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.rl-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rl-news-card {
  display: flex;
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(7, 85, 184, .13);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(10, 35, 104, .08);
  color: var(--rl-ink);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  flex-direction: column;
}

.rl-news-card:hover,
.rl-news-card:focus-visible {
  border-color: rgba(126, 22, 143, .5);
  box-shadow: 0 20px 44px rgba(10, 35, 104, .15);
  color: var(--rl-ink);
  transform: translateY(-5px);
}

.rl-news-source {
  margin-bottom: 14px;
  color: var(--rl-purple);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rl-news-card strong {
  font-size: clamp(1rem, 1.6vw, 1.17rem);
  line-height: 1.35;
}

.rl-news-link {
  margin-top: auto;
  padding-top: 22px;
  color: var(--rl-blue);
  font-size: .88rem;
  font-weight: 800;
}

/* Chamada para a galeria na landing */
.rl-gallery-callout {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 118px) 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(227, 0, 155, .32), transparent 34%),
    linear-gradient(135deg, #064caa 0%, #152e91 48%, #65158f 100%);
}

.rl-gallery-callout::before {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  border: 45px solid rgba(255, 184, 0, .16);
  border-radius: 42% 58% 52% 48%;
  content: "";
  transform: rotate(-18deg);
}

.rl-section-heading-light > span {
  color: var(--rl-gold);
}

.rl-section-heading-light h2,
.rl-section-heading-light p {
  color: #fff;
}

.rl-gallery-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 12px;
}

.rl-gallery-preview img {
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, .74);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(3, 13, 67, .28);
  object-fit: cover;
}

.rl-gallery-preview img:nth-child(1),
.rl-gallery-preview img:nth-child(5) {
  grid-column: span 4;
  grid-row: span 2;
}

.rl-gallery-preview img:nth-child(2),
.rl-gallery-preview img:nth-child(3),
.rl-gallery-preview img:nth-child(4),
.rl-gallery-preview img:nth-child(6) {
  grid-column: span 2;
}

.rl-gallery-callout-action {
  position: relative;
  z-index: 1;
  margin-top: 38px;
  text-align: center;
}

.rl-gallery-callout-action a,
.rl-gallery-more {
  display: inline-flex;
  min-height: 54px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--rl-gold);
  box-shadow: 0 12px 30px rgba(255, 184, 0, .23);
  color: #101f63;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.rl-gallery-callout-action a:hover,
.rl-gallery-callout-action a:focus-visible,
.rl-gallery-more:hover,
.rl-gallery-more:focus-visible {
  box-shadow: 0 16px 36px rgba(255, 184, 0, .36);
  color: #101f63;
  transform: translateY(-3px);
}

/* Página completa da galeria */
.rl-gallery-page {
  min-height: 70vh;
  padding-top: 50px;
  background: #f5f7fc;
}

.rl-gallery-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 105px);
  background:
    radial-gradient(circle at 80% 15%, rgba(225, 0, 157, .35), transparent 30%),
    linear-gradient(135deg, #0758bc 0%, #122e91 48%, #6f168e 100%);
  color: #fff;
}

.rl-gallery-hero::after {
  position: absolute;
  right: -100px;
  bottom: -145px;
  width: 340px;
  height: 340px;
  border: 52px solid rgba(255, 184, 0, .2);
  border-radius: 49% 51% 42% 58%;
  content: "";
  transform: rotate(24deg);
}

.rl-gallery-back {
  display: inline-flex;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, .9);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  align-items: center;
  gap: 8px;
}

.rl-gallery-back:hover,
.rl-gallery-back:focus-visible {
  color: var(--rl-gold);
}

.rl-gallery-hero p {
  margin: 0 0 10px;
  color: var(--rl-gold);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rl-gallery-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: #fff;
  font-family: "Kurdis", "Poppins", sans-serif;
  font-size: clamp(2.35rem, 6vw, 5rem);
  font-weight: 900;
  line-height: .98;
}

.rl-gallery-hero > .rl-gallery-shell > span {
  display: block;
  max-width: 650px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.rl-gallery-content {
  padding: clamp(52px, 7vw, 92px) 0;
}

.rl-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rl-photo-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  background: #dce3f2;
  box-shadow: 0 7px 20px rgba(12, 36, 99, .1);
  cursor: zoom-in;
}

.rl-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.rl-photo-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background: rgba(9, 29, 101, .74);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  place-items: center;
  transform: translateY(5px);
}

.rl-photo-card:hover img,
.rl-photo-card:focus-visible img {
  filter: saturate(1.06) brightness(.82);
  transform: scale(1.045);
}

.rl-photo-card:hover .rl-photo-zoom,
.rl-photo-card:focus-visible .rl-photo-zoom {
  opacity: 1;
  transform: translateY(0);
}

.rl-gallery-more-wrap {
  margin-top: 42px;
  text-align: center;
}

.rl-gallery-more {
  min-width: 220px;
  cursor: pointer;
}

.rl-gallery-empty {
  padding: 60px;
  border: 2px dashed #ccd6ea;
  border-radius: 18px;
  color: #64708f;
  text-align: center;
}

/* Página dedicada de notícias */
.rl-news-page {
  min-height: 70vh;
  padding-top: 50px;
  background: #f4f7fc;
  color: var(--rl-ink);
}

body.admin-bar .rl-news-page {
  padding-top: 50px;
}

.rl-news-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 125px) 0 clamp(66px, 8vw, 105px);
  background:
    radial-gradient(circle at 82% 15%, rgba(226, 0, 156, .36), transparent 31%),
    linear-gradient(135deg, var(--rl-blue), #163091 52%, var(--rl-purple));
  color: #fff;
}

.rl-news-page-hero::after {
  position: absolute;
  right: -100px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border: 54px solid rgba(255, 184, 0, .18);
  border-radius: 47%;
  content: "";
  transform: rotate(22deg);
}

.rl-news-page-hero p {
  margin: 0 0 10px;
  color: var(--rl-gold);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rl-news-page-hero h1 {
  max-width: 800px;
  margin: 0 0 16px;
  color: #fff;
  font-family: "Kurdis", "Poppins", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  font-weight: 900;
  line-height: .98;
}

.rl-news-page-hero > .rl-gallery-shell > span {
  display: block;
  max-width: 670px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.6;
}

.rl-news-page-content {
  padding: clamp(54px, 7vw, 90px) 0;
}

.rl-news-page-year {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 26px;
  margin-bottom: 48px;
}

.rl-news-page-year:last-child {
  margin-bottom: 0;
}

.rl-news-page-year h2 {
  margin: 6px 0 0;
  color: var(--rl-gold);
  font-size: 1.55rem;
  font-weight: 900;
}

.rl-news-page-items {
  overflow: hidden;
  border: 1px solid #dbe2ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(10, 35, 104, .08);
}

.rl-news-page-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  min-height: 108px;
  padding: 22px 26px;
  border-bottom: 1px solid #e5eaf3;
  color: var(--rl-ink);
  text-decoration: none;
  transition: background .2s ease;
}

.rl-news-page-item:last-child {
  border-bottom: 0;
}

.rl-news-page-item:hover,
.rl-news-page-item:focus-visible {
  background: #f5f8ff;
  color: var(--rl-ink);
}

.rl-news-page-source {
  color: var(--rl-purple);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rl-news-page-item strong {
  font-size: 1.03rem;
  line-height: 1.4;
}

.rl-news-page-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--rl-blue);
  font-weight: 900;
  place-items: center;
}

.rl-news-page-item:hover .rl-news-page-arrow,
.rl-news-page-item:focus-visible .rl-news-page-arrow {
  background: var(--rl-gold);
  color: var(--rl-blue-dark);
}

/* Lightbox */
body.rl-lightbox-open {
  overflow: hidden;
}

.rl-lightbox {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  padding: 28px 74px;
  background: rgba(3, 9, 38, .96);
  color: #fff;
  place-items: center;
}

.rl-lightbox figure {
  display: flex;
  width: min(100%, 1180px);
  height: min(84vh, 860px);
  margin: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rl-lightbox figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100% - 42px);
  border-radius: 10px;
  box-shadow: 0 18px 65px rgba(0, 0, 0, .45);
  object-fit: contain;
}

.rl-lightbox figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, .76);
  font-size: .9rem;
}

.rl-lightbox-close,
.rl-lightbox-nav {
  position: absolute;
  display: grid;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  place-items: center;
}

.rl-lightbox-close:hover,
.rl-lightbox-nav:hover,
.rl-lightbox-close:focus-visible,
.rl-lightbox-nav:focus-visible {
  background: var(--rl-gold);
  color: var(--rl-blue-dark);
}

.rl-lightbox-close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
}

.rl-lightbox-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 2.5rem;
  transform: translateY(-50%);
}

.rl-lightbox-nav.is-prev {
  left: 16px;
}

.rl-lightbox-nav.is-next {
  right: 16px;
}

@media (max-width: 900px) {
  .rl-news-year {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .rl-news-grid {
    grid-template-columns: 1fr;
  }

  .rl-gallery-preview {
    grid-auto-rows: 100px;
  }

  .rl-gallery-preview img:nth-child(n) {
    grid-column: span 4;
    grid-row: span 1;
  }

  .rl-gallery-preview img:nth-child(1),
  .rl-gallery-preview img:nth-child(5) {
    grid-row: span 2;
  }

  .rl-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rl-content-shell,
  .rl-gallery-shell {
    width: min(calc(100% - 28px), var(--rl-shell));
  }

  .rl-news-year {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rl-news-year h3 {
    position: static;
  }

  .rl-news-card {
    min-height: 170px;
    padding: 22px;
  }

  .rl-gallery-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 140px;
  }

  .rl-gallery-preview img:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .rl-gallery-preview img:nth-child(1) {
    grid-row: span 2;
  }

  .rl-gallery-preview img:nth-child(6) {
    display: none;
  }

  .rl-gallery-hero {
    padding-top: 68px;
  }

  .rl-gallery-back {
    margin-bottom: 34px;
  }

  .rl-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .rl-news-page-year {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rl-news-page-year h2 {
    margin: 0;
  }

  .rl-news-page-item {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 8px;
    padding: 20px;
  }

  .rl-news-page-source,
  .rl-news-page-item strong {
    grid-column: 1;
  }

  .rl-news-page-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .rl-photo-card {
    border-radius: 11px;
  }

  .rl-photo-zoom {
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    opacity: 1;
    transform: none;
  }

  .rl-lightbox {
    padding: 58px 12px 34px;
  }

  .rl-lightbox-nav {
    top: auto;
    bottom: 16px;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .rl-lightbox-nav.is-prev {
    left: calc(50% - 58px);
  }

  .rl-lightbox-nav.is-next {
    right: calc(50% - 58px);
  }

  .rl-lightbox-close {
    top: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rl-news-card,
  .rl-photo-card img,
  .rl-photo-zoom,
  .rl-gallery-callout-action a,
  .rl-gallery-more {
    transition: none;
  }
}
