/*
Theme Name: Palmae
Author: CYFER
*/

:root {
    --palmae-brand: #43a595; 
    --palmae-dark: #1a1a1a;  
    --palmae-white: #ffffff;
    --palmae-gray: #f8f9fa;
    --text-body: #6C7675; /* Exact color from image_b62017 */
    --palmae-dark-teal: #274341; /* Exact color from image_b5cdc0 */
    --container-width: 1392px; 
}

/* --- 1. GLOBAL TYPOGRAPHY --- */
html, body {
    overflow-x: hidden; /* Prevents horizontal scrolling */
    width: 100%;
    position: relative;
}

/* Mobile-only fix for WP Admin Bar overlap */
@media screen and (max-width: 991px) {
    .admin-bar .site-header {
        top: 46px !important; /* Matches mobile WP admin bar height */
    }
    
    /* If the admin bar disappears as you scroll, ensure header snaps back */
    .admin-bar .site-header.sticky-top {
        margin-top: 0;
    }
}

/* Extra small screens fix */
@media screen and (max-width: 600px) {
    #wpadminbar {
        position: fixed !important; /* Keeps the bar at the top so it doesn't scroll with the page */
    }
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Inter Regular */
    color: var(--text-body);
    font-size: 20px; /* Exact size */
    line-height: 31px; /* Exact match */
    margin: 0;
    padding: 0;
    /* Forces sleek rendering across all browsers to prevent thickness */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* GLOBAL HEADING THICKNESS FIX: Target specific classes to prevent browser overrides */
h1, h2, h3, h4, h5, h6, 
.hero-banner h1, 
.section-title, 
.reliability-card h4 {
    /* Prioritizes the Condensed variant from your design */
    font-family: "Georgia Pro Cond", "Georgia Pro Condensed", "Georgia Pro", Georgia, serif !important; 
    
    /* STRICT FIX: Forces weight 400 (Regular/Thin) to match image_b64263 */
    font-weight: 400 !important; 
    color: var(--palmae-dark-teal);
    letter-spacing: -0.01em; 
}

/* Hero Heading Precision */
.hero-banner h1, 
.hero-heading {
    font-size: 56px !important;
    line-height: 64px !important;
    color: var(--palmae-white) !important;
}

