:root {
  --home-max-width: 78rem;
  --home-space: clamp(1.25rem, 3vw, 2rem);
}

.home-shell {
  min-height: 100vh;
  background: var(--color-bg);
}

.home-container {
  width: min(100% - 2 * var(--home-space), var(--home-max-width));
  margin: 0 auto;
}

.home-header {
  position: relative;
  z-index: 20;
  padding: 1.25rem 0;
}

.home-header-row,
.home-nav,
.home-actions,
.home-logo,
.home-footer,
.home-news-heading,
.home-newsletter-content,
.home-partners-content {
  display: flex;
  align-items: center;
}

.home-header-row,
.home-news-heading,
.home-newsletter-content,
.home-partners-content {
  justify-content: space-between;
  gap: 1.5rem;
}

.home-logo {
  flex-shrink: 0;
  gap: .75rem;
}

.home-logo-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius);
  background: var(--color-primary);
  box-shadow: 0 .5rem 1.25rem var(--color-shadow);
}

.home-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-logo-fallback {
  color: var(--color-primary-contrast);
  font-size: 1.05rem;
  font-weight: 900;
}

.home-logo-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.home-logo-tagline {
  display: block;
  color: var(--color-primary);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.home-nav {
  gap: 1.25rem;
}

.home-nav a,
.home-footer a {
  font-weight: 700;
  transition: color .2s ease;
}

.home-nav a:hover,
.home-footer a:hover {
  color: var(--color-primary);
}

.home-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.home-menu-button {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: .55rem .9rem;
  background: transparent;
  color: var(--color-text);
  font-weight: 700;
}

.home-button,
.home-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .8rem 1.25rem;
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.home-button {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: 0 .7rem 1.5rem var(--color-shadow);
}

.home-button:hover,
.home-button-secondary:hover {
  transform: translateY(-2px);
}

.home-button-secondary {
  border: 1px solid var(--color-border);
}

.home-button-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.home-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.home-kicker,
.home-section-kicker {
  color: var(--color-primary);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-kicker {
  display: inline-block;
  border-radius: 999px;
  padding: .5rem .8rem;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.home-title {
  max-width: 45rem;
  margin: 1.5rem 0 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: .98;
}

.home-accent {
  color: var(--color-primary);
}

.home-lead,
.home-urdu {
  max-width: 42rem;
  color: var(--color-muted);
  line-height: 1.8;
}

.home-lead {
  margin: 1.5rem 0 0;
  font-size: 1.1rem;
}

.home-urdu {
  margin: .5rem 0 0;
  font-size: 1.2rem;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.home-feature {
  position: relative;
  min-height: 27rem;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 1.5rem 3rem var(--color-shadow);
}

.home-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feature::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 82%, transparent), color-mix(in srgb, var(--color-text) 84%, transparent));
  content: '';
}

.home-feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 27rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--color-primary-contrast);
}

.home-feature-copy h2 {
  max-width: 28rem;
  margin: 1rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.home-feature-copy p {
  max-width: 28rem;
  margin: .75rem 0 0;
  color: color-mix(in srgb, var(--color-primary-contrast) 78%, transparent);
  line-height: 1.7;
}

.home-section {
  padding-top: clamp(3rem, 7vw, 5rem);
}

.home-news-heading {
  align-items: end;
  margin-bottom: 1.75rem;
}

.home-news-heading h2,
.home-panel h2,
.home-newsletter h2,
.home-partners h2 {
  margin: .5rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.home-news-heading p {
  max-width: 28rem;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.home-news-grid,
.home-explore-grid,
.home-panels {
  display: grid;
  gap: 1.25rem;
}

.home-news-grid {
  grid-template-columns: repeat(4, 1fr);
}

.home-news-card {
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 .3rem 1rem var(--color-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.2rem 2.5rem var(--color-shadow);
}

.home-news-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.home-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.home-news-card:hover img {
  transform: scale(1.05);
}

.home-news-icon {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  font-size: 2.75rem;
}

.home-news-copy {
  padding: 1.25rem;
}

.home-news-label {
  color: var(--color-primary);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-news-copy h3 {
  margin: .5rem 0 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.home-news-copy p,
.home-panel p,
.home-explore-card p,
.home-partners p {
  color: var(--color-muted);
  line-height: 1.7;
}

.home-news-copy p {
  margin: .75rem 0 0;
  font-size: .9rem;
}

.home-panels {
  grid-template-columns: 1.15fr .85fr;
}

.home-panel,
.home-explore-card,
.home-partners {
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.home-panel {
  background: var(--color-surface);
}

.home-panel p {
  margin: 1rem 0 0;
}

.home-panel-dark,
.home-explore-card-dark,
.home-newsletter {
  background: var(--color-text);
  color: var(--color-primary-contrast);
}

.home-panel-primary,
.home-explore-card-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.home-panel-primary p,
.home-explore-card-primary p,
.home-panel-dark p,
.home-explore-card-dark p,
.home-newsletter p {
  color: color-mix(in srgb, var(--color-primary-contrast) 72%, transparent);
}

.home-explore-grid {
  grid-template-columns: repeat(3, 1fr);
}

.home-explore-card {
  transition: transform .2s ease;
}

.home-explore-card:hover {
  transform: translateY(-3px);
}

.home-explore-card h2 {
  margin: 1rem 0 0;
  font-size: 1.6rem;
}

.home-explore-card p {
  margin: .75rem 0 0;
}

.home-explore-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-primary);
  font-weight: 800;
}

.home-explore-card-primary .home-explore-link {
  color: inherit;
}

.home-newsletter,
.home-partners {
  margin-top: clamp(3rem, 7vw, 5rem);
}

.home-newsletter-content {
  gap: 2rem;
}

.home-newsletter p {
  max-width: 38rem;
  margin: .75rem 0 0;
}

.home-newsletter-form {
  display: flex;
  gap: .75rem;
  width: min(100%, 30rem);
}

.home-newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: .8rem 1rem;
  background: color-mix(in srgb, var(--color-surface) 10%, transparent);
  color: var(--color-primary-contrast);
}

.home-newsletter-form button {
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.2rem;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-weight: 800;
  cursor: pointer;
}

.home-partners {
  background: var(--color-surface);
}

.home-partners-content {
  align-items: center;
}

.home-partners-copy {
  flex: 1;
}

.home-partner-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-partner-images img {
  border-radius: var(--radius);
  object-fit: cover;
}

.home-footer {
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: .9rem;
}

.home-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

@media (max-width: 950px) {
  .home-nav {
    gap: .8rem;
  }

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

@media (max-width: 700px) {
  .home-menu-button {
    display: block;
  }

  .home-nav {
    display: none;
    position: absolute;
    top: 5rem;
    right: var(--home-space);
    left: var(--home-space);
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: 0 1rem 2.5rem var(--color-shadow);
  }

  .home-nav.is-open {
    display: flex;
  }

  .home-header-action {
    display: none;
  }

  .home-hero,
  .home-panels,
  .home-explore-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-top: 2.5rem;
  }

  .home-news-heading,
  .home-newsletter-content,
  .home-partners-content,
  .home-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-newsletter-form {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .home-newsletter-form {
    flex-direction: column;
  }

  .home-newsletter-form button {
    width: 100%;
  }
}
