/* ============================================
   Agrisky - Modern Professional Stylesheet
   ============================================
   Color Palette:
   - Primary Emerald Green: #046A38
   - Dark Emerald: #03502C
   - Light Green Accent: #2FAF73
   - Neutrals: #F5F5F5 / #FFFFFF / #333333
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Color Palette */
    --primary-emerald: #046A38;
    --dark-emerald: #03502C;
    --accent-green: #2FAF73;
    --bg-dark: #121212;
    --bg-dark-secondary: #1E1E1E;
    --bg-dark-card: #1A1A1A;
    --bg-dark-hover: #252525;
    --text-primary: #F5F5F5;
    --text-secondary: #E0E0E0;
    --text-muted: #B0B0B0;
    --border-color: rgba(4, 106, 56, 0.3);
    --border-hover: rgba(47, 175, 115, 0.5);
    --text-on-dark: rgba(245, 245, 245, 0.95);
    
    /* Legacy support */
    --light-green: var(--accent-green);
    --bg-white: var(--bg-dark-card);
    --bg-off-white: var(--bg-dark-secondary);
    --bg-cream: var(--bg-dark-card);
    --bg-light: var(--bg-dark-secondary);
    --text-dark: var(--text-primary);
    --text-light: var(--text-secondary);
    
    /* Shadows & Glows - Dark Theme */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 12px 40px rgba(4, 106, 56, 0.4);
    --glow-emerald: 0 0 20px rgba(4, 106, 56, 0.5);
    --glow-accent: 0 0 30px rgba(47, 175, 115, 0.4);
    
    /* Typography - Poppins Primary, Roboto Fallback */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --font-family: var(--font-primary);
    --font-size-base: 16px;
    --line-height: 1.6;
    
    /* Spacing - Default (Desktop) */
    --container-padding: 1.5rem;
    --section-padding: 5rem 0;
    --card-padding: 2.5rem;
    --card-gap: 2.5rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile-First Variables - Tablet and smaller */
@media (max-width: 768px) {
    :root {
        /* Reduce padding on smaller screens for better use of space */
        --container-padding: 1.25rem;
        --section-padding: 3rem 0;
        --card-padding: 1.75rem;
        --card-gap: 1.5rem;
    }
}

/* Extra small screens - Mobile phones */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 2.5rem 0;
        --card-padding: 1.25rem;
        --card-gap: 1.25rem;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    direction: ltr;
    text-align: left;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(4, 106, 56, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(47, 175, 115, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Section Base */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Typography Hierarchy */
h1 {
    font-family: var(--font-primary);
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
}

h2 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: left;
}

p, li, span, div {
    font-family: var(--font-secondary);
    text-align: left;
}

/* Center only section headers and hero */
.section-header,
.section-title,
.section-subtitle {
    text-align: center;
}

.hero-content {
    text-align: center;
}

/* Buttons remain centered for visual appeal */
.btn {
    text-align: center;
}

/* Stat cards and CTA remain centered */
.stat-card,
.cta-content,
.form-message,
.footer-bottom {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 15px rgba(47, 175, 115, 0.3);
}

/* MOBILE IMPROVEMENTS: Responsive title sizing */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--accent-green));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

/* MOBILE IMPROVEMENTS: Better subtitle sizing */
@media (max-width: 768px) {
    .section-subtitle {
        font-size: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 0.95rem;
        margin-top: 0.75rem;
    }
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
    background-color: rgba(30, 30, 30, 0.98);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem var(--container-padding);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-emerald);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    padding: 4px;
    background-color: var(--bg-dark-card);
    box-shadow: var(--glow-emerald);
    transition: var(--transition);
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(4, 106, 56, 0.25);
}

.logo-text {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    animation: navLinkFadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.nav-link:hover {
    color: var(--accent-green);
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-link:nth-child(4) { animation-delay: 0.4s; }
.nav-link:nth-child(5) { animation-delay: 0.5s; }
.nav-link:nth-child(6) { animation-delay: 0.6s; }
.nav-link:nth-child(7) { animation-delay: 0.7s; }

@keyframes navLinkFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--accent-green));
    box-shadow: var(--glow-emerald);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 50%, var(--bg-dark) 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    overflow: hidden;
    padding-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(4, 106, 56, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(47, 175, 115, 0.15) 0%, transparent 50%);
    z-index: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(47, 175, 115, 0.2) 0%, transparent 50%);
    z-index: 0;
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.4;
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

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

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.hero-logo-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-green);
    padding: 6px;
    background-color: var(--bg-dark-card);
    box-shadow: var(--glow-accent);
    transition: var(--transition);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-logo:hover .hero-logo-img {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(4, 106, 56, 0.4);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(4, 106, 56, 0.3);
    animation: titleSlideIn 1s ease-out;
    position: relative;
    z-index: 1;
}

/* MOBILE IMPROVEMENTS: Improve hero title readability on small screens */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.25;
    }
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: sloganFadeIn 1.2s ease-out 0.3s both;
}

/* MOBILE IMPROVEMENTS: Better slogan spacing and sizing */
@media (max-width: 768px) {
    .hero-slogan {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .hero-slogan {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        letter-spacing: 0.5px;
    }
}

@keyframes sloganFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: descriptionFadeIn 1.4s ease-out 0.5s both;
    position: relative;
    z-index: 1;
}

/* MOBILE IMPROVEMENTS: Better description readability and spacing */
@media (max-width: 768px) {
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }
}

@keyframes descriptionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--primary-emerald);
    border-bottom: 3px solid var(--primary-emerald);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* MOBILE IMPROVEMENTS: Better button sizing and touch targets */
@media (max-width: 768px) {
    .btn {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-emerald), var(--dark-emerald));
    color: var(--text-primary);
    box-shadow: var(--shadow-md), var(--glow-emerald);
    border: 1px solid rgba(4, 106, 56, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover), var(--glow-accent);
    background: linear-gradient(135deg, var(--accent-green), var(--primary-emerald));
    border-color: var(--accent-green);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-emerald);
    border: 2px solid var(--primary-emerald);
}

.btn-secondary:hover {
    background-color: var(--primary-emerald);
    color: var(--bg-white);
}

.btn-hero, .btn-cta {
    font-size: 1.1rem;
    padding: 1.25rem 3rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg-dark-secondary);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about .section-title {
    color: var(--text-primary);
}

.about .section-subtitle {
    color: var(--text-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* MOBILE IMPROVEMENTS: Improve grid gaps for better visual separation */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 480px) {
    .about-grid {
        gap: 1.5rem;
    }
}

.about-card {
    background-color: var(--bg-dark-card);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: left;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    animation: cardFloat 6s ease-in-out infinite;
}

/* MOBILE IMPROVEMENTS: Better breathing room on small screens */
@media (max-width: 768px) {
    .about-card {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .about-card {
        padding: 1.25rem;
    }
}

.about-card:hover {
    background-color: var(--bg-dark-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover), var(--glow-emerald);
}

.about-card:nth-child(1) {
    animation-delay: 0s;
}

.about-card:nth-child(2) {
    animation-delay: 0.2s;
}

.about-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.about-icon {
    margin-left: 0;
    margin-right: auto;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--light-green);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-emerald), var(--light-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition);
    overflow: hidden;
}
.about-icon {
    width: 100%;
    height: 200px;        /* حجم الكارد اللي تحبه للصورة */
    overflow: hidden;     /* أي جزء زايد يقطع */
}

.about-icon-img {
    width: 100%;
    height: 100%;         /* تاخد ارتفاع الـ div بالكامل */
    object-fit: cover;    /* تغطي كل المساحة بدون تشويه */
}

