/* --- RESET & DEFAULTS --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- LOADING SCREEN STYLES --- */
#loading-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.92); /* Semi-transparent white */
    z-index: 99999; /* Ensure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    /* MODIFIED: Transition opacity directly, and visibility after opacity has finished */
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s; 
}

#loading-screen-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Important to prevent interaction after it's 'gone' */
}

/* Progress bar styles remain the same */
.loading-progress-bar-container {
    width: 50%;
    max-width: 350px;
    height: 2px;
    background-color: #cccccc;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.loading-progress-bar {
    width: 0%;
    height: 100%;
    background-color: #000000;
    border-radius: 4px;
    transition: width 0.3s ease-out;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #fff; /* Default, can be overridden by inline style for loading */
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #000000; /* Default text color */
    background-color: #fff;
}

/* body.menu-is-open { overflow: hidden; } */

a {
    color: #0056b3;
    text-decoration: none;
}

a.blackbold {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- KEYFRAMES --- */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem; /* Consistent H1 size */
    font-weight: 500;  /* Consistent H1 weight */
}
h2 {
    font-size: 1.75rem;   /* Consistent H2 size */
    font-weight: 500;  /* Consistent H2 weight */
}
h3 {
    font-size: 1.75rem;
    font-weight: 500;
}
h4 {
    font-size: 1.5rem;
    font-weight: 500;
}
h5 {
    font-size: 1.75rem; /* Consistent H5 size */
    font-weight: 600;  /* Consistent H5 weight */
    color: #6b6b6b;     /* Default H5 color for light backgrounds */
}

h6 { /* Often used for subtitles like in page heroes */
    font-size: 1rem;
    font-weight: 500; /* Or 400 if a lighter subtitle is preferred */
}

/* --- LAYOUT HELPERS --- */
.container {
    width: 95%;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5px;
    padding-right: 5px;
}

