:root {
    --primary: #2d7a4f;
    --primary-dark: #1a5c3e;
    --primary-light: #4a9e6e;
    --primary-soft: #e8f3ed;
    --primary-bg: rgba(45, 122, 79, 0.08);
    --secondary: #c6a43f;
    --secondary-dark: #a8882e;
    --secondary-light: #d4b85c;
    --white: #ffffff;
    --off-white: #fafafa;
    --gray-50: #f8f9fa;
    --gray-100: #f0f1f3;
    --gray-200: #e4e5e7;
    --gray-300: #d1d3d6;
    --gray-400: #a8abb0;
    --gray-500: #7a7e85;
    --gray-600: #555a62;
    --gray-700: #3a3f47;
    --gray-800: #1e2329;
    --gray-900: #0f1318;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.2);
}

body.modern-home {
    font-family: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.modern-home .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.modern-home h1,
.modern-home h2,
.modern-home h3,
.modern-home h4,
.modern-home h5,
.modern-home h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-800);
}

.modern-home h1 { font-size: 56px; }
.modern-home h2 { font-size: 40px; margin-bottom: 16px; }
.modern-home h3 { font-size: 24px; margin-bottom: 12px; }
.modern-home h4 { font-size: 20px; margin-bottom: 8px; }

.modern-home .section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
}

.modern-home .section-label.light {
    color: var(--primary-light);
}

.modern-home .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.modern-home .section-header p {
    color: var(--gray-500);
    font-size: 18px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
}

.hero-section {
    position: relative;
    height: 85vh;
    min-height: 650px;
    overflow: hidden;
    background-color: var(--gray-900);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg,
.hero-bg img {
    width: 100%;
    height: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
}

.hero-bg img {
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5s ease;
}

.hero-slide.active .hero-bg img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    padding: 0 24px;
}

.hero-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-block;
    background: rgba(45, 122, 79, 0.9);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 13px;
    color: var(--white);
    margin-bottom: 18px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav.prev { left: 32px; }
.slider-nav.next { right: 32px; }

.slider-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    right: 32px;
    text-align: center;
    z-index: 10;
}

.scroll-indicator span {
    color: var(--white);
    font-size: 12px;
    margin-bottom: 8px;
    display: block;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.establishment-badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 13px;
    margin-bottom: 24px;
}

.about-text {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.mission-statement {
    display: flex;
    gap: 16px;
    background: var(--primary-bg);
    padding: 24px;
    border-radius: 20px;
    margin: 32px 0;
}

.mission-text h4 {
    margin-bottom: 8px;
    color: var(--primary);
}

.mission-text p {
    color: var(--gray-600);
    font-size: 14px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.stat-box {
    text-align: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 16px;
}

.stat-box .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-box .stat-label {
    font-size: 12px;
    color: var(--gray-500);
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-wrapper img {
    width: 100%;
    display: block;
}

.experience-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    padding: 20px 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-card .years {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.experience-card .text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.activities-preview {
    padding: 80px 0;
    background: var(--gray-50);
}

.activities-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.activity-card {
    background: var(--white);
    padding: 32px;
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.activity-card p {
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.impact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.impact-content h2,
.impact-content p,
.impact-quote blockquote {
    color: var(--white) !important;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle .number {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

.stat-circle p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center;
}

.supporting-org-section {
    padding: 80px 0;
    background: var(--white);
}

.org-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
    background: var(--gray-50);
    border-radius: 32px;
    padding: 48px;
}

.org-info h2 { font-size: 28px; margin: 8px 0 4px; }
.org-info h3 { font-size: 20px; color: var(--gray-600); margin-bottom: 4px; }
.org-info h4 { font-size: 16px; color: var(--gray-500); margin-bottom: 24px; }
.org-info p { color: var(--gray-600); margin-bottom: 24px; }

.support-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.support-features span {
    padding: 6px 12px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 40px;
    font-size: 13px;
}

.org-logo img {
    max-width: 200px;
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.latest-activities {
    padding: 80px 0;
    background: var(--gray-50);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.latest-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 0.9;
}

.latest-card.large {
    grid-row: span 2;
}

.latest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 24px;
}

.activity-category {
    display: inline-block;
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: white;
    margin-bottom: 12px;
}

.card-overlay h3,
.card-overlay p,
.view-link {
    color: white !important;
}

.view-all {
    text-align: center;
    margin-top: 48px;
}

.news-feed {
    padding: 80px 0;
    background: var(--white);
}

.news-feed-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-feed-card {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 24px;
    align-items: stretch;
    background: var(--gray-50);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(26, 92, 62, 0.08);
    box-shadow: var(--shadow-sm);
}

.news-feed-card__media {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--white);
}

.news-feed-card__hero {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.news-feed-card__placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-soft), #e8f0ec);
}

.news-feed-card__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.news-feed-card__thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.news-feed-card__body {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

[dir="rtl"] .news-feed-card__body {
    padding: 24px 0 24px 24px;
}

.news-feed-card__badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--primary-soft);
    color: var(--primary);
}

.news-feed-card__meta {
    margin: 0;
    font-size: 13px;
    color: var(--gray-500);
}

.news-feed-card__dot {
    margin: 0 6px;
}

.news-feed-card__text {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.65;
}

.news-feed-card__link {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.news-feed-card__link:hover {
    text-decoration: underline;
}

.news-feed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.cta-section {
    padding: 100px 0;
    background: var(--gray-800);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2,
.cta-content p {
    color: var(--white) !important;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .modern-home .container { padding: 0 24px; }
    .modern-home h1 { font-size: 44px; }
    .modern-home h2 { font-size: 32px; }
}

@media (max-width: 768px) {
    .hero-section { height: 70vh; min-height: 500px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .hero-buttons { flex-direction: column; gap: 12px; align-items: center; }
    .about-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .impact-grid { grid-template-columns: 1fr; text-align: center; }
    .impact-stats { grid-template-columns: 1fr; }
    .org-card { grid-template-columns: 1fr; text-align: center; padding: 32px; }
    .support-features { justify-content: center; }
    .latest-grid { grid-template-columns: 1fr; }
    .latest-card.large { grid-row: auto; }
    .news-feed-card {
        grid-template-columns: 1fr;
    }
    .news-feed-card__body {
        padding: 0 20px 20px;
    }
    [dir="rtl"] .news-feed-card__body {
        padding: 0 20px 20px;
    }
    .cta-buttons { flex-direction: column; align-items: center; }
    .slider-nav.prev { left: 16px; }
    .slider-nav.next { right: 16px; }
}

@media (max-width: 480px) {
    .modern-home .container { padding: 0 16px; }
    .modern-home h1 { font-size: 32px; }
    .modern-home h2 { font-size: 24px; }
    .hero-title { font-size: 28px; }
    .stats-row { grid-template-columns: 1fr; }
}
