/* ==== GLOBAL STYLES ==== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #fff; /* Default background for content sections */
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    margin-top: 0;
}

/* ==== HEADER ==== */
.main-header {
    background-color: #28A745; /* Your requested GREEN */
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px; /* Adjust as needed */
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar li {
    margin-left: 25px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 5px;
    transition: color 0.3s, border-color 0.3s;
}

.navbar a:hover {
    color: #F6D981; /* Use YELLOW for hover */
}

.navbar a.active {
    color: #F6D981; /* Use YELLOW for active link */
    border-bottom: 2px solid #F6D981;
}

/* ==== BUTTONS ==== */
.btn {
    text-decoration: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-primary {
    background-color: #F6D981; /* Use YELLOW for main "Quote" button */
    color: #2C2C2C; /* Dark text on yellow for readability */
}

.btn-primary:hover {
    background-color: #e9c86a; /* Slightly darker yellow on hover */
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #28A745; /* Use header GREEN for other buttons */
    color: #fff;
}

.btn-secondary:hover {
    background-color: #218838; /* Darker green on hover */
    transform: scale(1.05);
}

/* ==== HERO SECTION (UPDATED FOR SLIDER) ==== */
.hero {
    /* 1. Positioning Context */
    position: relative;
    overflow: hidden; /* Ensures images don't spill out */

    /* 2. Maintain size and alignment */
    padding: 80px 0;
    text-align: center;
    color: #fff;
    background-color: #222; /* Fallback color */
}

/* The container for the background images */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind text */
}

/* Individual Slide Styles */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    
    /* Animation Logic */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth fade transition */
}

/* The class added by JS to show the slide */
.slide.active {
    opacity: 1;
}

/* Bring content (text/buttons) to front */
.hero-content {
    position: relative;
    z-index: 3; 
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff; /* Explicitly make heading white */
    text-shadow: 0 2px 10px rgba(0,0,0,0.7); /* Add shadow for readability on slider */
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 50px;
    color: #fff !important; /* Force white color */
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* ==== CONTENT SECTIONS (Light/Dark Pattern) ==== */
.about-intro, .services, .cta {
    padding: 40px 0; /* <-- REVISION: REDUCED FROM 60px */
}

/* --- About Intro (White) --- */
.about-intro .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text, .about-image {
    flex: 1;
}

/* ADDED RULE FOR IMAGE RADIUS */
.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Services (Light Grey) --- */
.services {
    background-color: #f9f9f9; /* Standard light grey */
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.service-item img {
    height: 200px; /* For icons */
    margin-bottom: 15px;
    item-align: center;
}

.service-item h3 {
    color: #28A745; /* Use GREEN for service titles */
}

.service-item a {
    color: #28A745;
    text-decoration: none;
    font-weight: bold;
}

/* --- CTA (White) --- */
.cta {
    background-color: #fff; /* CHANGED: Was #f4f4f4 */
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ==== NEW FOOTER STYLES ==== */
.main-footer {
    background-color: #2C2C2C; /* Dark background */
    color: #ccc; /* Light grey text */
    padding-top: 30px; /* More padding at the top */
}

.footer-grid {
    display: grid;
    /* Create 4 columns on desktop, but fewer on smaller screens */
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    font-size: 0.9rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: #F6D981; /* Changed to accent color */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col p {
    margin: 0 0 10px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc; /* Light grey link color */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #F6D981; /* Your yellow accent on hover */
}

/* --- Footer Bottom Bar --- */
.footer-bottom-bar {
    background-color: #000; /* Even darker bar for copyright */
    text-align: center;
    padding: 15px 0;
    font-size: 0.85rem;
    color: #F6D981;
}

.footer-bottom-bar p {
    margin: 0;
}


/* --- Make Footer Responsive --- */
@media (max-width: 992px) {
    /* Stack to 2 columns on tablets */
    .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Stack to 1 column on mobile */
    .footer-grid {
    grid-template-columns: 1fr;
    }

    .footer-col {
    text-align: center; /* Center-align columns on mobile */
    }

    /* Center the green accent line on mobile */
    .footer-col h4::after {
    left: 50%;
    margin-left: -20px; /* Half of the 40px width */
    }
}

/* ==== SERVICES PAGE STYLES ==== */
.page-header {
    /* FIXED: Changed overlay from 100% to 50% opacity */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/services/services-img-001.jpg');
    background-color: #222;
    background-size: cover;
    background-position: center center;
    padding: 80px 20px;
    text-align: center;
    color: #fff; 

}
.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff !important; /* Force white color */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);

}
.page-header p {
    font-size: 1.5rem;
    color: #fff !important; /* Force white color */
    margin-bottom: 50px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);

}
.services-content {
    padding: 60px 0;
    background-color: #f9f9f9; /* ADDED: Light grey */
}