.narrow-content {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.light-bg {
    background-color: #ffffff;
    color: #333; /* Default text color for light backgrounds */
}
/* Headings on light backgrounds */
.light-bg h1, .light-bg h2, .light-bg h3, .light-bg h4, .light-bg h6 {
    color: #000000;
}
.light-bg h5 { /* Specific H5 color on light bg, inherits from global H5 */
    color: #6b6b6b;
}


.dark-bg {
    background-color: #171717;
    color: #f0f0f0; /* Default text color for dark backgrounds */
}
/* All headings white on dark backgrounds */
.dark-bg h1, .dark-bg h2, .dark-bg h3, .dark-bg h4, .dark-bg h5, .dark-bg h6 {
    color: #ffffff;
}
.dark-bg p {
    color: #f0f0f0;
}
.dark-bg a {
    color: #b8b8b8;
}
.dark-bg a:hover {
    color: #ffffff;
}
.dark-bg .learn-more-link {
    color: #ffffff;
}
.dark-bg .learn-more-link:hover {
    color: #ffffff;
}


/* --- HEADER & NAVIGATION --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1003;
    background-color: transparent;
    border-bottom: none;
    transition: background-color 0.3s ease;
}

.header-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 50px;
    padding-left: 15px;
    padding-right: 15px;
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.logo a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.logo a:hover {
    text-decoration: none;
}

.logo svg {
    display: block;
    height: 40px;
    width: auto;
    fill: currentColor;
    transition: fill 0.3s ease, height 0.5s ease;
}

.site-header.scrolled .logo a {
    color: #333;
}
.site-header.scrolled .logo svg {
    height: 30px;
}

.hamburger-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 80px;
    height: 40px;
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1004;
}

.hamburger-menu-button span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    transform-origin: center center;
}

body:not(.menu-is-open) .hamburger-menu-button:hover span:nth-child(1) {
    transform: translateY(-3px);
}
body:not(.menu-is-open) .hamburger-menu-button:hover span:nth-child(3) {
    transform: translateY(3px);
}

body:not(.menu-is-open) .site-header.scrolled .hamburger-menu-button span {
    background-color: #333;
}

body.menu-is-open .hamburger-menu-button span {
    background-color: #333;
}
body.menu-is-open .hamburger-menu-button span:nth-child(1) {
    opacity: 0;
    transform: translateY(3px);
}
body.menu-is-open .hamburger-menu-button span:nth-child(2) {
    transform: scale(1.0);
    opacity: 1;
}
body.menu-is-open .hamburger-menu-button span:nth-child(3) {
    opacity: 0;
    transform: translateY(-3px);
}

body.menu-is-open .hamburger-menu-button:hover span:nth-child(1) {
    opacity: 1;
    transform: translateY(-3px);
}
body.menu-is-open .hamburger-menu-button:hover span:nth-child(2) {
    transform: scale(1.0);
    opacity: 1;
}
body.menu-is-open .hamburger-menu-button:hover span:nth-child(3) {
    opacity: 1;
    transform: translateY(3px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    visibility: hidden;
    z-index: 1001;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
body.menu-is-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

#side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1002;
    overflow-y: auto;
    transition: opacity 0.4s ease 0.1s, visibility 0.4s ease 0.1s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}
body.menu-is-open #side-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-navigation {
    margin-bottom: 3rem;
}
.mobile-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mobile-navigation a {
    color: #333;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}
.mobile-navigation a:hover {
    color: #0056b3;
    text-decoration: none;
}

body.menu-is-open #side-panel .mobile-navigation a {
    opacity: 1;
    transform: translateY(0);
}
body.menu-is-open #side-panel .mobile-navigation li:nth-child(1) a { transition-delay: 0.2s; }
body.menu-is-open #side-panel .mobile-navigation li:nth-child(2) a { transition-delay: 0.25s; }
body.menu-is-open #side-panel .mobile-navigation li:nth-child(3) a { transition-delay: 0.3s; }
body.menu-is-open #side-panel .mobile-navigation li:nth-child(4) a { transition-delay: 0.35s; }
body.menu-is-open #side-panel .mobile-navigation li:nth-child(5) a { transition-delay: 0.4s; }

/* Header Theming */
.contact-page .site-header:not(.light-theme) .logo a,
.who-we-are-page .site-header:not(.light-theme) .logo a,
.services-page .site-header:not(.light-theme) .logo a,
.values-page .site-header:not(.light-theme) .logo a {
    color: #333;
}
body:not(.menu-is-open) .contact-page .site-header:not(.light-theme) .hamburger-menu-button span,
body:not(.menu-is-open) .who-we-are-page .site-header:not(.light-theme) .hamburger-menu-button span,
body:not(.menu-is-open) .services-page .site-header:not(.light-theme) .hamburger-menu-button span,
body:not(.menu-is-open) .values-page .site-header:not(.light-theme) .hamburger-menu-button span {
    background-color: #333;
}

.who-we-are-page .site-header:not(.scrolled):not(.light-theme) .logo a,
.services-page .site-header:not(.scrolled):not(.light-theme) .logo a,
.values-page .site-header:not(.scrolled):not(.light-theme) .logo a {
    color: #FFFFFF;
}
body:not(.menu-is-open) .who-we-are-page .site-header:not(.scrolled):not(.light-theme) .hamburger-menu-button span,
body:not(.menu-is-open) .services-page .site-header:not(.scrolled):not(.light-theme) .hamburger-menu-button span,
body:not(.menu-is-open) .values-page .site-header:not(.scrolled):not(.light-theme) .hamburger-menu-button span {
    background-color: #FFFFFF;
}

.site-header.light-theme .logo a {
    color: #FFFFFF;
}
body:not(.menu-is-open) .site-header.light-theme .hamburger-menu-button span {
    background-color: #FFFFFF;
}
body.menu-is-open .site-header.light-theme .hamburger-menu-button span {
    background-color: #333;
}


/* --- FOOTER --- */
.site-footer {
    background-color: #171717;
    color: #f3f3f3;
    padding: 3rem 0 1rem 0;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-grid > div {
    text-align: left;
}
.site-footer h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}
.site-footer ul {
    list-style: none;
    padding-left: 0;
}
.site-footer ul li {
    margin-bottom: 0.5rem;
}
.site-footer a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.site-footer address {
    font-style: normal;
    line-height: 1.5;
}
.copyright {
    text-align: center;
    border-top: 1px solid #323232;
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #b8b8b8;
}
.copyright p {
    margin-bottom: 0.25rem;
}
.copyright a {
    color: #b8b8b8;
}
.copyright a:hover {
    color: #ffffff;
}

/* --- COMMON COMPONENTS / PATTERNS --- */
section {
    padding: 4rem 0; /* Default vertical padding for sections */
    position: relative;
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    color: #000000; /* Default for light backgrounds */
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 1.4rem;
    font-weight: 50;
    letter-spacing: 0.6px;
}
.learn-more-link:hover {
    color: #000000;
    text-decoration: none;
    background-color: transparent;
}
.learn-more-link .link-text {
    display: inline-block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.learn-more-link:hover .link-text {
    opacity: 0.4;
    transform: translateX(10px);
}

.page-hero-section {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    color: #ffffff; /* Text color on hero is white */
    overflow: hidden;
}
.page-hero-section.dark-video-bg {
    background-color: #000000;
}

.vimeo-page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    pointer-events: none;
    overflow: hidden; 
}

.vimeo-page-hero-background > div[style*="padding:"] {
    padding: 0 !important; 
    width: 100% !important;
    height: 100% !important;
    position: relative !important; 
    overflow: hidden !important; 
}

.vimeo-page-hero-background iframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border: none !important;
    width: 177.77vh !important; 
    height: 56.25vw !important; 
    min-width: 100% !important; 
    min-height: 100% !important;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding-bottom: 5rem;
    padding-top: 2rem;
}
.page-hero-section > .container.page-hero-content {
    margin-left: 3rem;
}

.page-hero-subtitle { /* This is an H6 in HTML */
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.3s 1 both;
    will-change: opacity, transform;
}
.page-hero-title { /* This is an H1 in HTML */
    /* font-size and font-weight inherited from global H1 */
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out 0.5s 1 both;
    will-change: opacity, transform;
}
.page-hero-nav {
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.7s 1 both;
    will-change: opacity, transform;
}
.page-hero-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-right: 2.5rem;
    margin-left: 0;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.page-hero-nav a:last-child {
    margin-right: 0;
}
.page-hero-nav a:hover {
    color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    text-decoration: none;
}
.hero-anim-content {
    display: inline-block;
    will-change: transform, opacity;
}

/* Content Split Layout (used on About, Values) */

