/*
 * ============================================================
 * Achifaa.ma — Main Stylesheet  (style.css)
 * ============================================================
 *
 * Color palette
 * ─────────────────────────────────────────────────────────────
 *  --green-darkest : #0f2d1c   header / footer
 *  --green-dark    : #1a4a2e   primary brand
 *  --green-mid     : #2a6b44   hover states
 *  --gold          : #c9a227   accent / CTA buttons
 *  --gold-dark     : #a8841d   button hover
 *  --cream         : #f5f0e8   page background
 *  --cream-light   : #faf7f2   card background
 *  --text-primary  : #1a1a1a
 *  --text-muted    : #666666
 *
 * Structure (mobile-first)
 *  1. CSS Custom Properties (tokens)
 *  2. Reset & Base
 *  3. Typography
 *  4. Shared Utilities
 *  5. Header / Navbar
 *  6. Hero Slider
 *  7. Featured Products
 *  8. Ruqyah Section
 *  9. Prophetic Medicine
 * 10. Contact Section
 * 11. Footer
 * 12. Media Queries
 * ============================================================
 */
 
 .cart-page { padding: 40px 20px; max-width: 900px; margin: auto; }
.cart-page h1 { text-align: center; margin-bottom: 25px; }

.cart-container { display: flex; flex-direction: column; gap: 15px; }

.cart-item1 {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    align-items: center;
    gap: 12px;
    border: 1px solid #eee;
}

.item-info { display: flex; align-items: center; gap: 10px; }
.item-info img { width: 60px; height: 60px; border-radius: 8px; }

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty-control button {
    background: var(--green-darkest);
    color: #fff;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}
.qty-control span { min-width: 20px; text-align: center; font-weight: bold; }

.item-total { font-weight: bold; color: var(--gold); }

.delete-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #b00;
    cursor: pointer;
}

.cart-footer {
    margin-top: 25px;
    text-align: center;
}
.total {
    font-size: 20px;
    margin-bottom: 10px;
}

.whatsapp-btn {
    background: #25D366;
    padding: 14px 22px;
    color: white;
    font-size: 18px;
    border-radius: 10px;
    display: inline-block;
    font-weight: bold;
}

.empty {
    padding: 20px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
}
 
 
 .page-hero {
    background: var(--green-darkest);
    padding: 50px 20px;
    text-align: center;
    color: #fff;
}
.page-hero h1 { color: var(--gold); font-size: 2rem; }
.page-hero p  { color: #b0c8b0; margin-top: 8px; }
.store-grid   { grid-template-columns: repeat(4, 1fr); }
.product-cat  {
    display: inline-block;
    background: rgba(201,162,39,.12);
    color: var(--gold-dark);
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}
@media (max-width: 1024px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .store-grid { grid-template-columns: 1fr; } }
 
 
 
 
 .page-hero {
    background: var(--green-darkest);
    padding: 50px 20px;
    text-align: center;
    color: #fff;
}
.page-hero h1 { color: var(--gold); font-size: 2rem; }
.page-hero p  { color: #b0c8b0; margin-top: 8px; }

/* Intro two-column */
.ruqyah-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
}
.ruqyah-intro-text p { color: var(--text-muted); font-size: .95rem; }

/* Types grid */
.ruqyah-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ruqyah-type-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}
.ruqyah-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(26,74,46,.14);
}
.ruqyah-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(201,162,39,.1);
    color: var(--gold);
    border-radius: 50%;
    margin: 0 auto 16px;
}
.ruqyah-type-card h3 {
    font-size: 1rem;
    color: var(--green-dark);
    margin-bottom: 8px;
}
.ruqyah-type-card p { font-size: .84rem; color: var(--text-muted); }

@media (max-width: 900px) {
    .ruqyah-intro       { grid-template-columns: 1fr; }
    .ruqyah-types-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .ruqyah-types-grid  { grid-template-columns: 1fr; }
}


h1{
    color:#2c7a4b;
    text-align:center;
}

