.home-masthead.home-masthead-visual-only .masthead-lines {
  background:
    linear-gradient(90deg, rgba(8, 47, 37, .98) 0%, rgba(10, 65, 48, .93) 38%, rgba(10, 64, 47, .68) 62%, rgba(9, 49, 38, .28) 100%),
    linear-gradient(0deg, rgba(4, 31, 24, .34), transparent 58%);
}

.home-masthead.home-masthead-visual-only { min-height: 380px; }

.hero-official-identity {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: start;
  justify-content: flex-end;
  min-height: 380px;
  padding-top: 32px;
  padding-bottom: 32px;
  color: #fff;
}

.hero-official-brand {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
  min-width: 0;
}

.hero-official-seal {
  flex: 0 0 auto;
  width: clamp(96px, 10vw, 122px);
  height: clamp(96px, 10vw, 122px);
  border: 4px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 30, 20, .28);
}

.hero-official-copy {
  min-width: 0;
  max-width: 790px;
  text-shadow: 0 3px 18px rgba(0, 30, 20, .45);
}

.hero-official-copy p {
  margin: 0;
  color: #fff;
  font-size: clamp(.92rem, 1.45vw, 1.2rem);
  font-weight: 400;
  line-height: 1.2;
}

.hero-official-copy p:first-child {
  color: #f2c29e;
  font-size: clamp(.72rem, 1vw, .86rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-official-copy p:last-child {
  color: #e5f0eb;
  font-size: clamp(.82rem, 1.15vw, 1rem);
  font-weight: 700;
  letter-spacing: .025em;
}

.hero-official-copy h1 {
  margin: 7px 0 6px;
  padding-top: 7px;
  border-top: 3px solid rgba(255, 255, 255, .95);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.85rem, 3.3vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.hero-official-copy h1 span { white-space: nowrap; }

.hero-government-marks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 30px);
}

.hero-deped-symbol {
  display: block;
  width: clamp(82px, 8.5vw, 104px);
  height: clamp(82px, 8.5vw, 104px);
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #07518a;
  filter: drop-shadow(0 12px 22px rgba(0, 30, 20, .25));
}

.hero-deped-symbol img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
}

.hero-bagong-pilipinas-logo {
  display: block;
  width: clamp(82px, 8.5vw, 105px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 30, 20, .25));
}

@media (max-width: 900px) {
  .home-masthead.home-masthead-visual-only { min-height: 340px; }

  .hero-official-identity {
    min-height: 340px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero-official-brand { gap: 16px; }
  .hero-official-copy h1 { font-size: clamp(1.7rem, 4.5vw, 2.35rem); }

  .hero-government-marks {
    flex-direction: column;
    gap: 14px;
  }

  .hero-deped-symbol,
  .hero-bagong-pilipinas-logo { width: 78px; }

  .hero-deped-symbol { height: 78px; }
}

@media (max-width: 700px) {
  .home-masthead.home-masthead-visual-only { min-height: 300px; }

  .hero-official-identity {
    display: flex;
    align-items: start;
    justify-content: flex-end;
    min-height: 300px;
    padding-top: 22px;
    padding-bottom: 22px;
    text-align: left;
  }

  .hero-official-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

  .hero-official-seal {
    width: 82px;
    height: 82px;
    border-width: 3px;
  }

  .hero-official-copy { width: 100%; }

  .hero-official-copy p { font-size: clamp(.82rem, 3.8vw, 1rem); }

  .hero-official-copy h1 {
    margin: 6px 0;
    padding-top: 6px;
    border-top-width: 2px;
    font-size: clamp(1.45rem, 6.8vw, 1.95rem);
    line-height: 1.1;
  }

  .hero-government-marks {
    flex-direction: row;
    justify-content: flex-end;
    gap: 13px;
  }

  .hero-deped-symbol,
  .hero-bagong-pilipinas-logo { width: 62px; }

  .hero-deped-symbol { height: 62px; }
}

@media (max-width: 390px) {
  .hero-official-copy h1 span { white-space: normal; }

  .hero-deped-symbol,
  .hero-bagong-pilipinas-logo { width: 54px; }

  .hero-deped-symbol { height: 54px; }
}
