* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", serif;
}

h1,
h2,
h3,
h4 {
    text-align: center;
    font-display: swap;
}

button {
    border: none;
    outline: none;
}

/* Site Header */
.site-header {
    padding: 10px 20px;
    background-color: #fff;
    position: relative;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 120px;
}

.site-navigation {
    display: flex;
    align-items: center;
    z-index: 999;
    background-color: white;
}

.nav-list {
    display: flex;
    list-style-type: none;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-link {
    color: #333;
    font-size: 18px;
    padding: 10px 7px;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-link:hover {
    color: #007bff;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid #ddd;
    background-color: white;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submenu-link {
    white-space: nowrap;
    color: #333;
    padding: 10px 7px;
    font-size: 14px;
    display: block;
    text-decoration: none;
}

.submenu-link:hover {
    background-color: #f4f4f4;
    color: #007bff;
}

.has-submenu:hover>.submenu,
.nav-link {
    display: block;
}

#show-mobile-menu {
    border: none;
    font-size: 34px;
    background-color: white;
    position: absolute;
    right: 30px;
    top: 50%;
    color: #333;
    transform: translateY(-50%);
    display: none;
}

#hide-mobile-menu {
    border: none;
    color: #333;
    display: none;
    padding: 0;
    width: 100%;
    position: absolute;
    top: 40px;
    right: 20px;
    transition: 0.5s ease;
}

#hide-mobile-menu button {
    background-color: white;
    font-size: 44px;
    border: none;
    margin-left: auto;
}

.home-section {
    width: 100%;
    height: 600px;
    min-height: 600px;
    background-color: #252525;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

#blogs-home-section {
    height: 400px;
    min-height: 400px;
}

.cover-container {
    position: relative;
}

