/* Blu Ocean Consulting - style.css */

/* ---------------------------------------------------------------------- */
/* # Table of Contents
/* ---------------------------------------------------------------------- */
/*
    1.  Global Resets & Variables
    2.  Typography
    3.  Layout & Grid System
    4.  Navigation (Header, Main Nav, Mobile Nav)
    5.  Footer
    6.  Buttons & Forms
    7.  Hero Sections & Page Headers
    8.  Homepage Specific Sections
        - Key Services
        - CTA Banner
        - Testimonials
    9.  About Us Page Specifics
        - Company Overview
        - Mission/Vision/Values
        - Leadership Team
    10. Services Page Specifics
        - Service Detail Sections
    11. Industries Page Specifics
        - Industries Grid
    12. Contact Page Specifics
        - Contact Form & Info
        - Map
    13. Blog Page Specifics
        - Blog Grid
        - Single Post
    14. Utility Classes
    15. Animations & Transitions
    16. Responsive Design (Media Queries)
    17. Scroll-to-top button
*/

/* ---------------------------------------------------------------------- */
/* # 1. Global Resets & Variables
/* ---------------------------------------------------------------------- */
/* Default to Dark Mode */
:root {
    /* Core Palette */
    --blue: #2b65eb;
    --black: #000000;
    --white: #FFFFFF;
    --neutral-white: #f8f9fae0; /* Lighter white for contrast */
    --primary-black: #121212; /* Darker black for primary elements */
    --primary-blue: #2b65eb; /* Primary blue for buttons and links */
    --light-gray: #f8f9fa; /* Light gray for backgrounds */
    --border-color: #dee2e6; /* Default border color */

    /* Dark Theme Variables (Default) */
    --bg-primary: #121212; /* Dark background */
    --bg-secondary: #1e1e1e; /* Slightly lighter dark background for cards/sections */
    --text-primary: var(--white);
    --text-secondary: #adb5bd; /* Lighter gray for less important text */
    --text-link: var(--blue);
    --text-link-hover: #5d8bf1; /* Lighter blue for hover */
    --border-color-strong: #495057; /* Darker border */
    --border-color-soft: #343a40; /* Softer border */
    --heading-color: var(--blue); /* UPDATED - Headings to be blue */
    --button-primary-bg: var(--blue);
    --button-primary-text: var(--white);
    --button-primary-hover-bg: #5d8bf1;
    --button-secondary-bg: transparent;
    --button-secondary-text: var(--blue);
    --button-secondary-border: var(--blue);
    --button-secondary-hover-bg: var(--blue);
    --button-secondary-hover-text: var(--white);
    --overlay-bg: rgba(0, 0, 0, 0.7); /* Overlay for banners */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --container-width: 1140px;
    --section-padding: 60px 0; /* Default padding for sections */
    --transition-speed: 0.3s;
}

/* Light Theme Variables */
html[data-theme="light"] {
    --bg-primary: var(--white);
    --bg-secondary: #f8f9fa; /* Light gray for cards/sections in light mode */
    --text-primary: #212529; /* Dark text for light mode */
    --text-secondary: #495057; /* Medium gray for less important text in light mode */
    --text-link: var(--blue);
    --text-link-hover: #1a4db3; /* Darker blue for hover in light mode */
    --border-color-strong: #adb5bd; /* Lighter border for light mode */
    --border-color-soft: #dee2e6; /* Very light border for light mode */
    --heading-color: var(--blue); /* UPDATED - Headings to be blue */
    --button-primary-bg: var(--blue);
    --button-primary-text: var(--white);
    --button-primary-hover-bg: #1a4db3;
    --button-secondary-bg: transparent;
    --button-secondary-text: var(--blue);
    --button-secondary-border: var(--blue);
    --button-secondary-hover-bg: var(--blue);
    --button-secondary-hover-text: var(--white);
    --overlay-bg: rgba(0, 0, 0, 0.5); /* Darker overlay for banners in light mode if needed, or adjust opacity */
}

