/* General Styles - style.css */
:root {
    --primary-color: #62b143;
    /* Green */
    --secondary-color: #6c757d;
    /* Gray */
    --text-color: #333333;
    --background-color: #f9f9f9;
    --header-height: 300px;
    --navbar-padding: 15px 0;
}

/* General body styles */
body {
    font-family: "Lato", serif;
    line-height: 1.4;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

/* Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Header Styles */
.site-header {
    position: relative;
    height: var(--header-height);
    background-size: cover;
    background-position: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 167, 69, 0.5);
    /* Semi-transparent green overlay */
}

.site-branding {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #ffffff;
}

.site-title {
    font-size: 2.5em;
    margin: 0;
}

.site-description {
    font-size: 1.2em;
}

/* Navigation Bar Styles */
.navbar {
    background-color: var(--primary-color);
    padding: var(--navbar-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Desktop version: Horizontal Menu */
.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin-right: 20px;
    white-space: nowrap;
}

.navbar ul li:last-child {
    margin-right: 0;
}

.navbar a {
    color: #ffffff;
    font-weight: bold;
}

/* Mobile Navigation Styles */
div#menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    position: absolute;
    z-index: 100;
}

/* Modal Menu - For mobile only */
.menu-modal {
    height: 35px;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    div#menu-toggle {
        display: block;
        /* Show the hamburger button on mobile */
    }

    .navbar {
        position: relative;
    }

    .navbar ul {
        display: none;
        /* Hide the menu by default */
        flex-direction: column;
        position: absolute;
        width: 100%;
        z-index: 99;
        opacity: 0;
        transition: opacity 500ms ease-in-out;
    }

    .navbar ul.active {
        display: block;
        opacity: 1;
        height: 100vh;
        max-height: 100vh;
        overflow: auto;
        visibility: visible;
    }

    .navbar ul li {
        margin: 10px 0;
        text-align: center;
    }

    .navbar ul li a {
        color: #ffffff;
        text-decoration: none;
        padding: 10px 15px;
        display: block;
    }

    .navbar ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Show the submenu when its parent item is active */
    .menu-item.active .sub-menu {
        display: block;
        opacity: 1;
    }

    .menu-item .sub-menu li a {
        color: #ffffff;
        text-decoration: none;
        padding: 5px 15px;
        display: block;
    }

    .menu-item .sub-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }


    /* Triangle for items with submenus */
    .menu-item-has-children>a::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 6px solid #fff;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-right: 6px solid transparent;
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

    /* Rotate the arrow when submenu is visible */
    .menu-item-has-children.active>a::after {
        transform: rotate(90deg);
    }

    /* Ensure modal is fully visible when active */
    .menu-modal.active {
        left: 0;
    }

    /* Modal close button */
    .close-modal-btn {
        position: absolute;
        top: 0;
        right: 20px;
        background: none;
        border: none;
        color: #fff;
        font-size: 30px;
        cursor: pointer;
    }

    .gwdrs-review-text {
        font-size: 15px;
        -webkit-line-clamp: 6;
      }
      .gwdrs-header {
        font-size: 1em;
      }
    
}

.navbar ul.sub-menu {
    display: none;
}

/* Main Content Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Entry Header */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.5em;
    color: var(--primary-color);
}

/* Entry Meta */
.entry-meta {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-top: 10px;
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Entry Content */
.entry-content {
    font-size: 1.2em;
    color: var(--text-color);
}

/* .entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.entry-content a:hover,
.entry-content a:focus {
    color: #1e7e34;
    text-decoration: none;
} */

/* Entry Footer */
.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.9em;
    color: var(--secondary-color);
}

.cat-links,
.tags-links,
.comments-link {
    margin-right: 15px;
}

.edit-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
}

.edit-link a {
    color: var(--primary-color);
    text-decoration: underline;
}

.edit-link a:hover,
.edit-link a:focus {
    color: #1e7e34;
    text-decoration: none;
}



.footer-widgets {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 20px auto;
}

.footer-widget-area {
    flex: 1 1 30%;
    margin: 10px;
}

.footer-widget-area .widget-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.footer-widget-area .widget a {
    color: #0066cc;
    text-decoration: none;
}

.footer-widget-area .widget a:hover,
.footer-widget-area .widget a:focus {
    color: #004999;
    text-decoration: underline;
}

.site-info {
    text-align: center;
    font-size: 0.9em;
    color: #777777;
}

.site-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-info a:hover,
.site-info a:focus {
    color: #1e7e34;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-widgets {
        flex-direction: column;
        align-items: center;
    }

    .footer-widget-area {
        flex: 1 1 100%;
        max-width: 500px;
    }
}

/* No Posts Found */
.no-posts {
    text-align: center;
    padding: 50px 20px;
}

.no-posts .entry-title {
    font-size: 2em;
    color: #d9534f;
    /* Example: Bootstrap's danger color */
    margin-bottom: 20px;
}

.no-posts .entry-content {
    color: #777777;
    font-size: 1.1em;
}

body.modal-open {
    overflow-y: hidden;
    /* Disable body scrolling */
    height: 100vh;
}

