/* Table of Contents

----------------------
1. General
2. Navbar
3. Banner
4. About
5. Services
6. Team
7. Gallery
8. Testimonial
9. Blog
10. Footer
---------------------- */

/* General */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;200;300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Background color */
    --primary-color: #ae9461;
    --bg-dark: #666;
    --bg-white: #fff;
    --bg-footer: #1d1f27;
    /* Text Style */

    --primary-text: #ae9461;
    --text-white: #fff;
    --text-black: #222;
    --text-gray: #666;
    --text-light: #ddd;
    --cls: #222;

    /* font */
    --primary-font: "Cairo", sans-seri;
    --secondary-font: "Cairo", sans-seri;
    /* transition */
    --main-transition: all 0.5s ease-in-out;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
}

/* Custom Scroll bar */

::-webkit-scrollbar {
    width: 0.375rem;
}

::-webkit-scrollbar-track {
    background: var(--bg-white);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-text);
}
/* Custom Scroll bar End */

/* Custom Css */

.wrapper {
    padding: 6.25rem 0;
}

.main-btn {
    display: inline-block;
    border: 0.0625rem solid var(--bg-footer);
    background-color: var(--bg-footer);
    color: var(--text-white);
    text-align: center;
    padding: 0.75rem 1.375rem;
    font-size: 1rem;
    text-transform: capitalize;
    border-radius: 0.1875rem;
    transition: var(--main-transition);
}

.card:hover:hover .main-btn {
    background-color: var(--primary-text);
    border-color: var(--primary-text);
    color: var(--text-white);
}

.fill-btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-white);
}

.fill-btn:hover {
    background-color: var(--bg-white);
    border-color: var(--bg-white);
    color: var(--text-black);
}

h1 {
    font-size: 3.875rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    font-family: var(--secondary-font);
}

h2 {
    font-size: 2.875rem;
    font-weight: 600;
    color: var(--text-white);
    font-family: var(--secondary-font);
}

h3 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-white);
    font-family: var(--secondary-font);
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2.25rem;
    color: var(--text-black);
    font-family: var(--secondary-font);
}

h5 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2rem;
    color: var(--primary-text);
    font-family: var(--secondary-font);
    margin-bottom: 0.9375rem;
}

h6 {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-black);
    font-family: var(--secondary-font);
    margin-bottom: 0.9375rem;
    text-transform: uppercase;
}

p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.625rem;
}

.card {
    border-radius: 0.625rem;
    background-color: var(--bg-white);
    box-shadow: 0.5084rem 1.1419rem 2.5rem 0 rgb(0 0 0 / 8%);
    padding: 3.75rem 3.125rem 4.6875rem;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
    border: 0;
}
/* card-animate */
.card-animate {
    height: 250px;
    background: white;
    border-radius: 20px;
    transition: 0.5s;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.card-animate:hover {
    height: 350px;
}

.card-animate .imgbox {
    position: absolute;
    background: var(--bg-white);
    inset: 20px 20px 50px 20px;
    border-radius: 20px;
    transition: 0.5s;
    z-index: 1000;
}

.card-animate:hover .imgbox {
    inset: -50px 60px 250px 60px;
    box-shadow: 0 0 0 10px var(--bg-footer);
}

.card-animate .imgbox::before,
.card-animate .imgbox::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: transparent;
    transform: translateY(-100px);
    opacity: 0;
    transition: 0.5;
    pointer-events: none;
}

.card-animate .imgbox::before {
    left: -30px;
    border-top-right-radius: 100%;
    box-shadow: 5px -5px 0 4px var(--bg-footer);
}

.card-animate .imgbox::after {
    right: -30px;
    border-top-left-radius: 100%;
    box-shadow: -5px -5px 0 4px var(--bg-footer);
}

.card-animate:hover .imgbox::before,
.card-animate:hover .imgbox::after {
    transform: translateY(50px);
    opacity: 1;
    background: white;
}

.card-animate img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 15px;
    object-fit: cover;
}

.card-animate h6 {
    text-overflow: ellipsis;
    font-weight: 600;
    position: absolute;
    color: #333;
    transition: 0.5;
    bottom: 8px;
}

.card-animate p {
    visibility: hidden;
    transition: 0.5;
    opacity: 0;
    text-align: center;
    position: relative;
    transform: translateY(-50px);
}

