@import url("https://fonts.googleapis.com/css2?family=Inter&family=Merriweather:wght@700&display=swap");

:root {
  --paleGreen: #f9fcf2;
  --lightGreen: #8fc332;
  --mediumGreen: #0a4b3a;
  --darkGreen: #094434;
  --gray: #5f686d;
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif, Helvetica;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  transition: overflow 0.3s ease-in-out;
}

#main_layout {
  color: var(--gray);
  display: grid;
  gap: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Merriweather", serif;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.23rem;
  line-height: 1.2;
}

h3 {
  font-size: 1rem;
  line-height: 1.3;
  color: var(--darkGreen);
}

header {
  background: linear-gradient(
    135deg,
    rgba(13, 52, 43, 1) 20%,
    rgba(13, 52, 43, 0)
  );
  display: flex;
  flex-direction: column;
  row-gap: 3.5rem;
  padding: 1rem 4.5% 4rem;
  position: relative;
  min-height: 500px;
}

header > .top-header {
  font-size: 0.9em;
  width: min(100%, 100rem);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.top-header #logo {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(50%);
  font-family: "Merriweather", serif;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
}

header > .top-header > nav#primary-navigation > ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  gap: 2rem;
}

header > .top-header > nav#primary-navigation > ul > li > a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

header
  > .top-header
  > nav#primary-navigation
  > ul
  > li
  > a:is(:hover) {
  color: var(--lightGreen);
  border-bottom: solid 2px var(--lightGreen);
}

.mobile-donasi-button-item {
  display: none;
}

header > .greeting {
  width: min(30rem, 100%);
}

header > .greeting > * {
  margin-block-end: 1em;
}

header > .greeting > h1 {
  color: var(--lightGreen);
}

header > .greeting > p {
  color: white;
}

.Donasi-button {
  width: fit-content;
  border-radius: 3rem;
  background-color: var(--lightGreen);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out,
  outline-color 0.2s ease-out;
}

.Donasi-button > a {
  color: var(--darkGreen);
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
}

.Donasi-button:hover {
  box-shadow: 0px 4px 10px rgba(143, 195, 50, 0.5);
  transform: translateY(-2px);
}

.Donasi-button {
  transform: scale(0.95) translateY(0);
  box-shadow: 0px 2px 5px rgba(143, 195, 50, 0.4);
  animation: click_anim 0.2s ease-out;
}

@keyframes click_anim {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(0.95);
  }
}

.bg-masjid {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
  z-index: -1;
}

/* SECTION STYLES */
main > section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
main > section:last-of-type {
  padding-bottom: 3.5rem;
}

/* SECTION 1 JADWAL SHALAT */
.section-1 {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  padding-left: 4.5%;
  padding-right: 4.5%;
}

.section-1 div:first-child {
  align-self: center;
}

:is(.section-1, .section-2, .community-partners-section)
  > div:first-child
  h2 {
  color: var(--darkGreen);
}

.section-1 .address address {
  color: var(--gray);
  font-style: normal;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.85em;
  text-align: center;
}

