/*
Theme Name: Apexora Theme
Theme URI: https://apex-ora.com
Author: Apexora Digital
Author URI: https://apex-ora.com
Description: A custom, modern, and professional WordPress theme for Apexora, a leader in cybersecurity and data governance.
Version: 1.6.1
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: UNLICENSED
License URI:
Tags: custom-theme, cybersecurity, technology, dark-theme, responsive
Text Domain: apexora
*/
/*  --------- FIX FOR CENTERING THE CONTENTS --------- */

/* reset + prevent horizontal overflow */
html,body{margin:0;padding:0}
*{box-sizing:border-box}

/* ----
.hero-content-overlay {
  word-wrap: break-word;
 hyphens: auto;

}
 ----- */
/* fix any full-bleed rows that break centering 
.full-width, .row-full, .page-builder-row {
  max-width:100% !important;
  margin:0 !important;
  left:0 !important;
  right:0 !important;
}
*/



/*End of the FIX */


:root {
    --dark-navy: #0a0f1f;
    --slate-900: #0f172a;
    --accent-blue: #0ea5e9; /* sky-500 */
    --light-blue: #38bdf8; /* sky-400 */
    --text-main: #e2e8f0;   /* slate-200 */
    --text-muted: #94a3b8;  /* slate-400 */
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-navy);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* General Styling */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-blue);
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

section {
    padding: 6rem 1.5rem;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-paragraph {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 80ch;
}


/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 15, 31, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.site-header .container { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; }
.site-branding img { height: 2.5rem; width: auto; }
.main-navigation ul { display: none; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-navigation li { position: relative; margin: 0 1rem; }
.main-navigation a { color: var(--text-main); font-weight: 500; padding: 0.5rem; }
.cta-button { background-color: var(--accent-blue); color: #ffffff; padding: 0.8rem 1.5rem; border-radius: 0.5rem; font-weight: 600; transition: background-color 0.3s ease; display: inline-block; }
.cta-button:hover { background-color: var(--light-blue); color: #ffffff; }
.mobile-menu-button { display: block; background: none; border: none; color: var(--text-main); cursor: pointer; }

/*-------------------------Sub-Menu Styles
.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0a0f1f;
  display: none;
  padding: 0.5rem 0;
  border-radius: 0.25rem;
  min-width: 180px;
  z-index: 100;
}

.main-navigation li:hover > .sub-menu {
  display: block;
}

.main-navigation .sub-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  white-space: nowrap;
}

.main-navigation .sub-menu li a:hover {
  background-color: #1e293b;
}
  -----------*/

/* Hero Section (Homepage) */
.hero-bg { position: relative; min-height: 73vh;display: flex; align-items: center; justify-content: center; text-align: center; box-sizing: content-box;}
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bg .content { position: relative; z-index: 1; }
.section-gradient-text { background: linear-gradient(90deg, var(--accent-blue), var(--light-blue), #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Services Section (Homepage) */
.services-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.service-card { background: rgba(15, 23, 42, 0.7); border: 1px solid var(--border-color); border-radius: 0.75rem; padding: 2rem; transition: all 0.3s ease; display: flex; flex-direction: column; text-decoration: none; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2); border-color: var(--accent-blue); }
.service-card .icon { background-color: rgba(14, 165, 233, 0.1); color: var(--accent-blue); border-radius: 0.5rem; margin-bottom: 1.5rem; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; }
.service-card h3 { margin-bottom: 0.5rem; color: #ffffff; }
.service-card p { color: var(--text-muted); margin-bottom: 1rem; flex-grow: 1; }
/* Home page intro section styles */
/* --- Styles for Enhanced Intro Section --- */
.concept-block {
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-blue);
}

.concept-block h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.concept-block p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}
/* --- End of New Styles --- */
/* STYLES FOR MAIN SERVICES HUB PAGE */
.services-hub { 
    background-color: var(--dark-navy); 
}
.services-hub-grid { 
    margin-top: 4rem; 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
}
.service-hub-card { 
    background-color: var(--slate-900); 
    border: 1px solid var(--border-color); 
    border-radius: 0.75rem; 
    padding: 2.5rem;
    display: flex; 
    flex-direction: column; 
    text-decoration: none; 
    transition: all 0.3s ease; 
}
.service-hub-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2); 
    border-color: var(--accent-blue); 
}
.hub-card-icon { 
    font-size: 2.5rem; 
    color: var(--accent-blue); 
    margin-bottom: 1.5rem; 
}
.hub-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.hub-card-title { 
    font-size: 1.75rem; 
    margin-bottom: 1rem; 
    color: #ffffff; 
}
.hub-card-description { 
    color: var(--text-muted); 
    margin-bottom: 1.5rem;
}
.hub-card-sublist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}
.hub-card-sublist li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}
.hub-card-sublist li i {
    color: var(--accent-blue);
    margin-right: 0.75rem;
    margin-top: 5px;
    font-size: 0.8em;
}
.hub-card-link { 
    color: var(--light-blue); 
    font-weight: 600; 
    transition: color 0.3s ease; 
    margin-top: auto;
}
.service-hub-card:hover .hub-card-link { 
    color: #ffffff; 
}

