:root {
  --home-ink: #102e46;
  --home-muted: #5f7180;
  --home-primary: #186f8e;
  --home-primary-dark: #0f536d;
  --home-green: #5d7665;
  --home-gold: #c9a24a;
  --home-line: #e3ebf0;
  --home-bg: #f7fafb;
  --home-white: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 46, 70, 0.16);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #7ea1a3 0%, #618587 100%);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #618587 0%, #4f7274 100%);
  color: #fff;
}

.btn-outline-light {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover {
  color: var(--home-ink);
  background: #fff;
}

.btn-ghost {
  color: var(--home-ink);
  background: #fff;
  border: 1px solid var(--home-line);
}

.btn-dark {
  color: #fff;
  background: var(--home-ink);
}

.btn-light {
  color: var(--home-ink);
  background: #fff;
}

/* Header */
.site-header {
  --ih: 78px;
  width: 100%;
  height: var(--ih);
  position: relative;
  z-index: 1000;
  background: var(--home-white);
  box-shadow: 0 1px 0 var(--home-line);
  transition: box-shadow 0.3s ease;
}

.site-header.active {
  --ih: 64px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 8px 30px rgba(16, 46, 70, 0.12);
}

.site-header .container {
  max-width: 100%;
  padding: 0 2.5vw;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: calc(var(--ih) * 0.5);
  width: auto;
  display: block;
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 9px;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.2s ease;
}

.nav-item.active > a,
.nav-item > a:hover {
  color: var(--home-primary);
}

.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(16, 46, 70, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-item.has-dropdown:hover > .dropdown,
.nav-item.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 12px;
  color: var(--home-ink);
  font-size: 13px;
  text-decoration: none;
  border-radius: 5px;
}

.dropdown a:hover {
  color: var(--home-primary);
  background: var(--home-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-login {
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.header-login:hover {
  color: var(--home-primary);
}

.mobile-account {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-sep {
  color: #a9b8c4;
}

.nav-toggler {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggler span {
  display: block;
  height: 2px;
  background: var(--home-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggler.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggler.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggler.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  background: #0b2b42;
}

.hero-swiper {
  height: 31.25vw;
  min-height: 140px;
  max-height: 620px;
  position: relative;
  background: url("../images/img01.jpg") center center / cover no-repeat;
}

.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  height: 100%;
}

.hero-swiper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0b2b42;
}

.hero-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: #fff;
  opacity: 0.55;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 44px;
  opacity: 1;
  background: var(--home-gold);
}

.hero-bar {
  background: var(--home-ink);
  color: #fff;
}

.hero-bar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.meta-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--home-gold);
  stroke-width: 1.8;
}

.meta-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Shared section styles */
.section {
  padding: 88px 0;
}

.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--home-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 18px;
  color: var(--home-ink);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
}

.section p {
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.85;
}

.section-head {
  max-width: 650px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-head-split {
  max-width: none;
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.section-head-split h2 {
  margin-bottom: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--home-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.link-arrow span {
  transition: transform 0.25s ease;
}

.link-arrow:hover span {
  transform: translateX(5px);
}

/* Facts */
.section.facts {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--home-line);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 24px;
  border-right: 1px solid var(--home-line);
}

.fact-card:last-child {
  border-right: 0;
}

.fact-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.fact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.fact-blue {
  background: #2f7fa8;
}

.fact-teal {
  background: #3c9299;
}

.fact-green {
  background: var(--home-green);
}

.fact-gold {
  background: var(--home-gold);
}

.fact-label {
  display: block;
  margin-bottom: 5px;
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-card strong {
  color: var(--home-ink);
  font-size: 15px;
  line-height: 1.45;
}

.fact-card a {
  color: inherit;
  text-decoration: none;
}

.fact-card a:hover {
  color: var(--home-primary);
}

/* About */
.about {
  background: var(--home-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(16, 46, 70, 0.16);
}

.about-media img {
  width: 100%;
  height: 440px;
  display: block;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 16px 22px;
  color: #fff;
  background: rgba(16, 46, 70, 0.92);
  border-radius: 10px;
}

.about-badge strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.about-badge span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-points {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.about-points li {
  position: relative;
  padding-left: 26px;
  color: var(--home-ink);
  font-size: 14px;
  font-weight: 600;
}

.about-points li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--home-primary);
}

/* Important dates */
.dates-section {
  background: #fff;
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: home-date;
}

.date-card {
  padding: 28px 24px;
  background: var(--home-bg);
  border: 1px solid var(--home-line);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.date-card:hover {
  transform: translateY(-4px);
  border-color: #bcd4df;
  box-shadow: 0 16px 34px rgba(16, 46, 70, 0.09);
}

.date-number {
  counter-increment: home-date;
}

.date-number::before {
  content: counter(home-date, decimal-leading-zero);
  color: #c5d8e2;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.date-card h3 {
  margin: 16px 0 8px;
  color: var(--home-ink);
  font-size: 15px;
  line-height: 1.45;
}

.date-card p {
  margin: 0;
  color: var(--home-primary);
  font-size: 15px;
  font-weight: 700;
}

/* Programme */
.programme-section {
  background: var(--home-bg);
}

.schedule-list {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 120px 1fr 170px;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--home-line);
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-date {
  color: var(--home-primary);
  font-size: 15px;
  font-weight: 800;
}

.schedule-main h3 {
  margin: 0 0 4px;
  color: var(--home-ink);
  font-size: 16px;
  line-height: 1.4;
}

.schedule-main p {
  margin: 0;
  font-size: 13px;
}

.schedule-time {
  color: var(--home-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.programme-section .link-arrow {
  margin-top: 26px;
}

/* Submission & registration */
.participate {
  background: #fff;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.action-card {
  position: relative;
  padding: 44px;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.action-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.action-submit {
  background: linear-gradient(135deg, #1f6684 0%, #123f5b 100%);
}

.action-register {
  background: linear-gradient(135deg, #6d8d79 0%, #425f50 100%);
}

.action-card .section-label {
  color: rgba(255, 255, 255, 0.75);
}

.action-card h2 {
  margin: 0 0 14px;
  color: #fff;
}

.action-card p {
  min-height: 78px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
}

.action-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}

.action-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.action-submit .btn-primary {
  color: #16506d;
  background: #fff;
}

.action-register .btn-dark {
  color: #3e5a4b;
  background: #fff;
}

/* Venue */
.venue-section {
  background: var(--home-bg);
}

.venue-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.venue-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--home-ink) !important;
  font-weight: 600;
}

.venue-address svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 4px;
  fill: none;
  stroke: var(--home-primary);
  stroke-width: 1.8;
}

.venue-copy .link-arrow {
  margin-top: 12px;
}

.venue-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(16, 46, 70, 0.16);
}

.venue-media img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
}

.venue-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 18px;
  color: #fff;
  background: var(--home-primary);
  font-size: 13px;
  font-weight: 700;
}

/* Gallery */
.gallery-section {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--home-bg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Contact call to action */
.contact-cta {
  padding: 64px 0;
  color: #fff;
  background: linear-gradient(120deg, #0e3a55 0%, #186f8e 100%);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contact-cta .section-label {
  color: #bfe3f0;
}

.contact-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
}

.contact-cta p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.8;
}

.contact-cta p a {
  color: #fff;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 64px 0 0;
  color: #c4d2dc;
  background: #0a2235;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 48px;
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 360px;
  color: #9fb2bf;
  font-size: 13px;
  line-height: 1.85;
}

.footer-col h4 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: #9fb2bf;
  font-size: 13px;
  text-decoration: none;
  text-transform: capitalize;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8ea3b1;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 1080px) {
  .header-actions {
    display: none;
  }

  .mobile-account {
    display: flex;
    padding-top: 14px;
  }

  .mobile-account > a {
    border-bottom: 0;
  }

  .nav-toggler {
    display: flex;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: var(--ih);
    left: 0;
    right: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 30px rgba(16, 46, 70, 0.12);
    transition: max-height 0.3s ease;
  }

  .main-nav.active {
    max-height: 640px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 4vw 20px;
  }

  .nav-item > a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--home-line);
  }

  .dropdown {
    position: static;
    display: block;
    min-width: 0;
    margin: 4px 0 10px;
    padding: 4px 0 4px 16px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .about-grid,
  .venue-grid {
    gap: 40px;
  }

  .dates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .section {
    padding: 64px 0;
  }

  .hero-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-card:nth-child(2) {
    border-right: 0;
  }

  .fact-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--home-line);
  }

  .about-grid,
  .venue-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .about-media img,
  .venue-media img {
    height: 340px;
  }

  .section-head-split {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-row {
    grid-template-columns: 90px 1fr;
    gap: 8px 16px;
  }

  .schedule-time {
    grid-column: 2;
    text-align: left;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-swiper {
    height: 31.25vw;
    min-height: 112px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }

  .meta-divider {
    display: none;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    flex: 1;
    padding: 0 12px;
  }

  .facts-grid,
  .dates-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .fact-card {
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .fact-card:last-child {
    border-bottom: 0;
  }

  .action-card {
    padding: 32px 24px;
  }

  .action-card p {
    min-height: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}
