/*
Theme Name: Life With Quran
Theme URI: https://lifewithquran.com
Author: Life With Quran
Author URI: https://lifewithquran.com
Description: Professional Islamic WordPress theme for online Quran tutoring. Emerald green + gold design.
Version: 2.1.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: lifewithquran
Tags: education, islamic, custom-menu, featured-images, responsive
*/

/* Life With Quran - Professional Islamic Theme */
:root {
  --green: #0B6E4F;
  --green-dark: #064E3B;
  --green-deep: #043D30;
  --teal: #0D9488;
  --gold: #C9A227;
  --gold-light: #E8D48B;
  --cream: #FDF8F0;
  --sand: #F7F3EB;
  --white: #FFFFFF;
  --text: #1A2E28;
  --muted: #5A6B64;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

.arabic { font-family: 'Amiri', serif; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(180deg, #043D30 0%, #064E3B 100%);
  border-bottom: 2px solid rgba(201, 162, 39, 0.45);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 60px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  color: #d1fae5;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: #fff;
}

.nav-desktop a.active {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.btn-gold {
  background: linear-gradient(135deg, #C9A227, #E8D48B);
  color: #043D30 !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201,162,39,0.4);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  padding: 12px 20px 20px;
  background: #043D30;
}

.nav-mobile a {
  display: block;
  color: #d1fae5;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-mobile.open { display: block; }

.gold-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(145deg, #043D30 0%, #0B6E4F 45%, #0D9488 100%);
  color: white;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M40 40c0-11 9-20 20-20s20 9 20 20-9 20-20 20-20-9-20-20zm-20 0c0-11 9-20 20-20s20 9 20 20-9 20-20 20-20-9-20-20z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; }
.hero-text .bismillah {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 12px;
}

.hero-text h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-text h1 span { color: var(--gold); }

.hero-text p {
  font-size: 17px;
  color: #d1fae5;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.btn-white {
  background: white;
  color: var(--green-deep);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-white:hover { background: var(--cream); }

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-outline-gold:hover { background: rgba(201,162,39,0.15); }

.hero-trust {
  font-size: 13px;
  color: #a7f3d0;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  max-width: 400px;
}

.hero-image-wrap img {
  border-radius: 16px;
  border: 4px solid rgba(201,162,39,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: white;
  color: var(--green-deep);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 1px solid rgba(201,162,39,0.3);
}

.hero-badge strong { display: block; font-size: 16px; }
.hero-badge span { font-size: 12px; color: #666; }

/* ===== SECTIONS ===== */
.section {
  padding: 70px 20px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.divider::before,
.divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider span { color: var(--gold); font-size: 14px; }

/* ===== CARDS ===== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(11,110,79,0.07);
  border: 1px solid rgba(11,110,79,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(11,110,79,0.12);
  border-color: rgba(201,162,39,0.3);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.card h3 {
  font-size: 18px;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
}

.course-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11,110,79,0.07);
  border: 1px solid rgba(11,110,79,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(11,110,79,0.12);
}

.course-card-top {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.course-card-body { padding: 22px; }

.course-card-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.course-card-body p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.course-card-body a {
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
}

/* ===== PRICE CARDS ===== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(11,110,79,0.08);
  border: 1px solid rgba(11,110,79,0.1);
}

.price-card.popular {
  border: 2px solid var(--gold);
  transform: scale(1.04);
  box-shadow: 0 12px 36px rgba(201,162,39,0.2);
}

.price-header {
  padding: 22px;
  text-align: center;
  color: white;
}

.price-header h3 { font-size: 20px; margin-bottom: 4px; }
.price-header p { font-size: 13px; opacity: 0.9; }

.price-body {
  padding: 28px 24px;
  text-align: center;
}

.price-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--green-dark);
}

.price-amount span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.price-note {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 20px;
}

.price-list {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.price-list li {
  padding: 6px 0;
  font-size: 14px;
  color: #444;
}

.price-list li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 700;
}

.btn-green {
  display: block;
  width: 100%;
  background: var(--green);
  color: white;
  padding: 12px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}

.btn-green:hover { background: var(--green-dark); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(145deg, #043D30 0%, #0B6E4F 45%, #0D9488 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-hero p {
  color: #d1fae5;
  font-size: 16px;
}

/* ===== COURSE DETAIL ===== */
.course-detail {
  display: flex;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(11,110,79,0.08);
  margin-bottom: 32px;
}

.course-detail-icon {
  width: 280px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  flex-shrink: 0;
}

.course-detail-icon p {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
}

.course-detail-content {
  padding: 32px;
  flex: 1;
}

.course-detail-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.course-detail-content > p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.course-detail-content ul {
  list-style: none;
  margin-bottom: 20px;
}

.course-detail-content ul li {
  padding: 5px 0;
  font-size: 14px;
}

.course-detail-content ul li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 700;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(145deg, #043D30 0%, #0B6E4F 45%, #0D9488 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.cta h2 { font-size: 30px; margin-bottom: 12px; }
.cta p { color: #d1fae5; margin-bottom: 24px; font-size: 16px; }
.cta .arabic { color: var(--gold); font-size: 20px; margin-bottom: 12px; }

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, #043D30 0%, #022C22 100%);
  color: #a7f3d0;
  border-top: 2px solid rgba(201,162,39,0.35);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-inner h4 {
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-inner ul { list-style: none; }
.footer-inner ul li { margin-bottom: 8px; font-size: 13px; }
.footer-inner a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
  color: #6ee7b7;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-box {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 6px 24px rgba(11,110,79,0.08);
}

.form-box h2 {
  font-size: 22px;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.info-box {
  background: #ecfdf5;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.info-box h3 {
  color: var(--green-dark);
  margin-bottom: 12px;
  font-size: 17px;
}

.info-box ul { list-style: none; }
.info-box ul li { padding: 5px 0; font-size: 14px; }
.info-box ul li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ===== VIDEO ===== */
.video-cta {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-red {
  background: #dc2626;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-red:hover { background: #b91c1c; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.video-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: #ecfdf5;
}

.video-card-body { padding: 16px; }
.video-card-body h3 { font-size: 15px; margin-bottom: 4px; }
.video-card-body p { font-size: 13px; color: var(--muted); }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.blog-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: #ecfdf5;
}

.blog-card-body { padding: 20px; }
.blog-card-body .meta { font-size: 12px; color: var(--green); margin-bottom: 6px; }
.blog-card-body h2 { font-size: 18px; margin-bottom: 8px; }
.blog-card-body p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.blog-card-body a { color: var(--green); font-weight: 600; font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .cards-3, .price-grid, .video-grid { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; }
  .course-detail { flex-direction: column; }
  .course-detail-icon { width: 100%; min-height: 140px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 50px 16px; }
  .section { padding: 50px 16px; }
}

/* ===== SOCIAL MEDIA (Font Awesome) ===== */
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff !important;
  font-size: 18px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
  line-height: 1;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  opacity: 0.95;
  color: #fff !important;
}

.social-btn.youtube { background: #FF0000; }
.social-btn.facebook { background: #1877F2; }
.social-btn.x { background: #000000; }
