/*
Theme Name: Greenwoods BC 2025
Theme URI: http://example.com/greenwoods-bc-2025
Author: Your Name
Author URI: http://example.com
Description: A custom WordPress theme with PHP templates, featuring a header image and green navigation bar. Designed for Greenwoods BC 2025.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: greenwoods-bc-2025
*/

/* =========================================================
   RESET & BASIC STYLES
   ========================================================= */

/* Reset some basic elements to ensure consistency across browsers */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,700&display=swap');

:root {
  --fontPrimary: 'Poppins', sans-serif;
  --colorGreen: #62b147;
  --colorWhite: #ffffff;
  --colorBlack: #1d1d1d;
  --colorGrey: #696a6d;
}

body {
  font-family: var(--fontPrimary) !important;
}


body {
    /* font-family: Arial, Helvetica, sans-serif; */
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #004999;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
    font-size: 17px;
    margin: 0 0 10px;
}

.custom-ln-ht p {
    line-height: 22px;
}

h3 {
    font-size: 23px;
}

.entry-content li {
    margin-left: 30px;
    font-size: 16px;
}

h2 {
    font-size: 30px;
    font-weight: 500;
	line-height: 1.1;
    margin-bottom: 10px;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================================
   HEADER
   ========================================================= */

.header-image {
    width: 100%;
    height: 300px;
    background-image: url('<?php echo esc_url( get_header_image() ); ?>');
    background-size: cover;
    background-position: center;
    position: relative;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 167, 69, 0.5); /* Optional: Overlay for better text visibility */
}

/* =========================================================
   NAVIGATION BAR
   ========================================================= */