.service-entry {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px; /* Space between service blocks */
}

.service-entry .service-image,
.service-entry .service-text {
    flex: 1; /* Each takes half the width */
}

.service-entry .service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-entry .service-text h3 {
    font-size: 2rem;
    color: #28A745; /* Your main green */
    margin-bottom: 15px;
}

.service-entry .service-text ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 20px;
}

.service-entry .service-text li {
    margin-bottom: 10px;
}

/* This rule flips the order for the "reversed" class */
.service-entry.reversed {
    flex-direction: row-reverse;
}


/* --- Responsive for Services Page --- */
@media (max-width: 768px) {
    .page-header h1 {
    font-size: 2.5rem;
    }

    /* Stack the image and text on top of each other */
    .service-entry,
    .service-entry.reversed {
    flex-direction: column;
    text-align: left; /* Keep text left-aligned */
    }
}


/* --- Dark Mode for Services Page --- */
.dark-mode .page-header {
    /* CHANGED: Lightened the dark mode overlay from 80% to 60% */
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('images/services/services-img-hero-001.jpg');
    background-color: #111; /* Even darker fallback */
    background-size: cover;
    background-position: center center;
}
.dark-mode .page-header h1 {
    color: #fff;
}
.dark-mode .page-header p {
    color: #ccc;
}
.dark-mode .service-entry .service-image img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* *
 * THIS IS THE NEW RULE THAT FIXES THE ERROR
 *
 */
.dark-mode .services-content {
    background-color: #1E1E1E; /* Match other dark content sections */
}


/* ==== RESPONSIVE & MOBILE MENU STYLES ==== */

/* --- 1. Style the Hamburger Menu Icon --- */
#menu-toggle {
    display: none; /* Hide by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

#menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- 2. Tablet & Mobile Header (Breakpoint: 992px) --- */
@media (max-width: 992px) {
    .navbar {
    display: none; /* Hide the nav links */
    position: absolute;
    top: 95px; /* Adjust based on your header height */
    left: 0;
    width: 100%;
    background-color: #28A745; /* Green background */
    flex-direction: column; /* Stack links vertically */
    padding: 20px 0;
    box-shadow: 0 4px 5px rgba(0,0,0,0.1);
    }

    .navbar.active {
    display: flex; /* Show the menu when JS adds 'active' class */
    }

    .navbar ul {
    flex-direction: column; /* Stack list items */
    width: 100%;
    align-items: center;
    }

    .navbar li {
    margin: 10px 0;
    }

    .navbar .btn-primary {
    /* Make the quote button more prominent in the mobile menu */
    margin: 20px auto 10px;
    text-align: center;
    width: 80%;
    }

    #menu-toggle {
    display: flex; /* Show the hamburger button */
    }
}

/* --- 3. Mobile Content Styling (Breakpoint: 768px) --- */
@media (max-width: 768px) {
    .hero h1 {
    font-size: 2.5rem; /* Make hero text smaller */
    }
    
    .hero p {
    font-size: 1.1rem;
    }

    /* Stack the About Us section */
    .about-intro .container {
    flex-direction: column;
    text-align: center;
    }
    
    .about-text {
    margin-bottom: 30px;
    }

    /* Stack the Service Grid into 1 column */
    .service-grid {
    grid-template-columns: 1fr;
    }

    /* Adjust CTA text */
    .cta h2 {
    font-size: 1.5rem;
    }
}