h2{
    color:#333;
    margin-top:30px;
}

p{
    color:#fff;
}

ul{
    padding-right:20px;
}
 
 
 
 /* hamburger button */

.menu-btn{
display:none;
flex-direction:column;
gap:5px;
background:none;
border:none;
cursor:pointer;
}

.menu-btn span{
width:25px;
height:3px;
background:#fff;
display:flex;
transition:0.3s;
}

/* mobile */

@media (max-width:768px){

.main-nav{
position:absolute;
top:70px;
right:0;
background:#0f2d1c;
width:100%;
display:none;
flex-direction:column;
box-shadow:0 5px 20px rgba(0,0,0,0.1);
}

.main-nav ul{
flex-direction:column;
padding:20px;
}

.main-nav li{
margin:10px 0;
}

.main-nav.open{
display:flex;
}

.menu-btn{
display:flex;
}

.menu-btn.active span:nth-child(1){
transform:rotate(45deg) translate(5px,5px);
}

.menu-btn.active span:nth-child(2){
opacity:0;
}

.menu-btn.active span:nth-child(3){
transform:rotate(-45deg) translate(6px,-6px);
}

}
 
 

/* ABOUT SECTION */

.about-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:50px;
align-items:center;
}

.about-image img{
width:100%;
border-radius:10px;
box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.about-content p{
margin:15px 0;
line-height:1.8;
color:#555;
}

.about-features{
margin:20px 0;
padding:0;
list-style:none;
}

.about-features li{
margin:8px 0;
font-size:15px;
}

/* Mobile */

@media(max-width:900px){

.about-grid{
grid-template-columns:1fr;
}

}

/* Desktop Menu */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* hidden by default */
        width: 70%;
        height: 100%;
        background: #0f2d1c;
        flex-direction: column;
        padding: 80px 20px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .main-nav.open {
        right: 0; /* slide in */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        cursor: pointer;
    }

    .menu-btn span {
        display: block;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* Hamburger animation when open */
    .menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}


.site-header {
    background: #0f2d1c;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    width: 60%;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}
.main-nav a {
    color: #fff;
    font-weight: 600;
}
.main-nav .active a {
    color: #e5c07b;
}
.cart-link {
    position: relative;
    color: #fff;
    font-size: 20px;
}
#cart-count {
    display: none;
    background: #e5c07b;
    color: #000;
    padding: 2px 7px;
    border-radius: 50%;
    font-size: 13px;
    position: absolute;
    top: -8px;
    right: -12px;
}


.page-hero {
    background: var(--green-darkest);
    padding: 50px 20px;
    text-align: center;
    color: #fff;
}
.page-hero h1 { color: var(--gold); font-size: 2rem; }
.page-hero p  { color: #b0c8b0; margin-top: 8px; }

.store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    background: #fff;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold);
    color: #fff;
    padding: 5px 10px;
    font-size: .8rem;
    border-radius: 20px;
}

.product-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.product-img-wrap img {
    width: 100%;
    display: block;
    transition: transform .3s;
}
.product-img-wrap:hover img { transform: scale(1.05); }

.product-info { padding: 15px; }
.product-cat {
    display: inline-block;
    background: rgba(201,162,39,.12);
    color: var(--gold-dark);
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.product-name { font-size: 1.1rem; margin: 5px 0; }
.product-desc { font-size: .9rem; color: #555; margin-bottom: 10px; }
.product-price { font-size: 1rem; font-weight: bold; color: var(--gold); margin-bottom: 10px; }

.btn-sm {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: .9rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .store-grid { grid-template-columns: 1fr; } }




.cart-page { padding: 40px 20px; max-width: 900px; margin: auto; }
.cart-page h1 { text-align: center; margin-bottom: 25px; }

.cart-container { display: flex; flex-direction: column; gap: 15px; }

.cart-item1 {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    align-items: center;
    gap: 12px;
    border: 1px solid #eee;
}

.item-info { display: flex; align-items: center; gap: 10px; }
.item-info img { width: 60px; height: 60px; border-radius: 8px; }

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty-control button {
    background: var(--green-darkest);
    color: #fff;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}
.qty-control span { min-width: 20px; text-align: center; font-weight: bold; }

.item-total { font-weight: bold; color: var(--gold); }

.delete-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #b00;
    cursor: pointer;
}

.cart-footer {
    margin-top: 25px;
    text-align: center;
}
.total {
    font-size: 20px;
    margin-bottom: 10px;
}

.whatsapp-btn {
    background: #25D366;
    padding: 14px 22px;
    color: white;
    font-size: 18px;
    border-radius: 10px;
    display: inline-block;
    font-weight: bold;
}

.empty {
    padding: 20px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
}


/* ARTICLES */

.articles-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
margin-top:40px;
}

.article-card{
background:#fff;
border-radius:10px;
overflow:hidden;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
transition:0.3s;
}

.article-card:hover{
transform:translateY(-5px);
}

.article-img img{
width:100%;
height:200px;
object-fit:cover;
}

.article-content{
padding:20px;
}

.article-content h3{
font-size:18px;
margin-bottom:10px;
}

.article-content p{
font-size:14px;
color:#555;
margin-bottom:15px;
}


/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --green-darkest : #0f2d1c;
    --green-dark    : #1a4a2e;
    --green-mid     : #2a6b44;
    --gold          : #c9a227;
    --gold-dark     : #a8841d;
    --cream         : #f5f0e8;
    --cream-light   : #faf7f2;
    --white         : #ffffff;
    --text-primary  : #1a1a1a;
    --text-muted    : #666666;
    --text-light    : #999999;
    --border-color  : #e0d8c8;
    --shadow-sm     : 0 2px 8px rgba(0,0,0,.08);
    --shadow-md     : 0 4px 20px rgba(0,0,0,.12);
    --shadow-lg     : 0 8px 40px rgba(0,0,0,.18);
    --radius-sm     : 4px;
    --radius-md     : 8px;
    --radius-lg     : 12px;
    --font-primary  : 'Cairo', 'Segoe UI', Arial, sans-serif;
    --transition    : .2s ease;
    --header-h      : 70px;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--cream);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;  /* Chrome/Safari */
  -moz-user-select: none;     /* Firefox */
  -ms-user-select: none;      /* IE/Edge */
  user-select: none;          /* Standard */
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul, ol { list-style: none; }

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: var(--font-primary);
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--green-dark);
}

