/* Variables & Reset */
:root {
    --primary-color: #004e92;
    --secondary-color: #f5a623;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --white: #fff;
    --gray: #666;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-consultation {
    padding: 12px 35px;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 78, 146, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 12px 30px;
    border: 2px solid var(--white);
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 8px 0;
    /* تقليل الـ padding لتصغير الارتفاع */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-img {
    height: 60px;
    /* تقليل حجم اللوجو */
    width: auto;
    object-fit: contain;
}



/* Language Switcher */
.lang-switcher {
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    padding: 5px 15px;
    margin-left: 10px;
    font-weight: bold;
    color: var(--primary-color);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.lang-switcher:hover {
    background: var(--secondary-color);
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    /* زيادة الارتفاع */
    padding-top: 80px;
    /* مساحة للـ navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fallback for transparency */
    background: linear-gradient(135deg, rgba(0, 78, 146, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: right;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Text Animations */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-3 {
    animation-delay: 0.9s;
}

/* Hero Search and Filter */
.hero-search-filter {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.hero-search-filter .search-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.hero-search-filter .search-input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: none;
    border-radius: 50px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-search-filter .search-input:focus {
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    outline: none;
    transform: translateY(-2px);
}

.hero-search-filter .search-input::placeholder {
    color: #999;
}

.hero-search-filter .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.3rem;
    pointer-events: none;
}

.hero-search-filter .filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-search-filter .filter-btn {
    display: inline-block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-search-filter .filter-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-search-filter .filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
    transform: translateY(-2px);
}

/* Trust Bar */
.trust-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

.trust-bar .container.bg-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 20px;
    color: var(--white);
    border-radius: 10px 10px 0 0;
}

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

.trust-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.trust-item h3 {
    font-size: 1.5rem;
    line-height: 1;
}

.trust-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Section Common */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.line {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img img {
    transform: scale(1.1);
}

.icon-box {
    position: absolute;
    bottom: -25px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(245, 166, 35, 0.4);
}

.card-body {
    padding: 40px 25px 25px;
}

.card-body h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.card-body p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* About Peek */
.about-peek {
    background: #f1f4f8;
}

.about-peek .row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.col-text,
.col-img {
    flex: 1;
}

.features-list {
    margin: 25px 0;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.features-list li i {
    color: var(--secondary-color);
}

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-wrapper img {
    width: 100%;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--white) !important;
    display: block;
    margin-bottom: 20px;
}

.footer-info p {
    color: #999;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-links a {
    color: #999;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.footer-contact p {
    color: #999;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #003366;
}

/* Responsive */
/* Responsive Improvements */
@media (max-width: 1025px) {

    .navbar .container {
        flex-wrap: wrap;
        width: 100%;
    }
}

/* Global Responsive Adjustments */
@media (max-width: 991px) {

    /* Navbar Tweaks */
    .logo-link {
        order: 1;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
        /* Logic handled in previous step, kept for consistency */
    }

    /* Directional margin for menu button */
    html[dir="rtl"] .mobile-menu-btn {
        margin-right: auto;
        margin-left: 0;
    }

    html[dir="ltr"] .mobile-menu-btn {
        margin-left: auto;
        margin-right: 0;
    }

    .nav-search {
        display: none !important;
    }

    .nav-links,
    .nav-actions {
        display: none;
        width: 100%;
    }

    /* Active Navbar State */
    .navbar.active .nav-links {
        display: flex;
        flex-direction: column;
        order: 3;
        text-align: center;
        padding: 20px 0;
        border-top: 1px solid #eee;
        gap: 15px;
        /* Add breathing room */
    }

    .navbar.active .nav-actions {
        display: flex;
        justify-content: center;
        order: 4;
        padding-bottom: 20px;
        gap: 15px;
    }

    /* Hero Text Scaling */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* About Section */
    .about-peek .row {
        flex-direction: column;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* General Layout */
    .section-padding {
        padding: 40px 0;
    }

    /* Reduce whitesapce */

    /* Typography */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Grids to Single Column on Mobile */
    .services-grid,
    .stats-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 20px;
    }

    /* Trust Bar Stack */
    .trust-bar .container.bg-glass {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 15px;
    }

    .trust-item {
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    .trust-item:last-child {
        border-bottom: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info p,
    .footer-contact p {
        justify-content: center;
    }

    .footer-links ul {
        padding: 0;
    }

    /* Contact Form */
    .contact-grid {
        gap: 30px;
    }

    /* Hero Buttons */
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns button {
        width: 100%;
        justify-content: center;
    }

    /* Hero Search and Filter Responsive */
    .hero-search-filter {
        margin: 30px auto 20px;
        gap: 15px;
    }

    .hero-search-filter .search-input {
        padding: 15px 45px 15px 15px;
        font-size: 1rem;
    }

    .hero-search-filter .search-icon {
        right: 15px;
        font-size: 1.1rem;
    }

    .hero-search-filter .filter-buttons {
        gap: 8px;
    }

    .hero-search-filter .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {

    /* Very Small Screens */
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    /* Ensure cards don't overflow */
    .service-card .card-img {
        height: 180px;
    }

    /* Modal adjustment */
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    /* Hero Search and Filter for Very Small Screens */
    .hero-search-filter .search-input {
        padding: 14px 40px 14px 12px;
        font-size: 0.9rem;
    }

    .hero-search-filter .filter-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
}

/* Fix for Grid Min-Widths causing horizontal scroll */
.services-grid {
    /* Replace fixed 300px min with something smaller or purely responsive */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Contact Info Item Mobile Fix */
.info-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

/* RTL specific */
html[dir="rtl"] .info-item {
    text-align: right;
    align-items: flex-start;
}

html[dir="ltr"] .info-item {
    text-align: left;
    align-items: flex-start;
}

/* Ensure icons on top for info items on mobile */
@media (max-width: 768px) {
    .info-item {
        flex-direction: row;
        align-items: center;
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(-5px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: rgba(245, 166, 35, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-whatsapp i {
    font-size: 1.4rem;
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 10px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Internal Pages Header */
.page-header {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
    /* Navbar height compensation */
}

.page-header .content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Programs Grid & Cards */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

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

.program-card .card-img {
    height: 220px;
    position: relative;
}

.program-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.badge-secondary {
    background: var(--primary-color);
}

.program-card .card-body {
    padding: 25px;
    text-align: right;
}

.program-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.program-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Large Modal for Details */
.large-modal {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-body-content ul {
    list-style: none;
    margin-top: 10px;
}

.modal-body-content ul li {
    margin-bottom: 10px;
    padding-right: 25px;
    position: relative;
}

/* Jobs Page */
.job-category {
    margin-bottom: 50px;
}

.job-category h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: var(--dark-color);
}

/* Modern Search and Filters */
.filter-container {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    margin: 0 auto 50px;
    /* Center and add value */
    max-width: 900px;
    /* Limit width for cleaner look */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    border: 1px solid #f0f0f0;
    position: relative;
    top: -30px;
    /* Overlap with header slightly for depth */
}

.search-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #eee;
    border-radius: 50px;
    /* Full rounded pill */
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.search-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 5px rgba(255, 193, 7, 0.1);
    outline: none;
    background: #fff;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.2rem;
    pointer-events: none;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.filter-btn:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    /* or dark depending on contrast, usually black on yellow */
    color: var(--dark-color);
    /* ensuring readability on yellow */
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* شاشات صغيرة (موبايل) */
@media (max-width: 640px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filter-container {
        padding: 20px;
        margin-bottom: 30px;
        top: 0;
        /* Reset overlap on mobile */
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        flex: 1 1 auto;
        /* Grow to fill space */
        text-align: center;
    }
}

.job-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.job-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.job-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.job-info p {
    color: var(--gray);
    max-width: 600px;
}

/* File Upload Style */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 50px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    background: #f9f9f9;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    color: var(--gray);
    pointer-events: none;
}

.file-upload-text i {
    margin-left: 5px;
}

/* Services Catalog */
.catalog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.catalog-img {
    height: 180px;
    overflow: hidden;
}

.catalog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.catalog-card:hover .catalog-img img {
    transform: scale(1.1);
}

.catalog-body {
    padding: 20px;
}

.catalog-body h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tech-specs {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 4px;
    display: inline-block;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.vision-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid #eee;
    transition: var(--transition);
}

.vision-card:hover {
    transform: translateY(-10px);
}

.vision-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.vision-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Stats Section */
.stats-section {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

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

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Certificates */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.cert-item img {
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.cert-item img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Trip Details Page */
.trip-header {
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0 80px;
    position: relative;
    /* Behind transparent navbar */
    height: 60vh;
    min-height: 400px;
    background-position: center;

    color: var(--white);
    margin-top: 70px;
}

.trip-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.trip-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.trip-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.trip-rating {
    color: #ffc107;
    font-size: 1.2rem;
}

.trip-price-tag {
    text-align: left;
}

.create-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.per-person {
    font-size: 1rem;
    opacity: 0.8;
}

/* Trip Layout */
.trip-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 50px 0;
}

/* Gallery */
.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.gallery-thumbs img.active,
.gallery-thumbs img:hover {
    opacity: 1;
    border: 2px solid var(--secondary-color);
}

/* Content Sections */
.trip-section {
    margin-bottom: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.trip-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.trip-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.trip-features ul li i {
    color: #25D366;
    margin-left: 10px;
}

.trip-features.excludes ul li i {
    color: #dc3545;
}

/* Booking Widget Sidebar */
.booking-widget {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.booking-header {
    background: var(--dark-color);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.booking-body {
    padding: 20px;
}

/* Booking Widget Sidebar */
.booking-widget {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.booking-widget:hover {
    transform: translateY(-5px);
}

.booking-header {
    background: #2c3e50;
    /* Professional Dark Blue/Grey */
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.booking-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.booking-body {
    padding: 25px;
}

.booking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.booking-row.date-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.booking-row label {
    font-weight: bold;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Tajawal', sans-serif;
}

.booking-label h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.price-hint {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2px;
    border: 1px solid #eee;
}

.qty-btn {
    width: 35px;
    height: 35px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.total-section {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border: 2px dashed #eee;
}

.total-label {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
}

.total-amount {
    font-size: 1.6rem;
    color: #0d6efd;
    font-weight: 800;
}

.btn-book-now {
    width: 100%;
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.secure-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

@media (max-width: 992px) {
    .trip-layout {
        grid-template-columns: 1fr;
    }

    .booking-widget {
        position: static;
    }
}

/* Professional Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Fixed on Scroll */
.navbar.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    animation: slideDown 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.navbar.scrolled .nav-links li a {
    color: var(--dark-color);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Video Section / Factory Tour */
.factory-tour {
    position: relative;
    padding: 80px 0;
    background: #000;
    color: #fff;
    overflow: hidden;
    text-align: center;
}

.factory-tour .video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.factory-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.factory-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.factory-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-play-video {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto;
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.btn-play-video:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 193, 7, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Footer Fix */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
    border-top: 5px solid var(--secondary-color);
    margin-top: auto;
}

/* Recruitment CTA Section */
.recruitment-cta {
    background-image: url('../images/hero_bg_1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
    text-align: center;
}

.recruitment-cta .overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 78, 146, 0.95) 0%, rgba(51, 51, 51, 0.85) 100%);
}

.recruitment-cta .relative-z {
    position: relative;
    z-index: 2;
}

.recruitment-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 800;
}

.recruitment-cta p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

    .cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-btns .btn-primary,
    .cta-btns .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}