.about-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card-title {
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* MOBILE IMPROVEMENTS: Adjust title size for better mobile readability */
@media (max-width: 768px) {
    .about-card-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .about-card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
}

.about-card-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* MOBILE IMPROVEMENTS: Better line height for mobile readability */
@media (max-width: 768px) {
    .about-card-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .about-card-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ============================================
   Problem & Solution Section
   ============================================ */
.problem-solution {
    background: var(--bg-dark);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

/* MOBILE IMPROVEMENTS: Stack cards vertically with better spacing */
@media (max-width: 768px) {
    .problem-solution-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.problem-card, .solution-card {
    background-color: var(--bg-dark-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: cardSlideUp 0.8s ease-out;
    animation-fill-mode: both;
}

/* MOBILE IMPROVEMENTS: Reduce padding on small screens */
@media (max-width: 768px) {
    .problem-card, .solution-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .problem-card, .solution-card {
        padding: 1.5rem;
    }
}

.problem-card:hover, .solution-card:hover {
    background-color: var(--bg-dark-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.problem-card {
    animation-delay: 0.1s;
}

.solution-card {
    animation-delay: 0.3s;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.problem-card::before, .solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--accent-green));
    transform: scaleX(0);
    transition: var(--transition);
}

.problem-card:hover::before, .solution-card:hover::before {
    transform: scaleX(1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.problem-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: var(--text-on-dark);
}

.solution-icon {
    background: linear-gradient(135deg, var(--primary-emerald), var(--light-green));
    color: var(--text-on-dark);
}

.card-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* MOBILE IMPROVEMENTS: Adjust title sizing */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

.problem-list, .solution-list {
    list-style: none;
    padding: 0;
}

.problem-list li, .solution-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

/* MOBILE IMPROVEMENTS: Better spacing and readability for list items */
@media (max-width: 768px) {
    .problem-list li, .solution-list li {
        padding: 0.65rem 0;
        padding-left: 1.75rem;
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .problem-list li, .solution-list li {
        padding: 0.55rem 0;
        padding-left: 1.5rem;
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

.problem-list li:hover, .solution-list li:hover {
    padding-left: 2.5rem;
    color: var(--text-primary);
    transform: translateX(5px);
}

.problem-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2rem;
}

.solution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-emerald);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    background: var(--bg-dark-secondary);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(47, 175, 115, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.features .container {
    position: relative;
    z-index: 1;
}

.features .section-title {
    color: var(--text-primary);
}

.features .section-subtitle {
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.key-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* MOBILE IMPROVEMENTS: Better spacing on small screens */
@media (max-width: 768px) {
    .key-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .key-features-grid {
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
}

.key-feature-card {
    background-color: var(--bg-dark-card);
    padding: 0;
    border-radius: 20px;
    text-align: left;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* MOBILE IMPROVEMENTS: Adjust card for mobile readability */
@media (max-width: 480px) {
    .key-feature-card {
        border-radius: 16px;
    }
}

.key-feature-card:hover {
    background-color: var(--bg-dark-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover), var(--glow-emerald);
}

.key-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--accent-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.key-feature-card:hover::before {
    transform: scaleX(1);
}

.key-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-green);
    background-color: var(--bg-white);
}

.key-feature-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.key-feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.9);
}

.key-feature-card:hover .key-feature-image {
    transform: scale(1.1);
    filter: brightness(1);
}

.key-feature-icon {
    width: 70px;
    height: 70px;
    margin: -35px auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-emerald), var(--accent-green));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: var(--glow-emerald);
    border: 4px solid var(--bg-dark-card);
}

.key-feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.key-feature-card:hover .key-feature-icon::before {
    width: 100px;
    height: 100px;
}

.key-feature-card:hover .key-feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(4, 106, 56, 0.3);
}

.key-feature-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.key-feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: var(--transition);
    padding: 0 2.5rem;
    margin-top: 0;
}

/* MOBILE IMPROVEMENTS: Better title spacing and sizing */
@media (max-width: 768px) {
    .key-feature-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        padding: 0 1.75rem;
    }
}

@media (max-width: 480px) {
    .key-feature-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        padding: 0 1.25rem;
    }
}

.key-feature-card:hover .key-feature-title {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(47, 175, 115, 0.5);
}

.key-feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0 2.5rem 2.5rem;
}

/* MOBILE IMPROVEMENTS: Better padding and font size */
@media (max-width: 768px) {
    .key-feature-description {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 1.75rem 1.75rem;
    }
}

@media (max-width: 480px) {
    .key-feature-description {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 0 1.25rem 1.25rem;
    }
}

.key-feature-card:hover .key-feature-description {
    color: var(--text-primary);
}

/* Legacy feature-item styles for compatibility */
.feature-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    background-color: var(--bg-dark-card);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: slideInFromLeft 0.8s ease-out;
}

/* MOBILE IMPROVEMENTS: Stack feature items on smaller screens */
@media (max-width: 768px) {
    .feature-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .feature-item:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

@media (max-width: 480px) {
    .feature-item {
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

.feature-item:hover {
    background-color: var(--bg-dark-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover), var(--glow-emerald);
}

.feature-item:nth-child(even) {
    animation: slideInFromRight 0.8s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-title {
    font-size: 1.75rem;
    color: var(--primary-emerald);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* MOBILE IMPROVEMENTS: Better title sizing */
@media (max-width: 768px) {
    .feature-title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
}

.feature-description {
    color: var(--text-secondary);
}

/* MOBILE IMPROVEMENTS: Better description readability */
@media (max-width: 768px) {
    .feature-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .feature-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

.feature-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-green);
}

.feature-item:nth-child(even):hover {
    transform: translateX(-10px) scale(1.02);
}

.feature-item:nth-child(even) {
    grid-template-columns: 1.5fr 1fr;
    direction: rtl;
}

.feature-item:nth-child(even) .feature-content {
    direction: ltr;
}

.feature-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.feature-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

/* MOBILE IMPROVEMENTS: Adjust image height */
@media (max-width: 768px) {
    .feature-img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .feature-img {
        height: 150px;
    }
}

.feature-item:hover .feature-img {
    transform: scale(1.1);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Stats Section */
.stats-section {
    margin-top: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* MOBILE IMPROVEMENTS: Better spacing for stats */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-emerald), var(--dark-emerald));
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg), var(--glow-emerald);
    transition: var(--transition);
    border: 1px solid rgba(47, 175, 115, 0.3);
}

/* MOBILE IMPROVEMENTS: Reduce padding on small screens */
@media (max-width: 768px) {
    .stat-card {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 1.25rem;
    }
}

/* Stat cards can remain centered for visual appeal */

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-hover);
    animation: statPulse 0.6s ease;
}

@keyframes statPulse {
    0%, 100% {
        transform: translateY(-5px) scale(1.05);
    }
    50% {
        transform: translateY(-8px) scale(1.08);
    }
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* MOBILE IMPROVEMENTS: Responsive stat number sizing */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

/* MOBILE IMPROVEMENTS: Better label sizing */
@media (max-width: 768px) {
    .stat-label {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stat-label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

.stat-progress {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--light-green), #4ade80);
    border-radius: 4px;
    width: 0;
    transition: width 2s ease;
}

/* ============================================
   Target Audience Section
   ============================================ */
.audience {
    background: var(--bg-dark);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.audience-card {
    background-color: var(--bg-dark-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: left;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    animation: scaleIn 0.6s ease-out;
    animation-fill-mode: both;
}

.audience-card:hover {
    background-color: var(--bg-dark-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover), var(--glow-emerald);
}

.audience-card:nth-child(1) {
    animation-delay: 0.1s;
}

.audience-card:nth-child(2) {
    animation-delay: 0.2s;
}

.audience-card:nth-child(3) {
    animation-delay: 0.3s;
}

.audience-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.audience-icon {
    margin-left: 0;
    margin-right: auto;
}

.audience-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--light-green);
}

.audience-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-emerald), var(--light-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition);
}

.audience-card:hover .audience-icon {
    transform: scale(1.15) rotate(-5deg);
}

.audience-title {
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-weight: 700;
}

.audience-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Team Section
   ============================================ */
