/*
Theme Name: Hello Elementor Child
Theme URI:
Description: Child theme for Hello Elementor with early-loading CSS
Author: YP
Author URI:
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Your custom CSS starts here */

.copyright,  .copyright p {
    display: flex;
    align-items: center!Important;
    gap: 7px!important;
}


.dental-hours {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px;
    background: #fffdf8;
    border: 1px solid #eadfc9;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;
    font-family: inherit;
}

.dental-hours h3 {
    margin: 0 0 16px;
    color: #30251a;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
}

.dental-hours .hours-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
}

.dental-hours .hours-table tr {
    border-bottom: 1px solid #eee6da;
}

.dental-hours .hours-table tr:last-child {
    border-bottom: none;
}

.dental-hours .hours-table td {
    padding: 12px 6px;
    border: none;
    color: #40372d;
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.dental-hours .hours-table td:first-child {
    width: 38%;
    text-align: left;
    font-weight: 600;
}

.dental-hours .hours-table td:last-child {
    width: 62%;
    text-align: right;
    white-space: normal;
}

.dental-hours .hours-table .closed-day td:last-child {
    color: #c14d2e;
    font-weight: 600;
}

.dental-hours .hours-table td {
    padding: 8px 6px;
    border: none;
    color: #40372d;
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .dental-hours {
        padding: 16px 12px;
    }

    .dental-hours h3 {
        font-size: 20px;
    }

    .dental-hours .hours-table td {
        padding: 10px 4px;
        font-size: 12px;
    }
}
/* Service cards */
.swd-service-card {
  position: relative;
  overflow: hidden!important;
  border-radius: 18px!important;
  isolation: isolate;
  transition: box-shadow 0.4s ease, transform 0.4s ease !important;
}
.swd-service-card:hover {
  box-shadow: 0 22px 48px rgba(35, 28, 18, 0.22);
  transform: translateY(-4px);
}
.swd-service-card:focus-within {
  outline: 3px solid #b8902a;
  outline-offset: 3px;
}
.swd-card__img {
  position: absolute !important;
  inset: 0;
  margin: 0 !important;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.swd-card__img .elementor-widget-container {
  height: 100%;
}
.swd-card__img img {
    width: 100%!important;
    height: 100%!important;
    object-fit: cover!important;
    transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.swd-service-card:hover .swd-card__img img,
.swd-service-card:focus-within .swd-card__img img {
  transform: scale(1.07);
}
.swd-card__overlay {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(35, 28, 18, 0.04) 28%,
    rgba(35, 28, 18, 0.9) 100%
  );
}
.swd-service-card .swd-card__text {
  position: relative;
  z-index: 2;
}
.swd-service-card .swd-card__btn {
  position: static;
  z-index: 2;
}
.swd-card__btn a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.swd-card__btn .elementor-button-text {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.swd-service-card:hover .swd-card__btn .elementor-button-text {
  border-bottom-color: #e2c26b;
}
.swd-service-card:hover .swd-card__btn .elementor-button-icon {
  transform: translateX(4px);
}
.swd-card__btn .elementor-button-icon {
  transition: transform 0.3s ease;
}
.swd-note {
  font-size: 13px;
}
/* About */
.swd-about__media {
  position: relative;
}
.swd-about__badge {
  position: absolute !important;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  max-width: calc(100% - 40px);
  box-shadow: 0 12px 30px rgba(35, 28, 18, 0.18);
}
/* Patient experience */
.swd-step {
  position: relative;
}
@media (min-width: 1025px) {
  .swd-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 36px;
    left: 96px;
    right: -28px;
    height: 1px;
    background: linear-gradient(90deg, #b8902a, rgba(184, 144, 42, 0));
  }
}

a.elementor-item.elementor-gallery-title.elementor-item-active, a.elementor-item.elementor-gallery-title:hover {
    background: #D79C2C;
    border-radius: 30px;
	border:1px solid #D79C2C;
}
a.elementor-item.elementor-gallery-title {
    padding: 7px 25px;
    transition: 0.3s;
    background: #f2eadb;
    border-radius: 30px;
    color: #d79c2c;
    border: 1px solid #E6DBC6;
}
.elementor-gallery__titles-container {
    gap: 10px;
}

.blog-sidebar article.elementor-post.elementor-grid-item {
    display: flex;
    flex-direction: row;
    column-gap: 25px;
}
/* Blog Categories Widget */
/* Remove hidden Categories heading spacing */
.blog-cate h5 {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove spacing above the category list */
.blog-cate .elementor-widget-container > nav {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Reset category list spacing */
.blog-cate ul {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.blog-cate .elementor-widget-wp-widget-categories ul,
.blog-cate ul {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

/* Category list items */
.blog-cate li {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #e9dfcf;
    transition: all 0.3s ease;
}

/* Category links */
.blog-cate li a {
    color: #252525;
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Category count */
.blog-cate li {
    color: #b78018;
    font-size: 13px;
}

/* Hover effect */
.blog-cate li:hover {
    background: #f5ecdc;
    padding-left: 18px;
}

.blog-cate li:hover a {
    color: #b78018;
}

/* Remove last border */
.blog-cate li:last-child {
    border-bottom: none;
}

/* Directions form - Saxon Woods Dental */
.swd-directions-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    font-family: "Inter", sans-serif;
}

.swd-directions-form label {
    margin: 0;
    padding: 8px 10px 8px 0;
    color: #6f6254;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

.swd-directions-form input[type="text"] {
    flex: 1;
    min-width: 120px;
    width: auto;
    height: 42px;
    padding: 0 12px;
    background: #fffdf9;
    color: #352a20;
    border: 1px solid #e6d8bf;
    border-radius: 4px 0 0 4px;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.swd-directions-form input[type="text"]:focus {
    border-color: #c58b19;
    outline: 0;
    border-radius: 0;
}

.swd-directions-form input[type="text"]::placeholder {
    color: #9b9184;
}

.swd-directions-form button {
    height: 42px;
    padding: 0 20px;
    background: #c58b19;
    color: #fff;
    border: 1px solid #c58b19;
    border-radius: 0 4px 4px 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.swd-directions-form button:hover {
    background: #a96f0b;
    border-color: #a96f0b;
}

@media (max-width: 600px) {
    .swd-directions-form {
        display: grid;
        grid-template-columns: 1fr auto;
        row-gap: 8px;
    }

    .swd-directions-form label {
        grid-column: 1 / -1;
        padding: 0;
    }

    .swd-directions-form input[type="text"] {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}


/* =========================================
   SAXON WOODS DENTAL — NAVIGATION DROPDOWNS
   ========================================= */

/* DESKTOP: Compact About dropdown */
@media (min-width: 1025px) {

    .e-n-menu-item:has(.short-dropdown) {
        position: relative !important;
    }

    .e-n-menu-content:has(.short-dropdown) {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        inset-inline-start: 0 !important;
        inset-inline-end: auto !important;
        width: max-content !important;
        min-width: 240px !important;
        max-width: 320px !important;
        margin: 0 !important;
        transform: none !important;
    }

    .short-dropdown {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 10px 8px !important;
        background: #fff !important;
        border: 0 !important;
        border-top: 3px solid #b36a06 !important;
        border-radius: 0 0 12px 12px !important;
        box-shadow: 0 24px 48px rgba(35, 28, 18, 0.18);
    }

    .short-dropdown .elementor-icon-list-items {
        gap: 2px;
    }

    .short-dropdown .elementor-icon-list-item > a {
        padding: 9px 12px;
        border-radius: 8px;
        transition: background-color 0.25s ease;
    }

    .short-dropdown .elementor-icon-list-item > a:hover,
    .short-dropdown .elementor-icon-list-item > a:focus-visible {
        background-color: #f2eadb;
    }

    .short-dropdown .elementor-icon-list-item > a:hover
    .elementor-icon-list-text,
    .short-dropdown .elementor-icon-list-item > a:focus-visible
    .elementor-icon-list-text {
        color: #8a6a12;
    }

    /* DESKTOP: Wide Services mega menu */
    .elementor-widget-n-menu .e-n-menu-content:has(.mega-menu) {
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 1300px !important;
        max-width: calc(100vw - 40px) !important;
        box-sizing: border-box !important;
        box-shadow: 0 24px 48px rgba(35, 28, 18, 0.18);
    }

    /*
     * Hover activation for desktop.
     * Requires Elementor to expose the dropdown on hover.
     */
    .elementor-widget-n-menu .e-n-menu-item:has(.mega-menu):hover
    > .e-n-menu-content,
    .elementor-widget-n-menu .e-n-menu-item:has(.mega-menu):focus-within
    > .e-n-menu-content {
        visibility: visible;
        opacity: 1;
    }
}

/* TABLET & MOBILE: Responsive mega menu */
@media (max-width: 1024px) {

    .elementor-widget-n-menu .e-n-menu-content.e-active:has(.mega-menu) {
        position: relative !important;
        inset: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 65vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 15px !important;
        background: #fff !important;
    }

    .elementor-widget-n-menu .e-n-menu-content.e-active:has(.mega-menu) .e-con,
    .elementor-widget-n-menu .e-n-menu-content.e-active:has(.mega-menu) .e-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 15px !important;
        box-sizing: border-box !important;
    }

    .elementor-widget-n-menu .e-n-menu-content.e-active:has(.mega-menu) .e-con > *,
    .elementor-widget-n-menu .e-n-menu-content.e-active:has(.mega-menu) .e-grid > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .elementor-widget-n-menu .e-n-menu-content.e-active:has(.mega-menu) a {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
}