.content-split-section {
    min-height: 0vh;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    padding-top:0;
    padding-bottom: 0;
}

.split-image-col {
    flex: 0 0 33.3%;
    min-height: 0vh; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0%; 
}
.split-image-col img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.split-text-col {
    flex: 1;
    padding: 3rem 3%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}
.content-split-section.image-right .split-image-col { order: 2; }
.content-split-section.image-right .split-text-col { order: 1; }

.split-text-col h3 {
    /* font-size, font-weight inherited from global H3 */
    /* color determined by .light-bg or .dark-bg */
    margin-bottom: 1.5em;
}
.split-text-col h2 {
    /* font-size, font-weight inherited from global H2 */
    /* color determined by .light-bg or .dark-bg */
    line-height: 1.7;
    margin-bottom: 1.5em;
}
.split-text-col p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5em;
}
.split-text-col .learn-more-link {
    margin-top: 1.5rem;
}

.cta-section {
    padding: 5rem 0;
    border-top: 1px solid #e0e0e0;
}
.dark-bg .cta-section {
    border-top: 1px solid #323232;
}
.cta-section h2 {
    /* font-size, font-weight inherited from global H2 */
    /* color determined by .light-bg or .dark-bg */
    margin-bottom: 1.5rem;
}
.cta-section .learn-more-link {
    margin-top: 1rem;
}

.anim-reveal {
    opacity: 1;
    transition: none;
    will-change: transform, opacity;
}


/* --- HOMEPAGE-SPECIFIC STYLES (index.html) --- */
#hero {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    color: #ffffff;
    overflow: hidden;
    background-color: #000000;
}

.vimeo-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.vimeo-background-wrapper > div[style*="padding:"] {
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.vimeo-background-wrapper iframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border: none !important;
    width: 177.77vh !important;
    height: 56.25vw !important;
    min-width: 100% !important; 
    min-height: 100% !important;
}


#hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

#hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding-bottom: 4rem;
    margin-left: 3rem;
}
#hero h1 {
    /* font-size, font-weight inherited from global H1 */
    animation: fadeInUp 1s ease-out 0.3s 1 both;
    will-change: opacity, transform, color;
    transition: none;
    margin-bottom: 0;
    color: #FFFFFF;
}
.hero-title-inner {
    display: inline-block;
    /* font-size, font-weight inherited from parent H1 */
    color: #FFFFFF;
    will-change: transform, color;
    margin-bottom: 10px;
    max-width: 1800px;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.stats-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    /* padding: 5rem 0; /* Uses default section padding */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #f8f9fa; /* This implies .light-bg context */
}
.stats-section .container {
    width: 90%;
    max-width: 900px;
    position: relative;
    z-index: 1;
}
.stats-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../svg/map.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transform: scale(1.0);
    opacity: 1.0;
    will-change: transform, opacity;
}
.stats-section h2 {
    /* font-size, font-weight inherited from global H2 */
    /* color: #333 inherited from .light-bg context */
    margin-bottom: 8rem;
    opacity: 1;
    transition: none;
    will-change: transform, opacity;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}
.stat-item {
    text-align: center;
    opacity: 1;
    transition: none;
    will-change: transform, opacity;
}
.stats-section .stat-item .stat-figure {
    display: block;
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #000000;
}
.stats-section .stat-item .stat-label {
    display: block;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #6c757d;
}

.innovation-section {
    position: relative;
    /* padding: 6rem 0; /* Uses default section padding */
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../img/services-flow.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: #f8f9fa; /* Fallback, implies .light-bg context */
}
.innovation-section.light-bg h2 {
    color: #333;
}
.innovation-section.light-bg h5 {
    color: #6b6b6b;
}
.innovation-section .container.content-image-split {
    width: 95%;
    max-width: 2000px;
    position: relative;
    z-index: 1;
}
.innovation-section .content-part {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    text-align: left;
}
.innovation-section h5 {
    /* font-size, font-weight, color inherited from global H5 and .light-bg context */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5em;
    text-align: left;
    opacity: 1;
    transition: none;
    will-change: transform, opacity;
}
.innovation-section h2 {
    /* font-size, font-weight inherited from global H2 */
    /* color from .light-bg context */
    line-height: 1.4;
    text-align: left;
    margin-bottom: 1.5em;
    opacity: 1;
    transition: none;
    will-change: transform, opacity;
}
.innovation-section .learn-more-link {
    margin-top: 2rem;
}

/* Main content padding adjustments for pages with full-height hero */
.who-we-are-page main,
.services-page main,
.values-page main {
    padding-top: 0;
}

.who-we-are-page main > section:not(.page-hero-section):first-of-type,
.services-page main > section:not(.page-hero-section):first-of-type,
.values-page main > section:not(.page-hero-section):first-of-type {
    padding-top: calc(4rem + 80px); /* Default section padding + approx fixed header height */
}


/* --- ABOUT PAGE-SPECIFIC STYLES (who-we-are-page) --- */
.who-we-are-page .page-title-section {
    display: none;
}

