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

/* navbar */

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

.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-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.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;
}

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

.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");
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-icons i {
    font-size: 1.5rem;
    color: gray;
    cursor: pointer;
}

.navbar-icons img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.search-container {
    position: relative;
}

.search-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.search-box {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 1000;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.bi-cart {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

@media (max-width: 768px) {
    .search-box {
        width: 300px;
        top: auto;
        left: 50%;
    }

    .search-icon,
    .bi-cart {
        font-size: 1.2rem;
    }

    .navbar-icons img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 990px) {
    .search-box {
        top: auto;
        left: 50%;
        width: 300px;
    }
}


/* header */

header .content {
    background: url("../Pic/9f2d50d65a76542bf9bc241fe30429047cb7dcdf.jpg") no-repeat center bottom;
    background-size: cover;
    display: flex;
    justify-content: left;
    width: 100%;
    align-items: center;
    min-height: 50vh;
    padding: 20px;
}

header .text-content {
    max-width: 50%;
    margin: auto 20px;
    line-height: 2;
    color: white;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .text-content,
    .image-content {
        max-width: 100%;
    }
}

header .navbar-brand {
    color: #fff !important;
}

/* diet plans */
.custom-card {
    background-color: rgba(39, 63, 79, 1);
    color: #ecf0f1;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px auto;
    max-width: 100%;
    position: relative;
    top: 3rem;
}

.custom-card .text-content {
    flex: 1;
    margin: 2rem 3rem;
}

.custom-card img {
    max-width: 40%;
    border-radius: 10px;
    margin: 2rem 3rem;
}

.custom-btn {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.custom-btn a {
    text-decoration: none;
    color: white;
}

.custom-btn:hover {
    background-color: #d35400;
}

.custom-btn:hover a {
    color: white;
}

@media (max-width: 768px) {
    .custom-card {
        flex-direction: column;
        text-align: center;
    }

    .custom-card img {
        max-width: 100%;
        margin-top: 15px;
    }
}

/* features */

.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: left;
    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;
    }
}

/* 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;
    }
}