:root {
  --primary-green: #228b22;
  --deep-green: #006400;
  --cream: #f8f8f8;
  --gold: #d4af37;
  --navy: #000080;
  --light-gray: #eaeaea;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
@media (min-width: 1024px) {
  .desktop-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .desktop-sidebar {
    width: var(--sidebar-width);
    padding: 30px 20px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-right: 30px;
    flex-shrink: 0;
  }

  .content-wrapper {
    flex: 1;
    max-width: calc(100% - var(--sidebar-width) - 30px);
  }

  .sidebar-nav {
    list-style: none;
    margin-bottom: 30px;
  }

  .sidebar-nav li {
    margin-bottom: 10px;
  }

  .sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
  }

  .sidebar-link i {
    margin-right: 15px;
    width: 24px;
    text-align: center;
    color: var(--primary-green);
  }

  .sidebar-link:hover,
  .sidebar-link.active {
    background: rgba(34, 139, 34, 0.1);
    color: var(--deep-green);
  }

  .prayer-widget {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .content-columns {
    display: flex;
    gap: 30px;
    margin-top: 30px;
  }

  .column {
    flex: 1;
  }

  .hero {
    padding: 60px 40px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
    max-width: 700px;
  }

  .hero p {
    font-size: 1.2rem;
    max-width: 700px;
  }

  .section-header h2 {
    font-size: 1.8rem;
    padding-left: 20px;
  }

  .section-header h2::before {
    height: 30px;
    width: 6px;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
    gap: 25px;
    justify-content: center; /* centers them in the grid */
  }

  .card-img {
    height: 200px;
  }

  .essentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
  }

  .essential-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  .essential-card:hover {
    transform: translateY(-5px);
  }

  .essential-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
  }

  .essential-card h3 {
    margin-bottom: 10px;
    color: var(--deep-green);
  }

  .essential-card p {
    color: var(--text-light);
    font-size: 0.95rem;
  }

  .explore-more-btn {
    max-width: 300px;
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    padding: 50px 30px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
  }

  .prayer-times {
    grid-template-columns: repeat(3, 1fr);
  }
}
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(34, 139, 34, 0.03) 0%,
      transparent 10%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(212, 175, 55, 0.03) 0%,
      transparent 10%
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(0, 100, 0, 0.02) 20px,
      rgba(0, 100, 0, 0.02) 40px
    );
  z-index: -1;
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.container {
  width: 100%;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-icon::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm3-8H9v2h6v-2z'/%3E%3C/svg%3E")
    no-repeat center;
}

.logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--deep-green);
  font-size: 1.2rem;
}

.logo-text span {
  color: var(--gold);
}

.nav-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--deep-green);
  cursor: pointer;
}

nav {
  position: fixed;
  top: 70px;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: calc(100vh - 70px);
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  z-index: 99;
}

nav.active {
  right: 0;
}

.nav-links {
  list-style: none;
  padding: 30px 0;
}

.nav-links li {
  border-bottom: 1px solid var(--light-gray);
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 18px 25px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a i {
  margin-right: 15px;
  text-align: center;
  color: var(--primary-green);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(34, 139, 34, 0.05);
  color: var(--deep-green);
}

/* Main Content */
main {
  padding: 20px 0 80px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  background: linear-gradient(rgba(0, 100, 0, 0.85), rgba(0, 100, 0, 0.9)),
    url("https://images.unsplash.com/photo-1558591710-4b4a1ae0f04d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80")
      center/cover;
  color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px 25px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.search-box {
  background: var(--white);
  border-radius: 50px;
  padding: 8px;
  display: flex;
  margin-top: 20px;
  max-width: 500px;
  position: relative;
  z-index: 2;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  outline: none;
  background: transparent;
}

.search-box button {
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--deep-green);
}

/* Section Styles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 20px;
}

.section-header h2 {
  font-size: 1.5rem;
  color: var(--deep-green);
  position: relative;
  padding-left: 15px;
}

.section-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.view-all {
  color: var(--primary-green);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all i {
  font-size: 0.9rem;
}

/* Cards */

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gold);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.card-content {
  padding: 20px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-title h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
}

