@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');


:root {

    --primary-color: #00205B;
    --secondary-color: #0092db;
    --accent-color: #FFA500;
    /* --text-color: #ffffff; */
    --dark-text: #333333;
    --transition-speed: 0.3s;
    --light-color: #F0F8FF;
    --white-color: #FFFFFF;
    --hover-color: #ff7920;
    --wave-color-1: rgba(255, 153, 0, 0.3);
    --wave-color-2: rgba(0, 102, 204, 0.3);
    --wave-color-3: rgba(0, 51, 102, 0.3);
    --wave-color-4: rgba(255, 102, 0, 0.3);
}



/* //////---انميشن  الصفحات ----//////////////////////////////// */

/* //////---انميشن  الصفحات ----//////////////////////////////// */

.gi-faq__title {
    font-family: 'Cairo', sans-serif;
}

.all-elements {
    overflow: hidden;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    --background-color: #f5f5f5;
    /* لون خلفية فاتح ومتوازن */

    font-family: 'Cairo', sans-serif;
    background-color: #ffffff;
}

/* //////////////----navbar شريط القائمة في اعلى الصفحة-----/////////// */
.navbar {
    background: linear-gradient(270deg, var(--primary-color), var(--secondary-color));
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    height: 80px;
    z-index: 1000;
    display: flex;
    box-shadow: 9px 2px 9px black;
    border-radius: 0px 0px 20px 20px;
    align-items: center;
    justify-content: center;
}


.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

a {
    text-decoration: none;
    font-size: 25px;
    color: #fff;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-image:hover {
    transform: rotate(10deg);
    opacity: 0.8;
}

.logo-text {
    font-size: 24px;
    color: #ffffff;
    margin-left: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

#icon-text {
    display: inline;
}

.logo-head img {
    height: 70px;
    border-radius: 100px;
}

.logo-text:hover {
    color: var(--hover-color);
    transform: scale(1.1);
}


/* Navigation Links Styles */
.nav-links {
    display: flex;
    list-style-type: none;
}

.nav-links li {
    margin-right: 20px;
}

a {
    color: white;
    text-decoration: none;
    font-size: 19px;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;

}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

/* Social Icons Styles */
.social-icons {
    display: flex;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffd700;
}

/* Menu Toggle Styles */
.menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}


/* /////-----القائمة المنسدله -----///// */
/* -dropdown-item */

.dropbtn {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 2px 16px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

/* Dropdown button on hover & focus */
.dropbtn:hover,
.dropbtn:focus {
    color: #ffffff;
    background-color: var(--secondary-color);
}

/* The container <div> - needed to position the dropdown content */
.dropdown {

    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    width: 220px;
    display: none;
    position: absolute;
    border-radius: 10px;
    margin-top: 5px;
    background-color: var(--light-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    border-radius: 10px;
    color: var(--white-color);
    background-color: var(--secondary-color);
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
    display: block;
}

/* --dropdown-item */
/* /////////////////////////////////////////////////////////////////////////////////////////// */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--primary-color);
    /* background:linear-gradient(235deg, var(--primary-color), var(--secondary-color)); */
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
    /* font-weight: 500; */
    /* color: var(--white-color); */
    background-color: #FFF;
    /* background:linear-gradient(235deg, var(--secondary-color), var(--primary-color)); */
    border: 1px solid var(--primary-color);
}

/* //////////////////////////////////-------------عرض المواد -------///////Home Styles */

.subjects-home {
    margin-top: 100px;
}

.subjects-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.subjects-home .sec-title h2 {
    font-size: 1.5rem;
    font-weight: 900;
}

.subjects-list li {
    width: calc(25% - 20px);
    margin: 10px;
    text-align: center;
    box-shadow: 0 5px 15px #00000026;
    border-radius: 10px;
    padding: 10px;
    transition: 0.3s ease;
}

.subjects-list i {
    font-size: 3rem;
    /* زيادة حجم الأيقونة */
    color: var(--secondary-color);
    /* استخدام لون مميز للأيقونة */
}

.subjects-list li:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    transform: scale(1.1);
    /* تكبير الأيقونة قليلاً عند التمرير */
}

.subjects-list a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.subjects-list p {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

/* نهايه عرض المواد */


/* /////////////////-------في مايقدمة المعهد -------------//////////////// */
/* Professional Home Styles */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 4rem 2rem;
    background-color: var(--light-color);
}

