:root {
  /* Brand Colors - High Trust Palette */
  --primary-color: #1b263b; /* Navy Blue - Authority */
  --primary-dark: #0f172a;
  --secondary-color: #ff5722; /* Warning/Action Orange - kept for brand continuity */
  --accent-color: #0e7490; /* Teal - Security/Calm */

  /* Light Theme Base Colors */
  --bg-color: #ffffff;
  --bg-alt-color: #f8fafc; /* Slate 50 */
  --text-color: #334155; /* Slate 700 */
  --text-light: #64748b; /* Slate 500 */
  --heading-color: #0f172a; /* Slate 900 */

  /* Components */
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: "Roboto", "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-weight: 700;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

header .brand-name img {
  display: block;
  max-width: 100%;
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--heading-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
nav a:focus {
  color: var(--secondary-color);
}

.hamburger {
  display: none;
  color: var(--heading-color);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

/* =========================================
   Components
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Buttons */
.cta-button,
button[type="submit"],
.hero .cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.cta-button:hover,
button[type="submit"]:hover,
.hero .cta:hover {
  background-color: #e64a19;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-button.secondary,
.hero .cta.secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.cta-button.secondary:hover,
.hero .cta.secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* =========================================
   Hero Section - High Trust Light
   ========================================= */
.hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: var(--heading-color);
  padding: 5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero .tagline {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--primary-color);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero div {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================
   Profile Section
   ========================================= */
.profile {
  padding: 5rem 0;
  background: var(--bg-color);
}

.profile-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.profile-image {
  flex: 0 0 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.profile-text p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

/* =========================================
   Process Section
   ========================================= */
.process-section {
  padding: 5rem 1rem;
  background: var(--bg-alt-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.process-title {
  text-align: center;
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 4rem;
}

.process-path {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.process-step {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  min-width: 250px;
  max-width: 220px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
  border: 1px solid var(--border-color);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.process-step i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.process-step h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.process-step p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* =========================================
   Services & Pricing Section
   ========================================= */
.services {
  padding: 5rem 1rem;
  background: var(--bg-color);
}

.services h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-block,
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.service-block:hover,
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--secondary-color);
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  background: #f8fafc;
  transform: scale(1.02);
}

.pricing-card .card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pricing-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0.5rem 0;
}

.pricing-card .duration {
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 1px;
  font-weight: 600;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.features li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.features li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--accent-color);
}

/* =========================================
   Social Proof - High Trust
   ========================================= */
.social-proof {
  padding: 5rem 1rem;
  background: var(--primary-color); /* Dark section for contrast */
  color: white;
  text-align: center;
}

.social-proof h2 {
  color: white;
  margin-bottom: 3rem;
}

.results-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.result-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  display: block;
}

.result-item p {
  color: #e2e8f0;
  font-size: 1.1rem;
}

.testimonials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  max-width: 450px;
  text-align: left;
  color: white;
}

.testimonial-card .quote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* =========================================
   Why Choose & Contact
   ========================================= */
.why-choose {
  padding: 5rem 1rem;
  background: var(--bg-color);
  text-align: center;
}

.why-choose ul {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.why-choose li {
  background: var(--bg-alt-color);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  color: var(--text-color);
}

.contact {
  padding: 5rem 1rem;
  background: var(--bg-alt-color);
  text-align: center;
}

form {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

form label {
  text-align: left;
  font-weight: 600;
  color: var(--heading-color);
}

form input,
form textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 38, 59, 0.1);
}

/* =========================================
   Footer
   ========================================= */
footer {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: var(--text-color);
  padding: 3rem 1rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

footer a:hover {
  color: var(--secondary-color);
}

/* =========================================
   Mobile
   ========================================= */
@media (max-width: 768px) {
  .hero .tagline {
    font-size: 2rem;
  }
  .profile-content {
    flex-direction: column;
    text-align: center;
  }
  .profile-image {
    margin: 0 auto;
  }
  .profile-text h2 {
    text-align: center;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-path {
    flex-direction: column;
    align-items: center;
  }
}

/* =========================================
   Survey & Interactive Elements
   ========================================= */
.survey-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.survey-intro {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* =========================================
   Blog Styles (Preserved)
   ========================================= */
.blog-header {
  background: #1e3a8a;
  color: #ffffff;
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .blog-header {
    padding: 4rem 0;
    margin-bottom: 3rem;
  }
}

.survey-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.blog-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

@media (min-width: 768px) {
  .blog-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
}
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  color: var(--text-color);
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .blog-content {
    padding: 1rem;
  }
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.blog-card {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* =========================================
   Blog Listing Styles
   ========================================= */
.featured-posts {
  margin-bottom: 4rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  padding: 1.5rem;
  background: var(--bg-alt-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.pagination button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
  background: #e64a19;
  transform: translateY(-2px);
}

.pagination button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.page-info {
  color: var(--text-color);
  font-weight: 500;
  min-width: 120px;
  text-align: center;
}

.blog-list-section {
  margin-top: 2rem;
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-list-item {
  background: var(--card-bg);
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.blog-list-item:hover {
  background: var(--bg-alt-color);
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.blog-list-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.blog-list-item h3 a {
  color: var(--heading-color);
  text-decoration: none;
  transition: color 0.3s;
}

.blog-list-item h3 a:hover {
  color: var(--secondary-color);
}

.blog-list-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-list-excerpt {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.blog-list-tags {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Hide list items by default for pagination */
.blog-list-item {
  display: none;
}

.blog-list-item.show {
  display: block;
}

@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .pagination button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  .blog-list-item {
    padding: 1rem;
  }
  .blog-list-item h3 {
    font-size: 1.1rem;
  }
}

/* ===========================================
   Blog Post Mobile Horizontal Overflow Fixes
   =========================================== */

/* Prevent body-level horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Fix inline header nav overflow on mobile */
@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem !important;
    flex-wrap: wrap;
  }

  header nav ul {
    gap: 0.5rem !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  header nav ul li a {
    font-size: 0.85rem !important;
    padding: 6px 10px !important;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.5rem 0.75rem !important;
  }

  header nav ul {
    gap: 0.25rem !important;
  }

  header nav ul li a {
    font-size: 0.8rem !important;
    padding: 4px 8px !important;
  }
}

/* Responsive table wrapper */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.table-wrapper table {
  min-width: 500px;
}

/* Org chart grid — single column on small screens */
.org-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

@media (max-width: 480px) {
  .org-chart-grid {
    grid-template-columns: 1fr !important;
  }
}