/* ==== THEME TOGGLE BUTTON ==== */
#theme-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    padding: 5px;
}

#theme-toggle:hover {
    color: #F6D981; /* Yellow accent on hover */
}

/* Adjust button position in mobile menu */
@media (max-width: 992px) {
    #theme-toggle {
    margin: 10px auto;
    font-size: 1.5rem;
    }
}

/* --- Style for social media icons with text --- */
.footer-col .fa-brands {
    margin-right: 10px; /* Adds space between icon and text */
    width: 15px; /* Ensures consistent alignment */
}


/* ==== DARK MODE STYLES ==== */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

/* --- Dark Header --- */
/* We keep the green header, but make the mobile menu dark */
.dark-mode .navbar.active {
    background-color: #222; /* Dark background for mobile menu */
}

/* --- Dark Hero --- */
.dark-mode .hero {
    background-color: #1e1e1e;
}
.dark-mode .hero h1 {
    color: #fff;
}
.dark-mode .hero p {
    color: #ccc;
}

/* --- Dark Content Sections --- */
.dark-mode .about-intro {
    background-color: #121212; /* Match body */
}
.dark-mode .about-intro h2 {
    color: #fff;
}

/* ADDED DARK MODE SHADOW FOR ABOUT IMAGE */
body.dark-mode .about-image img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.dark-mode .services {
    background-color: #1E1E1E; /* Darker grey */
}
.dark-mode .services h2 {
    color: #fff;
}
.dark-mode .service-item {
    background-color: #2c2c2c; /* Dark card */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- CTA (Dark Blue) --- */
.dark-mode .cta {
    background-color: #002B5C; /* Your new dark blue background */
    color: #fff; /* White text */
    padding: 40px 0; /* <-- REVISION: REDUCED FROM 60px */
    text-align: center;
}

.dark-mode .cta h2 {
    color: #fff; /* White heading */
    font-size: 2rem;
    margin-bottom: 15px; /* <-- REVISION: REDUCED FROM 30px */
}

.dark-mode .cta p {
    color: #fff; /* White paragraph */
    font-size: 1.1rem;
    margin-bottom: 30px; /* <-- REVISION: REDUCED FROM 50px */
}

/* Margin-top reset as bottom margin on p is smaller */
.dark-mode .cta .btn-secondary {
    margin-top: 0; /* <-- REVISION: REDUCED FROM 20px */
}


/* --- Dark Footer --- */
/* The footer is already dark, so no changes are needed */
/* We just ensure text and links are readable */
.dark-mode .footer-col a {
    color: #ccc;
}
.dark-mode .footer-col a:hover {
    color: #F6D981;
}
.dark-mode .footer-col h4 {
    color: #F6D981;
}

/* ==== PROJECT INTRO (Replaces Page Header) ==== */
.project-intro {
    padding: 60px 0;
    background-color: #fff; /* CHANGED: Was #f9f9f9 */
}

.project-intro .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.project-intro-text, .project-intro-image {
    width: 100%;
    min-width: 0; /* prevents overflow issues in grid */
}

.project-intro-text h1 {
    font-size: 3rem;
    color: #28A745; /* Green to match theme */
    margin-bottom: 20px;
}

.project-intro-image img {
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- NEW: Video Styling (Fixed for Mobile) --- */
.project-intro-image video {
    width: 100%;           /* Ensures it shrinks to fit the screen */
    height: auto;          /* Maintains the correct aspect ratio */
    max-width: 520px;      /* Prevents it from getting too big on Desktop */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;        /* Removes any extra space below the video */
}

/* Dark Mode for Project Intro */
body.dark-mode .project-intro {
    background-color: #1E1E1E; 
}
body.dark-mode .project-intro-text h1 {
    color: #fff; 
}
body.dark-mode .project-intro-text p {
    color: #ccc; 
}
body.dark-mode .project-intro-image img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* --- NEW: Dark Mode Video Support --- */
body.dark-mode .project-intro-image video {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Responsive for Project Intro */
@media (max-width: 768px) {
    .project-intro .container {
    flex-direction: column;
    text-align: left;
    }
    .project-intro-text {
    margin-bottom: 30px;
    }
    .project-intro-text h1 {
    font-size: 2.5rem;
    }
}


/* ==== PROJECTS PAGE-SPECIFIC STYLES (v2 - With Text) ==== */

/* --- 2. Project Gallery Content --- */
.projects-content {
    padding: 60px 0;
    background-color: #f9f9f9; 
}
.dark-mode .projects-content {
    background-color: #1E1E1E;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.dark-mode .project-item {
    background-color: #2c2c2c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-item .project-image {
    position: relative;
}
.project-item img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    display: block;
}

/* --- 3. Hover Overlay --- */
.project-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.7);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}
.project-item:hover .overlay {
    opacity: 1;
}

