@charset "utf-8";
*{
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
body{
    min-height: 100vh;
    color: #303030;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
    margin: 0;
    overflow-x: hidden;
}

a{
    text-decoration: none;
}

/*------custom-scroll-bar - from w3schools.com------------------*/
/* width */
::-webkit-scrollbar {
    width: 5px;
    position: fixed;
    z-index: 9999;
}
  
/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
   
/* Handle */
::-webkit-scrollbar-thumb {
    background: #6491bb; 
    border-radius: 12px;
}
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #84b6e4; 
  }

/**************************************NAVIGATION BAR*****************************************/
nav{
    background: white;
/*  box-shadow: 0px 3px 40px rgba(0, 0, 0, 0.508); */
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 5px 1rem; /* tightened horizontal padding so logo sits nearer left */
    transition: all 0.2s ease;
}
nav ul{
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}
nav li{
    height: 50px;
}
nav a{
    color: #303030;
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 450;
    display: flex;
    align-items: center;
    transition: all .35s ease;
}
nav a:hover{
    color: rgb(170, 170, 170);
}
nav li:first-child{
    margin-right: auto;
    margin-left: 0; /* keep zero offset; logo will use nav padding */
}
.logo-name{ margin-left: -6px; }
.logo-name{
    width: 65px;
    height: auto;
}
/*********register button*********/
.reg-btn {
    font-family: 'Montserrat', sans-serif;
    --color: #7fa1c3;
    padding: 0.8em 1.7em;
    background-color: transparent;

    /* Make the device mock smaller on very small screens */
    .device-container { max-width: 240px; margin-top: 0.8rem; }
    .device-frame { max-width: 240px; width: 100% !important; box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
    /* Slightly reduce tagline size if necessary */
    .tagline1 { font-size: 34px; }
    .tagline2 { font-size: 30px; }
    border-radius: 10em;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: .5s;
    font-size: 17px;
    color: #6491bb;
    z-index: 1;
    height: 40px;
    margin-right: 10px;
    margin-top: 5px;
    border: 1px solid;
}

/* Additional constraint for small-to-medium phones to make the mock less dominant */
@media (max-width: 420px) {
    .device-container { max-width: 200px; }
    .device-frame { max-width: 200px; }
    .device-frame .website-content { transform: scale(0.95); transform-origin: top center; }
}
.reg-btn::before, .reg-btn::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    background-color: #6491bb;
    transition: all 1s ease;
}
.reg-btn::before {
    top: -1em;
    left: -1em;
}
.reg-btn::after {
    left: calc(100% + 1em);
    top: calc(100% + 1em);
}
.reg-btn:hover::before, .reg-btn:hover::after {
    height: 410px;
    width: 410px;
}
.reg-btn:hover {
    color: white;
}
/*********login button*********/
.log-btn {
    font-family: 'Montserrat', sans-serif;
    --color: #6491bb;
    padding: 0.8em 1.7em;
    background-color: #6491bb;
    border-radius: 10em;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: .5s;
    font-size: 17px;
    color: white;
    z-index: 1;
    height: 40px;
    margin-right: 10px;
    margin-top: 5px;
    border: 1px solid;
}

