/* =============================
   GLOBAL VARIABLES & RESET
   ============================= */

:root {
  --content-max-width: 1200px;
  --content-narrow: 800px;
  --content-padding: 2rem;

  --color-bg: #ffffff;
  --color-bg-alt: #f3f5fa;
  --color-body: #2f3437;
  --color-heading: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-link: #2b34f5;
  --color-link-rgb: 43, 52, 245;
  --color-link-light: rgba(var(--color-link-rgb), 0.08);
  --color-card-bg: #fafafa;
  --color-white: #ffffff;
  --color-footer-bg: #2b34f5;

  --radius: 0.75rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-body);
  background: linear-gradient(180deg, #f7f8fb 0%, #f2f4f8 38%, #f6f7fa 100%);
}

.site-shell {
  min-height: 100vh;
}

/* =============================
   UTILITY CLASSES
   ============================= */

/* Inner container — max-width + centered — used inside full-width sections */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Section title shared across partials */
.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 auto 2.1rem;
  color: var(--color-heading);
  text-align: center;
  position: relative;
  width: fit-content;
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 0.7rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--color-link-rgb), 0.92), rgba(var(--color-link-rgb), 0.75));
}

/* Ghost utility classes used in templates */
.ghost-section {
  width: 100%;
}

.ghost-section-alt {
  width: 100%;
  background: var(--color-bg-alt);
}

.ghost-card {
  border: 1px solid var(--color-border);
}

.ghost-border {
  border-color: var(--color-border);
}

.ghost-glow {
  box-shadow: 0 8px 24px rgba(var(--color-link-rgb), 0.28);
}

.ghost-glow-text-lg {
  text-shadow: 0 0 10px rgba(var(--color-link-rgb), 0.55), 0 0 22px rgba(var(--color-link-rgb), 0.4);
}

.hover-lift {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

/* =============================
   HEADER
   ============================= */

.site-header {
  width: 100%;
  padding: 1.1rem var(--content-padding);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.header-inner,
.site-header-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.header-nav,
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav ul,
.header-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a,
.header-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--color-link);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.site-nav a:visited,
.header-nav a:visited {
  color: var(--color-link);
}

.site-nav a:hover,
.header-nav a:hover {
  background: var(--color-link-light);
}

.site-nav .nav-current a,
.header-nav .nav-current a {
  color: var(--color-link);
}

/* Header search button */
.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 0.4rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.header-search-btn:hover {
  color: var(--color-link);
  background: var(--color-link-light);
}

/* =============================
   MAIN CONTENT WRAPPER
   ============================= */

/* Full-width pass-through — each section manages its own width */
.site-main {
  width: 100%;
}

/* =============================
   BUTTONS
   ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-icon {
  width: 1.2em;
  height: 1.2em;
}

.btn-cta {
  background: var(--color-link);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 9px;
  box-shadow: 0 12px 24px rgba(var(--color-link-rgb), 0.35);
}

.btn-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: var(--color-link);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-contact:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* =============================
   HERO SECTION
   ============================= */

.hero-section {
  width: 100%;
  padding: 1.5rem 0 1.5rem;
}

.hero-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1 1 0%;
  min-width: 0;
}

.hero-content .btn-cta {
  width: 100%;
  justify-content: center;
  padding: 0.9rem 1.25rem;
}

.hero-title {
  margin: 0 0 1rem 0;
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: var(--color-link);
}

.hero-description {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--color-body);
}

.hero-subtext {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.hero-image-wrapper {
  flex: 1 1 0%;
  max-width: none;
  width: 100%;
}

.hero-image-container {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
  aspect-ratio: 4 / 3;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================
   TESTIMONIALS SECTION
   ============================= */

.testimonials-section {
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.testimonials-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-alt);
  z-index: 1;
}

.testimonials-overlay {
  position: relative;
  z-index: 2;
  background: var(--color-bg-alt);
  padding: 2rem var(--content-padding);
}

.testimonials-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.testimonials-container .section-title {
  margin-bottom: 3rem;
  position: relative;
  z-index: 3;
}

.testimonials-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

/* Left Info Panel */
.testimonials-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--color-heading);
  align-self: start;
}

.testimonials-quote-icon-large {
  width: 80px;
  height: 80px;
  background: var(--color-link);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(var(--color-link-rgb), 0.4);
}

.testimonials-quote-icon-large svg {
  width: 40px;
  height: 40px;
}

.testimonials-info-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
  margin: 0;
}

.testimonials-info-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-body);
  margin: 0;
}

