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

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

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

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

/* Find Doctor Hero */
.find-doctor-hero {
    background: #13c5dd;
    padding: 100px 0;
    color: #fff;
}

.section-title h5 {
    color: #fff;
    text-transform: uppercase;
    border-bottom: 3px solid #dee2e6;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h1 {
    color: #1d2a4d;
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.search-form-box {
    display: flex;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    padding: 0;
}

.search-form-box select, 
.search-form-box input {
    border: none;
    padding: 15px;
    flex: 1;
    outline: none;
}

.search-form-box button {
    background: #1d2a4d;
    color: #fff;
    border: none;
    padding: 0 40px;
    font-weight: 700;
    cursor: pointer;
}

/* Doctors Grid Results */
.results-section {
    padding: 80px 0;
    background: #fff;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.doctor-card {
    display: flex;
    background: #eff5f9;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.doctor-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.doctor-img {
    flex: 0 0 40%;
}

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

.doctor-details {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.doc-text h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.doc-text span {
    color: #13c5dd;
    font-style: italic;
    display: block;
    margin-bottom: 15px;
}

.doc-socials {
    display: flex;
    gap: 10px;
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.doc-socials a {
    width: 35px;
    height: 35px;
    background: #13c5dd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button */
.blog-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3.75rem;
}

.blog-btn button {
    width: 10.9375rem;
    height: 3.625rem;
    background-color: #13C5DD;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.blog-btn button:hover {
    color: #000;
}

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

/* Tablets and Small Desktops (max-width: 992px) */
@media (max-width: 992px) {
    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .subscribe {
        justify-content: center;
    }
}

/* Tablets + Mobiles */
@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;
    }

    .section-header {
        margin-top: 4rem;
    }

    .section-header h5 {
        font-size: 1rem;
    }

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

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

    .search-form-box {
        flex-direction: column;
        background: transparent;
    }

    .search-form-box select, 
    .search-form-box input, 
    .search-form-box button {
        width: 100%;
        border-radius: 5px;
        height: 50px;
        margin-bottom: 10px;
    }

    .doctor-card {
        flex-direction: column;
    }

    .doctor-img {
        height: 300px;
    }

    .section-title h1 {
        font-size: 2rem;
    }

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