/* --- 4. Project Info Text (CHANGED) --- */
.project-info {
    padding: 25px;
    text-align: left; /* CHANGED from center */
}

.project-info h3 {
    font-size: 1.25rem;
    color: #28A745; /* Green title */
    margin-bottom: 15px; /* ADDED more margin */
}

.project-info p {
    font-size: 0.9rem;
    color: #333; /* Darker text for readability */
    margin: 0;
    line-height: 1.6; /* ADDED for readability */
}

.dark-mode .project-info p {
    color: #ccc;
}

/* --- 5. Responsive Grid --- */
@media (max-width: 992px) {
    .project-grid {
    grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .project-grid {
    grid-template-columns: 1fr;
    }
}

/* ==== CLIENT INTRO (Reuses Project Intro styles) ==== */

/* By grouping the selectors, .client-intro shares all styles with .project-intro */
.project-intro,
.client-intro {
    padding: 60px 0;
    background-color: #fff; 
}

.project-intro .container,
.client-intro .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Give the text columns more space (e.g., 60%) */
.project-intro-text,
.client-intro-text {
    flex: 1.5; 
}

/* Give the image columns less space (e.g., 40%) */
.project-intro-image,
.client-intro-image {
    flex: 1.5; 
}
.project-intro-text h1,
.client-intro-text h1 {
    font-size: 3rem;
    color: #28A745; 
    margin-bottom: 20px;
}

.project-intro-image img,
.client-intro-image img {
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Dark Mode for Intro Sections */
body.dark-mode .project-intro,
body.dark-mode .client-intro {
    background-color: #121212; /* Match main body background */
}
body.dark-mode .project-intro-text h1,
body.dark-mode .client-intro-text h1 {
    color: #fff; 
}
body.dark-mode .project-intro-text p,
body.dark-mode .client-intro-text p {
    color: #ccc; 
}
body.dark-mode .project-intro-image img,
body.dark-mode .client-intro-image img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}


/* Responsive for Intro Sections */
@media (max-width: 768px) {
    .project-intro .container,
    .client-intro .container {
    flex-direction: column;
    text-align: left;
    }
    .project-intro-text,
    .client-intro-text {
    margin-bottom: 30px;
    }
    .project-intro-text h1,
    .client-intro-text h1 {
    font-size: 2.5rem;
    }
}


/* ==== CLIENT GALLERY (New Styles) ==== */
.client-gallery {
    padding: 60px 0;
    background-color: #f9f9f9; /* Alternating light grey */
    text-align: center;
}

.client-gallery h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 30px;
    align-items: center;
}

.logo-item {
    background: #fff;
    padding: 15px; /* <-- CHANGED */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.logo-item img {
    max-width: 100%;
    width: 100%; /* ADDED: Ensures image scales correctly with object-fit */
    height: 80px; /* <-- CHANGED */
    object-fit: contain; /* ADDED: Ensures logo fits without distortion */
    filter: grayscale(100%); /* Desaturated by default in LIGHT MODE */
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}
.logo-item:hover img {
    filter: grayscale(0%); /* Color on hover in LIGHT MODE */
    opacity: 1;
}

/* Dark Mode for Client Gallery */
.dark-mode .client-gallery {
    background-color: #1E1E1E;
}
.dark-mode .client-gallery h2 {
    color: #fff;
}
.dark-mode .logo-item {
    background-color: #fff; /* CHANGED: Set to white as requested */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.dark-mode .logo-item img {
    filter: none; /* Retain full color in dark mode */
    opacity: 1; /* Retain full opacity in dark mode */
}


/* Responsive for Client Gallery */
@media (max-width: 992px) {
    .client-logo-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
    }
}
@media (max-width: 768px) {
    .client-logo-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
}