/* Right Cards Panel */
.testimonials-cards-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  width: 100%;
}

.testimonial-slide {
  min-width: 100%;
  flex-shrink: 0;
  width: 100%;
}

.testimonial-card-new {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.testimonial-card-new:hover {
  box-shadow: 0 16px 32px rgba(var(--color-link-rgb), 0.2), 0 8px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
  border-color: rgba(var(--color-link-rgb), 0.55);
}

.testimonial-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-link);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.testimonial-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.testimonial-card-new:hover .testimonial-image-placeholder {
  transform: scale(1.05);
}

/* Image fallback colors */
.testimonial-image-1 { background: var(--color-link); }
.testimonial-image-2 { background: #f97316; }
.testimonial-image-3 { background: #a855f7; }
.testimonial-image-4 { background: var(--color-link); }
.testimonial-image-5 { background: #f97316; }
.testimonial-image-6 { background: #a855f7; }
.testimonial-image-7 { background: var(--color-link); }
.testimonial-image-8 { background: #f97316; }
.testimonial-image-9 { background: #a855f7; }

.testimonial-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.testimonial-quote-icon {
  width: 32px;
  height: 32px;
  background: var(--color-link);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
}

.testimonial-quote-icon svg {
  width: 18px;
  height: 18px;
}

.testimonial-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-body);
  margin: 0;
  flex-grow: 1;
}

.testimonial-author-info {
  margin-top: auto;
}

.testimonial-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 0.25rem;
}

.testimonial-company {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Slider Navigation Controls */
.testimonials-navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonials-nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonials-nav-buttons .slider-btn {
  width: 40px;
  height: 40px;
  background: var(--color-link);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 10px rgba(var(--color-link-rgb), 0.3);
}

.testimonials-nav-buttons .slider-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: scale(1.1);
  box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15), 0 0 15px rgba(var(--color-link-rgb), 0.4);
}

.testimonials-nav-buttons .slider-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--color-border);
  color: var(--color-muted);
}

.testimonials-nav-buttons .slider-btn svg {
  width: 20px;
  height: 20px;
}

.testimonials-nav-buttons .slider-btn-prev,
.testimonials-nav-buttons .slider-btn-next {
  /* Semantic hooks — all visual styles inherited from .slider-btn */
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  background: var(--color-muted);
  transform: scale(1.2);
}

.slider-dot.active {
  background: var(--color-heading);
  width: 0.75rem;
  height: 0.75rem;
  box-shadow: 0 0 8px rgba(var(--color-link-rgb), 0.5);
}

/* =============================
   ABOUT SECTION
   ============================= */

.about-section {
  width: 100%;
  padding: 2rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 560px) 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image-wrapper {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  aspect-ratio: 1 / 1;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-text {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-body);
}

.about-content .btn-contact {
  width: 180px;
  justify-content: center;
  align-self: center;
  margin-top: 1rem;
  border-radius: 999px;
}

/* ###
   SERVICES SECTION
*/

.services-section {
  width: 100%;
  padding: 2rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #f5f6fb;
  padding: 2rem 2rem 2.15rem;
  border-radius: 18px;
  border: 1px solid #d9dde7;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.service-card-gradient {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(var(--color-link-rgb), 0.95), rgba(var(--color-link-rgb), 0.65));
}

.service-card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-icon-container {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(var(--color-link-rgb), 0.13);
}

.service-icon {
  width: 22px;
  height: 22px;
  stroke: var(--color-link);
}

.service-title {
  margin: 0;
  font-weight: 800;
  color: var(--color-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-description {
  margin: 0;
  color: #545b66;
  line-height: 1.7;
  font-size: 1.08rem;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--color-link-rgb), 0.85);
  background: rgba(var(--color-link-rgb), 0.07);
  box-shadow: 0 14px 28px rgba(var(--color-link-rgb), 0.18), 0 8px 18px rgba(15, 23, 42, 0.1);
}

.service-card:hover .service-title {
  color: var(--color-link);
}

/* =============================
   INSIGHTS SECTION
   ============================= */

.insights-section {
  width: 100%;
  padding: 2rem 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.insight-card {
  background: var(--color-white);
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(17, 24, 39, 0.08);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.insight-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.insight-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.insight-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.insight-card:hover .insight-image {
  transform: scale(1.03);
}

.insight-content {
  padding: 1.25rem;
}

.insight-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-link);
  margin-bottom: 0.5rem;
}

.insight-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.insight-excerpt {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.insight-read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-link);
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 1rem;
}