.sector-list-inline {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}
.sector-list-inline li {
    margin-bottom: 0.5em;
    font-size: 1.1rem;
    line-height: 1.6;
}
.who-we-are-page .split-text-col h5 {
    /* font-size, font-weight, color inherited from global H5 and .light-bg context */
    margin-bottom: 1em;
}
.who-we-are-page .split-text-col h2 { /* If H2s are used as paragraphs */
    /* font-size, font-weight inherited from global H2 */
    /* color from .light-bg context */
    /* To make them look more like paragraphs if they are, uncomment these: */
    /* font-weight: 400; */
    font-size: 1.75rem;
    /* line-height: 1.7; */
}

/* --- Multi-column List Styles (Revised for About/Values Pages) --- */

/* Container for the columns */
.experience-columns-container {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    gap: 2em;        /* Space between columns */
    margin-top: 1.5em;
    text-align: left; /* Ensure content within aligns left by default */
}

.experience-column {
    flex: 1; /* Each column tries to take equal space */
    min-width: 350px; /* Minimum width before wrapping/stacking */
}

.column-title {
    font-size: 1.4rem; /* Or adjust to your preference */
    font-weight: 600;  /* Bolder than regular text */
    color: #000000;   /* Black, or your preferred heading color on light-bg */
    margin-bottom: 0.8em;
    padding-left: 0; /* No padding needed if no dash */
}

/* Re-purpose .dash-list for the individual lists within columns */
.dash-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0; /* Reset margin if .column-title provides enough space */
}

.dash-list li {
    margin-bottom: 0.5em;
    padding-left: 1.2em;   /* Create space for the dash */
    position: relative;
    font-size: 1.1rem; /* Your desired font size for list items */
    line-height: 1.5;
    /* break-inside: avoid-column; /* Less relevant now with flex columns */
}

.dash-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0.1em; /* Adjust for vertical alignment with text */
    color: #333; /* Dash color */
}


/* --- SERVICES PAGE-SPECIFIC STYLES (services-page) --- */
.services-zigzag-section {
    /* padding-top: 4rem; /* Uses default section padding */
    padding-bottom: 0;
}
.services-zigzag-section > .container {
    margin-bottom: 3rem;
    padding-left: 15px;
    padding-right: 15px;
}
.services-zigzag-section .section-title { /* This is an H2 */
    /* font-size, font-weight, color inherited from global H2 and .light-bg context */
    margin-bottom: 0;
}

.zigzag-container {
    width: 100%;
    max-width: none;
}
.service-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.service-image-col,
.service-text-col {
    width: 50%;
    min-height: 450px;
    position: relative;
}
.service-image-col {
    overflow: hidden;
}
.service-image-col img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}
.service-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 6%;
    background-color: #ffffff; /* Assuming .light-bg context */
}
.service-text-col h5 { /* Titles like "BUY-SIDE M&A" */
    /* font-size: 1.25rem, font-weight: 450, color: #6b6b6b inherited from global H5 */
    margin-bottom: 1em;
}
.service-text-col p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333; /* From .light-bg context */
}
.service-row.image-right .service-image-col { order: 2; }
.service-row.image-right .service-text-col { order: 1; }

.investment-platform-section {
    /* padding: 5rem 0; /* Uses default section padding */
}
.investment-platform-section .section-title { /* This is an H2 */
    /* font-size, font-weight, color inherited from global H2 and .dark-bg context */
    text-align: center;
    margin-bottom: 2rem;
}
.investment-platform-section p {
    text-align: center;
}

/* --- VALUES PAGE-SPECIFIC STYLES (values-page) --- */
.values-page .content-split-section.image-left .split-text-col {
    text-align: left;
    align-items: flex-start;
}
.values-page .content-split-section.image-right .split-text-col {
    text-align: right;
    align-items: flex-end;
}

.values-page .split-text-col h3 { /* Value titles like "EXCELLENCE" */
    font-weight: 600;
    color: #6b6b6b;
    margin-bottom: 0.5em;
}

.values-page .split-text-col h2 { /* Value titles like "EXCELLENCE" */
    /* font-size, font-weight, color inherited from global H2 and .light-bg context */
    margin-bottom: 0.5em;
}
.values-page .split-text-col p { /* Value descriptions */
    /* color inherited from .light-bg context */
    margin-bottom: 0;
}

.values-page .content-split-section .split-image-col {
    flex: 0 0 50%;
}


/* --- CONTACT PAGE-SPECIFIC STYLES (contact-page) --- */
.contact-page main {
    padding-top: calc(4rem + 80px); /* Default section padding + header height */
}
.page-title-section { /* Contains the H1 "CONTACT US" */
    text-align: center;
    padding-top: 0; /* Removed as main has padding-top */
    padding-bottom: 2rem;
}
.contact-page .page-title { /* This is an H1 */
    /* font-size, font-weight inherited from global H1 */
    color: #333; /* On light background */
    margin-bottom: 0;
}
.contact-form-section {
    padding-top: 1rem;
    padding-bottom: 5rem;
}
.contact-form-section .section-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
#contact-form {
    max-width: 800px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
}
.form-group input[type="email"],
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.3s ease;
}
.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group input[type="file"] {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
.form-group small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #6c757d;
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.checkbox-group input[type="checkbox"] {
    margin-top: 0.2em;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
}
.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}
.checkbox-group label a {
    color: #0056b3;
    text-decoration: underline;
}
.checkbox-group label a:hover {
    color: #003d80;
}
.required {
    color: #dc3545;
    margin-left: 0.2em;
}
.submit-group {
    text-align: center;
    margin-top: 2rem;
}
.submit-group button.learn-more-link {
    text-transform: uppercase;
}
.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 2rem;
}

