/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL STYLES */
html, body {
    width: 100%;
    font-family: "Roboto Condensed", sans-serif;
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

/* MEDIA ELEMENTS */
img, video {
    max-width: 100%;
    height: auto;
}

/* LINKS */
a {
    text-decoration: none;
    color: inherit;
}

/* LISTS */
ul {
    list-style: none;
}

/* CONTAINER */
.container {
    width: min(90%, 82.5rem);
    margin-inline: auto;
}

/* HEADER SECTION */
.header-section {
    width: 100%;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
}

.header-section.fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header {
    display: flex;
    flex-direction: column;
} 

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.header-contact {
    border-bottom: 1px solid #dee2e6;
}

.header-section.fixed .header-contact {
    display: none;
}

.header-contact .container {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
}

.left-contact,
.right-contact,
.header-socials {
    display: flex;
    gap: 0.9375rem;
}

.header-phone,
.header-email,
.header-socials a {
    color: #848e9f;
    font-size: 0.875rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo a {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 3rem;
    color: #13c5dd;
    text-transform: uppercase;
}

.menus {
    display: flex;
    gap: 1.875rem;
}

.menus a {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.6875rem;
    color: #1d2a4d;
}

.menus a:hover,
.menus a.active {
    color: #13c5dd;
}

.menus li {
    position: relative;
}

.menus .dropdown {
    display: none;
    position: absolute;
    top: 1.5625rem;
    left: 0;
    margin-top: 2.125rem;
    margin-right: 0.625rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    text-transform: capitalize;
    width: 9.875rem;
}

.dropdown.show {
    display: block;
}

.dropdown li {
    padding: 0.3125rem 1.25rem;
}

.dropdown li:hover {
    background-color: #f0f0f0;
    color: #333;
}

.dropdown li.active {
    background-color: #13c5dd;
    color: #fff;
}

.dropdown li a {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: #333;
    width: 100%;
}

.navbar.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 82.5rem);
    background-color: #fff;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar.fixed::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: -1;
}

/* About Us Section */
.about-us-section {
    padding: 6.25rem 0;
}

.about-us-content {
    display: flex;
    gap: 3.75rem;
    flex-wrap: wrap;
}

.about-us-image {
    flex: 1 1 31.25rem;
    max-width: 31.25rem;
    height: 31.25rem;
    overflow: hidden;
    border-radius: 0.5rem;
}

.about-us-image img {
    width: 100%;
    height: 100%;
}

.about-us-text {
    flex: 1 1 31.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-us-text h5 {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5rem;
    text-transform: uppercase;
    color: #13c5dd;
    margin-bottom: 0.5rem;
    border-bottom: 5px solid rgb(222, 226, 230);
}

.about-us-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 4.1875rem;
    color: #1d2a4d;
    width: 45.999rem;
    margin-bottom: 1rem;
}

.about-us-text p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: #848e9f;
    margin-bottom: 1.5rem;
}

.features-list {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap; 
}

.features-list li {
    flex: 1 1 7.5rem; 
    text-align: center;
    list-style: none;
    background-color: #EFF5F9;
    padding: 1.5625rem 3.125rem;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.features-list li i {
    font-size: 3rem; 
    color: #13c5dd;
    margin-bottom: 0.625rem;
    display: block;
}

.features-list li h6 {
    font-weight: 700;
    font-size: 1rem;
    margin: 2px 0;
    line-height: 1.25rem;
    color: #1d2a4d;
}

.features-list li .secondary-text {
   color:#13c5dd;
}

/* find-doctor-section */
.find-doctor-section {
    background-color: #13c5dd;
    padding: 6.25rem 0;
}

.find-doctor-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    width: 31.25rem;
    margin: 0 24.875rem 0 24.875rem 3rem;
}

.find-doctor-content h5 {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
    border-bottom: 5px solid #dee2e6;
}

.find-doctor-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 4.1875rem;
    color: #1d2a4d;
    margin-bottom: 1rem;
}

.find-doctor-content p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.fin-doctor-search {
    display: flex;
    align-items: stretch;
    gap: 1px;
    flex-wrap: wrap;
    width: 37.5rem;
    height: 3.75rem;
}