/* Homepage Blog Section */
.blog-grid-homepage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.blog-post-item-homepage {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color-soft);
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.blog-post-item-homepage:hover {
    transform: translateY(-5px);
    border-color: var(--text-link);
}
.post-thumbnail-homepage img {
    width: 100%;
    height: 200px; /* Consistent height for thumbnails */
    object-fit: cover;
}
.post-content-homepage {
    padding: 20px;
}
.post-category-homepage {
    display: inline-block;
    background-color: var(--blue);
    color: var(--white);
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}
.post-title-homepage { /* Inherits --heading-color (blue) */
    font-size: 1.3rem; /* Slightly smaller than blog page */
    margin-bottom: 10px;
}
.post-title-homepage a {
    color: inherit; /* Inherit blue from h3 */
}
.post-title-homepage a:hover {
    color: var(--text-link-hover); /* Themed hover */
}
.post-excerpt-homepage {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box; /* For multi-line ellipsis */
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more-link {
    font-weight: 600; /* Poppins Semibold */
    color: var(--text-link);
    font-size: 0.9rem;
}

/* Homepage FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color-soft);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600; /* Not full black weight, but still heading font */
    font-size: 1.1rem;
    padding: 18px 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question:hover {
    color: var(--text-link);
}
.faq-icon {
    transition: transform var(--transition-speed) ease;
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0px 10px 20px 10px; /* Top padding handled by question button */
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
    color-scheme: dark light; /* Inform browser about supported schemes */
}

body {
    font-family: var(--font-body);
    font-weight: 400; /* Poppins Regular */
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Ensure Poppins semibold is used where Open Sans semibold (600) was intended */
#main-nav ul li a,
.service-item .read-more,
.testimonial-item cite,
.team-title,
.post-author, .post-date,
.form-group label,
.contact-info-container .contact-item strong {
    font-weight: 600; /* Poppins Semibold */
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-link); /* THEMED */
    transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
    color: var(--text-link-hover); /* THEMED */
}

/* ---------------------------------------------------------------------- */
/* # 2. Typography
/* ---------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900; /* Montserrat Black */
    color: var(--heading-color); /* THEMED - Now set to --blue */
    line-height: 1.3;
    margin-bottom: 0.75em; /* Adjusted from 1em */
}

h1 { font-size: 2.8rem; margin-bottom: 0.5em; } /* Approx 44.8px */
h2 { font-size: 2.2rem; } /* Approx 35.2px */
h3 { font-size: 1.8rem; } /* Approx 28.8px */
h4 { font-size: 1.4rem; } /* Approx 22.4px */
p { margin-bottom: 1em; }
.lead { font-size: 1.25rem; color: var(--text-secondary); } /* THEMED */

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem; /* Slightly larger for main section titles */
}
.section-subtitle {
    font-size: 1.8rem; /* For sub-sections within a page */
    /* color: var(--primary-black); /* This will be covered by h1-h6 --heading-color */
    margin-bottom: 20px;
}

blockquote {
    border-left: 4px solid var(--text-link); /* THEMED - using link color for accent */
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-secondary); /* THEMED */
}
cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: bold; /* This will be Poppins bold, color from --text-primary */
}

/* ---------------------------------------------------------------------- */
/* # 3. Layout & Grid System
/* ---------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light { /* This class now refers to the secondary background of the current theme */
    background-color: var(--bg-secondary); /* THEMED */
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Basic Two Column Grid */
.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first: single column */
    gap: 30px;
    align-items: center;
}

@media (min-width: 768px) {
    .grid-two-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-two-columns.responsive-reverse > :first-child {
        order: 2; /* Reverses order on desktop if image is first in HTML */
    }
    .grid-two-columns.responsive-reverse > :last-child {
        order: 1;
    }
}

.full-width-banner {
    width: 100%;
    padding: 80px 0;
    color: var(--neutral-white);
    background-size: cover;
    background-position: center center;
    position: relative; /* For potential overlays */
}
.full-width-banner::before { /* Optional overlay */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Black overlay example, assuming primary-black is #000 */
    z-index: 1;
}
.full-width-banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
}
.full-width-banner h1 {
    color: var(--neutral-white);
    font-size: 3rem;
}
.full-width-banner p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}


/* ---------------------------------------------------------------------- */
/* # 4. Navigation (Header, Main Nav, Mobile Nav)
/* ---------------------------------------------------------------------- */
#main-header {
    background-color: var(--neutral-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: padding var(--transition-speed) ease;
}
#main-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container { /* Make the anchor a flex container */
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline from link */
}

