/* ============================================================
   style.css – Walikale Engineering Africa Public Site
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --accent:      #0d6efd;
  --accent-dark: #0a58ca;
  --dark-bg:     #0f1923;
  --dark-card:   #1a2535;
  --dark-border: rgba(255,255,255,.08);
  --text-muted:  #8b9ab0;
  --gradient:    linear-gradient(135deg, #003b6e 0%, #0d6efd 100%);
  --font-body:   'Inter', sans-serif;
  --font-head:   'Rajdhani', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #fff;
  color: #1e293b;
  line-height: 1.7;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--dark-bg);
  font-size: .8rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--dark-border);
}
.topbar a { color: var(--text-muted); }
.topbar a:hover { color: #fff; }
.topbar .social-icons a { margin-left: .5rem; font-size: .95rem; }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(10,22,40,.92) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: box-shadow .3s, background .3s;
}

.navbar.scrolled {
  background: rgba(10,22,40,.98) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.navbar-brand img { height: 46px; }

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .9rem;
  padding: .5rem 1rem;
  letter-spacing: .3px;
  transition: color .2s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
}
.navbar-dark .navbar-nav .nav-link.active { border-bottom: 2px solid var(--accent); }

/* ---------- Hero Sections ---------- */
.hero-section {
  position: relative;
  background: var(--dark-bg);
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Full-bleed background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark gradient overlay div — controls the hero overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,25,55,.82) 0%, rgba(13,110,253,.28) 100%);
  z-index: 1;
}
.hero-section .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  background: rgba(13,110,253,.25);
  border: 1px solid rgba(13,110,253,.5);
  color: #6ea8fe;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
}
.hero-title span { color: #60a5fa; }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin: 0 auto;
}

/* Inner page hero (shorter) */
.page-hero {
  min-height: 42vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}
.page-hero-sm { min-height: 28vh; }

/* Overlay div used inside page-hero sections */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,20,50,.80) 0%, rgba(13,110,253,.25) 100%);
  z-index: 0;
}

/* Content wrapper — must sit above the overlay */
.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-title  { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; margin-bottom: .5rem; }
.page-hero-subtitle { color: rgba(255,255,255,.75); font-size: 1.05rem; }

/* Fallback ::before for pages that don't use .page-hero-overlay div */
.page-hero:not(:has(.page-hero-overlay))::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,20,45,.75);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; }
.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.65); font-size: .85rem; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.page-hero .breadcrumb-divider { color: rgba(255,255,255,.4); }

/* ---------- Stats Bar ---------- */
.stats-bar { background: var(--gradient); }
.stat-item { text-align: center; padding: 1.75rem 1rem; }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-suffix { font-size: 1.8rem; font-weight: 700; color: #fff; }
.stat-label { color: rgba(255,255,255,.75); font-size: .85rem; margin-top: .25rem; }

/* ---------- Section Utilities ---------- */
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-badge {
  display: inline-block;
  background: rgba(13,110,253,.1);
  color: var(--accent);
  border: 1px solid rgba(13,110,253,.25);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 2rem;
  margin-bottom: .75rem;
}
/* Badge inside dark hero areas */
.page-hero .section-badge {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  margin-top: .6rem;
}

/* ---------- Service Cards ---------- */
.service-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13,110,253,.12);
  border-color: var(--accent);
}
.service-card .service-icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: rgba(13,110,253,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: background .3s;
}
.service-card:hover .service-icon { background: var(--accent); color: #fff; }
.service-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(13,110,253,.04) 0%, #fff 100%);
}
.service-card.featured::before {
  display: none; /* replaced by .service-badge-new div in markup */
}

/* ---------- EPC Tiers ---------- */
.epc-tier-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.epc-tier-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.epc-tier-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(13,110,253,.15);
}
.epc-tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: .15rem .75rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.tier-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* ---------- YouTube / Video Section ---------- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ---------- Gallery Grid ---------- */
.gallery-grid .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.gallery-grid .gallery-item img {
  width: 100%; height: 200px;
  object-fit: cover;
  transition: transform .45s;
}
.gallery-grid .gallery-item:hover img { transform: scale(1.07); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,110,253,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay i { font-size: 1.8rem; color: #fff; }

/* ---------- Blog Cards ---------- */
.blog-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.blog-card .card-img-top { height: 210px; object-fit: cover; }
.blog-card .card-body { padding: 1.5rem; }
.blog-card .blog-meta { font-size: .8rem; color: var(--text-muted); }
.blog-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: .5rem;
  color: #1e293b;
  transition: color .2s;
}
.blog-card:hover .card-title { color: var(--accent); }

/* ---------- Team Cards ---------- */
.team-card img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
}