/* STYLES FOR SERVICE PAGE HERO WITH VIDEO */
.service-hero {
    position: relative;
    overflow: hidden;
    padding: 8rem 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height:65vh;
    box-sizing: content-box;
}
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 31, 0.85);
    z-index: 2;
}
.hero-content-overlay {
    position: relative;
    z-index: 3;
}
.service-hero-title { font-size: 3.5rem;  margin-bottom: 1rem; }
.service-hero-subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 60ch; margin: 0 auto; }

/* --- GREAT CREATIVE STYLES FOR SERVICES ACCORDION V2 --- */

.services-accordion-section {
    background-color: var(--dark-navy);
}

.accordion-container {
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: flex; /* Changed to flex for spacing */
    flex-direction: column;
    gap: 1rem; /* Add space between accordion items */
    border: none; /* Remove the container border */
    border-radius: 0;
}

.accordion-item {
    background-color: var(--slate-900);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem; /* Rounded corners for each item */
    transition: all 0.3s ease;
    overflow: hidden; /* Needed for smooth animation */
}

.accordion-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: linear-gradient(135deg, var(--slate-900) 80%, rgba(14, 165, 233, 0.1) 100%); /* Subtle gradient */
    transition: background-color 0.3s ease;
    list-style: none;
    position: relative; /* For pseudo-elements if needed */
}
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header:hover {
    background-color: rgba(14, 165, 233, 0.05); /* Subtle hover */
}

.accordion-icon {
    font-size: 1.75rem; /* Slightly larger icon */
    color: var(--accent-blue);
    margin-right: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.accordion-item[open] .accordion-icon {
    transform: scale(1.1);
}


.accordion-title-wrapper {
    flex-grow: 1;
}

.accordion-title {
    font-size: 1.5rem; /* Maintain title size */
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
}

.accordion-summary-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.accordion-arrow {
    margin-left: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1); /* Smoother transition */
    flex-shrink: 0;
}

.accordion-item[open] > .accordion-header {
     background-color: var(--slate-900); /* Keep it consistent when open */
     border-bottom: 1px solid var(--border-color); /* Add separator when open */
}

.accordion-item[open] > .accordion-header .accordion-arrow {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.accordion-content {
    padding: 2rem 2.5rem 2.5rem;
    background-color: var(--dark-navy);
    /* Animation handled by JS if needed, or default browser animation */
}

.accordion-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.accordion-content h4 {
    font-size: 1.25rem;
    color: var(--light-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.accordion-content ul li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.accordion-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 0.8em;
}

.accordion-link {
    margin-top: 2.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* --- END OF ACCORDION STYLES V2 --- */



/* --- NEW STYLES FOR HOMEPAGE SECTIONS --- */

/* 1. Intro Section */
.intro-section {
    background-color: var(--slate-900); /* Alternate background color */
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default single column */
    gap: 3rem;
    align-items: center;
}
.intro-visual img {
    border-radius: 0.75rem;
    width: 80%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.highlight {
    color: var(--light-blue);
    font-weight: 600;
}

/* 2. Services Section (Homepage Enhancement) */
.services-section {
    background-color: var(--dark-navy); /* Match bg-pattern-dots if using */
    /* If you add bg-pattern-dots class to the section in PHP: */
    /* background-image: radial-gradient(var(--border-color) 1px, transparent 1px); */
    /* background-size: 20px 20px; */
}
.services-section .section-title {
    color: #ffffff; /* Override gradient for this specific title */
    -webkit-text-fill-color: initial; /* Reset gradient */
}
/* Style for the card itself, now that it's not a link by default */
#services-overview .service-card {
    background: var(--slate-900); /* Use slate for contrast */
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2.5rem; /* Increased padding */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* In case it's wrapped in <a> later */
    height: 100%;
}
#services-overview .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -5px rgba(0,0,0,0.3);
    border-color: var(--accent-blue);
}
#services-overview .service-card .icon {
     background-color: rgba(14, 165, 233, 0.1);
     color: var(--accent-blue);
     border-radius: 0.5rem;
     margin-bottom: 1.5rem;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 64px;
     height: 64px;
     transition: all 0.3s ease;
}
#services-overview .service-card:hover .icon {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--glow-color);
}
#services-overview .service-card h3 {
     color: #fff;
     font-size: 1.75rem;
     margin-bottom: 1rem;
}
#services-overview .service-card p {
    color: var(--text-muted);
    flex-grow: 1; /* Pushes content down */
    margin-bottom: 0; /* Remove bottom margin as there's no link */
}
/* Ensure card-link class doesn't interfere if present */
#services-overview .service-card .card-link { display: none; }

