/*
Theme Name: Madison Child
Theme URI: https://example.com/
Description: Custom child theme for Madison
Author: Your Name
Template: madison
Version: 1.1.43
*/

/* Existing CSS starts below */

/* sticky header*/
.sticky-header {
   /* position: absolute !important;*/
    top: 66px !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999999;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

 /* ==========================================
   MADISON INNER PAGE TEMPLATE
   Featured Image Hero Background
========================================== */


.madison-inner-page {
    --madison-blue: #1e3f71;
    --madison-red: #d2153d;

    width: 100%;
    color: #263445;
}

/* HERO BACKGROUND */

.madison-inner-page .madison-inner-hero {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 400px;

    padding: 80px 0;

    background-color: #1e3f71;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;
}

/* Featured image exists */
.madison-inner-page .madison-inner-hero.has-image {
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
}

/* No featured image */
.madison-inner-page .madison-inner-hero.no-image {
    background-image: none !important;
    background-color: #1e3f71;
}

/* Dark overlay */
.madison-inner-page .madison-inner-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    background: linear-gradient(
        90deg,
        rgba(10, 30, 52, 0.86) 0%,
        rgba(10, 30, 52, 0.65) 50%,
        rgba(10, 30, 52, 0.30) 100%
    );

    pointer-events: none;
}

/* HERO CONTENT */

.madison-inner-page .madison-inner-container {
    width: min(1200px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.madison-inner-page .madison-inner-hero-content {
    position: relative;
    z-index: 1;
}

/* BREADCRUMB */

.madison-inner-page .madison-inner-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 24px;

    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.madison-inner-page .madison-inner-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.madison-inner-page .madison-inner-breadcrumb a:hover {
    text-decoration: underline;
}

/* PAGE TITLE */

.madison-inner-page .madison-inner-hero h1 {
    max-width: 850px;

    margin: 0;
    padding: 0;

    color: #fff;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.12;
}

/* OPTIONAL SUBTITLE */

.madison-inner-page .madison-inner-subtitle {
    max-width: 680px;

    margin: 20px 0 0;

    color: #fff;
    font-size: 18px;
    line-height: 1.7;
}

/* PAGE CONTENT */

.madison-inner-page .madison-inner-content-section {
    padding: 80px 0;
    background: #fff;
}

.madison-inner-page .madison-inner-article {
    max-width: 900px;
    margin: 0 auto;
}

.madison-inner-page .madison-inner-content {
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.madison-inner-page .madison-inner-content h2 {
    margin: 35px 0 16px;

    color: var(--madison-blue);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.3;
}

.madison-inner-page .madison-inner-content h3 {
    margin: 28px 0 12px;

    color: var(--madison-blue);
    font-size: 24px;
    line-height: 1.4;
}

.madison-inner-page .madison-inner-content p {
    margin-bottom: 22px;
}

.madison-inner-page .madison-inner-content img {
    max-width: 100%;
    height: auto;
}

.madison-inner-page .madison-inner-content ul,
.madison-inner-page .madison-inner-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.madison-inner-page .madison-inner-content a {
    color: var(--madison-red);
}

/* CALL TO ACTION */

.madison-inner-page .madison-inner-cta {
    padding: 65px 0;
    background: var(--madison-blue);
    color: #fff;
}

.madison-inner-page .madison-inner-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.madison-inner-page .madison-inner-cta-text {
    max-width: 720px;
}

.madison-inner-page .madison-inner-eyebrow {
    display: block;
    margin-bottom: 12px;

    color: #ffb4c4;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.madison-inner-page .madison-inner-cta h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.25;
}

.madison-inner-page .madison-inner-cta p {
    margin: 0;
    color: #f0f3f8;
    font-size: 16px;
    line-height: 1.7;
}

.madison-inner-page .madison-inner-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 16px 25px;
    border-radius: 5px;

    background: var(--madison-red);
    color: #fff !important;

    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.madison-inner-page .madison-inner-cta-button:hover {
    background: #ad1030;
    transform: translateY(-2px);
}

/* Keep the navigation above the page content */
.sticky-header {
    position: relative;
    z-index: 9999;
}

.sticky-header .nav {
    position: relative;
}

.sticky-header .nav__links {
    overflow: visible !important;
}

.sticky-header .nav__links > li {
    position: relative;
}

/* Hide the submenu by default */
.sticky-header .nav__links > li > .sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
}

/* Show submenu on hover or keyboard focus */
.sticky-header .nav__links > li:hover > .sub-menu,
.sticky-header .nav__links > li:focus-within > .sub-menu {
    display: block !important;
}

/* Display submenu items vertically */
.sticky-header .nav__links .sub-menu li {
    display: block !important;
    width: 100%;
    margin: 0;
}

.sticky-header .nav__links .sub-menu a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 16px;
    color: #263b32;
    white-space: nowrap;
    text-decoration: none;
}

.sticky-header .nav__links .sub-menu a:hover,
.sticky-header .nav__links .sub-menu a:focus {
    background: #f2f5f2 !important;
    color: #496f5f !important;
}

.sticky-header {
    /*position: absolute !important;*/
    top: 44px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999999;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hide the popup title */
#pum-655 .pum-title {
    display: none !important;
}


/* Sticky header */
.sticky-header {
    position: fixed !important;
    top: 66 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999999;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
/* Keep navigation and dropdowns visible */
.sticky-header .nav {
    position: relative;
}

.sticky-header .nav__links {
    overflow: visible !important;
}

.sticky-header .nav__links > li {
    position: relative;
}

.sticky-header.is-sticky {
    position: fixed !important;
    top: 32px !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999999 !important;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.12);
    animation: slideDownSlim 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-header.is-sticky .nav__links {
    left: 370px !important;
    font-size: 15px;
}

/* Google Reviews Section */
.google-reviews {
    width: 100%;
    padding: 60px 20px;
    background-color: #f7eee8;
    box-sizing: border-box;
}

.google-reviews .container.reviews3 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.google-reviews .greview {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Prevent widget content from overflowing */
.google-reviews .greview iframe {
    max-width: 100%;
}

/* Mobile */
@media (max-width: 767px) {
    .google-reviews {
        padding: 40px 15px;
    }

    .google-reviews .container.reviews3 {
        padding: 0;
    }
}
```



/* Mobile */
@media (max-width: 767px) {
    .google-reviews {
        padding: 40px 15px;
    }

    .google-reviews .container.reviews3 {
        padding: 0;
    }
}

/* TABLET */

@media (max-width: 980px) {
    .madison-inner-page .madison-inner-hero {
        min-height: 340px;
        padding: 65px 0;
    }

    .madison-inner-page .madison-inner-content-section {
        padding: 60px 0;
    }

    .madison-inner-page .madison-inner-cta-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .madison-inner-page .madison-inner-container {
        width: calc(100% - 36px);
    }

    .madison-inner-page .madison-inner-hero {
        min-height: 280px;
        padding: 50px 0;
        background-position: center center;
    }

    .madison-inner-page .madison-inner-breadcrumb {
        gap: 8px;
        margin-bottom: 18px;
        font-size: 12px;
    }

    .madison-inner-page .madison-inner-hero h1 {
        font-size: 34px;
    }

    .madison-inner-page .madison-inner-subtitle {
        font-size: 16px;
    }

    .madison-inner-page .madison-inner-content-section {
        padding: 45px 0;
    }

    .madison-inner-page .madison-inner-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .madison-inner-page .madison-inner-cta {
        padding: 45px 0;
    }

    .madison-inner-page .madison-inner-cta-button {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
} 