/*
Theme Name: Elevate With Lejla
Theme URI: https://www.lejlabojcic.dk
Author: Lejla Bojcic
Description: Custom theme for Elevate With Lejla
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Exo+2:wght@400;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4A90E2;
    --secondary-color: #2C3E50;
    --accent-color: #cb8589;
    --nav-gradient: linear-gradient(to right, #313b4e, #445367);
    --card-gradient: linear-gradient(145deg, #ffffff, #f5f5f5);
    --text-color: #333333;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Add glow frame effect matching live site */
    box-shadow: inset 0 0 80px rgba(49, 59, 78, 0.4);
    min-height: 100vh;
}

html,
body,
.site-content {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: "Raleway Flex", Raleway, "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Blog Styles */
.blog-list-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.blog-card {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    /* Horizontal on Desktop */
    align-items: stretch;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: none !important;
    flex: 1 1 auto !important;
    /* Allow height to auto-adjust */
    height: auto !important;
    /* Ensure content fits */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
        /* Stack on Mobile */
    }
}

.blog-card .post-thumbnail {
    margin: 0;
    width: 40%;
    /* Fixed width for image side */
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .blog-card .post-thumbnail {
        width: 100%;
        min-width: 0;
        height: 250px;
    }
}

.blog-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.blog-card .card-content {
    padding: 3rem;
    flex: 1;
    /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card .entry-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--nav-gradient);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--white);
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-family: 'Exo 2', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

