/* Muslim Graves — Thanatoz shell tweaks */

/* No Thanatoz wait / preloader / scroll % counter */
.preloader,
.back-to-top,
#backToTop,
.progress-percentage {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Header in normal flow so it never covers the hero image */
.header-layout1,
.header-layout2 {
  position: relative;
  top: 0;
}

/* Home hero — less top padding now that header is above, not over, the image */
.hero-layout2 {
  padding-top: 120px !important;
  padding-bottom: 160px !important;
  background-position: center top !important;
}

/* White logo on green header — drop the theme’s white logo plate */
.header-layout1 .header-logo {
  background-color: transparent;
  padding: 8px 0;
}

.header-logo .logo,
.mobile-logo .logo,
.footer-logo img {
  max-height: 48px;
  width: auto;
}

/* Keep logo / nav / Search on a single header row */
.header-layout1 .sticky-active > .container > .row {
  flex-wrap: nowrap;
  align-items: center;
}

.header-layout1 .main-menu > ul > li > a {
  padding-left: 12px;
  padding-right: 12px;
}

.header-layout1 .header-info {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.header-layout1 .header-buttons {
  flex-shrink: 0;
}

.header-layout1 .header-buttons .vs-btn {
  white-space: nowrap;
  padding: 12px 20px;
}

/* Hero CTAs stay side-by-side on desktop */
.hero-layout2 .hero-btn {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.hero-layout2 .hero-btn .vs-btn {
  margin-left: 0 !important;
  white-space: nowrap;
}

/* News grid: center when fewer than 3 cards */
.blog-layout2 .row.g-4 {
  justify-content: center;
}

/* ---------- Photo background shading ---------- */
.breadcumb-wrapper,
.hero-layout2,
.vs-video.video-style2,
.footer-layout2 {
  position: relative;
  z-index: 1;
  background-size: cover;
  background-position: center;
}

.breadcumb-wrapper {
  background-color: #0a2e24;
}

.breadcumb-wrapper::before,
.hero-layout2::before,
.footer-layout2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.breadcumb-wrapper::before {
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.74) 0%,
    rgba(7, 69, 56, 0.8) 55%,
    rgba(0, 0, 0, 0.58) 100%
  );
}

.hero-layout2::before {
  background: linear-gradient(
    97deg,
    rgba(0, 0, 0, 0.7) 28%,
    rgba(7, 69, 56, 0.76) 88%
  ) !important;
}

.footer-layout2::before {
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(7, 69, 56, 0.82) 55%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

/* Theme uses ::after on video CTA — retint to brand green */
.vs-video.video-style2::after {
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(7, 69, 56, 0.78) 100%
  ) !important;
}

.breadcumb-wrapper .container,
.breadcumb-wrapper .breadcumb-content,
.hero-layout2 .hero-content,
.vs-video.video-style2 .container,
.footer-layout2 > * {
  position: relative;
  z-index: 1;
}

.breadcumb-title,
.breadcumb-menu,
.breadcumb-menu span,
.breadcumb-menu a {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.breadcumb-menu a:hover {
  color: var(--secondary-color) !important;
}

.hero-layout2 .hero-title,
.hero-layout2 .hero-text,
.hero-layout2 .hero-subtitle {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

/* Square up cards (less pill/soft radius) */
.service-style2,
.service-style3,
.choose-style1,
.choose-img,
.choose-img img,
.mg-link-cards .service-style2,
.service-style3 .service-img {
  border-radius: 4px !important;
}

.service-style2 .service-img,
.service-style2 .service-img img {
  border-radius: 0;
}

.service-style2 .service-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.service-style2 .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tool cards: diagram icons in the header, no photo panel */
.mg-service-card {
  height: 100%;
  border-radius: 4px !important;
}

.mg-service-card .service-content {
  padding: 28px 24px 30px !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mg-service-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}

.mg-service-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.mg-service-card .service-title {
  margin-bottom: 10px !important;
}

.mg-service-card:hover .mg-service-icon img {
  filter: brightness(0) invert(1);
}

.choose-img {
  aspect-ratio: 1 / 1.15;
}

.choose-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soft orange page wash (inner pages) — not the orange “Muslim Graves” eyebrow */
body.mg-inner-page {
  background-color: #faf1e0;
}

/* Inner pages: start under the in-flow header */
.mg-inner-page .mg-content-area,
.mg-inner-page .blog-layout2 {
  padding-top: 56px;
}

.mg-page-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-color);
}

.mg-page-crumb a {
  color: var(--theme-color);
}

.mg-page-crumb a:hover {
  color: var(--secondary-color);
}

.mg-content-area {
  padding-top: 80px;
  padding-bottom: 80px;
}

.mg-inner-page .mg-content-area {
  padding-bottom: 80px;
}

.mg-inner-page .title-area .sec-title {
  margin-bottom: 28px;
}

.mg-page-body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.8;
}

