/* RTL Support and General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
}

/* Header Styles */
.header-section {
    background-image: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h2 {
    color: #333;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: #007bff;
    color: #fff !important;
}

/* Showcase Section */
.showcase-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.showcase-section h1 {
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.showcase-section .lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Page Header */
.page-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* color: white; */
    background-image: url(/carbg.png);
    background-size: cover;
    background-repeat: no-repeat;
    max-height:600p ;
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Team Section */
.team-section {
    background-color: #f8f9fa;
}

.section-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.team-card .card-image {
    height: 250px;
    overflow: hidden;
}

.team-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card:hover .card-img-top {
    transform: scale(1.05);
}

.team-card .card-body {
    padding: 1.5rem;
}

.team-card .card-title {
    color: #333;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.team-card .card-subtitle {
    color: #007bff;
    font-weight: 500;
}

.team-card .card-text {
    color: #666;
    line-height: 1.6;
}

/* Content Boxes for About Page */
.content-section {
    background-color: #f8f9fa;
}

.content-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    height: 100%;
    overflow: hidden;
}

.content-header {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.content-header h3 {
    margin: 0;
    color: #333;
    font-weight: bold;
}

.content-body {
    padding: 1.5rem;
}

.content-body p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-body ul li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Stats */
.stats-row {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.stat-item h4 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-item small {
    color: #666;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
}

.contact-info,
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    height: 100%;
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.contact-icon i {
    font-size: 1.2rem;
}

.contact-details h5 {
    color: #333;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #666;
    margin: 0;
}

/* Form Styles */
.form-label {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Footer */
.footer-section {
    background-color: #333 !important;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .showcase-section {
        padding: 60px 0;
    }
    
    .showcase-section h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .content-box,
    .contact-info,
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .team-card .card-image {
        height: 200px;
    }
}

/* RTL Specific Adjustments */
.navbar-toggler {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.contact-icon {
    margin-right: 1rem;
    margin-left: 0;
}

/* Animation for smooth page transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */:root {
  --jumbotron-padding-y: 3rem;
}

.jumbotron {
  padding-top: var(--jumbotron-padding-y);
  padding-bottom: var(--jumbotron-padding-y);
  margin-bottom: 0;
  background-color: #fff;
}
@media (min-width: 768px) {
  .jumbotron {
    padding-top: calc(var(--jumbotron-padding-y) * 2);
    padding-bottom: calc(var(--jumbotron-padding-y) * 2);
  }
}

.jumbotron p:last-child {
  margin-bottom: 0;
}

.jumbotron-heading {
  font-weight: 300;
}

.jumbotron .container {
  max-width: 40rem;
}

footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

footer p {
  margin-bottom: .25rem;
}

.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); }

@media print {
    .header-section,
    .footer-section {
        display: none;
    }
    
    .showcase-section {
        background: none !important;
        color: #333 !important;
    }
    
    .team-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}