.card-title .verification {
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(34, 139, 34, 0.1);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.card-detail {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-detail i {
  color: var(--primary-green);
  font-size: 0.9rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--light-gray);
}

.price {
  font-weight: 600;
  color: var(--deep-green);
}

.map-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9rem;
}

/* Prayer Section */
.prayer-container {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.prayer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hijri-date {
  background: rgba(34, 139, 34, 0.1);
  color: var(--primary-green);
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
}

.prayer-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.prayer-time {
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  background: var(--cream);
  transition: var(--transition);
}

.prayer-time.active {
  background: var(--primary-green);
  color: white;
}

.prayer-time.active .prayer-name,
.prayer-time.active .prayer-hour {
  color: white;
}

.prayer-name {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.prayer-hour {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--deep-green);
}

.qibla-direction {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--light-gray);
  text-align: center;
}

.qibla-compass {
  width: 150px;
  height: 150px;
  margin: 20px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-circle {
  width: 100%;
  height: 100%;
  border: 2px solid var(--light-gray);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-needle {
  position: absolute;
  width: 4px;
  height: 60%;
  background: var(--primary-green);
  bottom: 50%;
  transform-origin: bottom center;
  transform: rotate(135deg);
}

.compass-needle::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
}

.kaaba-icon {
  position: absolute;
  font-size: 1.5rem;
  color: var(--gold);
}

.qibla-text {
  margin-top: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

/* Tabs */
.tabs {
  display: flex;
  background: var(--white);
  border-radius: 50px;
  padding: 5px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.tab.active {
  background: var(--primary-green);
  color: white;
}

/* Footer */
footer {
  background: var(--deep-green);
  color: var(--white);
  padding: 40px 0 20px;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.language-selector {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 5px;
  margin-top: 10px;
}

.lang-option {
  padding: 5px 15px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.lang-option.active {
  background: var(--white);
  color: var(--deep-green);
  font-weight: 500;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Navigation Bar */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  z-index: 90;
}

.nav-item {
  flex: 1;
  text-align: center;
  padding: 15px 5px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.nav-item.active {
  color: var(--primary-green);
}

.nav-item i {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 5px;
}

/* Responsive */
@media (min-width: 768px) {
  .header-content {
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .nav-toggle {
    display: none;
  }

  nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    flex: 1; /* Allow nav to take available space */
    display: flex;
    justify-content: center; /* Align nav to the right */
    max-width: none;
    margin-left: 350px;
  }

  .nav-links {
    display: flex;
    padding: 0;
    margin: 0;
    align-items: center;
    width: auto; /* Remove width constraint */
    gap: 10px; /* Add gap between nav items */
  }

  .nav-links li {
    border: none;
    width: auto; /* Remove width constraint */
    flex-shrink: 0; /* Prevent nav items from shrinking */
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(34, 139, 34, 0.1);
    color: var(--deep-green);
    transform: translateY(-2px);
  }

  .nav-links a i {
    margin-right: 8px;
    font-size: 0.9rem;
  }
}

@media (min-width: 1200px) {
  .nav-links a {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .nav-links {
    gap: 15px;
  }
}

/* Islamic Pattern Overlay */
.islamic-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: radial-gradient(
      circle,
      var(--gold) 1.5px,
      transparent 1.5px
    ),
    radial-gradient(circle, var(--gold) 1.5px, transparent 1.5px);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  pointer-events: none;
}
/* Additional styles for new elements */
.explore-more-btn {
  display: block;
  margin: 30px auto;
  padding: 12px 25px;
  background-color: #006400;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
  max-width: 200px;
}

.explore-more-btn:hover {
  background-color: #004d00;
}
