/*
Theme Name: Masjid Al-Khair Custom Theme
Theme URI: https://masjidal-khair.com
Author: Developer
Description: A fully custom, lightweight WordPress theme built for Masjid Al-Khair.
Version: 1.0.0
Text Domain: masjidalkhair
*/

:root {
  /* Color Palette */
  --primary-color: #064e3b; /* Deep Emerald Green */
  --primary-light: #0f766e; /* Muted Teal Accent */
  --accent-color: #b45309; /* Warm Gold / Amber */
  --text-dark: #1f2937; /* Charcoal Body Text */
  --text-light: #f9fafb; /* Off-White Text */
  --bg-light: #f3f4f6; /* Light Gray Section Background */
  --bg-white: #ffffff;

  /* Layout Configurations */
  --container-width: 1200px;
  --font-stack:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-stack);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Reusable Components */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #92400e;
}

/* Structural Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* ==========================================================================
   FRONT PAGE COMPONENTS 
   ========================================================================== */

.imam-card {
  background: var(--bg-white);
  max-width: 600px;
  margin: 0 auto;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.imam-card h3 {
  font-size: 1.1rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.imam-name {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* News / Articles Section */
.news-section {
  padding: 80px 0;
}

.news-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-item {
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  padding: 20px;
}

.news-item h3 {
  margin: 15px 0 10px 0;
  font-size: 1.2rem;
}

.news-item a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
}
