/* ============================================================
   HEAD & SHOULDERS SUPER COOL RUN 2026
   style.css — Clean & Responsive Rebuild
   ============================================================ */

/* ============ CUSTOM FONTS ============ */
@font-face {
  font-family: 'Digital7';
  src: url('fonts/digital-7.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Gil';
  src: url('fonts/Gilroy-Light.otf') format('opentype');
  font-display: swap;
}

/* ============ DESIGN TOKENS ============ */
:root {
  --blue-dark:    #003DA5;
  --blue-mid:     #0050C8;
  --blue-bright:  #0070E0;
  --blue-light:   #1A8FFF;
  --blue-sky:     #3AACFF;
  --white:        #FFFFFF;
  --ice:          #DDF9F1;
  --text-dark:    #1A1A2E;
  --text-mid:     #333355;
  --accent:       #E4405F;

  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0, 61, 165, 0.15);
  --shadow-hover: 0 12px 32px rgba(0, 61, 165, 0.25);

  --transition:   all 0.25s ease;

  --container:    1100px;
  --gap:          24px;
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Gil', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

a {
  text-decoration: none;
}

img,
iframe,
table {
  max-width: 100%;
  height: auto;
}

p, h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
}

button,
.accordion-header {
  -webkit-tap-highlight-color: transparent;
}

/* ============ UTILITY ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ============ PAGE SECTION TABS ============ */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-bright));
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  height: 70px;
  gap: 32px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.3px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.85;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Desktop nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: rgba(255, 255, 255, 0.18);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown > a .fa-caret-down {
  transition: transform 0.2s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 999;
  min-width: 180px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  animation: fadeDown 0.2s ease;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown.open > a .fa-caret-down {
  transform: rotate(180deg);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.87rem;
  transition: background 0.15s;
}

.dropdown-menu li a:hover {
  background: var(--ice);
  color: var(--blue-bright);
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}

/* ============ MOBILE OVERLAY NAV ============ */
.mobile-overlay-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0, 0, 0, 0.45);
}

.mobile-overlay-backdrop.open {
  display: block;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  width: 55%;
  max-width: 280px;
  min-width: 200px;
  background: linear-gradient(170deg, #002899 0%, #0050C8 100%);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 32px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.open {
  transform: translateX(0);
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.overlay-logo {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.overlay-logo span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.8;
}

.overlay-close {
  background: rgba(255, 255, 255, 0.15);  /* latar semi-transparan agar ikon lebih terlihat */
  border: none;
  color: var(--white);
  font-size: 1.8rem;                     /* sedikit lebih besar */
  cursor: pointer;
  padding: 8px 12px;                     /* area klik lebih luas */
  border-radius: 8px;                    /* opsional, sentuhan modern */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* bantu kontras */
}

.overlay-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.overlay-nav {
  list-style: none;
  padding: 12px 0;
  flex: 1;
  overflow-y: auto;
}

.overlay-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 28px;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}

.overlay-nav > li > a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.overlay-submenu {
  display: none;
  background: rgba(255, 255, 255, 0.07);
  padding: 4px 0;
}

.overlay-submenu.open {
  display: block;
}

.overlay-submenu a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px 13px 48px;
  transition: background 0.15s;
}

.overlay-submenu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.race-arrow {
  transition: transform 0.25s;
  font-size: 0.8rem;
}

