/* ================= GLOBAL ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(233, 241, 233);
  font-family: "Outfit", sans-serif;
  color: #000000;
  margin: 0;
  overflow-x: hidden;
}

/* ================= HEADER ================= */

.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 6vw;

  background: linear-gradient(
    135deg,
    rgba(41, 110, 86, 0.95),
    rgba(22, 60, 48, 0.95)
  );

  backdrop-filter: blur(12px);

  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);

  transition: all 0.4s ease;

  z-index: 2000;

  overflow: visible;
}

.main-header::before,
.main-header::after {
  content: "";
  position: absolute;

  width: 60px;
  height: 60px;

  background: url("img/islamic-moon.png") no-repeat center/contain;

  opacity: 0.2;
}

.main-header::before {
  top: 0;
  left: 0;
  animation: floatRandom1 10s ease-in-out infinite alternate;
}

.main-header::after {
  bottom: 0;
  right: 0;
  animation: floatRandom2 12s ease-in-out infinite alternate;
}

@keyframes floatRandom1 {
  0% {
    transform: translate(0, 0) rotate(0);
  }
  25% {
    transform: translate(15px, -10px) rotate(10deg);
  }
  50% {
    transform: translate(-10px, 10px) rotate(-5deg);
  }
  75% {
    transform: translate(5px, -5px) rotate(8deg);
  }
  100% {
    transform: translate(0, 0) rotate(0);
  }
}

@keyframes floatRandom2 {
  0% {
    transform: translate(0, 0) rotate(0);
  }
  25% {
    transform: translate(-12px, 8px) rotate(-12deg);
  }
  50% {
    transform: translate(8px, -8px) rotate(6deg);
  }
  75% {
    transform: translate(-5px, 5px) rotate(-4deg);
  }
  100% {
    transform: translate(0, 0) rotate(0);
  }
}

/* ================= HEADER SCROLL ================= */

.transparent-header {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  position: absolute;
}

.transparent-header.scrolled {
  position: fixed;
  background: rgba(20, 50, 40, 0.95);
}

.main-header.shrink {
  padding: 10px 6vw;
}

.main-header .logo img {
  height: 65px;
  transition: 0.4s;
}

.main-header.shrink .logo img {
  height: 45px;
}

/* ================= NAVBAR ================= */

.navbar {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 30px);
}

.navbar a {
  position: relative;

  text-decoration: none;
  color: white;

  font-size: 12px;
  font-weight: 200;

  letter-spacing: 1px;
  text-transform: uppercase;

  transition: 0.3s;
}

.navbar a::after {
  content: "";
  position: absolute;

  left: 50%;
  bottom: -6px;

  width: 0;
  height: 2px;

  background: linear-gradient(90deg, #ffd700, #d4af37);

  transform: translateX(-50%);
  transition: 0.3s;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a:hover {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* ================= DROPDOWN ================= */

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: white;
  text-decoration: none;
}

.dropdown-arrow {
  font-size: 12px;
  transition: 0.3s;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;

  top: 100%;
  left: 50%;

  transform: translateX(-50%) translateY(-10px);

  width: 220px;

  background: linear-gradient(
    135deg,
    rgba(30, 81, 63, 0.65),
    rgba(18, 45, 35, 0.65)
  );

  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 10px;

  padding: 10px 0;

  display: flex;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;

  transition: all 0.35s ease;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(8px);
  pointer-events: auto;
}

.dropdown-menu a {
  padding: 10px 20px;

  color: white;
  text-decoration: none;

  font-size: 14px;

  transition: 0.25s;
}

.dropdown-menu a:hover {
  background: rgba(255, 215, 0, 0.08);

  color: #ffd700;

  padding-left: 26px;
}

/* ================= HAMBURGER ================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  z-index: 3000;
  position: relative;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: 0.4s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= MOBILE ================= */

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: #296e56;
    padding: 25px 0;
    gap: 18px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
  }

  .navbar.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar a {
    font-size: 15px;
  }

  .dropdown {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-toggle {
    justify-content: center;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    width: 200%;
    margin: 10px auto;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(18, 45, 35, 0.95);
    border-radius: 20px;
    text-align: center;
    transition: all 0.35s ease;
  }

  .dropdown.active .dropdown-menu {
    max-height: 500px;
    opacity: 1;
    padding: 10px 0;
  }

  .dropdown-menu a {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
  }

  .dropdown-menu a:hover {
    border-left: 2px solid #ffd700;
    background: rgba(255, 215, 0, 0.08);
  }
}

/* ================= IMAGE SLIDESHOW ================= */

.slideshow-container {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 300px;
  max-height: 90vh;
  overflow: hidden;
  z-index: 1;
}

.mySlides {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease;
}

.mySlides.active img {
  transform: scale(1.05);
}

.slideshow-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.55)
  );
  pointer-events: none;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(35px, 5vw, 60px);
  height: clamp(35px, 5vw, 60px);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 2vw, 24px);
  color: white;
  transition: all 0.3s ease;
  z-index: 20;
  user-select: none;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.prev:hover,
