/* Base Styles */
:root {
    --primary-color: #ff7f27;
    --secondary-color: #f8f8f8;
    --dark-color: #333;
    --light-color: #fff;
    --gray-color: #f4f4f4;
    --border-color: #ddd;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    line-height: 1.3;
}

section {
    padding: 60px 0;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #e06a1b;
    transform: translateY(-3px);
}

/* Header */
header {
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.lang-switch {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 5px 10px;
    border-radius: 4px;
}

.lang-switch:hover {
    background-color: #e06a1b;
    color: var(--light-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 127, 39, 0.9), rgba(255, 127, 39, 0.7)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    text-align: center;
    padding: 120px 0 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Enhanced Service Cards in Hero Section */
.service-card {
    background-color: rgba(255, 255, 255, 0.95); /* More opaque white background */
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Darker text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 2.2rem; /* Slightly larger icons */
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600; /* Semi-bold for better visibility */
}

/* About Section */
.about {
    background-color: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.values-list {
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.value-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Vision & Mission */
.vision-mission {
    text-align: center;
}

.vision-mission h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
}

.vm-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.vm-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.vm-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Services Section */
.services {
    background-color: var(--secondary-color);
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-box h3 {
    margin-bottom: 15px;
}


/* Responsive adjustments for the map */
@media (min-width: 992px) {
    .coverage-map {
        max-width: 50%; /* Reduced from 80% to 50% */
    }
}

@media (min-width: 1200px) {
    .coverage-map {
        max-width: 40%; /* Reduced from 70% to 40% */
    }
}

@media (max-width: 768px) {
    .coverage-map {
        max-width: 80%; /* Reduced from 95% to 80% */
    }
}

/* Goals Section Enhancements - Fixed Font Colors */
.goals {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
}

.goals h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #ffffff; /* Ensure heading is white */
    font-weight: 700; /* Make heading bolder */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Add shadow for better contrast */
}

.goals-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.goal-card {
    background-color: #ffffff; /* Change to solid white background */
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background-color: #ffffff; /* Keep white background on hover */
}

.goal-card img {
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.goal-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color); /* Change to primary color (orange) */
    font-weight: 600;
    font-size: 1.3rem;
}

.goal-card p {
    color: #333333; /* Dark text for better readability */
    line-height: 1.6;
    font-size: 1rem;
}

/* Add a subtle border to goal cards for better definition */
.goal-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhance goal card hover effect with a subtle glow */
.goal-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact {
    background-color: var(--secondary-color);
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    margin-bottom: 5px;
}

.map {
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: #222;
    color: var(--light-color);
    padding: 40px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
    /* Filter to make logo white */
    filter: brightness(0) invert(1);
}

.footer-links h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Enhance RTL Support */
/* Language-specific font optimizations */
html[lang="ar"] body {
    font-family: 'Shubbak W05', Arial, sans-serif;
    letter-spacing: 0;
}

html[lang="en"] body {
    font-family: 'Shubbak W05', Arial, sans-serif;
    letter-spacing: 0.2px;
}

/* RTL specific adjustments */
.rtl {
    font-family: 'Shubbak W05', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.rtl nav ul li {
    margin-left: 0;
    margin-right: 20px;
}

.rtl .value-item i,
.rtl .contact-item i,
.rtl .info-item i {
    margin-right: 0;
    margin-left: 15px;
}

.rtl .service-card,
.rtl .goal-card,
.rtl .vm-card {
    text-align: right;
}

/* Improve Card Styling */
.service-card, 
.goal-card, 
.vm-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, 
.goal-card:hover, 
.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Enhanced Responsive Design */
@media (max-width: 992px) {
    .services-grid,
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-content,
    .vm-cards,
    .contact-container,
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .services-grid,
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--box-shadow);
        z-index: 100;
    }
    
    .rtl nav ul {
        left: auto;
        right: 0;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .rtl nav ul li {
        margin: 10px 0;
    }
    
    .footer-links,
    .footer-logo {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .service-highlights {
        grid-template-columns: 1fr;
    }
    
    .footer-logo img {
        height: 45px;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Vision 2030 Logo Styling */
.vision-logo {
    text-align: center;
    margin-top: 15px;
}

.vision2030-logo {
    height: 60px;
    width: auto;
    margin: 0 auto;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .vision2030-logo {
        height: 50px;
    }
}

/* Enhanced Text Colors */
body {
    color: #333333; /* Darker base text color for better readability */
}

h1, h2, h3, h4 {
    color: #222222; /* Even darker headings for emphasis */
}

/* Primary color text for emphasis */
.primary-text, 
.footer-links h3,
.contact-item h3 {
    color: var(--primary-color);
}

/* Light text on dark backgrounds */
.hero, 
.goals,
footer {
    color: #ffffff;
}

/* Service cards on orange background need darker text */
.hero .service-card h3 {
    color: #333333; /* Darker text for better contrast on light cards */
    font-weight: 600; /* Make slightly bolder */
}

/* Enhanced Link Colors */
a {
    color: #333333;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.btn {
    color: #ffffff;
    font-weight: 600;
}

nav ul li a {
    color: #333333;
    font-weight: 600;
}

nav ul li a:hover,
.footer-links ul li a:hover {
    color: var(--primary-color);
}

.lang-switch {
    color: #ffffff;
    font-weight: 600;
}

/* Enhanced Footer Colors */
footer {
    background-color: #222222;
    color: #e0e0e0; /* Light gray instead of pure white for less eye strain */
}

.footer-links h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-links ul li a {
    color: #e0e0e0;
}

.footer-links ul li i {
    color: var(--primary-color);
}

.copyright {
    color: #b0b0b0; /* Slightly muted copyright text */
}

/* Enhance RTL Support */
/* Language-specific font optimizations */
html[lang="ar"] body {
    font-family: 'Shubbak W05', Arial, sans-serif;
    letter-spacing: 0;
}

html[lang="en"] body {
    font-family: 'Shubbak W05', Arial, sans-serif;
    letter-spacing: 0.2px;
}

/* RTL specific adjustments */
.rtl {
    font-family: 'Shubbak W05', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.rtl nav ul li {
    margin-left: 0;
    margin-right: 20px;
}

.rtl .value-item i,
.rtl .contact-item i,
.rtl .info-item i {
    margin-right: 0;
    margin-left: 15px;
}

.rtl .service-card,
.rtl .goal-card,
.rtl .vm-card {
    text-align: right;
}

/* Improve Card Styling */
.service-card, 
.goal-card, 
.vm-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, 
.goal-card:hover, 
.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Enhanced Responsive Design */
@media (max-width: 992px) {
    .services-grid,
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-content,
    .vm-cards,
    .contact-container,
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .services-grid,
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--box-shadow);
        z-index: 100;
    }
    
    .rtl nav ul {
        left: auto;
        right: 0;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .rtl nav ul li {
        margin: 10px 0;
    }
    
    .footer-links,
    .footer-logo {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .service-highlights {
        grid-template-columns: 1fr;
    }
    
    .footer-logo img {
        height: 45px;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Vision 2030 Logo Styling */
.vision-logo {
    text-align: center;
    margin-top: 15px;
}

.vision2030-logo {
    height: 60px;
    width: auto;
    margin: 0 auto;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .vision2030-logo {
        height: 50px;
    }
}