.feature {
    flex-basis: calc(25% - 2rem);
    text-align: center;
    padding: 2rem;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature p {
    font-size: 1rem;
    color: #666;
}

.courses_2 {
    padding: 4rem 2rem;
    text-align: center;
}

.courses_2 h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.course-image {
    height: 200px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image i {
    font-size: 4rem;
    color: var(--white-color);
}

.course-info {
    padding: 1.5rem;
}

.course-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.course-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* .course-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.course-link:hover {
    background-color: var(--accent-color);
} */

@media (max-width: 1000px) {
    .feature {
        flex-basis: calc(50% - 2rem);
    }
}



@media (max-width: 480px) {
    .feature {
        flex-basis: 100%;
    }
}

/* /////////////////-------نهايه في مايقدمة المعهد -------------//////////////// */

/* /////////////////-------قسم اشترك معنا   -------------//////////////// */
.join {
    margin-bottom: 30px;
    padding: 60px 15px;
    background-color: #fff;
}

.container_3 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.join__title {
    font-size: clamp(25px, 4vw, 32px);
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.join__description {
    font-size: clamp(16px, 2vw, 18px);
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.join__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.join__card {
    flex: 1 1 calc(33.333% - 20px);
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.join__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.join__card-img img {
    width: 100%;
    height: auto;
    display: block;
}

.join__card-content {
    padding: 20px;
    text-align: center;
}

.join__card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.join__card-content p {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.join__link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
    /* background: linear-gradient(235deg, var(--primary-color), var(--secondary-color)); */
    /* color: #ffffff; */
    /* border: 1px solid var(--secondary-color); */
    transition: 0.3s;
    padding: 12px 24px;
    text-transform: uppercase;
}


.join__link i {
    margin-left: 8px;
}

/* Media Queries */
@media (max-width: 1024px) and (min-width: 768px) {
    .join__card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .join__card {
        flex: 1 1 100%;
    }
}

/* /////////////////-------نهايه قسم اشترك معنا   -------------//////////////// */
/* //////////------المزايا الذي يقدمها المعهد--------////////////// */
.agy-features-section {
    background-color: var(--background-color);
    padding: 60px 0;
}

.agy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.agy-section-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.agy-features-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.agy-feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 280px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agy-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.agy-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.agy-feature-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.agy-feature-card p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
}

.agy-btn {
    display: block;
    width: max-content;
    margin: 30px auto 0;
    padding: 12px 25px;
    text-decoration: none;
    text-align: center;
}



/* Desktop */
@media (min-width: 992px) {
    .agy-features-wrapper {
        flex-wrap: nowrap;
    }

    .agy-feature-card {
        flex: 1;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .agy-features-wrapper {
        flex-wrap: wrap;
    }

    .agy-feature-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .agy-features-wrapper {
        flex-direction: column;
    }

    .agy-feature-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* //////////------المزايا الذي يقدمها المعهد--------////////////// */
.arrow-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}


.agy-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.agl-new-sec {
    padding: 50px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.agl-new-sec .agl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.agl-new-sec .agl-pos-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: -1;
}

.agl-new-sec .agl-sec-title h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: clamp(25px, 2vw, 33px);
}

.agl-new-sec .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.agl-new-sec .col-md-4 {
    padding: 15px;
}

.agl-new-sec .agl-content-pro {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agl-new-sec .agl-content-pro:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.agl-new-sec .agl-img-content {
    text-align: center;
    padding: 20px;
}

.agl-new-sec .agl-img-content img {
    max-width: 100%;
    height: auto;
    /* border-radius: 20px; */
}

.agl-lazyload {
    border-radius: 20px;
}

.agl-new-sec .agl-box {
    padding: 20px;
    text-align: center;
}

.agl-new-sec .agl-box h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* .agl-new-sec .agl-box a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
} */

/* .agl-new-sec .agl-box a:hover {
    background-color: #218838;
} */

/*  ///////////////////////مركز المساعده في معهد الخليج التعليمي/////////////////////// --> */
.questions {
    padding: 50px 0;
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.faq-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.faq__img {
    flex: 1;
    max-width: 50%;
}

.faq__img img {
    border-radius: 0px 30px 0px 30px;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faq {
    flex: 1;
    max-width: 50%;
}

.faq__title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 28px;
}

.faq__row {
    margin-bottom: 15px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    overflow: hidden;
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq__question:hover {
    background-color: var(--background-color);
}

.faq__xicon {
    font-size: 24px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq__toggle {
    display: none;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq__toggle:checked+.faq__question {
    background-color: var(--secondary-color);
    color: #fff;
}

.faq__toggle:checked+.faq__question .faq__xicon {
    transform: rotate(45deg);
    color: #fff;
}

.faq__toggle:checked+.faq__question+.faq__answer {
    max-height: 1000px;
    padding: 15px;
}

@media (max-width: 768px) {
    .faq-wrapper {
        flex-direction: column;
    }

    .faq__img,
    .faq {
        max-width: 100%;
    }
}

/*  //////////////////////////ايقونه الوتساب  ////////////////// --> */
.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background-color: #00205B;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: wa-pulse 2s infinite;
}

.wa-float:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(45deg, #00205B, #0092db);
    z-index: -1;
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 146, 219, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 146, 219, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 146, 219, 0);
    }
}

/*  ////////////////////////// ايقونه الوتساب ////////////////// --> */


/*  ////////////////////////// ايقونه الشات////////////////// --> */

.chat-icon {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 32, 91, 0.2);
    font-size: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: chatAnimation 2s infinite;
    z-index: 9;
    display: flex;
    /* تفعيل Flexbox */
    align-items: center;
    /* محاذاة عمودية */
    justify-content: center;
    /* محاذاة أفقية */
}

.chat-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, #00205B, #0092db);
    z-index: -1;
}

@keyframes chatAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 146, 219, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 146, 219, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 146, 219, 0);
    }
}