/* ==== CONTACT PAGE STYLES ==== */

.contact-details {
    text-align: left;
}
.contact-details h2,
.contact-details h3 {
    color: #28A745;
    margin-bottom: 15px;
}
.contact-details p {
    margin-bottom: 20px;
    line-height: 1.7;
}
.contact-details p strong {
    color: #333;
}
.contact-details a {
    color: #28A745;
    text-decoration: none;
    font-weight: bold;
}
.contact-details a:hover {
    text-decoration: underline;
}

.dark-mode .contact-details h2,
.dark-mode .contact-details h3 {
    color: #fff;
}
.dark-mode .contact-details p strong {
    color: #F6D981;
}
.dark-mode .contact-details a {
    color: #F6D981;
}

.map-embed {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.dark-mode .map-embed {
    border-color: #444;
}
.map-embed iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

.contact-form-container {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.dark-mode .contact-form-container {
    background-color: #2c2c2c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.contact-form-container h2 {
    color: #28A745;
    margin-top: 0;
    margin-bottom: 20px;
}
.dark-mode .contact-form-container h2 {
    color: #fff;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}
.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: #333;
    border-color: #555;
    color: #fff;
}
.form-group textarea {
    height: 140px;
    resize: vertical;
}
/* Match the main CTA button style */
.btn-submit {
    padding: 12px 20px;
}

/* ==== CONTACT PAGE HERO OVERRIDE ==== */
.contact-header {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('folder/images/contact/contact-img-hero.jpg');
    background-color: #222;
    background-size: cover;
    background-position: center center;
}

.dark-mode .contact-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('folder/images/contact/contact-img-hero.jpg');
    background-color: #111;
    background-size: cover;
    background-position: center center;
}




/* ==== ABOUT US PAGE-SPECIFIC HEADER (NEW) ==== */

/* This body class targets *only* the about.html page header */
.about-page .page-header {
    background: #1E1E1E; /* Dark background from screenshot */
    padding-bottom: 70px; /* Add extra padding for the buttons */
    padding-top: 70px; /* Balance the padding */
}

/* Change H1 color to blue to match screenshot */
.about-page .page-header h1 {
    color: #87CEFA; /* Light Sky Blue */
    text-shadow: none; /* Remove the default white text-shadow */
    font-size: 2.5rem; /* Match the old .commitment h2 */
}

/* Style subtitle to match screenshot */
.about-page .page-header p {
    color: #ccc; /* Light grey text */
    text-shadow: none; /* Remove the default white text-shadow */
    margin-bottom: 60px; /* <--- THIS IS THE LINE YOU WANTED CHANGED */
    font-size: 1.1rem; /* Match the old .commitment p */
    margin-top: 15px;
}

/* Grid for the new buttons */
.about-page .page-header .button-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 20px;
}

/* Style the buttons (they already have .btn .btn-secondary) */
.about-page .page-header .btn-secondary {
}


/* ==== */
/* START: NEW STYLES (Matching Staging & New Request) 
/* ==== */

/* ==== COMPANY MILESTONE (Text on top, Image below) ==== */
.milestone-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light grey background */
}
/* UPDATED: Removed flex properties from container */
.milestone-section .container {
    max-width: 900px; /* Optional: constrain width for readability */
}
.milestone-content {
    /* No flex properties needed */
}
.milestone-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}
.milestone-content p {
    margin-bottom: 15px;
}
.milestone-image {
    margin-top: 30px; /* UPDATED: Add space between text and image */
}
.milestone-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


/* --- Dark Mode Milestones --- */
body.dark-mode .milestone-section {
    background-color: #1E1E1E; /* Dark background */
}
body.dark-mode .milestone-content h2 {
    color: #fff;
}
body.dark-mode .milestone-image img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}


