/* ---------- GLOBAL ---------- */
body {
  margin: 0;
  font-family: "Noto Sans Bengali", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: 0.4s ease;
}

:root {
  --bg: #f7fafc;
  --text: #222;
  --primary: #004d40;
  --accent: #00796b;
  --card-bg: #ffffff;
}

[data-theme="dark"] {
  --bg: #121212;
  --text: #eaeaea;
  --primary: #26a69a;
  --card-bg: #1e1e1e;
}






.dark-toggle {
  background: transparent;
  border: 1px solid white;
  color: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  background: url('assets/masjid-bg.jpg') center/cover no-repeat;
  background-color: rgb(0, 105, 88);
  background-blend-mode: overlay;
  color: white;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* ---------- CARDS ---------- */
.container {
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--primary);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card h2 a {
  text-decoration: none;
  color: var(--primary);
}

.button {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.button:hover {
  background: var(--accent);
}

/* ---------- QURAN VERSE ---------- */
.quran-verse {
  text-align: center;
  padding: 45px 25px;
  margin: 50px auto;
  max-width: 900px;
  background: #f1f8e9;
  border-radius: 15px;
  border-left: 6px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



/* ---------- RESPONSIVE MENU (Mobile Optimized) ---------- */
@media (max-width: 768px) {

 
  /* Hero optimization for mobile */
  .hero {
    background: linear-gradient(to right, #004d40, #00796b);
    padding: 20px 15px;
  }

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

  .hero p {
    font-size: 1rem;
  }

  /* Cards: make them smaller but clear */
  .container {
    padding: 20px 10px;
    gap: 15px;
  }

  .card {
    padding: 18px;
  }

  .card h2 a {
    font-size: 1.1rem;
  }

  .button {
    padding: 7px 14px;
    font-size: 0.9rem;
  }

  /* Hide long Quran verse on small screens */
  .quran-verse {
    display: none;
  }

 
}
/* ARTICLE SECTION */
.articles-section {
    padding: 40px 20px;
    margin-top: 40px;
    background: #f4f7f5;
    border-radius: 10px;
}

.section-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 25px;
    color: #1f5f46;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.article-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.article-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
}

.article-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

.article-button {
    background: #1f5f46;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 6px;
}

.view-all-articles {
    text-align: center;
    margin-top: 25px;
}

.view-all-articles a {
    background: #1f5f46;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 6px;
}

.single-article-box {
    background: #f4f7f5;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.single-article-box h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #1f5f46;
}

.single-article-box p {
    font-size: 15px;
    color: #555;
    margin-bottom: 18px;
}

.single-article-box .article-button {
    background: #1f5f46;
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