/* --- HOMEPAGE HERO MOBILE FIX --- */
@media (max-width: 991px) {
    /* 1. Force Left Alignment for the content wrapper */
    .hero-banner {
        min-height: 500px !important; /* Adjusted for mobile view */
        text-align: left !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .hero-content {
        text-align: left !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 2. HEADING: Big, bold, and tight spacing */
    .hero-banner h1.display-3 {
        font-size: 32px !important; /* Proportional reduction from 56px */
        line-height: 1.1 !important; /* Tightens gap between lines */
        margin-bottom: 20px !important;
        text-align: left !important;
        display: block !important;
    }

    /* 3. SUBHEADING: Smaller, spaced for readability */
    .hero-banner p.lead.fs-4 {
        font-size: 16px !important; /* Distinctly smaller than h1 */
        line-height: 1.5 !important; /* Balanced spacing for sub-text */
        margin-bottom: 30px !important;
        text-align: left !important;
        max-width: 100% !important;
        opacity: 0.9 !important;
    }

   /* 4. SMALLER BUTTON & FONT */
    .hero-banner .btn-palmae {
        margin-left: 0 !important;
        margin-right: auto !important;
        display: inline-block !important;
        width: auto !important;
        background-color: #43a595;
        
        /* Smaller button dimensions */
        padding: 10px 22px !important; 
        
        /* Smaller button font */
        font-size: 13px !important; 
        letter-spacing: 0.5px !important;
    }
    
    /* Remove the overlay-centering if necessary */
    .hero-banner::before {
        background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    }
}

/* --- GLOBAL BUTTON BACKGROUND FIX --- */
.btn-palmae, 
.hero-banner .btn-palmae {
    background-color: var(--palmae-brand) !important; /* Force teal color */
    color: var(--palmae-white) !important;           /* Force white text */
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    display: inline-block;
    border: none !important;
    padding: 12px 30px; /* Standard desktop padding */
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Hover effect for desktop */
.hero-banner .btn-palmae:hover {
    background-color: var(--palmae-dark-teal) !important;
    color: var(--palmae-white) !important;
    transform: translateY(-2px);
}

/* Section Heading Precision */
section h2, 
.section-title {
    font-size: 36px !important;
    line-height: 40px !important;
    color: #274341 !important;
}

/* Text on Dark Backgrounds */
.reliability-section h2,
[style*="background-color: var(--palmae-brand)"] h2 {
    color: var(--palmae-white) !important;
}

/* --- 2. LAYOUT & CONTAINERS --- */

@media (min-width: 1440px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: var(--container-width);
    }
}

/* --- 3. NAVIGATION & HEADER --- */

.site-header {
    background-color: var(--palmae-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1030;
}

.navbar-brand img {
    height: 50px;
    width: auto; 
}

.nav-link {
    color: var(--palmae-dark) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--palmae-brand) !important;
}

/* --- 4. HAMBURGER BUTTON --- */

.navbar-toggler {
    border: none !important;
    padding: 10px !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    width: 32px; 
    height: 3px; 
    background-color: var(--palmae-brand) !important;
    display: block;
    margin: 0 auto;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 3px;
    background-color: var(--palmae-brand) !important;
    left: 0;
}

.navbar-toggler-icon::before { top: -10px; }
.navbar-toggler-icon::after { top: 10px; }

/* --- 5. HERO BANNER --- */

.hero-banner-wrapper {
    background-color: #fff; 
    width: 100%;
    position: relative;
}

.hero-banner {
    max-width: 1873px; 
    min-height: 645px; 
    margin: 0 auto;    
    background: transparent url('img/hero_banner.jpg') 0% 0% no-repeat padding-box;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--palmae-white);
    position: relative;
    overflow: hidden;
}

/* Fix: Subheading below hero banner */
.hero-banner p {
    font-family: 'Inter', sans-serif;
    font-size: 20px !important; /* */
    line-height: 31px !important; /* */
    font-weight: 400;
    color: var(--palmae-white);
    max-width: 600px;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

/* --- 6. RELIABILITY SECTION --- */

.reliability-section {
    padding: 100px 0;
    overflow: hidden;
}

.reliability-card {
    width: 316px; 
    height: 395px; 
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border-radius: 14px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    /* Top: 60, Sides: 32, Bottom: 36 */
    padding: 60px 32px 36px 32px !important; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    box-sizing: border-box;
}

.reliability-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.icon-wrapper {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.reliability-card .icon-wrapper img {
    width: 38.56px; 
    height: 43.1px;
    object-fit: contain;
}

.partnership-card .icon-wrapper img {
    width: 54px !important;
    height: auto;
}

.card-text-content {
    margin-top: auto;
}

.reliability-card h4 {
    font-size: 24px;
    margin-bottom: 12px;
}

.reliability-card p {
    font-size: 18px !important; 
    line-height: 1.5;
    color: var(--text-body) !important;
    margin: 0;
}

/* --- 7. "KNOW MORE" LINKS & BUTTONS --- */



/* FINAL: Know More Single Line Style */
.link-know-more {
    font-family: 'Inter', sans-serif;
    font-size: 16px; 
    font-weight: 600;
    color: var(--palmae-brand) !important;
    text-transform: uppercase;
    text-decoration: none;
    
    /* Layout: One line, text left, arrow right */
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* Width: Matches the length of the word 'Synergy' */
    width: 100%;
    max-width: 260px; 
    letter-spacing: 2px;
    
    /* The single underline */
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--palmae-brand); 
    
    transition: all 0.3s ease;
    margin-top: 25px;
}

/* Remove any existing after-elements that might cause double lines */
.link-know-more::after {
    content: '>'; 
    font-size: 18px;
    margin-left: auto;
    letter-spacing: normal;
}

.link-know-more:hover {
    opacity: 0.8;
    max-width: 270px; /* Slight expansion feel */
}

/* Know More - Single Line Style */
.link-know-more {
    font-family: 'Inter', sans-serif;
    font-size: 16px; 
    font-weight: 600;
    color: var(--palmae-brand) !important;
    text-transform: uppercase;
    text-decoration: none;
    align-items: center;
    justify-content: space-between;
    
    /* Width logic to match 'Synergy' */
    width: 100%;
    max-width: 245px; 
    letter-spacing: 2px;
    
    /* Single Underline */
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--palmae-brand); 
    
    transition: all 0.3s ease;
    margin-top: 25px;
}

/* Ensure the arrow stays correctly positioned */
.link-know-more::after {
    content: '>'; 
    font-size: 18px;
    margin-left: auto;
}

/* Mobile-Specific Adjustment for the Bottom Link */
@media (max-width: 991px) {
    .link-know-more.d-lg-none {
        margin-top: 10px; /* Spacing from the paragraph above */
        margin-left: 0;   /* Keeps it left-aligned */
    }
}

/* --- 8. FOOTER --- */

.site-footer {
    background: var(--palmae-gray);
    padding: 80px 0 40px;
    border-top: 1px solid #eee;
}

/* --- 9. RESPONSIVE --- */

@media (max-width: 991px) {
    .hero-banner { min-height: 400px; text-align: center; }
    .hero-banner h1 { font-size: 1.85rem !important; }
}

@media (max-width: 767px) {
    .reliability-card {
        width: 100%;
        max-width: 316px;
        height: auto;
        min-height: 395px;
        padding: 50px 25px 30px 25px !important;
    }
}

/* --- 10. BUSINESS DIVISION SECTION --- */

.business-division-section {
    padding: 100px 0;
    background-color: #f1f3f3; /* Matches the light background in image_d26904 */
}

.division-header {
    margin-bottom: 70px; /* Spacing between header and grid */
}

/* Ensure sub-text in header follows Inter 20px/31px specs */
.division-header p {
    font-family: 'Inter', sans-serif;
    font-size: 20px !important; 
    line-height: 31px !important;
    color: var(--text-body);
}

.division-card {
    margin-bottom: 50px;
}

.division-image-link {
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    aspect-ratio: 16 / 9;
}

.division-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.division-image-link:hover img {
    transform: scale(1.04);
}

/* Logo sizing to match image_d26904 */
.division-logo {
    height: 32px; 
    width: auto;
    margin-bottom: 18px;
    display: block;
    object-fit: contain;
}

.division-card h3 {
    font-size: 24px !important; /* title style */
    margin-bottom: 14px;
    transition: color 0.3s ease;
}

.division-card h3:hover {
    color: var(--palmae-brand);
}

.division-card p {
    font-size: 18px !important; /* Standard card description size */
    line-height: 1.55;
    color: var(--text-body);
}

/* --- 11. BUSINESS DIVISION: RELIABILITY LOGOS --- */

.reliability-logos-section {
    padding: 100px 0;
    background-color: #FFFFFF; /* */
}

.logo-grid-wrapper {
    /* To get the 'left: 360px' look on a 1920px screen:
       (1920 - 360 left - 360 right) = 1200px approx grid area.
    */
    max-width: 1204px; 
    margin-left: 360px; /* Exact XD offset */
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    /* Exactly 8px horizontal gap between boxes */
    gap: 40px 8px; 
}

.logo-item {
    /* EXACT XD DIMENSIONS */
    width: 194px;
    height: 96px;
    flex: 0 0 194px; /* Forces exact width to maintain 6 per row */
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Responsive Behavior --- */

@media (max-width: 1600px) {
    .logo-grid-wrapper {
        margin-left: auto;
        margin-right: auto;
        padding: 0 40px;
    }
}

@media (max-width: 991px) {
    .logo-item {
        flex: 0 0 calc(33.33% - 8px); /* 3 columns for tablet */
        width: auto;
    }
}

@media (max-width: 575px) {
    .logo-item {
        flex: 0 0 calc(50% - 8px); /* 2 columns for mobile */
    }
}

/* --- 12. PALMAE GROUP: FOOTER --- */

.main-footer {
    background-color: #2D2A26; /* Deep charcoal background */
    color: #FFFFFF;
    padding: 80px 0 30px 0;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 90px;
}

.vision-logo {
    height: 60px;
    width: auto;
}

.footer-contact a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--palmae-brand);
}