.mg-page-body h2,
.mg-page-body h3,
.mg-page-body h4 {
  font-family: var(--title-font);
  color: var(--title-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.mg-page-body ol,
.mg-page-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.mg-page-body li {
  margin-bottom: 0.4rem;
}

/* Section cards with bullet lists */
.mg-page-body > .mg-section-card,
.mg-page-body > .mg-link-cards,
.mg-page-body > .mg-doc-table,
.mg-page-body > .table-responsive {
  margin-bottom: 22px;
}

.mg-section-card {
  background: #fff;
  border: 1px solid rgba(7, 69, 56, 0.14);
  border-left: 4px solid var(--theme-color);
  border-radius: 4px;
  padding: 22px 26px 20px;
}

.mg-section-card__title {
  font-family: var(--title-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 14px;
  line-height: 1.3;
}

.mg-section-card__body > :first-child {
  margin-top: 0;
}

.mg-section-card__body > :last-child {
  margin-bottom: 0;
}

.mg-bullet-list,
.mg-section-card__body > ul,
.mg-section-card__body ul.mg-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mg-bullet-list li,
.mg-section-card__body > ul > li {
  position: relative;
  padding: 8px 0 8px 1.35rem;
  border-bottom: 1px solid rgba(7, 69, 56, 0.08);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-color);
}

.mg-bullet-list li:last-child,
.mg-section-card__body > ul > li:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.mg-bullet-list li::before,
.mg-section-card__body > ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--theme-color);
}

.mg-section-card__body > p {
  margin-bottom: 0.85rem;
}

.mg-link-cards .service-style2 {
  border: 1px solid rgba(7, 69, 56, 0.12);
  background: #fff;
}

/* Multi-column topic cards (Funerals / Help hubs) */
.mg-card-grid {
  margin-top: 8px;
}

.mg-topic-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(7, 69, 56, 0.14);
  border-top: 4px solid var(--theme-color);
  border-radius: 4px;
  padding: 22px 22px 20px;
}

.mg-topic-card h3 {
  font-family: var(--title-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 10px;
  line-height: 1.3;
}

.mg-topic-card h3 a {
  color: inherit;
}

.mg-topic-card h3 a:hover {
  color: var(--theme-color);
}

.mg-topic-card p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
}

.mg-topic-card p:last-child {
  margin-bottom: 0;
}

.mg-topic-card .mg-bullet-list {
  margin-top: 4px;
}

.mg-topic-card .mg-bullet-list li {
  font-size: 14.5px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.mg-lede {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-color);
}

/* About stat — keep 10000+ from crowding the checklist */
.about-layout2 .img-info {
  max-width: 150px;
  padding: 22px 18px;
}

.about-layout2 .img-info .media-title,
.about-layout2 .vs-counter .media-title {
  font-size: 2.4rem !important;
  line-height: 1.05 !important;
}

.about-layout2 .img-info .count-icon,
.about-layout2 .vs-counter .count-icon {
  font-size: 1.75rem !important;
  line-height: 1.05 !important;
}

.about-layout2 .img-info .media-text,
.about-layout2 .vs-counter .media-text {
  font-size: 14px;
  line-height: 1.35;
  margin-top: 6px;
}

.about-layout2 .info-body {
  align-items: center;
  gap: 28px;
}

.about-layout2 .info-left {
  flex: 0 0 auto;
}

.about-layout2 .info-right {
  flex: 1 1 auto;
  min-width: 0;
}

.mg-doc-table {
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
}

.mg-doc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
}

