/* Dawah Premium Public Home V42 */

body.public-application
.h42-home {
  width: min(1380px, calc(100% - 40px)) !important;
  padding-top: 28px !important;
}

/* Preserve and refine existing hero */

body.public-application
.h42-home-hero {
  min-height: 255px !important;
  margin-bottom: 0 !important;
}

/* Shared headings */

.h42-section-heading,
.h42-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.h42-discovery-heading {
  padding: 33px 4px 15px;
}

.h42-section-heading > div,
.h42-panel-heading > div {
  min-width: 0;
}

.h42-section-heading span,
.h42-panel-heading span {
  color: #68825e;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.public-application
.h42-section-heading h2,
body.public-application
.h42-panel-heading h2 {
  margin: 4px 0 0;
  color: #103c31;
  letter-spacing: -0.04em;
}

body.public-application
.h42-section-heading h2 {
  font-size: 1.48rem;
}

body.public-application
.h42-section-heading > p {
  margin: 0;
  color: #75877e;
  font-size: 0.72rem;
}

/* Service dashboard */

.h42-service-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.h42-service-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 235px;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #dbe5dd;
  border-radius: 18px;
  background: #ffffff;
  color: #153e33;
  box-shadow:
    0 14px 40px rgba(5, 48, 39, 0.055);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.h42-service-card::before {
  position: absolute;
  z-index: -1;
  top: -95px;
  right: -85px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    rgba(205, 234, 132, 0.13);
  content: "";
  transition: transform 220ms ease;
}

.h42-service-card:hover {
  border-color: #b5cbb8;
  box-shadow:
    0 23px 58px rgba(5, 48, 39, 0.11);
  transform: translateY(-5px);
}

.h42-service-card:hover::before {
  transform: scale(1.2);
}

.h42-service-card > header,
.h42-service-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h42-service-number {
  color: #86958e;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.h42-service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #e8f1df;
  color: #2e654d;
}

.h42-service-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.h42-service-content {
  display: grid;
  align-content: center;
  flex: 1;
  padding: 18px 0 15px;
}

.h42-service-content small {
  color: #708764;
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.public-application
.h42-service-content h2 {
  margin: 7px 0 8px;
  color: #123d31;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

body.public-application
.h42-service-content p {
  margin: 0;
  color: #71837b;
  font-size: 0.68rem;
  line-height: 1.55;
}

.h42-service-card > footer {
  padding-top: 13px;
  border-top: 1px solid #edf1ed;
}

.h42-service-card > footer strong {
  color: #3f6454;
  font-size: 0.63rem;
}

.h42-service-card > footer > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: #0a4d3b;
  color: #ffffff;
  transition: transform 170ms ease;
}

.h42-service-card:hover
> footer > span {
  transform: translateX(3px);
}

.h42-service-card
> footer .ui-icon {
  width: 14px;
  height: 14px;
}

/* Featured Taleem card */

.h42-service-card.is-taleem {
  border-color:
    rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(210, 240, 127, 0.22),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #04392e,
      #07513f
    );
  color: #ffffff;
  box-shadow:
    0 18px 46px rgba(3, 48, 38, 0.17);
}

.h42-service-card.is-taleem::before {
  background:
    rgba(222, 246, 154, 0.1);
}

.h42-service-card.is-taleem
.h42-service-number,
.h42-service-card.is-taleem
.h42-service-content small {
  color: #bed4c8;
}

body.public-application
.h42-service-card.is-taleem
.h42-service-content h2 {
  color: #ffffff;
}

body.public-application
.h42-service-card.is-taleem
.h42-service-content p {
  color: #c2d5cc;
}

.h42-service-card.is-taleem
> footer {
  border-top-color:
    rgba(255, 255, 255, 0.12);
}

.h42-service-card.is-taleem
> footer strong {
  color: #e5f2eb;
}

.h42-service-card.is-taleem
.h42-service-icon,
.h42-service-card.is-taleem
> footer > span {
  background: #def69a;
  color: #07382d;
}

/* Individual tones */

.h42-service-card.is-media
.h42-service-icon {
  background: #e4edf3;
  color: #365f78;
}

.h42-service-card.is-services
.h42-service-icon {
  background: #eee8f5;
  color: #654d7b;
}

.h42-service-card.is-resources
.h42-service-icon {
  background: #f2ebd8;
  color: #796131;
}

.h42-service-card.is-downloads
.h42-service-icon {
  background: #fff0d9;
  color: #916325;
}

.h42-service-card.is-feedback
.h42-service-icon {
  background: #e9e9f6;
  color: #575a83;
}

/* Community panels */

.h42-community-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(315px, 0.55fr);
  gap: 12px;
  padding-top: 34px;
}

.h42-panel {
  min-width: 0;
  padding: 21px;
  border: 1px solid #dbe5dd;
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 15px 43px rgba(5, 48, 39, 0.055);
}

.h42-panel-heading {
  margin-bottom: 15px;
}

body.public-application
.h42-panel-heading h2 {
  font-size: 1.28rem;
}

