/* =============================
   Base & Reset
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background-color: #0f172a; /* slate-900 */
  color: #f8fafc; /* slate-50 */
  line-height: 1.6;
}

/* =============================
   Links & Buttons
============================= */
a {
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  opacity: 0.85;
}

.btn-primary {
  background: #2563eb; /* blue-600 */
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #1d4ed8; /* blue-700 */
}

.btn-secondary {
  border: 1px solid #38bdf8; /* sky-400 */
  color: #38bdf8;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* =============================
   Header & Nav
============================= */
header {
  background: linear-gradient(to right, #1e3a8a, #2563eb);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 50;
}

header nav a {
  color: #e2e8f0; /* slate-200 */
  font-weight: 500;
}

header nav a:hover,
header nav a.active {
  color: #fff;
  border-bottom: 2px solid #38bdf8;
  padding-bottom: 2px;
}

/* =============================
   Sections
============================= */
.section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #e0f2fe; /* light blue */
}

/* =============================
   Cards & Tiles
============================= */
.card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.2s ease, background 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.event-tile {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.event-tile:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.02);
}

/* =============================
   Parasha Section
============================= */
.parasha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.parasha-card {
  background: rgba(37, 99, 235, 0.15); /* blue-600 light */
  padding: 1.25rem;
  border-radius: 0.75rem;
  border-left: 4px solid #38bdf8;
  transition: all 0.3s ease;
}

.parasha-card:hover {
  background: rgba(37, 99, 235, 0.25);
  transform: translateY(-3px);
}

/* =============================
   Radio Player
============================= */
.radio-section {
  text-align: center;
}

.radio-player {
  margin: 1.5rem auto;
  background: rgba(255,255,255,0.08);
  padding: 1rem;
  border-radius: 0.75rem;
  max-width: 400px;
}

.radio-player audio {
  width: 100%;
  outline: none;
}

/* =============================
   Gallery
============================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  border-radius: 0.75rem;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* =============================
   Floating Animation
============================= */
.float {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =============================
   Footer
============================= */
footer {
  background: #1e293b; /* slate-800 */
  color: #94a3b8; /* slate-400 */
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  border-top: 2px solid #334155;
}

footer h4 {
  color: #f1f5f9; /* slate-100 */
}

footer a {
  color: #38bdf8;
}

footer a:hover {
  text-decoration: underline;
}