#logo-img {
    max-height: 100px; /* Adjust as needed */
    margin-right: 10px;
}

.logo-container #logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem; /* Slightly reduced to accommodate logo */
    font-weight: 900; /* To match heading weight with Montserrat Black */
    color: var(--heading-color); /* CORRECTED - Should be themed heading color (blue) */
    text-decoration: none;
}


#main-nav ul {
    display: flex;
    list-style: none;
}

#main-nav ul li {
    margin-left: 25px;
    position: relative; /* For dropdown */
}

#main-nav ul li a {
    color: var(--primary-black); /* UPDATED */
    text-decoration: none;
    font-weight: 600; /* Poppins Semibold */
    padding: 10px 5px;
    transition: color var(--transition-speed) ease, border-color var(--transition-speed) ease;
    display: flex; /* For icon alignment */
    align-items: center;
    border-bottom: 2px solid transparent; /* For hover effect */
}

#main-nav ul li a:hover,
#main-nav ul li a.active {
    color: var(--primary-blue); /* UPDATED */
    border-bottom: 2px solid var(--primary-blue); /* UPDATED */
}

/* Dropdown Menu */
#main-nav .dropdown-icon {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}
#main-nav .dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

#main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--neutral-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 1001;
    flex-direction: column; /* For vertical list */
    padding: 10px 0;
    border-radius: 0 0 4px 4px;
}

#main-nav .dropdown:hover .dropdown-menu {
    display: block;
}

#main-nav .dropdown-menu li {
    margin-left: 0;
    width: 100%;
}

#main-nav .dropdown-menu li a {
    padding: 10px 20px;
    border-bottom: none; /* Remove main nav border */
    white-space: nowrap;
}
#main-nav .dropdown-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-black); /* UPDATED - Keep hover distinct */
}


/* Mobile Menu Toggle */
#mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1005;
}
#mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-black); /* UPDATED */
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
}

.header-controls {
    display: flex;
    align-items: center;
}

#theme-switcher {
    background: none;
    border: none;
    /*color: var(--text-primary);*/
    font-size: 1.2rem; /* Adjust size as needed */
    cursor: pointer;
    padding: 10px;
    margin-right: 10px; /* Space between switcher and mobile toggle */
}
#theme-switcher:hover {
    color: var(--text-link);
}
#theme-switcher .fa-moon { display: none; } /* Hide moon by default */
html[data-theme="light"] #theme-switcher .fa-sun { display: none; } /* Hide sun in light mode */
html[data-theme="light"] #theme-switcher .fa-moon { display: inline-block; } /* Show moon in light mode */


/* Mobile Menu Open State (JS will add .open class to body or header) */
.mobile-menu-open #main-nav {
    display: flex; /* Show the nav */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    background-color: var(--neutral-white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}
.mobile-menu-open #main-nav ul {
    flex-direction: column;
    width: 100%;
}
.mobile-menu-open #main-nav ul li {
    margin: 0;
    text-align: left; /* UPDATED for left alignment */
    border-bottom: 1px solid var(--border-color-soft); /* THEMED */
}
.mobile-menu-open #main-nav ul li:last-child {
    border-bottom: none;
}
.mobile-menu-open #main-nav ul li a {
    padding: 15px 20px; /* Adjusted padding for left alignment */
    display: block; /* Make links full width */
    border-bottom: none;
    /*color: var(--text-primary);  THEMED */
}
.mobile-menu-open #main-nav ul li a:hover {
    color: var(--text-link); /* THEMED */
}
.mobile-menu-open #main-nav .dropdown-menu {
    position: static; /* Reset for mobile */
    box-shadow: none;
    padding-left: 30px; /* Increased indent for nested submenu items */
    background-color: var(--bg-primary); /* THEMED - slightly different for nesting */
    border: none;
}
.mobile-menu-open #main-nav .dropdown-menu li a {
    padding: 10px 20px; /* Adjusted padding */
    color: var(--text-secondary); /* THEMED */
}
.mobile-menu-open #main-nav .dropdown-menu li a:hover {
    color: var(--text-link); /* THEMED */
}