.h42-panel-heading > a {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #dce5dd;
  border-radius: 10px;
  background: #f8faf7;
  color: #315a4b;
  font-size: 0.61rem;
  font-weight: 700;
  text-decoration: none;
}

.h42-panel-heading > a .ui-icon {
  width: 14px;
  height: 14px;
}

/* Latest activities */

.h42-activity-list {
  display: grid;
  gap: 7px;
}

.h42-activity-card {
  display: grid;
  grid-template-columns:
    31px
    102px
    minmax(0, 1fr)
    35px;
  min-height: 82px;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid #e0e8e1;
  border-radius: 14px;
  background: #fafcf9;
  color: #153e33;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.h42-activity-card:hover {
  border-color: #b8cdbb;
  background: #f0f6ec;
  transform: translateX(3px);
}

.h42-activity-index {
  color: #87958e;
  font-size: 0.55rem;
  font-weight: 800;
}

.h42-activity-date {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 11px;
  background:
    linear-gradient(
      145deg,
      #063d31,
      #086047
    );
}

.h42-activity-date small {
  color: #dff69a;
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.h42-activity-date strong {
  color: #ffffff;
  font-size: 0.7rem;
}

.h42-activity-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.h42-activity-copy > small {
  color: #6d855f;
  font-size: 0.49rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.h42-activity-copy > strong {
  overflow: hidden;
  color: #193f34;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h42-activity-copy > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #798a82;
  font-size: 0.58rem;
}

.h42-activity-copy .ui-icon {
  width: 13px;
  height: 13px;
}

.h42-round-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dce5dd;
  border-radius: 50%;
  color: #466a5a;
}

.h42-round-arrow .ui-icon {
  width: 14px;
  height: 14px;
}

/* Empty activities */

.h42-empty {
  display: grid;
  grid-template-columns:
    45px
    minmax(0, 1fr)
    auto;
  gap: 12px;
  align-items: center;
  min-height: 115px;
  padding: 17px;
  border: 1px dashed #cfdccf;
  border-radius: 14px;
  background: #f9fbf8;
}

.h42-empty > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #e7f0df;
  color: #35634e;
}

.h42-empty > span .ui-icon {
  width: 20px;
  height: 20px;
}

.h42-empty > div {
  display: grid;
  gap: 3px;
}

.h42-empty strong {
  color: #254b3e;
  font-size: 0.72rem;
}

.h42-empty p {
  margin: 0;
  color: #7d8d85;
  font-size: 0.61rem;
}

.h42-empty > a {
  padding: 9px 11px;
  border-radius: 9px;
  background: #07513e;
  color: #ffffff;
  font-size: 0.61rem;
  font-weight: 700;
  text-decoration: none;
}

/* Country panel */

.h42-country-panel {
  background:
    linear-gradient(
      145deg,
      rgba(231, 241, 220, 0.7),
      rgba(255, 255, 255, 0) 48%
    ),
    #ffffff;
}

.h42-country-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0 16px;
  border-bottom: 1px solid #e0e7e0;
}

.h42-large-flag {
  display: grid;
  width: 82px;
  height: 65px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d9e3da;
  border-radius: 13px;
  background: #ffffff;
  box-shadow:
    0 8px 19px rgba(5, 48, 39, 0.07);
}

.h42-large-flag img {
  width: 65px;
  height: auto;
}

.h42-country-identity > div {
  display: grid;
  gap: 2px;
}

.h42-country-identity small {
  color: #758b69;
  font-size: 0.49rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.h42-country-identity strong {
  color: #153f33;
  font-size: 1.15rem;
}

.h42-country-identity > div > span {
  color: #829089;
  font-size: 0.59rem;
  font-weight: 700;
}

.h42-country-stat {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
}

.h42-stat-ring {
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  place-items: center;
  align-content: center;
  border: 6px solid #dcebcf;
  border-top-color: #4e8b68;
  border-radius: 50%;
  background: #ffffff;
}

.h42-stat-ring strong {
  color: #174838;
  font-size: 1.3rem;
  line-height: 1;
}

.h42-stat-ring small {
  color: #78906d;
  font-size: 0.43rem;
  font-weight: 800;
}

.h42-country-stat > div strong {
  color: #244a3d;
  font-size: 0.7rem;
}

.h42-country-stat p {
  margin: 4px 0 0;
  color: #7d8d85;
  font-size: 0.59rem;
  line-height: 1.45;
}

.h42-country-links {
  display: grid;
  gap: 7px;
}

.h42-country-links a {
  display: grid;
  grid-template-columns:
    35px
    minmax(0, 1fr)
    15px;
  min-height: 56px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #dfe7df;
  border-radius: 12px;
  background: #fafcf9;
  color: #173f33;
  text-decoration: none;
}

.h42-country-links a > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  background: #e8f0df;
  color: #35634e;
}

.h42-country-links a > span .ui-icon {
  width: 16px;
  height: 16px;
}

.h42-country-links a > div {
  display: grid;
  gap: 2px;
}

.h42-country-links strong {
  color: #284b3f;
  font-size: 0.64rem;
}

