:root {
    --primary-color: #2e7d32; /* Green */
    --secondary-color: #0288d1; /* Blue */
    --accent-color: #81c784; /* Light Green */
    --text-color: #333;
    --bg-color: #f4f4f4;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Active Nav Link */
.nav-links a.active-section {
    color: var(--primary-color);
    font-weight: bold;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust based on your logo's aspect ratio */
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.lang-switch {
    margin-left: 2rem;
    font-weight: bold;
}

.lang-switch a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0 5px;
}

.lang-switch a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* RTL Support */
[dir="rtl"] body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Ensure font supports Arabic */
}

[dir="rtl"] .nav-links li {
    margin-left: 0;
    margin-right: 2rem;
}

[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 2rem;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .service-item,
[dir="rtl"] .goals-list,
[dir="rtl"] .contact-container {
    text-align: right;
}

[dir="rtl"] .goals-list li i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .social-links a {
    flex-direction: row; /* Keep icon next to text */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 80px 20px 0; /* Added top padding for fixed header */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.9); /* In case the image has transparency or needs pop */
    padding: 10px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: var(--bg-color);
}

/* Events Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 140px 2rem 80px;
}

.page-hero .container {
    text-align: left;
}

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

.hero-text {
    text-align: left;
}

.page-hero .lead-text {
    color: var(--white);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #d7f3dc;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-actions.centered {
    justify-content: center;
}

.ghost-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.ghost-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: rgba(46, 125, 50, 0.08);
}

.page-hero .ghost-button {
    border-color: var(--white);
    color: var(--white);
}

.page-hero .ghost-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
}

/* Sections */
.content-section {
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Cards (Mission/Vision) */
.cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Services Grid */
.alt-bg {
    background-color: #e8f5e9; /* Very light green */
}

.lead-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.goals-list {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.goals-list h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.goals-list ul {
    list-style: none;
}

.goals-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.goals-list li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

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

.service-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Events Slider */
.events-slider {
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.slides {
    position: relative;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.slide-caption {
    margin-top: 1rem;
    font-weight: 600;
    color: #555;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.slider-controls button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background-color 0.3s, transform 0.3s;
}

.slider-controls button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap;
    max-width: 280px;
    margin: 0 auto;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(46, 125, 50, 0.3);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    padding: 0;
}

.dot:hover {
    background: rgba(46, 125, 50, 0.6);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
    text-align: left;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-links-container {
    margin-top: 2rem;
}

.social-links-container h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a:hover {
    color: var(--primary-color);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

/* Mobile Burger */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav-links li {
        opacity: 0;
        margin: 2rem 0;
    }

    .burger {
        display: block;
    }

    .page-hero {
        padding: 120px 1.5rem 60px;
    }

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

    .slider-controls {
        flex-direction: column;
    }

    .slide img {
        max-height: 400px;
    }
}

.nav-active {
    transform: translateX(0%);
}

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

/* Team Section */
.team-section {
    margin-top: 3rem;
}

.team-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.team-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.team-card .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.team-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

[dir="rtl"] .team-card p {
    text-align: right;
}

/* ===== FEEDBACK WIDGET ===== */
.feedback-bubble {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.feedback-bubble i {
    color: white;
    font-size: 24px;
}

.feedback-bubble .bubble-tooltip {
    position: absolute;
    right: 70px;
    background: var(--text-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.feedback-bubble:hover .bubble-tooltip {
    opacity: 1;
}

[dir="rtl"] .feedback-bubble {
    right: auto;
    left: 30px;
}

[dir="rtl"] .feedback-bubble .bubble-tooltip {
    right: auto;
    left: 70px;
}

/* Feedback Modal */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feedback-modal.active {
    display: flex;
}

.feedback-dialog {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: feedbackSlideIn 0.3s ease;
}

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

.feedback-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.feedback-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.feedback-close:hover {
    opacity: 1;
}

.feedback-body {
    padding: 24px;
}

.feedback-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.feedback-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.feedback-tab.active {
    background: var(--primary-color);
    color: white;
}

.feedback-tab:hover:not(.active) {
    background: rgba(46, 125, 50, 0.1);
}

.feedback-form-group {
    margin-bottom: 16px;
}

.feedback-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-color);
}

.feedback-form-group input,
.feedback-form-group textarea,
.feedback-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.feedback-form-group input:focus,
.feedback-form-group textarea:focus,
.feedback-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.feedback-form-group small {
    color: #888;
    font-size: 12px;
}

.feedback-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feedback-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.feedback-success,
.feedback-track-result {
    text-align: center;
    padding: 20px 0;
}

.feedback-success i,
.feedback-track-result i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.feedback-success h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.tracking-id-display {
    background: #f5f5f5;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 16px 0;
    display: inline-block;
}

.feedback-hidden {
    display: none !important;
}

/* Honeypot field - hidden from humans, visible to bots */
.feedback-hp {
    position: absolute;
    left: -9999px;
}

@media (max-width: 768px) {
    .feedback-bubble {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .feedback-bubble i {
        font-size: 20px;
    }
    
    .feedback-dialog {
        max-height: 85vh;
    }
}