.chat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 32, 91, 0.3);
}

.chat-container {
    width: 100%;
    max-width: 400px;
    background-color: var(--white-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 32, 91, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: none;
    /* تأكد من أن الشات مخفي بشكل افتراضي */
    max-height: 70vh;
    flex-direction: column;
    z-index: 9;
    /* تأكد من وجود هذا السطر فقط */
}

.chat-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(45deg, #00205B, #0092db);
    z-index: -1;
}

@keyframes chatAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 146, 219, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 146, 219, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 146, 219, 0);
    }
}


.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--secondary-color);
}

.chat-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    animation: showText 1s forwards;
    opacity: 0;
}

.chat-header .text {
    display: inline-block;
    font-size: 24px;
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.chat-header .hand-icon {
    display: inline-block;
    font-size: 30px;
    /* حجم اليد */
    margin-left: 10px;
    /* المسافة بين النص واليد */
    opacity: 0;
    /* البداية غير مرئية */
    animation: wave 1.5s infinite;
    animation-delay: 1s;
    /* تأخير لبدء حركة اليد بعد ظهور النص */
    transition: opacity 0.5s ease-in;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}


@keyframes showText {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.chat-header h2 .hand-icon {
    opacity: 1;
    /* اليد تظهر بعد ظهور النص */
}


.chat-header .buttons {
    display: flex;
    align-items: center;
}

.chat-header .buttons button {
    background: transparent;
    border: none;
    color: var(--white-color);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chat-header .buttons button:hover {
    color: var(--accent-color);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-image: linear-gradient(to bottom, var(--gray-light), var(--white-color));
}

.message {
    margin-bottom: 20px;
    max-width: 90%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-operator {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 12px 18px;
    border-radius: 18px 18px 0 18px;
    align-self: flex-start;
    box-shadow: 0 3px 10px rgba(0, 146, 219, 0.2);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.quick-reply-btn {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.2);
}

.quick-reply-btn:hover {
    background-color: var(--hover-color);
}

.chat-footer {
    padding: 20px;
    display: flex;
    border-top: 1px solid var(--gray-dark);
    background-color: var(--white-color);
    /* display: flex; */
    align-items: center;
    gap: 10px;
}

.chat-input {
    width: 90%;
    padding: 12px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    resize: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.chat-footer .footer-buttons {
    display: flex;
    justify-content: space-between;
    width: 90%;
    gap: 10px;
}

.footer-btn {
    background: var(--secondary-color);
    border: none;
    color: var(--white-color);
    padding: 5px 9px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 18px;
}

.footer-btn:hover {
    background-color: #007BB5;
    transform: scale(1.1);
}

.chat-body::-webkit-scrollbar {
    width: 8px;
}

.chat-body::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.chat-body::-webkit-scrollbar-track {
    background-color: var(--gray-light);
}

.courses-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.course-item {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.2);
}

.course-item:hover {
    background-color: var(--hover-color);
}





@media (max-width: 480px) {
    .chat-container {
        width: 90%;
        bottom: 15%;

    }

    .chat-input {
        width: 90%;
        padding: 7px;
        border: 2px solid var(--secondary-color);
        border-radius: 20px;
        resize: none;
        font-size: 13px;
        transition: all 0.3s ease;
    }
}

/*  ////////////////////////// ايقونه الشات////////////////// --> */


/*  ////////////////////////////////////التذييل في معهد  التعليمي////////////////////////// --> */


.footer {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100px;
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.footer-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    z-index: 1;
}

.footer-section {
    margin-bottom: 30px;
}

.footer h3 {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.5em;
    margin-bottom: 20px;
    position: relative;
}

.footer h3::before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer p {
    color: var(--light-color);
    font-size: 1em;
    line-height: 1.5em;
}

.footer-logo img {
    width: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1) rotate(5deg);
}

.contact-link {
    display: flex;
    align-items: center;
    color: var(--light-color);
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--hover-color);
    transform: translateX(-5px);
}

.contact-link i {
    margin-left: 10px;
    font-size: 1.2em;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--hover-color);
    padding-right: 10px;
}

.footer-links ul li a i {
    margin-left: 10px;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}


.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--text-color);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
    position: relative;
}