.team {
    background: var(--bg-dark-secondary);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.team .container {
    position: relative;
    z-index: 1;
}

.team .section-title {
    color: var(--text-primary);
}

.team .section-subtitle {
    color: var(--text-secondary);
}

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

/* MOBILE IMPROVEMENTS: Better spacing for team cards */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.team-card {
    background-color: var(--bg-dark-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-align: left;
    border: 1px solid var(--border-color);
    animation: rotateIn 0.8s ease-out;
    animation-fill-mode: both;
}

.team-card:hover {
    background-color: var(--bg-dark-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover), var(--glow-emerald);
}

.team-card:nth-child(1) {
    animation-delay: 0.1s;
}

.team-card:nth-child(2) {
    animation-delay: 0.2s;
}

.team-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(4, 106, 56, 0.95), rgba(3, 80, 44, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-card:hover .team-image {
    transform: scale(1.1);
}

.team-info-popup {
    padding: 2rem;
    color: var(--text-on-dark);
    text-align: left;
    transform: translateY(20px);
    transition: var(--transition);
}

.team-card:hover .team-info-popup {
    transform: translateY(0);
}

.team-popup-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-popup-role {
    font-size: 1.1rem;
    color: var(--light-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-popup-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.team-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.team-social-link {
    color: var(--text-on-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(250, 250, 250, 0.3);
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.team-social-link:hover {
    background-color: var(--bg-cream);
    color: var(--primary-emerald);
    border-color: var(--bg-cream);
}

.team-name {
    font-size: 1.5rem;
    color: var(--accent-green);
    margin: 1.5rem 0 0.5rem;
    font-weight: 700;
}

.team-role {
    font-size: 1rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ============================================
   CTA / Contact Section
   ============================================ */
.cta {
    background: var(--bg-dark-secondary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(4, 106, 56, 0.3);
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-form {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(30, 30, 30, 0.8);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 0 0 4px rgba(47, 175, 115, 0.2), var(--glow-emerald);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-cta {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: rgba(47, 175, 115, 0.2);
    color: var(--text-on-dark);
    border: 1px solid var(--light-green);
    display: block;
}

.form-message.error {
    background-color: rgba(255, 107, 107, 0.2);
    color: var(--text-on-dark);
    border: 1px solid #ff6b6b;
    display: block;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--bg-dark-card);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    padding: 4px;
    background-color: var(--bg-dark-card);
    box-shadow: var(--glow-emerald);
    transition: var(--transition);
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.1);
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(47, 175, 115, 0.3);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-green);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--light-green);
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-green);
    padding-left: 0.5rem;
}

.footer-contact {
    list-style: none;
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--light-green);
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }
    40% {
        transform: translateX(-50%) translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateX(-50%) translateY(-5px) rotate(45deg);
    }
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible,
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* Make hero section visible by default */
.page-hero .fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-dark-card);
        backdrop-filter: blur(20px);
        width: 80%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-radius: 0 0 20px 20px;
        border: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-slogan {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .problem-solution-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        grid-template-columns: 1fr !important;
        direction: ltr !important;
    }
    
    .feature-item .feature-content {
        direction: ltr !important;
    }
    
    .key-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-grid,
    .audience-grid,
    .team-grid,
    .stats-grid,
    .key-features-grid {
        grid-template-columns: 1fr;
    }
    
    .key-feature-image-wrapper {
        height: 180px;
    }
    
    .key-feature-icon {
        width: 60px;
        height: 60px;
        margin: -30px auto 1rem;
        border-width: 3px;
    }
    
    .key-feature-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .key-feature-title {
        font-size: 1.25rem;
        padding: 0 1.5rem;
    }
    
    .key-feature-description {
        padding: 0 1.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* ============================================
   Additional Styles for Multi-Page Website
   ============================================ */

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.loading-plant {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 60px;
    background: var(--accent-green);
    transform: translateX(-50%);
    animation: grow 2s ease-in-out infinite;
}

.leaves {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.leaf {
    position: absolute;
    width: 20px;
    height: 30px;
    background: var(--accent-green);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: leafGrow 2s ease-in-out infinite;
}

.leaf-1 {
    left: -15px;
    top: 10px;
    animation-delay: 0.2s;
}

.leaf-2 {
    right: -15px;
    top: 5px;
    animation-delay: 0.4s;
}

.leaf-3 {
    left: -10px;
    top: -5px;
    animation-delay: 0.6s;
}

@keyframes grow {
    0%, 100% { height: 20px; }
    50% { height: 60px; }
}

@keyframes leafGrow {
    0%, 100% { transform: scale(0.5); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-dark-hover);
    transform: scale(1.1);
}

.theme-icon {
    width: 24px;
    height: 24px;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Page Hero */
.page-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--dark-emerald) 100%);
    overflow: hidden;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255,255,255,0.6);
}

/* Theme Support */
[data-theme="light"] {
    --primary-emerald: #046A38;
    --dark-emerald: #03502C;
    --accent-green: #2FAF73;
    --bg-dark: #FFFFFF;
    --bg-dark-secondary: #F8F9FA;
    --bg-dark-card: #FFFFFF;
    --bg-dark-hover: #F1F3F4;
    --text-primary: #1A1A1A;
    --text-secondary: #5F6368;
    --text-muted: #9AA0A6;
    --border-color: rgba(4, 106, 56, 0.2);
    --border-hover: rgba(47, 175, 115, 0.3);
    --text-on-dark: rgba(26, 26, 26, 0.95);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 12px 40px rgba(4, 106, 56, 0.2);
    --glow-emerald: 0 0 20px rgba(4, 106, 56, 0.3);
    --glow-accent: 0 0 30px rgba(47, 175, 115, 0.2);
}

[data-theme="light"] .loading-overlay {
    background: var(--bg-dark);
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: center;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-feature .feature-icon {
    font-size: 1.25rem;
}

.hero-feature .feature-text {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(4, 106, 56, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Mission */
.hero-mission {
    margin-top: 2rem;
    text-align: center;
}

.mission-tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 300;
    position: relative;
}

.mission-tagline::before,
.mission-tagline::after {
    content: '"';
    font-size: 2rem;
    color: var(--accent-green);
    position: relative;
    top: 5px;
}

/* Audience Benefits */
.audience-benefits {
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.audience-benefits li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.audience-benefits li::before {
    content: "✓";
    color: var(--primary-emerald);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Light Theme Audience Benefits */
[data-theme="light"] .audience-benefits li::before {
    color: var(--primary-emerald);
}

/* ============================================
   Achievements Page Specific Styles
   ============================================ */

/* Achievement Stats Enhancements */
.stat-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Timeline Enhancements */
.achievement-details {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.achievement-details span {
    background: rgba(4, 106, 56, 0.1);
    color: var(--accent-green);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Awards Gallery Enhancements */
.award-description {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
    font-weight: 400;
}

/* Impact Cards Enhancements */
.impact-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.impact-stat {
    background: rgba(4, 106, 56, 0.1);
    color: var(--accent-green);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(4, 106, 56, 0.2);
}

/* Future Goals Enhancements */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.goal-category {
    background: var(--bg-dark-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.goal-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.goal-category-title {
    color: var(--primary-emerald);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.goal-item:last-child {
    border-bottom: none;
}

.goal-text {
    font-weight: 500;
    color: var(--text-primary);
}

.goal-target {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.goals-summary {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(4, 106, 56, 0.1), rgba(47, 175, 115, 0.1));
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.summary-stat {
    text-align: center;
}

.summary-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-emerald);
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Light Theme Adjustments for Achievements */
[data-theme="light"] .goal-category {
    background: var(--bg-dark-card);
    border-color: rgba(4, 106, 56, 0.15);
}

[data-theme="light"] .goals-summary {
    background: linear-gradient(135deg, rgba(4, 106, 56, 0.05), rgba(47, 175, 115, 0.05));
}

/* Mobile Responsive for New Elements */
@media (max-width: 768px) {
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .goal-category {
        padding: 1.5rem;
    }

    .goals-summary {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .achievement-details {
        gap: 0.5rem;
    }

    .impact-stats {
        gap: 0.5rem;
    }

    .summary-number {
        font-size: 1.5rem;
    }
}



/* ============================================
   TEXT READABILITY FIX (CRITICAL)
   ============================================ */

p,
.about-card-text,
.key-feature-description,
.feature-description,
.audience-description,
.team-popup-bio,
.cta-description,
.footer-description {
    max-width: 65ch;          /* يمنع النص العريض */
    line-height: 1.75;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

.section-header p {
    margin-left: auto;
    margin-right: auto;
}

/* Reduce animation noise */
.about-card,
.key-feature-card,
.team-card,
.audience-card,
.problem-card,
.solution-card {
    animation: none !important;
}

.about-card:hover,
.key-feature-card:hover,
.team-card:hover {
    transform: translateY(-6px);
}
.section {
    padding: 6rem 0;
}

.section:nth-child(even) {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.02),
        rgba(255,255,255,0)
    );
}
body {
    letter-spacing: 0.2px;
}

h1, h2, h3 {
    letter-spacing: -0.5px;
}
.hero {
    padding-top: 120px; /* أهم سطر */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}
.hero-slogan {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.hero-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}
.hero-content {
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 22px; /* يريح العين */
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}
.hero-description {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.9;
}
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.35s ease;
    cursor: pointer;
}

.hero-feature:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.hero-background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(10, 15, 20, 0.85),
            rgba(10, 15, 20, 0.95)
        ),
        url("pages/images/hero-bg.jpg") center/cover no-repeat;
    z-index: -1;
}
.hero-mission {
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
    max-width: 600px;
}
 body {
    padding-top: 80px; /* نفس ارتفاع الهيدر */
}
section {
    scroll-margin-top: 90px;
}
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .feature-item {
    direction: rtl;
}
@media (hover: hover) {
    .card-hover-lift:hover {
        transform: translateY(-10px);
    }
}
section {
    scroll-margin-top: 90px;
}


/* Container للكروت */
.key-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 كروت في الصف */
    gap: 20px; /* المسافة بين الكروت */
    padding: 0 40px; /* مسافة من الجوانب عشان متلصقوش على الحواف */
}

/* الكارد */
.key-feature-card {
    background-color: rgba(255, 255, 255, 0.05); /* نفس لون الكارد القديم */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* الصورة */
.key-feature-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.key-feature-image {
    width: 100%;
    height: auto;
    display: block;
}

/* النص داخل الكارد */
.key-feature-title,
.key-feature-description {
    padding: 10px 15px; /* مسافة بين الصورة والنص */
}

/* أيقونات */
.key-feature-icon {
    margin-bottom: 10px;
}



.team-social button {
    background: #012c19;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}

.team-social button:hover {
    background: #03502C;
}


.team-image-wrapper {
    position: relative;
    overflow: hidden;
}

.team-name-role {
    text-align: center;
    margin-top: 12px;
    padding: 0 12px;        /* يمنع اللزق يمين وشمال */
}

.team-name-role h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 1111;
    color: #046A38;
}

.team-name-role p {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #B0B0B0;
}

.team-card {
    padding-bottom: 20px;   /* أهم سطر */
}

.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}
.container {
    max-width: 1200px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #666;
}
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.mission-card,
.vision-card {
    padding: 40px;
    border-radius: 16px;
}
.sdgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    color: #1fa36b;
}


/* === Problem Section Grid === */
.problem-grid {
    display: flex;
    flex-direction: row;
    gap: 50px; /* المسافة بين النص والإحصائيات */
    align-items: flex-start;
    margin: 50px 0; /* مسافة فوق وتحت للsection */
}

/* === LEFT: Problem Content === */
.problem-content {
    flex: 2; /* ياخد مساحة أكبر */
    line-height: 1.8; /* مسافة بين الأسطر */
    font-size: 1.1rem;
    color: #333;
}

.problem-content h3.problem-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #138651;
}

.problem-content p.problem-text {
    margin-bottom: 20px; /* مسافة بعد كل فقرة */
}

.problem-content ul.problem-list {
    list-style: disc;
    padding-left: 20px; /* مسافة داخلية للقائمة */
}

.problem-content ul.problem-list li {
    margin-bottom: 12px; /* مسافة بين كل item */
    font-size: 1.05rem;
}

/* === RIGHT: Stats === */
.problem-stats {
    flex: 1; /* ياخد مساحة أقل */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stat Box Styling */
.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    background-color: #03502C; /* لون فاتح للخلفية بدل Gradient غامق */
    border-left: 5px solid #138651; /* border لتحديد اللون */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

/* Hover effect */
.stat-box:hover {
    transform: translateY(-5px);
}

/* Icon */
.stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

/* Number and Text */
.stat-content h3 {
    font-size: 2rem;
    margin: 0 0 5px 0;
    color: #04cc79; /* نفس لون border */
}

.stat-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    color: #ffffff;
}

/* Colors for different stats */
.stat-box.food {
    background-color: #03502C;
    border-left-color: #138651;
}

.stat-box.co2 {
    background-color: #03502C;
    border-left-color: #138651;
}

/* === Responsive === */
@media (max-width: 992px) {
    .problem-grid {
        flex-direction: column;
    }

    .problem-stats {
        flex-direction: column;
        margin-top: 30px;
    }

    .stat-box {
        width: 100%;
    }
}

/* === Icon Colors Match Box === */
.stat-box.water .stat-icon {
    color: #04cc79; /* نفس لون border-left */
}

.stat-box.food .stat-icon {
    color: #04cc79; /* نفس لون border-left */
}

.stat-box.co2 .stat-icon {
    color: #04cc79; /* نفس لون border-left */
}

.page-hero {
    position: relative;
    padding: 100px 60px; /* قللنا padding من أعلى الهيرو */
    display: flex;
    flex-direction: column; /* محتوى واحد فوق الآخر */
    align-items: flex-start;
    justify-content: flex-start;
    background: #054d2a;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    min-height: 400px;
}

.page-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px; /* قللنا المسافة */
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: #a1e887;
    margin-bottom: 15px; /* قللنا المسافة */
    border-radius: 2px;
}

.page-hero-subtitle {
    font-size: 1.5rem;
    color: #c0c0c0;
    line-height: 1.6; /* تقليل قليل للارتفاع */
    margin-bottom: 20px; /* قللنا المسافة للزر */
    font-weight: 400;
}

.hero-cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #03502C;
    color: #fff;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    
}

/* Responsive */
@media (max-width: 992px) {
    .page-hero {
        padding: 80px 20px;
        align-items: center;
        text-align: center;
    }
    .page-hero-title {
        font-size: 2.8rem;
    }
    .page-hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    .title-underline {
        margin: 10px auto 15px auto;
    }
    .hero-cta-btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

.hero-cta-btn {
    position: relative;  /* مهم للhover والتحريك */
    display: inline-block;
    padding: 12px 30px;
    background-color: #03502C;
    color: #fff;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease; /* تأكد من ease للhover */
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    z-index: 2;  /* اجعل الزر فوق أي عناصر أخرى */
}
.hero-cta-btn:hover {
    background-color: #153b00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(63,107,40,0.5);
}


/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #054d2a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #054d2a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sun */
.sun {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffd93b, #f2b705);
    border-radius: 50%;
    margin-bottom: 30px;
    animation: sunGlow 2s infinite alternate;
}

@keyframes sunGlow {
    from { box-shadow: 0 0 20px #ffd93b; }
    to { box-shadow: 0 0 40px #ffd93b; }
}
/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #054d2a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sun / Light */
.sun {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffd93b, #f2b705);
    border-radius: 50%;
    margin-bottom: 30px;
    animation: sunGlow 2s infinite alternate;
}

@keyframes sunGlow {
    from { box-shadow: 0 0 20px #ffd93b; }
    to { box-shadow: 0 0 40px #ffd93b; }
}

/* Vertical Farm */
.vertical-farm {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    margin-bottom: 20px;
}

.layer {
    width: 140px;
    height: 20px;
    background-color: #333; /* رف */
    border-radius: 4px;
    position: relative;
    transform: scaleY(0);
    animation: growLayer 0.5s forwards;
}

.layer-1 { animation-delay: 0.2s; }
.layer-2 { animation-delay: 0.4s; }
.layer-3 { animation-delay: 0.6s; }
.layer-4 { animation-delay: 0.8s; }

/* Plants inside each layer */
.plant {
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 30px;
    background: linear-gradient(to top, #54a22e, #a1e887);
    border-radius: 4px 4px 0 0;
    transform: scaleY(0);
    animation: growPlant 0.6s forwards;
}

.plant-1 { left: 25%; animation-delay: 0.3s; }
.plant-2 { left: 65%; animation-delay: 0.4s; }

/* Animate layers */
@keyframes growLayer {
    to { transform: scaleY(1); }
}

@keyframes growPlant {
    to { transform: scaleY(1); }
}

/* IoT lines between layers */
.layer::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 2px;
    height: 15px;
    background: #a1e887;
    transform: scaleY(0);
    animation: growLine 0.5s forwards;
}

.layer-1::after { animation-delay: 0.25s; }
.layer-2::after { animation-delay: 0.45s; }
.layer-3::after { animation-delay: 0.65s; }
.layer-4::after { animation-delay: 0.85s; }

@keyframes growLine {
    to { transform: scaleY(1); }
}

/* Loading Text */
.loading-text {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 20px;
}


.timeline-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: #039b51;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-icon {
    font-size: 1.5rem;
}


/* SDGs Dark Section */
.sdgs-dark {
    background-color: #1c1c1c;  /* خلفية داكنة */
    padding: 80px 0;
}

/* Wrapper */
.sdgs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Section Titles */
.section-title, .section-subtitle {
    color: #039b51; /* أخضر Agrisky */
}

/* SDGs Grid 3*3 */
.sdgs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

@media (max-width: 576px) {
    .sdgs-grid {
        grid-template-columns: 1fr;
    }
}

/* SDG Card */
.sdg-card {
    background: #2a2a2a;  /* أفتح من الخلفية */
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: left; /* النص على الشمال */
    transition: transform .3s ease, box-shadow .3s ease;
}

.sdg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* SDG Header */
.sdg-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

/* Image wrapper */
.sdg-image-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #039b51;
}

/* Image inside wrapper fills the circle */
.sdg-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* الصورة تملأ الدايرة بالكامل */
    display: block;
    border-radius: 20%;
}

/* SDG Number */
.sdg-number {
    font-weight: 700;
    font-size: 20px;
    color: #039b51;
}

/* Title & Description */
.sdg-title {
    color: #039b51;
    margin: 0 0 8px;
}

.sdg-description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}



/* SDG Header */
.sdg-card-header {
    display: flex;
    align-items: center;
    gap: 16px; /* شوية مسافة بين الصورة والرقم */
    margin-bottom: 16px;
}

/* Image wrapper - حجم أكبر */
.sdg-image-wrapper {
    width: 80px;   /* تكبير الدايرة */
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #039b51;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* الصورة جوه الدايرة */
.sdg-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تملأ الدايرة بالكامل */
    display: block;
    border-radius: 50%;
}

/* SDG Number */
.sdg-number {
    font-weight: 700;
    font-size: 22px; /* يكبر شوية عشان يتناسب مع الدايرة */
    color: #039b51;
}




/* Tech Overview Section */
.tech-overview {
    background-color: #1c1c1c;
    padding: 80px 0;
}

.tech-overview .section-title {
    color: #039b51;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tech-overview .section-subtitle {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 40px;
}

/* Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 1200px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* Tech Card */
.tech-card {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Tech Image */
.tech-image {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
}

.tech-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* الصورة تملا الإطار بالكامل */
    display: block;
}

/* Title & Description */
.tech-title {
    font-size: 1.3rem;
    color: #039b51;
    margin-bottom: 12px;
    font-weight: 700;
}

.tech-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Features List */
.tech-features {
    list-style: disc;
    padding-left: 20px;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}



/* Vertical Farming Section */
.vertical-farming {
    background-color: #1c1c1c;
    padding: 80px 0;
    color: #ccc;
}

.vertical-farming .section-title {
    color: #039b51;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.vertical-farming .section-subtitle {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 50px;
}

/* System Layers Grid */
.vertical-system {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.system-layers {
    flex: 1 1 65%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Each Layer */
.layer {
    display: flex;
    gap: 20px;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.layer:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Layer Content */
.layer-content {
    flex: 1;
}

.layer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #039b51;
    margin-bottom: 8px;
}

/* Layer Visual (Plants) */
.layer-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plants {
    display: flex;
    gap: 10px;
}

.plant {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

/* Example Plant Images */
.plant.lettuce { background-image: url('images/plants/lettuce.jpg'); }
.plant.spinach { background-image: url('images/plants/spinach.jpg'); }
.plant.herbs { background-image: url('images/plants/herbs.jpg'); }
.plant.tomato { background-image: url('images/plants/tomato.jpg'); }
.plant.pepper { background-image: url('images/plants/pepper.jpg'); }
.plant.cucumber { background-image: url('images/plants/cucumber.jpg'); }
.plant.carrot { background-image: url('images/plants/carrot.jpg'); }
.plant.radish { background-image: url('images/plants/radish.jpg'); }
.plant.potato { background-image: url('images/plants/potato.jpg'); }

/* AI Control Panel */
.system-controls {
    flex: 1 1 30%;
    background-color: #2a2a2a;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.system-controls h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #039b51;
    margin-bottom: 16px;
}

.controls .control-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(3, 155, 81, 0.2);
}

.control-label {
    font-weight: 500;
    color: #ccc;
}

.control-value {
    font-weight: 700;
    color: #039b51;
}

/* Responsive */
@media (max-width: 992px) {
    .vertical-system {
        flex-direction: column;
    }
    .system-controls {
        flex: 1 1 100%;
    }
}
.vertical-farming {
    background-color: #1c1c1c;
    padding: 80px 0;
    color: #ccc;
}

.vertical-farming .section-title { color: #039b51; font-size: 2.2rem; margin-bottom: 12px; }
.vertical-farming .section-subtitle { color: #ccc; font-size: 1rem; margin-bottom: 50px; }

.vertical-system {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.system-layers {
    flex: 1 1 65%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* كل كارد مستقل */
.layer {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: #2a2a2a;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.layer:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.35);
}

/* النص على الشمال */
.layer-content { flex: 1; }
.layer-title { color: #039b51; font-size: 1.4rem; margin-bottom: 6px; }

/* الصورة على اليمين */
.layer-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.layer-visual img {
    width: 100%;
    max-width: 180px;
    height: 180px;
    border-radius: 16px;
    object-fit: cover; /* الصورة تملي الكارد */
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* AI Control Panel */
.system-controls {
    flex: 1 1 30%;
    background-color: #2a2a2a;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.system-controls h4 { color: #039b51; margin-bottom: 16px; font-size: 1.3rem; }
.controls .control-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(3,155,81,0.2); }
.controls .control-item span:first-child { color: #ccc; } 
.controls .control-item span:last-child { color: #039b51; font-weight: 700; }

/* Responsive */
@media (max-width: 992px) { .vertical-system { flex-direction: column; } .system-controls { flex: 1 1 100%; } }


/* Vertical Farming Section */
.vertical-farming {
    background: #1c1c1c;
    padding: 80px 0;
    color: #fff;
}

.vertical-farming .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.vertical-farming .section-title {
    font-size: 2.5rem;
    color: #039b51;
    margin-bottom: 10px;
}

.vertical-farming .section-subtitle {
    font-size: 1.1rem;
    color: #ccc;
}

/* Grid */
.vf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Card */
.vf-card {
    background: #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vf-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Image */
.vf-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.vf-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.vf-card:hover .vf-image img {
    transform: scale(1.05);
}

/* Content */
.vf-content {
    padding: 20px;
}

.vf-content h3 {
    font-size: 1.5rem;
    color: #039b51;
    margin-bottom: 10px;
}

.vf-content p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

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

@media (max-width: 576px) {
    .vf-grid {
        grid-template-columns: 1fr;
    }
}


/* AI Control Panel */
.vf-control-panel {
    background: #2a2a2a;
    border-radius: 20px;
    margin-top: 60px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.vf-control-panel h3 {
    font-size: 1.8rem;
    color: #039b51;
    margin-bottom: 20px;
    text-align: center;
}

.vf-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.control-item {
    flex: 1 1 200px;
    background: #1e1e1e;
    border-radius: 15px;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.control-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.control-label {
    display: block;
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 8px;
}

.control-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #039b51;
}

/* Responsive */
@media (max-width: 992px) {
    .vf-controls {
        flex-direction: column;
        align-items: center;
    }
    .control-item {
        width: 80%;
    }
}

@media (max-width: 576px) {
    .control-item {
        width: 100%;
    }
}


/* Control Panel Flex */
.controls {
    display: flex;
    flex-direction: column;
    gap: 16px; /* المسافة بين كل خانة */
}

.control-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px; /* المسافة بين الأيقونة والكلام */
    background: #2a2a2a;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    color: #fff;
}

.control-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #039b51;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

/* الأيقونات */
.temp-icon::before { content: "🌡️"; }
.humidity-icon::before { content: "💧"; }
.light-icon::before { content: "☀️"; }
.ph-icon::before { content: "⚗️"; }

/* Text */
.control-text {
    display: flex;
    flex-direction: column;
    text-align: right; /* النص يبقى على اليمين داخل الكارد */
}

.control-label {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.control-value {
    font-weight: 700;
    color: #039b51;
    font-size: 1.1rem;
}



/* Comparison Section */
.comparison {
    background: #1c1c1c;
    padding: 90px 0;
    color: #fff;
}

.comparison .section-title {
    color: #039b51;
    font-size: 2.2rem;
    margin-bottom: 9px;
}

.comparison .section-subtitle {
    color: #ccc;
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* Table */
.comparison-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Header Row - Fixed */
.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* ثلاث أعمدة متساوية */
    gap: 25px; /* 👈 المسافة بين الخانات */
    background: #2a2a2a;
    padding: 16px; 
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* كل خانة في الهيدر */
.comparison-header .comparison-col {
    background: #039b51; /* لون الأخضر للعناوين */
    color: #fff;
    padding: 14px 10px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* النص داخل الخانات */
.comparison-header h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}


/* Rows */
.comparison-row {
    display: inline-grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.comparison-col {
    background: #2a2a2a;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-col.comparison-label {
    background: #1c1c1c;
    font-weight: 700;
    color: #ccc;
}

.comparison-col.comparison-traditional {
    background: #3a3a3a;
    color: #f1f1f1;
}

.comparison-col.comparison-agrisky {
    background: #039b51;
    color: #fff;
}

.comparison-col span.comparison-advantage {
    font-weight: 700;
}

/* Hover Effects */
.comparison-col:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 992px) {
    .comparison-header, .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-col {
        justify-content: flex-start;
        text-align: left;
    }
}
.comparison-col.comparison-label {
    background: #2e2e2e;       /* أفتح شويه عن الخلفية الأساسية */
    font-weight: 700;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* المحاذاة على الشمال */
    padding-left: 16px;
    position: relative;
}

/* شريط صغير أخضر بجانب كل Label */
.comparison-col.comparison-label::before {
    content: '';
    width: 6px;
    height: 24px;
    background: #039b51;
    display: inline-block;
    margin-right: 12px;
    border-radius: 3px;
}



/* Analytics Section */
.analytics {
    background: #1c1c1c;
    padding: 80px 0;
    color: #fff;
}

/* Header */
.analytics .section-title {
    color: #039b51;
    font-size: 2rem;
    margin-bottom: 8px;
}

.analytics .section-subtitle {
    color: #ccc;
    font-size: 1.1rem;
}

/* Layout */
.analytics-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .analytics-content {
        flex-direction: column;
    }
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 24px;
    flex: 1;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-header h4 {
    font-size: 1.25rem;
    color: #039b51;
    margin: 0;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #0f0;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #0f0;
}

/* Charts */
.dashboard-charts .chart {
    margin-bottom: 20px;
}

.chart-label {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 6px;
}

.chart-visual {
    background: #1e1e1e;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Mock bars/lines/pie */
.chart-line {
    height: 100%;
    width: 60%;
    background: #039b51;
}

.chart-bar {
    height: 100%;
    width: 70%;
    background: #04a357;
}

.chart-pie {
    height: 100%;
    width: 100%;
    background: conic-gradient(#039b51 0% 65%, #2a2a2a 65% 100%);
}

/* Analytics Description */
.analytics-description {
    flex: 1;
}

.analytics-description h3 {
    font-size: 1.5rem;
    color: #039b51;
    margin-bottom: 16px;
}

/* Features */
.analytics-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .analytics-features {
        grid-template-columns: 1fr;
    }
}

.analytics-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #2a2a2a;
    border-radius: 16px;
    padding: 12px 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analytics-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #039b51;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.feature-content h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #039b51;
}

.feature-content p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #ccc;
}


/* Dashboard Container */
.dashboard-mockup {
    background: #2a2a2a;
    border-radius: 24px;
    padding: 32px;
    flex: 1;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 30px; /* مسافة بين العناوين والcharts */
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-header h4 {
    font-size: 1.5rem;
    color: #039b51;
    margin: 0;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #0f0;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    background: #0f0;
}

/* Charts */
.dashboard-charts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chart-label {
    font-size: 1rem;
    color: #ccc;
    font-weight: 600;
}

.chart-visual {
    background: #1e1e1e;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Mock charts */
.chart-line {
    height: 100%;
    width: 60%;
    background: #039b51;
    border-radius: 8px;
    transition: width 1s ease;
}

.chart-bar {
    height: 100%;
    width: 70%;
    background: #04a357;
    border-radius: 8px;
    transition: width 1s ease;
}

.chart-pie {
    height: 100%;
    width: 100%;
    background: conic-gradient(#039b51 0% 65%, #2a2a2a 65% 100%);
    border-radius: 50%;
}


.team-intro {
    background-color: #1c1c1c; /* خلفية داكنة */
    padding: 120px 20px;
    color: #fff;
}

.team-intro .section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center; /* العنوان مركزي */
    margin-bottom: 16px;
}

.team-intro .title-underline {
    width: 80px;
    height: 4px;       /* سمك الخط */
    background-color: #039b51; /* اللون الأخضر */
    margin: 16px auto 32px;    /* المسافة من العنوان والـ subtitle */
    border-radius: 2px;        /* حواف مستديرة بسيطة */
}


.team-intro .section-subtitle {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 32px;
    line-height: 1.6;
    text-align: center; /* subtitle مركزي */
}

.team-intro .team-description {
    font-size: 1.125rem;
    color: #ccc;
    line-height: 1.8; /* متعدد الأسطر */
    text-align: left; /* يبقى من الشمال */
    max-width: 100%; /* يملأ الحيز من اليسار */
    margin: 0; /* إزالة أي margin مركزي */
}


.core-team .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.team-member-card {
    background: #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.team-member-image-wrapper {
    width: 100%;
    padding-top: 100%; /* يحافظ على النسبة 1:1 */
    position: relative;
    overflow: hidden;
}

.team-member-image-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 2px solid #039b51; /* خط أخضر أسفل الصورة */
}

.team-member-content {
    padding: 24px 20px;
}

.team-member-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.team-member-role {
    font-size: 1rem;
    font-weight: 500;
    color: #0b6b3a;
    margin-bottom: 12px;
}

.team-member-expertise {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
}

/* Section Header */
.core-team .section-header .title-underline {
    width: 60px;
    height: 4px;
    background-color: #039b51;
    margin: 12px 0 24px;
    border-radius: 2px;
}

.team-values .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.value-card {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.value-icon .value-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.value-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
}

/* Section Header */
.team-values .section-header .title-underline {
    width: 60px;
    height: 4px;
    background-color: #039b51;
    margin: 12px auto 24px;
    border-radius: 2px;
}

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

.value-card {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.value-icon .value-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.value-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

/* Section Header */
.section-header .title-underline {
    width: 60px;
    height: 4px;
    background-color: #039b51;
    margin: 12px auto 24px;
    border-radius: 2px;
}

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

.value-card {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}

.value-icon {
    width: 100%;
    height: 220px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 20px;
}

.value-icon img.value-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.value-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.value-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

/* Section Header */
.section-header .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.section-header .section-subtitle {
    font-size: 1rem;
    color: #aaa;
    text-align: center;
    margin-top: 8px;
}

/* Partners Section */
/* Partners Section */
.partners {
    padding: 80px 0;
}

.partners .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.partners .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.partners .title-underline {
    width: 60px;
    height: 4px;
    background-color: #4CAF50;
    margin: 0 auto 16px;
    border-radius: 2px;
}

.partners .section-subtitle {
    font-size: 16px;
    color: #666;
}

/* Grid Layout */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

/* Individual Partner Card */
.partner-card {
    background-color: #03502C; /* يمكن تغييره للون خفيف */
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

/* Logo Image fills card */
.partner-logo-wrapper {
    width: 100%;
    height: 200px; /* ارتفاع ثابت للصور */
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #252525; /* لون خفيف للخلفية */
    border-radius: 12px;
}

.partner-logo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* الصورة تغطي مساحة الكارد */
}

/* Content */
.partner-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.partner-description {
    font-size: 14px;
    color: #949393;
    line-height: 1.5;
    padding: 0 8px;
}

/* Fade-in Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.fade-in-up[data-delay="0"] { animation-delay: 0s; }
.fade-in-up[data-delay="100"] { animation-delay: 0.1s; }
.fade-in-up[data-delay="200"] { animation-delay: 0.2s; }
.fade-in-up[data-delay="300"] { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .partners-grid {
        gap: 24px;
    }
    .partner-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .partner-logo-wrapper {
        height: 150px;
        margin-bottom: 16px;
    }
    .partner-name {
        font-size: 16px;
    }
    .partner-description {
        font-size: 13px;
    }
}


.achievements-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

/* Tablet */
@media (max-width: 992px) {
    .achievements-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .achievements-stats {
        grid-template-columns: 1fr;
    }
}

.achievement-stat {
    background: var(--bg-dark-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.achievement-stat:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.stat-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-emerald);
    margin: 20px 20px 6px;
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 20px 8px;
}

.stat-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 20px 24px;
}



/* Timeline Container */
.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 60px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

/* Timeline Content */
.timeline-content {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    padding: 24px;
    border-radius: 16px;
    width: 520px;
    position: relative;
}

/* Dot */
.timeline-dot {
    width: 14px;
    height: 14px;
    background: #3ccf91;
    border-radius: 50%;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

/* Badge */
.achievement-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.badge-icon {
    width: 32px;
    height: 32px;
}

.badge-rank {
    font-weight: 600;
    color: #3ccf91;
    font-size: 14px;
}

/* Text */
.timeline-year {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 6px;
}

.timeline-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.85;
}

/* Gallery */
.achievement-gallery {
    margin: 16px 0 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.achievement-gallery img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s ease;
}

.achievement-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Details */
.achievement-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.achievement-details span {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(60,207,145,0.1);
    color: #3ccf91;
}

/* Responsive */
@media (max-width: 992px) {
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: center;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-content {
        width: 100%;
    }

    .achievement-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .achievement-gallery {
        grid-template-columns: 1fr;
    }

    .achievement-gallery img {
        height: 140px;
    }
}


.awards-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:32px;
}

.award-card{
    background:#0f1f17;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 12px 35px rgba(0,0,0,.35);
    transition:.3s;
}

.award-card:hover{
    transform:translateY(-8px);
}

.award-slider{
    position:relative;
    height:230px;
}

.award-images img{
    width:100%;
    height:230px;
    object-fit:cover;
    display:none;
    transition: opacity 0.5s ease;
}

.award-images img.active{
    display:block;
    opacity: 1;
}

.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,.6);
    color:#fff;
    border:none;
    font-size:22px;
    padding:6px 12px;
    cursor:pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.slider-btn:hover {
    background: var(--primary-emerald);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.prev{left:10px}
.next{right:10px}

.award-info{
    padding:20px;
}

.award-info h4{
    font-size:18px;
    margin-bottom:6px;
}

.award-info p{
    color:#7fd38c;
    font-weight:500;
}

.award-year{
    display:block;
    font-size:13px;
    opacity:.7;
}

.award-description{
    margin-top:10px;
    font-size:14px;
    line-height:1.6;
    opacity:.85;
}

@media(max-width:992px){
    .awards-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:576px){
    .awards-grid{grid-template-columns:1fr}
}

/* ===== Egypt Map ===== */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.leaflet-popup-content {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.leaflet-marker-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}




/* Contact Page Styles */
.contact-main {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-dark-primary) 0%, var(--bg-dark-secondary) 100%);
}

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

.contact-form-section {
    order: 2;
}

.contact-form-container {
    max-width: 600px;
}

.contact-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-intro {
    padding: 80px 20px;
    background-color: #f6f9f3; /* خلفية فاتحة مريحة */
    text-align: center;
}

.contact-intro .section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-emerald);
    margin-bottom: 12px;
}

.contact-intro .section-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: #556b50;
    margin-bottom: 25px;
}

.contact-intro .contact-description {
    font-size: 16px;
    line-height: 1.8;
    color: #556b50;
    max-width: 700px;
    margin: 0 auto;
}

/* CTA buttons in contact intro */
.contact-intro .cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* MOBILE IMPROVEMENTS: Stack buttons vertically on mobile */
@media (max-width: 768px) {
    .contact-intro .cta-buttons {
        gap: 10px;
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .contact-intro .cta-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 12px;
    }
}

.contact-intro .btn-primary {
    background: linear-gradient(90deg, var(--primary-emerald), var(--accent-green));
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
}

.contact-intro .btn-secondary {
    background: transparent;
    color: var(--primary-emerald);
    border: 2px solid var(--primary-emerald);
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .contact-intro {
        padding: 48px 16px;
    }
    .contact-intro .section-title { font-size: 28px; }
    .contact-intro .contact-description { font-size: 15px; line-height:1.6; }
    .contact-intro .cta-buttons { gap: 10px; }
}

.contact-intro-content.fade-in {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================
   Style for Select Dropdown
   ======================= */
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    appearance: none; /* إزالة الشكل الافتراضي */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border 0.3s, box-shadow 0.3s;
    position: relative;
}

/* عند التركيز على الـ select */
.form-select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    outline: none;
}

/* حط سهم مخصص */
.form-select-wrapper {
    position: relative;
    width: 100%;
}

.form-select-wrapper::after {
    content: '▼'; /* السهم */
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #555;
    font-size: 14px;
}

/* Optional: hover effect */
.form-select:hover {
    border-color: #4CAF50;
}

.contact-info-section {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  color: var(--text-primary);
  order: 1;
}

.contact-info-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: left;
  color: var(--text-primary);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--bg-dark-secondary);
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s;
  border: 1px solid var(--border-color);
}

.contact-info-item:hover {
  transform: translateY(-5px);
  background-color: var(--bg-dark-primary);
}

.contact-info-icon {
  flex-shrink: 0;
  color: var(--primary-emerald);
}

.contact-info-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.contact-info-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.contact-info-text a {
  color: var(--primary-emerald);
  text-decoration: none;
}

.contact-info-text a:hover {
  color: var(--accent-green);
}

.contact-social {
  margin-top: 40px;
  text-align: center;
}

.contact-social .social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-social .social-link {
  padding: 10px 20px;
  background-color: var(--primary-emerald);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.contact-social .social-link:hover {
  background-color: var(--accent-green);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-section {
    order: 1;
  }

  .contact-info-section {
    order: 2;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

.partnership-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #046A38, #0b8f4d);
    border-radius: 16px;
    margin: 80px 0;
    color: #fff;
}

.partnership-cta-content {
    text-align: center;
    max-width: 1000px;
    margin: auto;
}

.partnership-cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.partnership-cta-description {
    font-size: 18px;
    line-height: 1.6;
    color: #e0f2e9;
    margin-bottom: 50px;
}

/* Options Cards */
.partnership-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.partnership-option {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px 20px;
    border-radius: 14px;
    transition: transform 0.3s, background-color 0.3s;
}

.partnership-option:hover {
    transform: translateY(-6px);
    background-color: rgba(255, 255, 255, 0.12);
}

.partnership-option h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

.partnership-option p {
    font-size: 15px;
    line-height: 1.5;
    color: #d6efe2;
}

/* CTA Button */
.btn-partnership {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-partnership:hover {
    background-color: #43a047;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
    .partnership-cta-title {
        font-size: 28px;
    }

    .partnership-cta-description {
        font-size: 16px;
    }
}

/* Contact anchor behavior (kept for compatibility) */
#contact-form {
    scroll-margin-top: 120px; /* if you have a fixed navbar */
}

#contact-form:target {
    animation: highlight 1.2s ease;
}

@keyframes highlight {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6); }
    100% { box-shadow: 0 0 0 30px rgba(76, 175, 80, 0); }
}

/* Ensure embedded contact target aligns below fixed header */
#embedded-contact { scroll-margin-top: 120px; }

/* Jotform embed responsive styles */
.jotform-embed {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg, #fff);
    box-shadow: 0 12px 30px rgba(8, 35, 20, 0.06);
    position: relative;
}

.jotform-embed iframe {
    width: 100%;
    border: none;
    display: block;
    /* Prefer viewport-based height but cap to avoid huge pages on small screens */
    height: 75vh;
    max-height: 85vh;
    min-height: 420px;
}

@media (max-width: 1024px) {
    .jotform-embed iframe { height: 70vh; min-height: 520px; }
}

@media (max-width: 768px) {
    .jotform-embed { padding: 0 12px; }
    .jotform-embed iframe { height: 72vh; min-height: 520px; }
}

@media (max-width: 480px) {
    .jotform-embed iframe { height: 68vh; min-height: 420px; }
}

.embed-placeholder { background: var(--bg-dark-card); border-radius: 10px; color: var(--text-secondary); }
.embed-placeholder .btn { display: inline-block; margin-top: 8px; }

/* iframe loading overlay & spinner */
.iframe-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(250,250,250,0.8));
    z-index: 5;
}

.iframe-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 5px solid rgba(0,0,0,0.08);
    border-top-color: var(--accent, #4CAF50);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.jotform-embed { position: relative; }

.featured-article {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 45px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}

.featured-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.1);
}

.featured-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #e8f3ee;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.featured-article:hover .featured-image {
    transform: scale(1.06);
}

.featured-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(31, 143, 74, 0.95);
    color: #fff;
    padding: 7px 18px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.featured-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 16px;
}

.featured-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.article-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.article-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 47, 31, 0.65);
    backdrop-filter: blur(6px);
}
.article-modal-content {
    position: relative;
    background: var(--bg-dark-secondary);
    color: var(--text-primary);
    padding: 42px;
    max-width: 640px;
    width: 90%;
    border-radius: 22px;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-emerald);
    animation: modalIn 0.45s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.article-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.article-modal-close:hover {
    color: var(--primary);
}
@media (max-width: 992px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-image-wrapper {
        height: 300px;
    }

    .featured-content {
        padding: 34px;
    }
}

/* ============================================
   News Page Styles
   ============================================ */

.featured-news {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-secondary));
}

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

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-dark-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.featured-image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-image {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-emerald);
    color: var(--bg-white);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.featured-content {
    padding: 50px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.article-date, .article-category, .article-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-excerpt {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* News Filter */
.news-filter {
    padding: 60px 0;
    background: var(--bg-dark-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--bg-dark-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-emerald);
    color: var(--bg-white);
    border-color: var(--primary-emerald);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0 20px;
    min-width: 300px;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 12px 0;
    font-size: 0.875rem;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--bg-dark-hover);
    color: var(--primary-emerald);
}

/* News Grid */
.news-grid {
    padding: 80px 0;
    background: var(--bg-dark);
}

.news-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* MOBILE IMPROVEMENTS: Better spacing for news cards */
@media (max-width: 768px) {
    .news-articles {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 480px) {
    .news-articles {
        gap: 1.5rem;
    }
}

.news-card {
    background: var(--bg-dark-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-emerald);
}

.news-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-emerald);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 25px;
}