/* --- NEWS PAGE SPECIFIC STYLES --- */

.news-page main > section:not(.news-hero-banner):first-of-type {
    padding-top: 4rem; /* Standard section padding, assuming hero doesn't overlap significantly */
}
.news-page .page-title-section {
    display: none; /* Hide old page title if new hero replaces it */
}


/* News Hero Banner with Video */
.news-hero-banner {
    height: 33.33vh; /* 1/3 of viewport height */
    position: relative;
    display: flex; /* For aligning content within */
    align-items: flex-end; /* Align content (text container) to the bottom */
    justify-content: flex-start; /* Align content (text container) to the left */
    padding: 0;
    background-color: #000000; /* Fallback if video doesn't load */
    overflow: hidden;
    z-index: 2; /* Ensure it's above default static content */
}

.news-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0; /* Behind overlay and content */
    object-fit: cover;
    pointer-events: none; /* Prevent user interaction */
}

/* Re-using .page-hero-overlay for consistency */
.news-hero-banner .page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Adjust opacity as needed */
    z-index: 1; /* Above video, below text */
}

.news-hero-content { /* Container for the H1/H6 text */
    position: relative; /* Stacking context for text */
    z-index: 2; /* Above overlay */
    padding-left: 3rem;  /* Match other hero content left padding */
    padding-right: 1rem; /* Some right padding */
    padding-bottom: 2rem; /* Space from bottom edge of hero */
    width: 100%; /* Take full width of parent .news-hero-banner */
}

/* Style H1 within news hero to match .page-hero-title */
.news-hero-content h1.page-hero-title {
    font-size: 3rem; /* Adjust to match your desired hero title size */
    font-weight: 500;
    line-height: 1.15;
    color: #FFFFFF;
    margin-bottom: 0; /* Remove bottom margin if it's the only text */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    /* Animations will be handled by .hero-anim-content and JS */
}
/* Optional: if you add an H6 subtitle */
.news-hero-content h6.page-hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
}


/* News Listing Section - ensure it has enough top padding if hero is shorter */
.news-listing-section {
    padding: 4rem 0;
    position: relative; 
    z-index: 1; /* Lower than hero banner */
}
/* Remove the specific padding-top that was for the overlapping text box */
/* .news-page main > .news-listing-section { */
    /* padding-top: calc(4rem + 6.25vh); /* REMOVE OR ADJUST THIS */
/* } */


.news-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-item-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.news-item-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.news-item-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-item-headline {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5em;
}

.news-item-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.75em;
}

.news-item-summary {
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-item-button.learn-more-link {
    font-size: 1rem;
    margin-top: auto;
    align-self: flex-start;
}

/* Updated Pagination Styles */
#news-pagination-container {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

#news-pagination-container button,
#news-pagination-container span {
    margin: 0 0.3rem;
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    background-color: #ffffff;
    color: #555555;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#news-pagination-container button:hover {
    background-color: #555555;
    color: #ffffff;
    border-color: #555555;
}

#news-pagination-container button.active {
    background-color: #555555;
    color: #fff;
    border-color: #555555;
    cursor: default;
}

#news-pagination-container button:disabled {
    color: #aaa;
    cursor: not-allowed;
    background-color: #f0f0f0;
    border-color: #ddd;
}



/* --- NEWS ARTICLE PAGE SPECIFIC STYLES --- */

body.news-article-page .site-header .logo a { /* MODIFIED SELECTOR */
    color: #333 !important; 
}
body.news-article-page .site-header .logo svg { /* MODIFIED SELECTOR */
    fill: #333 !important; 
}

/* Hamburger icon lines - default state (menu closed) */
body.news-article-page:not(.menu-is-open) .site-header .hamburger-menu-button span { /* MODIFIED SELECTOR */
    background-color: #333 !important; 
}

/* Hamburger icon lines - when menu is open */
body.news-article-page.menu-is-open .site-header .hamburger-menu-button span { /* MODIFIED SELECTOR */
    background-color: #333 !important; 
}

/* Ensure main content starts below the fixed header */
.news-article-page main.news-article-main {
    padding-top: 70px; /* Adjust based on your actual fixed header height */
}

.news-article-hero {

    position: relative;
    background-color: #f0f0f0; /* Light grey fallback if no image */
    display: flex; /* To align content container */
    align-items: flex-end; /* Vertically align to bottom */
    justify-content: center; /* Horizontally center content container */
    padding-top: 2rem; /* Remove default section padding */
    padding-bottom: 2rem;
    overflow: hidden; /* In case image tries to break out */
}

.news-article-hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind overlay and text */
}

.news-article-hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, may crop */
    display: block; /* Remove any extra space below image */
}
/* If no image, this class is added by JS, and parent .news-article-hero's light grey bg will show */
.news-article-hero.no-image .news-article-hero-image-container {
    display: none;
}
/* If there is an image, the overlay becomes more important for text readability */
.news-article-hero.has-image .page-hero-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Darker overlay when image is present */
}


.news-article-hero .page-hero-overlay { /* Reusing existing overlay class */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Very light overlay if no image, or none at all */
    z-index: 2;
    pointer-events: none;
}