.footer-heading {
    color: var(--palmae-brand);
    font-family: "Georgia Pro Cond", Georgia, serif;
    font-weight: 400; /* global thin style */
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 13px;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--palmae-brand);
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-icons img {
    height: 32px;
    width: 32px;
    transition: opacity 0.3s;
}

.social-icons a:hover img {
    opacity: 0.7;
}

.footer-bottom {
    padding-top: 30px;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- CUSTOM PALMAE STYLES (REQUIRED) --- */

.inner-page-banner {
    background: linear-gradient(rgba(45, 42, 38, 0.8), rgba(45, 42, 38, 0.8)), 
                url('<?php echo get_template_directory_uri(); ?>/img/inner-banner-global.jpg') no-repeat center center;
    background-size: cover;
}

/* Your specific XD offset - only applied on Desktop */
@media (min-width: 1200px) {
    .offset-xd { margin-left: 360px !important; }
}

.text-teal { color: #00A18E !important; }

.font-georgia { 
    font-family: "Georgia Pro Cond", serif; 
    font-weight: 400; 
}

.sub-heading-inter {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 31px;
}

/* --- LEADERSHIP PAGE STYLES --- */

.leader-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8; /* Fallback color */
    aspect-ratio: 4 / 5; /* Standard professional portrait ratio */
}

.leader-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Optional: Matches the professional Altitude look */
    transition: filter 0.4s ease;
}

