header {
  width: 100%;
  position: absolute;
  top: 0;
  text-align: center;
  margin: 10px 0;
}

.header-image {
  width: 30px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  min-height: 100vh;
  padding-top: 0;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  overflow-x: hidden !important;
}

.aic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.digital-clock-date-hdr,
.digital-clock-hdr {
  flex: 1;
  font-size: 32px;
  text-decoration: none;
  font-family: monospace;
  font-weight: bold;
  color: black;
  text-shadow:
    0 0 5px white,
    0 0 10px white,
    0 0 20px white,
    0 0 40px white,
    0 0 80px white;
}

.digital-clock-date-hdr {
  text-align: left;
  padding-left: 10px;
  margin-top: -46px;
}

.digital-clock-hdr {
  text-align: right;
  padding-right: 10px;
  margin-top: -80px;
}

.aic-hdr-name {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.aic-title {
  font-size: 32px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, .2);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-top: auto;
  color: #7e0e0e;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 95%
}

.content {
  width: 80%;
  max-width: 1200px;
  display: flex;
}

.left,
.right {
  flex: 1;
  padding: 10px;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.left {
  background-color: #f0eeea;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.left h1 span {
  font-size: 0.8em;
}

.table-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  overflow-x: auto;
  padding: 0 5px 5px 5px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 22px;
  min-width: 300px;
}

table th, table td {
  border: 1px solid #ddd;
  text-align: left;
  padding: 8px;
}

table th {
  background-color: #f2f2f2;
}

.progress-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(gray 0%, gray 100%);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-circle::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background-color: #f0eeea;
  border-radius: 50%;
}

#countdownText {
  font-size: 2em;
  font-weight: bold;
  font-family: monospace;
  color: #333;
  z-index: 10;
}

.main-title {
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
  line-height: 38px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.rolling-banner {
  width: 100%;
  height: 23px;
  overflow: hidden;
  background-color: #7e0e0e;
  color: white;
  font-size: 18px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: bold;
  letter-spacing: 1.5px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -20px;
}

.rolling-text-wrapper {
  position: relative;
  margin-top: -56px;
}

.rolling-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 1s ease-in-out;
  opacity: 0;
  white-space: nowrap;
}

.main-title-big {
  font-size: 40px;
  font-weight: 700;
  text-decoration: none;
  line-height: 38px;
  text-shadow: 5px 5px 5px rgba(0, 0, 0, .2);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #7e0e0e;
}

.bulleted-list-med {
  text-align: left;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  line-height: 38px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
  letter-spacing: 1px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #7e0e0e;
}

