/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-image {
    width: var(--logo-width, 60px);
    height: var(--logo-height, 60px);
    border-radius: 8px;
    object-fit: var(--logo-display-mode, contain);
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('../images/hero-bg.jpg') center/cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 2rem;
    text-decoration: underline;
    text-underline-offset: 8px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Jobs Section */
.jobs-section {
    padding: 4rem 0;
    background-color: white;
}

.jobs-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e3c72;
    position: relative;
}

.jobs-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ff6b6b;
    border-radius: 2px;
}

/* Filters */
.filters {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #1e3c72;
}

.filter-group select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    min-width: 200px;
}

.filter-btn {
    background-color: #1e3c72;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #2a5298;
    transform: translateY(-2px);
}

.clear-filters {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background-color: #ffe6e6;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding-top: 20px;
}

.job-card {
    background: white;
    border-radius: 12px;
    
    
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.job-card:hover {
    transform: translateY(-5px);
   
}

.job-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.job-meta span {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.job-description p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Rich Content Styling */
.job-description .rich-content {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.job-description .rich-content h2,
.job-description .rich-content h3,
.job-description .rich-content h4 {
    color: #1e3c72;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.job-description .rich-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 0.5rem;
}

.job-description .rich-content h3 {
    font-size: 1.3rem;
}

.job-description .rich-content h4 {
    font-size: 1.1rem;
}

.job-description .rich-content p {
    margin-bottom: 1rem;
}

.job-description .rich-content ul,
.job-description .rich-content ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.job-description .rich-content li {
    margin-bottom: 0.5rem;
}

.job-description .rich-content blockquote {
    border-right: 4px solid #ff6b6b;
    padding: 1rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #495057;
}

.job-description .rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.job-description .rich-content table th,
.job-description .rich-content table td {
    border: 1px solid #e9ecef;
    padding: 0.75rem;
    text-align: right;
}

.job-description .rich-content table th {
    background: #1e3c72;
    color: white;
    font-weight: 600;
}

.job-description .rich-content table tr:nth-child(even) {
    background: #f8f9fa;
}

.job-description .rich-content table tr:hover {
    background: #e9ecef;
}

.job-description .rich-content a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.job-description .rich-content a:hover {
    color: #ff5252;
    text-decoration: underline;
}

.job-description .rich-content strong,
.job-description .rich-content b {
    color: #1e3c72;
    font-weight: 600;
}

.job-description .rich-content em,
.job-description .rich-content i {
    color: #6c757d;
    font-style: italic;
}

.job-description .rich-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
}

.job-description .rich-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
    margin: 1rem 0;
}

.job-description .rich-content hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 2rem 0;
}

.job-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background-color: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: #1e3c72;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.company-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.company-info p {
    line-height: 1.8;
    color: #e9ecef;
}

.map-container iframe {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Job Details Page */
.job-details-section {
    padding: 4rem 0;
    background-color: white;
}

.job-details-container {
    max-width: 900px;
    margin: 0 auto;
}

.job-details-container .job-header {
    text-align: center;
    margin-bottom: 3rem;
}

.job-details-container .job-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.job-info-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-right: 4px solid #ff6b6b;
}

.info-section h3 {
    color: #1e3c72;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.info-table td:first-child {
    font-weight: 600;
    color: #1e3c72;
    width: 40%;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-right: 1.5rem;
}

.info-section li::before {
    content: '•';
    color: #ff6b6b;
    font-weight: bold;
    position: absolute;
    right: 0;
}

/* Application Form */
.application-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.application-container {
    max-width: 800px;
    margin: 0 auto;
}

.application-header {
    text-align: center;
    margin-bottom: 3rem;
}

.application-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.application-header h2 {
    font-size: 1.5rem;
    color: #ff6b6b;
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    color: #1e3c72;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.progress-bar {
    background-color: #e9ecef;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 2rem;
    position: relative;
}

.progress {
    background-color: #ff6b6b;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar span {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e3c72;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.checkbox-label {
    display: inline;
    margin-right: 0.5rem;
    font-weight: normal;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.alert-error {
    background-color: #ffe6e6;
    color: #d63031;
    border: 1px solid #ff7675;
}

.alert-success {
    background-color: #e6ffe6;
    color: #00b894;
    border: 1px solid #55a3ff;
}

.success-actions {
    text-align: center;
    margin-top: 2rem;
}

/* About Page Styles */
.about-section {
    padding: 4rem 0;
}

.about-content h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3c72;
    font-size: 2.5rem;
}

.company-intro,
.company-values,
.company-services,
.company-achievements {
    margin-bottom: 3rem;
}

.company-intro h2,
.company-values h2,
.company-services h2,
.company-achievements h2 {
    color: #2a5298;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

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

.value-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 3rem;
    color: #2a5298;
    margin-bottom: 1rem;
}

.value-item h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.company-services ul {
    list-style: none;
    padding: 0;
}

.company-services li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 2rem;
}

.company-services li:before {
    content: "✓";
    color: #00b894;
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

.achievement-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.achievement-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.achievement-text {
    color: #666;
    font-size: 1.1rem;
}

/* Contact Page Styles */
.contact-section {
    padding: 4rem 0;
}

.contact-content h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3c72;
    font-size: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2,
.contact-form h2 {
    color: #2a5298;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: #2a5298;
    margin-top: 0.25rem;
}

.contact-item h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #2a5298;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #1e3c72;
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-section {
    margin-top: 3rem;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2a5298;
    font-size: 1.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select {
        min-width: auto;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .job-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .jobs-section {
        padding: 2rem 0;
    }
    
    .job-card {
        padding: 1.5rem;
    }
    
    .form-step {
        padding: 1.5rem;
    }
}