.log-btn::before, .log-btn::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    background-color: white;
    transition: all 1s ease;
}
.log-btn::before {
    top: -1em;
    left: -1em;
}
.log-btn::after {
    left: calc(100% + 1em);
    top: calc(100% + 1em);
}
.log-btn:hover::before, .log-btn:hover::after {
    height: 410px;
    width: 410px;
}
.log-btn:hover {
    color: #6491bb;
    border: 1px solid;
}
/**********SIDE BAR*************/
.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    padding: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    color: #303030;
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    box-shadow: 0px 3px 40px rgba(0, 0, 0, 0.189);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.sidebar li{
    width: 100%;
}
.sidebar li:first-child{
    margin-right: auto;
    margin-left: 0;
}
.navbar-logo{
    width: 30px;
    height: auto;
}
.menu-button{
    display: none;
}
@media(max-width: 1020px){
    .hideOnMobile{
        display: none;
    }
    .menu-button{
        display: block;
    }
}
@media (max-width: 480px) {
    nav { padding-left: 0.4rem; padding-right: 0.4rem; }
    .logo-name { width: 46px; margin-left: -4px; }
}
@media(max-width: 400px){
    .sidebar{
        width: 100%;
    }
}
/**********************************************HOME****************************************************/
#home {
    /**background: linear-gradient(
        to bottom, 
        rgba(47, 57, 109, 0.801), 
        rgba(81, 103, 182, 0) 50%, 
        #6482ad 100% 
    ), 
    url(../Media/Background/background-blue.png);**/
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0) 50%, 
        #ffffff 100% 
    ), 
    url(../Media/Background/background.png);
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    min-height: 100vh;
    width: 100%;
    color: white;
    display: flex;
    align-items: center;
    padding: 20px;
    padding-left: 5%;
    padding-right: 5%;
}
.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.col-6 {
    width: 100%;
    padding: 15px;
}
.leftside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-left: clamp(1rem, 6vw, 6rem); /* replace fixed margins with responsive padding */
    padding-right: 2rem;
}
.row.no-gutters {
    margin-left: 0;
    margin-right: 0;
}

.row.no-gutters > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}
/*********** Left Side Content *************/
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
} 
.tagline1, .tagline2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #6491bb;
    animation: slideInLeft 0.8s ease-out;
    line-height: 1.05;
    margin-bottom: 12px;
}
.tagline1 {
    font-size: clamp(36px, 6vw, 70px);
}

.tagline2 {
    font-size: clamp(28px, 5vw, 56px);
    margin-top: -10px;
}

.highlight{
    color: #ffffff;
    animation: slideInLeft 1.4s ease-out; 
    text-shadow: 0 0 5px #ffffff, 
                 0 0 10px #ffffff, 
                 0 0 15px #bfe0ff, 
                 0 0 20px #6491bb;
}
.highlight1{
    font-style: italic; 
    text-shadow: 
        -2px 0 3px rgba(255, 255, 255, 0.6), 
        -4px 0 5px rgba(255, 255, 255, 0.5),  
        -6px 0 7px rgba(255, 255, 255, 0.4),  
        -8px 0 9px rgba(255, 255, 255, 0.3);  
    animation: slideInLeft 1.6s ease-out;
}
.description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.6vw, 17px);
    color: #303030;
    line-height: 1.75;
    margin: 0 0 1.25em 0;
    max-width: 620px;
    /* readable panel */
    background: rgba(255, 255, 255, 0.96);
    padding: 22px 24px 22px 56px; /* extra left padding for accent */
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    display: block;
    position: relative;
    border-left: 6px solid rgba(100,145,187,0.15);
}

.description::before{
    content: "“";
    position: absolute;
    left: 18px;
    top: 8px;
    font-size: 48px;
    line-height: 1;
    color: rgba(100,145,187,0.12);
    font-family: serif;
}

/************Register & Login*************/
.register-login {
    display: flex;
    gap: 20px; 
    flex-wrap: wrap;
    margin-top: 1rem;
}

button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    padding: clamp(0.6em, 1.5vw, 0.8em) clamp(1em, 3vw, 1.7em); 
    background-color: #ffffff;
    border-radius: 10em;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    color: #2f396d;
    z-index: 1;
    border: none;
    min-width: max(120px, 10vw); 
    text-align: center;
}
button::before, button::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    background-color: var(--color);
    transition: all 1s ease;
}
button::before {
    top: -1em;
    left: -1em;
}
button::after {
    left: calc(100% + 1em);
    top: calc(100% + 1em);
}
button:hover::before, button:hover::after {
    height: 410px;
    width: 410px;
}
button:hover {
    color: white;
}

.register-login button:first-child {
    margin-left: 5rem; 
}
/***modification***/
.login{
    background-color: #6491bb;
    color: #ffffff;
    a{
        color: rgb(255, 255, 255);
        transition: all .5s ease;
    }
}
.login::before, .login::after{
    background-color: white;
    color: #6491bb;
} 
.login:hover{
    color: #6491bb;
    a{
        color: #6491bb;
    }
}
.register{
    a{
        color:#6491bb;
        transition: all .5s ease;
    }
}
.register:hover{
    a{
        color:#ffffff;
    }
}
.register::before, .register::after {
    background-color: #6491bb;
}
.register:hover{
    color: #ffffff;
}