.fin-doctor-search select {
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
    background-color: #fff;
    color: rgb(132, 142, 159);
}

.fin-doctor-search input {
    flex: 1;
    padding: 0.375rem 0.75rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.fin-doctor-search button {
    padding: 0.375rem 0.75rem;
    border: none;
    background-color: #1d2a4d;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5rem;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
    width: 7.875rem;
}

/* Doctors Section */
.doctors-section {
    position: relative;
    padding: 6.25rem 0;
    background: #ffffff;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h5 {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5rem;
    text-transform: uppercase;
    color: #13c5dd;
    margin-bottom: 0.5rem;
    border-bottom: 5px solid rgb(222, 226, 230);
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 4.1875rem;
    color: #1d2a4d;
    max-width: 37.5rem;
}

.doctors-content {
    position: relative;
}

.doctors-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.doctors-wrapper {
    display: flex;
    gap: 2.5rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

.doctor-card {
    flex: 0 0 calc(50% - 1.25rem); /* 2 cards desktop */
    display: flex;
    background: #eff5f9;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.doctor-image {
    flex: 0 0 16.25rem;
    width: 16.25rem;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
    padding: 1.875rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    background: #eff5f9;
}

.doctor-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d2a4d;
}

.doctor-text span {
    display: block;
    font-style: italic;
    color: #13c5dd;
    margin-bottom: 0.75rem;
}

.doctor-text p {
    color: #848e9f;
    line-height: 1.5rem;
}

.doctor-socials {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ced4da;
}

.doctor-socials a {
    width: 3.125rem;
    height: 3.125rem;
    background: #13c5dd;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.3s ease;
}

.doctor-socials a:hover {
    background: #1d2a4d;
}

.doctor-arrow {
    position: absolute;
    top: 50%;
    width: 3.125rem;
    height: 3.125rem;
    background: #13c5dd;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 10;
    transition: background 0.3s ease;
    margin-inline: 3rem;
}

.doctor-arrow:hover {
    background: #1d2a4d;
}

.doctor-arrow.left {
    left: -1.5rem;
}

.doctor-arrow.right {
    right: -1.5rem;
}

/* Footer Section */
.footer-section {
    background-color: #1d2a4d;
    color: #fff;
}

.footer {
    padding-top: 6.25rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-links > div {
    flex: 1 1 15rem;
    min-width: 13.75rem;
}

.footer-links h2 {
    display: inline-block;
    color: #13c5dd;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.875rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-bottom: 5px solid rgb(53, 79, 142);
}

.footer-links p {
    display: block;
    color: #eff5f9;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.footer-links ul li i {
    color: #13c5dd;
    font-size: 0.875rem;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #13c5dd;
}

.get-in-touch .location,
.get-in-touch .envelope,
.get-in-touch .phone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.get-in-touch i {
    color: #13c5dd;
}

.newsletter .subscribe-form {
    display: flex;
    width: 100%;
    max-width: 25rem;
    margin: 1rem 0 1.25rem;
}

/* INPUT */
.newsletter .subscribe-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.875rem;
    outline: none;
}

/* BUTTON */
.newsletter .subscribe-form button {
    border: 1px solid #13c5dd;
    background-color: #13c5dd;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
}

.newsletter .subscribe-form button:hover {
    background-color: #10a7bc;
}

/* FOLLOW TITLE */
.newsletter .follow-title {
    margin-top: 0.625rem;
    margin-bottom: 0.875rem;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-socials a {
    width: 1.875rem;
    height: 1.875rem;
    background-color: #13c5dd;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
    color: #1d2a4d;
}

.footer-content {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5625rem 0;
    margin-top: 3.75rem;
}

.footer-content .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-content span {
    color: #13c5dd;
    text-decoration: none;
}


/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .header-section,
    .header-section.fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        box-shadow: none;
    }

    .navbar.fixed {
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        box-shadow: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .header-contact {
        display: none;
    }

    .navbar {
        position: relative;
        padding: 0.625rem;
        flex-wrap: wrap; 
        margin-block: 0.625rem;
    }

    /* Show hamburger */
    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3.75rem;
        height: 2.8125rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
        position: absolute; 
        top: 8px;
        right: 0;
        z-index: 1000;
        transition: border-width 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
    }

    .hamburger-menu i {
        font-size: 1.5rem;
        color: #7c7979;
    }

    .hamburger-menu.active {
        border: 3px solid #7c7979; 
        padding: 6px;
    }

    .menus {
        position: relative; 
        flex-basis: 100%;
        width: 100%;
        background: #fff;
        flex-direction: column;
        display: none;
        padding: 0;
        margin-top: 1.25rem;
    }

    .menus.show {
        display: flex;
        top: 100%;
        width: 100%;
    }

    /* Dropdown inside mobile menu */
    .menus .dropdown {
        position: static; 
        display: none;    
        border: 1px solid #b9b9b9;
        border-radius: 5px;
        margin: 8px 0 0 0;
        width: 100%;
        box-shadow: none;
    }

    .menus .has-dropdown.active .dropdown,
    .menus .dropdown.show {
        display: block;
    }

    .menus .dropdown li a {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    /* About Us Section */
    .about-us-section {
        padding: 3.125rem 1rem;
    }

    .about-us-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-us-image {
        height: auto;
    }

    .about-us-image img {
        border-radius: 0.5rem;
        object-fit: cover;
    }

    .about-us-text {
        flex: 1 1 100%;
        gap: 1rem;
        text-align: left;
    }

    .about-us-text h2 {
        font-size: 2rem;
        line-height: 2.5rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .features-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        justify-items: center;
        padding: 0;
    }

    .features-list li {
        flex: none;
        width: 8.75rem;
        height: 8.75rem;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .features-list li i {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    .features-list li h6 {
        font-size: 0.85rem;
        margin: 0;
    }

     /* Find Doctor Section */
    .find-doctor-section {
        padding: 4rem 1.5rem; 
    }

    .find-doctor-content {
        width: 90%; 
        margin: 0 auto; 
        gap: 1rem;
    }

    .find-doctor-content h5 {
        font-size: 1rem;  
        line-height: 1.25rem;
        border-bottom-width: 3px;
        margin-bottom: 0.75rem;
    }

    .find-doctor-content h2 {
        font-size: 2rem; 
        line-height: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .find-doctor-content p {
        font-size: 1rem; 
        line-height: 1.25rem;
        margin-bottom: 1rem;
    }

    .fin-doctor-search {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        height: auto;
    }

    .fin-doctor-search select,
    .fin-doctor-search input,
    .fin-doctor-search button {
        width: 100%;
        border-radius: 5px;
        font-size: 0.95rem; 
        height: 3rem; 
    }

    .fin-doctor-search button {
        border-radius: 5px;
        font-weight: 600;
    }

    /* Doctors Section */
    .doctors-section {
        padding: 2rem 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
        line-height: 2.8rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .doctors-slider {
        overflow: hidden; 
        width: 100%;
        position: relative;
    }

    .doctors-wrapper {
        display: flex;
        gap: 0; 
        width: 100%;
        transition: transform 0.5s ease;
    }

    .doctor-card {
        flex: 0 0 100%; 
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        background: transparent; 
        padding: 0 1rem; 
        box-sizing: border-box;
    }

    .doctor-image, 
    .doctor-info {
        background: #eff5f9;
        width: 100%;
    }

    .doctor-image {
        height: 18.75rem;
        flex: none;
    }

    .doctor-info {
        padding: 2rem;
        text-align: center;
    }

    .doctor-socials {
        justify-content: center;
    }

    .doctor-arrow {
        width: 2.5rem;
        height: 2.5rem;
        z-index: 10;
        margin: 0;
    }

    .doctor-arrow.left { left: 5px; }
    .doctor-arrow.right { right: 5px; }

    /* Footer Section */
    .footer {
        padding-top: 4rem;
        gap: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2.5rem;
        padding: 0 1.25rem;
    }

    .footer-links > div {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .footer-links h2 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .newsletter .subscribe-form {
        max-width: 100%;
    }

    .footer-content {
        margin-top: 2rem;
        padding: 1.5rem 1.25rem;
    }

    .footer-content .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-socials {
        justify-content: flex-start;
    }
}