body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background: rgba(240, 242, 245, 0.34);
  color: #333;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://www.madhyamam.com/h-library/ramadan-prayer-page/ramadan-bg.png") center/cover no-repeat;
  opacity: 0.5;
  z-index: -1;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.headerFont {
  font-weight: bold;
  color: #1e3c72;
}

/* Logo Image Styles */
.logoImage {
  width: 220px;
  padding: 6px;
  height: 50px;
  display: block;
  border-radius: 8px;
  -o-object-fit: contain;
  object-fit: contain;
  /* background: rgba(252, 245, 245, 0.69);
  -webkit-box-shadow: 0 4px 8px rgb(252, 245, 245, 0.69);
  box-shadow: 0 4px 8px rgb(252, 245, 245); */
  -webkit-transition: -webkit-transform 0.3s, box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s;
  -webkit-animation: bounceIn 0.8s ease-out;
  animation: bounceIn 0.8s ease-out;
}

/* Container Styles */
.logoContainer {
  max-width: 1200px;
  margin: 20px auto;
  /* padding: 10px; */
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border-radius: 12px;
}

/* Hover Effect */
.logoImage:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  -webkit-box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Bounce-in Animation */
@-webkit-keyframes bounceIn {
  0% {
    -webkit-transform: translateY(-50px);
    transform: translateY(-50px);
    opacity: 0;
  }
  60% {
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    -webkit-transform: translateY(-50px);
    transform: translateY(-50px);
    opacity: 0;
  }
  60% {
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

.bannerImage {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  overflow: hidden;
}

.bannerImage img {
  max-width: 100%;
  width: 100%;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  border-radius: 10px;
}

.header {
  grid-column: 1 / -1;
  display: flex !important;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 20px;
  background: rgba(247, 244, 242, 0.64);
  border-radius: 10px;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.right-sidebar {
  display: flex !important; /* Force display */
  flex-direction: column;
  gap: 20px;
  width: 300px;
  position: sticky;
  top: 20px;
  height: fit-content;
  z-index: 100; /* Increase z-index */
  background: transparent; /* Ensure background is transparent */
}

.right-sidebar > div {
  display: block !important; /* Force display */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* Only hide sidebar on mobile */
@media screen and (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }

  .right-sidebar {
    position: static;
    width: 100%;
  }
}

/* Fix for images in ad space */
.right-sidebar > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block !important;
  max-width: 100%;
}

/* Ensure ads maintain size */
.ad-300x250 {
  width: 300px !important;
  height: 250px !important;
  min-height: 250px;
  visibility: visible;
}

.ad-300x600 {
  width: 300px !important;
  height: 600px !important;
  min-height: 600px;
  visibility: visible;
}

.main-content {
  background: rgba(255, 253, 253, 0.69);
  border-radius: 10px;
  padding: 20px;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 12px 16px;
  background-color: white;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  /* margin-bottom: 16px; */
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.date-info span {
  font-size: 1.2em;
  color: #333;
}

.date-info:hover {
  -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  padding: 16px;
}

.prayer-card {
  background-color: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  -webkit-transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #f0f0f0;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-wrap-mode: nowrap;
}

.prayer-card h3 {
  margin: 8px 0;
  font-size: 1.1rem;
  color: #222;
}

.prayer-card p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.prayer-card:hover {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  -webkit-box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
  border-color: #105c14;
  color: #105c14;
}

.prayer-name {
  font-size: 1.2em;
  margin-bottom: 8px;
  color: #2c3e50;
}

.prayer-time {
  font-size: 1.4em;
  font-weight: bold;
  color: #1e3c72;
}
.space {
  margin: 0 auto 20px;
}
.bannerwrapper {
  max-width: 970px;
  width: 100%;
  height: 90px;
  /* background: #fff; */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  /* -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.location-dropdown {
  position: relative;
  display: inline-block;
}

.location-select {
  padding: 10px 20px;
  font-size: 16px;
  /* border: 2px solid #1e3c72; */
  border-radius: 8px;
  background: white;
  color: #1e3c72;
  cursor: pointer;
  min-width: 200px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3c72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 40px;
}

.location-select:focus {
  outline: none;
  border-color: #2a5298;
  -webkit-box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.2);
  box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.2);
}

.tablewrapper {
  overflow: auto;
  width: 100%;
  max-width: 850px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 850px;
  border-collapse: collapse;
  display: block;
  margin: 0 auto;
  border-spacing: 0;
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

tbody {
  white-space: nowrap;
}

th,
td {
  padding: 12px;
  text-align: center;
  border: 1px solid #dee2e6;
  width: 100px;
  text-wrap: nowrap;
}

th {
  background: #425e4b;
  color: #ffffff;
  width: 100px;
  text-wrap: nowrap;
}

tr:hover {
  background: #f8f9fa;
}

.today {
  background-color: rgb(135, 224, 140);
}

h2 {
  font-size: 2rem;
}

.header-city {
  color: #105c14;
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(135deg, rgba(245, 247, 250, 0.36), #e6e9f0);
  padding: 20px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}

/* Text styling */
.footer-text {
  color: #4a6fa1;
  margin: 0;
  font-size: 14px;
}

/* Link styling */
.footer-link {
  color: #4a6fa1;
  text-decoration: none;
  margin-right: 5px;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Copyright styling */
.copyright {
  color: #333;
  font-weight: bold;
}

.mobile {
  display: none;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
  .container {
    max-width: 960px;
    gap: 15px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 15px;
  }

  .logoContainer {
    margin: 10px;
    /* margin: 10px auto; */
  }
  .logoImage {
    height: 45px;
    width: 200px;
  }
  .bannerwrapper {
    height: 1px;
    margin: 0 auto 20px;
    display: none;
  }
  .header {
    display: block;
  }

  .right-sidebar {
    position: static;
    width: 100%;
    display: none !important;
  }

  .right-sidebar > div {
    margin: 0 auto;
  }

  .bannerImage {
    height: auto;
  }

  .logo {
    width: 110px;
    height: 30px;
  }
  .space {
    margin-top: 10px;
    margin-bottom: 25px;
  }
  .bannerImage img {
    height: auto;
  }
  .location-select {
    margin-top: 10px;
  }
  h2 {
    font-size: 1rem;
  }
  .prayer-time {
    font-size: 1rem;
  }
  .prayer-name {
    font-size: 1rem;
  }

  table {
    font-size: 14px;
    width: calc(100vw - 54px);
  }

  th,
  td {
    padding: 8px;
  }
  .footer {
    display: block;
    text-align: center;
  }

  .mobile {
    display: inline-block;
    /* max-width: 320px; */
    max-height: 100px;
  }
}