.race-arrow.rotated {
  transform: rotate(180deg);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background-image: url("images/bg-hs1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 55vw;
  max-height: 120vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(58, 172, 255, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 112, 224, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px 48px;
  max-width: 900px;
  width: 100%;
}

.run-logo {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  margin-bottom: 10px;
}

/* Hero cards (date/registration links) */
.hero-cards {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 8px 16px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hero-cards::-webkit-scrollbar {
  display: none;
}

.hero-cards a {
  text-decoration: none;
}

.date-card {
  background: rgba(240, 247, 248, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  width: 175px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.date-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.date-card.featured {
  transform: scale(1.07);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.date-card.featured:hover {
  transform: scale(1.07) translateY(-6px);
}

.card-img {
  width: 100%;
  height: 105px;
  background: linear-gradient(135deg, #020e97, var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.date-label {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px;
  letter-spacing: 0.3px;
  background: var(--white);
}

/* ============ COUNTDOWN ============ */
.countdown-section {
  background-image:
    linear-gradient(rgba(135, 218, 243, 0.5), rgba(248, 247, 247, 0.5)),
    url("images/ice-crack.png");
  background-size: cover;
  background-position: center;
  padding: 52px 24px 64px;
  text-align: center;
  border-bottom: 6px solid var(--blue-bright);
}

.section-title-cd {
  font-size: clamp(2.8rem, 6vw, 8.5rem);
  font-weight: 800;
  color: var(--blue-dark);
  text-shadow: 
        0 0 8px white,
        0 0 8px white;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.countdown-box {
  font-family: 'Digital7', sans-serif !important;
  width: 130px;
  height: 170px;
  background: linear-gradient(145deg, var(--blue-dark), var(--blue-bright));
  color: var(--white);
  font-size: 4.2rem;
  font-weight: 900;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 61, 165, 0.3);
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.countdown-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  background-color:white;
  border-radius:10px;
  padding: 10px 20px; /* Atas-Bawah 10px, Kiri-Kanan 20px */
    display: inline-block; 
    box-shadow: 0 6px 20px rgba(0, 61, 165, 0.3);
}

/* ============ ABOUT ============ */
.about-section {
  padding: 60px 24px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-title-ab {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--blue-dark);
  text-shadow: 
        0 0 1.5px blue,
        0 0 1.5px blue;
  margin-bottom: 10px;
}

.section-underline {
  width: 260px;
  height: 6px;
  background: var(--blue-bright);
  border-radius: 4px;
  margin: 0 auto 28px;
}

.about-content p {
  color: var(--text-mid);
  font-size: 1.35rem;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: justify;
}

.organized-by {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #DDE;
}

.organized-by p {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 16px;
}

.organizer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  min-width: 140px;
  min-height: 60px;
}

.organizer-logo img {
  height: 58px;
  width: auto;
}

/* ============ INNER PAGE ============ */
.inner-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 52px 24px 60px;
  width: 100%;
}

.page-title {
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 800;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.title-bar {
  width: 60px;
  height: 4px;
  background: var(--blue-bright);
  border-radius: 4px;
  margin: 0 auto 36px;
}

/* ============ TAB BUTTONS ============ */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 40px 0 30px;
  flex-wrap: wrap;
}

.tab-btn {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border: none;
  padding: 12px 32px;
  border-radius: 40px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 61, 165, 0.3);
  filter: brightness(1.05);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-sky));
  box-shadow: 0 4px 12px rgba(0, 112, 224, 0.4);
}

.tab-btn .full-text { display: inline; }
.tab-btn .short-text { display: none; }

/* ============ TAB CONTENT ============ */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ============ ACCORDION ============ */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.accordion-item {
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-bright) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 61, 165, 0.15);
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.93rem;
  transition: filter 0.15s;
}

.accordion-header:hover {
  filter: brightness(1.1);
}

.acc-num {
  font-size: 1rem;
  font-weight: 800;
  min-width: 22px;
}

.acc-question {
  flex: 1;
  line-height: 1.4;
}

.acc-icon {
  transition: transform 0.3s;
  font-size: 0.85rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: rgba(255, 255, 255, 0.97);
}

.accordion-item.active .accordion-body {
  max-height: 2000px;
}

.accordion-item.active .acc-icon {
  transform: rotate(180deg);
}

.accordion-body p {
  padding: 16px 20px;
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.7;
  font-family: 'Open Sans', sans-serif;
}

.accordion-body b {
  color: #0b1e3a;
}

