@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --surface: #ffffff;
  --bg: #f4f1e8;
  --accent: #0b5f5d;
  --accent-2: #d95f2a;
  --accent-soft: #e5f6f2;
  --text: #142022;
  --border: #d7dfde;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at 10% 20%, #ffffff70 0%, #ffffff00 38%),
    radial-gradient(circle at 90% 0%, #e8d4be 0%, #f4f1e8 38%),
    linear-gradient(140deg, #f7f4eb 0%, #efe7d7 100%);
  min-height: 100vh;
  margin: 0;
  color: var(--text);
}

.page-shell {
  padding-top: clamp(16px, 4vw, 32px);
  padding-bottom: clamp(24px, 5vw, 40px);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  letter-spacing: 0.01em;
  margin: 0;
}

.hero-card {
  background:
    radial-gradient(circle at top right, #ffd7c080 0%, #ffffff00 35%),
    linear-gradient(128deg, #fcfdfd 0%, #e5f6f2 100%);
  border: 1px solid #c7e3dd;
  border-radius: 18px;
  box-shadow: 0 10px 26px #0b5f5d14;
  animation: fade-slide 0.5s ease;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #b7d4d4;
  background: linear-gradient(120deg, #f8ffff 0%, #edf7f6 100%);
  box-shadow: 0 10px 20px #0b5f5d14;
}

.brand-bar__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-logo {
  width: clamp(120px, 15vw, 190px);
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid #d5d5d5;
  background: #fff;
}

.brand-chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #113b67;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.hero-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #b8cdd9;
  box-shadow: 0 14px 28px #24353f2b;
  background: #0f2740;
}

.hero-showcase__banner {
  width: 100%;
  aspect-ratio: 851 / 315;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.05);
}

.hero-showcase__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 20px;
  color: #fff;
  background: linear-gradient(to top, #00162ca3 0%, #00162c00 90%);
}

.hero-showcase__content h2 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 8px;
}

.hero-showcase__content p {
  max-width: 860px;
  margin-bottom: 10px;
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid #dae1e3;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.card,
form.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px #22343c14;
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px #22343c1d;
}

.btn {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 600;
}

.btn.btn-sm {
  min-height: 38px;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: #094947;
  border-color: #094947;
}

.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--accent);
}

.form-label {
  font-weight: 600;
}

.form-control,
.form-select {
  min-height: 46px;
  border-radius: 10px;
  font-size: 16px;
  border: 1px solid #d1d8da;
}

.form-control:focus,
.form-select:focus {
  border-color: #66a8a0;
  box-shadow: 0 0 0 0.2rem #0b5f5d1f;
}

.form-control[type="file"] {
  min-height: 52px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.form-text {
  display: block;
  margin-top: 6px;
}

.submit-row .btn {
  width: 100%;
}

.section-title {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-left: 4px solid var(--accent-2);
  border-radius: 6px;
  background: #fff5ef;
  color: #71361b;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-card {
  border: 1px solid #d8e8e2;
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(120deg, #f8fffe 0%, #eef9f5 100%);
}

.info-card h2 {
  color: #114a4a;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid #b9d4d5;
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(120deg, #f7ffff 0%, #ecf8f8 100%);
}

.admin-hero__content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo {
  width: clamp(100px, 10vw, 140px);
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #d1d5d6;
  background: #fff;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-chip {
  min-width: 108px;
  background: #f2f9f9;
  border: 1px solid #d8ecea;
  border-radius: 12px;
  padding: 8px 10px;
}

.stat-chip__label {
  display: block;
  font-size: 0.75rem;
  color: #496d71;
}

.stat-chip__value {
  font-size: 1rem;
}

.admin-entry {
  animation: fade-slide 0.3s ease;
}

.admin-entry__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.entry-badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #0b5f5d;
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-field {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 8px;
  border-bottom: 1px dashed #dfe5e5;
  padding: 5px 0;
}

.admin-field__key {
  color: #4e5d60;
  text-transform: capitalize;
  font-weight: 600;
  font-size: 0.88rem;
}

.admin-field__value {
  word-break: break-word;
}

.admin-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed #e2e8ea;
  padding: 6px 0;
}

.admin-doc a {
  text-decoration: none;
}

.admin-doc a:hover {
  text-decoration: underline;
}

.otp-group .btn {
  white-space: nowrap;
}

.invalid-feedback {
  display: block;
}

@media (min-width: 576px) {
  .submit-row .btn {
    width: auto;
    min-width: 220px;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-card {
    padding: 20px !important;
  }

  .display-6 {
    font-size: 1.85rem;
  }

  .page-header .back-link-btn {
    width: 100%;
  }

  .brand-bar__left {
    width: 100%;
  }

  .brand-bar__right {
    width: 100%;
  }

  .brand-bar__right .btn {
    width: 100%;
  }

  .hero-showcase__banner {
    aspect-ratio: 851 / 315;
  }

  .hero-showcase__content {
    padding: 16px 14px;
  }

  .otp-group {
    display: grid;
    gap: 8px;
  }

  .otp-group .form-control,
  .otp-group .btn {
    border-radius: 10px !important;
    width: 100%;
  }

  .card-body .btn {
    width: 100%;
  }

  .admin-field {
    grid-template-columns: 1fr;
  }
}

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