.mg-doc-table th,
.mg-doc-table td {
  border: 1px solid rgba(7, 69, 56, 0.18);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.mg-doc-table th {
  background: var(--theme-color);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.mg-doc-table tr:nth-child(even) td {
  background: rgba(7, 69, 56, 0.04);
}

.mg-content-area .sec-title {
  margin-bottom: 24px;
}

.mg-content-area p,
.mg-content-area li {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.8;
}

.mg-content-area ul {
  padding-left: 1.2rem;
  margin-bottom: 1.25rem;
}

.mg-content-area h2,
.mg-content-area h3 {
  font-family: var(--title-font);
  color: var(--title-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.mg-link-cards .service-style2 {
  height: 100%;
}

/* News cards — squared, denser */
.mg-news-card,
.mg-news-card .blog-img,
.mg-news-card .blog-img__img {
  border-radius: 4px !important;
}

.mg-news-card .blog-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.mg-news-card .blog-img__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mg-news-card .blog-content {
  padding: 22px 22px 24px;
}

.mg-news-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--theme-color);
  font-size: 14px;
  font-weight: 600;
}

.mg-news-summary {
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.blog-layout2 .sec-text {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--text-color);
}

.mt-40 {
  margin-top: 40px;
}

.mg-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mg-contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 18px;
}

.mg-contact-list i {
  color: var(--theme-color);
  margin-top: 4px;
}

/* Thanatoz sets global `a { color: white }` — invisible on light page bodies until hover */
.mg-inner-page .mg-page-body a,
.mg-inner-page .mg-content-area a,
.mg-inner-page .mg-topic-card a,
.mg-inner-page .mg-contact-list a,
.mg-inner-page .mg-section-card a,
.mg-inner-page .mg-lede a,
.mg-inner-page .blog-layout2 .blog-title a,
.mg-inner-page .mg-page-crumb a {
  color: var(--theme-color);
}

.mg-inner-page .mg-page-body a:hover,
.mg-inner-page .mg-content-area a:hover,
.mg-inner-page .mg-topic-card a:hover,
.mg-inner-page .mg-contact-list a:hover,
.mg-inner-page .mg-section-card a:hover,
.mg-inner-page .mg-lede a:hover,
.mg-inner-page .blog-layout2 .blog-title a:hover,
.mg-inner-page .mg-page-crumb a:hover {
  color: var(--title-color);
}

.mg-inner-page .mg-contact-list a {
  font-weight: 600;
}

/* News date: Thanatoz meta-date is a 60px day badge that clips the year */
.mg-news-card .blog-meta {
  background: transparent;
  border: none;
  margin-bottom: 12px;
  gap: 10px 14px;
}

.mg-news-card .meta-date {
  max-width: none;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--title-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: inline;
}

.mg-news-card:hover .meta-date {
  color: var(--title-color);
  background: transparent;
}

.mg-news-card:hover .mg-news-source {
  color: var(--theme-color);
}

.mg-news-card:hover .mg-news-summary {
  color: var(--text-color);
}

/* Keep news cards readable (Thanatoz turns whole card green on hover) */
.mg-news-card.blog-style1:hover {
  background-color: #fff;
}

.mg-news-card.blog-style1:hover .blog-title a {
  color: var(--theme-color);
}

.header-layout1 .contact-title {
  font-size: 12px;
  line-height: 1.25;
  max-width: 11rem;
}

.mg-figure {
  margin: 1.5rem 0 2rem;
  text-align: center;
}

.mg-figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(7, 69, 56, 0.14);
}

.mg-figure figcaption {
  margin-top: 0.75rem;
  font-size: 14px;
  color: var(--text-color);
}

/* ---------- Responsive / mobile ---------- */
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 100%;
}

/* Free space so Search never wraps under the phone block */
@media (max-width: 1399px) {
  .header-layout1 .header-info .contact-box {
    display: none;
  }
}

@media (max-width: 991px) {
  .header-logo .logo {
    max-height: 40px;
  }

  .header-layout1 .sticky-active .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-layout1 .header-buttons {
    display: none;
  }

  .hero-layout2 {
    padding-top: 90px !important;
    padding-bottom: 100px !important;
  }

  .hero-layout2 .hero-title {
    font-size: clamp(2rem, 7vw, 3.2rem);
    line-height: 1.15;
  }

  .hero-layout2 .hero-text {
    font-size: 16px;
  }

  .hero-layout2 .hero-btn {
    flex-wrap: wrap;
  }

  .choose-style1 {
    max-width: 100% !important;
  }

  .choose-img {
    max-width: 420px;
    margin: 0 auto;
  }

  .mg-content-area {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .mg-inner-page .mg-content-area,
  .mg-inner-page .blog-layout2 {
    padding-top: 40px;
  }

  .footer-links {
    columns: 1;
  }
}

@media (max-width: 767px) {
  .header-logo .logo {
    max-height: 34px;
  }

  .mg-inner-page .mg-content-area,
  .mg-inner-page .blog-layout2 {
    padding-top: 32px;
  }

  .hero-layout2 {
    padding-top: 70px !important;
    padding-bottom: 80px !important;
  }

  .hero-layout2 .hero-subtitle {
    font-size: 14px;
  }

  .sec-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.25;
  }

  .service-style2 .service-title {
    font-size: 20px;
  }

  .mg-content-area {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .mg-news-card .blog-content {
    padding: 18px;
  }

  .mg-contact-list li {
    font-size: 16px;
  }

  .vs-video.video-style2 .video-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .space {
    --section-space: 70px;
  }
}

@media (max-width: 575px) {
  .vs-btn {
    padding-left: 18px;
    padding-right: 18px;
  }

  .info-body {
    flex-direction: column;
    gap: 20px;
  }

  .about-layout2 .img-box2 .img2 {
    max-width: 55%;
  }
}
