/* TarbiyaPlus — Shared Styles */

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

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #FFF8F0;
    color: #2C3E2F;
    line-height: 1.8;
    font-size: 18px;
}

/* ========== Header ========== */

header {
    background-color: #4A7C59;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.1);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFF8F0;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.9;
}

/* ========== Hero ========== */

.hero {
    background: linear-gradient(135deg, #6B9B7F 0%, #4A7C59 100%);
    padding: 5rem 1.5rem;
    text-align: center;
    color: #FFF8F0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* ========== Sections ========== */

.section {
    padding: 4rem 1.5rem;
}

.section-alt {
    background-color: #FAF5EF;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: #4A7C59;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-text {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    line-height: 1.9;
    color: #3D5A40;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ========== Cards Grid ========== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #8FB99C 0%, #6B9B7F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.9rem;
    color: #8FB99C;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2C3E2F;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-excerpt {
    font-size: 1rem;
    color: #5A6C57;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: #4A7C59;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #6B9B7F;
}

/* ========== Value Cards ========== */

.value-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.15);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.value-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4A7C59;
    margin-bottom: 0.75rem;
}

.value-description {
    font-size: 1rem;
    color: #5A6C57;
    line-height: 1.7;
}

/* ========== Article Page ========== */

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.article-container h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    color: #2C3E2F;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.article-container h2 {
    font-size: 1.5rem;
    color: #4A7C59;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-container h3 {
    font-size: 1.25rem;
    color: #3D5A40;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-container p {
    margin-bottom: 1rem;
}

.article-container ul,
.article-container ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.article-container li {
    margin-bottom: 0.75rem;
}

.article-container a {
    color: #4A7C59;
    text-decoration: none;
    border-bottom: 1px solid #8FB99C;
    transition: color 0.2s, border-color 0.2s;
}

.article-container a:hover {
    color: #3D5A40;
    border-color: #4A7C59;
}

/* Article intro highlight */
.article-intro {
    font-size: 1.15rem;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: #f0fff4;
    border-right: 4px solid #4A7C59;
    border-radius: 4px;
}

/* Hadith / Quran quote */
.quote-islamic {
    background: #FAF5EF;
    padding: 1.25rem;
    border-right: 4px solid #8FB99C;
    margin: 1.5rem 0;
    font-style: italic;
    color: #3D5A40;
    border-radius: 4px;
}

.quote-islamic cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.9rem;
    color: #5A6C57;
}

/* Practical tips box */
.tips-box {
    background: #FFF8F0;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 2px solid #4A7C59;
}

.tips-box h3 {
    color: #4A7C59;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Conclusion */
.article-conclusion {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #f0fff4;
    border-radius: 8px;
    border: 2px solid #4A7C59;
}

/* Related articles */
.related-articles {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #FAF5EF;
    border-radius: 8px;
}

.related-articles h2 {
    color: #2C3E2F;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 0.75rem;
}

.related-articles a {
    font-weight: 500;
}

/* ========== Footer ========== */

footer {
    background-color: #3D5A40;
    color: #E8F5E9;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #FFF8F0;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.85;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #E8F5E9;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #8FB99C;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(232, 245, 233, 0.2);
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
    .hero {
        padding: 3.5rem 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .header-content {
        justify-content: center;
    }

    footer {
        padding: 2.5rem 1rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .article-container {
        padding: 1.5rem 1rem;
    }
}