/* 3. Why Us Section (Homepage - reuses differentiator styles) */
.why-us-section {
    background-color: var(--slate-900);
}
/* Styles for .differentiators-grid and .differentiator-card already exist */
.why-us-section .differentiator-card {
     background-color: var(--dark-navy); /* Contrast against section bg */
}

/* 4. Social Proof Section (Homepage) */
/* --- STYLES FOR TESTIMONIAL CAROUSEL --- */

.testimonial-carousel {
    margin-top: 4rem;
    padding: 1rem 0 3rem; /* Keep padding for pagination */
    position: relative; /* Essential for positioning nav buttons */
    overflow: hidden; /* ** ADD THIS LINE - Prevents unexpected layout issues ** */
    /* Add max-width if you want to constrain the carousel width */
    max-width: 1100px; /* Example max-width */
    margin-left: auto;
    margin-right: auto;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure slide takes full width */
    flex-shrink: 0; /* Prevent slides from shrinking */
    height: auto; /* Allow height to adjust based on content */
}

.testimonial-slide-content {
    background-color: var(--slate-900);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2.5rem;
    text-align: center;
    max-width: 700px; /* Control max width of the content box */
    margin-left: auto;  /* Add/Ensure this */
    margin-right: auto; /* Add/Ensure this */
}

.testimonial-slide-content img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 1.5rem;
}

.testimonial-text-carousel {
    font-size: 1.125rem; /* Slightly smaller text */
    font-weight: 400; /* Regular weight for readability */
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 auto 1.5rem;
    font-style: italic;
    max-width: 60ch;
}

/* Inherit styles from .testimonial-author */
.testimonial-slide-content .testimonial-author .author-name {
    color: var(--text-main);
}
.testimonial-slide-content .testimonial-author .author-title {
    color: var(--accent-blue); /* Highlight title */
}

/* Swiper Pagination and Navigation */
.swiper-pagination-bullet {
    background-color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-blue);
    opacity: 1;
    transform: scale(1.2);
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--accent-blue);
    width: 40px;
    height: 40px;
    background-color: rgba(15, 23, 42, 0.5); /* slate-900/50 */
    border-radius: 50%;
    transition: all 0.3s ease;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
     color: #ffffff;
     background-color: var(--accent-blue);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1rem; /* Smaller arrows */
    font-weight: bold;
}

/* Position nav buttons outside on larger screens */
@media (min-width: 768px) {
    .swiper-button-prev { left: -10px; }
    .swiper-button-next { right: -10px; }
}

/* --- Testimonial Icon Styling --- */
.testimonial-slide-content .testimonial-icon {
    font-size: 3.5rem; /* Larger icon size */
    color: var(--light-blue); /* Your accent color */
    margin-bottom: 1.5rem; /* Space below icon */
    display: block; /* Ensure it takes up full width for centering */
    text-align: center; /* Center the icon */
    width: 100%; /* Ensure it spans the full width for text-align to work */
}
/* --- END OF CAROUSEL STYLES --- */

/* --- END OF NEW HOMEPAGE STYLES --- */

