/* Branding & Colors */
:root {
    --primary-purple: #38255d;
    --dark-purple: #22223b;
    --gold: #c59d2c;
    --gold-shadow: #9c8126;
    --gold-hover-shadow: #816b21;
}

body {
    font-family: "Open Sans", sans-serif;
    color: #323232;
    margin: 0;
    line-height: 1.8;
}

.x-container.max.width {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

/* Header & Nav */
.x-topbar { background-color: var(--dark-purple); padding: 10px 0; color: white; }
.x-navbar { background-color: white; box-shadow: 0 0 35px rgba(0,0,0,0.25); }
.x-navbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 120px; }
.x-brand img { width: 165px; }

.desktop-menu { display: flex; list-style: none; gap: 20px; }
.desktop-menu a { text-decoration: none; color: #242424; text-transform: uppercase; font-size: 15px; }

/* Hero Section Image Dimensions */
.content-hero-container {
    width: 100%;
    background-color: #314c60; /* Matches original background fill */
    overflow: hidden;
    padding:0px;
}

.content-hero-image {
    width: 100%;
    height: 300px; /* Original CSS dimension */
    object-fit: cover;
    display: block;
}

/* Narrow HR Headers */
.title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 45px;
}

.x-line-narrow {
    flex: 1;
    max-width: 150px; /* Forces lines to stay narrow */
    border: none;
    border-top: 2px solid #e5e5e5; /* Matches m1b-1a color */
    margin: 0;
}

.main-title {
    font-family: "Libre Baskerville", serif;
    color: var(--primary-purple);
    font-size: 2.85rem; /* Matches m1b-1c */
    margin: 0;
    white-space: nowrap;
}

/* Content Layout */
.section-padding { padding: 85px 0; }
.intro-headline { font-family: "Jost", sans-serif; font-size: 1.5rem; color: var(--primary-purple); font-weight: 400; }
.grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Divider Image */
.image-divider-container { width: 100%; height: 350px; overflow: hidden; }
.divider-image { width: 100%; height: 100%; object-fit: cover; }

/* Gold Button "Pro" Style */
.x-btn-pro {
    display: inline-block;
    padding: 1em 3em;
    background-color: var(--gold);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    border-radius: 0.25em;
    box-shadow: 0em 0.25em 0em 0em var(--gold-shadow); /* Exact shadow from m1b-1l */
    transition: all 0.2s ease;
}

.x-btn-pro:hover {
    background-color: var(--gold-shadow);
    box-shadow: 0em 0.25em 0em 0em var(--gold-hover-shadow);
}

/* CTA Section */
.cta-section {
    background-color: #4a4e69;
    background-image: url('http://dignitytransportation.flywheelsites.com/wp-content/uploads/2025/10/bg-pattern-purple.png');
    padding: 85px 0;
    color: white;
}

.cta-title { color: white; font-family: "Jost", sans-serif; font-size: 2.5rem; }

/* Colophon */
.x-colophon.bottom { background-color: var(--dark-purple); padding: 30px 0; color: white; font-size: 14px; }

/* Mobile View */
@media (max-width: 768px) {
    .grid-row { grid-template-columns: 1fr; }
    .title-row { flex-direction: column; gap: 10px; }
    .x-line-narrow { max-width: 100px; }
    .content-hero-image { height: 200px; }
}
/* Reinstated Section Styles */
.divider-parallax-container {
    width: 100%;
    height: 450px; /* Based on the 150% parallax height calculation in original */
    overflow: hidden;
    position: relative;
    background-color: #22223b; /* Fallback color from original m1b-7 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding:0px;
}

.parallax-element-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the area like a background-size: cover */
    object-position: center; /* Matches m1b-9 background-position: center */
    display: block;
}

/* Button & HR Styles (Reminders of previous requirements) */
.x-btn-pro {
    display: inline-block;
    padding: 1em 3em;
    background-color: #c59d2c;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 0.25em;
    box-shadow: 0 0.25em 0 0 #9c8126; /* Exact 3D shadow from template */
    text-decoration: none;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding:0px;
}

.x-line-narrow {
    flex: 1;
    border: none;
    border-top: 2px solid #e5e5e5; /* Exact border color from m1b-1a */
}
.content-hero-container {
    width: 100%;
    background-color: #314c60; /* The base blue color from the original section */
    line-height: 0; /* Prevents unwanted white space under the image */
}

.content-hero-image {
    width: 100%;
    height: 300px; /* Fixed height based on original template visuals */
    object-fit: cover; /* Ensures the image fills the width without distorting */
    display: block;
}
/* Hero Image Styles - Extracted from m1b-1 and m1b-4 */
.content-hero-container {
    width: 100%;
    background-color: #314c60;
    line-height: 0;
}
.content-hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Divider Image Styles - Extracted from m1b-7 and m1b-9 */
.divider-parallax-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background-color: #22223b;
}
.parallax-element-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gold Button Style - Extracted from m1b-1l and m1b-1m */
.x-btn-pro {
    display: inline-block;
    padding: 1em 3em;
    background-color: #c59d2c;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 0.25em;
    box-shadow: 0 0.25em 0 0 #9c8126; /* 3D shadow effect */
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Header HR Lines - Side-by-Side Flex Layout */
.title-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 45px;
}
.x-line-narrow {
    flex: 1;
    max-width: 150px;
    border: none;
    border-top: 2px solid #e5e5e5; /* Color from m1b-1a */
}

