:root {
  --cgx-primary: #00C0FF;
  --cgx-primary-inverse: #ffffff;
  --cgx-text: #222222;
  --cgx-text-secondary: #717171;
  --cgx-border: #BCC2C2;
  --cgx-surface: #F6F8FA;
  --cgx-white: #ffffff;
  --cgx-shadow: 0px 2px 16px rgba(0, 0, 0, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--cgx-text);
  background: var(--cgx-surface);
  padding-top: 97px;
  margin: 0;
}

/* ---------- navbar ---------- */
.cx-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--cgx-white);
  box-shadow: var(--cgx-shadow);
  height: 97px;
  display: flex;
  align-items: center;
}

.cx-navbar .container-xl {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 24px;
}

.navbar-dki-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: invert(1);
}

@media (max-width: 767px) {
  .navbar-dki-logo { height: 40px; }
}

/* ---------- hero ---------- */
.cx-hero {
  background: var(--cgx-white);
  border-bottom: 1px solid #eeeeee;
}

.cx-hero-banner {
  width: 100%;
  aspect-ratio: 16 / 5;
  background: linear-gradient(135deg, #00C0FF 0%, #0077b6 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- page title ---------- */
.cx-page-title {
  background: var(--cgx-white);
  border-bottom: 1px solid #eeeeee;
  padding: 32px 0 24px;
}

.cx-page-title h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cgx-text);
  margin: 0 0 8px;
}

.cx-page-title p {
  font-size: 13px;
  color: var(--cgx-text-secondary);
  margin: 0;
}

/* ---------- main ---------- */
.cx-main {
  padding: 40px 0 64px;
}

/* ---------- event card ---------- */
.cx-card {
  background: var(--cgx-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--cgx-shadow);
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.cx-card:hover {
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}

.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.event-poster {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background-repeat: no-repeat, no-repeat;
  background-position: top center, center center;
  background-size: cover, contain;
  background-color: #c2c2c2;
}

.event-body {
  padding: 16px 8px 24px;
}

.event-body p.date {
  font-weight: 500;
  font-size: 18px;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: #2175E4;
  margin: 0 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-body a.title {
  font-weight: 600;
  font-size: 24px;
  line-height: 110%;
  letter-spacing: -0.02em;
  color: #000000;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  margin-bottom: 12px;
}

.event-body p.venue {
  font-weight: 500;
  font-size: 18px;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: #717171;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-cta {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1.70513px dashed #BCC2C2;
}

/* ---------- button ---------- */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: var(--cgx-primary);
  color: var(--cgx-primary-inverse);
  border-color: var(--cgx-primary);
}

.btn-primary:hover {
  background: #00aae8;
  border-color: #00aae8;
  color: var(--cgx-primary-inverse);
}

/* ---------- grid ---------- */
.container-xl {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- footer ---------- */
.cx-footer {
  position: relative;
  background: #FAFAFA;
  min-height: 500px;
  padding: 74px 100px 48px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-powered-by {
  font-size: 12px;
  color: #828282;
  margin: 0 0 8px;
}

.footer-logo {
  height: 40px;
  display: block;
  margin-bottom: 64px;
}

.footer-left { flex-shrink: 0; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-link {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--cgx-text);
}

.footer-link img {
  width: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-link-text {
  font-size: 16px;
  line-height: 1.5;
}

.footer-link-text p { margin: 0; }

.footer-link-label { color: #828282; }

.footer-center { flex: 1; }

.footer-right { flex: 0 0 250px; }

.footer-right h3 {
  font-weight: 600;
  font-size: 18px;
  color: var(--cgx-text);
  margin-bottom: 55px;
}

.footer-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 18px;
  align-items: center;
}

.footer-brands img {
  height: 24px;
  width: auto;
}

.footer-copyright {
  position: absolute;
  left: 100px;
  bottom: 20px;
  font-size: 12px;
  color: var(--cgx-border);
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  body { padding-top: 56px; }

  .cx-navbar { height: 56px; }
  .cx-navbar .navbar-brand img { height: 40px; width: 40px; }

  .event-body { padding: 8px 4px 12px; }
  .event-body p.date { font-size: 12px; margin-bottom: 8px; }
  .event-body a.title { font-size: 14px; line-height: 150%; margin-bottom: 8px; }
  .event-body p.venue { font-size: 12px; line-height: 150%; }
  .event-cta { padding-top: 12px; margin-top: 12px; }

  .cx-footer {
    flex-wrap: wrap;
    min-height: auto;
    padding: 40px 16px 48px;
  }
  .footer-left { width: 100%; margin-bottom: 8px; }
  .footer-logo { margin-bottom: 40px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 24px 40px; }
  .footer-link-text { font-size: 12px; }
  .footer-center { display: none; }
  .footer-right { width: 100%; }
  .footer-right h3 { font-size: 16px; margin-bottom: 24px; }
  .footer-copyright { left: 16px; bottom: 10px; }
}

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