/* Global Styles */
:root {
    --primary-color: #1a3a6e;
    --secondary-color: #f8b400;
    --text-color: #333;
    --light-text: #777;
    --bg-color: #f9f9f9;
    --white: #fff;
    --black: #000;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
}

.section-header p {
    color: var(--light-text);
    font-size: 18px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--black);
    transform: translateY(-3px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader .logo-loader {
    width: 200px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
    display: flex;
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.lang-toggle button {
    padding: 5px 10px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}

.lang-toggle button.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    padding: 20px 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

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

.navbar .logo {
    width: 150px;
}

.navbar .logo img {
    width: 100%;
    height: auto;
}

.navbar .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.navbar .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar .nav-links {
    display: flex;
    list-style: none;
}

.navbar .nav-links li {
    margin-right: 30px;
}

.navbar .nav-links li:last-child {
  /*  margin-right: 0; */
}

.navbar .nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* Hero Slider */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 70px;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-slider .swiper-slide.slide-1 {
    background-image: url('../images/slide1.jpg');
}

.hero-slider .swiper-slide.slide-2 {
    background-image: url('../images/slide2.jpg');
}

.hero-slider .swiper-slide.slide-3 {
    background-image: url('../images/slide3.jpg');
}

.hero-slider .container {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: right;
}

.hero-slider h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-slider p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-slider .btn {
    background-color: var(--secondary-color);
    color: var(--black);
}

.hero-slider .btn:hover {
    background-color: var(--white);
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--white);
    opacity: 0.7;
}

.hero-slider .swiper-pagination-bullet-active {
    background-color: var(--secondary-color);
    opacity: 1;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: var(--white);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background-color: var(--secondary-color);
    color: var(--black);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.mission-vision {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.mission, .vision {
    flex: 1;
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mission h3, .vision h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
    position: relative;
    padding-bottom: 10px;
}

.mission h3::after, .vision h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    right: 0;
}

.vision ul {
    list-style: none;
}

.vision ul li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 20px;
}

.vision ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 3px;
    color: var(--secondary-color);
}

/* Why Choose Us */
.why-choose {
    background-color: var(--white);
}

.features {
    display: flex;
    gap: 30px;
}

.feature {
    flex: 1;
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-color);
    border-radius: 10px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    transition: var(--transition);
}

.feature:hover .icon {
    background-color: var(--secondary-color);
    color: var(--black);
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature p {
    color: var(--light-text);
    line-height: 1.8;
}

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

.service {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

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

.service .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: var(--bg-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    transition: var(--transition);
}

.service:hover .service-icon {
    background-color: var(--secondary-color);
    color: var(--black);
}

.service h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service p {
    color: var(--light-text);
    line-height: 1.8;
}

/* Activities Section */
.activities {
    background-color: var(--white);
}

.activities-tabs {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tabs-header {
    display: flex;
    background-color: var(--primary-color);
}

.tab-header {
    padding: 15px 25px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    flex: 1;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.tab-header.active {
    background-color: var(--secondary-color);
    color: var(--black);
    border-bottom-color: var(--black);
}

.tab-header:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

.tabs-content {
    background-color: var(--white);
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: flex;
    gap: 50px;
    align-items: center;
}

.content-text {
    flex: 1;
}

.content-text h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.content-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
/* Update the gallery overlay styles */
.gallery-item .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 58, 110, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay h3 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: var(--transition);
    width: 100%;
}

.gallery-item .overlay a {
    color: var(--white);
    font-size: 30px;
    transform: translateY(20px);
    transition: var(--transition);
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.gallery-item:hover .overlay h3,
.gallery-item:hover .overlay a {
    transform: translateY(0);
}

.gallery-item .overlay a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Certificates Section */
.certificates {
    background-color: var(--white);
}

.cert-slider {
    padding: 20px;
}

.certificate {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.certificate:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certificate img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.cert-info {
    padding: 20px;
    text-align: center;
}

.cert-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cert-info p {
    color: var(--light-text);
}

.cert-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--light-text);
    opacity: 0.7;
}

.cert-slider .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item .icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-left: 20px;
    flex-shrink: 0;
}

.info-item .text h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-item .text p {
    color: var(--light-text);
    line-height: 1.8;
    direction: ltr;
    text-align: right;
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

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

.form-group textarea {
    height: 150px;
    resize: none;
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    width: 180px;
    margin-bottom: 20px;
}

.footer-logo p {
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--black);
}

.footer-links, .footer-services {
    flex: 1;
    min-width: 200px;
}

.footer h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    right: 0;
}

.footer ul {
    list-style: none;
}

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

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--white);
    padding-right: 5px;
}

.footer-newsletter {
    flex: 1;
    min-width: 300px;
    display: none;
}

.footer-newsletter p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
}

.footer-newsletter button {
    width: 50px;
    background-color: var(--secondary-color);
    color: var(--black);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: var(--white);
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--black);
}

/* Animations */
[data-aos] {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
    opacity: 0;
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
    opacity: 0;
}

[data-aos="fade-right"] {
    transform: translateX(30px);
    opacity: 0;
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
    opacity: 0;
}

[data-aos].aos-animate {
    transform: translate(0) scale(1);
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contact-content,
    .tab-content.active {
        flex-direction: column;
    }

    .mission-vision {
        flex-direction: column;
    }

    .features {
        flex-wrap: wrap;
    }

    .feature {
        min-width: calc(50% - 15px);
    }

    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .navbar .menu-toggle {
        display: flex;
    }

    .navbar .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .navbar .nav-links.active {
        right: 0;
    }

    .navbar .nav-links li {
        margin: 0 0 25px 0;
    }

    .hero-slider h1 {
        font-size: 36px;
    }

    .hero-slider p {
        font-size: 18px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        min-width: 100%;
    }

    .tabs-header {
        flex-wrap: wrap;
    }

    .tab-header {
        min-width: 50%;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .hero-slider h1 {
        font-size: 28px;
    }

    .hero-slider p {
        font-size: 16px;
    }

    .tab-header {
        min-width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .tab-content {
        padding: 25px;
    }

    .contact-form {
        padding: 25px;
    }
}
.form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-response.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}