.second-title-big-left {
  text-align: left;
  margin: 10px;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  line-height: 38px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
  letter-spacing: 1px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #7e0e0e;
}
.second-title-big {
  text-align: center;
  margin: 10px;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  line-height: 38px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
  letter-spacing: 1px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #7e0e0e;
}
.second-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
  letter-spacing: 1px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.third-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
  letter-spacing: 1px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.fourth-title {
  text-align: center;
  font-size: 18px;
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.small-ann-text {
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.ann-text {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin: 10px
}

.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  top: 130px;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.top-pad {
  margin-top: 30px;
}

.clock-container {
  text-align: center;
  color: #7e0e0e;
}

.clock {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  border-radius: 50%;
  width: 250px;
  height: 250px;
  position: relative;
  border: 5px solid #9f9f9f;
}

.date, .time {
  color: #ffffff;
  margin-top: 20px;
  text-align: center;
}

.numbers {
  margin: 20px -20px;
}

.number {
  position: absolute;
  text-align: center;
  font-size: 25px;
  font-weight: bold;
  color: #fff;
}

.hour, .minute, .second {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom;
  transform: translateX(-50%) rotate(0deg);
  border-radius: 50px;
}

.hour {
  width: 6px;
  height: 80px;
  background-color: #ffdf00;
  transform-origin: bottom;
  z-index: 1;
}

.minute {
  width: 4px;
  height: 110px;
  background-color: #00ffdf;
  transform-origin: bottom;
  z-index: 2;
}

.second {
  width: 2px;
  height: 122px;
  background-color: #ff0000;
  transform-origin: bottom;
  z-index: 3;
}

.center-ring {
  position: absolute;
  width: 15px;
  height: 15px;
  background: white;
  border: 2px solid black;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.digital-clock-big {
  font-size: 40px;
  font-weight: 700;
  text-decoration: none;
  line-height: 10px;
  text-shadow: 5px 5px 5px rgba(0, 0, 0, .2);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #7e0e0e;
}

.digital-clock-date-big {
  margin-top: 10px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
  letter-spacing: 1px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* Hide additional slides in simple mode */
body.simple-mode .additional-slide {
  display: none !important;
}

body.iqama-mode .clock-slide {
  display: none !important;
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
  body {
    min-height: 100vh;
    padding-top: 0;
  }

  /* Header adjustments for mobile */
  header {
    position: relative;
    margin: 5px 0;
    width: 100%;
  }

  .aic-header {
    flex-direction: row;
    min-height: 60px;
    padding: 5px;
    margin-bottom: 10px;
    justify-content: space-between;
    align-items: flex-start;
  }

  .digital-clock-date-hdr,
  .digital-clock-hdr {
    font-size: 14px;
    margin-top: 0;
    padding: 2px 5px;
    flex: 1;
    line-height: 1.2;
  }

  .digital-clock-date-hdr {
    text-align: left;
  }

  .digital-clock-hdr {
    text-align: right;
  }

  .aic-hdr-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    margin-top: 0;
  }

  /* AIC title full screen width in mobile */
  .aic-title {
    font-size: 18px;
    margin: 5px 0;
    width: 100vw;
    text-align: center;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 10px;
  }

  .header-image {
    width: 20px !important;
    height: auto !important;
    margin-top: 3px;
  }

  /* Rolling banner adjustments */
  .rolling-banner {
    height: 18px;
    font-size: 12px;
    margin-top: 0;
    position: relative;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .rolling-text-wrapper {
    margin-top: 0;
    position: relative;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .rolling-text {
    position: relative;
    left: auto;
    transform: none;
    opacity: 1;
    white-space: nowrap;
    font-size: 12px;
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Carousel adjustments for mobile only */
  .carousel {
    flex: 1;
    margin-top: 25px;
    position: relative;
    height: calc(100vh - 155px);
    padding-top: 20px;
  }

  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  /* Clock adjustments for mobile */
  .clock {
    width: 180px;
    height: 180px;
    border: 3px solid #9f9f9f;
  }

  .number {
    font-size: 18px;
  }

  .hour {
    width: 4px;
    height: 55px;
  }

  .minute {
    width: 3px;
    height: 75px;
  }

  .second {
    width: 2px;
    height: 80px;
  }

  .center-ring {
    width: 12px;
    height: 12px;
  }

  .digital-clock-big {
    font-size: 24px;
  }

  .digital-clock-date-big {
    font-size: 16px;
  }

  /* Container adjustments for mobile */
  .container {
    flex-direction: column;
    width: 95%;
    gap: 15px;
  }

  .left,
  .right {
    padding: 8px;
  }

  /* Table adjustments */
  table {
    font-size: 12px;
  }

  table th, table td {
    padding: 6px 8px;
    white-space: nowrap;
  }

  /* Progress circle adjustments */
  .progress-circle {
    width: 120px;
    height: 120px;
  }

  #countdownText {
    font-size: 1em;
  }

  /* Text size adjustments */
  .main-title {
    font-size: 20px;
    line-height: 24px;
  }

  .main-title-big {
    font-size: 24px;
    line-height: 28px;
  }

  .second-title-big {
    font-size: 20px;
    line-height: 24px;
    margin: 5px;
  }

  .second-title {
    font-size: 14px;
  }

  .third-title {
    font-size: 16px;
  }

  .ann-text {
    font-size: 16px;
    margin: 5px;
  }

  .small-ann-text {
    font-size: 12px;
  }

  /* Image adjustments for mobile */
  .carousel-slide img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Force all images in mobile to be responsive */
  img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Top padding adjustment */
  .top-pad {
    margin-top: 15px;
  }

  /* Better spacing for non-clock slides */
  .carousel-slide:not(.clock-slide) {
    justify-content: flex-start;
    padding-top: 20px;
  }

  /* Reduce top gap for clock slide */
  .carousel-slide.clock-slide {
    justify-content: flex-start;
    padding-top: 10px;
  }

  /* Remove from global scope */
  html, body {
    overflow-x: hidden !important;
  }
  body,
  .carousel,
  .carousel-slide,
  .container,
  .content,
  header,
  .aic-header,
  .rolling-banner,
  .rolling-text-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  header,
  .aic-header,
  .rolling-banner,
  .rolling-text-wrapper {
    margin: 0 !important;
    padding: 0 !important;
  }
  .left,
  .right {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  img, table {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Specific image size adjustments for mobile */
  .header-image {
    width: 20px !important;
    height: auto !important;
    margin-top: 3px;
  }

  /* Reduce QR code sizes in mobile */
  img[src*="AIC-FR-QR.png"],
  img[src*="AIC-WhatsApp-QR.png"] {
    width: 15% !important;
    max-width: 80px !important;
    height: auto !important;
  }

  /* More specific QR code targeting */
  .carousel-slide img[src*="AIC-FR-QR.png"],
  .carousel-slide img[src*="AIC-WhatsApp-QR.png"] {
    width: 12% !important;
    max-width: 60px !important;
    height: auto !important;
  }

  /* Keep hadith images and parking map at their current size */
  img[src*="hadith"],
  img[src*="AIC-Parking.png"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  body {
    min-height: 100vh;
    padding-top: 0;
  }

  /* Header adjustments for small mobile */
  header {
    margin: 3px 0;
    width: 100%;
  }

  .aic-header {
    flex-direction: row;
    min-height: 50px;
    padding: 3px;
    margin-bottom: 8px;
    justify-content: space-between;
    align-items: flex-start;
  }

  .digital-clock-date-hdr,
  .digital-clock-hdr {
    font-size: 12px;
    flex: 1;
    line-height: 1.2;
  }

  .digital-clock-date-hdr {
    text-align: left;
  }

  .digital-clock-hdr {
    text-align: right;
  }

  .aic-hdr-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    margin-top: 0;
  }

  /* AIC title full screen width in small mobile */
  .aic-title {
    font-size: 16px;
    width: 100vw;
    text-align: center;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 8px;
  }

  .header-image {
    width: 18px !important;
    height: auto !important;
    margin-top: 2px;
  }

  .rolling-banner {
    height: 16px;
    font-size: 11px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .rolling-text-wrapper {
    height: 16px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .rolling-text {
    font-size: 11px;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .carousel {
    flex: 1;
    margin-top: 20px;
    position: relative;
    height: calc(100vh - 130px);
    padding-top: 15px;
  }

  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 8px;
  }

  .clock {
    width: 150px;
    height: 150px;
  }

  .number {
    font-size: 16px;
  }

  .hour {
    width: 4px;
    height: 50px;
  }

  .minute {
    width: 3px;
    height: 60px;
  }

  .second {
    width: 2px;
    height: 70px;
  }

  .digital-clock-big {
    font-size: 20px;
  }

  .digital-clock-date-big {
    font-size: 14px;
  }

  .main-title {
    font-size: 18px;
  }

  .main-title-big {
    font-size: 20px;
  }

  .second-title-big {
    font-size: 18px;
  }

  .progress-circle {
    width: 100px;
    height: 100px;
  }

  .container {
    width: 98%;
  }

  table {
    width: 100%;
    font-size: 12px;
    min-width: 280px;
  }

  table th, table td {
    padding: 3px 4px;
    white-space: nowrap;
  }

  /* Better spacing for non-clock slides */
  .carousel-slide:not(.clock-slide) {
    justify-content: flex-start;
    padding-top: 15px;
  }

  /* Reduce top gap for clock slide */
  .carousel-slide.clock-slide {
    justify-content: flex-start;
    padding-top: 8px;
  }

  /* Force all images in small mobile to be responsive */
  img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Specific image size adjustments for small mobile */
  .header-image {
    width: 18px !important;
    height: auto !important;
  }

  /* Reduce QR code sizes in small mobile */
  img[src*="AIC-FR-QR.png"],
  img[src*="AIC-WhatsApp-QR.png"] {
    width: 20% !important;
    max-width: 100px !important;
    height: auto !important;
  }

  /* More specific QR code targeting for small mobile */
  .carousel-slide img[src*="AIC-FR-QR.png"],
  .carousel-slide img[src*="AIC-WhatsApp-QR.png"] {
    width: 18% !important;
    max-width: 90px !important;
    height: auto !important;
  }

  /* Keep hadith images and parking map at their current size */
  img[src*="hadith"],
  img[src*="AIC-Parking.png"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Image adjustments for small mobile */
  .carousel-slide img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Table container adjustments for small mobile */
  .table-container {
    overflow-x: auto;
    padding: 0 5px 5px 5px;
  }
}

/* Landscape mobile orientation */
@media screen and (max-width: 768px) and (orientation: landscape) {
  body {
    min-height: 100vh;
    padding-top: 0;
  }

  /* Header adjustments for landscape mobile */
  header {
    position: relative;
    margin: 2px 0;
    width: 100%;
  }

  .aic-header {
    flex-direction: row;
    min-height: 40px;
    padding: 2px;
    margin-bottom: 6px;
    justify-content: space-between;
    align-items: flex-start;
  }

  .digital-clock-date-hdr,
  .digital-clock-hdr {
    font-size: 10px;
    flex: 1;
    line-height: 1.2;
  }

  .digital-clock-date-hdr {
    text-align: left;
  }

  .digital-clock-hdr {
    text-align: right;
  }

  .aic-hdr-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    margin-top: 0;
  }

  .rolling-banner {
    height: 14px;
    font-size: 10px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .rolling-text-wrapper {
    height: 14px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .rolling-text {
    font-size: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .carousel {
    flex: 1;
    margin-top: 18px;
    position: relative;
    height: calc(100vh - 105px);
    padding-top: 12px;
  }

  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 5px;
  }

  .clock {
    width: 120px;
    height: 120px;
  }

  .container {
    flex-direction: row;
    width: 90%;
  }

  .left,
  .right {
    flex: 1;
  }

  .progress-circle {
    width: 80px;
    height: 80px;
  }

  /* AIC title full screen width in landscape mobile */
  .aic-title {
    width: 100vw;
    text-align: center;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 5px;
  }

  /* Better spacing for non-clock slides */
  .carousel-slide:not(.clock-slide) {
    justify-content: flex-start;
    padding-top: 10px;
  }

  /* Reduce top gap for clock slide */
  .carousel-slide.clock-slide {
    justify-content: flex-start;
    padding-top: 5px;
  }

  /* Force all images in landscape mobile to be responsive */
  img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Specific image size adjustments for landscape mobile */
  .header-image {
    width: 16px !important;
    height: auto !important;
    margin-top: 1px;
  }

  /* Reduce QR code sizes in landscape mobile */
  img[src*="AIC-FR-QR.png"],
  img[src*="AIC-WhatsApp-QR.png"] {
    width: 15% !important;
    max-width: 80px !important;
    height: auto !important;
  }

  /* More specific QR code targeting for landscape mobile */
  .carousel-slide img[src*="AIC-FR-QR.png"],
  .carousel-slide img[src*="AIC-WhatsApp-QR.png"] {
    width: 12% !important;
    max-width: 70px !important;
    height: auto !important;
  }

  /* Keep hadith images and parking map at their current size */
  img[src*="hadith"],
  img[src*="AIC-Parking.png"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Image adjustments for landscape mobile */
  .carousel-slide img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Table adjustments for landscape mobile */
  table {
    width: 100%;
    font-size: 11px;
    min-width: 250px;
  }

  table th, table td {
    padding: 4px 6px;
    white-space: nowrap;
  }

  /* Table container adjustments for landscape mobile */
  .table-container {
    overflow-x: auto;
    padding: 0 5px 5px 5px;
  }

  /* Clock pointer adjustments for landscape mobile */
  .hour {
    width: 4px;
    height: 40px;
  }

  .minute {
    width: 3px;
    height: 60px;
  }

  .second {
    width: 2px;
    height: 70px;
  }
}

/* Rolling text animation for mobile only */
@media (max-width: 768px) {
  .rolling-text {
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
    width: auto;
    min-width: 100%;
  }

  #rollingText1 {
    animation: rollText 30s linear infinite; /* Fallback duration */
  }

  #rollingText2 {
    animation: none; /* No animation needed since it's empty on mobile */
  }

  @keyframes rollText {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
}

/* Keep rolling text static for TV display */
@media (min-width: 769px) {
  .rolling-text {
    animation: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
  }

  #rollingText1,
  #rollingText2 {
    animation: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

#iqamaTable {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 95%;
}

#iqamaTable td, #iqamaTable th {
    border: 1px solid #ddd;
    padding: 8px;
}

#iqamaTable td:nth-child(odd) {
    background-color: #524f50;
    color: #ddecdb;
    text-align: center;
}

#iqamaTable td:nth-child(even) {
    background-color: #6d5750;
    color: #f6fde2;
    text-align: center;
}

#iqamaTable th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
    background-color: #5a2d1e;
    color: #f6fce2;
}