p { line-height: 1.7; }


/* ============================================================
   4. SHARED UTILITIES
   ============================================================ */

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* Section padding */
.section-padding {
    padding-block: 72px;
}

/* Section header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--green-dark);
    margin-bottom: 8px;
}
.title-underline {
    width: 56px;
    height: 3px;
    background: var(--gold);
    margin: 10px auto 14px;
    border-radius: 2px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: .95rem;
}
.divider-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto 14px;
}

/* Buttons */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--gold);
    color: var(--white);
    padding: 11px 30px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 8px rgba(201,162,39,.3);
}
.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,162,39,.4);
}
.btn-gold:active { transform: translateY(0); }

.btn-sm  { padding: 7px 20px; font-size: .85rem; }
.btn-full { width: 100%; }

/* Form feedback banners */
.form-success, .form-error {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.form-success {
    background: #d4edda;
    color: #1a4a2e;
    border: 1px solid #b8dfc4;
}
.form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* ============================================================
   5. HEADER / NAVBAR
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--green-darkest);
    height: var(--header-h);
    box-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-inline: 24px;
    max-width: 1300px;
    margin-inline: auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon svg { flex-shrink: 0; }
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: .02em;
}
.logo-sub {
    font-size: .6rem;
    color: #a0c090;
    letter-spacing: .02em;
}