.insight-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

.insight-author,
.insight-date,
.insight-reading-time {
  color: var(--color-muted);
}

.insight-separator {
  color: var(--color-border);
}

/* =============================
   CONTACT SECTION
   ============================= */

.contact-section {
  width: 100%;
  padding: 2rem 0;
}

.contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form .btn-cta {
  justify-self: start;
  text-align: center;
  padding: 0.7rem 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-heading);
}

.form-input,
.form-textarea {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.98rem;
  color: var(--color-body);
  background: var(--color-white);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-link);
  box-shadow: 0 0 0 3px rgba(var(--color-link-rgb), 0.16);
}

.form-textarea {
  resize: vertical;
}

/* Form status (set by JS) */
.form-success {
  color: #16a34a;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(22, 163, 74, 0.08);
  border-radius: 8px;
}

.form-error {
  color: #dc2626;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(220, 38, 38, 0.08);
  border-radius: 8px;
}

/* =============================
   BLOG LISTING PAGE
   ============================= */

.blog-section {
  width: 100%;
  padding: 4rem 0;
}

.blog-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.blog-page-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-heading);
  margin: 0 0 0.5rem;
}

.blog-page-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.03);
}

.blog-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-muted);
}

.blog-card-content {
  padding: 1.25rem;
}

.blog-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-link);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--color-muted);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.blog-card-read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-link);
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.blog-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

.blog-card-author,
.blog-card-date,
.blog-card-reading-time {
  color: var(--color-muted);
}

.blog-card-separator {
  color: var(--color-border);
}

.blog-no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.blog-pagination-wrap {
  margin-top: 2.25rem;
}

.blog-pagination-wrap .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 1.05rem;
}

.blog-pagination-wrap .pagination a {
  color: var(--color-link);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
}

.blog-pagination-wrap .pagination a:hover {
  border-bottom-color: rgba(var(--color-link-rgb), 0.8);
}

.blog-pagination-wrap .page-number {
  color: var(--color-heading);
  font-weight: 600;
}

/* =============================
   POST LAYOUT
   ============================= */

.post-template {
  width: 100%;
}

/* Header — centered narrow column for tag, title, excerpt, meta */
.post-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 3rem 1.5rem 0;
}

.post-header-content {
  /* structural wrapper */
}

/* Tag label above the title */
.post-tag-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-link);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.post-tag-label:hover {
  text-decoration: underline;
}

.post-title {
  margin: 0 0 1rem 0;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-heading);
}

.post-excerpt {
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-body);
  font-family: var(--font-serif);
}

.post-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 0 1.25rem 0;
}

/* Author row — avatar, name, date, reading time */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

.post-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-name {
  font-weight: 600;
  color: var(--color-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.post-date {
  color: var(--color-muted);
}

/* Dot separators between meta items */
.post-date::before,
.post-reading-time::before {
  content: "\00B7";
  margin-right: 0.6rem;
  color: var(--color-muted);
}

.post-reading-time {
  color: var(--color-muted);
}

/* Feature image — wider than content */
.post-feature-media {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.post-feature-image {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Content wrapper — narrower than feature image */
.post-content-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.post-footer {
  margin-top: 3rem;
}

/* =============================
   POST CONTENT TYPOGRAPHY
   ============================= */

.post-content {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-body);
  font-family: var(--font-serif);
}

/* Drop cap */
.post-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1;
  padding-right: 0.4rem;
  padding-top: 0.15rem;
  font-weight: 700;
  color: var(--color-heading);
}

.post-content p {
  margin: 1.5rem 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-heading);
  font-family: var(--font-sans);
}

.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.3rem; }

.post-content ul,
.post-content ol {
  margin: 1.5rem 0 1.5rem 1.25rem;
}

.post-content li {
  margin: 0.6rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.post-content th,
.post-content td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  text-align: left;
}

.post-content th {
  background: var(--color-bg-alt);
  font-weight: 600;
}

.post-content a {
  color: var(--color-link);
  text-decoration: underline;
}

/* Embedded images in content match content width */
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.post-content figure {
  margin: 2rem 0;
}

.post-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
  font-family: var(--font-sans);
}

/* Blockquote styling (matching the example's left-border italic style) */
.post-content blockquote {
  border-left: 3px solid var(--color-heading);
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-heading);
}

.post-content blockquote p {
  margin: 0;
}

/* =============================
   PAGE LAYOUT
   ============================= */

.page-template {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 3rem var(--content-padding);
}

