/*
CTC Separate Stylesheet
Updated: 2024-09-03 16:29:45
*/

/* =====================================================
   Al-Murtaza Society — Custom Front Page Styles
   Paste this ENTIRE file's content into:
   wp-content/themes/tabligh-child/ctc-style.css
   (append below whatever is already there)
   ===================================================== */

.amc-section { padding: 4.5rem 0; }
.amc-section .container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.amc-section-title {
  font-family: Philosopher;
  font-size: 2.25rem;
  color: #222;
  margin-bottom: 1rem;
}
.amc-section-title.light { color: #fff; }
.amc-section-sub {
  font-family: Montserrat;
  color: #666;
  margin-bottom: 1.5rem;
}
.amc-eyebrow {
  display: inline-block;
  font-family: Montserrat;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--color2);
  margin-bottom: 0.5rem;
}
.amc-eyebrow.light { color: var(--color3); }
.amc-mt { margin-top: 3rem; }
p.light, li.light, h3.light, h4.light { color: #eee; }

/* ---- Hero ---- */
.amc-hero {
  background: linear-gradient(rgba(10,16,36,.65), rgba(10,16,36,.65)),
              url('') center/cover no-repeat;
  background-color: var(--color5);
  padding: 6rem 0 4rem;
  text-align: center;
  color: #fff;
}
.amc-hero-title {
  font-family: Philosopher;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.amc-hero-tagline {
  font-family: Montserrat;
  font-size: 1.1rem;
  color: #eee;
  margin-bottom: 2rem;
}
.amc-prayer-times {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}
.amc-prayer-times li {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  min-width: 100px;
}
.amc-prayer-name {
  display: block;
  font-family: Philosopher;
  font-weight: 700;
  color: var(--color3);
}
.amc-prayer-time {
  display: block;
  font-family: Poppins;
  font-size: 0.9rem;
  color: #fff;
}

/* ---- Courses grid ---- */
.amc-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.amc-course-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.amc-course-card h3 {
  font-family: Philosopher;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.amc-course-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}
.amc-read-more {
  font-family: Montserrat;
  font-weight: 600;
  color: var(--color2);
  text-decoration: underline;
}

/* ---- Check list ---- */
.amc-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.amc-check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  font-family: Montserrat;
  color: #555;
}
.amc-check-list.light li { color: #ddd; }
.amc-check-list li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color2);
  font-weight: 700;
}

/* ---- Who can join ---- */
.amc-join-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}
.amc-join-item {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1.5rem 1rem;
}
.amc-join-item h4 {
  font-family: Philosopher;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.amc-join-item span {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--color2);
  font-weight: 600;
}

/* ---- Events / News grid ---- */
.amc-events-grid,
.amc-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.amc-events-grid { grid-template-columns: repeat(2, 1fr); }
.amc-event-card,
.amc-news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.amc-event-card img,
.amc-news-card img { width: 100%; height: auto; display: block; }
.amc-event-card h3,
.amc-news-card h3 {
  font-family: Philosopher;
  font-size: 1.1rem;
  padding: 1rem 1.25rem 0.5rem;
}
.amc-event-date,
.amc-news-date {
  display: block;
  padding: 0 1.25rem 1rem;
  font-size: 0.85rem;
  color: var(--color2);
}

/* ---- Welfare grid ---- */
.amc-welfare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.amc-welfare-card {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1.5rem;
}
.amc-welfare-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.amc-welfare-card p { font-size: 0.9rem; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .amc-courses-grid { grid-template-columns: repeat(2, 1fr); }
  .amc-join-grid { grid-template-columns: repeat(3, 1fr); }
  .amc-events-grid,
  .amc-news-grid,
  .amc-welfare-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .amc-courses-grid,
  .amc-join-grid,
  .amc-events-grid,
  .amc-news-grid,
  .amc-welfare-grid { grid-template-columns: 1fr; }
  .amc-hero-title { font-size: 2rem; }
}

/* =====================================================
   Scroll Animations + Hover Effects
   Append to ctc-style.css (below everything else)
   ===================================================== */

/* Smooth scroll for whole site */
html { scroll-behavior: smooth; }

/* Base state: hidden + shifted down, before scrolling into view */
.amc-animate {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.amc-animate.amc-inview {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover lift effect */
.amc-course-card,
.amc-event-card,
.amc-news-card,
.amc-welfare-card,
.amc-join-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.amc-course-card:hover,
.amc-event-card:hover,
.amc-news-card:hover,
.amc-join-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.amc-welfare-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.1);
}

/* Button hover polish */
.thm-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.thm-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

/* Read more link hover */
.amc-read-more {
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}
.amc-read-more:hover {
  letter-spacing: 0.5px;
}

/* Prayer time boxes subtle hover */
.amc-prayer-times li {
  transition: transform 0.25s ease, background 0.25s ease;
}
.amc-prayer-times li:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.18);
}

/* Respect users who disable motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .amc-animate,
  .amc-course-card,
  .amc-event-card,
  .amc-news-card,
  .amc-welfare-card,
  .amc-join-item,
  .thm-btn {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

