/* =============================================================================
 * STYLING COUNTDOWN TIMER - STANDAR MODERN PRATIWI
 * SMK PRATIWI PRABUMULIH
 * FILE: kelulusan/css/countdown.css
 * DESAIN BERSIH, TERANG, KUBUS WAKTU VIBRANT BLUE & KUTIPAN INSPIRATIF
 * DIOPTIMALKAN AGAR SELALU 1 BARIS PRESISI DI SEMUA UKURAN LAYAR HP
 * ============================================================================= */

.countdown-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 18px 22px;
  margin: 15px auto 25px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  max-width: 520px;
  box-sizing: border-box;
}

.countdown-title {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.countdown-title .cd-icon {
  font-size: 1.2rem;
  display: inline-block;
  color: #0284c7;
}

/* TIMER GRID: TERKUNCI 1 BARIS (4 KOLOM EQUAL) DENGAN CSS GRID */
.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.timer-unit {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border-radius: 14px;
  padding: 16px 8px 12px;
  min-width: 0; /* Mencegah overflow flex/grid */
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timer-unit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.45);
}

.timer-val {
  font-size: 2.1rem;
  font-weight: 800;
  font-family: var(--font-main);
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.timer-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.95);
}

/* Garis Pembatas Aksen & Kutipan Inspiratif */
.countdown-divider {
  height: 2px;
  background: #1e3a8a;
  max-width: 400px;
  margin: 22px auto 14px;
  border-radius: 2px;
}

.countdown-quote {
  font-style: italic;
  color: #475569;
  font-size: 0.86rem;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
  padding: 0 8px;
}

/* =============================================================================
 * RESPONSIF MOBILE: TETAP 1 BARIS & TAMPIL TEGAS DI LAYAR SMARTPHONE
 * ============================================================================= */
@media (max-width: 480px) {
  .countdown-box {
    padding: 18px 10px 16px;
    border-radius: 16px;
  }

  .countdown-title {
    font-size: 0.85rem;
    margin-bottom: 14px;
    letter-spacing: 0.4px;
  }

  .countdown-title .cd-icon {
    font-size: 1rem;
  }

  .timer-grid {
    gap: 8px;
  }

  .timer-unit {
    padding: 12px 4px 10px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.3);
  }

  .timer-val {
    font-size: 1.6rem; /* Tetap besar, tegas & sangat mudah dibaca */
    line-height: 1.1;
  }

  .timer-lbl {
    font-size: 0.65rem;
    margin-top: 4px;
    letter-spacing: 0.5px;
  }

  .countdown-divider {
    max-width: 90%;
    margin: 18px auto 12px;
  }

  .countdown-quote {
    font-size: 0.8rem;
    line-height: 1.45;
  }
}

/* HP Berlayar Sangat Sempit (iPhone SE / Layar <= 360px) */
@media (max-width: 360px) {
  .countdown-box {
    padding: 16px 8px 14px;
  }

  .countdown-title {
    font-size: 0.78rem;
  }

  .timer-grid {
    gap: 5px;
  }

  .timer-unit {
    padding: 10px 2px 8px;
    border-radius: 10px;
  }

  .timer-val {
    font-size: 1.35rem;
  }

  .timer-lbl {
    font-size: 0.58rem;
    letter-spacing: 0;
  }
}