/* Responsive Design */
@media (max-width: 768px) {
    .entry-title {
        font-size: 2em;
    }

    .entry-content {
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .entry-title {
        font-size: 1.8em;
    }

    .entry-content {
        font-size: 1em;
    }
}

/* Close button styles */
.close-modal-btn {
    display: inline-block;
    top: 0;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    margin-bottom: 20px;
    position: absolute;
}

/* Menu styling */
.menu-header {
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: 100vh;
    max-height: 100vh;
}

.menu-header>li {
    padding: 10px;
    border-bottom: 1px solid #444;
}

.menu-header>li>a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.menu-header>li>a:hover {
    background-color: #555;
}

/* Hide submenus by default */
.navbar ul.sub-menu {
    position: absolute;
    z-index: 999;
}

.bottom-menu {
    display: none;
}

/* Mobile version: When the menu is active */
@media (max-width: 768px) {
    #menu- oggle {
        display: block;
    }

    /* Ensure modal is fully visible when active */
    .menu-modal.active {
        left: 0;
    }

    div.vc_row {
        margin: 0;
    }

    #menu-navigation .active~body {
        overflow-y: hidden;
    }

    /* Modal background (overlay) */
    .menu-modal {
        position: fixed;
        top: 0;
        left: -100%;
        /* Initially hidden off-screen */
        width: 100%;
        /* Width of the menu */
        height: 100%;
        background-color: #333;
        color: #fff;
        transition: left 0.3s ease;
        /* Smooth transition when sliding in */
        z-index: 999999;
        padding-top: 40px;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        overscroll-behavior: contain;
    }

    .navbar ul.sub-menu {
        position: relative;
        background-color: #333;
        z-index: 999;
    }

    .sub-menu li.menu-item {
        background-color: #62b147;
    }

    .navbar ul.sub-menu li {
        margin: 0;
        text-align: center;
    }

    .sub-menu li:hover {
        background: #717171 !important;
        font-weight: normal;
        text-decoration: none;
        color: #666 !important;
    }

    .bottom-menu {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-around;
        /* Distribute buttons evenly */
        background-color: #333;
        padding: 10px;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    /* Button styles */
    .menu-btn {
        padding: 10px 20px;
        font-size: 16px;
        color: white;
        background-color: #62b147;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    #chat {
        padding: 8px 15px;
    }
    .default-breadcrumb .active .link {
        width: 120px;
    }
    .inner-top-title {
        width: 100%;
        font-size: 24px !important;
    }
}

@media (min-width: 768px) {
    body #menu-modal {
        width: 100% !important;

    }

    /* Show the submenu when hovering over the parent menu item */
    .navbar ul li.menu-item-has-children:hover>.sub-menu {
        display: block;
    }

    .sub-menu {
        width: 200px;
    }

    .sub-menu li.menu-item {
        transition: none;
        border-radius: 0;
        box-shadow: none;
        background: none;
        border: 0;
        bottom: auto;
        box-sizing: border-box;
        clip: auto;
        color: #666;
        display: block;
        float: none;
        font-family: inherit;
        font-size: 14px;
        height: auto;
        left: auto;
        line-height: 1.7;
        list-style-type: none;
        margin: 0;
        min-height: auto;
        max-height: none;
        min-width: auto;
        max-width: none;
        opacity: 1;
        outline: none;
        overflow: visible;
        padding: 0;
        position: relative;
        pointer-events: auto;
        right: auto;
        text-align: left;
        text-decoration: none;
        text-indent: 0;
        text-transform: none;
        transform: none;
        top: auto;
        visibility: inherit;
        width: auto;
        word-wrap: break-word;
        white-space: normal;
    }

    .sub-menu .menu-item a {
        display: block;
        background: #f1f1f1;
        color: #666;
        font-family: inherit;
        font-size: 14px;
        font-weight: normal;
        padding: 0px 10px 0px 10px;
        line-height: 35px;
        text-decoration: none;
        text-transform: none;
    }

    ul.sub-menu a:hover {
        background: #ddd;
        font-weight: normal;
        text-decoration: none;
        color: #666;
    }
}

.hours .viewHoursLink {
    font-size: 14px;
    font-weight: bold;
    text-align: right;
    margin-top: -6px;
    color: darkgreen;
    white-space: nowrap;
    text-decoration: none;
}


/* Ensure dropdown maintains its size */
.locationDropdown {
    position: relative;
    display: inline-block;
    width: 250px;
    /* Set a fixed width */
}

.locationDropdown select {
    font-size: 16px;
    padding: 8px 10px;
    background-color: transparent;
    color: white;
    width: 100%;
    /* Ensure it takes full width of the container */
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    appearance: none;
    /* Remove default browser styling */
    text-indent: 20px;
    /* Offset text to make space for the icon */
}

/* Remove border and outline on focus/click */
.locationDropdown select:focus,
.locationDropdown select:active {
    border: none;
    outline: none;
    box-shadow: none;
}

/* Add a location icon before the dropdown */
.locationDropdown::before {
    font-family: "FontAwesome";
    content: "\f3c5";
    /* FontAwesome location pin icon */
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    /* Change to match your design */
    font-size: 16px;
    pointer-events: none;
}

/* Styling dropdown options */
.locationDropdown select option {
    color: #333;
    background-color: #fff;
}

@media only screen and (max-width: 768px) {
    .hideonmobile {
      display: none;
    }
  }
  
  .leavesbg {
    background: url("https://file.greenwoodsdental.com/bg-booking.png") no-repeat center center;
    background-size: cover;
    padding-top: 30px; padding-bottom: 30px;
  }
  
    .mapbg {
    background: url("https://file.greenwoodsdental.com/winnipeg/headers/canadamapfaded.png") no-repeat center center;
    background-size: cover;
    padding-top: 30px; padding-bottom: 30px;
  }
  
  .whiteimgborder img {
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  
  .imgradius img {
    border-radius: 8px;
  }
  
  .whitebox {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    background-color: #fff;
    padding: 10px;
  }
  .vc_do_message {
    padding: .8em .5em .8em 4em !important;
    font-size: 16px !important;
  }
  
    
/* Styling for the Social Icons */
.social-icons {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.social-icons .chat-icon {
    font-size: 22px;
}
.social-icons .social-icon {
    margin: 0 6px;
    color: #fff;
    font-size: 18px;
  }
  