/* STYLES FOR INDIVIDUAL SERVICE PAGES (CONTENT) */
.service-overview { background-color: var(--slate-900); }
.overview-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
.overview-visual { display: flex; flex-direction: column; gap: 1.5rem; }
.visual-card { background-color: var(--dark-navy); padding: 2rem; border-radius: 0.5rem; text-align: center; border: 1px solid var(--border-color); }
.visual-card i { color: var(--accent-blue); margin-bottom: 1rem; }
.visual-card h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.visual-card p { font-size: 1rem; color: var(--text-muted); }
.key-offerings { background-color: var(--dark-navy); }
.offerings-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 4rem; }
.offering-card { background-color: var(--slate-900); padding: 2.5rem; border-radius: 0.75rem; border: 1px solid var(--border-color); text-align: center; }
.offering-icon { color: var(--accent-blue); font-size: 2.5rem; margin-bottom: 1.5rem; }
.offering-title { font-size: 1.5rem; margin-bottom: 1rem; }
.offering-description { color: var(--text-muted); }
.methodology { background-color: var(--slate-900); }
.methodology-steps { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 4rem; position: relative; }
.methodology-steps::before { content: ''; position: absolute; left: 34px; top: 1rem; bottom: 1rem; width: 2px; background-color: var(--border-color); display: none; }
.step-card { padding: 1.5rem 1.5rem 1.5rem 4.5rem; position: relative; }
.step-number { position: absolute; left: 0; top: 1.5rem; height: 70px; width: 70px; background-color: var(--dark-navy); border: 2px solid var(--border-color); color: var(--accent-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; }
.step-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.step-description { color: var(--text-muted); }
.final-cta { background: linear-gradient(45deg, var(--slate-900)); text-align: center; }
.cta-title { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-subtitle { color: var(--text-muted); font-size: 1.125rem; max-width: 60ch; margin: 0 auto 2rem; }

/* Contact Section */
#contact { background-color: rgba(15, 23, 42, 0.5); }
form input, form textarea { width: 100%; background: rgba(30, 41, 59, 0.5); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 0.75rem 1rem; color: var(--text-main); transition: all 0.3s; }
form input:focus, form textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.4); }