.page-header {
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-heading);
  margin: 0 0 1.5rem;
}

.page-feature-image {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.page-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-body);
}

.page-content p {
  margin: 1.25rem 0;
}

/* =============================
   RECENT POSTS
   ============================= */

.recent-posts-section {
  width: 100%;
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
}

.recent-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* =============================
   FOOTER
   ============================= */

.site-footer {
  width: 100%;
  background: #2b34f5;
  color: var(--color-white);
  padding: 2.5rem 0 0;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo {
  height: 24px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.footer-social a {
  color: var(--color-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-social a:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  max-width: var(--content-max-width);
  margin: 2rem auto 0;
  padding: 1.25rem var(--content-padding);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
  border-top: 1px solid #ffffff;
}

/* =============================
   GHOST REQUIRED WIDTH CLASSES
   ============================= */

.kg-width-wide {
  max-width: calc(var(--content-narrow) + 240px);
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================
   MOBILE MENU
   ============================= */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 60;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--color-border);
  padding: 0 var(--content-padding);
}

.mobile-menu.active {
  max-height: 500px;
  padding: 1rem var(--content-padding) 1.25rem;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu li a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu li a:hover,
.mobile-menu li.nav-current a {
  color: var(--color-link);
}

.mobile-search-btn {
  display: flex;
  align-items: center;
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-alt);
  cursor: pointer;
}

.mobile-search-label {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-heading);
}

/* =============================
   RESPONSIVE
   ============================= */

/* Tablet */
@media (min-width: 768px) {
  .testimonials-slider {
    gap: 2rem;
  }

  .testimonial-slide {
    min-width: calc((100% - 2rem) / 2);
    width: calc((100% - 2rem) / 2);
  }

  .testimonial-image-wrapper {
    height: 220px;
  }

  .testimonials-info-heading {
    font-size: 2.5rem;
  }

  .testimonials-info-text {
    font-size: 1.125rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .testimonials-content {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 4rem;
  }

  .insights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonials-slider {
    gap: 1.5rem;
  }

  .testimonial-slide {
    min-width: calc((100% - 3rem) / 3);
    width: calc((100% - 3rem) / 3);
  }

  .testimonial-image-wrapper {
    height: 250px;
  }
}

/* Small screens */
@media (max-width: 1023px) {
  .hero-container {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-image-wrapper {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-content {
    flex: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .about-grid {
    grid-template-columns: minmax(240px, 400px) 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 767px) {
  .site-logo img {
    height: 30px;
  }

  .site-header {
    padding: 1rem var(--content-padding);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .site-nav-desktop {
    display: none;
  }

  .hero-container {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-image-wrapper {
    max-width: 560px;
    margin: 0 auto;
  }

  .testimonials-content {
    gap: 1.5rem;
  }

  .testimonials-section {
    min-height: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .recent-posts-grid {
    grid-template-columns: 1fr;
  }

  .post-title {
    font-size: 1.85rem;
  }

  .post-header {
    padding: 2rem 1.25rem 0;
  }

  .post-feature-media {
    padding: 0 1rem;
  }

  .post-content-wrapper {
    padding: 0 1.25rem;
  }

  .post-excerpt {
    font-size: 1.05rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .testimonials-overlay {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2.2rem;
  }

  .testimonials-info-heading {
    font-size: 1.75rem;
  }

  .testimonials-quote-icon-large {
    width: 60px;
    height: 60px;
  }

  .testimonials-quote-icon-large svg {
    width: 30px;
    height: 30px;
  }

  .testimonial-image-wrapper {
    height: 180px;
  }

  .testimonials-nav-buttons .slider-btn {
    width: 36px;
    height: 36px;
  }

  .testimonials-nav-buttons .slider-btn svg {
    width: 18px;
    height: 18px;
  }

  .testimonial-content {
    padding: 1.25rem;
  }

  .testimonial-text {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  :root {
    --content-padding: 1rem;
  }

  .section-container {
    padding: 1.5rem 1rem;
  }

  .hero-image-container {
    border-radius: 16px;
  }

  .testimonial-image-wrapper {
    height: 160px;
  }

  .testimonials-overlay {
    padding: 2rem 1rem;
  }

  .testimonials-container .section-title {
    margin-bottom: 2rem;
    font-size: 1.35rem;
  }

  .blog-page-title {
    font-size: 1.75rem;
  }
}

/* Intermediate: 2-column grids between phone and tablet */
@media (min-width: 481px) and (max-width: 767px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
