:root {
  --primary-blue: #0341a6;
  --primary-tint: #e3d18a;
  --error: #b00020;
  --highlight: #26c5dd;
  --accent: #f9f5e6;
  --dark: #13101e;
  --bright: #fff;
  --grey: #f1f1f1;
  --light-text: #b6b6b6;
  --high-emphasis: #171520;
  --low-emphasis: #626262;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

h2 {
  font-size: 3.5rem;
  max-width: 90vw;
}

@media (max-width: 768px) {
  h2 {
    font-size: 2rem !important;
    max-width: 90vw;
  }
}

h3 {
  font-size: 1.4rem !important;
}

.blue-strip-medium {
  height: 1.5rem;
  background-color: var(--primary-blue);
}

.main-socials,
.socials {
  padding-left: 6.25rem;
  padding-right: 6.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.socials {
  padding-top: 0.5rem;
}

.left-socials,
.right-socials,
.centre-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.social-circle {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  background-color: var(--primary-tint);
  font-size: 3.5rem;
  color: var(--primary-blue);
  display: grid;
  place-items: center;
}

@media (max-width: 768px) {
  .socials {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .social-circle {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.75rem;
  }
}

.substack-logo,
.bluesky-logo {
  width: 90%;
}

/* Nav styles */

.main-navigation {
  height: 6.25rem;
  padding-left: 6.25rem;
  padding-right: 6.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-tint);
}

.main-navigation .nav-logo,
.mobile-nav-items .nav-logo {
  width: 3.5rem;
  height: 3.5rem;
}

.main-navigation .nav-links a:not(:last-child) {
  margin-right: 1.75rem;
}

.main-navigation .nav-links a {
  color: var(--dark);
  font-weight: 500;
  text-decoration: none;
}

.main-navigation .nav-links a:hover {
  font-weight: 700;
}

.mobile-nav-items,
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .main-navigation {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (max-width: 640px) {
  .main-navigation {
    display: none;
  }

  .mobile-nav-items {
    height: 6.25rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-tint);
  }

  #hamburger-icon {
    cursor: pointer;
    padding: 10px;
  }

  #hamburger-icon .bar {
    display: block;
    position: relative;
    width: 1.5rem;
    height: 2px;
    background-color: var(--primary-blue);
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  #hamburger-icon.open .bar1 {
    transform: rotate(135deg);
    top: 9px;
  }

  #hamburger-icon.open .bar2 {
    opacity: 0;
  }

  #hamburger-icon.open .bar3 {
    transform: rotate(-135deg);
    top: -5px;
  }

  .mobile-menu {
    position: absolute;
    top: 6.25rem;
    right: 0;
    background-color: var(--primary-tint);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .mobile-menu a {
    color: var(--color-black);
    text-decoration: none;
    padding: 0.5rem 3rem;
    display: block;
    text-align: center;
  }

  .mobile-menu.active {
    display: flex;
    position: absolute;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }

  .mobile-menu.active .link-text {
    display: inline-block;
  }
}

@media (max-width: 375px) {
  .mobile-nav .logo {
    width: 2rem;
  }
}

/* Footer styles */

footer {
  background-color: var(--primary-blue);
  padding: 10rem 1.5rem 5rem;
}

footer .crafting {
  padding: 3rem 3rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #26c5dd;
  border-radius: 0.75rem;
}

footer .crafting h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--bright);
  text-align: left;
}

footer .crafting .crafting-buttons-container {
  display: flex;
  gap: 1rem;
  align-items: center;
}

footer .crafting .crafting-buttons-container a {
  width: 16rem;
  height: 4.625rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--bright);
  border-radius: 0.75rem;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.5s;
  text-align: center;
}

footer .crafting .crafting-buttons-container a:first-child {
  background-color: var(--bright);
  color: #26c5dd;
}

footer .crafting .crafting-buttons-container a:last-child {
  background-color: transparent;
  color: var(--bright);
}

@media (max-width: 1080px) {
  footer .crafting {
    flex-direction: column;
    align-items: center;
  }

  footer .crafting h2 {
    text-align: center;
  }
}

@media (max-width: 640px) {
  footer .crafting .crafting-buttons-container {
    flex-direction: column;
  }

  footer .crafting h2 {
    font-size: 2rem;
  }
}

footer .footer-main {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .footer-main .footer-logo {
  width: 3.5rem;
}

footer .footer-main p {
  color: var(--bright);
  font-weight: 500;
  text-align: center;
}

footer .footer-main p a {
  color: var(--bright);
  text-decoration: underline;
}

/* Home page styles */

#home-hero {
  background-size: cover;
}