/* Footer */
.site-footer { padding: 2rem 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Animations */
.scroll-animation { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.scroll-animation.animate { opacity: 1; transform: translateY(0); }

/* Menus */
.main-navigation .menu-item > a, .mobile-menu .menu-item > a { font-family: 'Inter', sans-serif !important; }
.main-navigation a { position: relative; padding-bottom: 8px; color: var(--text-muted); transition: color 0.3s ease; }
.main-navigation .menu-item::before { color: var(--light-blue); margin-right: 0; font-size: 1.2em; transition: color 0.3s ease; }
.main-navigation .menu-item:hover > a, .main-navigation .menu-item:hover::before { color: #ffffff; font-size: 1.3em;}
.main-navigation .current-menu-item > a, .main-navigation .current-menu-item::before { color: #ffffff; font-weight: 600; }
.main-navigation a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: var(--accent-blue); transform: scaleX(0); transform-origin: center; transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.main-navigation .menu-item:hover > a::after, .main-navigation .current-menu-item > a::after { transform: scaleX(1); }
.mobile-menu { background-color: var(--slate-900); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0.75rem 1rem; display: flex; flex-direction: column; }
.mobile-menu .menu-item { display: flex; align-items: center; border-bottom: 1px solid var(--border-color); transition: background-color 0.3s ease; }
.mobile-menu .menu-item a { flex-grow: 1; padding: 1rem 0; color: var(--text-muted); font-weight: 500; transition: color 0.3s ease; }
.mobile-menu .menu-item::before { font-size: 1em; color: var(--light-blue); padding: 0 1.5rem; transition: color 0.3s ease; }
.mobile-menu .menu-item:hover { background-color: rgba(14, 165, 233, 0.1); }
.mobile-menu .menu-item:hover a, .mobile-menu .menu-item:hover::before { color: #ffffff; }
.mobile-menu .current-menu-item { background-color: var(--accent-blue); }
.mobile-menu .current-menu-item a, .mobile-menu .current-menu-item::before { color: #ffffff; font-weight: 600; }
.mobile-menu .menu-item:last-child { border-bottom: none; }


/* --- CORRECTED AND ADDED INSIGHTS PAGE STYLES --- */

/* Corrected Hero for Insights Page */
.insights-hero {
    background-image: url('images/insights-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    padding: 8rem 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh !important;
    box-sizing: content-box;
}
.insights-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 31, 0.7);
    z-index: 1;
}
.insights-hero .container {
    position: relative;
    z-index: 2;
}


/* Main Content Area */
.insights-layout {
    padding: 6rem 1.5rem;
    background-color: var(--slate-900);
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.post-card {
    background: var(--dark-navy);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 3rem;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -5px rgba(0,0,0,0.3);
}

.post-card-thumbnail {
    display: block;
    overflow: hidden;
}

.post-card-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-card-category a {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--accent-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 500;
}

.post-card-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.post-card-title a {
    color: #ffffff;
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--accent-blue);
}

.post-card-excerpt {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.post-card .card-link { margin-top: auto; }

/* Pagination Styles */
.pagination {
    margin-top: 1rem; /* Reduced space from last card */
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.nav-links .page-numbers {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-weight: 500;
}
.nav-links .page-numbers:hover {
    border-color: var(--accent-blue);
    color: #ffffff;
}
.nav-links .current {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
}
.nav-links .dots {
    border: none;
    padding: 0.75rem 0.5rem;
}

/* Sidebar Styles */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.widget {
    background-color: var(--dark-navy);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}
.widget-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: #ffffff;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.widget ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.widget ul li a {
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-weight: 500;
}
.widget ul li a:hover {
    color: var(--accent-blue);
}
.widget_search .wp-block-search__button {
    background-color: var(--accent-blue) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
}
.widget_search .wp-block-search__input {
    border-radius: 0.5rem !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--slate-900) !important;
    color: var(--text-main) !important;
}

/* Force smaller sidebar widget titles */
.sidebar-column .widget-title,
.widget .widget-title,
.widget > h2,
.widget > h3,
.wp-block-heading.widget-title,
.wp-block-heading,
.widget_block h2,
.widget_block h3 {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}


/* --- END OF NEW STYLES --- */

/* Why choose us (Why Apexora) styles */
/* This targets the hero section specifically on this page 
.why-us-hero {
    background-image: url('images/why-us-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    padding: 8rem 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh !important;
    box-sizing: content-box;
}


.why-us-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 31, 0.7);
    z-index: 1;
}
.why-us-hero .container {
    position: relative;
    z-index: 2;
}

*/

.why-us-hero::after {
    background-color: rgba(10, 15, 31, 0.65); /* Reduced opacity for less blur */
}


.why-us-hero .service-hero-title,.why-us-hero .service-hero-subtitle {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Adds a shadow for clarity */
}


.differentiators {
    background-color: var(--dark-navy);
}

.differentiators-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr; /* This is the crucial fix */
    gap: 2rem;
}

.differentiator-card {
    background-color: var(--slate-900);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.differentiator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -5px rgba(0,0,0,0.3);
    border-color: var(--accent-blue);
}

.differentiator-icon {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.differentiator-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.differentiator-description {
    color: var(--text-muted);
}

.testimonial-section {
    background-color: var(--slate-900);
    padding: 6rem 1.5rem;
}

.testimonial-quote-icon {
    font-size: 3rem;
    color: var(--accent-blue);
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    color: #ffffff;
    max-width: 800px;
    margin: 1.5rem auto 2rem;
    font-style: italic;
}

.testimonial-author {
    font-style: normal;
}

.testimonial-author .author-name {
    display: block;
    font-weight: 600;
    color: var(--text-main);
}

.testimonial-author .author-title {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/*Careers Page Styles */
.careers-hero {
    background-image: url('images/careers-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    padding: 8rem 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh !important;
    box-sizing: content-box;
}

.careers-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 31, 0.7);
    z-index: 1;
}
.careers-hero .container {
    position: relative;
    z-index: 2;
}

/* 2. Culture/Values Section (Reuses existing differentiator styles) */
.culture-section {
    background-color: var(--dark-navy);
}

/* 3. Perks & Benefits Section */
.benefits-section {
    background-color: var(--slate-900);
}

.benefits-grid {
    margin-top: 4rem;
    display: grid;
    /* This creates a responsive grid that works on all screen sizes */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    background-color: var(--dark-navy);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
}

.benefit-item i {
    color: var(--accent-blue);
    font-size: 1.5rem;
}

/* 4. Open Positions Section */
.open-positions {
    background-color: var(--dark-navy);
}

.job-listings {
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.job-listing-card {
    background-color: var(--slate-900);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap; /* Allows button to wrap on small screens */
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.job-listing-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

.job-info .job-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-muted);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-apply {
    margin-left: auto;
    padding-left: 1rem; /* Ensure space on smaller screens */
}

/* Styles for the new Apply CTA section / Send your resume*/
.apply-cta {
    margin-top: 3rem;
    padding: 2.5rem;
    background-color: var(--slate-900);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.apply-email-link {
    display: inline-flex; /* Align icon and text */
    align-items: center;
    margin-top: 1.5rem; /* Space above button */
    padding: 0.8rem 2rem; /* Adjust padding as needed */
    font-size: 1.1rem; /* Make text slightly larger */
}

/* 
 page styles */
.about-hero {
    background-image: url('images/about-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    padding: 8rem 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh !important;
    box-sizing: content-box;
}

.about-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 31, 0.7);
    z-index: 1;
}
.about-hero .container {
    position: relative;
    z-index: 2;
}

/* 2. Mission & Vision Sections */
.mission-vision-section {
    padding: 6rem 1.5rem;
}
.mission-section {
    background-color: var(--dark-navy);
}
.vision-section {
    background-color: var(--slate-900);
    /* Optional: Add background pattern */
    /* background-image: radial-gradient(var(--border-color) 1px, transparent 1px); */
    /* background-size: 20px 20px; */
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default mobile layout */
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.mission-vision-icon {
    font-size: 5rem;
    color: var(--accent-blue);
    text-align: center;
}
.mission-vision-text .section-title {
     margin-bottom: 1.5rem;
}
.mission-vision-text .section-paragraph {
    max-width: none; /* Allow text to fill its column */
}

/* 3. Enhanced Genesis/Story Section */
.enhanced-story {
    background-color: var(--dark-navy);
}
.enhanced-story .overview-grid {
    gap: 4rem; /* More space between text and image */
    align-items: stretch;
}
.enhanced-story .overview-visual img {
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-blue);
    margin: 2.5rem 0 1.5rem; /* Spacing */
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: inline-block; /* Keep border contained */
}
.story-points {
    list-style: none;
    padding: 0;
    margin: 0;
}
.story-points li {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}
.story-points li i {
    color: var(--accent-blue);
    margin-right: 1rem;
    margin-top: 6px; /* Align icon */
    font-size: 0.9em;
}
.story-points li strong {
    color: var(--text-main);
    margin-right: 0.5rem;
}


/* 4. By the Numbers Section */
.by-the-numbers {
    background-color: var(--slate-900);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 1.5rem; /* Reduced padding */
}
.numbers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem; /* Increased gap */
    text-align: center;
}
.number-stat {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--light-blue);
    display: block;
    line-height: 1;
}
.number-label {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-top: 0.75rem; /* More space */
}

/

/* 3. Meet the Leadership Section */
.leadership-section {
    background-color: var(--slate-900);
}

.leadership-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.leader-card {
    background-color: var(--dark-navy);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -5px rgba(0,0,0,0.3);
}

.leader-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--accent-blue);
    object-fit: cover;
}

.leader-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.leader-title {
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 1rem;
}

.leader-bio {
    color: var(--text-muted);
}

/* 4. By the Numbers Section */
.by-the-numbers {
    background-color: var(--dark-navy);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.numbers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.number-stat {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--light-blue);
    display: block;
    line-height: 1;
}

.number-label {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

/* Contact us page styles? */
.contact-hero {
    background-image: url('images/contact-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    padding: 8rem 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh !important;
    box-sizing: content-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 31, 0.7);
    z-index: 1;
}
.contact-hero .container {
    position: relative;
    z-index: 2;
}

/* 2. Main Contact Section Layout */
.contact-main {
    background-color: var(--slate-900);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: flex-start; /* Aligns columns at the top */
}

/* 3. Left Column: Contact Info */
.contact-info-wrapper .section-title {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-icon {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--accent-blue);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.contact-detail, .contact-detail a {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--light-blue);
}

/* 4. Right Column: Contact Form Wrapper */
.contact-form-wrapper {
    background-color: var(--dark-navy);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.contact-form-wrapper .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* 5. Map Section */
.map-section {
    padding: 0;
    line-height: 0; /* Removes extra space around the iframe */
    border-top: 1px solid var(--border-color);
}

.map-section iframe {
    filter: invert(90%) hue-rotate(180deg); /* Applies a dark theme to the map */
    width: 100%;
}
h1, .service-hero-title {
  font-size: 3rem;
}

.map-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem; /* optional: gives side padding on small screens */
}

/* ==========================================================================
   Single Post Styles (Final Version - Fixed)
   ========================================================================== */

/* --- Hero Section & Image Fixes --- */

.single .post-hero {
    background: transparent;
    padding-top: 0; /* Removes the gap between nav and hero */
    margin-bottom: 1rem; /* reduce big bottom gap */
    padding-bottom: 0;   /* ensure no extra space inside hero */
}

/* Remove the dark overlay from the hero section */
.single .post-hero::before,
.single .post-hero::after {
    display: none !important;
    background: none !important;
}

/* Ensure title and meta text are sharp and readable */
.single .post-hero .service-hero-title {
    color: var(--heading-color, #FFFFFF);
    text-shadow: none;
}

.single .post-hero .post-card-meta,
.single .post-hero .post-card-meta a {
    color: var(--text-color, #CCCCCC);
    text-shadow: none;
}

/*
 * Updated Image Container – prevent cropping by allowing image to define height.
 */
.single .post-hero .post-hero-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center; /* Keeps image centered when using object-fit: contain */
}

/*
 * Fixed: Image now scales proportionally without cropping or stretching.
 */
.single .post-hero .post-hero-image img {
    width: 100%;
    height: auto;
    max-height: 65vh; /* Control max height without forcing cropping */
    object-fit: contain; /* Shows full image without cropping */
    filter: none;
    opacity: 1;
    border-radius: 8px;
}

/* --- Two-Column Layout for Content & Sidebar --- */

.single .post-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
}

.single .post-content-area {
    grid-column: 1 / 9;
}

.single .sidebar-column {
    grid-column: 9 / 13;
}

.single .service-hero-title,
.single h1.post-title {
    font-size: 2.5rem;   /* Adjust to your design preference */
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Responsive Styles for Tablets & Mobile
   ========================================================================== */
@media (max-width: 992px) {

    /* Stack the content and sidebar on tablets and mobile */
    .single .post-grid {
        grid-template-columns: 1fr;
    }

    .single .post-content-area,
    .single .sidebar-column {
        grid-column: 1 / -1;
    }

    /* Adjust image for smaller screens */
    .single .post-hero .post-hero-image img {
        max-height: 50vh; /* Shorter height for mobile */
    }
    
    .single .service-hero-title,
    .single h1.post-title {
        font-size: 2rem;
    }
}


/* Responsive Grid Rules */
@media (min-width: 768px) {
    h1, .service-hero-title { font-size: 4rem; }
    .services-grid, .offerings-grid, .services-hub-grid, .differentiators-grid { grid-template-columns: repeat(2, 1fr); }
    .overview-grid { grid-template-columns: repeat(2, 1fr); }
    .methodology-steps::before { display: block; }
    .methodology-steps { grid-template-columns: repeat(2, 1fr); }
    .leadership-grid { grid-template-columns: repeat(2, 1fr); }
    .numbers-grid { grid-template-columns: repeat(3, 1fr); }
    .intro-grid { grid-template-columns: repeat(2, 1fr); }
    /*about page*/
    .mission-vision-grid { grid-template-columns: 100px 1fr; gap: 4rem; text-align: left; }
    .mission-vision-grid.reverse { grid-template-columns: 1fr 100px; }
    .mission-vision-grid.reverse .mission-vision-icon { order: 1; }
    .mission-vision-icon { text-align: center; font-size: 6rem;}
    .numbers-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem;}

}

@media (min-width: 1024px) {
    .main-navigation ul { display: flex; }
    .mobile-menu-button { display: none; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .services-hub-grid { grid-template-columns: repeat(2, 1fr); max-width: 1000px; margin-left: auto; margin-right: auto;}
    .methodology-steps { grid-template-columns: repeat(4, 1fr); }
    .mobile-menu { display: none !important; }
    .insights-grid { grid-template-columns: 2fr 1fr; } /* Apply 2-column layout on desktop */
    .differentiators-grid { grid-template-columns: repeat(3, 1fr); }
    .leadership-grid { grid-template-columns: repeat(3, 1fr); }
    .site-branding img { height: 4rem; width: auto; }


}