.news-article-hero-content-container { /* Uses .container for max-width */
    position: relative;
    z-index: 3; /* Above overlay */
    max-width: 1200px;
    padding-bottom: 1.5rem; /* Space from bottom of hero */
    
}

.news-article-hero-text {
    text-align: left; /* Align text content to the right */
}

.article-headline {
    font-size: 3rem; /* Adjust to your preference */
    font-weight: 400;
    color: #ffffff !important; /* Assuming text is over a dark image/overlay */
    margin-bottom: 0.25em;
}

.news-article-hero.no-image .article-headline { /* If no image, text on light grey */
    color: #333333 !important;
    text-shadow: none;
}


.article-publish-date {
    font-size: 0.9rem;
    color: #f0f0f0; /* Light color for date over dark background */
    margin-bottom: 0.75em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.news-article-hero.no-image .article-publish-date {
    color: #555555;
    text-shadow: none;
}

.article-social-share {
    display: flex;
    justify-content: flex-start; /* Align icons to the right */
    gap: 0.8rem;
}

.article-social-share a {
    color: #ffffff; /* Icon color over dark background */
    font-size: 1.2rem; /* Adjust icon size */
    text-decoration: none;
    transition: color 0.3s ease;
}
.news-article-hero.no-image .article-social-share a {
    color: #555555; /* Icon color over light grey background */
}

.article-social-share a:hover {
    color: #cccccc; /* Lighter on hover for dark bg */
}
.news-article-hero.no-image .article-social-share a:hover {
    color: #0056b3; /* Standard link hover for light bg */
}


/* Main Article Body Styling */
.news-article-body {
    /* .light-bg is already applied */
    padding-top: 3rem; /* Space between hero and article content */
    padding-bottom: 4rem;
}

.article-text-area {
    max-width: 1200px; /* Typical comfortable reading width */
    margin-left: auto;
    margin-right: auto;
}

.article-text-area h3 { /* For main section titles within article */
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.article-text-area h3:first-child {
    margin-top: 0;
}

.article-text-area h4 { /* For sub-section titles */
    font-size: 1.4rem;
    font-weight: 600;
    color: #444;
    margin-top: 1.8em;
    margin-bottom: 0.7em;
}
.article-text-area h5 { /* For smaller subtitles */
    font-size: 1.2rem;
    font-weight: 600; /* Inherits from global h5 */
    color: #555;      /* Inherits from global h5 or .light-bg h5 */
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}


.article-text-area p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #333333;
    margin-bottom: 1.5em;
}
.article-text-area p strong { font-weight: 700; }
.article-text-area p em { font-style: italic; }
.article-text-area p u { text-decoration: underline; }

.highlighted-quote {
    font-size: 1.2rem;
    font-weight: bold;
    color: #444;
    margin: 2em 1em; /* Some horizontal margin to indent */
    padding: 1em 1.5em;
    border-left: 4px solid #0056b3; /* Elden blue accent */
    background-color: #f8f9fa; /* Very light background */
}

.source-link {
    font-size: 0.9em;
    color: #0056b3;
    text-decoration: none;
}
.source-link:hover {
    text-decoration: underline;
}

/* Custom List Styles */
.article-text-area ul, .article-text-area ol {
    margin-bottom: 1.5em;
    padding-left: 0; /* Reset default padding */
}
.article-text-area li {
    margin-bottom: 0.6em;
    padding-left: 1.5em; /* Space for custom bullet */
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Squared Bullets */
.article-text-area ul.list-square > li::before {
    content: "■"; /* Square character */
    position: absolute;
    left: 0;
    top: 0.1em; /* Adjust for vertical alignment */
    color: #555; /* Elden blue */
    font-size: 0.8em; /* Adjust size of bullet */
}

/* Dash Sub-bullets */
.article-text-area ul ul.list-dash > li::before {
    content: "-"; /* Dash character */
    position: absolute;
    left: 0;
    top: 0.05em; /* Adjust for vertical alignment */
    color: #555;
    font-weight: bold;
}

/* Circle Sub-sub-bullets */
.article-text-area ul ul ul.list-circle > li::before {
    content: "●"; /* Circle character / bullet point */
    position: absolute;
    left: 0;
    top: 0.1em; /* Adjust for vertical alignment */
    color: #777;
    font-size: 0.7em; /* Adjust size of bullet */
}

/* Nested list indentation */
.article-text-area ul ul,
.article-text-area ul ul ul {
    margin-top: 0.5em;
    padding-left: 1.5em; /* Indent nested lists further */
}


.content-separator {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 2.5em 0;
}

.image-with-caption {
    margin: 2em 0;
    width: 100%;
}
.image-with-caption img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 3px; /* Optional */
    margin-bottom: 0.5em; /* Space between image and caption */
}
.image-with-caption figcaption {
    font-size: 0.9rem;
    color: #555;
    text-align: left; /* Default caption alignment */
    padding-top: 0.3em;
}

/* "Back to News" link at the bottom */
.article-text-area .learn-more-link {
    display: inline-flex; /* Keep it inline-flex */
    margin-top: 2rem;
    font-size: 1.1rem; /* Adjust size */
}


/* --- PRIVACY POLICY PAGE SPECIFIC STYLES --- */

body.policy-page .site-header .logo a { /* MODIFIED SELECTOR */
    color: #333 !important; 
}
body.policy-page .site-header .logo svg { /* MODIFIED SELECTOR */
    fill: #333 !important; 
}

/* Hamburger icon lines - default state (menu closed) */
body.policy-page:not(.menu-is-open) .site-header .hamburger-menu-button span { /* MODIFIED SELECTOR */
    background-color: #333 !important; 
}

/* Hamburger icon lines - when menu is open */
body.policy-page.menu-is-open .site-header .hamburger-menu-button span { /* MODIFIED SELECTOR */
    background-color: #333 !important; 
}

.policy-page main {
    padding-top: calc(4rem + 80px); /* Standard page top padding below fixed header */
    padding-bottom: 4rem;
}

.policy-page .page-title-section { /* Re-using this for the "Privacy Policy" title */
    text-align: center; /* Center the main page title */
    padding-bottom: 2rem; /* Space below title */
    padding-top: 0; /* Already handled by main padding-top */
}

.policy-page .page-title {
    /* Styles inherited from global H1 */
    color: #000000; /* Ensure it's black on light background */
}

.policy-content-section {
    padding-top: 2rem;
}

.policy-content-section .narrow-content h2 { /* For section titles within the policy */
    font-size: 1.5rem; /* Slightly smaller than page title */
    font-weight: 600;
    color: #333;
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.policy-content-section .narrow-content h2:first-child {
    margin-top: 0;
}

.policy-content-section .narrow-content h3 { /* For sub-section titles */
    font-size: 1.3rem;
    font-weight: 600;
    color: #444;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

.policy-content-section .narrow-content p {
    font-size: 1rem; /* Standard paragraph size */
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1.25em;
}

.policy-content-section .narrow-content ul {
    list-style: disc; /* Standard disc bullets */
    margin-left: 1.5em;
    margin-bottom: 1.25em;
    padding-left: 0.5em;
}
.policy-content-section .narrow-content ul li {
    margin-bottom: 0.5em;
    padding-left: 0; /* Reset from other list styles if any */
}
.policy-content-section .narrow-content ul li::before {
    content: ""; /* Remove custom dash/square/circle from other lists */
    display: none;
}


/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) { /* Tablet Adjustments */
    h1 { font-size: 3rem; }
    h2 { font-size: 1.8rem; }
    h5 { font-size: 1.5rem; }

    .split-image-col {
        flex: 0 0 40%;
        padding: 15px; /* MODIFIED: Reduced padding from 20px for tablet */
        min-height: 60vh; /* Adjust height for tablet if needed */
    }
    .split-text-col {
        padding: 2.5rem 3%; /* MODIFIED: Reduced padding for tablet */
    }
    .page-hero-title { font-size: 3rem; }
    .contact-page .page-title { font-size: 3rem; }


}

@media (max-width: 768px) { /* Mobile Adjustments */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }
    h5 { font-size: 1.5rem; }
    h6 { font-size: 0.9rem; }


    .container {
        width: 95%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .site-header {
        padding: 0.5rem 0;
    }
    .logo svg {
        height: 25px;
    }
    .site-header.scrolled .logo svg {
        height: 22px;
    }
    .hamburger-menu-button {
        right: 5px;
        width: 40px;
        height: 32px;
    }

    /* Homepage Hero Mobile */
    #hero h1, .hero-title-inner {
        font-size: 2.2rem;
    }
    #hero .hero-content {
        padding-bottom: 10rem;
        margin-left: 1rem;
    }

    .experience-columns-container {
        flex-direction: column;
        gap: 1.5em; /* Adjust vertical gap between stacked columns */
    }
    .experience-column {
        min-width: 100%; /* Ensure it takes full width when stacked */
        flex-basis: auto;
    }
    .column-title {
        font-size: 1.3rem; /* Slightly smaller title on mobile */
    }
    .dash-list li {
        font-size: 1rem; /* Slightly smaller list items on mobile */
    }
    /* If text in .split-text-col is centered on mobile for values page,
       you might need to ensure these lists stay left-aligned if desired: */
    .values-page .experience-columns-container,
    .values-page .experience-column,
    .values-page .column-title,
    .values-page .dash-list,
    .values-page .dash-list li {
        text-align: left; /* Override any inherited center alignment */
    }
    .values-page .dash-list li::before {
        /* Ensure dash is still correctly positioned if text-align was inherited */
        left: 0; 
    }

    /* Generic Page Hero Mobile */
    .page-hero-subtitle { font-size: 0.9rem; }
    .page-hero-title { font-size: 2.2rem; }

    .page-hero-nav a { margin-right: 1rem; font-size: 0.75rem; }
    .page-hero-section > .container.page-hero-content {
        margin-left: 1rem;
        padding-bottom: 12rem;
    }

    /* Homepage Stats Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .stats-section .stat-item .stat-figure { font-size: 2.5rem; }
    .stats-section .stat-item .stat-label { font-size: 1rem; }
    /* .stats-section h2 font-size inherited */


    /* Homepage Innovation Mobile */
    .innovation-section .content-part {
        max-width: 100%;
        padding: 0 10px;
    }
    /* .innovation-section h5 & h2 font-sizes inherited */

    /* Content Split Sections (About, Values) Mobile */
    section.content-split-section {
        min-height: auto;
        padding-left: 0;
        padding-right: 0;
        position: relative; 
        overflow: hidden; 
        display: flex; /* Ensure flex context for children */
        flex-direction: column; /* Stack children vertically */
    }
    .split-image-col,
    .split-text-col {
        flex-basis: 100%; /* Ensures items stack and take full width of the flex container */
        width: auto; /* Allow flex-basis to control the width in flex flow */
        min-height: auto;
    }
    .split-image-col {
        order: 1; /* Image first */
        height: 50vh;
        max-height: 350px;
        padding: 0;
        width: 100vw;
        position: relative; 
        left: 50%;
        margin-left: -50vw; 
        /* z-index: 1; /* Ensure it's behind text if overlap occurs */
    }
    .split-text-col {
        order: 2; /* Text after image */
        padding: 2rem 1.5rem;
        width: 100%; 
        box-sizing: border-box;
        position: relative; /* For z-index if needed */
        margin-top: 5vw;
        margin-bottom: 5vw;
        z-index: 2; /* Ensure text is on top */
        background-color: #fff; /* Add if text needs solid background over image */
    }
    .content-split-section.image-right .split-image-col,
    .content-split-section.image-right .split-text-col {
        order: initial !important;
    }
    
    .values-page .split-text-col {
        text-align: center;
    }
    .values-page .split-text-col h3,
    .values-page .split-text-col h2,
    .values-page .split-text-col p {
        text-align: center; /* Explicitly center text within these elements */
        width: inherit;
    }

    .content-split-section .split-text-col h3 { font-size: 1.5rem;}
    .content-split-section .split-text-col p { font-size: 1rem;}
    .content-split-section .split-text-col h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    /* Main content padding for pages with hero */
    .who-we-are-page main > section:not(.page-hero-section):first-of-type,
    .services-page main > section:not(.page-hero-section):first-of-type,
    .values-page main > section:not(.page-hero-section):first-of-type {
        padding-top: calc(3rem + 70px);
    }

    /* Services Zigzag Mobile */
    .service-row {
        flex-direction: column;
    }
    .service-image-col,
    .service-text-col {
        width: 100%;
        min-height: auto;
    }
    .service-image-col {
        height: 300px;
    }
    .service-text-col {
        padding: 2rem 1rem;
        order: 2 !important;
    }
    .service-row.image-right .service-image-col,
    .service-row.image-right .service-text-col {
        order: initial !important;
    }
    /* .service-text-col h5 font-size inherited */
    /* .services-zigzag-section .section-title font-size inherited */


    /* Investment Platform (Services) Mobile */
    /* .investment-platform-section .section-title font-size inherited */
    .investment-platform-section p { font-size: 1rem; }

    /* CTA Section (Services, Values) Mobile */
    /* .cta-section h2 font-size inherited */
    .cta-section .learn-more-link { font-size: 1.3rem; }


    /* Contact Page Mobile */
    .contact-page main {
        padding-top: calc(3rem + 70px);
    }
    .contact-page .page-title { font-size: 2.2rem; }
    .contact-form-section .section-intro { font-size: 1rem; }
    .form-group input[type="email"],
    .form-group input[type="text"],
    .form-group textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }
    .checkbox-group label { font-size: 0.9rem; }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-grid > div {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    .site-footer h4 { font-size: 1rem; }
    .site-footer address, .site-footer ul li a { font-size: 0.85rem;}

    .news-hero-banner {
        height: 33.33vh; /* Keep 1/3 height on mobile too, or adjust if needed */
    }
    .news-hero-content {
        padding-left: 1.5rem; /* Adjust padding for mobile */
        padding-bottom: 1.5rem;
    }
    .news-hero-content h1.page-hero-title {
        font-size: 1.8rem; /* Smaller hero title on mobile */
    }
    /* Optional: if you add an H6 subtitle */
    .news-hero-content h6.page-hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        margin-bottom: 0.25rem;
    }

    #news-pagination-container button,
    #news-pagination-container span {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }

    /* News Articles Mobile */

    .news-article-page main.news-article-main {
        padding-top: 60px; /* Adjust for mobile header */
    }

    .news-article-hero-content-container {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }
    .article-headline {
        font-size: 1.6rem;
    }
    .article-publish-date {
        font-size: 0.8rem;
        margin-bottom: 0.5em;
    }
    .article-social-share a {
        font-size: 1rem;
    }

    .article-text-area h3 { font-size: 1.4rem; }
    .article-text-area h4 { font-size: 1.25rem; }
    .article-text-area h5 { font-size: 1.1rem; }
    .article-text-area p, .article-text-area li { font-size: 1rem; }
    .highlighted-quote { font-size: 1.1rem; margin: 1.5em 0; }

    /* Policy Mobile */

    .policy-page main {
        padding-top: calc(3rem + 70px);
    }
    .policy-page .page-title {
        font-size: 2rem; /* Adjust title size for mobile */
    }
    .policy-content-section .narrow-content h2 {
        font-size: 1.3rem;
    }
    .policy-content-section .narrow-content h3 {
        font-size: 1.15rem;
    }
    .policy-content-section .narrow-content p,
    .policy-content-section .narrow-content li {
        font-size: 0.95rem;
    }

}

@media (max-width: 480px) {
    .news-hero-content h1.page-hero-title {
        font-size: 1.5rem; /* Even smaller for very small screens */
    }
    .news-items-grid {
        grid-template-columns: 1fr; /* Single column for very small screens */
    }
}

