:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --text: #18202a;
  --muted: #5f6b7a;
  --primary: #0f766e;
  --primary-hover: #0b5e58;
  --accent: #14b8a6;
  --border: #dbe3ec;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Ubuntu", Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.25s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container,
.container-fluid {
  width: 100%;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.sectionPadding {
  padding-top: 70px;
  padding-bottom: 70px;
}

/* HEADER */
header.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 227, 236, 0.8);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

header.nav .container,
header.nav {
  padding-left: 20px;
  padding-right: 20px;
}

#logo {
  display: inline-flex;
  align-items: center;
  padding: 16px 0;
}

#logo img {
  max-height: 58px;
  width: auto;
}

.navbar {
  display: inline-block;
  vertical-align: middle;
  width: calc(100% - 190px);
}

#tyler-navigation {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
}

#menu-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

#menu-primary > li {
  position: relative;
}

#menu-primary > li > a {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--text);
}

#menu-primary > li > a:hover,
#menu-primary > li.current-menu-item > a,
#menu-primary > li.current_page_item > a {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary);
}

#menu-primary .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s ease;
}

#menu-primary li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#menu-primary .sub-menu li a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text);
}

#menu-primary .sub-menu li a:hover {
  background: var(--surface-2);
  color: var(--primary);
}

/* HERO */
.landing {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 20px 80px;
}

.landing .bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 20, 32, 0.82) 0%, rgba(9, 44, 57, 0.68) 45%, rgba(15, 118, 110, 0.36) 100%);
  z-index: 1;
}

.landing > * {
  position: relative;
  z-index: 2;
}

.landing h1 {
  max-width: 900px;
  margin: 0 auto 18px;
  text-align: center;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.landing .lead {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 20px;
  opacity: 0.92;
}

.landing .row {
  max-width: 980px;
  margin: 25px auto 0;
}

.landing .box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 26px;
  min-height: 140px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.landing .box i {
  font-size: 32px;
  color: #ffffff;
}

.landing .box .sub {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 6px;
}

.landing .box .title {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.landing .box .desc {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  margin-top: 6px;
}

/* HEADINGS */
h2, h3 {
  margin-top: 0;
  line-height: 1.2;
}

.greenH,
h2.greenH,
h3.greenH {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2.greenH {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 22px;
}

h3.greenH {
  font-size: 28px;
  margin-bottom: 20px;
}

/* CONTENT BLOCKS */
.textwidget .container.sectionPadding,
#tile_sponsors,
footer .container.widget {
  background: transparent;
}

.col-md-8,
.col-md-4,
.col-sm-4,
.col-md-6 {
  margin-bottom: 24px;
}

.textwidget p,
footer p {
  color: var(--muted);
  font-size: 17px;
}

.register_btn,
.btn,
.btn-primary,
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.register_btn:hover,
.btn:hover,
.btn-primary:hover,
.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.28);
  opacity: 0.98;
}

.flexCon {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* KEYNOTES */
.keynote {
  text-align: center;
  margin-bottom: 28px;
}

.keynoteImg {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 6px solid #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.keynote p {
  margin: 6px 0;
}

#youtubePlaceholder {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* NEWS SECTION */
#textwithbg {
  margin-top: 40px;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 30%),
    linear-gradient(180deg, #eff6f8 0%, #eaf1f6 100%);
  padding: 20px 0;
}

#colorOverlay {
  background: transparent;
}

#latestNews {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(219, 227, 236, 0.85);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 42px 26px;
}

/* SPONSORS */
#tile_sponsors {
  max-width: var(--container);
  margin: 70px auto;
  padding: 0 20px;
}

h3.sponsor {
  text-align: center;
  margin: 30px 0 26px;
  font-size: 28px;
  color: var(--text);
}

h3.sponsor span {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

h3.sponsor span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: translateX(-50%);
}

.sponsors {
  display: grid;
  gap: 22px;
}

.sponsors .item {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sponsor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.sponsor img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

/* FOOTER */
footer {
  margin-top: 70px;
  background: #0f1720;
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 20px;
}

footer h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
}

footer p,
footer a {
  color: rgba(255, 255, 255, 0.75);
}

footer a:hover {
  color: #fff;
}

footer .links {
  display: flex;
  gap: 12px;
  align-items: center;
}

footer .links img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

footer .links img:hover {
  transform: scale(1.08);
}

.credits {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 30px;
  padding-top: 20px;
}

/* SCROLL UP */
#scroll-up {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.25);
  z-index: 999;
}

/* GENERIC FIXES */
.row::before,
.row::after {
  content: "";
  display: table;
}

.row::after {
  clear: both;
}

[class*="col-"] {
  position: relative;
}

.text-center {
  text-align: center;
}

.center-block {
  margin-left: auto;
  margin-right: auto;
}

#backdrop {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .navbar {
    width: 100%;
  }

  #tyler-navigation {
    justify-content: flex-start;
  }

  #menu-primary {
    gap: 6px;
  }

  .landing {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .landing .box .title {
    font-size: 20px;
  }

  .sponsors .item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  header.nav {
    position: relative;
  }

  #logo {
    display: flex;
    justify-content: center;
    padding: 14px 0 6px;
  }

  .navbar {
    width: 100%;
    display: block;
  }

  #tyler-navigation {
    display: block !important;
  }

  #menu-primary {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 18px;
  }

  #menu-primary > li > a {
    width: 100%;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
  }

  #menu-primary .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 8px 0 0;
    background: transparent;
  }

  .landing {
    border-radius: 0 0 24px 24px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .landing .row {
    margin-top: 18px;
  }

  .landing .box {
    min-height: auto;
    padding: 20px;
    border-radius: 18px;
  }

  .sectionPadding {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  #latestNews {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .flexCon {
    padding: 22px 18px;
  }

  .sponsors .item {
    grid-template-columns: 1fr;
  }

  .sponsor {
    min-height: 140px;
  }

  .keynoteImg {
    width: 150px;
    height: 150px;
  }

  #scroll-up {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
  }
}