/*
Theme Name: Stratovox Blog
Theme URI: https://stratovox.com
Description: Custom WordPress theme matching Stratovox brand design
Version: 1.0.0
Author: Stratovox
Text Domain: stratovox
*/

/* ===================================
   CSS Variables
   =================================== */
:root {
  --stratovox-teal: #00B9C1;
  --stratovox-green: #BFD800;
  --stratovox-dark: #2c3e50;
  --gradient-stratovox: linear-gradient(to right, #00B9C1 0%, #BFD800 100%);
}

/* ===================================
   Base
   =================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; }

body {
  font-family: 'Raleway', sans-serif;
  color: #4c5462;
  background: #fff;
  margin: 0;
  padding: 0;
}

a { color: var(--stratovox-teal); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--stratovox-green); }
img { max-width: 100%; height: auto; }

/* ===================================
   Layout
   =================================== */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* ===================================
   Navbar — matches stratovox.com exactly
   =================================== */
.navbar.fixed-top {
  background: var(--gradient-stratovox) !important;
  box-shadow: 0 0 20px -10px rgba(0, 0, 0, 0.8);
  z-index: 1030 !important;
}

.navbar { padding: 20px 0 !important; }

.brand-link {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .navbar .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.nav-logo {
  max-width: 200px !important;
  height: auto !important;
  display: block !important;
}

@media (min-width: 768px) and (max-width: 991px) {
  .nav-logo { max-width: 160px !important; }
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.6) !important;
  padding: 4px 8px !important;
  font-size: 1rem !important;
  margin-right: 15px !important;
}

@media (max-width: 767px) {
  .navbar-toggler { display: flex !important; }
}

.navbar-nav { padding: 0 !important; list-style: none !important; }

.navbar-nav > li {
  display: inline-block !important;
  list-style: none !important;
  position: relative;
}

.navbar-nav > li > a,
.navbar-nav > li > .dropdown-toggle-link {
  font-size: 14px !important;
  padding: 10px 15px !important;
  color: #fff !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  font-weight: 600 !important;
  font-family: 'Raleway', sans-serif !important;
  transition: color 0.3s ease !important;
  white-space: nowrap !important;
  cursor: pointer;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > .dropdown-toggle-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

@media (min-width: 768px) and (max-width: 991px) {
  .navbar-nav > li > a,
  .navbar-nav > li > .dropdown-toggle-link {
    font-size: 13px !important;
    padding: 10px 8px !important;
  }
}

/* ===================================
   Dropdown — white background like original
   =================================== */
.wp-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff !important;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  list-style: none;
  padding: 10px 0 20px;
  margin: 0;
}

.wp-dropdown li { padding: 0 10px; }

.has-dropdown.open .wp-dropdown { display: block; }

.dropdown-item-link {
  font-size: 14px !important;
  padding: 10px 20px !important;
  color: #2b323f !important;
  font-weight: 600 !important;
  white-space: nowrap;
  display: block !important;
  background: transparent !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.dropdown-item-link:hover {
  color: var(--stratovox-teal) !important;
  background: transparent !important;
}

@media (max-width: 767px) {
  .navbar-nav { width: 100% !important; }
  .navbar-nav > li { display: block !important; width: 100%; text-align: center; }

  .navbar-nav > li > a,
  .navbar-nav > li > .dropdown-toggle-link {
    padding: 12px 20px !important;
    justify-content: center !important;
  }

  .wp-dropdown {
    position: static;
    box-shadow: none;
    padding: 5px 0;
    width: 100%;
  }

  .dropdown-item-link {
    text-align: center !important;
    padding: 10px 30px !important;
  }
}

/* ===================================
   Language selector (disabled)
   =================================== */
.navbar-left-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.language-selector-wrapper {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.language-btn-disabled {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  padding: 6px 12px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  opacity: 0.5;
  cursor: not-allowed;
}

.lang-arrow { font-size: 11px; font-weight: bold; }

@media (min-width: 768px) and (max-width: 991px) {
  .language-btn-disabled { padding: 6px 3px; font-size: 12px; }
}

@media (max-width: 767px) {
  .language-selector-wrapper { margin-left: 10px; }
}

/* ===================================
   Blog Hero Banner
   =================================== */
.blog-hero {
  background: var(--stratovox-dark);
  padding: 140px 0 80px;
  text-align: center;
  color: #fff;
}

.blog-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.blog-hero p { font-size: 18px; opacity: 0.85; margin: 0; }

@media (max-width: 767px) {
  .blog-hero { padding: 100px 0 50px; }
}

/* ===================================
   Posts Grid
   =================================== */
.posts-section { padding: 60px 0; background: #f8f9fa; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

@media (max-width: 991px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .posts-grid { grid-template-columns: 1fr; } }

/* ===================================
   Post Card
   =================================== */
.post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 185, 193, 0.2);
}

.post-card-thumbnail { width: 100%; height: 200px; object-fit: cover; }

.post-card-thumbnail-placeholder {
  width: 100%;
  height: 200px;
  background: var(--gradient-stratovox);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-thumbnail-placeholder svg { width: 48px; height: 48px; fill: rgba(255,255,255,0.6); }

.post-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--stratovox-teal);
  margin-bottom: 10px;
}

.post-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--stratovox-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--stratovox-teal); }

