:root {
  --turquoise: #44c7c5;
  --turquoise-dark: #169fa4;
  --navy: #071f32;
  --ink: #10283a;
  --paper: #f7f3ea;
  --white: #ffffff;
  --yellow: #f7c936;
  --orange: #f28a2e;
  --purple: #6e36a8;
  --pink: #d83376;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    conic-gradient(from 18deg at 16% 18%, rgba(68, 199, 197, 0.6), transparent 22%, rgba(247, 201, 54, 0.42), transparent 46%),
    conic-gradient(from 205deg at 88% 20%, rgba(110, 54, 168, 0.58), transparent 25%, rgba(216, 51, 118, 0.28), transparent 50%),
    conic-gradient(from 120deg at 78% 90%, rgba(242, 138, 46, 0.52), transparent 24%, rgba(68, 199, 197, 0.24), transparent 54%),
    linear-gradient(135deg, #d9f0ed 0%, #f9f5ed 42%, #e9ddf2 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

a {
  text-decoration: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../image/graffiti-pages-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.7;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(7, 31, 50, 0.032) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(7, 31, 50, 0.028) 0 1px, transparent 1px 42px);
  opacity: 0.5;
}

header {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--navy);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ccbc-logo {
  width: 64px;
  height: 64px;
  padding: 6px;
  flex: 0 0 auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(7, 31, 50, 0.14);
}

.club-logo-slot {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(7, 31, 50, 0.14);
  transform: rotate(-5deg);
}

.site-title {
  position: relative;
  margin: 0;
  padding-left: 0;
  color: var(--navy);
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.site-title::before {
  content: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 7px;
  border-radius: 18px 28px 16px 24px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 30px rgba(7, 31, 50, 0.08);
  backdrop-filter: blur(14px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 13px 18px 12px 17px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
}

.site-nav a:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: rotate(-1deg);
}

.container {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  margin: 34px auto 58px;
  padding: 0;
  display: grid;
  gap: 22px;
  box-shadow: none;
  border-radius: 0;
}

.facade-banner {
  position: relative;
  height: clamp(190px, 25vw, 300px);
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px 30px 16px 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 58px rgba(7, 31, 50, 0.2);
  transform: rotate(0.45deg);
  isolation: isolate;
}

.facade-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.content {
  position: relative;
  min-height: 540px;
  padding: clamp(38px, 7vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.2)),
    url("../image/graffiti-splash-transparent.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(7, 31, 50, 0.16);
  transform: rotate(-0.35deg);
}

.content > * {
  transform: rotate(0.35deg);
}

.content::before {
  content: none;
}

.content::after {
  content: none;
}

.content h2,
.content p,
.content a {
  position: relative;
  z-index: 2;
}

.content h2 {
  max-width: min(780px, 92%);
  margin: 0 0 24px;
  color: var(--navy);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 8.2vw, 86px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow:
    3px 3px 0 rgba(255, 255, 255, 0.9),
    6px 6px 0 rgba(247, 201, 54, 0.42);
  transform: rotate(-0.7deg) translateX(clamp(0px, 2vw, 22px));
}

.content p {
  width: fit-content;
  max-width: min(690px, 100%);
  margin: 0 0 13px;
  padding: 9px 16px 10px;
  background: rgba(68, 199, 197, 0.78);
  color: var(--navy);
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 1.55;
  font-weight: 900;
  border-radius: 8px 15px 7px 17px;
  overflow-wrap: anywhere;
  transform: rotate(-0.8deg) translateX(clamp(0px, 4vw, 44px));
}

.content p + p {
  background: rgba(230, 72, 72, 0.82);
  font-size: clamp(16px, 1.8vw, 19px);
  transform: rotate(0.6deg) translateX(clamp(0px, 8vw, 92px));
}

.content a {
  width: fit-content;
  margin-top: 26px;
  margin-left: clamp(0px, 5vw, 58px);
  text-decoration: none;
}

.club-info {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    url("../image/graffiti-pages-bg.png");
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 48px rgba(7, 31, 50, 0.14);
}

.club-info-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  align-items: end;
  gap: clamp(18px, 4vw, 44px);
}

.section-kicker,
.panel-label {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--pink);
}

.panel-label {
  color: var(--turquoise-dark);
}

.club-info-intro h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.02;
  font-weight: 900;
  text-wrap: balance;
}

.club-info-intro > p {
  margin: 0;
  padding: 18px 20px;
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.5;
}

.club-info-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.club-info-highlights div {
  min-width: 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(7, 31, 50, 0.16);
}

.club-info-highlights div:nth-child(2) {
  background: var(--yellow);
  color: var(--navy);
}

.club-info-highlights div:nth-child(3) {
  background: var(--turquoise-dark);
}

.club-info-highlights strong,
.club-info-highlights span {
  display: block;
}

.club-info-highlights strong {
  margin-bottom: 4px;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1;
  font-weight: 900;
}

.club-info-highlights span {
  font-size: 14px;
  font-weight: 800;
}

.club-info-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.9fr;
  gap: 14px;
  align-items: stretch;
}

.club-panel {
  min-width: 0;
  padding: 20px;
  border: 2px solid rgba(7, 31, 50, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(7, 31, 50, 0.08);
}

.club-panel-schedule {
  background: rgba(68, 199, 197, 0.18);
}

.club-panel h3,
.club-documents h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
}

.club-panel p,
.club-panel li {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.55;
}

.club-panel p {
  margin: 0 0 12px;
}

.club-panel ul {
  margin: 0;
  padding-left: 18px;
}