/* Hamburger animation for open state */
.mobile-menu-open #mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open #mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open #mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* ---------------------------------------------------------------------- */
/* # 5. Footer
/* ---------------------------------------------------------------------- */
#main-footer {
    background-color: var(--primary-black); /* UPDATED */
    color: var(--light-gray); /* Use a lighter gray from variables */
    padding: 50px 0 20px;
}

#main-footer .footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h4 {
   /* color: var(--neutral-white);*/
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-widget p, .footer-widget ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    /* color is inherited from #main-footer */
}

.footer-widget ul li a {
    color: var(--light-gray); /* UPDATED */
}
.footer-widget ul li a:hover {
    color: var(--primary-blue); /* UPDATED */
}

.footer-widget .social-icons a {
    color: var(--neutral-white);
    margin-right: 15px;
    font-size: 1.5rem;
}
.footer-widget .social-icons a:hover {
    color: var(--primary-blue); /* UPDATED */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--dark-gray); /* UPDATED - Use a variable, adjust if too dark/light */
    font-size: 0.9rem;
}
.footer-bottom p {
    margin: 0;
}

/* ---------------------------------------------------------------------- */
/* # 6. Buttons & Forms
/* ---------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-family: var(--font-heading); /* Changed to Montserrat */
    font-size: 1rem;
    font-weight: 900; /* Montserrat Black */
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue); /* UPDATED */
    color: var(--neutral-white);
    border-color: var(--primary-blue); /* UPDATED */
}
.btn-primary:hover {
    background-color: var(--primary-black); /* UPDATED */
    border-color: var(--primary-black); /* UPDATED */
    color: var(--neutral-white);
}

.btn-secondary {
    background-color: transparent;
    /*color: var(--primary-black);  UPDATED */
    /*border: 2px solid var(--primary-black);  UPDATED */
}
.btn-secondary:hover {
    background-color: var(--primary-black); /* UPDATED */
    color: var(--neutral-white);
}
/* For white buttons on dark backgrounds */
.full-width-banner .btn-secondary { /* This class is for buttons on dark hero/banner backgrounds */
    color: var(--neutral-white);
    border-color: var(--neutral-white);
}
.full-width-banner .btn-secondary:hover {
    background-color: var(--neutral-white);
    color: var(--primary-black); /* UPDATED - text color on hover */
}


/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600; /* Poppins Semibold */
    /*color: var(--primary-black);  UPDATED */
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue); /* UPDATED */
    box-shadow: 0 0 0 2px rgba(43, 101, 235, 0.2); /* UPDATED - Adjusted box shadow color */
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group .error-message {
    display: block;
    color: #D8000C; /* Error red */
    font-size: 0.875rem;
    margin-top: 5px;
}
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #D8000C;
}

.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.95rem;
}
.form-message.success {
    background-color: #DFF2BF; /* Success green */
    color: #4F8A10;
    border: 1px solid #4F8A10;
}
.form-message.error {
    background-color: #FFD2D2; /* Error red */
    color: #D8000C;
    border: 1px solid #D8000C;
}


/* ---------------------------------------------------------------------- */
/* # 7. Hero Sections & Page Headers
/* ---------------------------------------------------------------------- */
#hero.hero-section { /* Homepage Hero */
    /* background-image: url('../images/hero-bg.jpg'); Set this in HTML or via PHP for dynamic content */
    background-color: var(--primary-black); /* UPDATED - Fallback if no image */
    min-height: 70vh; /* Make it substantial */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../images/hero.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#hero .container {
    max-width: 800px; /* Constrain text width for readability */
}
#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
#hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #e0e0e0; /* Lighter text on dark hero */
}
#hero .btn {
    margin: 10px;
}

.page-header { /* For internal pages */
    /* background-image: url('../images/page-header-bg.jpg'); */
    background-color: var(--blue); /* UPDATED - Page header background to blue */
    min-height: 30vh; /* Smaller than hero */
    display: flex;
    align-items: center;
    justify-content: center;
    /* .full-width-banner class, if also applied, will handle text color and overlay */
}
.page-header h1 { /* Ensure text is white on blue background */
    font-size: 2.8rem;
    color: var(--white);
}
.page-header p { /* Ensure text is white on blue background */
    font-size: 1.1rem;
    color: var(--white); /* Or a very light gray like #f0f0f0 for slight softness */
}