.accordion-body a {
  color: var(--blue-bright);
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

/* Accordion list styles */
.accordion-body ol,
.accordion-body ul {
  list-style: none;
  padding: 12px 20px 12px 48px;
  margin: 0;
  text-align: left;
}

.accordion-body ol[type="1"] {
  counter-reset: ol-decimal;
}

.accordion-body ol[type="1"] li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  counter-increment: ol-decimal;
  color: #333;
  line-height: 1.6;
}

.accordion-body ol[type="1"] li::before {
  content: counter(ol-decimal, decimal) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #695e5f;
}

.accordion-body ol[type="a"] {
  counter-reset: ol-alpha;
}

.accordion-body ol[type="a"] li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  counter-increment: ol-alpha;
  color: #333;
  line-height: 1.6;
}

.accordion-body ol[type="a"] li::before {
  content: counter(ol-alpha, lower-alpha) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #695e5f;
}

.accordion-body ol[type="i"] {
  counter-reset: ol-roman;
}

.accordion-body ol[type="i"] li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  counter-increment: ol-roman;
  color: #333;
  line-height: 1.6;
}

.accordion-body ol[type="i"] li::before {
  content: counter(ol-roman, lower-roman) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #695e5f;
}

.accordion-body ol[type="I"] li::before {
  content: counter(ol-roman, upper-roman) ".";
}

.accordion-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

.accordion-body ul[type="disc"] li::before,
.accordion-body ul:not([type]) li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #333;
}

.accordion-body ul[type="circle"] li::before {
  content: "○";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #333;
}

.accordion-body ul[type="square"] li::before {
  content: "■";
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  color: #333;
}

.accordion-body ul[type="none"] li::before {
  content: none;
}

/* Nested lists */
.accordion-body ol ol,
.accordion-body ul ul,
.accordion-body ol ul,
.accordion-body ul ol {
  padding: 8px 0 0 20px;
}

/* ============ JADWAL (SCHEDULE) ============ */
.jadwal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.jadwal-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid #DDE8FF;
  transition: transform 0.25s ease;
}

.jadwal-card:hover {
  transform: translateY(-4px);
}

.jadwal-date {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-bright));
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 14px 20px;
  letter-spacing: 0.3px;
}

.jadwal-info {
  padding: 20px;
}

.jadwal-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.jadwal-info p {
  font-size: 0.87rem;
  color: #555;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Open Sans', sans-serif;
}

.jadwal-info p i {
  color: var(--blue-bright);
  width: 14px;
  flex-shrink: 0;
}

/* ============ BENEFIT ============ */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #DDE8FF;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-bright));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.benefit-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.6;
  font-family: 'Open Sans', sans-serif;
}
.jersey {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  display: block; margin: auto;
}
/* ============ JERSEY TABLE ============ */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* Mengaktifkan scroll horizontal di mobile */
    -webkit-overflow-scrolling: touch; /* Scroll lebih halus di iOS */
    margin-bottom: 1rem;
}

.jersey-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 480px;
}

.jersey-table thead tr {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-bright));
  color: var(--white);
}

.jersey-table th,
.jersey-table td {
  padding: 14px 20px;
  text-align: center;
  font-size: 0.9rem;
}

.jersey-table th {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.jersey-table td {
  color: var(--text-mid);
  font-weight: 600;
}

.jersey-table tbody tr:nth-child(even) {
  background: var(--ice);
}

.jersey-table tbody tr:hover {
  background: #d0e8ff;
}

.jersey-note {
  text-align: center;
  font-size: 0.83rem;
  color: #888;
  margin-top: 16px;
  font-family: 'Open Sans', sans-serif;
}

/* ============ BUTTONS ============ */
.btn-center {
  text-align: center;
}

.btn-outline {
  display: inline-block;
  padding: 13px 36px;
  border: 2.5px solid var(--blue-bright);
  border-radius: 40px;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  background: none;
}

.btn-outline:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 61, 165, 0.25);
}

/* ============ GALLERY / COMING SOON ============ */
.coming-soon-box {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-sky));
  border-radius: var(--radius);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-box p {
  color: var(--white);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: 4px;
  opacity: 0.9;
  text-align: center;
  padding: 0 20px;
}

