.elementor-17129 .elementor-element.elementor-element-f509ffa{--display:flex;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:100px;--padding-left:0px;--padding-right:0px;}@media(max-width:767px){.elementor-17129 .elementor-element.elementor-element-f509ffa{--content-width:95%;--margin-top:0px;--margin-bottom:60px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}}/* Start custom CSS for html, class: .elementor-element-3f2f5f9 *//* LAYOUT BASE */
body { background: #000; margin: 0; }

.expert-advice-hero {
    position: relative;
    background: #000;
}

.expert-advice-bg {
    height: 600px;
    width: 100%;
    position: relative;
    z-index: 1; /* Lowest layer */
}

.expert-advice-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* THE CARD STACKING */
.expert-advice-container, 
.expert-advice-content-wrapper {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 10; /* Higher than image */
}

.expert-advice-container { margin-top: -100px; }

.expert-advice-hero-card, 
.expert-advice-article {
    background: #f4f9ff;
    padding: 50px 60px;
    box-sizing: border-box;
}

.expert-advice-hero-card {
    border-radius: 12px 12px 0 0;
    text-align: center;
    overflow: hidden; /* This stops the margin from "escaping" the box */
}

/* CONTENT STYLE */
.expert-advice-article {
    color: #222;
    font-family: montserrat;
    font-size: 19px;
    line-height: 1.7;
    padding-top: 0;
}

.expert-advice-meta { color: #0066a1; font-weight: 800; text-transform: uppercase; font-size: 14px; margin-bottom: 10px; }
.expert-advice-title { 
    font-size: clamp(32px, 5vw, 52px); 
    font-weight: 900; 
    margin-top: 0 !important; /* Force the top margin to zero */
    margin-bottom: 0;
    line-height: 1.1; 
}

.expert-advice-article h2 {
    font-size: 32px;
    margin-top: 50px;
    padding-bottom: 12px;
    /* This creates a line that fades out to the right */
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, #006ba6, rgba(0,102,161,0)) 1;
}
h3 { font-size: 26px; margin-top: 40px; color: #0066a1; }

blockquote {
    border-left: 5px solid #0066a1;
    margin: 40px 0;
    padding: 20px 30px;
    background: #e9f2f9;
    font-style: italic;
    font-size: 22px;
}

/* BUTTONS & LINKS */
.expert-advice-cta-box {
    background: #fff;
    padding: 40px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    text-align: center;
    margin: 50px 0;
}

/* Use a double-.elementor-17129 .elementor-element.elementor-element-3f2f5f9 to ensure it overrides the general link styles */
.expert-advice-article a.expert-advice-button {
    display: inline-block;
    background-color: #006ba6 !important;
    color: #ffffff !important; /* Forces pure white */
    padding: 18px 35px;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 25px 0;
    border-bottom: none !important; /* Removes the blue underline from our link style */
    line-height: 1; /* Prevents text from being off-center */
    transition: background 0.3s ease;
}

.expert-advice-article a.expert-advice-button:hover {
    background-color: #004d7a !important; /* Darker blue on hover */
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: none !important;
    background-image: none !important; /* Prevents theme gradients */
}

.expert-advice-link-video {
    display: block;
    color: #0066a1;
    font-weight: 700;
    margin-top: 15px;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
   .expert-advice-hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
        display: flow-root; /* Modern way to prevent margin collapse */
    }
    .expert-advice-container { margin-top: -60px; }
    .expert-advice-hero-card, .expert-advice-article { padding: 30px 20px; }
    .expert-advice-bg { height: 280px; margin-top: 0 !important; }
}
/* --- CONTENT IMAGE STYLING --- */

.expert-advice-article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto; /* Centers image and gives breathing room */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft, premium depth */
    border: 1px solid #e0e6ed; /* Subtle frame */
}

/* For images that need to stand out (Full Width) */
.expert-advice-article .img-full {
    width: 100%;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
}

/* Styling for Image Captions (if you use <figcaption>) */
.expert-advice-article figcaption {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: -30px; /* Pulls caption closer to the image */
    margin-bottom: 40px;
}

/* Hover effect for interactive feel (Fast CSS transition) */
.expert-advice-article img:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
/* --- IN-TEXT LINK STYLING --- */

.expert-advice-article a {
    color: #006ba6 !important; /* Corrected: !important is now inside the semicolon */
    text-decoration: none !important; /* Forces removal of default theme underlines */
    font-weight: 800;
    position: relative;
    transition: all 0.2s ease;
    /* Custom underline using your specific Arctic blue */
    border-bottom: 2px solid rgba(0, 107, 166, 0.3); 
    padding-bottom: 1px;
}

/* The Hover State */
.expert-advice-article a:hover {
    color: #004d7a; /* Slightly darker on hover */
    border-bottom: 2px solid rgba(0, 102, 161, 1); /* Underline becomes solid */
    background-color: rgba(0, 102, 161, 0.05); /* Very subtle highlight fill */
}

/* Special styling for links inside the Intro paragraph to make them pop */
.expert-advice-intro a {
    color: #0066a1;
    border-bottom-width: 3px;
}

/* Ensure images with links don't get the underline effect */
.expert-advice-article a img {
    border-bottom: none !important;
}
.expert-advice-video {
    width: 100%; /* Spans the width of the container */
    aspect-ratio: 16 / 9; /* Forces the 16:9 shape immediately */
    height: auto;
    display: block;
    margin-bottom: 40px !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #000; /* Keeps the 'black bars' clean if needed */
    object-fit: cover; /* Ensures the poster image fills the 16:9 area */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Makes it more obvious that it's interactive */
.expert-advice-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
/* --- NEW TEMPLATE ADDITIONS --- */

/* 1. Container remains a standard block (not flex) */
.expert-wrap-block {
    display: block; 
    overflow: hidden;
}

/* 2. Style the image to float and wrap */
.expert-wrap-img {
    float: left;
    max-width: 350px !important;
    margin-right: 60px !important;
    margin-bottom: 20px !important;
    border-radius: 8px;
    
    /* This helps "push" the image down slightly to look centered 
       if the text is short, without breaking the wrap */
    position: relative;
    top: 5px; 
}

/* 3. The Text */
.expert-wrap-block p {
    margin: 0;
    line-height: 1.6;
    /* This ensures the text flows around the float */
    display: block;
}

/* 4. Mobile: Stack them back up */
@media (max-width: 768px) {
    .expert-wrap-block {
        flex-direction: column; /* Stacks image on top of text */
        align-items: flex-start;
        padding: 20px !important;
    }

    .expert-wrap-img {
        flex: 0 0 auto;     /* Let it be its own size on mobile */
        width: 100%;
        margin-bottom: 20px !important;
    }
}
/* 2. Side by Side Photos */
.expert-photo-grid {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.expert-grid-item {
    flex: 1;
}

.expert-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important; /* Overrides the center margin from your base img style */
}

/* 3. H4 Styling */
.expert-advice-article h4 {
    font-size: 22px;
    color: #333;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 4px solid #006ba6;
    padding-left: 15px;
}
/* Ensure lists within the wrap block respect the float and show bullets */
.expert-wrap-block ul {
    list-style-position: inside; /* Keeps bullets aligned with the wrapped text */
    padding-left: 30px;          /* Adjusts the indent */
    margin-top: 10px;
    margin-bottom: 10px;
    overflow: hidden;            /* Helps the list container respect the image boundary */
}

.expert-wrap-block li {
    margin-bottom: 5px;          /* Adds a little breathing room between items */
    line-height: 1.6;
}
@media (max-width: 768px) {
    .expert-wrap-block {
        display: block !important;
        /* 1. Remove the blue border and background if you want it to look like standard text */
        border-left: none !important; 
        background: transparent !important; /* Change to #e9f2f9 if you want to keep the light blue background */
        
        /* 2. Remove side padding so it hits the "red line" (normal edge) */
        padding: 0 !important; 
        margin: 20px 0 !important;
        width: 100% !important;
    }

    .expert-wrap-img {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important; /* Space between image and text below */
        border-radius: 8px;
        position: static !important;
    }

    .expert-wrap-block p, 
    .expert-wrap-block ul,
    .expert-wrap-block li {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        /* Standardize text alignment */
        text-align: left; 
    }

    .expert-wrap-block ul {
        list-style-position: inside !important; /* Keeps bullets flush to the left */
    }
    
}/* End custom CSS */