.h42-country-links small {
  color: #84928b;
  font-size: 0.51rem;
}

.h42-country-links a > .ui-icon {
  width: 14px;
  height: 14px;
  color: #5e796c;
}

/* Listen callout */

.h42-listen-callout {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns:
    180px
    minmax(0, 1fr)
    auto;
  min-height: 155px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  margin-top: 34px;
  padding: 23px 27px;
  border:
    1px solid rgba(255, 255, 255, 0.1);
  border-radius: 21px;
  background:
    radial-gradient(
      circle at 95% -40%,
      rgba(218, 244, 142, 0.25),
      transparent 38%
    ),
    linear-gradient(
      130deg,
      #04382e,
      #07503e
    );
  color: #ffffff;
  box-shadow:
    0 22px 55px rgba(3, 48, 38, 0.16);
}

.h42-listen-art {
  display: flex;
  align-items: center;
  gap: 17px;
}

.h42-disc {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  border:
    13px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: #def69a;
  color: #07382d;
  box-shadow:
    0 13px 28px rgba(0, 27, 20, 0.2);
}

.h42-disc .ui-icon {
  width: 22px;
  height: 22px;
}

.h42-wave {
  display: flex;
  height: 55px;
  align-items: center;
  gap: 4px;
}

.h42-wave i {
  display: block;
  width: 3px;
  border-radius: 20px;
  background: #def69a;
}

.h42-wave i:nth-child(1) {
  height: 18px;
}

.h42-wave i:nth-child(2) {
  height: 33px;
}

.h42-wave i:nth-child(3) {
  height: 47px;
}

.h42-wave i:nth-child(4) {
  height: 27px;
}

.h42-wave i:nth-child(5) {
  height: 40px;
}

.h42-wave i:nth-child(6) {
  height: 22px;
}

.h42-wave i:nth-child(7) {
  height: 13px;
}

.h42-listen-copy {
  min-width: 0;
}

.h42-listen-copy > span {
  color: #def69a;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

body.public-application
.h42-listen-copy h2 {
  margin: 5px 0 6px;
  color: #ffffff;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

body.public-application
.h42-listen-copy p {
  max-width: 650px;
  margin: 0;
  color: #bfd3c8;
  font-size: 0.68rem;
}

.h42-listen-callout > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 11px;
  background: #def69a;
  color: #07382d;
  font-size: 0.67rem;
  font-weight: 750;
  text-decoration: none;
}

.h42-listen-callout > a .ui-icon {
  width: 15px;
  height: 15px;
}

/* Tablet */

@media (max-width: 1050px) {
  .h42-service-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .h42-community-layout {
    grid-template-columns:
      minmax(0, 1.15fr)
      minmax(285px, 0.85fr);
  }
}

@media (max-width: 850px) {
  .h42-community-layout {
    grid-template-columns: 1fr;
  }

  .h42-country-panel {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .h42-country-panel
  .h42-panel-heading,
  .h42-country-panel
  .h42-country-links {
    grid-column: 1 / -1;
  }

  .h42-listen-callout {
    grid-template-columns:
      145px
      minmax(0, 1fr);
  }

  .h42-listen-callout > a {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Mobile */

@media (max-width: 760px) {
  body.public-application
  .h42-home {
    width: 100% !important;
    padding:
      12px 12px
      calc(100px + env(safe-area-inset-bottom)) !important;
  }

  body.public-application
  .h42-home-hero {
    min-height: 0 !important;
  }

  .h42-discovery-heading {
    align-items: flex-start;
    padding: 27px 2px 13px;
  }

  .h42-section-heading > p {
    display: none;
  }

  .h42-service-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .h42-service-card {
    min-height: 195px;
    padding: 16px;
    border-radius: 16px;
  }

  .h42-community-layout {
    gap: 10px;
    padding-top: 27px;
  }

  .h42-panel {
    padding: 16px;
    border-radius: 17px;
  }

  .h42-activity-card {
    grid-template-columns:
      27px
      91px
      minmax(0, 1fr)
      32px;
    gap: 8px;
    padding: 8px;
  }

  .h42-activity-date {
    min-height: 53px;
    padding: 7px 8px;
  }

  .h42-country-panel {
    display: block;
  }

  .h42-listen-callout {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-top: 27px;
    padding: 20px;
    border-radius: 18px;
  }

  .h42-listen-callout > a {
    grid-column: auto;
    justify-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .h42-panel-heading {
    align-items: flex-start;
  }

  .h42-panel-heading > a {
    min-width: 37px;
    font-size: 0;
  }

  .h42-activity-card {
    grid-template-columns:
      84px
      minmax(0, 1fr)
      32px;
  }

  .h42-activity-index {
    display: none;
  }

  .h42-activity-copy > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .h42-empty {
    grid-template-columns:
      42px
      minmax(0, 1fr);
  }

  .h42-empty > a {
    grid-column: 1 / -1;
    text-align: center;
  }

  .h42-listen-art {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .h42-service-card,
  .h42-service-card::before,
  .h42-service-card > footer > span,
  .h42-activity-card {
    transition: none !important;
  }
}