.card-animate:hover p {
    visibility: visible;
    opacity: 1;
    transform: translateY(40px);
}

.card-animate:hover h6 {
    bottom: -25px;
    padding: 5px 25px;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: 0 0 0 10px var(--bg-footer);
}

/* Define animation */
@keyframes movebounce {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    50% {
        -webkit-transform: translateY(1.25rem);
        transform: translateY(1.25);
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
.title-body {
    margin-bottom: 2rem;
    margin-top: 2rem;
}
.title-body h3 {
    color: var(--bg-footer);
    text-align: center;
    position: relative;
    font-weight: bold;
    transition: var(--main-transition);
}
.title-body h3:hover {
    color: var(--primary-text);
}
.title-body h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -50%;
    width: 100px;
    height: 0.1223rem;
    transform: translate(-50%, -50%);
    background-color: var(--bg-footer);
    transition: var(--main-transition);
}
.title-body h3:hover::after {
    background-color: var(--primary-text);
}
.section-title {
    color: var(--bg-footer);
}
/* Custom CSS end */

.divider {
    margin: 0;
    /* border-top: 1px solid #ddd;*/
}

.navbar-brand img {
    height: 40px;
    width: 40px;
}

.offcanvas-body .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.offcanvas-body .nav-link i {
    font-size: 1.2rem;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    display: none;
    margin-left: 10px;
}

.search-container.active .search-input {
    display: block;
}
.card:hover .icon-box.feature::before {
    transition: var(--main-transition);
    background-color: var(--primary-text);
}
.icon-box.feature {
    position: relative;
    font-size: 40px;
    color: var(--bg-footer);
    height: 100px;
}

.icon-box.feature::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-footer);
}

.icon-box.feature i {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-white);
}

/* Navbar */
.header-wrapper .navbar {
    padding: 0.9375rem 0;
    background-color: transparent;
    transition: 0.3s ease-in-out;
}

.header-wrapper .navbar-toggler,
.header-wrapper .navbar-toggler:focus {
    border: 0;
    box-shadow: none;
    color: var(--text-black);
    line-height: 2;
}

.header-wrapper .nav-item {
    margin: 0 0.625rem;
}

.header-wrapper .nav-item .nav-link {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-black);
    display: inline-block;
    font-family: var(--secondary-font);
}

.header-wrapper .nav-item .nav-link:hover,
.header-wrapper .nav-item .nav-link:focus,
.header-wrapper .nav-item .nav-link.active {
    color: var(--primary-text);
}
.header-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--bg-white);
    box-shadow: 0.5084rem 1.1419rem 2.5rem 0 rgb(0 0 0 / 8%);
    transition: 0.3s ease-in-out;
}
/* background-home */

.home-page-background {
    /* background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.1) 20px,
            rgba(255, 255, 255, 0.1) 21px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.1) 20px,
            rgba(255, 255, 255, 0.1) 21px
        ),
        linear-gradient(45deg, #ff9a9e, #fad0c4, #fbc2eb, #ff9a9e, #f6d365);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite; */
    height: 100vh;
    background-image: url("../images/drhebametwally/heba-slider-new.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
@media (max-width: 992px) and(max-width: 1024px) {
    .home-page-background {
        background-image: url("../images/drhebametwally/slider-phone1.jpg");
    }
}
@media (max-width: 768px) {
    .home-page-background {
        height: 50vh;
        background-image: url("../images/drhebametwally/slider-phone1.jpg");
    }
}
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
}

.swiper-slide img {
    display: block;
    width: 100%;
}
/* Custom CSS for pagination background */
.swiper-pagination-bullet-active {
    background-color: var(--primary-text); /* Green color */
}

.banner-wrapper p {
    font-weight: bold;
    color: var(--text-white);
    max-width: 80%;
}

.banner-wrapper .top-right-sec {
    position: relative;
    background: url("../images/top-banner-img/top-right-bg.png");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.banner-wrapper .animate-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 22;
}

/* Animation for banner */
.banner-wrapper .aimg1 {
    -webkit-animation-name: movebounce;
    animation-name: movebounce;
    -webkit-animation-delay: 100ms;
    animation-delay: 100ms;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
}
.dropdown-home-items {
    left: auto !important;
    position: relative;
}
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
}