.navbar {
    background-color: #62b143; /* Green background */
    padding: 15px 0;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar li {
    margin: 0 20px;
}

.navbar a {
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a:focus {
    color: #d4edda;
}

/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */

.site-main {
    flex: 1;
    max-width: 1140px;
    margin: 0 auto;
    background-color: #ffffff;
}

.entry-content {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
}

.page-links {
    margin-top: 20px;
}

.page-links a {
    color: #62b143;
    text-decoration: underline;
}

.page-links a:hover,
.page-links a:focus {
    color: #1e7e34;
}



/* =========================================================
   SIDEBAR (Optional)
   ========================================================= */

aside {
    background-color: #f8f9fa;
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.widget {
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #62b143;
}

.widget a {
    color: #0066cc;
}

.widget a:hover,
.widget a:focus {
    color: #004999;
}

/* =========================================================
   NO POSTS FOUND
   ========================================================= */

.no-posts {
    text-align: center;
    padding: 50px 20px;
}

.no-posts .entry-title {
    font-size: 2em;
    color: #d9534f; /* Bootstrap's danger color as example */
    margin-bottom: 20px;
}

.no-posts .entry-content {
    color: #777777;
    font-size: 1.1em;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 992px) {
    .navbar ul {
        flex-direction: column;
    }

    .navbar li {
        margin: 10px 0;
    }

    .entry-title {
        font-size: 2em;
    }

    .site-main {
        padding: 0px 15px;
    }
}

@media (max-width: 768px) {
    .header-image {
        height: 200px;
    }

    .navbar {
        padding: 10px 0;
    }

    .navbar a {
        font-size: 0.9rem;
    }

    .entry-title {
        font-size: 1.8em;
    }


}

@media (max-width: 576px) {
    .header-image {
        height: 150px;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar li {
        margin: 8px 0;
    }

    .site-main {
        padding: 0px 10px;
    }

    .entry-title {
        font-size: 1.5em;
    }

 
}

/* =========================================================
   UTILITIES
   ========================================================= */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

/* =========================================================
   POSTS PAGE
   ========================================================= */
   
.single-post-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Post Content */
.post-content {
    flex: 2;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

/* ===========================
   RELATED POSTS SECTION
   =========================== */
   
/* ===========================
   SINGLE POST PAGE LAYOUT
   =========================== */
.single-post-wrapper {
    /* display: flex; */
    gap: 30px;
    /* max-width: 1200px; */
    margin: 0 auto;
    align-items: flex-start;
}

/* Main Post Content */
.post-content {
    flex: 2;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

/* Sidebar - Related Posts */
.related-posts {
    flex: 1;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    min-width: 250px;
}

/* Ensure sidebar stays to the right */
@media (max-width: 1024px) {
    .single-post-wrapper {
        flex-direction: column;
    }

    .related-posts {
        max-width: 100%;
        margin-top: 30px;
    }
}

/* "More Like This" Title */
.related-posts h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #62b143;
    padding-bottom: 8px;
}

/* List of Related Posts */
.related-posts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Individual Related Post */
.related-post {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.related-thumbnail img {
    width: 100%;
    border-radius: 5px;
}

/* Related Post Title */
.related-post h3 {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}

.related-post a {
    text-decoration: none;
}

.related-post a:hover h3 {
    color: #62b143;
}


/* ===========================
   POST THUMBNAIL STYLES
   =========================== */
.post-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: auto; /* Allow it to adjust */
    max-height: 300px;
    overflow: hidden;
}

/* Ensures the image resizes dynamically */
.post-thumbnail {
    width: 100%;
    height: auto; /* Make it dynamic */
}


.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    max-height: 300px; /* Limits the max height */
}

/* Title Overlay */
.entry-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white;
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    height: 100%;
    overflow: hidden;
    word-wrap: break-word;
}

/* Dynamically adjust text size if too long */
@media (max-width: 768px) {
    .entry-title {
        font-size: 1.8em;
        padding: 10px;
    }
    .post-thumbnail-wrapper {
        max-height: 250px; /* Reduce for mobile */
    }
}

/* Hide the element by default */
.mobileonly {
  display: none;
}

/* Show the element on mobile devices */
@media only screen and (max-width: 767px) {
  .mobileonly {
    display: block; /* Use inline or inline-block as needed */
  }
}

section.call-button {
    position: relative;
}


@media (max-width: 768px) {
    section.call-button .cc-calto-action-ripple {
        padding: 0.5rem 1rem;
    }

    section.call-button .cc-calto-action-ripple i {
        font-size: 1.8rem;
    }
}
.icon-list li {
    list-style-type: none;
    line-height: 22px;
    padding: 0 0 10px 15px;
    position: relative;
}
.icon-list li::after {
    content: "";
    position: absolute;
    background: url(//greenwoodsdental.com/wp-content/uploads/2018/02/icon-right.png) no-repeat;
    height: 10px;
    width: 6px;
    left: 0;
    top: 7px;
}

.h1, .h2, .h3, h1, h2, h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}
.wpb_button, .wpb_content_element, ul.wpb_thumbnails-fluid > li {
    min-height: 75px;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}
a {
    text-decoration: none;
    color: #337ab7;
    background-color: transparent;
}

/* Hide the spacer on tablet & desktop */
@media (min-width: 768px){
  .hideondesktop{ display: none; }
}

/* ===============================
   Contact-card buttons (Greenwoods)
   =============================== */
.gwd-contact {
  display:block;
  margin-bottom:10px;
  padding:10px;
  border-radius:8px;
  text-decoration:none;
  display:flex;                /* align icon + text */
  align-items:center;
  font-weight:500;             /* optional – tweak as you like */
}

/* remove extra bottom-margin on the last card if needed */
.gwd-contact:last-child{margin-bottom:0;}

.gwd-contact__icon{
  font-size:1.5em;
  margin-right:10px;
}

/* Theme variants */
.gwd-contact--call  {background:#e6fedf;color:#66885c;}
.gwd-contact--email {background:#e6f7ff;color:#3399cc;}
.gwd-contact--book  {background:#f3e6ff;color:#8a4fc4;}
.gwd-contact--map   {background:#fffbe6;color:#b59f3b;}

/* keep links underline-free on hover/focus */
.gwd-contact:hover,
.gwd-contact:focus{
  text-decoration:none;
}

/* Shrink button text & icon size on small screens */
@media (max-width: 480px){
  .gwd-contact{
    font-size:0.95rem;        /* adjust as needed */
  }
  .gwd-contact__icon{
    font-size:1.2em;          /* keeps icon balanced with smaller text */
  }
}


.designation-buttons a {
    border: none;
    background-color: #62b143;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: .5s;
}
.designation-buttons a:hover {
    background-color: #60b143;
    color: #fff;
    text-decoration: none;
    scale: 1.2;
    transition: .5s;
}
.selector {
    text-align: center;
    margin-bottom: 10px;
}
.team-dropdown, 
.languageSelector,
.team-select.form-control {
    display: inline-block;
}
.team-select {
    background-color: #62b143;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    width: auto;
    padding-right: 20px;
    padding: 6px 12px;
    padding-right: 18px;
}
.languageSelector {
    vertical-align: top;
  }
  #language-select {
    height: 34px;
    padding: 6px 12px;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .team-select option {
    color: #62b143;
    background-color: white;
  }
  .modal{
    z-index: 9991;
  }
  .team-dropdown::after {
    content: '▼';
    position: relative;
    right: 25px;
    color: white;
    font-size: 16px;
    pointer-events: none;
    padding-top: 7px;
    bottom: 1px;
  }

  /* ---------- Card shell ---------- */
  .service-card{
    aspect-ratio:1/1;   /* height now equals width */
    width:100%;        

    display:block;
    position:relative;
    overflow:hidden;
    border-radius:16px;
    text-decoration:none;
    color:inherit;
    perspective:900px;
    cursor:pointer;
  }
  .fx{
    --shadow:0 6px 18px rgba(0,0,0,.18);
    --shadow-hover:0 18px 40px rgba(0,0,0,.28);
    transition:transform .5s cubic-bezier(.25,.46,.45,.94),box-shadow .5s;
    box-shadow:var(--shadow);
  }
  .fx:hover{
    transform:rotateX(4deg) rotateY(-6deg) scale(1.04);
    box-shadow:var(--shadow-hover);
  }
  
  /* Accent glow */
  .service-card::before{
    content:"";
    position:absolute;
    inset:-2px;
    background:conic-gradient(from 180deg at 50% 50%,
               rgba(98,177,67,0) 0deg,
               rgba(98,177,67,.4) 60deg,
               rgba(98,177,67,0) 300deg);
    filter:blur(12px);
    opacity:0;
    transition:opacity .6s;
    pointer-events:none;
  }
  .fx:hover::before{opacity:1;}
  
  /* ---------- Image ---------- */
  .service-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;   /* cover the square—no stretching */
  }
    .service-thumb,
    .service-thumb img{
    position:absolute;
    inset:0;            /* stretch to all edges of the card */
    }
  
  /* ---------- Overlay (text always visible) ---------- */
  .service-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:center;
    padding:32px 24px;
    background:linear-gradient(180deg,
               rgba(0,0,0,0) 35%,rgba(0,0,0,.65) 100%);
    color:#fff;
    text-align:center;
    transition:background .35s ease;
    pointer-events:none;
  }
  .fx:hover .service-overlay{
    background:linear-gradient(180deg,
               rgba(0,0,0,0) 20%,rgba(0,0,0,.75) 100%);
  }
  
  /* ---------- Heading ---------- */
  .service-overlay h3{
    margin:0 0 12px;
    font-size:1.25rem;
    line-height:1.3;
    text-shadow:2px 2px 4px rgba(0,0,0,.4);
  }
  
  /* ---------- CTA pill ---------- */
  .service-cta{
    display:inline-block;
    background:#62b143;
    padding:10px 22px;
    border-radius:999px;
    font-size:.92rem;
    font-weight:600;
    letter-spacing:.3px;
    pointer-events:auto;
    position:relative;
    overflow:hidden;
    transition:background .35s ease,transform .35s ease;
  }
  .fx:hover .service-cta{
    background:#4b8d34;
    transform:scale(1.08);
  }
  /* Shimmer */
  .service-cta::after{
    content:"";
    position:absolute;
    top:0; left:-110%;
    width:60%; height:100%;
    background:linear-gradient(120deg,
              transparent 0%,rgba(255,255,255,.45) 50%,transparent 100%);
    transform:skewX(-25deg);
    transition:left .9s cubic-bezier(.4,.6,.2,1);
  }
  .fx:hover .service-cta::after{left:130%;}

    /* 2-by-2 grid, centered on the page */
    .gw-location-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);  /* two per row */
        gap: 12px;
        max-width: 600px;                       /* adjust as needed */
        margin: 0 auto;                         /* center grid block */
      }
    
      .gw-location-btn {
        background: #fff;                    /* light green */
        color: #1f5d1f;                         /* dark green */
        padding: 12px 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;                    /* vertical centering */
        justify-content: center;                /* horizontal centering */
        font-weight: 600;
        font-size: 17px;                        /* fixed font size */
        text-decoration: none;
        width: 100%;                            /* equal widths */
        box-sizing: border-box;
        transition: background 0.2s ease-in-out, transform 0.3s ease-in-out;
      }
    
      .gw-location-btn:hover {
        background: #d4f7d4;                    /* subtle hover */
        text-decoration: none;                  /* no underline */
        transform: scale(1.1);                  /* slight zoom */
      }
    
      .gw-icon {
        margin-right: 8px;
        font-size: 1.2em;
        line-height: 1;
      }

        /* ===== Wrapper for the three feature cards ===== */
  .gwd-features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2rem;
  }

  /* ===== Clickable card ===== */
  .gwd-feature{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:1.8rem;
    background:#fff;                 /* white card */
    border-radius:10px;
    border-top:4px solid #62b143;    /* green accent */
    box-shadow:0 2px 6px rgba(0,0,0,.08);
    transition:transform .25s ease, box-shadow .25s ease;
    text-decoration:none;            /* no underline */
    color:inherit;                   /* prevent default link colours */
  }
  .gwd-feature:hover{
    transform:translateY(-6px);      /* lift effect */
    box-shadow:0 12px 18px rgba(0,0,0,.15);
  }

  /* --- keep colours + no underline in all link states --- */
  .gwd-feature,
  .gwd-feature:visited,
  .gwd-feature:hover,
  .gwd-feature:focus{
    color:inherit;
    text-decoration:none;
  }
  .gwd-feature__title,
  .gwd-feature__text{color:#222;}     /* explicit text colour */
  .gwd-feature:hover .gwd-feature__title,
  .gwd-feature:hover .gwd-feature__text{color:#222;}

  /* ===== Icon circle ===== */
  .gwd-feature__icon{
    width:64px;height:64px;border-radius:50%;
    background:#62b143;
    display:flex;justify-content:center;align-items:center;
    margin-bottom:1rem;
  }
  .gwd-feature__icon i{font-size:1.75rem;color:#fff;}

  /* ===== Title & body ===== */
  .gwd-feature__title{font-size:1.1rem;font-weight:600;margin:0 0 .5rem;}
  .gwd-feature__text{font-size:1rem;line-height:1.55;margin:0 0 1.4rem;}

  /* ===== Button look-alike ===== */
  .gwd-btn{
    margin-top:auto;
    padding:.55rem 1.4rem;
    background:#62b143;color:#fff;
    border-radius:4px;font-weight:600;
    pointer-events:none;             /* whole card stays clickable */
    transition:background .2s;
  }
  .gwd-feature:hover .gwd-btn{background:#4b8e35;}

  /* ===== Mobile stacking ===== */
  @media (max-width:768px){
    .gwd-features{grid-template-columns:1fr;}
  }

  .gw-row{display:flex;gap:2rem;overflow:visible!important;}
.gw-col{flex:1 1 0;}
.gw-col--image{position:relative;}
.gw-sticky-img{position:sticky;top:0;width:100%;height:auto;display:block;}

[data-vc-full-width]{overflow:visible!important;transform:none!important;}
[data-vc-full-width]+.vc_row-full-width{overflow:visible!important;}
.gw-col--image .vc_column-inner,
.gw-col--text  .vc_column-inner{overflow:visible!important;}

@media (max-width:767.98px){
  .gw-row{flex-direction:column;}             /* stack columns   */
  .gw-col--image{height:55vw;}                /* rectangle height */
  .gw-sticky-img{
    position:static;                          /* kill sticky      */
    height:100%;                              /* fill rectangle   */
    object-fit:cover;                         /* crop, not stretch*/
  }
}

.winnipegonly { display:none!important; }

div.bottom-menu .call-button .cc-calto-action-ripple {
    z-index: 99999;
    background: #62b143;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    /* Same as Book Appointment */
    box-sizing: border-box;
    color: #ffffff;
    animation: cc-calto-action-ripple 0.6s linear 0s 10 forwards, fade-out 0.6s linear 6s 1 forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  div.bottom-menu .call-button .cc-calto-action-ripple:hover {
    background-color: #559c37;
  }
  
  div.bottom-menu .call-button .cc-calto-action-ripple i {
    transition: 0.3s ease;
    font-size: 1.5rem;
    /* Adjusted for better alignment */
  }
  
  
/* Ripple Animation Keyframes */
@keyframes cc-calto-action-ripple {
    0% {
      box-shadow:
        0 4px 10px rgba(98, 177, 67, 0.2),
        0 0 0 0 rgba(98, 177, 67, 0.2),
        0 0 0 5px rgba(98, 177, 67, 0.2),
        0 0 0 10px rgba(98, 177, 67, 0.2);
    }
  
    100% {
      box-shadow:
        0 4px 10px rgba(98, 177, 67, 0.2),
        0 0 0 5px rgba(98, 177, 67, 0.2),
        0 0 0 10px rgba(98, 177, 67, 0.2),
        0 0 0 20px rgba(98, 177, 67, 0);
    }
  }
  
  /* Fade-Out Animation Keyframes */
  @keyframes fade-out {
    0% {
      box-shadow:
        0 4px 10px rgba(98, 177, 67, 0.2),
        0 0 0 5px rgba(98, 177, 67, 0.2),
        0 0 0 10px rgba(98, 177, 67, 0.2),
        0 0 0 20px rgba(98, 177, 67, 0);
    }
  
    100% {
      box-shadow: none;
      /* Removes the ripples smoothly */
    }
  }
  
 @media (max-width: 767px) {
  .service-card {
    height: 100px;
    aspect-ratio: auto;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
  }

  /* Remove the <img> visually on mobile */
  .service-thumb img {
    opacity: 0;
    visibility: hidden;
  }

  /* Use the image as background instead */
  .service-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: floatBackground 8s ease-in-out infinite;
  }

  .service-overlay {
    justify-content: center;
    padding: 0 12px;
    background: rgba(0,0,0,0.5);
  }

  .service-cta {
    display: none;
  }
}

/* New floating background animation */
@keyframes floatBackground {
  0%   { background-position: center 50%; }
  50%  { background-position: center 40%; }
  100% { background-position: center 50%; }
}


@media (max-width: 767px) {
  .gw-location-grid {
    grid-template-columns: 1fr; /* Only one column on mobile */
  }
}


.ifinancebg {
  background: url("https://file.greenwoodsdental.com/kids/bg-ifinance.png") no-repeat center center;
  background-size: cover;
  padding-top: 30px; padding-bottom: 30px;
}