/* ============ INSTAGRAM FEED ============ */
.instagram-feed-section {
  margin: 60px auto;
  max-width: 900px;
  width: 100%;
  padding: 0 24px;
}

.section-title-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.section-title-instagram i {
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-title-instagram span {
  font-size: clamp(0.9rem, 2vw, 1.3rem);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 30px 0;
}

.instagram-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1.4;
  background: #f5f5f5;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.instagram-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.instagram-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.instagram-card:hover .instagram-image {
  transform: scale(1.05);
}

/* Skeleton loading state */
.instagram-card.loading .instagram-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.instagram-btn-wrapper {
  text-align: center;
  margin-top: 20px;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
  color: white;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: white;
}

.btn-instagram i {
  font-size: 1.2rem;
}

/* ============ CONTACT (KONTAK) ============ */
.kontak-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  min-height: 300px;
}

.kontak-wrapper {
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow);
  border: 1px solid #DDE8FF;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 700px;
}

.kontak-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-style: italic;
}

.kontak-divider {
  width: 3px;
  height: 120px;
  background: linear-gradient(to bottom, var(--blue-bright), transparent);
  border-radius: 4px;
  flex-shrink: 0;
}

.kontak-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kontak-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.kontak-item:hover {
  color: var(--blue-bright);
}

.kontak-icon {
  font-size: 1.3rem;
  color: var(--blue-bright);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* ============ FOOTER ============ */
.footer {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-bright));
  padding: 20px 32px 16px;
  margin-top: auto;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.7;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  margin-top: 8px;
}

/* ============ BACK TO TOP ============ */
#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 99;
  font-size: 1.5rem;
  border: none;
  outline: none;
  background: var(--blue-bright);
  color: var(--white);
  cursor: pointer;
  padding: 14px;
  border-radius: 50%;
  display: none;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 61, 165, 0.35);
  text-decoration: none;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
}

#backToTop:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ============ FONT AWESOME SPACING ============ */
.fa, .fas, .far {
  margin-right: 2px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   RESPONSIVE — TABLET (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

    .jersey {
  overflow-x: auto;
display: block; margin: auto;
  -webkit-overflow-scrolling: touch;
}

  /* Navbar */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 60vw;
  }

  .hero-content {
    padding: 24px 16px;
  }

  /* Hero cards: stack vertically, first card full-width, rest 2-col grid */
  .hero-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px 16px 16px;
    overflow-x: auto;
    margin-top: 16px;
  }

  .hero-cards > a:first-child {
    grid-column: 1 / -1;
  }

  .hero-cards > a:first-child .date-card {
    width: 100%;
  }

  .date-card {
    width: 100%;
    flex-shrink: 0;
    margin:auto;
  }

  .date-card.featured {
    transform: none;
  }

  .date-card.featured:hover {
    transform: translateY(-6px);
  }

  .card-img {
    height: 85px;
  }

  /* Countdown */
  .countdown-section {
    padding: 36px 16px 48px;
  }

  .countdown-wrapper {
    gap: 12px;
  }

  .countdown-box {
    font-family: 'Digital7', sans-serif !important;
    width: 86px;
    height: 100px;
    font-size: 2.8rem;
  }

  .countdown-label {
    font-size: 0.9rem;
  }

  /* Tabs */
  .tab-buttons {
    gap: 10px;
    margin: 28px 0 20px;
  }

  .tab-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  /* Grids → single column */
  .jadwal-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 20px 0;
  }

  .instagram-feed-section {
    margin: 40px auto;
    padding: 0 16px;
  }

  /* Contact */
  .kontak-wrapper {
    padding: 32px 24px;
    gap: 24px;
  }

  .kontak-divider {
    display: none;
  }

  /* Footer */
  .footer {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  /* Inner page */
  .inner-page {
    padding: 32px 16px 40px;
  }
}


