/*
Theme Name: bDRIVE Custom Theme
Theme URI: https://bdrivetechnologies.com
Author: bDRIVE Technologies
Description: Custom lightweight, high-performance theme converted directly from single-file HTML.
Version: 1.0.0
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: #2d2d2d; padding-top: 70px; }

/* Navigation */
nav { position: fixed; top: 0; left: 0; right: 0; background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.3); z-index: 1000; }
nav .container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
nav .logo { color: white; font-size: 1.5em; font-weight: bold; text-decoration: none; }
nav ul { display: flex; list-style: none; align-items: center; gap: 25px; margin: 0; padding: 0; }
nav ul li a { color: white; text-decoration: none; font-weight: 500; transition: all 0.3s ease; padding: 5px 10px; border-radius: 5px; }
nav ul li a:hover { background: rgba(255,255,255,0.2); }
.nav-cta { background: #E6B800; color: white; text-decoration: none; font-weight: bold; padding: 10px 22px; border-radius: 50px; border: 2px solid white; transition: all 0.3s ease; box-shadow: 0 0 12px rgba(230, 184, 0, 0.5); }
.nav-cta:hover { background: #D4A500; box-shadow: 0 0 18px rgba(230, 184, 0, 0.7); }
.nav-link { color: white; text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 5px; transition: all 0.3s ease; }
.nav-link:hover { background: rgba(255,255,255,0.15); }
.mobile-menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5em; cursor: pointer; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: white; padding: 100px 20px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0px, transparent 1px, transparent 40px, rgba(255,255,255,0.1) 41px), repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0px, transparent 1px, transparent 40px, rgba(255,255,255,0.1) 41px); z-index: 0; }
.hero::after { content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%); z-index: 0; }
.hero > * { position: relative; z-index: 2; }
.hero h1 { font-size: 6em; margin-bottom: 20px; animation: fadeInDown 1s ease-out; color: #8b95a1; }
.hero p { font-size: 1.3em; margin-bottom: 30px; animation: fadeInUp 1s ease-out 0.2s both; color: #E6B800; }

/* Grid and Sections */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.services { padding: 100px 20px; background: #2d2d2d; }
.service-card { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: all 0.3s ease; position: relative; overflow: hidden; }
.service-card h3 { font-size: 1.8em; margin-bottom: 15px; color: #1e3c72; }
.service-card p { color: #666; line-height: 1.8; }
.services h2 { text-align: center; font-size: 2.2em; margin-bottom: 60px; color: #d3d3d3; text-shadow: 0 0 15px rgba(230, 184, 0, 0.8), 0 0 30px rgba(230, 184, 0, 0.5); }
.service-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-bottom: 40px; }
.service-grid .service-card { flex: 0 1 320px; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #1e3c72, #2a5298); transform: scaleX(0); transition: transform 0.3s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.service-icon { width: 80px; height: 80px; margin: 0 auto 20px; }
.service-icon svg { width: 100%; height: 100%; }

.industries { padding: 100px 20px; background: #3a3a3a; }
.industries-flex { display: flex; align-items: stretch; justify-content: center; gap: 40px; flex-wrap: nowrap; max-width: 1200px; margin: 0 auto; }
.industries-statement { flex: 1 1 0; min-width: 0; background: white; padding: 40px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: all 0.3s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.industries-statement::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #1e3c72, #2a5298); transform: scaleX(0); transition: transform 0.3s ease; }
.industries-statement:hover::before { transform: scaleX(1); }
.industries-statement:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.industries-statement h2 { font-size: 2em; margin-bottom: 20px; color: #1e3c72; text-align: left; }
.industries-statement p { color: #555; font-size: 1.1em; line-height: 1.7; }

.stats-bar { flex: 1 1 0; min-width: 0; margin-top: 0; padding: 30px; background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 25px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.stats-bar::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #E6B800, #FFD700); transform: scaleX(0); transition: transform 0.3s ease; }
.stats-bar:hover::before { transform: scaleX(1); }
.stats-bar:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.stat-item { text-align: center; color: white; }
.stat-number { font-size: 2em; font-weight: bold; display: block; margin-bottom: 5px; }
.stat-label { font-size: 1em; opacity: 0.9; }

.linecard { padding: 100px 20px; background: #2d2d2d; }
.linecard h2 { text-align: center; font-size: 2.2em; margin-bottom: 60px; color: #d3d3d3; text-shadow: 0 0 15px rgba(230, 184, 0, 0.8), 0 0 30px rgba(230, 184, 0, 0.5); }
.linecard-intro { text-align: center; font-size: 1.4em; color: #d3d3d3; margin-bottom: 50px; }
.pillar-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-bottom: 50px; }
.pillar-card { flex: 1 1 350px; max-width: 450px; background: white; padding: 45px 40px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: all 0.3s ease; text-align: center; position: relative; overflow: hidden; }
.pillar-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #1e3c72, #2a5298); transform: scaleX(0); transition: transform 0.3s ease; }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.pillar-card h3 { font-size: 1.6em; margin-bottom: 15px; color: #1e3c72; }
.pillar-card p { color: #666; line-height: 1.7; font-size: 1.05em; }
.linecard-cta { text-align: center; }
.linecard-cta p { color: #d3d3d3; font-size: 1.2em; margin-bottom: 25px; }
.scroll-arrow { display: inline-block; font-size: 4.5em; font-weight: bold; color: #E6B800; animation: bounceDown 1.8s infinite; -webkit-text-stroke: 0.5px white; text-shadow: -0.5px -0.5px 0 white, 0.5px -0.5px 0 white, -0.5px 0.5px 0 white, 0.5px 0.5px 0 white, 0 0 15px rgba(230, 184, 0, 0.8), 0 0 30px rgba(230, 184, 0, 0.5); }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

.contact-inline { margin-top: 60px; padding: 60px 40px; background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); border-radius: 15px; text-align: center; color: white; box-shadow: 0 0 25px rgba(230, 184, 0, 0.6), 0 0 50px rgba(230, 184, 0, 0.3); }
.contact-inline h2 { font-size: 2em; margin-bottom: 25px; text-shadow: none; }

.about { padding: 100px 20px; background: #3a3a3a; }
.about h2 { text-align: center; font-size: 2.2em; margin-bottom: 40px; color: #d3d3d3; text-shadow: 0 0 15px rgba(230, 184, 0, 0.8), 0 0 30px rgba(230, 184, 0, 0.5); }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { color: #ddd; font-size: 1.1em; line-height: 1.8; margin-bottom: 25px; }

footer { background: #1a1a2e; color: white; text-align: center; padding: 30px 20px; }

/* Dynamic WordPress Content Formatting for Posts & Blog Pages */
.bdrive-post-box {
  background: #2d2d2d;
  color: #d3d3d3;
  padding: 60px 20px;
  min-height: 70vh;
}
.bdrive-post-box .container {
  max-width: 900px;
}
.blog-post-item {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #4a4a4a;
}
.blog-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.back-to-blog {
  display: inline-block;
  color: #E6B800;
  text-decoration: none;
  font-size: 0.9em;
  margin-bottom: 20px;
}
.post-meta {
  color: #999;
  font-size: 0.85em;
  margin-bottom: 20px;
}
.blog-listing-title {
  color: #fff;
  margin-bottom: 30px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.blog-card {
  background: #3a3a3a;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-card-date {
  font-size: 11px;
  color: #999;
}
.blog-card-title {
  font-size: 16px;
  margin: 0;
}
.blog-card-title a {
  color: #fff;
  text-decoration: none;
}
.blog-card-title a:hover {
  color: #E6B800;
}
.blog-card-excerpt {
  font-size: 13px;
  color: #bfbfbf;
  line-height: 1.6;
}
.blog-card-readmore {
  margin-top: 4px;
  color: #1e1e1e !important;
  background: #E6B800;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  align-self: flex-start;
}
.blog-pagination {
  margin-top: 40px;
  text-align: center;
}
.blog-pagination a, .blog-pagination span {
  display: inline-block;
  color: #E6B800;
  padding: 8px 14px;
  margin: 0 4px;
  text-decoration: none;
  border: 1px solid #4a4a4a;
  border-radius: 6px;
}
.blog-pagination .current {
  background: #E6B800;
  color: #1e1e1e;
  border-color: #E6B800;
}

/* Blog post overlay */
[hidden] { display: none !important; }
.blog-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.blog-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.blog-overlay-panel {
  position: relative;
  background: #2d2d2d;
  max-width: 800px;
  width: 100%;
  border-radius: 15px;
  padding: 50px 40px 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.blog-overlay-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.blog-overlay-close:hover {
  background: #E6B800;
  color: #1e1e1e;
}
.blog-modal-date {
  color: #999;
  font-size: 0.85em;
  margin-bottom: 15px;
}
body.blog-overlay-open {
  overflow: hidden;
}
@media (max-width: 768px) {
  .blog-overlay { padding: 0; }
  .blog-overlay-panel { max-width: 100%; min-height: 100%; border-radius: 0; padding: 60px 20px 30px; }
}
.bdrive-post-box h1, .bdrive-post-box h2, .bdrive-post-box h3, .bdrive-post-box h4, .bdrive-post-box h5, .bdrive-post-box h6 {
  color: #ffffff;
  margin-bottom: 20px;
  margin-top: 30px;
}
.bdrive-post-box ul, .bdrive-post-box ol {
  margin: 0 0 20px 25px;
  line-height: 1.8;
}
.bdrive-post-box li {
  margin-bottom: 8px;
}
.bdrive-post-box blockquote {
  border-left: 4px solid #E6B800;
  margin: 25px 0;
  padding: 10px 25px;
  font-style: italic;
  color: #bfbfbf;
  background: rgba(255,255,255,0.03);
}
.bdrive-post-box hr {
  border: none;
  border-top: 1px solid #4a4a4a;
  margin: 35px 0;
}
.bdrive-post-box .wp-block-button__link,
.bdrive-post-box .wp-element-button {
  display: inline-block;
  background: #E6B800;
  color: #1e1e1e !important;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 600;
}
.bdrive-post-box .wp-element-caption,
.bdrive-post-box figcaption {
  color: #999 !important;
  font-size: 0.85em;
  text-align: center;
  margin-top: 8px;
}
.bdrive-post-box a {
  color: #E6B800;
}
.bdrive-post-box p {
  margin-bottom: 20px;
  line-height: 1.8;
}
.bdrive-post-box img,
.bdrive-post-box iframe,
.bdrive-post-box video,
.bdrive-post-box embed {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}
.bdrive-post-box table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}
.bdrive-post-box pre,
.bdrive-post-box code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.bdrive-post-box .wp-caption,
.bdrive-post-box figure {
  max-width: 100% !important;
}

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  nav ul { display: none; position: absolute; top: 60px; left: 0; right: 0; background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); flex-direction: column; align-items: stretch; gap: 0; padding: 20px; }
  nav ul.active { display: flex; }
  nav ul li a { display: block; padding: 15px; }
  nav ul li { list-style: none; }
  .mobile-menu-toggle { display: block; }

  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 2.5em; }
  .hero p { font-size: 1.1em; }

  .services, .industries, .linecard, .about { padding: 60px 20px; }
  .services h2, .linecard h2, .about h2 { font-size: 1.7em; margin-bottom: 35px; }

  .service-card, .pillar-card, .industries-statement { padding: 25px 20px; }
  .pillar-card { flex-basis: 100%; }

  .industries-flex { flex-direction: column; }
  .industries-statement, .stats-bar { flex: 1 1 auto; width: 100%; }
  .industries-statement h2 { text-align: center; font-size: 1.6em; }
  .stats-bar { padding: 25px 20px; }
  .stat-number { font-size: 1.6em; }

  .contact-inline { padding: 40px 25px; margin-top: 35px; }
  .contact-inline h2 { font-size: 1.6em; }

  .bdrive-post-box { padding: 30px 15px; }
  .bdrive-post-box .container { padding: 25px; }
  .blog-grid { grid-template-columns: 1fr; }
}