/* ---------------------------------------------------------------------- */
/* # 8. Homepage Specific Sections
/* ---------------------------------------------------------------------- */

/* Homepage Team Section */
.team-grid-homepage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.team-member-homepage {
    /* background-color: var(--bg-secondary); */ /* Card-like bg if needed, or keep it clean */
    /* padding: 20px; */
    /* border-radius: 8px; */
    /* border: 1px solid var(--border-color-soft); */
}
.team-photo-homepage {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--border-color-soft); /* Themed border for photos */
}
.team-member-homepage h3 { /* Inherits --heading-color (blue) */
    font-size: 1.4rem; /* From .team-member h3 */
    margin-bottom: 5px;
}
.team-title-homepage { /* Similar to .team-title */
    color: var(--text-link); /* Themed */
    font-weight: 600; /* Poppins Semibold */
    margin-bottom: 10px;
    font-size: 1rem;
}


/* Key Services */
#key-services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-item {
    background-color: var(--bg-secondary); /* THEMED */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color-soft); /* THEMED */
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
.service-item:hover {
    transform: translateY(-10px);
    border-color: var(--text-link); /* THEMED */
}
.service-icon {
    font-size: 3rem;
    color: var(--text-link); /* THEMED */
    margin-bottom: 20px;
}
.service-item h3 { /* Color from h1-h6 which is var(--heading-color) */
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.service-item p {
    font-size: 0.95rem;
    color: var(--text-secondary); /* THEMED */
    margin-bottom: 20px;
}
.service-item .read-more {
    font-weight: 600; /* Poppins Semibold */
    color: var(--text-link); /* THEMED */
}

/* CTA Banner (if different from general full-width-banner) */
#cta-banner {
    /* background-image: url('../images/cta-bg.jpg'); */
    background-color: var(--black); /* UPDATED - Should be always black */
}
#cta-banner h2 { /* This will be white due to .full-width-banner style */
    color: var(--white); /* Explicitly ensure it's white */
    margin-bottom: 15px;
}
#cta-banner p {
    color: var(--text-secondary); /* THEMED for text on black bg */
    html[data-theme="light"] & { /* Sub-override for light theme if text-secondary isn't light enough */
        color: #e0e0e0;
    }
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Testimonials */
#testimonials { /* This section itself might have a main background or secondary */
    background-color: var(--bg-primary); /* THEMED */
}
html[data-theme="light"] #testimonials {
     background-color: var(--bg-secondary); /* Lighter section bg for light theme */
}
#testimonials .testimonials-slider { /* Can be a grid if no JS slider */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-item {
    background-color: var(--bg-secondary); /* THEMED */
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--text-link); /* THEMED */
    /* box-shadow: none; */ /* Optional: remove shadow for flatter dark mode */
}
.testimonial-item p {
    font-style: italic;
    color: var(--text-secondary); /* THEMED */
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.testimonial-item cite {
    font-weight: 600; /* Poppins Semibold */
    color: var(--text-primary); /* THEMED */
}
.testimonial-item cite strong {
    font-weight: 900; /* Montserrat Black for the name part */
    color: var(--heading-color); /* THEMED - for the name, which is like a heading */
}

/* ---------------------------------------------------------------------- */
/* # 9. About Us Page Specifics
/* ---------------------------------------------------------------------- */
#company-overview .img-responsive,
.service-detail-section .img-responsive {
    border-radius: 8px;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */ /* Optional: remove/adjust shadow for theme */
}
.image-placeholder { /* For development */
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary); /* THEMED */
    background-color: var(--bg-secondary); /* THEMED */
    border: 1px dashed var(--border-color-soft); /* THEMED */
}

#mission-vision .grid-two-columns > div {
    padding: 20px;
}
#mission-vision h3 { /* Color from h1-h6 (var(--heading-color)) */
}

.core-values .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.value-item {
    text-align: center;
}
.value-item .icon-large {
    font-size: 2.5rem;
    color: var(--text-link); /* THEMED */
    margin-bottom: 10px;
}
.value-item h4 { /* Color from h1-h6 (var(--heading-color)) */
    font-size: 1.2rem;
    margin-bottom: 5px;
}