/* ==== SUBSIDIARIES (Confirmed Correct) ==== */
.subsidiaries-section {
    padding: 60px 0;
    background-color: #fff; /* White background */
    text-align: center;
}
.subsidiaries-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}
.subsidiary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}
.subsidiary-item {
    background: #f9f9f9; /* Light grey card */
    padding: 30px;
    border-radius: 8px;
}
.subsidiary-item h3 {
    color: #28A745; /* Green title */
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Dark Mode Subsidiaries --- */
body.dark-mode .subsidiaries-section {
    background-color: #121212; /* Dark background */
}
body.dark-mode .subsidiaries-section h2 {
    color: #fff;
}
body.dark-mode .subsidiary-item {
    background-color: #1E1E1E; /* Dark card */
}

/* --- Responsive for new sections --- */
@media (max-width: 992px) {
    .subsidiary-grid {
    grid-template-columns: 1fr; /* Stack to 1 column on tablet */
    }
}

/* Mobile styles for milestones (768px) are no longer needed 
   as it stacks naturally */


/* ==== */
/* --- Styles ONLY for project-jml-bh.html --- */
/* ==== */

/* 1. Hero Section Image (Singapore Chemical...) Wider */
@media (min-width: 992px) { 
    body.project-detail-page .project-intro .container {
    /* Makes image 60% and text 40% */
    grid-template-columns: 2fr 3fr; 
    }
}

/* 2, 3, & 4. Body Section Layouts */
@media (min-width: 768px) {
    /* (Body 1 & 3) Image 60%, Text 40% */
    body.project-detail-page .services-content .service-entry:not(.reversed) { 
    grid-template-columns: 3fr 2fr;
    }
    
    /* (Body 2) Text 40%, Image 60% */
    body.project-detail-page .services-content .service-entry.reversed {
    grid-template-columns: 2fr 3fr;
    }
}

/* 2 & 4. (Body 1 & 3) Image Style */
body.project-detail-page .services-content .service-entry:not(.reversed) .service-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    min-height: 300px; /* Base height for standard images */
}

/* 3. (Body 2 - Foundation) Image Style - Taller & Wider */
body.project-detail-page .services-content .service-entry.reversed .service-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    min-height: 400px; /* Taller height for this specific image */
}

/* --- Styles for Project Card Links --- */
.project-image a.overlay-link-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

/* Style for the "View Project Details" text link */
.project-info .project-cta-link {
    color: #F6D981; /* CHANGED: Set color to orange/yellow */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 15px;
    transition: color 0.3s;
}

.project-info .project-cta-link:hover {
    color: #e9c86a; /* CHANGED: Darker orange on hover */
    text-decoration: none; /* ADDED: Explicitly remove underline on hover */
}

.dark-mode .project-info .project-cta-link {
    color: #F6D981; /* Yellow in dark mode (matches new base color) */
}

.dark-mode .project-info .project-cta-link:hover {
    color: #fff; /* White on hover in dark mode */
    text-decoration: none; /* ADDED: Explicitly remove underline on hover */
}

/* --- Add this to the end of style.css --- */

/* This targets the top introduction section on client pages 
  and changes the grid from 50/50 to roughly 35/65,
  making the image column (the second column) 30% larger 
  than its original 50% share.
*/
.client-intro .container {
    grid-template-columns: 0.7fr 1.3fr;
}

/* ==== BLOG POST PAGE STYLES ==== */

/* 1. Style the post header */
#blog-post-header {
    text-align: left; /* Left-align title, instead of center */
}

.post-meta {
    font-size: 0.9rem;
    font-style: italic;
    color: #f0f0f0; /* Light text on dark header */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Same shadow as header p */
    margin-top: 10px;
}

.dark-mode .post-meta {
    color: #ccc;
}

/* 2. Constrain content width for readability */
.blog-post-container {
    max-width: 900px; /* Limits line length, making text easier to read */
    margin: 0 auto;
    background: #fff; /* White background for the post "paper" */
    padding: 30px 40px; /* Add internal padding */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    
}