.social-icon:hover {
    background: var(--hover-color);
    color: var(--text-color);
    transform: translateY(-5px);
}

.social-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

.footer-bottom p {
    color: var(--light-color);
    font-size: 0.9em;
}

.waves {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("https://i.ibb.co/wQZVxxk/wave.png");
    background-size: 1000px 100px;
}

.waves .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("https://i.ibb.co/wQZVxxk/wave.png");
    background-size: 1000px 100px;
    opacity: 0.5;
}

#wave1 {
    animation: animate 30s linear infinite;
    z-index: 4;
    opacity: 0.5;
    animation-delay: 0s;
    bottom: 0;
}

#wave2 {
    animation: animate2 15s linear infinite;
    z-index: 3;
    opacity: 0.5;
    animation-delay: -5s;
    bottom: 10px;
}

#wave3 {
    animation: animate 30s linear infinite;
    z-index: 2;
    opacity: 0.2;
    animation-delay: -2s;
    bottom: 15px;
}

#wave4 {
    animation: animate2 15s linear infinite;
    z-index: 1;
    opacity: 0.7;
    animation-delay: -5s;
    bottom: 20px;
}

@keyframes animate {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1000px;
    }
}

@keyframes animate2 {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: -1000px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer h3::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    .contact-link {
        justify-content: center;
    }
}

/* /////////////////////////////////////// */

@media (max-width: 767px) {
    .agl-new-sec .agl-sec-title h2 {
        font-size: 2em;
    }

    .agl-new-sec .agl-box h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 769px) {
    .agy-col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .agy-row {
        flex-direction: column-reverse;
        /* الفيديوهات في الأعلى والنص في الأسفل */
    }

    .agy-right-side {
        margin-top: 2vh;
    }


    .agy-video-grid {
        grid-template-columns: repeat(6, 1fr);
    }


    /* //////////////////////////agl-learn-home agl-learn-home-2////////////// */
    .agl-learn-home-2 .agl-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .agl-learn-home-2 .agl-content,
    .agl-learn-home-2 .agl-img-content {
        width: 50%;
    }

    .agl-learn-home-2 .agl-content {
        padding-right: 30px;
    }

    .agl-learn-home-2 img {
        margin-bottom: 0;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .sec-title h2 {
        font-size: 28px;
    }
}



/* Media Queries */
@media (max-width: 989px) {
    .grid-container>div:last-child {
        grid-column: 2 / -2;
    }
}

@media (max-width: 850px) {
    .grid-container>div:last-child {
        grid-column: 2 / -2;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .side-menu {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100%;
        box-shadow: 3px 3px 30px black;
        background: linear-gradient(270deg, var(--primary-color), var(--secondary-color));
        padding: 60px 20px;
        transition: right 0.3s ease;
        z-index: 1001;
    }



    .side-menu.active {
        right: 0;
    }

    .side-menu .nav-links {
        display: flex;
        flex-direction: column;
    }

    .side-menu .nav-links li {
        margin: 15px 0;
    }

    .side-menu .social-icons {
        display: flex;
        justify-content: center;
        margin-top: 30px;
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }





}

/* Media Queries */
@media (max-width: 1038px) {
    .container .social-icons {
        display: none;
    }
}

@media (max-width: 767px) {}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .join__cards {
        flex-direction: column;
    }

    .join__card {
        flex: 1 1 100%;
    }


    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .right-side {
        order: 2;
        padding-left: 0;
    }

    .left-side {
        order: 1;
    }

    .subjects-list li {
        width: calc(33.33% - 20px);
    }

    .sec-title h2 {
        font-size: 28px;
    }

    .mobile-title {
        font-size: 20px;
    }

    .col {
        flex-basis: 100%;
    }

    .box h3 {
        font-size: 20px;
    }

    .box p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .subjects-list li {
        width: calc(50% - 20px);
    }

    .logo-head {
        height: auto;
    }

    .logo-head img {
        height: 50px;
        border-radius: 100px;
    }

    #icon-text {
        font-size: 17px;
    }

    .footer-logo {
        width: 100%;
        margin: auto;
        text-align: center;
        padding: 7px;

    }

}


@media (max-width: 255px) {

    #icon-text {
        display: none;
    }



}