body{
    background-color: #f8f9fa;
}

.navbar {
    background-color: white !important;
}

/* region Navbar */
#navbar-brand-logo {
    max-height: 85px;
}
#navbarNavDropdown {
    margin-left:24px;
    margin-right:24px;
}

nav .dropdown-menu {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav .dropdown-item {
    padding: 8px 20px;
    margin: 2px 0;
    border-radius: 10px;
    border: 1px solid transparent; /* Transparent border to maintain box size on hover */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for effects */
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f8f8f8; /* Very light grey for hover state */
    border-color: #ddd; /* Light grey border on hover/focus */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    text-decoration: none; /* Ensures text is not underlined on hover/focus */
}

/* region Navbar Online Randevu WhatsApp */
.navbar-online-randevu-whatsapp {
    display: inline-block;
    background-color: transparent;
    border: 1px solid #007bff;
    border-radius: 0.25rem;
    color: #007bff;
    font-weight: 400;
    padding: 0.375rem 0.75rem;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.navbar-online-randevu-whatsapp:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    text-decoration: none;
}
/* endregion */

/*ChatGpt Works Hover on Desktop, No animation on Mobile*/
@media (min-width: 992px) {
    .dropdown .dropdown-menu {
        -webkit-transition: all 0.32s;
        -moz-transition: all 0.32s;
        -ms-transition: all 0.32s;
        -o-transition: all 0.32s;
        transition: all 0.32s;

        display: block;
        overflow: hidden;
        opacity: 0;
        transform: translateX(-25%) scaleY(0);
        transform-origin: top;
    }
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        transform: translateX(-25%) scaleY(1);
    }
}
@media (max-width: 991px) {
    #navbarNavDropdown {
        text-align: center;
    }
    nav .dropdown-menu {
        padding: 5px;
    }
    nav .dropdown-menu > li {
        text-align: center;
    }
    nav .dropdown-item {
        padding: 10px;
        margin-bottom: 5px;
        border: 1px solid #eaeaea;
        border-radius: 10px;
        background-color: #f9f9f9;
    }
    nav .dropdown-item:hover {
        background-color: #eee;
    }
    nav .dropdown-item:focus {
        background-color: #d8eefa;
    }
}
/* endregion */

/* region Footer*/
footer {
    overflow-x: hidden;
}
.footer-tel {
    color: #d2d7dc;
    text-decoration: none;
}
.footer-tel:hover {
    text-decoration: underline;
}
.footer-social-icons {
    transform: scale(1);
    transition: all 0.3s ease;
}
.footer-social-icons:hover {
    transform: scale(1.25);
}
.footer-contact-btn {
    transform: scale(1);
    transition: transform 0.2s ease;
}
.footer-contact-btn:hover {
    transform: scale(1.02);
}

@media (min-width: 992px) {
    .footer-border {
        position: relative;
        border: none;
    }

    .footer-border + .footer-border::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -4px; /* Gap of 2px between borders */
        width: 2px;
        background-color: #d8d7d8;
        opacity: .32;
    }

    .footer-border:last-child::after {
        display: none; /* Hide the last border */
    }

    .footer-border::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: -4px; /* Gap of 2px between borders */
        width: 2px;
        background-color: #d8d7d8;
        opacity: .32;
    }
}
/* endregion */

/* region WhatsApp PopUp Style Rules */
@font-face {
    font-family: "Red Hat Display";
    src: url("RedHatDisplay-Regular.ttf") format("truetype");
}

.whatsapp-container {
    position: fixed;
    bottom: 1.2rem;
    right: 1.2rem;
    z-index: 1000;
}

#whatsappPopUp {
    position: relative;
    bottom: 85px;
    right: 0;
    width: 360px;
    display: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 24px 0 rgba(0,0,0,0.1);
    z-index: 1;  /* Lower than the button */
}

.whatsapp-header {
    position: relative;
    background-color: #008069;
    color: #fff;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.whatsapp-header-image {
    flex: 0 0 auto; /* This will keep the image container's size according to its content */
    margin-right: 10px; /* Add some spacing between the image and the text */
}
.whatsapp-header-image img {
    height: 64px;
    border-radius: 50%;
}
.whatsapp-header-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column; /* Stack child elements vertically */
    align-items: flex-start; /* Align items to the left */
}
.whatsapp-header-text h5{
    margin-bottom: 0;
}
.whatsapp-header-text span {
    font-size: 12px;
}

.whatsapp-close-btn {
    position: absolute;
    top: 0;
    right: 12px;
    height: 20px;
    width: 20px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
}
.whatsapp-close-btn:focus {
    box-shadow: none;
}

.whatsapp-content {
    background-image: url("../images/whatsApp_Background.png");
    background-size: 100% auto;
    background-repeat: no-repeat;
    overflow: hidden;
}
.whatsapp-chat-container {
    position: relative;
    background-image: url("../images/whatsApp_chatBox.png");
    background-size: 100% 100%;  /* This will stretch the image to fit the container */
    background-repeat: no-repeat;
    width: 216px;
    height: 118px;
    margin: 20px 0 20px 10px; /* top right bottom left */
    padding: 10px 0 0 20px; /* top right bottom left */
}

.whatsapp-chat-bubble {
    width: 100%;
    height: 100%;
    font-family: "Red Hat Display", sans-serif;
}
.whatsapp-chat-bubble p {
    margin: 5px 0;
    color: #333;
}

#whatsapp-sender {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 10px;
}

.whatsapp-timestamp {
    position: absolute;
    bottom: 5px;
    right: 10px;
    color: #999;
    font-size: 0.8em;
}

.whatsapp-static-btn {
    background-image: url("../images/whatsApp_icon.png");
    background-color: whitesmoke;
    background-size: 80%;  /* Reduce the image size to 80% of the button */
    background-position: center; /* Center the image */
    background-repeat: no-repeat;
    border: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    position: absolute;
    z-index: 2; /* Higher than the popup */
    right: 0;
    bottom: 0;
}
.whatsapp-static-btn:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background-color: #55b955;
}

.whatsapp-start-chat-button-container {
    background-color: whitesmoke;
    border-top: 1px solid #e6e6e6;
    text-align: center;
    padding: 16px;
}

.whatsapp-start-chat-button {
    display: inline-block;
    width: 300px;
    background-color: #21bd5b;
    border: none;
    border-radius: 32px;
    color: #ffffff;
    font-weight: 600;
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;  /* Removes the underline */
    text-align: center;     /* Centers the text horizontally */
    vertical-align: middle; /* Aligns the text vertically */
}

.whatsapp-start-chat-button:hover {
    background-color: #1aa54a;
}

/* Animations */
/* Add keyframes for the slide up and slide down */
@keyframes whatsapp-slideUp {
    from {
        transform: translateY(38%); /* Start position */
        opacity: 0;
    }
    to {
        transform: translateY(0); /* End position */
        opacity: 1;
    }
}

@keyframes whatsapp-slideDown {
    from {
        transform: translateY(0); /* Start position */
        opacity: 1;
    }
    to {
        transform: translateY(38%); /* End position just above the button */
        opacity: 0;
    }
}

#whatsappPopUp {
    animation-duration: 0.4s; /* animation length */
}

/* Define animation when the popup is not displayed */
#whatsappPopUp:not([style*='block']) {
    animation-name: slideDown;
}

/* Define animation when the popup is displayed */
#whatsappPopUp[style*='block'] {
    animation-name: slideUp;
}
/* endregion */