/* CTA style for the homepage 'Get started' anchor */
.cta-getstarted {
    display: inline-block;
    padding: clamp(0.6em, 1.5vw, 0.8em) clamp(1em, 3vw, 1.7em);
    background-color: #6491bb;
    color: #ffffff;
    border-radius: 10em;
    font-weight: 600;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 6px 18px rgba(100,145,187,0.15);
    transition: transform .15s ease, box-shadow .15s ease;
}
.cta-getstarted:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(100,145,187,0.18);
}

.rightside {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex !important;
    position: relative;
    justify-content: flex-end; /* Align content to right */
    padding-right: 0; /* Remove any padding that might be affecting positioning */
    padding-left: 5%;
}

.device-container {
    position: relative;
    width: 100%; /* Increased width */
    max-width: 900px; /* Increased max-width */
    margin-left: auto; /* Push to the right within column */
    margin-right: -100%; /* Align to right edge of column */
}

/* Device styles */
.device-frame {
    width: 18vw;
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 2px #e0e0e0;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

/* Browser bar styling */
.browser-bar {
    background: #f2f2f2;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.browser-buttons {
    display: flex;
    gap: 6px;
    margin-right: 10px;
}

.browser-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-button.red {
    background: #ff5f57;
}

.browser-button.yellow {
    background: #ffbd2e;
}

.browser-button.green {
    background: #28c941;
}

.browser-address {
    flex-grow: 1;
}

.url-bar {
    background: #e0e0e0;
    border-radius: 12px;
    padding: 5px 10px;
    font-size: 14px;
    color: #555;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Website content */
.website-content {
    padding: 20px;
    min-height: 400px;
    position: relative;
}

.website-logo {
    display: flex;
    justify-content: flex-start; /* Changed from center to flex-start */
    margin-bottom: 25px;
    padding-left: 10px; 
}

.website-logo img {
    max-width: 30px;
    height: auto;
}

/* UI Elements - Mockup layout */
.website-ui {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ui-element {
    background: #f7f9fc;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.header-bar {
    height: 40px;
    background: linear-gradient(90deg, #6491bb, #4a6d9c);
}

.calendar-box {
    height: 120px;
    position: relative;
}

.calendar-box:after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: 
        linear-gradient(90deg, #6491bb30, #6491bb30) 0 0/20% 20%,
        linear-gradient(90deg, #ffffff, #ffffff) 0 0/20% 20%;
    background-repeat: repeat;
    border-radius: 4px;
    opacity: 0.7;
}

.appointment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.appointment-item {
    height: 30px;
    background: white;
    border-radius: 5px;
    border: 1px dashed #6491bb;
    position: relative;
}

.appointment-item:before {
    content: '';
    position: absolute;
    width: 30%;
    height: 10px;
    background: #6491bb30;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    border-radius: 5px;
}

.appointment-item:after {
    content: '';
    position: absolute;
    width: 15%;
    height: 10px;
    background: #6491bb;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border-radius: 5px;
}

/* Floating animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Notification elements for modern UI feel */
.notification {
    position: absolute;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 220px;
    animation: fadeIn 0.5s ease-out forwards, float 5s ease-in-out infinite;
    opacity: 0;
    z-index: 10;
}

.notification-1 {
    top: 20%;
    left: -100px;
    animation-delay: 0.8s, 1.5s;
}

.notification-2 {
    bottom: 15%;
    right: -80px;
    animation-delay: 1.5s, 2s;
}

.notification-icon {
    background: #6491bb;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #303030;
    margin: 0;
}

.notification-time {
    font-size: 12px;
    color: #6491bb;
    margin: 2px 0 0 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries for responsive design */
@media (max-width: 992px) {
    .notification {
        width: 180px;
    }
    
    .notification-1 {
        left: -40px;
    }
    
    .notification-2 {
        right: -30px;
    }
    
    .website-content {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .device-container {
        width: 100%;
        margin: 0 auto;
        max-width: 350px;
    }
    
    .notification-1 {
        top: 10%;
        left: 0;
    }
    
    .notification-2 {
        bottom: 5%;
        right: 0;
    }
    
    .website-content {
        min-height: 280px;
        padding: 15px;
    }
    
    .website-logo img {
        max-width: 120px;
    }
    
    .browser-buttons {
        gap: 4px;
    }
    
    .browser-button {
        width: 8px;
        height: 8px;
    }
}
/**********************************************ABOUT****************************************************/
#about{
    background: linear-gradient(to top, #6482ad, white);
    padding-bottom: 20em;
}
#about .title{
    color: black;
}
/**********************************************SERVICES****************************************************/
#services {
    background: white;
    padding-bottom: 6em;
    position: relative;
    padding-left: 5%;
    padding-right: 5%;
}

.title{
    font-size: 40px;
    font-weight: 700;
    color: #6491bb;
    text-align: center;
    padding-bottom: 1em;
}

.carousel-container {
    position: relative;
    max-width: 95%;
    margin: 2em auto;
    padding: 0 50px; /* Space for buttons */
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
    padding-bottom: 20px; /* Space for scrollbar */
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: #6491bb;
    border-radius: 10px;
}

.carousel-button {
    all: unset; 
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #6491bb;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background-color: #ffffff;
    color: #6491bb;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.card {
    flex: 0 0 auto;
    width: 15em;
    height: auto;
    color: white;
    padding: 20px;
    background-color: white;
    border-radius: 0.5em;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.215);
    font-size: xx-large;
    display: flex;
    align-items: center;
    flex-direction: column;  
    min-height: 200px;
    transition: all 0.5s ease;
    scroll-snap-align: start;
}
.card:hover {
    box-shadow: 0 12px 24px #84b6e4b9;
    transform: translateY(-5px);
}

.card img{
    border-radius: 0.3em;
    width: 14em;
    height: auto;
    position: relative;
    transition: all 0.5s ease;
}
.card-content {
    text-align: center; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;  
    transition: all 0.5s ease;
    position: relative; 
}
.card-content h3{
    color: black;
    font-size: 23px;
    font-weight: 400;
}
.card:hover img {
    filter: brightness(30%);
    cursor: pointer;
}
.card-content .description {
    display: none;
    color: #f5f9fd;                /* High-contrast against darkened image */
    font-size: 18px;
    font-weight: 400;
    text-align: left;              /* Easier scanning for sentences */
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    padding: 14px 18px 14px 54px;   /* Room for decorative quote */
    box-sizing: border-box;
    width: 82%; 
    transition: all 0.35s ease;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(22,46,72,0.78), rgba(34,74,115,0.72));
    border-radius: 14px;
    backdrop-filter: blur(2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    line-height: 1.5;
    letter-spacing: 0.3px;
}
.card-content:hover .description {
    display: block;  
    cursor: pointer;
}
/* Decorative opening quote inside hover description */
.card-content .description:before {
    content: "\201C"; /* Opening curly quote */
    position: absolute;
    left: 18px;
    top: 8px;
    font-size: 46px;
    line-height: 1;
    color: rgba(255,255,255,0.25);
    font-family: Georgia, serif;
    pointer-events: none;
}
.group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    will-change: transform;
    animation: scrolling 80s linear infinite;
}
@keyframes scrolling {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }
/*********floating tooth***********/

.floating-tooth {
    position: absolute;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.tooth-left {
    width: 200px;
    height: auto;
    left: -80px;
    animation: floatLeftToRight 100s linear infinite;
}

.tooth-right {
    width: 150px;
    height: auto;
    right: -45px;
    animation: floatRightToLeft 80s linear infinite;
}

.tooth-top {
    width: 100px;
    height: auto;
    top: 20px;
    left: 20%;
    animation: floatTopLeftToRight 35s linear infinite;
}

.tooth-bottom {
    width: 100px;
    height: auto;
    bottom: 40px;
    right: 20%;
    animation: floatBottomRightToLeft 40s linear infinite;
}

@keyframes floatLeftToRight {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateX(calc(100vw + 60px)) translateY(50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatRightToLeft {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateX(calc(-100vw - 45px)) translateY(-30px) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes floatTopLeftToRight {
    0% {
        transform: translateX(0) translateY(0) rotate(10deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateX(calc(80vw)) translateY(120px) rotate(370deg);
        opacity: 0;
    }
}

@keyframes floatBottomRightToLeft {
    0% {
        transform: translateX(0) translateY(0) rotate(-5deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateX(calc(-80vw)) translateY(-100px) rotate(-365deg);
        opacity: 0;
    }
}
/**********************************************CONTACT****************************************************/
#contact {
    background-color: #ffffff;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
    padding-left: 5%;
    padding-right: 5%;
}

#contact .branches-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.branches-grid .ffbox{
    width: auto; /* let grid control width */
    padding: 0.9rem 1rem; /* tighter inside grid */
    background: transparent;
    border-radius: 12px;
    box-sizing: border-box;
}

#contact .title{
    color: #6491bb;
}

.map-div {
    flex: 1;
    padding-right: 0.5rem;
    background-color: transparent;
    min-height: 12.5rem;
}

.map-div iframe,
.map-div img,
.map-div > * {
    width: 100% !important;
    height: auto !important;
    border: 0;
    border-radius: 12px;
    display: block;
}

iframe {
    width: 100%;
    height: 100%;
    border-radius: 1em;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.215);
}

.ffbox {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 1rem;
    gap: 1rem;
    min-height: auto;
}

.ffbox1 {
    flex: 0.8;
    padding-left: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 6px;
    text-align: left; /* align branch info to the left */
    align-items: flex-start; /* ensure child items start from the left */
}

.contact-title {
    font-weight: 600;
    font-size: 34px;
    text-align: left;
    color: #303030;
    margin-top: 12px;
    margin-bottom: 18px;
}

.clinic-services {
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 18px;
    text-align: center;
    color: #000000;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.contact-info p {
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
    color: #000000;
    word-break: break-word;
}

.contact-info, .contact-info p, .contact-info a {
    overflow-wrap: anywhere;
}

.contact-icon {
    width: 35px;
    height: 35px;
    margin-right: 12px;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    /* Stack branches vertically so each branch's map sits above its details */
    #contact .branches-grid{ gap: 12px; grid-template-columns: 1fr; }
    .branches-grid .ffbox{ width: 100%; }
    .ffbox {
        flex-direction: column;
        padding: 0.8rem;
    }

    .map-div {
        min-height: 10rem;
        margin-bottom: 0.75rem;
        order: 0; /* ensure map stays above text */
    }
    .map-div iframe { min-height: 10rem; }
    .ffbox1 {
        padding-left: 0;
        text-align: left; /* keep left alignment on stacked layout */
        order: 1; /* description follows map */
        align-items: flex-start;
    }
    .contact-info p {
        justify-content: flex-start; /* left-align inline contact rows */
        align-items: flex-start;
    }
}

/* Strong override: ensure branch info is left-aligned regardless of other rules */
.ffbox1, .ffbox1 .contact-title, .ffbox1 .clinic-services, .ffbox1 .contact-info {
    text-align: left !important;
    align-items: flex-start !important;
}
.ffbox1 .contact-info p {
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

/* Small screens: ensure map stays above and text left-aligned */
@media (max-width: 768px) {
    .ffbox1, .ffbox1 .contact-title, .ffbox1 .clinic-services, .ffbox1 .contact-info {
        text-align: left !important;
        align-items: flex-start !important;
    }
    .ffbox1 .contact-info p { justify-content: flex-start !important; }
}

/**********************************************FOOTER****************************************************/
.site-footer {
    /**background-color: #101321;**/
    background-color: #6491bb;
    padding: 12px 0; /* slightly larger footer for desktop readability */
    font-size: 15px;
    line-height: 20px;
    color: #ffffff;
    width: 100%;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px; /* tighter horizontal padding */
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.footer-column {
    flex: 1;
    display: flex;
    align-items: center; 
}

/* Proper alignment per section */
.footer-column:first-child {
    justify-content: flex-start;
}

.footer-column:nth-child(2) {
    justify-content: center; 
}

.footer-column:last-child {
    justify-content: flex-end; 
}

/* Social icons styling */
.social-icons {
    display: flex;
    gap: 15px; 
    align-items: center; 
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icons a {
    color: #ffffff;
    background-color: transparent;
    border: 1px solid white;
    width: 36px; /* larger icons on desktop */
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.12s linear;
    font-size: 16px;
}

.social-icons a:hover {
    color: #fff;
    background-color: #84b6e4;
}

/* Admin button styling */
.admin-btn {
    padding: 10px 20px;
    margin-left: 13px;
    background-color: transparent;
    border: 1px solid white; 
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-btn:hover {
    color: #ffffff;
    background-color: #84b6e4;
}

/* Responsive adjustments */

/* Responsive adjustments for a broad range of phones and tablets */
@media (max-width: 1200px) {
    .tagline1 { font-size: 64px; }
    .tagline2 { font-size: 40px; }
    .device-frame { width: 360px; max-width: 40vw; }
}

@media (max-width: 992px) {
    .tagline1 { font-size: 48px; }
    .tagline2 { font-size: 34px; }
    .device-container { max-width: 340px; }
    .device-frame { width: 340px; }
    .leftside { padding: 1.25rem; text-align: center; }
    nav a { padding: 0 14px; font-size: 15px; }
}

@media (max-width: 768px) {
    .tagline1 { font-size: 36px; }
    .tagline2 { font-size: 28px; }
    .leftside { padding: 1rem; }
    .device-container { display: block; margin: 1rem auto; max-width: 320px; width: 90%; }
    .device-frame { width: 100% !important; max-width: 320px; }
    .rightside { justify-content: center; }
    nav { padding: 6px 1rem; }
    .logo-name { width: 56px; }
}

@media (max-width: 576px) {
    .tagline1 { font-size: 28px; }
    .tagline2 { font-size: 22px; }
    .device-container { display: none; }
    .description { padding: 0 1rem; }
    nav a { padding: 0 10px; }
    .logo-name { width: 52px; }
}

@media (max-width: 420px) {
    .tagline1 { font-size: 22px; }
    .tagline2 { font-size: 18px; }
    .logo-name { width: 48px; }
    .cta-getstarted { min-width: 120px; }
}
/* Desktop-specific enhancements for contact maps and footer */
@media (min-width: 992px) {
    /* Make contact maps taller on desktop */
    .map-div { min-height: 18rem; }
    .map-div iframe, .map-div > * { height: 18rem !important; }

    /* Increase social icons slightly on larger screens */
    .site-footer { padding: 14px 0; font-size: 15px; }
    .social-icons a { width: 40px; height: 40px; line-height: 40px; font-size: 18px; }
}

@media (min-width: 1200px) {
    .map-div { min-height: 20rem; }
    .map-div iframe, .map-div > * { height: 20rem !important; }
    .site-footer { padding: 16px 0; }
    .social-icons a { width: 44px; height: 44px; line-height: 44px; font-size: 20px; }
}
@media (max-width: 767px) {
    .footer-row {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        justify-content: center; /* Center all elements on smaller screens */
        margin: 10px 0;
    }

    .social-icons {
        margin-top: 6px;
    }
}

    /* keep icons visible on small phones but slightly smaller */
    @media (max-width: 420px) {
        .social-icons { display: flex; gap: 10px; margin-top: 6px; justify-content: center; }
        .social-icons a { width: 26px; height: 26px; line-height: 26px; font-size: 12px; border-width: 1px; }
    }

/**********************************************DIVIDER****************************************************/
.nextpage {
    margin-top: 3em;
    margin-bottom: 6em;
    background-color: transparent;
}

/* Tighter spacing for various viewport sizes */
@media (max-width: 992px) {
    .nextpage { margin-top: 2.5rem; margin-bottom: 4rem; }
    #services { padding-bottom: 4.5rem; }
}

@media (max-width: 420px) {
    .nextpage { margin-top: 1rem; margin-bottom: 2rem; }
    #services { padding-bottom: 2.5rem; }
}


/**********************************************RESPONSIVENESS****************************************************/
/* GENERAL RESPONSIVENESS */
@media (max-width: 1200px) {
    .tagline1, .tagline2 {
        font-size: 70px;
        margin-left: 5rem;
    }

    .description {
        margin-left: 5rem;
    }

    .register-login {
        margin-left: 0rem; /* Matches large screen tagline margin */
    }
}

@media (max-width: 992px) {
    .tagline1, .tagline2 {
        font-size: 60px;
        margin-left: 4rem;
    }

    .description {
        margin-left: 4rem;
    }

    .register-login button:first-child {
        margin-left: 4em;
    }
}

@media (max-width: 768px) {
    /* HOME SECTION */
    #home .row {
        flex-direction: column;
    }
    #home .col-6 {
        width: 100% !important;
    }
    .leftside {
        padding: 2em;
        text-align: center;
    }
    .tagline1, .tagline2 {
        font-size: 50px;
        padding-left: 0;
        text-align: center;
        margin-left: 0; /* remove forced left margin so center works */
    }

    /* Ensure fixed nav does not overlap top content on mobile */
    body {
        padding-top: 80px; /* reserve more space for the fixed header */
    }

    /* Stronger fix for pages that use centered/create containers (signup, create-account) */
    .create-container, .signup-container {
        margin-top: 80px !important; /* push the container below the header */
        padding-top: 0 !important;
        height: auto !important; /* avoid full-viewport heights that hide content under nav */
    }

    /* Ensure the white card inside create/signup has a small top offset and normal flow */
    .create-container .container, .signup-container .container {
        margin-top: 0 !important;
        padding-top: 1rem !important;
        width: 96% !important;
        box-sizing: border-box;
    }
    .description {
        margin: 0 auto 1.25em auto;
        padding: 16px 18px; /* reduce heavy left padding for small screens */
        max-width: 100%;
        box-sizing: border-box;
    }

    .register-login {
        margin-left: 0;
        justify-content: center;
        text-align: center;
    }
    /* Center CTA button reliably on mobile */
    .register-login { display:flex; justify-content:center; align-items:center; }
    .cta-getstarted { display:block; margin: 0.5rem auto 1rem auto; min-width: 140px; }
    /* Prevent any accidental horizontal overflow on mobile */
    html, body { overflow-x: hidden; }

    /* Ensure the mock device cannot overflow the viewport */
    .device-container { margin-right: 0 !important; max-width: 360px; width: 100%; }
    .device-frame { width: 100% !important; max-width: 360px; box-sizing: border-box; }

    /* Tighter nav padding on small screens to avoid overflow */
    nav { padding-left: 1rem; padding-right: 1rem; }
    nav ul { padding-left: 0; padding-right: 0; }
    /* Protect CTA from overlap by device mock */
    .cta-getstarted {
        position: relative;
        z-index: 30;
    }
    .device-container {
        margin-top: 1.5rem; /* push device below CTA */
        margin-right: 0 !important;
    }
    /* Center the mock device on small screens and prevent it from overflowing */
    .rightside {
        justify-content: center !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .device-container {
        margin: 0 auto;
        max-width: 360px;
        margin-right: 0;
        width: 100%;
    }
    .device-frame {
        width: 100% !important;
        max-width: 360px;
        transform: none;
    }
    .register-login button:first-child {
        margin-left: 0;
    }
    button {
        min-width: 45%; 
        padding: 0.8em 0.5em;
    }
    
    /* NAVIGATION */
    nav {
        padding: 5px 20px;
    }
    nav a {
        padding: 0 15px;
    }
    
    /* SERVICES */
    .card {
        width: 12em;
    }
    .card img {
        width: 11em;
    }
    
    /* CONTACT */
    .ffbox {
        flex-direction: column;
    }
    .map-div {
        width: 100%;
        padding-right: 0;
        margin-bottom: 2em;
    }
    .ffbox1 {
        padding-left: 0;
        text-align: left;
        align-items: flex-start;
    }
    .contact-info p {
        justify-content: flex-start;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    /* HOME SECTION */
    .tagline1, .tagline2 {
        font-size: 40px;
    }

    /* NAVIGATION */
    /* Make the clinic logo and small navbar icon appropriately sized on very small screens */
    .logo-name {
        width: 56px;
    }
    .navbar-logo {
        width: 28px;
    }
    .menu-button img, .navbar-logo {
        width: 28px;
        height: auto;
    }
    .reg-btn, .log-btn {
        padding: 0.6em 1em;
        font-size: 14px;
    }
    
    /* SERVICES */
    .card {
        width: 10em;
    }
    .card img {
        width: 9em;
    }
    .card-content h3 {
        font-size: 18px;
    }
    
    /* CONTACT */
    .contact-title {
        font-size: 30px;
    }
    .clinic-services {
        font-size: 18px;
    }
    .contact-info p {
        font-size: 16px;
    }
    .contact-icon {
        width: 25px;
        height: 25px;
    }
}

/* NAVIGATION */
@media (max-width: 1020px) {
    nav ul {
        padding: 0;
    }
    .sidebar a {
        color: #303030!important;
    }
}

/* SERVICES */
@media (max-width: 480px) {
    .card {
        width: 8em;
    }
    .card img {
        width: 7em;
    }
    .group {
        gap: 10px;
    }
}

/* FOOTER */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        gap: 20px;
    }
    .footer-column {
        justify-content: center !important;
    }
    .admin-btn {
        margin: 5px;
    }
}

/***************** Help Button Styles *************/
.help-button-container {
    position: fixed;
    bottom: 80px;
    right: 80px;
    z-index: 1000;
}


.help-button {
    all: unset;
    overflow: hidden;
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #6491bb;
    background-color: white;
    border: 2px solid #6491bb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}


.help-button:hover {
    color: rgb(255, 255, 255);
    background-color: #6491bb;
    transform: scale(1.1);
}


.help-modal {
    display: none;

/* EXTRA SMALL SCREEN TUNING: reduce or hide the device mock so CTA remains visible */
@media (max-width: 420px) {
    .device-container, .device-frame {
        max-width: 180px !important;
        width: 180px !important;
    }
    .device-frame .website-content {
        transform: scale(0.9);
        transform-origin: top center;
    }
    /* ensure CTA is centered and on top */
    .register-login { justify-content: center !important; }
    .cta-getstarted { margin: 0.5rem auto 1rem auto !important; z-index: 40; }
}

/* Hide the mock entirely on very narrow devices to eliminate overlap */
@media (max-width: 360px) {
    .device-container, .device-frame { display: none !important; }
    /* give the hero extra breathing room when the device is removed */
    .leftside { padding-bottom: 1.5rem; }
    .cta-getstarted { min-width: 120px; }
}
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Changed from 'auto' to 'hidden' */
    background-color: rgba(0, 0, 0, 0.5);
}


.help-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.4s;
    max-height: 80vh;
    /* Limit height */
    overflow-y: auto;
    /* Only make content scrollable if needed */
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #777;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}


.close-modal:hover {
    color: #333;
}


.help-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}


.modal-logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}


.help-modal-header h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
    margin: 0;
}


.contact-info-modal {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}


.contact-info-modal h4 {
    font-family: 'Poppins', sans-serif;
    color: #84b6e4;
    margin-top: 0;
    margin-bottom: 10px;
}


.contact-info-modal p {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-family: 'Mulish', sans-serif;
}


.contact-info-modal img.contact-modal-icon {
    margin-right: 15px;
    width: 25px;
    height: 25px;
    vertical-align: middle;
}


.bug-report-form h4 {
    font-family: 'Poppins', sans-serif;
    color: #84b6e4;
    margin-top: 0;
    margin-bottom: 15px;
}


.form-group {
    margin-bottom: 15px;
}


.form-group label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Mulish', sans-serif;
    font-weight: 500;
}


.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Mulish', sans-serif;
}


.form-group textarea {
    resize: vertical;
}


.submit-report {
    background-color: #6491bb;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}


.submit-report:hover {
    background-color: #7fa6ca;
}


/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .help-button-container {
        bottom: 20px;
        right: 20px;
    }


    .help-modal-content {
        margin: 15% auto;
        width: 95%;
        padding: 20px;
    }
}