.club-panel > a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  color: var(--turquoise-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.schedule-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.schedule-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.schedule-list dt,
.schedule-list dd {
  margin: 0;
  font-weight: 900;
}

.schedule-list dt {
  color: var(--navy);
}

.schedule-list dd {
  color: var(--pink);
  text-align: right;
  white-space: nowrap;
}

.club-documents {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  padding: 20px;
  border: 2px dashed rgba(7, 31, 50, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 251, 232, 0.94), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.76);
}

.club-documents h3 {
  margin-bottom: 8px;
}

.club-documents-text {
  min-width: 0;
}

.club-documents-note {
  position: relative;
  max-width: 560px;
  margin: 0;
  padding-left: 14px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
}

.club-documents-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 4px;
  border-radius: 999px;
  background: var(--yellow);
}

.club-info-actions {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.club-info-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border: 2px solid rgba(7, 31, 50, 0.12);
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.club-info-actions a:first-child {
  background: var(--yellow);
  color: var(--navy);
}

.club-info-actions a:hover {
  transform: translateY(-2px);
}

.index-news {
  width: min(860px, 100%);
  justify-self: center;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(7, 31, 50, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
    url("../image/graffiti-pages-bg.png");
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(7, 31, 50, 0.13);
  backdrop-filter: blur(8px);
}

.index-news-heading {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.index-news-heading p {
  margin: 0 0 6px;
  color: var(--turquoise-dark);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.index-news-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 900;
}

.index-news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  gap: 14px;
}

.index-news-card {
  min-width: 0;
  overflow: hidden;
  border: 2px solid rgba(7, 31, 50, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(7, 31, 50, 0.08);
}

.index-news-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.6);
}

.index-news-card time {
  display: block;
  margin: 18px 18px 9px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.index-news-card h3 {
  margin: 0 18px 10px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.2;
}

.index-news-card > p,
.index-news-empty {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.index-news-card > p {
  padding: 0 18px 18px;
}

.index-news-empty {
  padding: 18px;
  border: 2px dashed rgba(7, 31, 50, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

button,
.index-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px 18px 11px 20px;
  padding: 15px 24px;
  background: var(--yellow);
  color: var(--navy);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 8px 8px 0 var(--navy);
  transform: rotate(-1.2deg);
}

button:hover,
.index-login-button:hover {
  background: #ffe071;
  transform: translateY(-2px) rotate(-1.2deg);
}

button:focus-visible,
.index-login-button:focus-visible,
.club-info-actions a:focus-visible,
.site-nav a:focus-visible,
.footer-left a:focus-visible {
  outline: 3px solid rgba(247, 201, 54, 0.65);
  outline-offset: 4px;
}

.site-footer {
  width: 100%;
  margin: auto 0 0;
  padding: 16px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 -12px 36px rgba(7, 31, 50, 0.14);
  box-sizing: border-box;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.footer-left {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-center {
  justify-content: center;
  text-align: center;
}

.footer-center p {
  margin: 0;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.footer-right {
  justify-content: flex-end;
  gap: 10px;
}

.footer-left a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
  font-weight: 900;
}

.footer-left a:hover {
  opacity: 0.86;
}

.footer-logo {
  width: 42px;
  height: 42px;
  padding: 5px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(7, 31, 50, 0.1);
}

#backButton {
  align-self: flex-start;
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

#backButton:hover {
  opacity: 0.85;
}

#backButton:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  header,
  .container {
    width: min(100% - 24px, 560px);
  }

  .site-footer {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-left,
  .header-brand {
    width: 100%;
  }

  .header-left {
    gap: 14px;
  }

  .ccbc-logo {
    width: 54px;
    height: 54px;
  }

  .club-logo-slot {
    width: 48px;
    height: 48px;
  }

  .site-title {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 22px;
  }

  .site-nav {
    justify-content: flex-start;
    border-radius: 20px;
  }

  .site-nav a {
    min-height: 36px;
    padding: 0 11px;
  }

  .container {
    margin: 30px auto 36px;
    gap: 16px;
  }

  .facade-banner {
    min-height: 170px;
    border-width: 4px;
    border-radius: 18px;
    transform: none;
  }

  .facade-banner::after {
    right: 12px;
    bottom: -10px;
    width: 58%;
  }

  .content {
    min-height: 540px;
    border-radius: 22px;
    padding-left: 24px;
    padding-right: 24px;
    transform: none;
  }

  .content > * {
    transform: none;
  }

  .content::before {
    left: -4px;
    top: 25%;
    width: 108%;
    height: 210px;
    background-position: left center;
    background-size: contain;
  }

  .content::after {
    content: none;
  }

  .content p {
    width: auto;
    max-width: 100%;
    transform: rotate(-0.5deg);
  }

  .content p + p {
    transform: rotate(0.4deg);
  }

  .content h2 {
    max-width: 100%;
    transform: rotate(-0.4deg);
  }

  .content a,
  button {
    width: 100%;
  }

  .content a {
    margin-left: 0;
  }

  .club-info {
    padding: 20px;
  }

  .club-info-intro,
  .club-info-highlights,
  .club-info-layout {
    grid-template-columns: 1fr;
  }

  .club-info-intro > p {
    padding: 15px;
  }

  .club-info-highlights div,
  .club-panel,
  .club-documents {
    padding: 16px;
  }

  .schedule-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .schedule-list dd {
    text-align: left;
    white-space: normal;
  }

  .club-documents {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .club-info-actions {
    justify-content: stretch;
  }

  .club-info-actions a {
    width: 100%;
  }

  .index-news {
    padding: 20px;
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    justify-content: flex-start;
  }
}
