/*
Theme Name: Life With Quran
Theme URI: https://lifewithquran.com
Author: Life With Quran
Author URI: https://lifewithquran.com
Description: Premium Islamic Quran academy theme. Fully compatible with Elementor. Deep green + gold design for online Quran tutoring.
Version: 5.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lifewithquran
Tags: education, custom-menu, featured-images, threaded-comments, translation-ready, elementor, islamic
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Amiri:wght@400;700&display=swap');

:root {
  --green: #0B6E4F;
  --green-dark: #064E3B;
  --green-deep: #022C22;
  --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, var(--green-deep), var(--green-dark));
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo img { height: 58px; width: auto; object-fit: contain; }
.nav-desktop { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-desktop a { color: #d1fae5; font-size: 14.5px; font-weight: 500; transition: color .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, var(--gold), var(--gold-light)) !important;
  color: var(--green-deep) !important; padding: 10px 20px !important;
  border-radius: 50px !important; font-weight: 600 !important; font-size: 13.5px !important;
  display: inline-block !important;
}
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }
.nav-mobile { display: none; padding: 8px 20px 16px; background: var(--green-deep); }
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; color: #d1fae5; padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px;
}
.nav-mobile a.btn-gold { margin-top: 12px; text-align: center; border: none; }
.gold-line { height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 15% 40%, rgba(201,162,39,.14) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(13,148,136,.12) 0%, transparent 45%),
    linear-gradient(155deg, #011a14 0%, var(--green) 50%, #0A5C4A 100%);
  color: #fff; padding: 72px 24px 84px; position: relative; overflow: hidden;
}
.hero-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 12px;
}
.bismillah { color: var(--gold-light); font-size: 18px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 700; line-height: 1.18; margin-bottom: 16px; }
.hero h1 span { color: var(--gold); }
.hero-text p:not(.bismillah):not(.hero-trust) {
  font-size: 16px; line-height: 1.7; color: #d1fae5; max-width: 460px; margin-bottom: 28px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.btn-white {
  background: #fff; color: var(--green-deep); padding: 14px 28px; border-radius: 50px;
  font-weight: 600; font-size: 15px; display: inline-block;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.btn-outline-gold {
  border: 2px solid var(--gold); color: var(--gold-light); padding: 12px 26px;
  border-radius: 50px; font-weight: 600; font-size: 15px; display: inline-block;
}
.hero-trust { font-size: 13px; color: #a7f3d0; }
.hero-image-wrap {
  border-radius: 20px; overflow: hidden; border: 3px solid rgba(201,162,39,.45);
  box-shadow: 0 24px 60px rgba(0,0,0,.4); position: relative; max-width: 420px;
}
.hero-image-wrap img { width: 100%; height: auto; }
.hero-badge {
  position: absolute; bottom: -14px; left: 10px; background: #fff; color: var(--green-deep);
  padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.hero-badge strong { display: block; font-size: 15px; }
.hero-badge span { font-size: 12px; color: var(--muted); }

/* Sections */
.section { padding: 64px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: 28px; color: var(--green-deep); margin-bottom: 8px; }
.section-title p { color: var(--muted); font-size: 15px; }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0; }
.divider::before, .divider::after {
  content: ''; width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider span { color: var(--gold); }

.cards-3, .cards-3-alt {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card, .course-card {
  background: #fff; border-radius: 16px; padding: 26px 20px; text-align: center;
  border: 1px solid rgba(11,110,79,.08); box-shadow: 0 4px 16px rgba(11,110,79,.05);
  transition: transform .25s, box-shadow .25s;
}
.card:hover, .course-card:hover {
  transform: translateY(-6px); box-shadow: 0 14px 32px rgba(11,110,79,.12);
}
.card-icon {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 14px;
}
.card h3 { font-size: 16px; color: var(--green-dark); margin-bottom: 8px; }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.course-card { text-align: left; padding: 0; overflow: hidden; background: var(--cream); }
.course-card-top {
  height: 120px; display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.course-card-body { padding: 18px; }
.course-card-body h3 { font-size: 16px; margin-bottom: 6px; }
.course-card-body p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.course-card-body a { color: var(--green); font-weight: 600; font-size: 13px; }

.btn-green {
  display: inline-block; background: var(--green); color: #fff; padding: 12px 28px;
  border-radius: 50px; font-weight: 600; border: none; cursor: pointer; font-size: 14px;
  font-family: inherit;
}
.btn-red {
  display: inline-block; background: #FF0000; color: #fff; padding: 12px 24px;
  border-radius: 50px; font-weight: 600;
}

/* Page hero */
.page-hero {
  background: linear-gradient(160deg, var(--green-deep), var(--green));
  color: #fff; text-align: center; padding: 56px 20px;
}
.page-hero h1 { font-size: 32px; margin-bottom: 8px; }
.page-hero p { color: #d1fae5; font-size: 15px; }

/* Course detail */
.course-detail {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 20px;
  border: 1px solid rgba(11,110,79,.08); align-items: start;
}
.course-detail-icon {
  width: 120px; height: 120px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 36px;
}
.course-detail-icon p { font-size: 12px; margin-top: 6px; font-weight: 600; }
.course-detail-content h2 { font-size: 20px; margin-bottom: 8px; }
.course-detail-content p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.course-detail-content ul { list-style: none; margin-bottom: 14px; }
.course-detail-content li {
  font-size: 13px; padding: 3px 0 3px 16px; position: relative;
}
.course-detail-content li::before {
  content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 10px; top: 5px;
}

/* Pricing */
.price-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.price-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(11,110,79,.1); display: flex; flex-direction: column;
  position: relative; box-shadow: 0 4px 18px rgba(11,110,79,.06);
}
.price-card.popular {
  border: 2px solid var(--gold); box-shadow: 0 12px 32px rgba(201,162,39,.2);
}
.price-header { padding: 22px 18px 12px; text-align: center; color: #fff; }
.price-header h3 { font-size: 16px; margin-bottom: 4px; }
.price-header p { font-size: 12px; opacity: .9; }
.price-body { padding: 20px 18px 24px; flex: 1; display: flex; flex-direction: column; }
.price-amount { font-size: 32px; font-weight: 700; text-align: center; color: var(--green-deep); }
.price-amount span { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-note { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0 16px; }
.price-list { list-style: none; margin-bottom: 20px; flex: 1; }
.price-list li {
  font-size: 13px; padding: 6px 0 6px 18px; border-bottom: 1px solid #f0f0f0; position: relative;
}
.price-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-body .btn-green { display: block; text-align: center; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
.form-box, .info-box {
  background: #fff; border-radius: 16px; padding: 28px;
  border: 1px solid rgba(11,110,79,.08); box-shadow: 0 4px 16px rgba(11,110,79,.05);
}
.form-box h2, .info-box h3 { font-size: 20px; color: var(--green-dark); margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 10px;
  font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--green); }
.info-box ul { list-style: none; }
.info-box li { margin: 10px 0; font-size: 14px; }

/* CTA */
.cta {
  background: linear-gradient(145deg, var(--green-deep), var(--green) 55%, var(--teal));
  color: #fff; text-align: center; padding: 64px 20px;
}
.cta .arabic { color: var(--gold-light); font-size: 20px; margin-bottom: 12px; }
.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { color: #d1fae5; margin-bottom: 24px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.blog-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(11,110,79,.08); box-shadow: 0 4px 16px rgba(11,110,79,.05);
}
.blog-thumb {
  height: 160px; background: #ecfdf5; display: flex; align-items: center;
  justify-content: center; font-size: 40px;
}
.blog-card-body { padding: 18px; }
.blog-card-body .meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.blog-card-body h2 { font-size: 17px; margin-bottom: 8px; }
.blog-card-body h2 a { color: var(--green-dark); }
.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: 13px; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--green-deep), #011a14); color: #a7f3d0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 20px 28px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px;
}
.footer-inner h4 { color: var(--gold); font-size: 14px; margin-bottom: 14px; }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 9px; font-size: 13px; }
.footer-inner a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; color: #fff !important; font-size: 15px;
}
.social-btn.youtube { background: #FF0000; }
.social-btn.facebook { background: #1877F2; }
.social-btn.x { background: #111; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); text-align: center;
  padding: 16px 20px; font-size: 12px; color: #6ee7b7;
}

/* Video */
.video-cta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 32px;
  border: 1px solid rgba(11,110,79,.08);
}
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(11,110,79,.08);
}
.video-thumb {
  height: 120px; background: #ecfdf5; display: flex; align-items: center;
  justify-content: center; font-size: 36px;
}
.video-card-body { padding: 16px; }
.video-card-body h3 { font-size: 15px; margin-bottom: 6px; color: var(--green-dark); }
.video-card-body p { font-size: 13px; color: var(--muted); }

/* Elementor compatibility */
.elementor-page .site-header,
.elementor-page .site-footer { /* theme header still works */ }
.elementor-section { position: relative; }

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text p:not(.bismillah) { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-image { display: flex; justify-content: center; }
  .hero-badge { left: 50%; transform: translateX(-50%); }
  .cards-3, .price-grid, .video-grid { grid-template-columns: 1fr 1fr; }
  .price-card.popular { transform: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .course-detail { grid-template-columns: 1fr; text-align: center; }
  .course-detail-icon { margin: 0 auto; }
}
@media (max-width: 560px) {
  .cards-3, .price-grid, .video-grid, .blog-grid, .footer-inner { grid-template-columns: 1fr; }
}