.section-1 .time-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.section-1 .time-cards article {
  background-color: var(--paleGreen);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.section-1 .time-cards article div:nth-child(2) {
  font-size: 0.8em;
}

.section-1 .time-cards article time {
  font-weight: 900;
}

/* SECTION 2 VIDEO DAKWAH */
.section-2 {
  padding-left: 3rem;
  padding-right: 3rem;
}

.section-2 {
  background-color: #ffffff;
}

.section-2 .judul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-2 .judul .sub-judul {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-2 .judul .sub-judul img {
  scale: 0.75;
}

.section-2 .judul .sub-judul h2 .channel-youtube {
  font-weight: normal;
  font-size: 0.9em;
  color: var(--gray);
}

.section-2 .more-link a {
  color: var(--mediumGreen);
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
}

.more-link a:hover {
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #6a0dad;
}

.section-2 .content {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 2rem;
}

.section-2 article {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.thumbnail-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #f0f0f0;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-2 article .title {
  min-height: auto;
}

.section-2 article .description {
  font-size: 0.85em;
  color: var(--gray);
  line-height: 1.5;
  flex-grow: 1;
}

.section-2 article .btn {
  display: none;
}

/* SECTION PARTNERS */
.community-partners-section {
  padding-left: 3rem;
  padding-right: 3rem;
  background-color: #ffffff;
  text-align: center;
}

.community-partners-section .judul {
  justify-content: center;
  margin-bottom: 1rem;
}

.community-partners-section .judul h2 {
  color: var(--darkGreen);
  font-family: "Merriweather", serif;
}

.community-partners-section .sub-judul-community {
  font-family: "Inter", sans-serif;
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 7rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.community-partners-section h2 {
  color: var(--darkGreen);
  font-family: "Merriweather", serif;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.partner-placeholders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.partner-logo-item,
.partner-placeholder-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 10px;
  background-color: #ffffff;
  min-height: 100px;
}

.partner-logo-item img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.partner-placeholder-item .gallery-icon {
  width: 100%;
  max-width: 350px;
  height: auto;
  aspect-ratio: 3/2;
  border-radius: 10px;
  box-shadow: 0px 0px 30px -10px;
}

.partner-placeholder-item .gallery-icon:hover {
  transform: scale(1.20);
  transition: transform 0.5s ease;
}

/* LOKASI MASJID */
.contact-flex {
  width: 100%;
  display: flex;
  justify-content: center;
}

.map {
  width: 90%;
}

.map h2 {
  color: var(--darkGreen);
  text-align: center;
  margin-bottom: 2.5rem;
}

.map iframe {
  border-radius: 10px;
  box-shadow: 0px 0px 20px -10px;
}

/* FOOTER STYLES */
footer {
  background-color: var(--darkGreen);
  color: #e0e0e0;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-main-content {
  display: flex;
  flex-wrap: nowrap;
  gap: 2.5rem;
  align-items: flex-start;
  padding-bottom: 2.5rem;
}

.footer-info-columns {
  display: flex;
  flex-grow: 1;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1.5;
  min-width: 220px;
}

.footer-section.footer-donation {
  flex: 1.5;
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-family: "Merriweather", serif;
  font-weight: bold;
}

.footer-address p,
.footer-donation p {
  line-height: 1.7;
  font-size: 0.85rem;
}

.footer-donation .donation-accounts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-donation .donation-account {
  margin-bottom: 0;
  flex: 1;
  min-width: 220px;
}

.footer-donation .account-number {
  font-weight: bold;
  color: var(--lightGreen);
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0 0 2rem 0;
}

.footer-bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-nav ul li a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav ul li a:hover {
  color: var(--lightGreen);
  text-decoration: underline;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5em;
  cursor: pointer;
  z-index: 10001;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hamburger-icon {
  display: block;
  position: relative;
  width: 28px;
  height: 3px;
  background-color: white;
  transition: all 0.2s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.2s ease-in-out;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  bottom: -8px;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon {
  background-color: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon::before {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* RESPONSIF */
@media (max-width: 992px) {
/* TAB */
  .footer-main-content {
    gap: 2rem;
  }

  .footer-info-columns {
    gap: 1.5rem;
  }

  .partner-logos,
  .partner-placeholders {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-placeholder-item .gallery-icon:hover {
    transform: scale(1.15);
    transition: transform 0.5s ease;
  }

  .section-2 .content {
    display: grid;
    grid-template-columns: repeat(1, minmax(280px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* MOBILE BESAR */
  :root {
    font-size: 15px;
  }

  header {
    padding: 1.5rem 1.5rem 3rem;
    min-height: auto;
    row-gap: 2rem;
  }

  .top-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  #logo {
    scale: 0.8;
  }

  .mobile-nav-toggle {
    display: block;
  }

  header > .top-header > nav#primary-navigation {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--darkGreen);
    padding: 6rem 2rem 2rem;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
  }

  header > .top-header > nav#primary-navigation.nav-active {
    transform: translateX(0);
  }

  header > .top-header > nav#primary-navigation ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  header > .top-header > nav#primary-navigation ul li a {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    border-bottom: none;
  }

  header > .top-header > nav#primary-navigation ul li a:is(:hover) {
    color: var(--lightGreen);
    border-bottom: none;
  }

  .mobile-donasi-button-item {
    display: block;
    margin-top: 1rem;
  }

  .Donasi-button-mobile-nav {
    background-color: var(--lightGreen);
    color: var(--darkGreen) !important;
    padding: 0.75rem 2rem !important;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.2rem !important;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  }

  .Donasi-button-mobile-nav:hover {
    box-shadow: 0px 4px 10px rgba(143, 195, 50, 0.5);
    transform: translateY(-2px);
  }

  .Donasi-button-mobile-nav {
    transform: scale(0.95) translateY(0);
    box-shadow: 0px 2px 5px rgba(143, 195, 50, 0.4);
  }

  .header-donasi-button {
    display: none;
  }

  header > .greeting {
    text-align: center;
    margin-top: 1rem;
    width: 100%;
  }

  header > .greeting > h1 {
    font-size: 1.8rem;
  }

  header > .greeting > p {
    font-size: 0.95rem;
  }

  header > .greeting > .Donasi-button {
    margin: 1.5rem auto 0;
  }

  main > section,
  .section-1,
  .section-2,
  .community-partners-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section-1 .time-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-1 .time-cards article {
    padding: 1rem 0.5rem;
  }

  .section-2 .judul,
  .community-partners-section .judul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .community-partners-section .judul h2 {
    text-align: center;
  }

  .section-2 .content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* FOOTER RESPONSIF MOBILE */
  .footer-content-wrapper {
    padding: 0 1.5rem;
  }

  .footer-main-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 2rem;
  }

  .footer-logo-section {
    margin-bottom: 0.5rem;
  }

  .footer-logo {
    max-width: 120px;
  }

  .footer-info-columns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-section {
    min-width: 100%;
    text-align: center;
  }

  .footer-donation .donation-accounts-container {
    justify-content: center;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-bottom-left {
    align-items: center;
    order: 2;
  }

  .footer-nav ul {
    justify-content: center;
    gap: 0.5rem 0.8rem;
  }

  .partner-logos,
  .partner-placeholders {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .partner-placeholder-item .gallery-icon:hover {
    transform: scale(1.10);
    transition: transform 0.5s ease;
  }

  .community-partners-section .sub-judul-community {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  header > .greeting > h1 {
    font-size: 1.6rem;
  }

  header > .greeting > p {
    font-size: 0.9rem;
  }

  main > section,
  .section-1,
  .section-2,
  .community-partners-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-content-wrapper {
    padding: 0 1rem;
  }

  .section-1 .time-cards {
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem;
  }

  .section-1 .time-cards article {
    font-size: 0.85em;
    padding: 1rem 0.5rem;
  }

  .partner-logos {
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
  }

  .partner-placeholders {
    grid-template-columns: repeat(1, 1fr);
    gap: 0.3rem;
  }

  .partner-logo-item,
  .partner-placeholder-item {
    padding: 0.75rem;
    min-height: 80px;
  }

  .partner-logo-item img {
    max-height: 150px;
  }

  .partner-placeholder-item .gallery-icon {
    width: 100%;
  }

  .partner-placeholder-item .gallery-icon:hover {
    transform: scale(1.05);
    transition: transform 0.5s ease;
  }

  .section-2 .content {
    display: grid;
    grid-template-columns: repeat(1, minmax(280px, 1fr));
    gap: 0.2rem;
  }
}