/* Custom Styles - Bilingual Arabic/English with RTL Support */

/* Logo sizing */
.logo-img {
    max-width: 120px !important;
    max-height: 120px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Navbar brand styling */
.navbar-brand {
    font-weight: 600;
}

/* RTL/LTR Support */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Arabic font stack */
body[dir="rtl"] {
    font-family: 'Arial', 'Tahoma', 'Helvetica', sans-serif;
}

/* Language toggle button */
#langToggle {
    white-space: nowrap;
    min-width: 100px;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Content sections */
.content-section {
    padding: 4rem 0;
}

/* Card enhancements */
.card {
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-text {
    flex-grow: 1;
}

.row .card {
    height: 100%;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Image styling */
.img-fluid {
    max-height: 400px;
    object-fit: cover;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Active nav link */
.navbar-nav .nav-link.active {
    color: #6b9f78 !important;
    font-weight: 600;
}

/* RTL-specific adjustments */
[dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

/* LTR-specific adjustments */
[dir="ltr"] .navbar-nav {
    margin-left: auto;
    margin-right: 0;
}

[dir="ltr"] .ms-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="ltr"] .ms-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

/* Border adjustments for RTL */
[dir="rtl"] .border-bottom {
    border-bottom: 1px solid #dee2e6;
}

[dir="rtl"] .border-start {
    border-right: 1px solid #dee2e6;
    border-left: none;
}

[dir="rtl"] .border-end {
    border-left: 1px solid #dee2e6;
    border-right: none;
}

/* List styling for RTL */
[dir="rtl"] ol,
[dir="rtl"] ul {
    padding-right: 1.5rem;
    padding-left: 0;
}

[dir="ltr"] ol,
[dir="ltr"] ul {
    padding-left: 1.5rem;
    padding-right: 0;
}

/* Form styling */
.form-label {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-img {
        max-width: 100px !important;
        max-height: 100px !important;
    }
    
    .hero-section {
        min-height: 300px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    #langToggle {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Language content visibility */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Ensure proper text alignment */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