.leader-card:hover .leader-img-wrapper img {
    filter: grayscale(0%);
}

.leader-card h4 {
    font-size: 24px;
    color: #2D2A26;
}

/* --- LEADERSHIP PAGE STYLES --- */

.leader-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8; /* Fallback color */
    aspect-ratio: 4 / 5; /* Standard professional portrait ratio */
}

.leader-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Optional: Matches the professional Altitude look */
    transition: filter 0.4s ease;
}

.leader-card:hover .leader-img-wrapper img {
    filter: grayscale(0%);
}

.leader-card h4 {
    font-size: 24px;
    color: #2D2A26;
}

//* Fix for WordPress Menu item styling */
.navbar-nav li {
    list-style: none;
}

.navbar-nav li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-nav li a:hover {
    color: #008080; /* Your brand teal */
}

/* Ensure the menu stays on top of page content */
.navbar-collapse {
    z-index: 9999;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        margin-top: 15px;
        padding-bottom: 20px;
    }
}

/* --- DROPDOWN NAVIGATION STYLES --- */

/* Remove bullet points from sub-menus */
.navbar-nav .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 992px) {
    /* Position the dropdown menu */
    .navbar-nav li { position: relative; }

    .navbar-nav .sub-menu {
        position: absolute;
        width: max-content;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #fff;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border-top: 3px solid var(--palmae-brand); /* Brand teal accent */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 1000;
        padding: 10px 0;
    }

    /* Show dropdown on hover */
    .navbar-nav li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Sub-menu Link Styling */
    .navbar-nav .sub-menu li a {
        padding: 12px 25px;
        font-size: 13px;
        font-weight: 500;
        color: #333 !important;
        text-transform: uppercase;
        display: block;
        letter-spacing: 0.5px;
        border: none !important; /* Removes underlines */
    }

    .navbar-nav .sub-menu li a:hover {
        background-color: #f8f9fa;
        color: var(--palmae-brand) !important;
        padding-left: 30px; /* Subtle slide effect */
    }
}

