:root {
    /* Brand Colors */
    --color-primary: #006633;
    --color-primary-dark: #004d26;
    
    /* Secondary Colors (The Blue) */
    --color-secondary: #004E89;
    --color-secondary-dark: #1e3a8a;
    
    /* Neutrals */
    --color-bg-body: #ffffff;
    --color-bg-alt: #f1f5f9;
    --color-bg-card: #ffffff;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    
    /* Semantic Colors */
    --color-text: #334155;
    --color-text-muted: #64748b;
    --color-heading: #0f172a;
    --color-accent: #006633;
    
    /* Spacing & Layout - Generous whitespace */
    --container-width: 1200px;
    --spacing-xs: 0.75rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 4rem;
    --spacing-xl: 7rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;              
    --radius-full: 9999px;
    
    /* Elegant Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 991px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 100%;
        --spacing-md: 2rem;
    }
}

body {
    font-family: 'Cairo', 'Inter', system-ui, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg-body);
    min-height: 100vh;
    line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    color: var(--color-heading);
}

h1 { font-size: 2.5rem; letter-spacing: -1px; }
h2 { font-size: 1.5rem; letter-spacing: -0.5px; }
h3 { font-size: 1.25rem; }

/* Responsive Text */
@media (max-width: 991px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--color-primary); }

/* Layout Helpers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

.row { display: flex; flex-wrap: wrap; margin: 0 -20px; }
.col { padding: 0 20px; flex: 1; }

/* Sections - Generous vertical rhythm */
.section { 
    padding: var(--spacing-lg) 0; 
    position: relative; 
}

.section-bg {
    background-color: var(--color-bg-alt);
}

/* Section Headers */
.section-header {
    margin-bottom: var(--spacing-md);
}

section:nth-child(even) { background-color: var(--color-bg-card); }
section:nth-child(odd) { background-color: transparent; }

/* Section Titles */
.section-title { 
    text-align: center; 
    margin-bottom: 1rem;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    color: var(--color-secondary-dark);
    font-size: 2.75rem;
}

/* Minimalist Divider */
.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    margin: 20px auto 0;
    border-radius: var(--radius-full);
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--color-primary);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 102, 51, 0.3);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 102, 51, 0.4);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-secondary-dark);
    border: 2px solid var(--color-border);
}
.btn-secondary:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.card, .structure-card, .form-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hover Effect */
.structure-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-primary);
}

.card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255, 0.95);
    color: var(--color-secondary-dark);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

[dir="rtl"] .card-category {
    right: auto;
    left: 20px;
}