/* Opsional: Penanganan ekstra jika layar sangat pendek (landscape HP) */
@media (max-height: 450px) and (orientation: landscape) {
  .date-card {
    max-width: 135px;
     flex-shrink: 0;
    /* Lebih kecil lagi */
  }
}
/* ============================================================
   RESPONSIVE — MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    .about-content p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: justify;
}

.overlay-close {
    font-size: 1.6rem;
    padding: 6px 10px;
  }
  /* Hero cards: single column on very small screens */
  .hero-cards {
    grid-template-columns: 1fr;
  }

  .card-img {
    height: 70px;
    font-size: 1.5rem;
  }

  .date-label {
    font-size: 0.7rem;
    padding: 8px;
  }
  .date-card{
      width: 100%;
      margin: auto;
  }

  /* Countdown */
  .countdown-box {
    font-family: 'Digital7', sans-serif !important;
    width: 78px;
    height: 120px;
    font-size: 2.5rem;
  }

  .countdown-label {
    font-size: 0.75rem;
  }

  /* Tabs: show short text */
  .tab-btn .full-text  { display: none; }
  .tab-btn .short-text { display: inline; }

  .tab-btn {
    padding: 10px 16px;
    font-size: 0.82rem;
    min-width: unset;
  }

  /* Grids → single column */
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Accordion indent reduced */
  .accordion-body ol,
  .accordion-body ul {
    padding-left: 28px;
  }

  .accordion-body ol[type="a"] li {
    padding-left: 18px;
  }

  /* Back to top repositioned */
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    padding: 10px;
  }
}
/* ============ PERBAIKAN OVERFLOW MOBILE ============ */
/* Pastikan container utama tidak menyebabkan scroll horizontal */
html, body {
  overflow-x: hidden;
  width: 100%;
}

main, .inner-page, .container {
  overflow-x: hidden;
}

/* Perbaikan umum untuk elemen yang mungkin overflow */
.jadwal-card,
.benefit-card,
.accordion-item,
.instagram-card {
  max-width: 100%;
  overflow: hidden;
}

/* Accordion body padding adjustment */
.accordion-body {
  word-break: break-word;
}

.accordion-body ol,
.accordion-body ul {
  padding-left: 24px;
  padding-right: 8px;
}

.accordion-body li {
  word-break: break-word;
}

/* Jadwal info wrap */
.jadwal-info p {
  flex-wrap: wrap;
}

/* Tab button wrap */
.tab-btn {
  white-space: normal;
  word-break: keep-all;
}