.dropdown-home-items::before {
    content: "";
    position: absolute;
    height: 4px;
    width: 100%;
    left: 0;
    top: 0;
    background-color: var(--primary-text);
}
.dropdown-home-items::after {
    content: "";
    position: absolute;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--primary-text); /* Change color here */
    top: -10px;
    right: 0;
}
.dropdown-home-items a {
    position: relative;
    -webkit-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
}
.dropdown-home-items a::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    position: absolute;
    right: 0.3rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
.dropdown-home-items a:hover {
    background-color: transparent;
    color: var(--primary-text);
    margin-right: 0.625rem;
}
/* Custom styles */
.search-container {
    display: flex;
    align-items: center;
}
.search-container i {
    color: var(--primary-text);
}
.search-input {
    display: none;
    margin-left: 10px;
    transition: width 0.3s ease-in-out;
}
.search-input.active {
    outline: none;
    display: block;
    width: 200px;
}

/* Animation end */

.home .card:hover {
    -webkit-transform: translateY(-0.625rem);
    transform: translateY(-0.625rem);
}
.home-cover {
    height: 100vh;
    /* width: 100%; */
}
.home-cover img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}
.home .icon-box {
    position: absolute;
    left: 50%;
    top: 0;
    border-radius: 50%;
    background-color: var(--primary-text);
    transform: translate(-50%, -50%);
    text-align: center;
    margin: 0 auto 2.5rem;
}
/* .card-home { */
/* transform: translateY(-20%); */
/* height: 400px;
    background-color: red; */
/* } */
.card-home .box {
    background-color: var(--bg-home-box);
    color: #fff !important;
    text-align: right !important;
    width: 400px;
    height: 400px;
}
.card-home .box:last-child {
    background-color: var(--bg-home-box);
    opacity: 0.8;
}
.card-home .box:first-child {
    background-color: rgba(2, 157, 155, 1);
}
.card-home .box h4,
.card-home .box p {
    color: var(--text-white);
}
.card-home .box a:hover {
    background-color: var(--bg-white);
    color: var(--text-black);
    border-color: var(--bg-white);
}