/* CTA Section - Extracted from m1b-b */
.cta-section {
    background-color: #4a4e69; /* Original purple-gray */
    background-image: url('http://dignitytransportation.flywheelsites.com/wp-content/uploads/2025/10/bg-pattern-purple.png');
    padding: 85px 0;
    color: #ffffff;
}

.cta-title {
    color: #ffffff;
    font-family: "Jost", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.15rem;
    margin-bottom: 35px;
}

/* Single Column Content Body */
.content-body h4 {
    font-family: "Jost", sans-serif;
    color: #38255d;
    margin-bottom: 20px;
}

/* Styling for text inside the single column */
.content-body h4 {
    font-family: "Jost", sans-serif;
    color: #38255d; /* Original primary purple */
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.content-body p {
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #323232;
    margin-bottom: 1.5rem;
}

/* Reset for the CTA Section specifically */
.cta-section .x-container {
    max-width: 800px;
}
/* Core Flex Grid from Template */
.x-row-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Centers the content */
}

/* Header line layout (m1b-11 logic) */
.m1b-11 .x-col:nth-child(1),
.m1b-11 .x-col:nth-child(3) {
    flex-basis: calc(auto - 0rem);
    flex-grow: 1; /* Lines expand to fill space */
}

.m1b-11 .x-col:nth-child(2) {
    flex-basis: 150px; /* Header text takes fixed center space */
    text-align: center;
}

/* Body Content layout (m1b-12 logic) */
.m1b-12 .x-col {
    flex-basis: 100%; /* Full width for the content block */
    padding: 0 50px;  /* Matches m1b-1j padding */
}

/* Typography */
.x-text-content-text-primary {
    font-family: "Libre Baskerville", serif;
    font-size: 2.85rem;
    color: #38255d;
}

.m1b-1h {
    font-family: "Open Sans", sans-serif;
    line-height: 1.8;
}
/* Container for the title row to enable flex alignment */
.m1b-11 > .x-row-inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
}

/* Logic for the outer columns containing the <hr> */
.m1b-11 .x-row-inner > .x-col:nth-child(1),
.m1b-11 .x-row-inner > .x-col:nth-child(3) {
    flex-basis: calc(auto - 0rem); /* Allows the columns to shrink/grow based on center content */
    flex-grow: 1;
    max-width: 250px; /* This prevents the <hr> from becoming too wide */
}

/* Logic for the center column containing the <h1> */
.m1b-11 .x-row-inner > .x-col:nth-child(2) {
    flex-basis: calc(150px - 0rem); /* Matches the original 150px center width */
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
    padding: 0 20px; /* Adds breathing room between the text and the lines */
}

/* Horizontal line styling */
.x-line.m1b-1a {
    border-top: 2px solid #e5e5e5; /* The exact color and weight from the template */
    width: 100%;
    margin: 0;
}
/* Container for the title row */
.m1b-11 > .x-row-inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure the row spans the full container width */
}

/* Logic for the center column containing the <h1> */
.m1b-11 .x-row-inner > .x-col:nth-child(2) {
    flex-basis: auto; /* Changed from 150px to auto to allow growth */
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
    padding: 0 30px; /* Space between text and lines */
    white-space: nowrap; /* Forces the text to stay on one single line */
}

/* Logic for the outer columns containing the <hr> */
.m1b-11 .x-row-inner > .x-col:nth-child(1),
.m1b-11 .x-row-inner > .x-col:nth-child(3) {
    flex: 1; /* Allows lines to take up all remaining space */
    min-width: 50px; /* Ensures lines don't disappear entirely if title is very long */
}

/* Typography refinement */
.x-text-content-text-primary {
    font-family: "Libre Baskerville", serif;
    font-size: 2.85rem;
    color: #38255d;
    margin: 0;
}
/* CTA Background and Section Style */
.m1b-b {
    background-color: #4a4e69 !important; /* Original purple-gray shade */
    background-image: url('http://dignitytransportation.flywheelsites.com/wp-content/uploads/2025/10/bg-pattern-purple.png') !important;
    padding-top: 85px;
    padding-bottom: 85px;
}

/* Typography */
.m1b-1f .x-text-content-text-primary {
    color: #ffffff !important;
    font-family: "Jost", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.m1b-1g .x-text-content-text-subheadline {
    color: #ffffff !important;
    font-family: "Open Sans", sans-serif;
    font-size: 1.15rem;
    display: block;
    margin-bottom: 30px;
}

/* 3D Button Pro Styling */
.m1b-1m.x-anchor {
    display: inline-block;
    background-color: #9989b6 !important; /* Secondary purple */
    border: 1px solid #22223b;
    border-radius: 0.25em;
    box-shadow: 0em 0.25em 0em 0em #22223b !important; /* 3D effect */
    text-decoration: none;
    padding: 0.69em 2.35em;
    transition: all 0.3s ease;
}

.m1b-1m.x-anchor:hover {
    background-color: #22223b !important;
    box-shadow: 0em 0.25em 0em 0em #11111d !important;
}

.x-anchor-text-primary {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.0625em;
}
/* Centering class from original template */
.m1b-18 {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centers the button horizontally in flex */
    justify-content: center !important;
}

/* Ensure the button itself behaves as an inline-block to accept centering */
.m1b-1m.x-anchor {
    display: inline-flex !important;
    margin-left: auto !important;
    margin-right: auto !important;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
}

/* Typography alignment for CTA */
.m1b-1b.x-text {
    text-align: center !important;
    width: 100%;
}