.next:hover {
  background: #296e56;
  transform: translateY(-50%) scale(1.1);
}

.fade {
  animation: fade 1.2s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* ================= SLIDESHOW MOBILE OPTIMIZATION ================= */

@media (max-width: 768px) {
  .slideshow-container {
    width: 100%;
    height: auto !important;
    min-height: unset;
    max-height: unset;
    margin-left: 0;
  }

  .mySlides {
    position: relative;
    width: 100%;
    height: auto;
  }

  .mySlides img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .prev,
  .next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

@media (min-width: 1400px) {
  .slideshow-container {
    height: 80vh;
  }
}

/* ================= TABLET (iPad) ================= */

@media (max-width: 1024px) and (min-width: 577px) {
  .slideshow-container {
    height: 55vh;
    min-height: 350px;
    max-height: 650px;
  }

  .mySlides {
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .prev,
  .next {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* ================= PRAYER TIMES SECTION ================= */

.page-wrapper {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.prayer-times-section {
  background: #ffffff;
  padding: clamp(12px, 2vw, 25px);
  margin: -50px auto 60px auto;
  max-width: 1400px;
  width: calc(100% - 40px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  text-align: center;
  border: 1px solid rgba(181, 181, 181, 0.4);
  position: relative;
  z-index: 5;
}

@media (min-width: 1800px) {
  .prayer-times-section {
    max-width: 1800px;
  }
}

.prayer-times-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 3vw, 32px);
  color: #296e56;
  margin-bottom: clamp(15px, 3vw, 30px);
  font-weight: 600;
}

.prayer-times-title::after {
  content: "";
  display: block;
  width: clamp(60px, 8vw, 120px);
  height: 4px;
  background: linear-gradient(to right, #d4af37, #b8961e);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: clamp(12px, 2vw, 25px);
  width: 100%;
}

.time-box {
  background: #f7f7f7;
  padding: clamp(15px, 2vw, 25px);
  border-radius: 20px;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.time-box span {
  display: block;
  font-size: clamp(13px, 1.5vw, 16px);
  color: #555;
}

.time-box strong {
  display: block;
  font-size: clamp(18px, 2.5vw, 26px);
  color: #1f5d48;
  margin-top: 6px;
}

.time-box.active {
  position: relative;
  background: linear-gradient(135deg, #296e56, #3c8c6d);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.time-box.active::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 20%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: url("img/islamic-light.png") no-repeat center;
  background-size: contain;
  opacity: 0.25;
  animation: floatLight 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatLight {
  0% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    transform: translateX(-50%) translateY(0px);
  }
}

.time-box.active {
  z-index: 1;
}

.time-box.active::before {
  z-index: 0;
}

.time-box.active span,
.time-box.active strong {
  color: #ffffff !important;
}

.next-prayer {
  margin: clamp(15px, 3vw, 30px) auto;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 600;
  color: #296e56;
  background: linear-gradient(135deg, #eef7f3, #e4f1ea);
  padding: clamp(10px, 2vw, 15px) clamp(18px, 3vw, 30px);
  border-radius: 20px;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.iqamah-countdown {
  margin: clamp(10px, 2vw, 20px) auto;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #d64545, #b22222);
  padding: clamp(10px, 2vw, 15px) clamp(18px, 3vw, 30px);
  border-radius: 20px;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(214, 69, 69, 0.35);
  transition: all 0.3s ease;
}

.iqamah-countdown.warning {
  animation: iqamahPulse 1.2s ease-in-out infinite;
}

.iqamah-countdown.urgent {
  animation: iqamahShake 0.5s infinite;
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.7);
}

@keyframes iqamahPulse {
  0% {
    box-shadow: 0 8px 20px rgba(214, 69, 69, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(214, 69, 69, 0.8);
  }
  100% {
    box-shadow: 0 8px 20px rgba(214, 69, 69, 0.4);
  }
}

@keyframes iqamahShake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 480px) {
  .prayer-times-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-box {
    border-radius: 20px;
  }
}

/* ================= SCROLL ANIMATION ================= */

.fade-in {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fade-in {
  filter: blur(6px);
}

.fade-in.show {
  filter: blur(0);
}

.time-box {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.show .time-box {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.show .time-box:nth-child(1) {
  transition-delay: 0.1s;
}
.fade-in.show .time-box:nth-child(2) {
  transition-delay: 0.2s;
}
.fade-in.show .time-box:nth-child(3) {
  transition-delay: 0.3s;
}
.fade-in.show .time-box:nth-child(4) {
  transition-delay: 0.4s;
}
.fade-in.show .time-box:nth-child(5) {
  transition-delay: 0.5s;
}
.fade-in.show .time-box:nth-child(6) {
  transition-delay: 0.6s;
}

/* ================= POST SLIDESHOW SECTION ================= */

.post-slideshow-section {
  position: relative;
  padding: 80px clamp(20px, 5vw, 80px);
  background: linear-gradient(135deg, #eef5f0, #f8fbf9);
  overflow: hidden;
}

.post-slideshow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/islamic-pattern2.png") center/contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.post-container {
  width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(41, 110, 86, 0.25));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

.circle-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #296e56;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.circle-bg::before {
  content: "";
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background-image: url("img/islamic-pattern2.png");
  background-size: 100px 100px;
  background-repeat: repeat;
  background-position: center;
  opacity: 0.08;
  animation: rotatePattern 80s linear infinite;
  z-index: 0;
}

.circle-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 255, 255, 0.12),
    transparent 70%
  );
}

.hero-image img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero-image {
    width: 300px;
    height: 300px;
  }

  .hero-image::after {
    font-size: 30px;
    top: 20px;
    right: 30px;
  }
}

@media (max-width: 480px) {
  .hero-image {
    width: 240px;
    height: 240px;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

.post-content {
  flex: 1;
  min-width: 300px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 700;
  color: #296e56;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #d4af37, #b8961e);
  display: block;
  margin-top: 12px;
  border-radius: 2px;
}

.hadith-box {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  margin-bottom: 25px;
  animation: fadeUp 1s ease;
}

.quranic-quote {
  font-family: "Scheherazade New", serif;
  font-size: 30px;
  direction: rtl;
  text-align: center;
  margin-bottom: 10px;
  color: #c9a227;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.translation {
  text-align: center;
  font-style: italic;
  color: #444;
  font-size: 16px;
}

.intro-text {
  line-height: 1.8;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: #333;
  animation: fadeUp 1.2s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= TABLET (iPad) ================= */

@media (max-width: 1024px) and (min-width: 769px) {
  .post-slideshow-section {
    padding: 60px 40px;
  }

  .post-container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-image {
    width: 280px;
    height: 280px;
  }

  .section-title {
    font-size: 34px;
  }

  .hadith-box {
    padding: 20px 25px;
  }

  .quranic-quote {
    font-size: 26px;
  }

  .intro-text {
    font-size: 17px;
    line-height: 1.7;
  }
}

.post-slideshow-section.fade-in {
  transform: translateY(60px) scale(0.97);
  opacity: 0;
}

.post-slideshow-section.fade-in.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ================= CARD SECTION ================= */

.card-section {
  padding: 70px 20px;
  background: #eef3ef;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(41, 110, 86, 0.1);
  color: #296e56;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  color: #296e56;
  margin-bottom: 18px;
  position: relative;
}

.section-header h2::after {
  content: "";
  width: 110px;
  height: 4px;
  background: linear-gradient(to right, #d4af37, #b8961e);
  display: block;
  margin: 18px auto 0;
  border-radius: 20px;
}

.section-header p {
  max-width: 750px;
  margin: auto;
  color: #666;
  font-size: 18px;
  line-height: 1.7;
}

/* ================= CARD ================= */

.card {
  position: relative;
  width: calc(105% - 65px);
  max-width: 1400px;
  min-height: 520px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.4);

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  padding: 45px;
}

@media (min-width: 1800px) {
  .card {
    max-width: 1800px;
  }
}

/* ================= SLIDES ================= */

.card .inner_part {
  position: absolute;
  inset: 45px;
  display: flex;
  align-items: center;
  gap: 40px;

  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}

#slide_1:checked ~ .slide1,
#slide_2:checked ~ .slide2,
#slide_3:checked ~ .slide3,
#slide_4:checked ~ .slide4,
#slide_5:checked ~ .slide5,
#slide_6:checked ~ .slide6,
#slide_7:checked ~ .slide7,
#slide_8:checked ~ .slide8 {
  opacity: 1;
  pointer-events: auto;
}

/* ================= IMAGE ================= */

.inner_part .img {
  flex: 1;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.inner_part .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}

.inner_part .img:hover img {
  transform: scale(1.05);
}

/* ================= CONTENT ================= */

.content {
  flex: 1;
}

.badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  color: #b8961e;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}

.content .title {
  font-size: 34px;
  line-height: 1.2;
  color: #296e56;
  font-weight: 700;
  margin-bottom: 25px;
  font-family: "Playfair Display", serif;
}

.content .text {
  font-size: 17px;
  line-height: 1.9;
  color: #4f4f4f;
}

/* ================= SLIDER ================= */

.slider {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.slider .slide {
  width: 55px;
  height: 10px;
  border-radius: 20px;
  background: #d5d5d5;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: 0.3s ease;
}

.slider .slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #296e56, #1e5542);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.5s ease;
}

#slide_1:checked ~ .slider .slide_1::before,
#slide_2:checked ~ .slider .slide_2::before,
#slide_3:checked ~ .slider .slide_3::before,
#slide_4:checked ~ .slider .slide_4::before,
#slide_5:checked ~ .slider .slide_5::before,
#slide_6:checked ~ .slider .slide_6::before,
#slide_7:checked ~ .slider .slide_7::before,
#slide_8:checked ~ .slider .slide_8::before {
  transform: scaleX(1);
}

.card input[type="radio"] {
  display: none;
}

/* ================= TABLET ================= */

@media (max-width: 992px) {
  .card {
    min-height: auto;
    padding: 30px 25px 90px;
  }

  .card .inner_part {
    position: relative;
    inset: auto;
    flex-direction: column;
    gap: 30px;
    display: none;
  }

  #slide_1:checked ~ .slide1,
  #slide_2:checked ~ .slide2,
  #slide_3:checked ~ .slide3,
  #slide_4:checked ~ .slide4,
  #slide_5:checked ~ .slide5,
  #slide_6:checked ~ .slide6,
  #slide_7:checked ~ .slide7,
  #slide_8:checked ~ .slide8 {
    display: flex;
  }

  .inner_part .img {
    width: 100%;
    height: 320px;
  }

  .content {
    text-align: center;
  }

  .content .title {
    font-size: 34px;
  }

  .content .text {
    font-size: 17px;
  }
}

/* ================= MOBILE ================= */

@media (max-width: 576px) {
  .card-section {
    padding: 70px 15px;
  }

  .section-header h2 {
    font-size: 34px;
    line-height: 1.3;
  }

  .section-header p {
    font-size: 15px;
  }

  .card {
    border-radius: 20px;
    padding: 20px 20px 80px;
  }

  .inner_part .img {
    height: 240px;
    border-radius: 20px;
  }

  .content .title {
    font-size: 28px;
  }

  .content .text {
    font-size: 15px;
    line-height: 1.8;
  }

  .slider {
    bottom: 25px;
  }

  .slider .slide {
    width: 28px;
    height: 8px;
  }
}

/* ================= SERVICES SECTION ================= */

.services-grid {
  padding: 70px 50px;
  text-align: center;
  background: #f7f7f7;
}

.services-grid h2 {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  color: #296e56;
  margin-bottom: 60px;
  font-weight: 700;
}

.services-grid h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #d4af37, #b8961e);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

.services-grid .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  max-width: 1900px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 300px;
  background-color: #fff;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 40px 20px 20px;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: #296e56;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  background-color: #f1f8f5;
}

.icon-circle {
  width: 100px;
  height: 100px;
  background-color: #fbe9d5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -70px auto 15px;
}

.service-icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.service-number {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.service-card h3 {
  font-size: 20px;
  margin: 10px 0;
  font-weight: 700;
  color: #296e56;
}

.service-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.read-more {
  font-size: 14px;
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

/* ================= DONATION SECTION ================= */

.donation-banner {
  margin: 80px auto;
  padding: 60px 40px;
  width: calc(100% - 40px);
  max-width: 1400px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #1f4d3b, #2e6a57);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@media (min-width: 1800px) {
  .donation-banner {
    max-width: 1800px;
  }
}

.page-container {
  width: calc(100% - 40px);
  max-width: 1800px;
  margin-inline: auto;
}

.donation-banner h3 {
  font-size: 36px;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.donation-banner::before,
.donation-banner::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: url("img/islamic-pattern2.png") center/contain no-repeat;

  opacity: 0.08;
  animation: rotatePattern 40s linear infinite;
  pointer-events: none;
}

.donation-banner::before {
  top: -150px;
  left: -150px;
}

.donation-banner::after {
  bottom: -150px;
  right: -150px;
  animation-direction: reverse;
}

@keyframes rotatePattern {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.donation-banner h3,
.donation-banner p,
.donation-banner a {
  position: relative;
  z-index: 2;
}

.donation-banner h3 {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.donation-banner p {
  font-size: 18px;
  margin-bottom: 18px;
  line-height: 1.6;
  opacity: 0.95;
}

.donate-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ffffff, #f4f4f4);
  color: #296e56;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: 0.35s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.donate-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .donation-banner {
    padding: 40px 20px;
  }

  .donation-banner h3 {
    font-size: 24px;
  }

  .donation-banner p {
    font-size: 16px;
  }
}

/* ================= TABLET / iPAD ================= */

@media (max-width: 1024px) and (min-width: 769px) {
  .donation-banner {
    width: calc(100% - 60px); /* balanced side spacing */
    margin: 60px auto;
    padding: 50px 30px; /* slightly reduced */
    border-radius: 20px;
  }

  .donation-banner h3 {
    font-size: 28px; /* smoother scaling */
    line-height: 1.3;
  }

  .donation-banner p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .donate-btn {
    font-size: 17px;
    padding: 13px 28px;
  }

  /* Background pattern adjustment */
  .donation-banner::before,
  .donation-banner::after {
    width: 300px;
    height: 300px;
    opacity: 0.07;
  }

  .donation-banner::before {
    top: -120px;
    left: -120px;
  }

  .donation-banner::after {
    bottom: -120px;
    right: -120px;
  }
}

/* ================= TABLET / iPAD ================= */

@media (max-width: 1024px) and (min-width: 769px) {
  .about-overlay {
    height: 55vh;
    min-height: 350px;
    max-height: 650px;
    padding: 30px;
  }

  .overlay-text {
    max-width: 600px;
    padding: 20px;
  }

  .overlay-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .overlay-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* ================= TABLET LANDSCAPE ================= */

@media (max-width: 1024px) and (min-width: 769px) and (orientation: landscape) {
  .about-overlay {
    height: 60vh;
  }

  .overlay-text {
    max-width: 700px;
  }

  .overlay-text h2 {
    font-size: 2.8rem;
  }

  .overlay-text p {
    font-size: 1rem;
  }
}

/* ================= DONATION BANNER MOBILE VIEW ================= */

@media (max-width: 768px) {
  .donation-banner {
    width: calc(100% - 30px);
    margin: 50px 15px;
    padding: 35px 20px;
    border-radius: 20px;
  }

  .donation-banner::before,
  .donation-banner::after {
    width: 220px;
    height: 220px;
    opacity: 0.06;
  }

  .donation-banner::before {
    top: -80px;
    left: -80px;
  }

  .donation-banner::after {
    bottom: -80px;
    right: -80px;
  }

  .donation-banner h3 {
    font-size: 22px;
    line-height: 1.3;
  }

  .donation-banner p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .donate-btn {
    font-size: 16px;
    padding: 12px 26px;
    border-radius: 40px;
  }
}

@media (max-width: 480px) {
  .donation-banner {
    width: calc(100% - 24px);
    margin: 40px auto;
    padding: 30px 18px;
  }

  .donation-banner h3 {
    font-size: 20px;
  }

  .donation-banner p {
    font-size: 14px;
  }

  .donate-btn {
    font-size: 15px;
    padding: 11px 22px;
  }
}

/* ================= ABOUT SECTION ================= */

.about-overlay {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 300px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.about-overlay .about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(70%);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.about-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.55)
  );
  z-index: 2;
}

.overlay-text {
  position: relative;
  z-index: 3;
  padding: 20px 40px;
  max-width: 800px;
  color: white;
}

.overlay-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 30px;
  line-height: 1.2;
}

.overlay-text p {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-overlay {
    height: 60vh;
    padding: 20px;
  }

  .overlay-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .overlay-text p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .overlay-text {
    padding: 10px;
  }
}

@media (min-width: 1400px) {
  .about-overlay {
    height: 80vh;
  }

  .overlay-text h2 {
    font-size: 3.5rem;
  }

  .overlay-text p {
    font-size: 1.1rem;
  }
}

/* ================= LOCATION SECTION ================= */

.map-section {
  margin-top: 0px;
  padding: 50px 0;
  background: #ffffff;
  text-align: center;
}

.map-section h1 {
  position: relative;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 20px;
  font-weight: 700;
  color: #296e56;
  z-index: 1;
}

.map-section h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: linear-gradient(to right, #d4af37, #b8961e);
  margin: 14px auto 0 auto;
  border-radius: 4px;
}

.map-section h2 {
  font-family: "Outfit", sans-serif;
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: 700;
  color: #296e56;
}

#map {
  width: 100%;
  height: 480px;

  border-radius: 20px 20px 0 0;
  margin: 0;

  display: block;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(41, 110, 86, 0.15);

  border: 1px solid rgba(41, 110, 86, 0.15);
  border-bottom: none;

  z-index: 1;
  transition: all 0.4s ease;
}

@media (min-width: 769px) {
  #map:hover {
    transform: translateY(-8px);
    box-shadow:
      0 30px 70px rgba(0, 0, 0, 0.18),
      0 10px 25px rgba(41, 110, 86, 0.2);
  }
}

@media (min-width: 1800px) {
  #map,
  .map-card {
    max-width: 1800px;
  }
}

/* ================= LOCATION SECTION ================= */

.map-section {
  margin-top: 0px;
  padding: 50px 0;
  background: #ffffff;
  text-align: center;
}

.map-section h1 {
  position: relative;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 20px;
  font-weight: 700;
  color: #296e56;
  z-index: 1;
}

.map-section h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: linear-gradient(to right, #d4af37, #b8961e);
  margin: 14px auto 0 auto;
  border-radius: 4px;
}

.map-section h2 {
  font-family: "Outfit", sans-serif;
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: 700;
  color: #296e56;
}

/* ================= MOBILE OPTIMIZATION MAP ================= */

@media (max-width: 768px) {
  #map {
    width: calc(100% - 30px);
    height: 320px;
    border-radius: 20px;
  }

  .map-section h1 {
    font-size: 26px;
    margin-bottom: 25px;
  }
}

/* ===== Modern Map Section ===== */

.map-overlay-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.map-subtitle {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(41, 110, 86, 0.1);
  color: #296e56;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.map-text {
  font-family: "Playfair Display", serif;
  color: #296e56;
  font-size: 42px;
  margin-bottom: 20px;
}

.map-description {
  color: #666;
  line-height: 1.8;
  max-width: 700px;
  margin: auto;
}

.map-navigation {
  margin: 30px 0;
}

.gps-btn {
  background: #296e56;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  transition: 0.3s;
}

.gps-btn:hover {
  transform: translateY(-3px);
}

.map-card {
  width: calc(100% - 40px);
  max-width: 1400px;
  margin: auto;
}

@media (min-width: 1800px) {
  .map-card {
    max-width: 1800px;
  }
}

.map-info-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
}

.info-item strong {
  display: block;
  color: #296e56;
}

.info-item p {
  margin: 0;
  color: #666;
}

.map-direction-btn {
  background: #d4af37;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
}

.user-location-marker {
  background: transparent;
}

.pulse-marker {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2196f3;
  box-shadow: 0 0 0 rgba(33, 150, 243, 0.4);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(33, 150, 243, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
  }
}

/* ================= FOOTER ================= */

.main-footer {
  background: #296e56;
  color: #fff;
  padding: 60px 0 30px;
  font-family: "Outfit", sans-serif;
  width: 100%;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
}

.footer-about img {
  height: 70px;
  margin-bottom: 15px;
  margin-top: 40px;
}

.footer-about p {
  max-width: 250px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Playfair Display", serif;
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: 500;
  margin-top: 40px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #ffffffb7;
  font-size: 14px;
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #ffd700;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.social-icons a img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  transition:
    transform 0.3s,
    filter 0.3s;
}

.social-icons a img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
  cursor: pointer;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  border-top: 1px solid #ffffff35;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-about img {
    margin: 0 auto 15px;
  }

  .social-icons {
    justify-content: center;
  }
}

/* ================= MOBILE OPTIMIZATION FOOTER ================= */

@media (max-width: 768px) {
  .main-footer {
    padding: 30px 0 15px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 0 18px;
  }

  .footer-about img {
    height: 55px;
    margin: 0 auto 8px;
  }

  .footer-about p {
    font-size: 13px;
    line-height: 1.4;
    max-width: 280px;
  }

  .footer-links h4,
  .footer-social h4 {
    font-size: 12px;
    margin: 12px 0 6px;
  }

  .footer-links ul li {
    margin-bottom: 4px;
  }

  .footer-links ul li a {
    font-size: 13px;
  }

  .social-icons {
    margin-top: 6px;
    gap: 10px;
  }

  .social-icons a img {
    width: 34px;
    height: 34px;
  }

  .footer-bottom {
    margin-top: 18px;
    padding-top: 12px;
    font-size: 11px;
  }
}