/* Navigation */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav ul li a {
    display: block;
    color: #ddd8c8;
    font-size: .88rem;
    font-weight: 500;
    padding: 6px 13px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li.active a {
    color: var(--gold);
    background: rgba(201,162,39,.1);
}

/* Hamburger */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.menu-btn:hover { background: rgba(201,162,39,.1); }
.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all .3s;
}

/* Overlay (mobile only) */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 800;
    opacity: 0;
    transition: opacity var(--transition);
}
.nav-overlay.visible { opacity: 1; }


/* ============================================================
   6. HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--green-darkest);
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slide */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
    pointer-events: none;
}
.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient overlay – darker on the right (RTL start) */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(10,30,15,.15)  0%,
        rgba(10,30,15,.72) 55%,
        rgba(10,30,15,.88) 100%
    );
}

/* Slide copy */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 540px;
    text-align: center;
    width: 90%;
}

.slide-content h1 {
    font-size: clamp(1.7rem, 3.8vw, 2.8rem);
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

.slide-content p {
    font-size: clamp(.85rem, 1.8vw, 1.05rem);
    color: #ddd8c8;
    margin-bottom: 26px;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: transparent;
    transition: background var(--transition), border-color var(--transition);
    cursor: pointer;
}
.dot.active,
.dot:hover {
    background: var(--gold);
    border-color: var(--gold);
}

/* Arrow buttons */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201,162,39,.65);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background var(--transition);
}
.slider-arrow:hover { background: var(--gold); }
.slider-arrow.prev { right: 16px; }
.slider-arrow.next { left:  16px; }


/* ============================================================
   7. FEATURED PRODUCTS
   ============================================================ */
.featured-products {
    background: var(--cream-light);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: var(--shadow-sm);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 36px rgba(26,74,46,.14);
}

/* Badge */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 5;
}

/* Product image */
.product-img-wrap {
    height: 200px;
    overflow: hidden;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }

/* Product info */
.product-info {
    padding: 18px 16px;
    text-align: center;
}
.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 6px;
}
.product-desc {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    min-height: 36px;
}


/* ============================================================
   8. RUQYAH SECTION
   ============================================================ */
.ruqyah-section {
    background: var(--cream);
    /* Subtle geometric pattern */
    background-image:
        radial-gradient(circle at 12px 12px, rgba(201,162,39,.05) 1px, transparent 1px),
        radial-gradient(circle at 36px 36px, rgba(26,74,46,.04)   1px, transparent 1px);
    background-size: 48px 48px;
}

.ruqyah-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 960px;
    margin-inline: auto;
}

/* Ruqyah card base */
.ruqyah-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 230px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform .25s ease, box-shadow .25s ease;
}
.ruqyah-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Background image layer */
.ruqyah-card-img {
    position: absolute;
    inset: 0;
}
.ruqyah-card-img img { width: 100%; height: 100%; object-fit: cover; }

/* Dark gradient overlay */
.card-overlay-dark {
    position: absolute;
    inset: 0;
}
.card-book  .card-overlay-dark { background: rgba(12,38,22,.76); }
.card-audio .card-overlay-dark {
    background: linear-gradient(to top, rgba(12,38,22,.88) 0%, rgba(12,38,22,.4) 100%);
}

/* Content inside card */
.ruqyah-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 28px 24px;
    gap: 14px;
}
.ruqyah-card-content h3 {
    font-size: 1.45rem;
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0,0,0,.5);
}

/* Audio player inside card */
.audio-content { align-items: flex-start; justify-content: flex-end; }
.audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,.38);
    backdrop-filter: blur(4px);
    padding: 9px 14px;
    border-radius: 30px;
    width: 100%;
}
.play-btn {
    flex-shrink: 0;
    background: rgba(201,162,39,.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.play-btn:hover { background: var(--gold); }
.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}
.progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width .3s linear;
    pointer-events: none;
}
.audio-time {
    color: rgba(255,255,255,.8);
    font-size: .78rem;
    min-width: 34px;
}