.dark-mode .blog-post-container {
    background: #2c2c2c; /* Dark card background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* 3. Style the images */
.post-featured-image {
  display: block;
  width: 100%;
  max-width: 600px;    /* adjust as needed */
  margin: 0 auto 30px;   /* centers horizontally + keeps bottom space */
  height: auto;
  border-radius: 8px;
}

/* 4. Style the post text content */
.post-inline-image {
  display: block;
  width: 100%;
  max-width: 600px;    /* optional constraint */
  height: auto;
  border-radius: 8px;
  margin: 0 auto 30px;   /* centers horizontally + keeps bottom space */
}
.dark-mode .post-body h2 {
    color: #fff;
}

.post-body p,
.post-body ul {
    font-size: 1.1rem; /* Slightly larger text for reading */
    line-height: 1.7;
    margin-bottom: 20px;
}

.post-body ul {
    padding-left: 30px;
}

.post-body blockquote {
    border-left: 4px solid #28A745; /* Green quote bar */
    padding-left: 20px;
    margin: 30px 0;
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}

.dark-mode .post-body blockquote {
    border-left-color: #F6D981; /* Yellow in dark mode */
    color: #ccc;
}

/* 5. Style the "Back" button navigation */
.post-navigation {
    text-align: center;
    margin: 40px 0 20px;
}


/* ==== BLOG-SPECIFIC HEADER BACKGROUND ==== */

/* --- 1. Light Mode Blog Header --- */
/* This targets the .page-header class *only* on pages 
   with <body class="blog-page"> or <body class="blog-post-page"> */
body.blog-page .page-header,
body.blog-post-page .page-header {
    
    /* UPDATE THIS PATH to your new blog banner image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('blog/img-blog-003.jpg');
    
    background-color: #333; /* Fallback color */
}

/* --- 2. Dark Mode Blog Header --- */
/* This does the same for dark mode */
body.dark-mode.blog-page .page-header,
body.dark-mode.blog-post-page .page-header {
    /* UPDATE THIS PATH to your new blog banner image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('blog/img-blog-003.jpg');
    background-color: #111; /* Darker fallback */
} /* <--- THIS BRACKET WAS MISSING */   

/* ==== */
/* FINAL MOBILE FIX (Isolated to Blog Text)  */
/* ==== */
@media (max-width: 768px) {
    /* SCOPE ISOLATION: This targets ONLY the white blog box. */
    .blog-post-container {
        padding-left: 15px !important; 
        padding-right: 20px !important;
        width: 100% !important; 
        box-sizing: border-box !important; 
    }

    /* Enhances readability on small screens */
    .post-body p {
        text-align: left !important;
    }
}

.footer-col {
    width: 100%;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-col .social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col .social-links li {
    margin-bottom: 10px;
}

.footer-col .social-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.footer-col .social-links a i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-col h4 {
    font-size: 1.1rem;
    }

    .footer-col .social-links a {
    font-size: 0.95rem;
    }

    .footer-col .social-links a i {
    font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-col {
    text-align: center;
    max-width: 100%;
    }

    .footer-col .social-links a {
    justify-content: center;
    }
}
.social-links a i.social-icon {
    width: 18px;    /* fixed width for alignment */
    display: inline-block;
    text-align: center;
 }

/* ==== CUSTOM FIX: Align the last subsidiary item to the RIGHT ==== */
/* This ensures the 4th item (PT EIN Indonesia) sits in the RIGHT column on desktop */
@media (min-width: 993px) {
    .subsidiary-grid .subsidiary-item:last-child {
        grid-column: 3; /* CHANGED: Was 2 (Center), now 3 (Right) */
    }
}

/* =========================================
   NEW ADDITIONS (Bio Page & Tablet Fixes)
   ========================================= */

/* --- Bio Page Header Image --- */
.bio-header-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/about/about-hero.jpg');
    background-size: cover;
    background-position: center center;
}

body.dark-mode .bio-header-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/about/about-hero.jpg');
}

/* --- Founder Portrait Styles --- */
.founder-img {
    max-width: 350px; 
    width: 100%; 
    display: block;
    border-radius: 8px;
    /* Optional: Center image on mobile if needed */
    margin: 0 auto; 
}

@media (min-width: 768px) {
    .founder-img {
        margin: 0; /* Reset margin on desktop to align left */
    }
}