.nav-links {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
    /* WP Menu Support */
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    position: relative;
    touch-action: manipulation;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hero {
    padding-top: 80px;
    background-image: linear-gradient(135deg, #313b4e 0%, #445367 100%);
    background-color: #313b4e;
    padding-bottom: 5rem;
    color: var(--white);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    /* Override global section styles */
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 4rem;
    animation: fadeIn 1s ease-in;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero img {
    width: 485px;
    height: 700px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: #cb8589;
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: transparent;
    border: 2px solid #cb8589;
    transform: translateY(-2px);
}

section {
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-child(even),
.services,
.pricing {
    background-color: var(--light-bg);
}

section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
    color: var(--secondary-color);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #cb8589;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.card,
.price-card,
.about-section {
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    animation: slideInFromBottom 0.6s ease-out forwards;
    animation-play-state: paused;
}

.card:hover,
.price-card:hover,
.about-section:hover {
    background: linear-gradient(145deg, #ffffff, #ffffff);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.1);
    transform: translateY(-5px);
}

.card.animate,
.price-card.animate,
.about-section.animate {
    animation-play-state: running;
}

.card h3,
.price-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.price-card {
    text-align: center;
}

.price-card .price {
    font-size: 2.2rem;
    margin: 1.5rem 0;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), #5DA3E8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* Increased gap matches live site better */
    align-items: center;
    max-width: 1200px;
    /* Wider container */
    margin: 0 auto;
    width: 100%;
}

.contact-info {
    width: 100%;
    max-width: none;
    /* Let grid control width */
    margin: 0;
    text-align: center;
    padding: 4rem;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 1rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    scroll-margin-top: 200px;
}

.about-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.about-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 20px;
    top: 20px;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.3s linear;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.fa {
    padding: 15px;
    font-size: 20px;
    width: 50px;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.fa:hover {
    opacity: 0.7;
    transform: translateY(-3px);
}

.fa-facebook {
    background: #3B5998;
    color: white;
}

.fa-linkedin {
    background: #007bb5;
    color: white;
}

.fa-instagram {
    background: #c13584;
    color: white;
}

.privacy-section {
    margin: 2rem 0;
    max-width: 800px;
}

.privacy-section h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    text-align: left;
}

.privacy-section h2::after {
    display: none;
}

.privacy-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-section li {
    margin: 0.5rem 0;
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: visible;
    padding: 0 50px;
}

.testimonial-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    touch-action: pan-y pan-x pinch-zoom;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 100%;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
    touch-action: pan-y;
}

.testimonial-author {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: right;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.carousel-btn:hover {
    opacity: 1;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.dot.active {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: var(--nav-gradient);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        transition: right 0.3s ease;
        z-index: 1000;
        overscroll-behavior: contain;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1rem 0;
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    nav {
        flex-direction: column;
        padding: 0.8rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 2rem;
        scroll-margin-top: 50px;
    }

    html {
        scroll-padding-top: 50px;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .logo img {
        height: 30px;
    }

    .about-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about {
        padding-top: 2rem;
        scroll-margin-top: 50px;
    }

    .contact-container,
    .wp-block-group.contact-container>.wp-block-group__inner-container,
    .contact-container>.wp-block-group__inner-container {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }

    .contact-image img {
        height: 300px;
    }

    .testimonial-carousel {
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .testimonial-container {
        border-radius: 0;
        width: 100%;
        padding: 0 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        border-radius: 0;
        width: 100%;
    }

    .testimonial-content {
        width: 100%;
        padding: 0;
    }

    .carousel-btn {
        display: none;
    }
}

@media (max-width: 968px) {
    .hero {
        min-height: auto;
        padding: 90px 0 3rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 2rem;
        padding-top: 1rem;
    }

    .hero-image {
        margin-top: 1rem;
        /* Add margin to the image container */
    }

    .hero img {
        width: 100%;
        max-width: 485px;
        height: auto;
        aspect-ratio: 485/700;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    .hero-text {
        text-align: center;
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-links a {
        margin: 0 0.3rem;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .service-cards,
    .price-cards {
        grid-template-columns: 1fr;
    }
}

/* Gutenberg Compatibility Fixes */

/* 1. Alignment Support */
.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Restore Hero Layout 
   The original CSS .hero-content expects direct children .hero-text and .hero-image.
   Gutenberg might insert a wrapper. We target the inner container if present.
*/
/* 2. Restore Hero Layout */

/* Target the class applied to the group in patterns.php directly */
.hero .hero-content,
.hero>.wp-block-group__inner-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 4rem;
    width: 100%;
}

/* Ensure the wrapper also allows full width */
.hero .wp-block-group__inner-container {
    width: 100%;
    max-width: none;
}

/* Target the direct children of hero-content (Text and Image groups) */
.hero .hero-content>.wp-block-group,
.hero>.wp-block-group__inner-container>.wp-block-group {
    flex: 1;
    width: 50%;
}

/* Fix Hero Image Scaling */
.hero-image figure {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 485px;
    /* Match original constraint */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Layout Adjustments to match Live Site */
#om-mig {
    padding: 4rem 2rem;
    /* Matches .about style from live site */
}

#om-mig p {
    text-align: left;
    max-width: none;
    margin-left: 0 !important;
    margin-right: auto;
}

#coaching {
    padding: 6rem 5%;
    /* Matches generic section style from live site */
}

@media (max-width: 768px) {
    #coaching {
        padding: 2rem 2rem;
    }
}

/* Ensure Hero Text Alignment */
.hero-text {
    text-align: left;
}

/* Fix Header Overlap */
.hero {
    margin-top: -72px;
    /* Pull hero up behind the header */
    padding-top: 152px;
    /* Add padding to compensate for content */
}

/* 3. Restore About Section Layout */
/* Ensure all H2s in main content match the section h2 style */
section h2,
.wp-block-group h2,
h2.wp-block-heading {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
    color: var(--secondary-color);
    margin-top: 0;
}

/* Re-add the underline effect for these H2s */
section h2::after,
.wp-block-group h2::after,
h2.wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #cb8589;
}

/* 3. Restore About Section Layout */
/* Ensure all H2s in main content match the section h2 style */
.about-sections,
.about-sections>.wp-block-group__inner-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    /* Increased gap to prevent squished look */
    width: 100%;
    max-width: 1100px;
    /* Match Services compactness */
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
}

.about-section,
.about-sections>.wp-block-group,
.about-sections>.wp-block-group__inner-container>.wp-block-group {
    flex: 1 1 400px;
    max-width: 500px;
    /* Prevent overly wide cards */
    width: 100%;
}

/* Force About section container to 1200px max-width to match live site */
.about,
.about>.wp-block-group__inner-container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Fix About Section Text Alignment and Width */
.about>p,
.about>.wp-block-group__inner-container>p,
.about .wp-block-paragraph {
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    font-size: 1.1rem;
    /* Slightly larger for intro text */
    line-height: 1.8;
}

/* 4. Restore Services Layout */
/* Match live site: Centered, approx 900-1000px wide total */
.service-cards,
.service-cards>.wp-block-group__inner-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1100px;
    /* Tighter constraint to match live site compactness */
    margin-left: auto;
    margin-right: auto;
}

.service-cards>.wp-block-group,
.service-cards>.wp-block-group__inner-container>.wp-block-group,
.card {
    flex: 0 1 300px;
    /* Don't grow beyond 300px basis too much */
    max-width: 320px;
    /* Match live site card approx width */
    width: 100%;
    padding: 3rem !important;
    /* Ensure padding matches live site */
}

/* 5. Restore Pricing Layout */
.price-cards,
.price-cards>.wp-block-group__inner-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.price-card,
.price-cards>.wp-block-group,
.price-cards>.wp-block-group__inner-container>.wp-block-group {
    flex: 1 1 300px;
    max-width: 350px;
}

/* 6. Restore Contact Layout (Exact match to live site) - Conflicting block removed */
/* .contact-container rule is now handled above correctly with grid display */

/* Override WP Block Image Defaults */
.contact-image figure.wp-block-image {
    width: 100% !important;
    margin: 0 !important;
    max-width: none !important;
    display: block;
}

/* Exact image matching from styles.css with !important to battle Gutenberg styles */
.contact-image img {
    width: 100% !important;
    height: 400px !important;
    /* Exact match: 400px */
    object-fit: cover !important;
    /* Exact match: cover */
    object-position: center center !important;
    /* Default */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    max-width: none !important;
    /* Kill default WP max-width */
}

/* Ensure the image container works with grid */
.contact-image,
.contact-image .wp-block-group__inner-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Refine Contact Info Box (Exact match) */
.contact-info {
    width: 100% !important;
    /* Fill grid cell */
    max-width: 100% !important;
    /* Start with filling the cell */
    margin: 0 !important;
    text-align: center;
    padding: 4rem !important;
    /* Exact match: 4rem */
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 10px;
    box-sizing: border-box !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Reset internal margins to ensure compact height matching live site */
.contact-info h3 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    /* Force Bold */
    margin-bottom: 2rem !important;
    color: var(--secondary-color);
    margin-top: 0 !important;
    font-family: "Raleway Flex", Raleway, sans-serif !important;
}

.contact-info p {
    font-size: 1rem !important;
    /* 16px */
    line-height: 1.6;
    color: var(--text-color) !important;
    margin: 0 !important;
    /* Reset margin to match live site exactly */
}



/* Fix "Coaching" section background (light box effect) */
/* The live site uses a max-width 1200px container for the background section */
.services,
.wp-block-group.services {
    background-color: var(--light-bg);
    margin-top: 0;
    max-width: 1200px !important;
    /* Constrain width to creat the box */
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    /* Override alignfull width: 100vw */
    border-radius: 20px;
    /* Add slight rounding if consistent with 'box' feel, or 0 if strict */
    padding: 6rem 2rem !important;
    /* Adjust padding for the boxed look */
}

/* Ensure consistent section spacing for others */
.wp-block-group.about,
.wp-block-group.testimonials,
.wp-block-group.pricing,
.wp-block-group.contact {
    padding: 6rem 5%;
    margin-bottom: 0;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* Ensure nested inner containers don't double-pad */
.wp-block-group.services>.wp-block-group__inner-container,
.wp-block-group.about>.wp-block-group__inner-container {
    padding: 0;
    max-width: 100% !important;
}

/* 7. Fix Testimonial Carousel Layout */
.testimonial-carousel .carousel-track,
.testimonial-carousel .carousel-track>.wp-block-group__inner-container {
    display: flex !important;
    width: 100%;
    /* Ensure inner container behaves as the track if present */
    flex-direction: row !important;
}

/* If the track has an inner container, it needs to be the one that flexes */
.testimonial-carousel .carousel-track>.wp-block-group__inner-container {
    height: 100%;
}

/* Ensure cards are full width flex items */
.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    /* Override any Gutenberg max-width defaults */
}

/* Adjust for Mobile */
@media (max-width: 968px) {
    .header-nav {
        /* Assuming nav class */
        /* styles */
    }

    .hero .hero-content,
    .hero>.wp-block-group__inner-container {
        flex-direction: column-reverse !important;
    }

    .service-cards,
    .service-cards>.wp-block-group__inner-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-cards,
    .price-cards>.wp-block-group__inner-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .about-sections,
    .about-sections>.wp-block-group__inner-container {
        grid-template-columns: 1fr;
    }

    .contact-container,
    .contact-container>.wp-block-group__inner-container {
        grid-template-columns: 1fr !important;
    }

    .contact-image img {
        height: 300px !important;
        /* Match live site mobile height */
    }
}

/* Adjust for Mobile */
@media (max-width: 968px) {
    .hero>.wp-block-group__inner-container {
        flex-direction: column-reverse !important;
    }

    .price-cards,
    .price-cards>.wp-block-group__inner-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .about-sections,
    .about-sections>.wp-block-group__inner-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .price-cards {
        grid-template-columns: 1fr;
    }
}

/* ADDITIONAL FIXES FOR GUTENBERG */
.hero-content>.wp-block-group__inner-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4rem !important;
    width: 100% !important;
}

.hero-content>.wp-block-group__inner-container>.hero-text,
.hero-content>.wp-block-group__inner-container>.hero-image {
    flex: 1 !important;
}

.hero-image {
    display: flex !important;
    justify-content: center !important;
}

.hero-image img {
    width: 100% !important;
    max-width: 485px !important;
    height: auto !important;
}

@media (max-width: 968px) {
    .hero-content>.wp-block-group__inner-container {
        flex-direction: column-reverse !important;
    }
}