* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #eaf1f7;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    background-color: #003366;
    color: white;
    padding: 20px;
    margin: 0;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: auto;
    padding: 50px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #003366;
    transform: translateX(-50%);
    z-index: 1;
}

.container {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.container::before {
    content: "";
    position: absolute;
    top: 25px;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid #003366;
    border-radius: 50%;
    z-index: 2;
}

.left {
    left: 0;
}

.left::before {
    right: -10px;
}

.right {
    left: 50%;
}

.right::before {
    left: -10px;
}

.content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-weight: bold;
    color: #003366;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.arabic {
    font-size: 1.8rem;
    direction: rtl;
    margin-top: 10px;
}

.latin {
    margin-top: 10px;
    font-style: italic;
}

.step-video {
  width: 100%;
  max-width: 300px; /* Ukuran maksimal video */
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: block;
}


.modern-footer {
  background-color: #003388;
  flex-shrink: 0;
  color: white;
  padding: 30px 20px;
  font-family: Arial, sans-serif;
}
.timeline {
  margin-bottom: 5px; /* agar tidak terlalu rapat ke footer */
}

.footer-wrapper {
  max-width: 1100px;
  margin: auto;
  clear: both;
  position: relative;
}

.timeline::after {
  display: block;
  height: 10px;
  background: transparent;
}

.footer-icon {
  width: 170px;
  height: 50px;
  margin-bottom: 10px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.footer-column h3, .footer-column h4 {
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
  font-size: 0.9em;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid white;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
}

.store-badges img {
  height: 40px;
  margin-left: 10px;
}

@media (max-width: 600px) {
  .surah-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.5rem;
    padding: 1rem;
  }

  .surah-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }

  .surah-arabic {
    text-align: left;
    font-size: 1.6rem;
  }

  .surah-title {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .container {
        width: 100%;
        padding-left: 50px;
        padding-right: 25px;
    }

    .left,
    .right {
        left: 0;
    }

    .left::before,
    .right::before {
        left: 12px;
        right: auto;
    }
}