.cover-container .cover-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.home-content {
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-content h1 {
    font-size: 34px;
    max-width: 800px;
    margin-bottom: 10px;
    position: relative;
}

.home-content p {
    font-size: 14px;
    max-width: 650px;
    line-height: 1.6;
    margin: 0 auto;
    position: relative;
}

.home-content p a {
    color: white;
}

/* About Section */
.about-section,
.what-theracounsel-can-do {
    background-color: #fff;
    padding: 40px 20px;
}

.title-container {
    text-align: center;
    margin-bottom: 40px;
}

.title-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.title-container span,
.title-container p {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
    font-weight: 400;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.about-container {
    min-height: 300px;
}

.about-container,
.what-theracounsel-can-do .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.about-container .left-side,
.what-theracounsel-can-do .right-side {
    flex: 1;
    padding: 20px;
}

.about-container h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: left;
}

.quote {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
}

.about-container p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.about-container ul {
    padding-left: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.about-container ul li {
    font-size: 13px;
    margin-bottom: 10px;
    color: #444;
}

.about-container .right-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-container .right-side img,
.what-theracounsel-can-do .left-side img {
    width: auto;
    height: auto;
    border-radius: 10px;
}

/* More About Us Section */
.more-about-us {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.more-about-us h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 30px;
}

.more-about-us .cards-container {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.more-about-us .card {
    border-radius: 10px;
    width: 350px;
}

.more-about-us .card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.more-about-us .card p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 80px;
}

.button-link {
    display: inline-block;
    padding: 12px 20px;
    background-color: #06c;
    color: #fff;
    font-size: 14px;
    border-radius: 20px;
    transition: background-color 0.3s;
    text-decoration: none;
}

.button-link:hover {
    background-color: #004d99;
}

/* What TheraCounsel Can Do Section */
.what-theracounsel-can-do .right-side h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.what-theracounsel-can-do .right-side p {
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

.what-theracounsel-can-do .right-side ul {
    list-style-type: disc;
    padding-left: 40px;
    margin-bottom: 30px;
}

.what-theracounsel-can-do .right-side ul li {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.what-theracounsel-can-do .button-link {
    margin-top: 20px;
}

/* Visit Us on Facebook Section */
.visit-us-facebook {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.visit-us-facebook .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.visit-us-facebook .logo-link img {
    width: 143;
    height: auto;
}

.visit-us-facebook .facebook-link {
    display: inline-block;
    font-size: 24px;
    font-weight: 500;
    color: #3b5998;
    text-decoration: none;
    margin-top: 10px;
}

.visit-us-facebook .facebook-link i {
    margin-right: 10px;
    font-size: 30px;
}

.site-footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-space {
    text-decoration: underline;
    color: white;
}

.specialists {
    text-align: center;
    padding: 60px 20px;
}

.specialists h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.specialists p {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    max-width: 1000px;
    text-align: center;
    margin: 0 auto;
}

.specialists-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.specialist-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 350px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.specialist-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
}

.specialist-card img {
    position: absolute;
    left: 0;
    top: 0;
    height: auto;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.specialist-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.specialist-card p {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.specialist-card ul {
    list-style-type: disc;
}

.specialist-card ul li {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* General reset for the form */
.request {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.request form {
    width: 100%;
    max-width: 600px;
    /* Limit form width for better appearance */
    margin: 0 auto;
    /* Center the form horizontally */
    padding: 20px;
    background-color: #f9f9f9;
    /* Light background for form */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Slight shadow for separation */
}

/* Title Container */
.request .title-container {
    text-align: center;
    margin-bottom: 30px;
}

.request .title-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.request .title-container p {
    font-size: 14px;
    color: #444;
}

/* Label Styles */
.request label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Input and Select Styles */
.request input[type="text"],
.request input[type="email"],
.request input[type="date"],
.request select,
.request textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f2f2f2;
    font-size: 14px;
    color: #333;
}

.request input[type="text"]:focus,
.request input[type="email"]:focus,
.request select:focus,
.request textarea:focus,
.request input[type="date"]:focus {
    outline: none;
    border-color: #66afe9;
    background-color: #fff;
}

.request button[type="submit"],
.request button {
    width: 100%;
    padding: 12px;
    background-color: #06c;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.doctor-grid .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 90%;
    margin: 0 auto;
}

.doctor-grid .grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-grid .grid-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.doctor-grid .grid-item img:hover {
    transform: scale(1.05);
}

.resources-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.title-container {
    text-align: center;
    margin-bottom: 30px;
}

.title-container h2 {
    font-size: 2rem;
    color: #333;
}

.title-container p {
    font-size: 14px;
    color: #444;
}

.resources-table-container {
    overflow-x: auto;
}

.resources-table {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resources-table th,
.resources-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.resources-table th {
    background-color: #f1f1f1;
    font-size: 14px;
    color: #333;
}

.resources-table td {
    font-size: 13px;
    color: #444;
}

.resources-table a {
    color: #056bd2;
    font-weight: 600;
    text-decoration: none;
}

.resources-table a:hover {
    text-decoration: underline;
}

.resources-table .answer ul {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 20px;
    margin-bottom: 20px;
}

.faq-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.faq-images-grid .image-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.privacy-policy {
    background-color: #f5f5f5;
    padding: 40px 20px;
}

.privacy-policy .inner {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy-policy .inner h1 {
    font-size: 34px;
    font-weight: 400;
    text-align: left;
    color: #333;
}

.privacy-policy .inner p {
    line-height: 1.5;
    font-size: 13px;
    color: #444;
}

.privacy-policy .inner ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 40px;
    font-size: 13px;
    color: #444;
}

.wide-blog-image {
    height: 100% !important;
    object-fit: cover;
}

.blog-card-hyperlink {
    text-decoration: none;
    color: #222;
}

.article-section {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
}

.article-section .publish-date {
    font-size: 11px;
    color: #555;
    margin-bottom: 20px;
}

.article-section div.content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    position: relative;
}

.article-section a {
    color: blue;
}

@media (max-width: 1150px) {
    .doctor-grid .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container .right-side img,
    .what-theracounsel-can-do .left-side img {
        max-width: 100%;
    }

    #call-to-action {
        margin-right: 60px;
    }

    /* .header-container {
        flex-direction: column;
        align-items: flex-start;
    } */

    .site-navigation {
        width: 100%;
        height: 100%;
        position: fixed;
        left: -100%;
        top: 0;
        overflow-y: auto;
        display: block;
        padding-top: 100px;
        padding-bottom: 20px;
        padding-left: 20px;
        transition: 0.4s ease;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }

    .nav-link {
        font-size: 5vw;
    }

    .submenu {
        position: static;
        display: block;
        padding-left: 40px;
        background-color: transparent;
        box-shadow: none;
        border: none;
        width: 100%;
    }

    .submenu-link {
        font-size: 4.5vw;
        color: #888;
    }

    #show-mobile-menu {
        display: block;
    }

    .home-section {
        background-size: cover;
        height: auto;
        padding: 40px 20px;
    }

    .home-content h1 {
        font-size: 32px;
        max-width: 600px;
    }

    .about-container,
    .what-theracounsel-can-do .container {
        flex-direction: column;
        align-items: center;
    }

    .about-container .right-side.swapped {
        order: 1;
    }

    .about-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .about-container .left-side,
    .what-theracounsel-can-do .right-side {
        flex: 1;
        padding: 20px;
    }

    .more-about-us .cards-container {
        flex-direction: column;
        gap: 10px;
    }

    .more-about-us .card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .faq-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .resources-table th,
    .resources-table td {
        font-size: 0.9rem;
        padding: 10px;
    }

    .request form {
        padding: 15px;
    }

    .request .title-container h2 {
        font-size: 22px;
    }

    .request .title-container p {
        font-size: 14px;
    }

    .request button[type="submit"] {
        font-size: 16px;
    }

    .home-section h1 {
        font-size: 28px;
    }

    .home-content p {
        font-size: 12px;
    }

    .about-container,
    .what-theracounsel-can-do .container {
        flex-direction: column;
    }

    .about-container .left-side,
    .what-theracounsel-can-do .right-side {
        padding: 15px;
    }

    .more-about-us .cards-container {
        flex-direction: column;
    }

    .visit-us-facebook .facebook-link {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
     #header-phone-container{
        align-items: flex-start !important;
    }
    
    .doctor-grid .grid-container {
        grid-template-columns: 1fr;
    }

    #call-to-action {
        font-size: 12px;
        padding: 5px 5px;
        /* margin-right: 40px; */
    }

    .header-container .logo img {
        transform: scale(0.6);
    }

    .site-header {
        padding: 0;
    }
    
    #header-phone-number{
        font-size: 12px;
    }
}

/* Chatbox ========================================================= */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #06c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chat-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 100%;
    max-width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: #06c;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-header div {
    font-size: 16px;
}

.chat-header span {
    font-size: 12px;
    font-weight: 500;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.chat-body {
    height: 250px;
    padding: 10px;
    overflow-y: auto;
    background: #f4f4f4;
}

.msg-user,
.msg-admin {
    padding: 10px;
    margin: 10px 5px;
    border-radius: 10px;
    max-width: 70%;
    font-size: 14px;
    overflow-y: auto;
}

.msg-user {
    background: #06c;
    color: white;
    align-self: flex-end;
}

.msg-admin {
    background: #ddd;
    color: black;
    align-self: flex-start;
    margin-left: auto;
}

.chat-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
}

.chat-footer input {
    flex: 1;
    border: none;
    padding: 5px;
    resize: none;
    height: 40px;
    font-size: 14px;
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    cursor: pointer;
}

.chat-footer svg {
    width: 24px;
    height: 24px;
    fill: #06c;
}

@media (max-width: 400px) {
    .chat-window {
        max-width: 90%;
    }
}

/* Chatbox End ===================================================== */