#leadership-team .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.team-member {
    text-align: center;
    padding: 20px;
}
.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 2px solid var(--border-color-soft); /* THEMED - Optional border for photos */
    /* box-shadow: 0 0 10px rgba(0,0,0,0.1); */ /* Optional: remove/adjust shadow for theme */
}
.team-member h3 { /* Color from h1-h6 (var(--heading-color)) */
    font-size: 1.4rem;
    margin-bottom: 5px;
}
.team-title {
    color: var(--text-link); /* THEMED */
    font-weight: 600; /* Poppins Semibold */
    margin-bottom: 10px;
    font-size: 1rem;
}
.team-bio {
    font-size: 0.9rem;
    color: var(--text-secondary); /* THEMED */
}

/* ---------------------------------------------------------------------- */
/* # 10. Services Page Specifics
/* ---------------------------------------------------------------------- */
.service-detail-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}
.service-detail-section ul li {
    margin-bottom: 8px;
    color: var(--text-secondary); /* THEMED */
}
.service-detail-section .btn {
    margin-top: 10px;
}
.service-detail-section .grid-two-columns > div:first-child { padding-right: 20px; }
.service-detail-section .grid-two-columns > div:last-child { padding-left: 20px; }
@media (max-width: 767px) {
    .service-detail-section .grid-two-columns > div:first-child,
    .service-detail-section .grid-two-columns > div:last-child {
        padding-right: 0;
        padding-left: 0;
    }
}


/* ---------------------------------------------------------------------- */
/* # 11. Industries Page Specifics
/* ---------------------------------------------------------------------- */
#industries-grid .industries-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.industry-tile {
    background: var(--bg-secondary); /* THEMED */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color-soft); /* THEMED */
    /* box-shadow: 0 3px 12px rgba(0,0,0,0.07); */ /* Optional: Adjust shadow */
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
.industry-tile:hover {
    transform: translateY(-8px);
    border-color: var(--text-link); /* THEMED */
}
.industry-icon {
    font-size: 2.8rem;
    color: var(--text-link); /* THEMED */
    margin-bottom: 15px;
}
.industry-tile h3 { /* Color from h1-h6 (var(--heading-color)) */
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.industry-tile p {
    font-size: 0.9rem;
    color: var(--text-secondary); /* THEMED */
}

/* ---------------------------------------------------------------------- */
/* # 12. Contact Page Specifics
/* ---------------------------------------------------------------------- */
#contact-details .grid-two-columns {
    align-items: flex-start; /* Align items to top */
}
.contact-form-container {
    padding-right: 20px; /* Add some space between form and info on desktop */
}
.contact-info-container .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-info-container .contact-item i {
    font-size: 1.5rem;
    color: var(--text-link); /* THEMED */
    margin-right: 15px;
    margin-top: 5px; /* Align icon nicely with text */
    width: 25px; /* Ensure consistent spacing */
}
.contact-info-container .contact-item p {
    margin-bottom: 0;
    color: var(--text-secondary); /* THEMED */
}
.contact-info-container .contact-item strong {
    color: var(--text-primary); /* THEMED */
}
.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden; /* Ensures iframe corners are rounded if map has radius */
}
.map-container iframe {
    display: block; /* Remove bottom space */
}

/* ---------------------------------------------------------------------- */
/* # 13. Blog Page Specifics
/* ---------------------------------------------------------------------- */

/* Blog Grid (blog.php) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-post-item {
    background: var(--bg-secondary); /* THEMED */
    border-radius: 8px;
    border: 1px solid var(--border-color-soft); /* THEMED */
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.08); */ /* Optional: Adjust shadow */
    overflow: hidden; /* Ensure image corners are rounded with card */
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
.blog-post-item:hover {
    transform: translateY(-5px);
    border-color: var(--text-link); /* THEMED */
}
.post-thumbnail a { display: block; }
.post-thumbnail .image-placeholder { border-radius: 8px 8px 0 0; } /* Top corners rounded */
/* .post-thumbnail img { width: 100%; height: 200px; object-fit: cover; } */

.post-content {
    padding: 25px;
    flex-grow: 1; /* Allows content to fill space if items have different heights */
    display: flex;
    flex-direction: column;
}
.post-header .post-category {
    display: inline-block;
    background-color: var(--blue); /* THEMED - direct use of core blue */
    color: var(--white); /* THEMED - text on badge */
    padding: 3px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}