#home-hero .main-socials {
  margin-bottom: 10rem;
}

#home-hero .home-hero-top-section {
  height: 15rem;
  padding-top: 2.5rem;
}

#home-page-hero .home-heading {
  color: var(--primary-blue);
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

#home-page-hero .home-heading h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

#home-page-hero .home-heading h2 {
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
}

#home-hero .home-hero-main {
  background-image: url(../images/home/home-hero-bg.png);
  min-height: 40rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 0.5rem;
  padding: 7rem 0 4rem;
}

#home-page-hero {
  position: relative;
  background: none; /* No direct background image here */
}

#home-page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/home/home-hero.jpg);
  background-size: cover;
  background-position: center;
  opacity: 0.5; /* Adjust transparency */
  z-index: 0; /* Stay behind the content */
}

#home-page-hero > * {
  position: relative;
  z-index: 1;
}

#home-page-hero .home-hero-top-section {
  height: 30rem;
  padding-top: 2.5rem;
}

#home-page-hero .home-heading {
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 3rem;
}

#home-page-hero .home-heading h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

#home-page-hero .home-heading h2 {
  font-size: 2rem;
  font-weight: 500;
}

#home-page-hero .home-hero-main {
  background-image: url(../images/home/home-hero-bg.png);
  height: 40rem;
  position: relative;
  /* display: flex;
  justify-content: center;
  align-items: flex-start; */
  margin-top: 0.5rem;
  padding-top: 7rem;
}

.accent-strip-small {
  height: 1rem;
  background-color: var(--primary-tint);
}

.accent-strip-top {
  position: absolute;
  width: 100%;
  top: 0.5rem;
}

.accent-strip-bottom {
  position: absolute;
  width: 100%;
  bottom: 0.5rem;
}

.accent-dots {
  border-bottom: 0.6rem dotted var(--primary-tint);
}

.accent-dots-top {
  position: absolute;
  top: 2rem;
  width: 100%;
}

.accent-dots-bottom {
  position: absolute;
  bottom: 2rem;
  width: 100%;
}

#home-page-hero .home-hero-main .logos-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "hoa logo betty";
  gap: 1rem;
  place-items: center;
}

#home-page-hero .home-hero-main .logos-container .hoa-logo {
  height: 7.5rem;
  grid-area: hoa;
  transform: translateY(-40%);
}

#home-page-hero .home-hero-main .logos-container .bjbf-logo {
  height: 7.5rem;
  grid-area: betty;
  transform: translateY(-40%);
}

#home-page-hero .home-hero-main .logos-container .home-hero-logo {
  height: 27rem;
  position: relative;
  transform: translateY(-60%);
  z-index: 10;
  grid-area: logo;
}

#home-hero .home-hero-bottom-section,
#home-page-hero .home-hero-bottom-section {
  min-height: 19rem;
  background-color: #fcfcec59;
}

@media (max-width: 768px) {
  #home-page-hero .home-hero-main .logos-container {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "logo logo" "hoa betty";
  }

  #home-page-hero .home-hero-main .logos-container .hoa-logo,
  #home-page-hero .home-hero-main .logos-container .bjbf-logo {
    margin-top: -15rem;
    height: 5rem;
  }

  #home-page-hero .home-hero-main .logos-container .home-hero-logo {
    height: 15rem;
    transform: translateY(-80%);
  }
}

#home-journey,
#home-collab,
#home-join-me {
  height: 45rem;
  display: grid;
  place-items: center;
  background-color: var(--primary-blue);
  position: relative;
}

.home-section-content {
  display: grid;
  place-items: center;
  width: 22rem;
  max-width: 95%;
}

.home-section-content h2,
.home-connect-content h2 {
  color: var(--bright);
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: capitalize;
  text-align: center;
}

.content-link {
  width: 16rem;
  height: 4.625rem;
  display: grid;
  place-items: center;
  color: var(--bright);
  border: 2px solid var(--bright);
  border-radius: 0.75rem;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.5s;
  text-align: center;
}

.content-link:hover {
  background-color: var(--bright);
  color: var(--primary-blue);
}

#home-leaf-torah {
  height: 30rem;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: space-evenly;
  overflow: hidden;
  position: relative;
}

#home-leaf-torah::before {
  content: "";
  background-image: url(../images/home/leaf-torah-bg.png);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background-position: center;
}

#home-leaf-torah img {
  position: absolute;
  width: 28%;
}

#home-leaf-torah .leaf-torah-1 {
  left: 6.25rem;
  top: 17rem;
}

#home-leaf-torah .leaf-torah-2 {
  top: 10rem;
}

#home-leaf-torah .leaf-torah-3 {
  right: 6.25rem;
  top: 3rem;
}