.post-card-excerpt {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.post-card-meta {
  font-size: 12px;
  color: #adb5bd;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.post-card-link {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gradient-stratovox);
  color: #fff !important;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.3s ease;
  align-self: flex-start;
}

.post-card-link:hover { opacity: 0.85; color: #fff !important; }

/* ===================================
   Single Post
   =================================== */
.single-post-section { padding: 110px 0 60px !important; }

.single-post-inner { max-width: 820px; margin: 0 auto; }

.single-post-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--stratovox-teal);
  margin-bottom: 12px;
}

.single-post-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--stratovox-dark);
  line-height: 1.3;
  margin-bottom: 15px;
}

.single-post-meta {
  font-size: 13px;
  color: #adb5bd;
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 30px;
}

.single-post-featured-image { width: 100%; border-radius: 8px; margin-bottom: 35px; }

.single-post-content { font-size: 16px; line-height: 1.8; color: #4c5462; }
.single-post-content h2, .single-post-content h3, .single-post-content h4 {
  color: var(--stratovox-dark); margin-top: 35px; margin-bottom: 15px; font-weight: 700;
}
.single-post-content p { margin-bottom: 20px; }
.single-post-content ul, .single-post-content ol { padding-left: 25px; margin-bottom: 20px; }
.single-post-content li { margin-bottom: 8px; }
.single-post-content blockquote {
  border-left: 4px solid var(--stratovox-teal);
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 0 6px 6px 0;
  margin: 25px 0;
  font-style: italic;
  color: #6c757d;
}
.single-post-content img { max-width: 100%; border-radius: 6px; margin: 20px 0; }
.single-post-content a { color: var(--stratovox-teal); text-decoration: underline; }

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-stratovox);
  color: #fff !important;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 40px;
  transition: opacity 0.3s ease;
}

.back-to-blog:hover { opacity: 0.85; color: #fff !important; }

/* ===================================
   Sidebar
   =================================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 991px) { .blog-layout { grid-template-columns: 1fr; } }

.sidebar-widget {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.sidebar-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--stratovox-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--stratovox-teal);
}

.sidebar-widget ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.sidebar-widget ul li { padding: 8px 0 !important; border-bottom: 1px solid #f0f0f0 !important; font-size: 14px !important; }
.sidebar-widget ul li:last-child { border-bottom: none !important; }
.sidebar-widget ul li a { color: #4c5462 !important; font-weight: 500 !important; }
.sidebar-widget ul li a:hover { color: var(--stratovox-teal) !important; }

/* ===================================
   Pagination
   =================================== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination-wrapper a,
.pagination-wrapper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #e9ecef;
  color: #4c5462;
  transition: all 0.3s ease;
}

.pagination-wrapper a:hover,
.pagination-wrapper span.current {
  background: var(--gradient-stratovox);
  border-color: transparent;
  color: #fff !important;
}

/* ===================================
   No Posts
   =================================== */
.no-posts { text-align: center; padding: 60px 20px; color: #6c757d; }
.no-posts h2 { color: var(--stratovox-dark); }

/* ===================================
   Footer — matches stratovox.com
   =================================== */
#footer-area {
  background: #2b323f !important;
  padding: 30px 0 !important;
  min-height: auto !important;
  color: #fff;
}

.social {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 45px 0 25px 0;
  gap: 5px;
}

.social li a {
  background: #fff;
  border: 0 none;
  border-radius: 100px;
  color: #70798f !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  height: 35px;
  width: 35px;
  position: relative;
  transition: all 0.3s ease;
  z-index: 1;
}

.social li a svg {
  position: relative;
  z-index: 1;
  fill: #70798f;
}

.social li a:hover svg { fill: #fff; }

.social li a::after {
  background: var(--gradient-stratovox);
  border-radius: 100px;
  content: "";
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: all 0.3s ease;
  width: 100%;
  z-index: -1;
}

.social li a:hover::after { opacity: 1; }
.social li a:hover { color: #fff; }

.footer-links { text-align: center; margin-bottom: 12px; }
.footer-links a { color: #fff; font-size: 13px; margin: 0 8px; text-decoration: underline; }
.footer-links a:hover { color: var(--stratovox-green); }
.footer-links span { color: #fff; font-size: 13px; margin: 0 3px; }

.copyright { text-align: center; font-size: 14px; }
.copyright p { margin: 0; color: #fff; }