.card-content {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.structure-card h3 {
    font-size: 1.5rem;
    color: var(--color-secondary-dark);
    margin-bottom: 15px;
}

.structure-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Read More Link */
.btn-text {
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-top: auto;
}
.btn-text:hover {
    gap: 12px;
    color: var(--color-primary-dark);
}

/* Stats Section */
.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.stat-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 10px;
}
.stat-label {
    font-size: 1.1rem;
    color: var(--color-secondary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav Menu Adjustment */
.nav-menu {
    gap: 40px;
}
.nav-list a {
    font-weight: 600;
    color: var(--color-secondary-dark);
    font-size: 1.05rem;
}
.nav-list a:hover {
    color: var(--color-primary);
}

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #e2e8f0;
    padding-top: 80px;
    padding-bottom: 30px;
    border-top: 5px solid var(--color-primary);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
    align-items: start;
}

.footer-logo { 
    margin-bottom: 20px; 
    max-width: 100px;
    max-height: 110px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;

}

/* Footer Headings */
.footer-col h3 { 
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    padding-top: 0;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
}

/* Links List */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { 
    margin-bottom: 10px; 
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a { 
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 0.75rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.footer-links a:hover { 
    color: #ffffff; 
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Contact Info */
.footer-contact-info {
    margin-top: 0;
}

.contact-item {
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item span {
    flex: 1;
    word-break: break-word;
    text-align: left;
}

.contact-item i {
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--color-primary);
    width: 18px;
    text-align: center;
}

.contact-item .label {
    display: none;
}

.brand-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Social Icons */
.social-links-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
    align-items: flex-start;
}

.social-links-footer a {
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.social-links-footer a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Ensure all footer columns have consistent spacing */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Make all columns start at the same vertical position */
.footer-col > *:first-child {
    margin-top: 0;
}

/* Brand column specific adjustments - align logo with headings */
.brand-col .footer-logo {
    margin-top: 0;
    margin-bottom: 20px;
}

.brand-col .footer-contact-info {
    margin-top: 0;
    padding-top: 0;
}

/* Ensure consistent top alignment */
.footer-col h3 {
    margin-top: 0;
    padding-top: 0;
}

/* Balance column heights by limiting contact info height */
.footer-contact-info {
    max-height: none;
}

/* RTL Support for footer */
[dir="rtl"] .footer-col h3::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .contact-item i {
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .contact-item span {
    text-align: right;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-logo {
        max-width: 100px;
        max-height: 60px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-col h3 {
        margin-bottom: 20px;
    }
    
    .footer-logo {
        max-width: 100px;
        max-height: 60px;
    }
    
    .contact-item {
        margin-bottom: 8px;
    }
}

/* Responsive */
.section-badge {
    display: inline-block;
    background: rgba(0, 102, 51, 0.1);
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.presentation-image-wrapper {
    position: relative;
    padding: 10px;
}
.presentation-image-wrapper img {
    border: 5px solid white;
    box-shadow: var(--shadow-hover);
    transform: rotate(2deg);
    transition: var(--transition);
}
.presentation-image-wrapper:hover img {
    transform: rotate(0);
}

/* Contact Card */
.contact-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    padding: 3rem;
    text-align: center;
}
.contact-card:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 45px; height: 45px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}
.social-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* Stats Strip (Main Page) */
.stats-strip {
    padding: 3rem 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.stat-card {
    background: var(--color-bg-card);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--color-secondary);
}
.stat-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-md); 
    border-color: var(--color-primary);
}


/* Map Containers */
.map-container {
    height: 450px;
    width: 100%;
}
.map-container iframe {
    width: 100%; height: 100%; border: 0;
}

/* Utility Classes */
.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

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

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

.lead {
    font-size: 1.125rem;
    line-height: 1.75;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

/* Standard Hero Section */
.standard-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.standard-hero .hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.standard-hero .hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 102, 51, 0.85), rgba(0, 78, 137, 0.85));
  z-index: 2;
}

.standard-hero .hero-content-wrapper {
  position: relative;
  z-index: 3;
  padding: 80px 0;
  text-align: center;
}

.standard-hero .hero-text-content {
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.standard-hero .hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.standard-hero .hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-indicator i {
  font-size: 1.5rem;
  color: white;
  opacity: 0.8;
}

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

@media (max-width: 991px) {
  .standard-hero { min-height: 40vh; }
  .standard-hero .hero-title { font-size: 2.75rem; }
}

@media (max-width: 768px) {
  .standard-hero { min-height: 30vh; }
  .standard-hero .hero-title { font-size: 2.25rem; }
  .standard-hero .hero-subtitle { font-size: 1.1rem; }
}

.bg-white {
    background-color: #ffffff;
}

.bg-light {
    background-color: var(--color-bg-alt);
}

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

.text-content {
    padding: 2rem;
}

.hero-bg-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Image Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded {
    border-radius: var(--radius-md);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Page Header */
.page-header {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.page-header .header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.page-header .header-content h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 0;
}

@media (max-width: 768px) {
    .page-header {
        height: 300px;
        min-height: 250px;
    }
    
    .page-header .header-content h1 {
        font-size: 2rem;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

/* Badge Component */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-secondary-dark);
    box-shadow: var(--shadow-sm);
}

/* Check List Grid */
.check-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list-grid li {
    position: relative;
    padding: 15px 15px 15px 50px; 
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    color: var(--color-text);
    font-weight: 500;
}

[dir="rtl"] .check-list-grid li {
    padding-left: 15px;
    padding-right: 50px; 
}

.check-list-grid li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

[dir="rtl"] .check-list-grid li::before {
    left: auto;
    right: 15px;
}

.check-list-grid li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    background: var(--color-bg-card);
}
