/* --- Color palette --- */
:root {
  --navy: #08087c;
  --yellow: #ffe000;
  --ink: #202020;
  --muted: #4a4a4a;
  --link-blue: #315bb7;
  --focus: #0c4bb8;
  --color-azul-naval: #000080;
  --divider: rgba(32, 32, 32, 0.24);
}

/* --- Base --- */
body {
  min-width: 320px;
  background: #fff;
  color: var(--ink);
  font-family: "Raleway", Arial, sans-serif;
}

main{margin-top: 63px;}
a {
  color: inherit;
}

/* --- Navbar --- */
header > .bg-azul-naval {
  background: var(--color-azul-naval);
}

/* --- Hero section --- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}

/* Yellow highlight behind the date */
.date-highlight {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}

.date-highlight::after {
  position: absolute;
  z-index: -1;
  right: -10px;
  bottom: 1px;
  left: -4px;
  height: 10px;
  content: "";
  background: rgba(255, 224, 0, 0.58);
}

/* Title: display-4 sets base; these override for the hero */
.hero-title {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: inherit;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -1.9px;
}

.hero-title .hero-title-highlight {
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.hero-description {
  max-width: 570px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
}

/* Yellow CTA button */
.hero-button.btn {
  padding: 10px 24px 10px 28px;
  border: 2px solid var(--yellow);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.hero-button:hover {
  border-color: #e6cb00;
  background: #e6cb00;
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-button:active {
  border-color: #cfb700 !important;
  background: #cfb700 !important;
  color: var(--ink) !important;
  transform: translateY(0);
}

.hero-button:focus,
.hero-button.focus {
  color: var(--ink);
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  box-shadow: none;
}

.hero-button-arrow {
  display: flex;
  align-items: center;
}

/* --- Event info (inline below button) --- */

.event-info-item {
  position: relative;
  padding-top: 4px;
}


.event-info-item + .event-info-item::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  content: "";
  background: var(--divider);
}

.event-info-label {
  display: block;
  margin-bottom: 5px;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.event-info-item strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

/* Regulation PDF link */
.regulation-link {
  color: var(--link-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.regulation-link:hover {
  color: #173e91;
  text-decoration: underline;
}

.regulation-link:focus {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  color: #173e91;
  text-decoration: underline;
}

/* --- Hero image composition (desktop only) --- */
.hero-image-composition {
  position: absolute;
  right: calc((100vw - 1140px) / -2);
  bottom: 0;
  width: min(54vw, 770px);
  height: 100%;
  overflow: hidden;
}

/* White curved shape behind the student image */
.hero-image-composition::after {
  position: absolute;
  z-index: 0;
  right: -15%;
  bottom: -21%;
  width: 82%;
  height: 48%;
  content: "";
  background: #fff;
  border-radius: 56% 0 0 0;
  transform: rotate(-16deg);
}

.hero-student-image {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 94%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-azul-naval);
}

/* =============================================
   Responsive — Desktop wide (≥ 1200px)
   ============================================= */
@media (min-width: 1200px) {
  .hero-section .container {
    max-width: 1140px;
  }

  .hero-content {
    padding-top: 28px;
  }
}

@media (min-width: 1441px) {
  .hero-image-composition {
    right: -150px;
    width: 770px;
  }
}


/* =============================================
   Responsive — Desktop medium (992–1199px)
   ============================================= */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 54px;
  }

  .hero-image-composition {
    right: -45px;
    width: 610px;
  }
}

/* =============================================
   Responsive — Tablet / Mobile (< 992px)
   ============================================= */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 24px 0 36px;
  }

  /* Decorative yellow blob */
  .hero-section::after {
    position: absolute;
    z-index: 0;
    top: 238px;
    right: -105px;
    width: 305px;
    height: 675px;
    content: "";
    background: rgba(255, 224, 0, 0.15);
    border-radius: 44% 58% 43% 49% / 25% 35% 26% 34%;
    transform: rotate(-14deg);
  }

  .hero-content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .date-highlight {
    margin-bottom: 21px;
    font-size: 20px;
  }

  .date-highlight::after {
    right: -8px;
    bottom: 0;
    left: -3px;
    height: 17px;
  }

  .hero-title {
    font-size: 50px;
    line-height: 1.05;
    letter-spacing: -1.55px;
  }

  .hero-description {
    max-width: 100%;
    color: #303030;
    font-size: 31px;
    line-height: 1.46;
  }

  .hero-button.btn {
    font-size: 18px;
  }


  .event-info-item strong {
    font-size: 22px;
  }
}

/* =============================================
   Responsive — Small mobile (< 576px)
   ============================================= */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-description {
    font-size: 29px;
  }

  .event-info-label {
    font-size: 12px;
  }

  .event-info-item strong {
    font-size: 18px;
  }
}

/* =============================================
   Responsive — Very small mobile (< 375px)
   ============================================= */
@media (max-width: 374.98px) {
  .hero-title {
    font-size: 43px;
  }

  .hero-description {
    font-size: 26px;
  }

  .hero-button.btn {
    font-size: 15px;
  }

  .event-info-item strong {
    font-size: 16px;
  }
}

/* --- Misc --- */
.chatbot {
  display: none !important;
}