/* --- Founder Title Colors --- */
.founder-title {
    color: #666; 
    margin-bottom: 20px;
}

body.dark-mode .founder-title {
    color: #ccc; 
}

/* --- FOOTER FIX FOR IPAD / TABLETS (Max-width 992px) --- */
/* This ensures the footer is centered on screens smaller than 992px */
@media (max-width: 992px) {
    .footer-col {
        text-align: center;
    }
    
    .footer-col .social-links a {
        justify-content: center; /* Centers the social icons */
    }

    /* Centers the accent line under headers (if applicable in your design) */
    .footer-col h4::after {
        left: 50%;
        margin-left: -20px; 
    }
}
/* ==== CTA BUTTON GROUP (Responsive) ==== */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px; /* Modern spacing */
    margin-top: 25px;
}

/* Fix for Edge/Desktop: Force spacing on the buttons */
.cta-buttons .btn {
    display: inline-block; /* Ensures button behaves like a box, not text */
    margin: 5px;          /* Safety margin to prevent touching */
}

/* Tablet & Mobile Styles (Stack buttons vertically) */
@media (max-width: 992px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;       
        max-width: 320px;  
        text-align: center;
        margin: 5px 0;    /* Vertical spacing for mobile */
        box-sizing: border-box; 
    }
}

/* Responsive PDF container */
.milestone-image {
    position: relative;
    width: 100%;
    max-width: 900px; /* same width used in milestone section */
    margin: 30px auto 0 auto; /* centers the PDF */
}

/* Maintain aspect ratio */
.milestone-image iframe,
.milestone-image embed {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Default height for desktop */
.milestone-image iframe,
.milestone-image embed {
    min-height: 700px;
}

/* Adjust height for tablets */
@media (max-width: 992px) {
    .milestone-image iframe,
    .milestone-image embed {
        min-height: 550px;
    }
}

/* Adjust height for mobile */
@media (max-width: 768px) {
    .milestone-image iframe,
    .milestone-image embed {
        min-height: 420px;
    }
}

/* Dark Mode PDF Section */
body.dark-mode .milestone-image {
    background-color: #1e1e1e; 
    border: 1px solid #333;
}

body.dark-mode .milestone-image iframe,
body.dark-mode .milestone-image embed {
    background-color: #000;
}

/* ==== ORG CHART PDF CONTAINER ==== */
/* Fixes the gap by adjusting height for landscape orientation */

.org-chart-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    /* Adjust '40px' if you want more/less space between the image and the chart */
    margin: 40px auto 0 auto; 
}

.org-chart-container iframe {
    width: 100%;
    /* Reduced from 700px to 550px to remove empty gray space */
    height: 550px; 
    border: none;
    display: block;
}

/* Tablet Adjustment */
@media (max-width: 992px) {
    .org-chart-container iframe {
        height: 450px;
    }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .org-chart-container iframe {
        height: 350px;
    }
}

/* Dark Mode Support for the new container */
body.dark-mode .org-chart-container {
    background-color: #1e1e1e; 
    border: 1px solid #333;
}

body.dark-mode .org-chart-container iframe {
    background-color: #000; /* Ensures PDF background blends in dark mode */
}

/* ==== PDF DOWNLOAD LINK STYLES ==== */
.pdf-download-link {
    color: #28A745;       /* Your brand Green */
    text-decoration: none; /* Removes the underline */
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

.pdf-download-link:hover {
    color: #e9c86a;       /* Darker Yellow/Gold on hover */
    text-decoration: none;
}

/* Dark Mode Support */
body.dark-mode .pdf-download-link {
    color: #F6D981;       /* Bright Yellow in dark mode */
}

body.dark-mode .pdf-download-link:hover {
    color: #fff;          /* White on hover in dark mode */
}

/* ==== BIO PAGE: Force Grid layout for video + text ==== */
.project-intro .container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* video | text */
    gap: 40px;
    align-items: center;
}

/* Mobile: stack video above text */
@media (max-width: 768px) {
    .project-intro .container {
        grid-template-columns: 1fr;
    }
}