/* ---------- Partners Logos ---------- */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3.5rem;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item img,
.partner-logo {
  height: 58px;        /* 48 px × 1.2 */
  width: auto;
  max-width: 132px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .3s, opacity .3s;
}
.partner-item img:hover,
.partner-logo:hover { filter: none; opacity: 1; }

/* ---------- Job Cards ---------- */
.job-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s;
}
.job-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.09); }
.job-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 4px;
}

/* ---------- Contact Cards ---------- */
.contact-info-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow .3s;
}
.contact-info-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }

/* ---------- Project Cards ---------- */
.project-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.project-card img { height: 240px; object-fit: cover; width: 100%; transition: transform .5s; }
.project-card:hover img { transform: scale(1.05); }
.project-card .project-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,20,50,.9) 0%, transparent 100%);
  padding: 1.25rem;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: .5rem;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem; top: .5rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(13,110,253,.2);
}

/* ---------- VMV Cards ---------- */
.vmv-card {
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--dark-bg);
  color: #fff;
}
.vmv-card .vmv-icon { font-size: 2.5rem; margin-bottom: 1rem; color: #60a5fa; }
.vmv-card h3 { font-family: var(--font-head); font-size: 1.6rem; }

/* ---------- CTA Section ---------- */
/* ---------- Section Spacing ---------- */
.section-padded { padding: 5rem 0; }

.cta-section { background: var(--gradient); }
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,.8); }

/* ---------- Footer ---------- */
.site-footer { background: #061022; color: rgba(255,255,255,.65); }

.footer-top { padding: 4rem 0 3rem; }

.footer-heading,
.site-footer h5,
.site-footer h6 {
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-desc { font-size: .87rem; line-height: 1.75; color: rgba(255,255,255,.55); }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: .45rem; }
.footer-links a,
.site-footer a { color: rgba(255,255,255,.55); font-size: .87rem; }
.footer-links a:hover,
.site-footer a:hover { color: #fff; }

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .6rem;
  font-size: .87rem;
  color: rgba(255,255,255,.55);
}
.footer-contact li i { margin-top: .15rem; color: var(--accent); flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.55); }
.footer-contact a:hover { color: #fff; }

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: rgba(255,255,255,.6) !important;
  font-size: .95rem;
  transition: background .2s, border-color .2s;
  margin-right: .35rem;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 18px rgba(37,211,102,.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.1); }
.whatsapp-fab img { width: 32px; height: 32px; }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  right: 33px;
  bottom: 102px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13,110,253,.25);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s, background .2s, color .2s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--accent); color: #fff; }
.back-to-top:focus-visible { outline: 3px solid rgba(13,110,253,.4); outline-offset: 3px; }

/* ---------- Flash Messages ---------- */
.flash-message { z-index: 1080; }

/* ---------- Blog Post Content ---------- */
.post-content img { border-radius: 8px; margin: 1rem auto; display: block; }
.post-content h2 { font-size: 1.6rem; margin-top: 2rem; }
.post-content h3 { font-size: 1.3rem; margin-top: 1.5rem; }
.post-content p { line-height: 1.8; }
.post-content ul, .post-content ol { padding-left: 1.5rem; line-height: 2; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
  color: #4b5563;
  font-style: italic;
  margin: 1.5rem 0;
}
.post-content pre {
  background: #f1f5f9;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

/* ---------- Comment Form ---------- */
.comment-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.2);
}

/* ---------- Hero Additions ---------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.4rem;
  z-index: 2;
  animation: heroScroll 2s infinite;
}
@keyframes heroScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Typography Helpers ---------- */
.text-accent  { color: #60a5fa; }
.lead-text    { font-size: 1.15rem; line-height: 1.8; color: #1e293b; }

/* ---------- Section Helpers ---------- */
.bg-dark-alt    { background: #f4f7fb; }
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
  margin: .5rem auto 0;
}

/* ---------- Service Card Additions ---------- */
.service-badge-new {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 4px;
  margin-bottom: .75rem;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--accent);
  font-weight: 500;
  font-size: .87rem;
  margin-top: auto;
  padding-top: 1rem;
  transition: gap .2s;
}
.service-link:hover { gap: .6rem; color: var(--accent-dark); }
.service-detail-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }
#epc,
.service-detail-row[id] { scroll-margin-top: 100px; }
.service-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0;
}
.service-list li {
  padding: .4rem 0 .4rem 1.5rem;
  position: relative;
  font-size: .95rem;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.service-steps { padding-left: 1.25rem; }
.service-steps li { padding: .4rem 0; font-size: .95rem; line-height: 1.6; }
.tech-tag {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: .45rem .75rem;
  font-size: .85rem;
  font-weight: 500;
  white-space: normal;
  word-break: break-word;
}

/* ---------- Section Badge Variant ---------- */
.section-badge.new-badge {
  background: rgba(220,53,69,.1);
  color: #dc3545;
  border-color: rgba(220,53,69,.25);
}

/* ---------- EPC Cards (Services page) ---------- */
.epc-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  position: relative;
  background: #fff;
  transition: transform .3s, box-shadow .3s;
}
.epc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.epc-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(13,110,253,.15);
  background: linear-gradient(135deg, rgba(13,110,253,.04), #fff);
}
.epc-card-icon { font-size: 2.2rem; color: var(--accent); margin-bottom: 1rem; }
.epc-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: .2rem .85rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.epc-list { list-style: none; padding: 0; margin: 1rem 0; }
.epc-list li {
  padding: .3rem 0 .3rem 1.4rem;
  position: relative;
  font-size: .9rem;
  color: #475569;
}
.epc-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.epc-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