.post-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.post-title a { /* Color from h1-h6 (var(--heading-color)) for link text */
    color: inherit;
}
.post-title a:hover {
    color: var(--text-link-hover); /* THEMED */
}
.post-meta {
    font-size: 0.85rem;
    color: var(--text-secondary); /* THEMED */
    margin-bottom: 15px;
}
.post-author, .post-date { font-weight: 600; } /* Color from .post-meta */
.post-excerpt p {
    font-size: 0.95rem;
    color: var(--text-secondary); /* THEMED */
    margin-bottom: 20px;
}
.read-more-btn {
    margin-top: auto; /* Pushes button to bottom of card */
    align-self: flex-start; /* Align button to left */
}

/* Single Post (single-post.php) */
.blog-post-full {
    max-width: 800px; /* Optimal reading width */
    margin: 0 auto;
}
.post-header-full {
    text-align: center;
    margin-bottom: 30px;
}
.post-title-full {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.post-meta-full {
    font-size: 0.9rem;
    color: var(--text-secondary); /* THEMED */
}
.post-featured-image-full .image-placeholder {
    /* height: 400px; Adjust as needed */
    /* Background and border already themed by .image-placeholder general rule */
    border-radius: 8px;
    margin-bottom: 30px;
}
/* .post-featured-image-full img { width: 100%; border-radius: 8px; margin-bottom: 30px;} */

.post-body-full {
    font-size: 1.1rem; /* Slightly larger for readability */
    line-height: 1.7;
}
.post-body-full p {
    margin-bottom: 1.5em;
}
.post-body-full h2, .post-body-full h3 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}
.post-body-full ul, .post-body-full ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}
.post-body-full ul li, .post-body-full ol li {
    margin-bottom: 0.5em;
}
.post-body-full blockquote {
    font-size: 1.2rem;
}
.social-share h4, .author-bio h4, #comments-section h3, .related-posts h4 { /* Color from h1-h6 */
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.author-bio {
    background-color: var(--bg-secondary); /* THEMED */
    border: 1px solid var(--border-color-soft); /* THEMED */
    padding: 20px; /* Added padding */
    border-radius: 5px; /* Added radius */
}
.social-icon-share { /* These are just text links, will inherit color from 'a' */
    margin-right: 10px;
}


/* ---------------------------------------------------------------------- */
/* # 14. Utility Classes
/* ---------------------------------------------------------------------- */
.img-responsive {
    max-width: 100%;
    height: auto;
}
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
/* Add more as needed: .p-1, .m-1, etc. */

/* ---------------------------------------------------------------------- */
/* # 15. Animations & Transitions (Subtle)
/* ---------------------------------------------------------------------- */
/* Most transitions are already added inline with elements (e.g., buttons, links) */
/* Example of a subtle fade-in for sections (can be added with JS on scroll) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* # 16. Responsive Design (Media Queries)
/* ---------------------------------------------------------------------- */

/* Tablet & Small Desktop */
@media (max-width: 991px) {
    :root { --section-padding: 50px 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-title { font-size: 2.2rem; }

    #hero h1 { font-size: 3rem; }
    #hero p { font-size: 1.2rem; }

    #main-header .container {
        /* Ensure logo and toggle are spaced correctly if nav is hidden */
    }
}

