/*
Theme Name: قالب عبدالله الرشدي
Author: عبدالله الرشدي
Description: قالب شخصي مخصص متجاوب مع تموجات عضوية ونشرة بريدية.
Version: 1.0
Text Domain: abdullah-theme
*/

:root {
    --primary-green: #0B3A2C;
    --accent-brown: #A67C52;
    --border-red: #DA291C;
    --text-main: #333333;
    --text-sub: #666666;
    --bg-light: #ffffff;
    --bg-gray: #fcfcfc;
    --container-width: 1140px;
    --primary-font: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--primary-font); color: var(--text-main); background-color: var(--bg-light); line-height: 1.6; overflow-x: hidden; }
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
h1, h2, h3 { font-weight: 700; color: var(--text-main); }
img { max-width: 100%; height: auto; }

/* --- الهيدر --- */
header { background-color: var(--bg-light); padding: 20px 0; border-bottom: 1px solid #eee; position: fixed; width: 100%; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.header-logo { font-size: 1.3rem; font-weight: 700; color: var(--text-main); }
.header-nav ul { display: flex; gap: 30px; }
.nav-link { font-weight: 600; font-size: 0.95rem; position: relative; }
.nav-link.active { color: var(--border-red); }
.nav-link.active::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background-color: var(--border-red); }
.btn-subscribe { background-color: var(--primary-green); color: #fff; padding: 10px 22px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; }
.btn-subscribe:hover { background-color: #0d4a39; }

/* --- قسم البطل (Hero) --- */
.hero-section { padding: 160px 0 80px; background-color: var(--bg-light); }
.hero-layout { display: flex; align-items: center; gap: 60px; flex-direction: row-reverse; }
.hero-content { flex: 1; text-align: right; }

.hero-image-wrapper { position: relative; flex: 0 0 380px; height: 380px; display: flex; justify-content: center; align-items: center; }
.organic-frame-hero { position: relative; width: 85%; height: 85%; background-color: #E9E7DE; border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%; box-shadow: 0 15px 35px rgba(0,0,0,0.1); overflow: hidden; z-index: 10; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

.ripple { position: absolute; width: 85%; height: 85%; border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%; background-color: transparent; border: 2px solid #E9E7DE; opacity: 0; animation: ripple-effect 3s ease-out infinite; z-index: 1; }
.ripple:nth-child(2) { animation-delay: 1s; }
.ripple:nth-child(3) { animation-delay: 2s; }

@keyframes ripple-effect { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.15); opacity: 0; } }

.hero-tag { font-size: 1.1rem; color: var(--accent-brown); margin-bottom: 10px; font-weight: 600; }
.hero-title { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; color: var(--primary-green); }
.hero-desc { font-size: 1.05rem; color: var(--text-sub); margin-bottom: 35px; max-width: 600px; }
.hero-buttons { display: flex; gap: 15px; margin-bottom: 35px; }
.btn-green { background-color: var(--primary-green); color: #fff; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem; }
.btn-green:hover { background-color: #0d4a39; }
.btn-outline { background-color: var(--bg-light); color: var(--text-main); padding: 14px 28px; border-radius: 8px; border: 1px solid var(--text-main); font-weight: 600; font-size: 1rem; }
.btn-outline:hover { background-color: #f7f7f7; }

/* --- قسم قصتي --- */
.story-section { padding: 100px 0; background-color: var(--bg-gray); }
.story-layout { display: flex; align-items: center; gap: 80px; }
.story-content { flex: 1; text-align: right; }
.story-title { font-size: 2.2rem; color: var(--primary-green); margin-bottom: 25px; position: relative; display: inline-block; }
.story-title::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 100%; height: 3px; background-color: var(--border-red); }
.story-text { color: var(--text-sub); margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.story-item { display: flex; gap: 15px; margin-top: 30px; align-items: flex-start; }
.story-item-icon { color: var(--accent-brown); font-size: 1.5rem; margin-top: 5px; }
.story-item-title { font-weight: 700; color: var(--primary-green); margin-bottom: 5px; }
.story-item-desc { color: var(--text-sub); font-size: 0.95rem; }

.story-image-container { flex: 0 0 320px; height: 450px; display: flex; justify-content: center; align-items: center; }
.organic-frame-story { position: relative; width: 100%; height: 100%; background-color: #ffffff; border-radius: 50% 50% 40% 60% / 60% 40% 70% 30%; box-shadow: 0 15px 40px rgba(0,0,0,0.06); overflow: hidden; }
.story-image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }

/* --- قسم المقالات --- */
.cards-section { padding: 100px 0; background-color: var(--bg-light); }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.04); transition: var(--transition); display: flex; flex-direction: column; border: 1px solid #f0f0f0; }
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.card-img-wrapper { position: relative; height: 260px; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-tag { position: absolute; top: 20px; right: 20px; background: var(--primary-green); color: #fff; padding: 6px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.4rem; margin-bottom: 10px; color: var(--text-main); }
.card-desc { color: var(--text-sub); margin-bottom: 25px; flex-grow: 1; }
.card-link { align-self: flex-end; color: #999; font-size: 1.2rem; }
.card:hover .card-link { color: var(--primary-green); }

/* --- النشرة البريدية --- */
.newsletter-section { padding: 80px 0 100px; background-color: var(--bg-light); }
.newsletter-box { background-color: var(--primary-green); border-radius: 25px; padding: 60px 40px; text-align: center; color: #fff; max-width: 1000px; margin: 0 auto; box-shadow: 0 20px 40px rgba(11, 58, 44, 0.15); }
.newsletter-title { font-size: 2.2rem; margin-bottom: 15px; color: #ffffff; }
.newsletter-desc { margin-bottom: 35px; color: #c9e6de; font-size: 1.05rem; }
.newsletter-form { display: flex; justify-content: center; gap: 15px; max-width: 600px; margin: 0 auto; }
.newsletter-input { flex: 1; padding: 16px 25px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); color: #fff; font-family: var(--primary-font); font-size: 1rem; outline: none; }
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.newsletter-btn { background-color: var(--accent-brown); color: #fff; border: none; padding: 16px 40px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: var(--primary-font); }
.newsletter-btn:hover { background-color: #916c48; }

/* --- الفوتر --- */
.footer { background-color: var(--bg-gray); padding: 40px 0; border-top: 1px solid #eee; }
.footer-layout { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--text-sub); }
.footer-logo { font-weight: 700; color: var(--text-main); }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--primary-green); }

/* --- التجاوب (Responsive) --- */
@media (max-width: 1024px) {
    .hero-layout, .story-layout { gap: 40px; }
    .hero-image-wrapper { flex: 0 0 320px; height: 320px; }
    .hero-title { font-size: 2.6rem; }
    .story-image-container { flex: 0 0 280px; height: 400px; }
}
@media (max-width: 992px) {
    header .container { flex-direction: column; gap: 10px; }
    .header-nav ul { gap: 20px; font-size: 0.9rem; }
    .hero-layout, .story-layout { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .hero-image-wrapper { flex: 0 0 auto; width: 100%; max-width: 320px; }
    .story-image-container { flex: 0 0 auto; width: 100%; max-width: 300px; height: 420px; }
    .hero-buttons { justify-content: center; }
    .story-item { text-align: right; }
    .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero { padding: 180px 0 60px; }
    .hero-title { font-size: 2.2rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-btn { width: 100%; }
    .footer-layout { flex-direction: column; gap: 15px; text-align: center; }
}