/* ---------- Project Cards ---------- */
.project-img { height: 200px; object-fit: cover; width: 100%; transition: transform .5s; }
.project-card:hover .project-img { transform: scale(1.05); }
.project-img-contain { object-fit: contain !important; background: #f8fafc; padding: .75rem; }
.project-body { padding: 1.25rem; }
.project-tag {
  display: inline-block;
  background: rgba(13,110,253,.1);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 4px;
  margin-top: .5rem;
}

/* ---------- Home — Value & Approach ---------- */
.value-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
}
.value-item i { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.approach-img-wrap { position: relative; }
.approach-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: #fff;
  border-radius: 50%;
  width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  border: 3px solid var(--accent);
  overflow: hidden;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,110,253,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 1.8rem; color: #fff; }

/* ---------- Video Card ---------- */
.video-card { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.video-caption {
  padding: .75rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* ---------- About Page ---------- */
.about-stat { text-align: center; padding: 1rem; background: #f4f7fb; border-radius: 10px; }
.about-stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.about-stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.values-list { list-style: none; padding: 0; text-align: left; margin-top: .75rem; }
.values-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 0;
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.values-list li:last-child { border-bottom: 0; }

/* ---------- Team Cards ---------- */
.team-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.team-photo { margin-bottom: 1.25rem; }
.team-role { display: inline-block; color: var(--accent); font-size: .8rem; font-weight: 600; }
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .75rem;
  font-size: .83rem;
  font-weight: 600;
  color: #0a66c2;
  transition: opacity .2s;
}
.team-linkedin:hover { opacity: .75; color: #0a66c2; }
.vmv-card h4 { font-family: var(--font-head); font-size: 1.4rem; }

/* ---------- Timeline ---------- */
.timeline-dot { display: none; /* dot rendered by .timeline-item::before */ }
.timeline-content { padding-left: .5rem; }
.timeline-content h5 { font-size: 1rem; margin-bottom: .35rem; }
.timeline-tag {
  display: inline-block;
  background: rgba(13,110,253,.1);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-top: .5rem;
}

/* ---------- Current Projects (About) ---------- */
.current-project-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.current-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
  border-color: var(--accent);
}
.current-project-icon { font-size: 2rem; color: var(--accent); margin-bottom: 1rem; }

/* ---------- Blog Cards ---------- */
.blog-card-img { overflow: hidden; height: 220px; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; }
.blog-card-title { font-size: 1.05rem; font-weight: 600; margin: .5rem 0 .4rem; }
.blog-card-title a { color: #1e293b; transition: color .2s; }
.blog-card-title a:hover,
.blog-card:hover .blog-card-title a { color: var(--accent); }
.blog-card-excerpt { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
.blog-card-meta { font-size: .8rem; color: var(--text-muted); margin-top: .75rem; }
.blog-category {
  display: inline-block;
  background: rgba(13,110,253,.1);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 4px;
}
.blog-category:hover { background: var(--accent); color: #fff; }

/* ---------- Blog List (blog index) ---------- */
.blog-list-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .3s;
}
.blog-list-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.09); }
.blog-list-img-wrap { flex-shrink: 0; width: 220px; min-height: 160px; }
.blog-list-img-wrap img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.blog-list-body { padding: 1.5rem; flex: 1; }
.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  align-items: center;
  margin-bottom: .5rem;
}
.blog-list-title { font-size: 1.2rem; font-weight: 600; margin-bottom: .4rem; }
.blog-list-title a { color: #1e293b; transition: color .2s; }
.blog-list-title a:hover { color: var(--accent); }
.blog-list-excerpt { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }

/* ---------- Sidebar ---------- */
.sidebar-widget {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.widget-title {
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--accent);
}
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { border-bottom: 1px solid #e2e8f0; }
.category-list li:last-child { border-bottom: 0; }
.category-list li a {
  display: block;
  padding: .5rem 0;
  color: #475569;
  font-size: .9rem;
  transition: color .2s, padding-left .2s;
}
.category-list li a:hover,
.category-list li.active a { color: var(--accent); font-weight: 600; padding-left: .35rem; }
.sidebar-cta { background: var(--dark-bg); border-color: transparent; }
.sidebar-cta .widget-title { color: #fff; border-color: #60a5fa; }
.sidebar-cta p { color: rgba(255,255,255,.7); }

/* ---------- Blog Post Hero ---------- */
.post-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark-bg);
}
.post-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,15,40,.9) 0%, rgba(0,15,40,.35) 60%, transparent 100%);
  z-index: 1;
}
.post-hero-content { position: relative; z-index: 2; padding: 2.5rem 0; }
.post-title { font-size: clamp(1.6rem, 3.5vw, 2.5rem); color: #fff; margin-bottom: .5rem; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}

/* ---------- Post Tags & Share ---------- */
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; }
.tag-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: .8rem;
  font-weight: 500;
  padding: .25rem .65rem;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.tag-badge:hover { background: var(--accent); color: #fff; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  color: #fff;
  transition: transform .2s, opacity .2s;
}
.share-btn:hover { transform: scale(1.1); opacity: .9; color: #fff; }
.share-btn.twitter  { background: #000; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }

/* ---------- Comments ---------- */
.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.comment-item:last-child { border-bottom: 0; }
.comment-avatar { flex-shrink: 0; font-size: 2.5rem; color: var(--text-muted); line-height: 1; }
.comment-body  { flex: 1; }
.comment-author { font-weight: 600; color: #1e293b; }
.comment-text   { color: #475569; font-size: .93rem; line-height: 1.7; }
.comment-form-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1.5rem;
}
.related-thumb  { width: 70px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-title  { font-size: .9rem; font-weight: 600; color: #1e293b; transition: color .2s; display: block; line-height: 1.4; }
.related-title:hover { color: var(--accent); }

/* ---------- Career Page ---------- */
.page-hero-career { min-height: 38vh; }
.job-card-header { margin-bottom: 1rem; }
.job-type-badge {
  display: inline-block;
  background: rgba(13,110,253,.1);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 4px;
  margin-bottom: .6rem;
}
.job-title { font-size: 1.1rem; margin-bottom: .4rem; }
.job-meta  { font-size: .83rem; color: var(--text-muted); display: flex; flex-direction: column; gap: .2rem; }
.job-card-body   { flex: 1; margin-bottom: .5rem; }
.job-card-footer { margin-top: 1rem; }
.why-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: transform .3s, box-shadow .3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.why-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }

/* ---------- Job Detail & Apply Form ---------- */
.job-detail-section { margin-bottom: 1.5rem; }
.job-detail-section h4 { margin-bottom: .75rem; }
.job-desc-content { font-size: .95rem; line-height: 1.75; color: #475569; }
.apply-form-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
}
.apply-form-title { font-size: 1.3rem; margin-bottom: 1.5rem; }

/* ---------- Contact Info Cards ---------- */
.contact-info-cards { display: flex; flex-direction: column; gap: .75rem; }
.contact-info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(13,110,253,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}
.contact-info-label {
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
/* footer-social on light background (contact page) */
.section-padded .footer-social a {
  border-color: rgba(13,110,253,.25);
  color: var(--accent) !important;
}
.section-padded .footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}

/* ---------- CTA Box ---------- */
.cta-box      { max-width: 720px; margin: 0 auto; }
.cta-title    { font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; margin-bottom: .75rem; }
.cta-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.8); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-section { min-height: 70vh; }
  .topbar { display: none; }
}

@media (max-width: 767.98px) {
  .hero-section { min-height: 60vh; }
  .hero-title { font-size: 2rem; }
  .stat-number { font-size: 2.2rem; }
  .blog-list-img-wrap { width: 100%; height: 180px; min-height: 0; }
  .blog-list-card { flex-direction: column !important; }
  .approach-badge { display: none; }
  .post-hero { min-height: 40vh; align-items: flex-end; }
}

@media (max-width: 575.98px) {
  .back-to-top { right: 25px; bottom: 96px; }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .5rem;
  }
  .gallery-grid .gallery-item img { height: 130px; }
  .apply-form-card { padding: 1.25rem; }
  .comment-form-wrap { padding: 1.25rem; }
}
