body {
    font-family: "Cairo";
    overflow: auto;
}

.hero {
    background: url("../Pic/homepic.jpg")no-repeat center center;
    background-size: cover;
    color: white;
    width: 100%;
    height: 80vh;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero .btn {
    background-color: rgba(254, 119, 67, 1);
    border-color: rgba(254, 119, 67, 1);
    color: white;
}

.hero .btn:hover {
    background-color: rgb(252, 89, 25);
    border-color: rgb(252, 89, 25);
    color: white;
}

.nav-link.active {
    font-weight: bold;
    color: rgba(39, 63, 79, 1) !important;
}

.btn-orange {
    background-color: #f97316;
    color: white;
    border: none;
}

.btn-orange:hover {
    background-color: #ea580c;
}

.navbar-brand {
    font-weight: bold;
    color: rgba(254, 119, 67, 1);
    font-family: "Cairo";
    font-weight: 600;
    font-size: 22px;
}

.nav-link {
    font-family: "Cairo";
    font-weight: 500;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.5) !important;
}

nav .btn {
    color: rgba(254, 119, 67, 1);
    border-color: rgba(254, 119, 67, 1);
    border-radius: 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

nav .btn:hover {
    background-color: rgba(254, 119, 67, 1);
    color: white;
}

.feature-section {
    background-color: rgba(44, 71, 89, 1);
    color: white;
    padding: 60px 20px;
    border-radius: 15px;
    position: relative;
    margin-bottom: 30px;
    top: 5rem;
}

.feature-section .quote {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.feature-section .author {
    font-size: 1.2rem;
    opacity: 0.8;
    color: rgba(254, 119, 67, 1);
}

.carousel-control-prev,
.carousel-control-next {
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    top: 80%;
    transform: translateY(-50%);
    border-radius: 50%;
}

.about-section {
    position: relative;
    top: 8rem;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.img-fluid {
    border-radius: 10px;
    object-fit: cover;
    top: 10%;
}

@media (max-width: 768px) {
    .hero-section .quote {
        font-size: 1.2rem;
    }

    .hero-section .author {
        font-size: 1rem;
    }

    .img-fluid {
        max-height: 200px;
    }
}

.featured-section {
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 1200px;
    position: relative;
    top: 7rem;
}

.featured-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #1a3c5e;
}

.program-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

.card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a3c5e;
}

.card-text {
    flex-grow: 1;
}

.btn-view {
    background-color: #f4a261;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-view:hover {
    background-color: #e76f51;
    color: white;
}

@media (max-width: 768px) {
    .program-card img {
        height: 150px;
    }

    .card-title {
        font-size: 1rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }
}

.testimonials-section {
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 1200px;
    position: relative;
    top: 8rem;
}

.testimonials-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.testimonials-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.stars {
    color: #f4a261;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.testimonial-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.user-info {
    display: flex;
    align-items: flex-start;
    justify-content: left;
    margin-top: 15px;
}

.user-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.user-name {
    text-align: left;
}


.user-title {
    font-size: 0.9rem;
    color: #777;
}

@media (max-width: 768px) {
    .testimonials-title {
        font-size: 1.5rem;
    }

    .testimonials-subtitle {
        font-size: 0.9rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .user-img {
        width: 30px;
        height: 30px;
    }
}

/* search */

.search-section {
    background: url('../Pic/901d65a6791ad743bf5d58a7ac997944f49f2462.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    top: 9rem;
}

.search-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.search-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.input-group {
    max-width: 500px;
    margin: 0 auto;
}

.btn-join {
    background-color: rgba(254, 119, 67, 1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-join:hover {
    background-color: rgb(252, 84, 17);
    color: white;
}

/* footer */

.footer {
    background-color: #f1ece5;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 9rem;
}

.footer .nav-link {
    color: #1a3c5e;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer .nav-link:hover {
    color: #f4a261;
}

.footer .social-icons a {
    color: #f4a261;
    margin: 0 5px;
    font-size: 1.2rem;
}

.footer .copyright {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .footer .row {
        flex-direction: column;
        align-items: center;
    }

    .footer .logo {
        margin-bottom: 15px;
        justify-content: center;
    }

    .footer .nav {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .footer .nav-link {
        display: block;
        margin: 5px 0;
        font-size: 0.85rem;
    }

    .footer .social-icons {
        justify-content: center;
        margin-bottom: 15px;
    }

    .footer .social-icons a {
        font-size: 1.1rem;
        margin: 0 8px;
    }

    .footer .copyright {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 15px;
    }

    .footer .logo img {
        height: 24px;
        width: 24px;
    }

    .footer .logo span {
        font-size: 1.3rem;
    }

    .footer .nav-link {
        font-size: 0.8rem;
    }

    .footer .social-icons a {
        font-size: 1rem;
        margin: 0 6px;
    }

    .footer .copyright {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .input-group {
        max-width: 100%;
    }
}

/* chatbot section */
.chatbot-icon {
    position: fixed;
    right: 0;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: #FF7C47;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.chatbot-icon:hover {
    background-color: #e96d3f;
}

.chatbot-icon img {
    width: 30px;
    height: 30px;
}