/* Mobile Devices (Portrait & Landscape) */
@media (max-width: 767px) {
    :root { --section-padding: 40px 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .section-title { font-size: 2rem; }
    .lead { font-size: 1.1rem; }

    #main-nav {
        display: none; /* Hidden by default, shown by JS toggle */
    }
    #mobile-menu-toggle {
        display: block; /* Show hamburger */
    }

    #main-header .container {
        /* mobile layout handled by flex and .mobile-menu-open */
    }

    #hero { min-height: 60vh; }
    #hero h1 { font-size: 2.5rem; }
    #hero p { font-size: 1.1rem; }
    #hero .btn { padding: 10px 20px; font-size: 0.9rem; }

    .page-header { min-height: 25vh; }
    .page-header h1 { font-size: 2.2rem; }

    .grid-two-columns {
        gap: 20px; /* Reduce gap on mobile */
    }
    .contact-form-container {
        padding-right: 0;
        margin-bottom: 30px; /* Space between form and info on mobile */
    }

    #main-footer .footer-widgets {
        grid-template-columns: 1fr; /* Stack widgets on mobile */
        text-align: center;
    }
    #main-footer .footer-widgets .footer-widget {
        margin-bottom: 20px;
    }
    .footer-widget .social-icons {
        justify-content: center;
    }
    .blog-grid {
        grid-template-columns: 1fr; /* Single column blog posts */
    }
    .post-title-full { font-size: 2rem; }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    :root { --section-padding: 30px 0; }
    h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }

    #hero h1 { font-size: 2.2rem; }
    #hero p { font-size: 1rem; }

    .btn { padding: 10px 18px; font-size: 0.9rem; }

    .full-width-banner { padding: 60px 0; }
    .full-width-banner h1 { font-size: 2.2rem; }
    .full-width-banner p { font-size: 1rem; }
}


/* ---------------------------------------------------------------------- */
/* # 17. Scroll-to-top button
/* ---------------------------------------------------------------------- */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--button-primary-bg); /* THEMED */
    color: var(--button-primary-text); /* THEMED */
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, background-color var(--transition-speed) ease;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* May need theme adjustment for shadow */
}
#scroll-to-top:hover {
    background-color: var(--button-primary-hover-bg); /* THEMED */
}
#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Placeholder for image folder if needed by CSS directly (though usually not for background images) */
/* For example, if you had a very specific small icon not suitable for FontAwesome */
/* .custom-icon { background-image: url('../images/icons/my-icon.svg'); } */

/* Image Placeholder Styling (Remove for production) */
.image-placeholder {
    background-color: var(--bg-secondary); /* THEMED */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary); /* THEMED */
    font-style: italic;
    border: 1px dashed var(--border-color-soft); /* THEMED */
}
/* Specific placeholders if needed */
.team-photo.image-placeholder {
    width: 150px; /* As defined in HTML */
    height: 150px; /* As defined in HTML */
    border-radius: 50%;
}
/* Ensure FontAwesome icons are sized if needed */
.service-icon .fas, .value-item .fas, .industry-icon .fas, .contact-item .fas {
    /* font-size will be inherited or can be set specifically if needed */
}


/* ---------------------------------------------------------------------- */
/* # 18. Blog Comments Section (New)
/* ---------------------------------------------------------------------- */
.comments-area {
    /* Styles for the overall comments area wrapper */
    /* padding-top and margin-top are currently inline in single-post.php, can be moved here */
    /* border-top: 1px solid var(--border-color-soft); */ /* Also inline */
}
.comments-title,
.comment-reply-title {
    /* Inherits h2/h3 styles, which use --heading-color (blue) */
    margin-bottom: 25px;
    font-weight: 700; /* Slightly less than main headings if needed */
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color-soft);
}
.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.comment-meta {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.comment-author .fn {
    font-weight: 700; /* Poppins Bold for name */
    color: var(--text-primary);
}
.comment-author .says {
    font-style: italic;
}
.comment-metadata time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.comment-content p {
    margin-bottom: 0.5em;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Comment Form */
.comment-respond {
    /* margin-top is inline */
    background-color: var(--bg-secondary); /* Give form a slightly different background */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color-soft);
}
.comment-notes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.comment-form .form-group { /* Use existing form-group styles */
    margin-bottom: 15px;
}
/* Labels and inputs already themed by general .form-group rules */

.comment-form .required {
    color: var(--text-link); /* Or a specific error/warning color for required fields */
}
.form-submit button { /* Uses .btn .btn-primary styles */
    /* Ensure it's styled if not already, current .btn styles should cover it */
}
/* Form messages (.form-message.success, .form-message.error) are already themed */
.comment-respond .form-message { /* Specific margin for comment form messages */
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .logo-container #logo-text {
        font-size: 1rem;
    }

    #logo-img {
        max-height: 75px;
    }

    .mobile-menu-open #main-nav {
        background-color: #fff !important; /* Ensure mobile nav background is white */
    }

    .footer-widget {
        text-align: left;
    }    
}

.author-bio > p {
    color:#000; /* Ensure text is black for readability */
}