/* MOBILE IMPROVEMENTS: Adjust padding for mobile readability */
@media (max-width: 768px) {
    .news-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-content {
        padding: 1.25rem;
    }
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.news-date, .news-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

/* MOBILE IMPROVEMENTS: Better title sizing */
@media (max-width: 768px) {
    .news-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.35;
    }
}

@media (max-width: 480px) {
    .news-title {
        font-size: 1rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* MOBILE IMPROVEMENTS: Better spacing and readability */
@media (max-width: 768px) {
    .news-excerpt {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .news-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
}

.news-read-more {
    color: var(--primary-emerald);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.news-read-more:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.btn-load-more {
    padding: 15px 30px;
    background: var(--primary-emerald);
    color: var(--bg-white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--dark-emerald);
    transform: translateY(-2px);
    box-shadow: var(--glow-emerald);
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background: var(--bg-dark-secondary);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.newsletter-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 1rem;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    padding: 15px 30px;
    background: var(--primary-emerald);
    color: var(--bg-white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--dark-emerald);
    transform: translateY(-2px);
}

.newsletter-privacy {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-image-wrapper {
        height: 250px;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-title {
        font-size: 2rem;
    }

    .filter-controls {
        flex-direction: column;
        gap: 20px;
    }

    .search-box {
        min-width: 100%;
    }

    .news-articles {
        grid-template-columns: 1fr;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-btn {
        justify-content: center;
    }
}

/* Achievements Page Enhancements */
.achievement-stat {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(60,207,145,0.1), transparent);
    transition: left 0.5s ease;
}

.achievement-stat.animate::before {
    left: 100%;
}

.achievement-stat.animate .stat-number {
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Timeline Mobile Styles */
@media (max-width: 768px) {
    .timeline {
        padding: 20px 0;
    }

    .timeline-item {
        padding: 20px 0;
    }

    .timeline-content {
        padding: 20px;
        margin: 0 10px;
        border-radius: 12px;
    }

    .timeline-year {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .timeline-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .timeline-description {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Award Slider Mobile Optimization */
@media (max-width: 768px) {
    .award-slider {
        height: 200px;
    }

    .award-slider img {
        height: 180px;
        object-fit: cover;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }
}

/* Future Goals Mobile Grid */
@media (max-width: 768px) {
    .future-goals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .goal-card {
        padding: 20px;
    }

    .goal-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .goal-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .goal-description {
        font-size: 14px;
    }
}

/* MOBILE IMPROVEMENTS: Improve grid gaps for better visual separation */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .about-grid {
        gap: 1.75rem;
        padding: 0 0.5rem;
    }
}

/* ===============================
   MOBILE RESPONSIVE FIXES
   =============================== */
@media (max-width: 768px) {

    /* General layout fix */
    body {
        overflow-x: hidden;
    }

    section {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Featured Article */
    .featured-article {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .featured-image-wrapper {
        height: 220px;
    }

    .featured-content {
        padding: 24px 20px;
    }

    .featured-title {
        font-size: 1.6rem;
        line-height: 1.35;
    }

    .featured-excerpt {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* News Cards */
    .news-articles {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news-card {
        border-radius: 18px;
    }

    .news-image-wrapper {
        height: 220px;
    }

    .news-content {
        padding: 22px 20px;
    }

    .news-title {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .news-excerpt {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    /* Filters */
    .filter-controls {
        gap: 16px;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    /* Newsletter */
    .newsletter-title {
        font-size: 1.8rem;
    }

    .newsletter-description {
        font-size: 1rem;
    }

    .newsletter-input,
    .newsletter-btn {
        width: 100%;
    }
}

/* ===============================
   MAGIC MOBILE RESET
   =============================== */
@media (max-width: 768px) {

    /* 1️⃣ Reset any desktop scaling */
    html {
        font-size: 15px;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* 2️⃣ Force all grids to single column */
    [class*="grid"],
    [class*="columns"],
    .cards,
    .features,
    .services,
    .problem-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* 3️⃣ Force all cards to full width */
    .card,
    .feature-card,
    .service-card,
    .problem-card,
    .news-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    /* 4️⃣ Images behave correctly */
    img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* 5️⃣ Reduce visual density */
    section {
        padding: 40px 16px !important;
    }

    /* 6️⃣ Typography breathing space */
    h1 {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* 7️⃣ Fix feature cards (your screenshot) */
    .feature-card,
    .feature-box {
        min-height: auto !important;
        padding: 24px !important;
        text-align: left;
    }

    .feature-card img {
        width: 100%;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    /* 8️⃣ Navbar breathing */
    header,
    .navbar {
        padding: 14px 18px !important;
    }
}
@media (max-width: 768px) {

    .problem-stats {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        padding: 18px 20px;
        border-radius: 16px;
        font-size: 0.95rem;
    }

    /* ❌ Problems */
    .stat-item.problem {
        background: #2a2a2a;
        position: relative;
    }

    .stat-item.problem::before {
        content: "Problem";
        position: absolute;
        top: -10px;
        left: 16px;
        background: #444;
        color: #fff;
        font-size: 0.7rem;
        padding: 4px 10px;
        border-radius: 8px;
    }

    /* ✅ Solutions */
    .stat-item.solution {
        background: linear-gradient(135deg, #00a86b, #00c27a);
        color: #fff;
        font-weight: 600;
        position: relative;
    }

    .stat-item.solution::before {
        content: "Agrisky Solution";
        position: absolute;
        top: -10px;
        left: 16px;
        background: #006e45;
        color: #fff;
        font-size: 0.7rem;
        padding: 4px 10px;
        border-radius: 8px;
    }
}

