/* Basic styles for Community App */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  background: var(--color-bg, #f0f2f5);
  color: var(--color-text, #1a1a1a);
}

/* NAVBAR */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 1px 0;
}
.nav-container {
  width: 96%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-box {
  width: 45px;
  height: 45px;
  background: var(--brand);
  border-radius: 4px;
}
.nav-links {
  display: flex !important;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  white-space: nowrap;
}
.nav-links a:first-child {
  margin-left: 0;
}
.nav-links a:hover {
  color: var(--brand) !important;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border: 1px solid #ddd;
}
.dropdown-menu li {
  list-style: none;
  display: block;
}
.dropdown-menu li a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}
.dropdown-menu li a:hover {
  background-color: #f1f1f1;
  color: var(--brand);
}
.dropdown-menu.show {
  display: block !important;
}

/* TOP BANNER */
.top-banner {
  background: var(--brand);
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
}

/* MAIN WRAPPER */
.wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
}

/* SECTION TITLES */
.section-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* CARDS */
.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  padding-bottom: 10px;
}
.card-img {
  height: 140px;
  background: #ccc;
}
.card-body {
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
}

/* UPDATES LIST */
.updates-list li {
  background: white;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  font-size: 14px;
}

/* QUICK DONATE */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 40px;
}
.donate-box {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
}
.donate-buttons button {
  padding: 10px 20px;
  margin-right: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--brand);
  background: white;
  border-radius: 20px;
  cursor: pointer;
}
.donate-buttons button:hover {
  background: var(--brand);
  color: white;
}
.donate-now {
  width: 100%;
  padding: 12px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 15px;
}

/* FOOTER */
.footer {
  background: #111;
  color: #ccc;
  padding: 40px 0 20px;
  margin-top: 60px;
}
.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer h3 {
  color: white;
  margin-bottom: 10px;
}
.footer input {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  background: #222;
  border: 1px solid #444;
  color: white;
  border-radius: 4px;
}
.footer button {
  width: 100%;
  padding: 10px;
  background: var(--brand);
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #777;
}

/* ============================================== */

/* body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
} */

nav ul {
  list-style: none;
  padding: 0;
  background-color: var(--brand);
  margin: 0;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  display: inline-block;
}

.color-primary {
  color: var(--brand);
}

footer {
  text-align: center;
  padding: 20px;
  background-color: var(--brand);
  color: white;
  position: static;
  width: 100%;
}

/* SOCIAL ICONS */
.social-icons-row {
  background-color: white !important;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.socialIcons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--brand);
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.socialIcons li a:hover {
  background-color: var(--brand-dark);
  transform: scale(1.1);
}

.socialIcons li a.tiktok::before {
  content: "♪";
}

.socialIcons li a.whatsapp::before {
  content: "✓";
}

.socialIcons li a.facebook::before {
  content: "f";
}

.socialIcons li a.youtube::before {
  content: "▶";
}

.socialIcons li a.instagram::before {
  content: "📷";
}

/* ── Global mobile compaction ────────────────────────────── */
@media (max-width: 640px) {
  /* Layout wrappers */
  .wrapper          { width:96%; margin:12px auto; }
  .nav-container    { width:98%; }

  /* Navbar */
  .navbar           { padding:0; }
  .logo-area        { gap:6px; }
  .mainCallToAction,
  .navbar-prayer-block,
  .date-wrapper,
  .salah-block-content { display:none !important; }

  /* Cards */
  .card             { border-radius:4px; }
  .card-body        { padding:6px; font-size:13px; }

  /* Grids */
  .grid-3, .grid-4  { grid-template-columns:1fr; gap:10px; }
  .donate-grid      { grid-template-columns:1fr; gap:12px; }
  .donate-box       { padding:12px; }

  /* Footer */
  .footer           { padding:20px 0 10px; margin-top:24px; }
  .footer-container { grid-template-columns:1fr; gap:16px; width:94%; }

  /* Dashboard cards & tables */
  .db-card          { padding:10px !important; border-radius:6px; }
  .db-table th,
  .db-table td      { padding:6px 8px; font-size:0.8rem; }


  /* Section titles */
  .section-title    { font-size:17px; margin-bottom:8px; }

  /* Buttons */
  .ev-btn-primary   { padding:7px 12px; font-size:0.8rem; }
}

@media (max-width: 768px) {
  .mainCallToAction,
  .navbar-prayer-block,
  .date-wrapper,
  .salah-block-content { display:none !important; }
}