/* Mobile Dropdown Styling */
@media (max-width: 991px) {
    .navbar-nav .sub-menu {
        background: #fdfdfd;
        padding-left: 15px;
        border-left: 2px solid #eee;
        margin: 10px 0;
    }
    
    .navbar-nav .sub-menu li a {
        padding: 10px 0;
        font-size: 14px;
        color: var(--text-body) !important;
    }
}

/* --- 1. RESTORE HEADER SPACE --- */
.hero-banner-wrapper {
    margin-top: 0px; /* Adjust this if you want a physical gap, e.g., 20px */
}

/* --- 2. DROPDOWN ARROWS (DESKTOP) --- */
@media (min-width: 992px) {
    /* Target only items with children (dropdowns) */
    .navbar-nav li.menu-item-has-children > a {
        display: flex !important;
        align-items: center;
        gap: 8px; /* Space between text and arrow */
    }

    /* Create the Arrow using a pseudo-element */
    .navbar-nav li.menu-item-has-children > a::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--palmae-brand);
        border-bottom: 2px solid var(--palmae-brand);
        transform: rotate(45deg); /* Creates the 'V' shape */
        margin-top: -4px; /* Centers it vertically with the text */
        transition: transform 0.3s ease;
    }

    /* Rotate arrow when hovering over the dropdown */
    .navbar-nav li.menu-item-has-children:hover > a::after {
        transform: rotate(-135deg);
        margin-top: 4px;
    }
}

/* --- 3. DROPDOWN ARROWS (MOBILE) --- */
@media (max-width: 991px) {
    .navbar-nav li.menu-item-has-children > a::after {
        content: " \25BE"; /* Uses a simple unicode down-triangle for mobile */
        font-size: 12px;
        color: var(--palmae-brand);
        margin-left: 5px;
    }
}

/* --- MOBILE DROPDOWN TOGGLE LOGIC --- */

@media (max-width: 991px) {
    /* Hide sub-menus by default */
    .navbar-nav .sub-menu {
        display: none; 
        visibility: hidden;
        opacity: 0;
        height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        padding-left: 20px;
        margin-top: 0;
    }

    /* Class added via JS to open the menu */
    .navbar-nav .sub-menu.show-mobile-dropdown {
        display: block;
        visibility: visible;
        opacity: 1;
        height: auto;
        margin-top: 10px;
        padding-bottom: 10px;
    }

    /* Rotate the arrow icon when open */
    .menu-item-has-children > a.arrow-up::after {
        transform: rotate(180deg);
    }
}
/* Main Banner Background */
.inner-page-banner {
    width: 100%;
    min-height: 400px;
    background-image: url('img/inner-banner-palmae.jpeg'); 
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Breadcrumb Navigation - Exact Style from your screenshot */
.inner-page-banner .breadcrumb-nav {
    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 1rem; /* Equivalent to mb-3 */
}

.inner-page-banner .breadcrumb-nav a {
    color: #ffffff;
    text-decoration: none;
}

/* White Separator Style */
.inner-page-banner .breadcrumb-separator {
    color: #ffffff;
    margin: 0 10px;
}

.inner-page-banner .current-page {
    color: #ffffff;
}

/* Typography Cleaning */
.inner-page-banner .hero-heading {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: none !important;
}

.inner-page-banner .sub-heading-inter {
    font-size: 1.15rem;
    line-height: 1.6;
    text-shadow: none !important;
}

/* Container and Scroll Behavior */
.division-scroll-wrapper {
    position: relative;
    width: 100%;
}

.division-scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* Snaps to cards for a professional feel */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 10px 0;
}