#home-connect {
  height: 50rem;
  display: grid;
  place-items: center;
  background-color: var(--primary-blue);
}

#home-connect .home-connect-content h3 {
  margin-top: 1.5rem;
  color: var(--bright);
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
}

#home-connect .supporting-communities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  padding: 1rem 2.5rem;
}

#home-connect .supporting-communities .support-community-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0.6rem;
  display: grid;
  place-items: center;
  border-radius: 2rem;
  background-size: cover;
  position: relative;
}

#home-connect .supporting-communities .banda {
  background-image: url(../images/home/banda.jpg);
}

#home-connect .supporting-communities .equestrian {
  background-image: url(../images/home/equestrian.png);
}

#home-connect .supporting-communities .maslul {
  background-image: url(../images/home/maslul-academy.png);
}

#home-connect .supporting-communities .betty {
  background-image: url(../images/home/betty.jpg);
}

@media (max-width: 768px) {
  #home-connect .supporting-communities {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Interior hero styles */
#home-hero .home-hero-main.interior-hero-main {
  background-color: var(--primary-blue);
  background-image: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.interior-hero-logo {
  width: 13.5rem;
  transform: translateY(-100%);
  z-index: 2;
}

#home-hero .home-hero-main.interior-hero-main h1 {
  color: var(--bright);
  text-align: center;
  font-size: 3.5rem;
  font-weight: 700;
  margin-top: -12rem;
}

#home-hero .home-hero-main.interior-hero-main h2 {
  color: var(--bright);
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
}

/* My journey page styles */

#my-journey-carousel {
  background-color: var(--primary-blue);
  padding: 2.5rem;
}

.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-item {
  min-width: 100%;
  padding-left: 5rem;
  padding-right: 5rem;
  transition: opacity 0.5s;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.carousel-item:nth-child(even) {
  flex-direction: row-reverse;
}

.carousel-item img {
  width: 30%;
}

.carousel-item h2 {
  color: var(--bright);
  text-align: center;
  font-size: 2rem;
}

.carousel-item h3 {
  color: var(--bright);
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

.carousel-prev,
.carousel-next {
  width: 2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.carousel-prev img,
.carousel-next img {
  width: 100%;
}

.carousel-prev {
  left: 0;
}
.carousel-next {
  right: 0;
}

@media (max-width: 768px) {
  .carousel-item,
  .carousel-item:nth-child(even) {
    flex-direction: column;
  }

  .carousel-item img {
    width: 100%;
  }
}

/* Contact page styles */

.contact-hero-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.contact-hero-content img {
  width: 10rem;
}

/* About page styles */

.celebrating-legacy {
  background-color: var(--primary-blue);
  position: relative;
  padding-top: 12.5rem;
  padding-bottom: 12.5rem;
}

.accent-strip-middle {
  position: relative;
  width: 100%;
}

.celebrating-legacy-content {
  padding: 8rem 2.5rem;
}

.celebrating-legacy-content h3 {
  color: var(--bright);
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
}

.celebrating-legacy .body {
  margin-top: 2rem;
}

.faith-community-service {
  height: 70rem;
  background-image: url(../images/about/nyc.jpg);
  background-size: cover;
  background-position: center center;
}

.faith-community-service-content {
  position: relative;
  background-color: var(--primary-blue);
}

.faith-community-service-content h3 {
  color: var(--bright);
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  padding: 12rem 2.5rem 0rem;
}

.faith-community-service-content .body {
  padding: 0rem 2.5rem 12rem;
  margin-top: 2rem;
}

/* My Podcasts page styles */

.podcastsContainer {
  background-color: var(--primary-blue);
  position: relative;
}

.podcastContainer {
  padding: 7rem 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.podcastContainer:nth-child(odd) {
  flex-direction: row-reverse;
}

.podcastContainer:nth-child(even) {
  flex-direction: row;
}

.podcastContainer .podcast-info {
  color: var(--bright);
  display: flex;
  flex-direction: column;
  gap: 4rem;
  text-align: center;
}

.podcastContainer .podcast-info h2 {
  font-size: 3rem;
  font-weight: 700;
}

.podcastContainer .podcast-info p {
  font-size: 2rem;
  font-weight: 500;
}

.podcastContainer .podcast-info .soundcloud-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.podcastContainer .podcast-image {
  width: 26rem;
}

@media (max-width: 1040px) {
  .podcastContainer .podcast-image {
    width: 18rem;
  }
}

@media (max-width: 768px) {
  .podcastContainer:nth-child(odd),
  .podcastContainer:nth-child(even) {
    flex-direction: column-reverse;
  }
}