.opertions {
    background-color: var(--bg-footer);
    min-height: 100vh;
}
.opertions .title-body h3 {
    color: var(--text-white);
}
.opertions .title-body h3::after {
    background-color: var(--bg-white);
}
/* studio */
.studio {
    height: 100vh;
}
.studio img {
    width: 100%;
    height: 100%;
}
/* before-after */
.before-after {
    height: 400px;
}
/* video-youtype */
.video-youtype iframe {
    width: 100%;
    height: 100%;
}
.video-youtype-box {
    height: 300px;
}
/* certificates */
.certificates .card {
    padding: 0 !important;
    overflow: hidden;
    height: 300px;
}
.last-news img,
.certificates .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* last-news */
.last-news img {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.last-news .card {
    position: relative;
}
.last-news .card h5,
.last-news .card i,
.last-news .card span {
    color: var(--bg-footer);
    transition: var(--main-transition);
}
.last-news .card:hover h5,
.last-news .card:hover i,
.last-news .card:hover span {
    color: var(--primary-text);
    transition: var(--main-transition);
}

.last-news .card::after {
    content: "+";
    text-align: center;
    color: var(--text-white);
    position: absolute;
    right: 10px;
    top: -1rem;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-color: var(--bg-footer);
    transition: var(--main-transition);
}
.last-news .card:hover:after {
    background-color: var(--primary-text);
}
/* locations */
.locations .box {
    height: 400px;
}
.locations .card {
    height: 100%;
}

.about-wrapper h2 {
    color: var(--text-black);
}
.about-wrapper .about-clinic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.about-wrapper .card {
    padding: 20px 0;
    margin: 0;
    text-align: center;
}
.about-box-image {
    position: relative;
}
.about-animate {
    width: 100%;
    height: 100%;
    bottom: 0;
    -webkit-animation: movebounce 3s linear infinite;
    animation: movebounce 3s linear infinite;
}
.gallery-wrapper {
    overflow: hidden;
    border-radius: 0.9375rem;
}
.gallery-wrapper figure {
    overflow: hidden;
    border-radius: 0.9375rem;
}
.gallery-wrapper img {
    border-radius: 0.9375rem;
    max-height: 400px;
    object-fit: fill;
    transition: var(--main-transition);
}
.gallery-wrapper img:hover {
    transform: scale(1.6) rotate(-15deg);
}

/* Footer Section */
.footer-wrapper {
    background-color: var(--bg-footer);
    padding-bottom: 0;
}
.footer-wrapper h5 {
    color: var(--text-white);
    position: relative;
}
.footer-wrapper h5::after {
    content: "";
    position: absolute;
    right: 0%;
    bottom: -50%;
    width: 100px;
    height: 0.1rem;
    background-color: var(--primary-text);
}
.footer-wrapper ul li {
    margin-bottom: 0.5rem;
    list-style: none;
    font-size: 0.875rem;
}
.footer-wrapper .contact-info ul a {
    padding: 0;
}
.footer-wrapper ul li a,
.footer-wrapper p {
    color: var(--text-white);
    font-size: 0.875rem;
    padding-right: 1.5rem;
    position: relative;
    -webkit-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
}
.footer-wrapper p {
    padding-right: 0;
}
.footer-wrapper .link-widget li a::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    position: absolute;
    right: 0.3rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
.footer-wrapper .link-widget li a:hover {
    margin-right: 0.625rem;
    color: var(--primary-text);
}
.footer-wrapper .social-network a {
    width: 2.1875rem;
    height: 2.1875rem;
    margin: 0.5rem;
    padding: 0.2rem 0;
    line-height: 2rem;
    font-size: 0.875rem;
    display: inline-block;
    border: 0.125rem solid var(--bg-light-blue);
    color: var(--text-light);
    text-align: center;
    border-radius: 100%;
    -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.footer-wrapper .social-network a:hover {
    color: var(--text-white);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-0.1875rem);
}
.footer-wrapper ::placeholder {
    color: var(--text-light);
}

.footer-wrapper .form-control {
    color: var(--text-light);
}
.footer-wrapper .form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--bg-white);
}
.footer-wrapper a {
    color: var(--text-white);
    font-weight: 600;
}
.about h2,
.about h4,
.about p {
    color: var(--bg-footer);
    transition: var(--main-transition);
}
.about h2:hover,
.about h4:hover,
.about p:hover {
    color: var(--primary-text);
}
.about li {
    position: relative;
    padding-right: 1.3rem;
    opacity: 0.9;
    transition: var(--main-transition);

    list-style: none;
}
.about li::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    position: absolute;
    right: 0.3rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
.about li:hover {
    margin-right: 0.625rem;
    color: var(--primary-text);
}
.list-footer li::before {
    color: var(--bg-white);
}
.articles .card {
    position: relative;
    overflow: hidden;
    height: 400px;
    transition: var(--main-transition);
}
.articles h4 {
    width: 100%;
    position: absolute;
    bottom: -20px;
    font-weight: bold;
    transform: translateY(1000%);
    transition: var(--main-transition);
    color: var(--text-white);
    background-color: rgba(29, 31, 39, 0.7);
}
.articles .card:hover h4 {
    transform: translateY(0);
}.service-card {
    border: 2px solid #ae9461 !important;
    border-radius: 5px;
    overflow: hidden; /* ensures image follows border radius */
    transition: all 0.3s ease-in-out;
  }

  .service-card img {
    width: 100%;
    height: 300px;
    object-fit: fill; /* keep proportions, no stretch */
  }

  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(174, 148, 97, 0.5);
  }
.social-fixed {
  position: fixed;
  top: 50%;
  right: 10px; /* change to left:10px for left side */
  transform: translateY(-50%);
  z-index: 9999;
}

.social-fixed li {
  margin: 8px 0;
}

.social-fixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #ae9461; /* your brand color */
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-fixed a:hover {
  background: #000; /* hover effect */
  color: #ae9461;
}

/* Container for the spinner */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* Make it fixed */
    top: 0; /* Start from the top of the viewport */
    left: 0; /* Start from the left of the viewport */
    width: 100%; /* Full width */
    height: 100vh; /* Full height of the viewport */
    background-color: #fff; /* Optional: semi-transparent background */
    z-index: 1000; /* Ensure it stays on top of other elements */
}

/* Spinner styles */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid var(--primary-text); /* Highlighted part of the spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframes for the spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