.division-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* 2 Columns on Desktop, 1 on Mobile */
.division-slide {
    flex: 0 0 calc(50% - 12px);
    scroll-snap-align: start;
}

@media (max-width: 991px) {
    .division-slide {
        flex: 0 0 calc(100%);
    }
}

/* --- Business Division Slider Styles --- */

/* 1. Container & Scroll Logic */
.division-scroll-wrapper {
    position: relative;
    width: 100%;
}

.division-scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 15px 0;
}

.division-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* 2. Slide/Card Layout (2 Columns Desktop, 1 Column Mobile) */
.division-slide {
    flex: 0 0 calc(50% - 12px);
    scroll-snap-align: start;
}

.division-card {
    height: 100%;
    margin-bottom: 0 !important;
    background: transparent;
}

.division-card h3 {
    font-size: 1.25rem;
    margin-top: 15px;
}

@media (max-width: 991px) {
    .division-slide {
        flex: 0 0 100%;
    }
}

/* 3. Optimized Navigation Arrows */
.slider-nav-wrapper {
    background: transparent !important;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* Use your brand teal variable or #1B4B43 based on your screenshot */
    border: 1.5px solid var(--palmae-dark-teal, #1B4B43); 
    background: transparent !important; 
    color: var(--palmae-dark-teal, #1B4B43);
    font-size: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: none;
}

.scroll-arrow:hover {
    background: var(--palmae-brand, #1B4B43) !important;
    color: #ffffff;
    border-color: var(--palmae-brand, #1B4B43);
    transform: scale(1.05);
}

.scroll-arrow:active {
    transform: scale(0.95);
}

.clean-logo-grid {
    display: grid;
    /* 5 columns within the container */
    grid-template-columns: repeat(5, 1fr); 
    /* Extremely tight gap for maximum logo size */
    gap: 5px; 
    width: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px; /* Tall height allows images to expand more */
    background: transparent !important; /* No grey background */
    padding: 0;
}

.logo-wrapper img {
    max-width: 95%; /* Logos take up 95% of the column width */
    max-height: 85%;
    object-fit: contain;
    
    /* Keep the professional grayscale look */
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.logo-wrapper:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1); /* Pop effect */
}

/* Tablet & Mobile scaling */
@media (max-width: 991px) {
    .clean-logo-grid { grid-template-columns: repeat(3, 1fr); }
    .logo-wrapper { height: 110px; }
}

@media (max-width: 576px) {
    .clean-logo-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-wrapper { height: 90px; }
}


/* 1. Target the SVG stroke specifically */
.industry-icon-box svg {
    color: var(--palmae-brand) !important;
    stroke: var(--palmae-brand) !important;
}

/* 2. Style the brand divider underline */
.brand-divider {
    height: 1.5px;
    width: 60px;
    background-color: var(--palmae-brand);
    margin-top: 1rem;
}

/* 3. Heading below icon: Same font as section-title but smaller */
.industry-label {
    /* Set specific font family to match section-title if needed */
    font-size: 1.25rem !important; 
    font-weight: 700;
    line-height: 1.4;
    color: #1B4B43;
    margin-bottom: 0.75rem;
}

.industry-item .text-body {
    line-height: 1.7;
    color: #6C7675;
}

.career-form input, 
.career-form select, 
.career-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.career-form input:focus, 
.career-form select:focus, 
.career-form textarea:focus {
    border-color: var(--palmae-brand);
    outline: none;
    background-color: #fff;
}

.upload-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1B4B43;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-brand {
    background-color: var(--palmae-brand);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.btn-brand:hover {
    opacity: 0.9;
}

/* Core Colors */
.careers-page { background-color: #ffffff; }
.brand-icon-color { color: var(--palmae-brand); }
.brand-divider { height: 2px; width: 45px; background-color: var(--palmae-brand); }

/* Form Elements */
.career-form-wrapper input:not([type="submit"]),
.career-form-wrapper select,
.career-form-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    background-color: #fafafa;
}

.career-form-wrapper input:focus,
.career-form-wrapper select:focus,
.career-form-wrapper textarea:focus {
    border-color: var(--palmae-brand);
    background-color: #fff;
    outline: none;
}

/* Re-asserting the Submit Button Style from your screenshot fix */
.wpcf7-submit {
    background-color: var(--palmae-brand) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 40px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    width: 100% !important;
    display: block !important;
    border-radius: 4px !important;
    margin-top: 20px;
}

.wpcf7-submit:hover { background-color: #1B4B43; }

.upload-sub-label {
    display: block;
    font-size: 0.75rem;      /* Smaller size */
    font-weight: 400;       /* Normal weight (not bold) */
    color: #6C7675;         /* Soft gray */
    margin-bottom: 2px !important; /* Minimal gap between label and button */
}


.wpcf7-file::file-selector-button {
    background-color: var(--palmae-brand) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    margin-right: 10px;
}

.wpcf7-file::file-selector-button:hover {
    background-color: #1B4B43 !important; /* Darker brand teal */
}

/* Stacked Form Styling */
.palmae-contact-form-flat span {
    display: block; /* CF7 wraps fields in spans; this ensures they stack */
    width: 100%;
}

.palmae-contact-form-flat input:not([type="submit"]),
.palmae-contact-form-flat select,
.palmae-contact-form-flat textarea {
    display: block;
    width: 100% !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    padding: 15px 5px !important;
    background: transparent !important;
    margin-bottom: 30px !important; /* Creates the row-like spacing */
    font-size: 1rem;
    color: #333;
}

.palmae-contact-form-flat input:focus,
.palmae-contact-form-flat select:focus,
.palmae-contact-form-flat textarea:focus {
    border-bottom: 2px solid var(--palmae-brand) !important;
    outline: none !important;
}

/* Submit Button */
.palmae-contact-form-flat .wpcf7-submit {
    background-color: var(--palmae-brand) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 60px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    display: inline-block !important;
    width: auto !important;
}

.palmae-contact-form-flat .wpcf7-submit:hover {
    background-color: #1B4B43 !important;
}

/* Styling for Dynamic Content */
.entry-content {
    line-height: 1.8;
    color: #4a4a4a;
    font-size: 1.05rem;
}

.entry-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1B4B43; /* Brand Teal */
    margin-top: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Add the brand divider automatically after every H2 in the content */
.entry-content h2::after {
    content: "";
    display: block;
    height: 2px;
    width: 40px;
    background-color: var(--palmae-brand);
    margin-top: 10px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

/* Business Divisions Grid Styling */
.divisions-page .text-teal {
    color: #008080 !important;
}

.divisions-page .hero-heading {
    font-size: 3rem;
    font-weight: 700;
}

/* Container for each division item */
.division-item {
    position: relative;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
    transition: border-color 0.4s ease;
}

/* Image Styling with specific radius */
.img-container {
    overflow: hidden;
    border-radius: 20px; /* Matching the radius of attached image */
    background: #f8f9fa;
    margin-bottom: 1.5rem;
}

.division-grid-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover Effect for Image */
.division-item:hover .division-grid-img {
    transform: scale(1.1);
}

.division-item:hover {
    border-color: #008080 !important;
}

/* Logo and Text Positioning */
.logo-wrap {
    margin-bottom: 0.75rem;
}

.logo-wrap img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.division-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.division-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.division-item:hover .division-title a {
    color: #008080;
}

.division-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    min-height: 2.7rem;
}

.btn-discover {
    color: #008080;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.btn-discover span {
    margin-left: 5px;
    font-size: 14px;
}

.btn-discover:hover {
    opacity: 0.8;
    color: #008080;
}