/* Pastikan gambar tidak overflow */
img, iframe, table {
  max-width: 100%;
  height: auto;
}
 @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+3:wght@400;500;600&display=swap');

    * { box-sizing: border-box; margin: 0; padding: 0; }

  
    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: 28px;
      font-weight: 600;
      color: #0A2B1F;
      margin-bottom: 8px;
    }


    /* Overlay & Modal */
    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      display: none;
      align-items: flex-start;
      justify-content: center;
      z-index: 9999;
      padding: 20px;
      overflow-y: auto;
    }

    .overlay.active {
      display: flex;
    }

    .modal {
      background: #ffffff;
      border-radius: 24px;
      width: 100%;
      max-width: 760px;
      margin: auto;
      padding: 1.6rem;
      position: relative;
      color: #111;
      box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.2rem;
      border-bottom: 1px solid #e9ecef;
      padding-bottom: 0.75rem;
    }

    .modal-title {
      font-family: 'Playfair Display', serif;
      font-size: 22px;
      font-weight: 700;
      color: #0A2B1F;
    }

    .modal-subtitle {
      font-size: 12px;
      color: #5f6c7a;
      margin-top: 2px;
    }

    .close-btn {
      background: none;
      border: 1px solid #dee2e6;
      border-radius: 40px;
      width: 34px;
      height: 34px;
      cursor: pointer;
      color: #495057;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.2s;
    }

    .close-btn:hover {
      background: #f1f3f5;
    }

    .section-label {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #1D9E75;
      margin: 1.5rem 0 0.9rem;
      border-left: 3px solid #1D9E75;
      padding-left: 10px;
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px 18px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .form-group.full {
      grid-column: 1/-1;
    }

    .form-group label {
      font-size: 12px;
      color: #2c3e2f;
      font-weight: 600;
    }

    .form-group input {
      border: 1px solid #ced4da;
      border-radius: 12px;
      padding: 9px 12px;
      font-size: 14px;
      color: #111;
      background: #fff;
      outline: none;
      font-family: 'Source Sans 3', sans-serif;
      transition: 0.2s;
    }

    .form-group input:focus {
      border-color: #1D9E75;
      box-shadow: 0 0 0 3px rgba(29,158,117,0.15);
    }

    /* Peserta block style */
    .peserta-block {
      background: #fbfdfc;
      border-radius: 18px;
      padding: 14px 16px;
      margin-bottom: 14px;
      border: 1px solid #e2efe9;
      transition: 0.1s;
      position: relative;
    }

    .peserta-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }

    .peserta-num {
      font-size: 13px;
      font-weight: 700;
      color: #1D9E75;
      background: #e2f3ed;
      padding: 3px 10px;
      border-radius: 40px;
      display: inline-block;
    }

    .btn-hapus-peserta {
      background: none;
      border: 1px solid #f1b0b0;
      border-radius: 30px;
      padding: 5px 14px;
      font-size: 12px;
      font-weight: 600;
      color: #c7362b;
      cursor: pointer;
      font-family: 'Source Sans 3', sans-serif;
      transition: 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #fff5f5;
    }

    .btn-hapus-peserta:hover {
      background: #fce4e4;
      border-color: #b91c1c;
      color: #a51d1d;
    }

    .peserta-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .add-btn {
      background: none;
      border: 1.5px dashed #1D9E75;
      border-radius: 40px;
      padding: 10px 14px;
      font-size: 13px;
      font-weight: 600;
      color: #1D9E75;
      cursor: pointer;
      width: 100%;
      margin-top: 8px;
      font-family: 'Source Sans 3', sans-serif;
      transition: 0.2s;
    }

    .add-btn:hover {
      background: #eafaf4;
    }

    .ttd-section {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-top: 6px;
    }

    .ttd-box {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .ttd-label {
      font-size: 13px;
      font-weight: 700;
      color: #2c3e2f;
    }

    .canvas-wrap {
      position: relative;
      border: 1px solid #cfdfd7;
      border-radius: 16px;
      background: #ffffff;
      overflow: hidden;
      cursor: crosshair;
      min-height: 130px;
      box-shadow: inset 0 1px 2px #0001;
    }

    .canvas-wrap canvas {
      display: block;
      width: 100%;
      height: 130px;
      touch-action: none;
      background: white;
    }

    .ttd-actions {
      display: flex;
      gap: 10px;
      margin-top: 6px;
      align-items: center;
    }

    .ttd-clear {
      background: #f1f3f5;
      border: none;
      border-radius: 30px;
      padding: 5px 14px;
      font-size: 12px;
      font-weight: 500;
      color: #495057;
      cursor: pointer;
    }

    .ttd-clear:hover {
      background: #e9ecef;
    }

    .footer-actions {
      display: flex;
      gap: 12px;
      justify-content: flex-end;
      margin-top: 28px;
      padding-top: 18px;
      border-top: 1px solid #e9ecef;
    }

    .btn-cancel {
      background: none;
      border: 1px solid #ced4da;
      border-radius: 40px;
      padding: 9px 24px;
      font-size: 14px;
      font-weight: 600;
      color: #5f6c7a;
      cursor: pointer;
    }

    .btn-cancel:hover {
      background: #f8f9fa;
    }

    .btn-print {
      background: #1D9E75;
      border: none;
      border-radius: 40px;
      padding: 9px 24px;
      font-size: 14px;
      color: white;
      cursor: pointer;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: 0.2s;
    }

    .btn-print:hover {
      background: #0F6E56;
    }

    @media(max-width: 600px) {
      .modal {
        padding: 1.2rem;
      }
      .form-grid, .peserta-row, .ttd-section {
        grid-template-columns: 1fr;
      }
      .peserta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
    }