/* ============================================================
   9. PROPHETIC MEDICINE
   ============================================================ */
.prophetic-section { background: var(--cream-light); }

.prophetic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin-inline: auto;
}

.prophetic-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    background: var(--white);
    border: 1px solid var(--border-color);
}
.prophetic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(26,74,46,.16);
}

.prophetic-img-wrap {
    height: 240px;
    position: relative;
    overflow: hidden;
}
.prophetic-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.prophetic-card:hover .prophetic-img-wrap img { transform: scale(1.06); }

.prophetic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,30,15,.35) 0%, transparent 55%);
}

.prophetic-label {
    padding: 16px;
    text-align: center;
    background: var(--white);
}
.prophetic-label h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-dark);
}


/* ============================================================
   10. CONTACT SECTION
   ============================================================ */
.contact-section {
    background: var(--cream);
    direction: ltr;      /* force LTR */
    text-align: left;    /* align text to left */
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 56px;
    align-items: start;
}

/* Contact info panel */
.contact-info .section-title {
    text-align: right;
    margin-bottom: 4px;
}
.contact-info p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: .92rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .92rem;
    color: var(--text-primary);
}
.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(201,162,39,.12);
    border-radius: 50%;
    color: var(--gold);
    flex-shrink: 0;
}

/* Contact form */
.contact-form {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 7px;
}
.form-group label span { color: var(--gold); }

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--cream);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: .9rem;
    color: var(--text-primary);
    direction: rtl;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}
.form-group textarea { min-height: 130px; }


/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer {
    background: var(--green-darkest);
    color: #b0c8b0;
}

.footer-top {
    border-bottom: 1px solid rgba(201,162,39,.18);
    padding: 26px 0;
}
.footer-top-inner {
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 10px;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(201,162,39,.35);
    border-radius: 50%;
    color: var(--gold);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-link:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* Footer nav */
.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: flex-end;
}
.footer-nav ul li a {
    color: #9ab89a;
    font-size: .86rem;
    transition: color var(--transition);
}
.footer-nav ul li a:hover { color: var(--gold); }

/* Copyright */
.footer-bottom {
    text-align: center;
    padding: 14px 24px;
    font-size: .78rem;
    color: #567856;
}


/* ============================================================
   12. MEDIA QUERIES  (mobile-first additions)
   ============================================================ */

/* ── Tablet: ≤ 1024px ── */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-inner { grid-template-columns: 1fr; gap: 36px; }
    .contact-info .section-title { text-align: center; }
}

/* ── Mobile: ≤ 768px ── */
@media (max-width: 768px) {

    /* Show hamburger */
    .menu-btn { display: flex; }

    /* Off-canvas navigation */
    .main-nav {
        position: fixed;
        top: var(--header-h);
        right: -290px;
        width: 280px;
        height: calc(100vh - var(--header-h));
        background: var(--green-darkest);
        z-index: 850;
        padding: 24px 16px;
        overflow-y: auto;
        transition: right .3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,.5);
    }
    .main-nav.open { right: 0; }
    .nav-overlay.visible { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav ul li a {
        display: block;
        padding: 13px 16px;
        border-bottom: 1px solid rgba(255,255,255,.05);
        font-size: .95rem;
    }

    /* Hero */
    .hero-slider { height: 360px; }
    .slide-content { max-width: 88%; }

    /* Products */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    /* Ruqyah */
    .ruqyah-cards { grid-template-columns: 1fr; }

    /* Prophetic */
    .prophetic-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Footer */
    .footer-top-inner { flex-direction: column-reverse; align-items: center; }
    .footer-nav ul { justify-content: center; gap: 14px; }
}

/* ── Small mobile: ≤ 480px ── */
@media (max-width: 480px) {
    .hero-slider { height: 300px; }
    .products-grid { grid-template-columns: 1fr; }
    .slide-content h1 { font-size: 2.4rem; }
    .section-padding { padding-block: 50px; }
    .contact-form { padding: 20px 16px; }
}
