/* ============================================
   Home Page Styles
   ============================================ */

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(11, 31, 43, 0.3) 0%,
      rgba(1, 15, 22, 0.0) 30%,
      rgba(1, 15, 22, 0.0) 70%,
      rgba(1, 15, 22, 0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-16);
  width: 100%;
}

.hero__content-inner {
  max-width: 760px;
  margin-left: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  display: block;
  margin: 0;
  line-height: 0;
}

.hero__title img {
  width: 760px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(86, 190, 211, 0.35));
}

.hero__date {
  margin: var(--space-8) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-text-primary);
  text-align: center;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-10) auto 0;
  padding: 0;
  width: 320px;
  height: 78px;
  background: none;
  transition: transform var(--transition-base);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/apply-now-btn.webp') no-repeat center/contain;
  z-index: 1;
}

.hero__cta-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--color-deep-ocean);
  text-transform: uppercase;
  padding-top: 4px;
}

.hero__cta:hover {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 10px 28px rgba(86, 190, 211, 0.6));
}

/* ---- Secretariat Letter Section ---- */
.letter {
  position: relative;
  background: var(--color-deep-ocean);
  padding: var(--space-16) 0 var(--space-20);
  overflow: hidden;
}

.letter::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(9, 107, 179, 0.08) 0%,
      transparent 60%);
  pointer-events: none;
}

.letter__inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.letter__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-10) 0;
  text-transform: uppercase;
}

.letter__body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

.letter__body p { margin-bottom: var(--space-5); }

.letter__body p:first-of-type { font-weight: 500; }

.letter__sig {
  margin-top: var(--space-8);
  font-style: normal;
}

.letter__sig p {
  margin-bottom: var(--space-1);
  line-height: 1.5;
}

.letter__sig .signer-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-primary);
}

.letter__sig .signer-role {
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* ---- Particle / bubble decoration (subtle) ---- */
.letter__bubbles {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(127, 229, 219, 0.6) 1px, transparent 2px),
    radial-gradient(circle at 80% 60%, rgba(127, 229, 219, 0.4) 1px, transparent 2px),
    radial-gradient(circle at 50% 90%, rgba(127, 229, 219, 0.5) 1px, transparent 2px);
  background-size: 80px 80px, 120px 120px, 100px 100px;
}

/* ---- Mobile responsive ---- */
@media (max-width: 900px) {
  .hero__content-inner { margin-left: 0; }
  .hero__title img { width: 100%; }
  .hero__date { font-size: var(--text-base); }
  .hero__cta { width: 260px; height: 64px; }
  .hero__cta-label { font-size: var(--text-sm); letter-spacing: 0.18em; }

  .letter { padding: var(--space-10) 0 var(--space-12); }
  .letter__title { font-size: var(--text-xl); }
  .letter__body { font-size: var(--text-base); line-height: 1.7; }
}

@media (max-width: 600px) {
  .hero__title img { width: 95%; }
}
