/*
Theme Name: E3 Displays
Theme URI: https://e3displays.com
Author: E3-Display
Author URI: https://e3displays.com
Description: Custom WordPress theme for E3 Displays
Version: 1.0.0
Text Domain: e3displays
*/

  :root {
      --red:        #ee2b24;
      --red-dark:   #c41e18;
      --dark:       #0a0a0a;
      --dark-2:     #111111;
      --dark-3:     #181818;
      --dark-card:  #141414;
      --border:     rgba(255,255,255,0.07);
      --text-muted: rgba(255,255,255,0.50);
      --text-body:  rgba(255,255,255,0.82);
      --white:      #ffffff;
      --font-head:  'Outfit', sans-serif;
      --font-body:  'DM Sans', sans-serif;
    }

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
  transition: color .2s;
}

.breadcrumb-item a:hover {
  color: var(--red);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, .25);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, .5);
}

/* â”€â”€â”€ Search & Filter Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.filter-bar {
  background: var(--dark-3);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 68px;
  z-index: 900;
}

.search-wrap {
  position: relative;
}

.search-wrap .fa-magnifying-glass {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.search-wrap input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  font-family: var(--font-body);
  width: 100%;
  transition: border-color .2s, background .2s;
}

.search-wrap input::placeholder {
  color: var(--text-muted);
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.07);
}

.filter-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* â”€â”€â”€ Main Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.blog-main {
  padding: 60px 0 80px;
}

/* â”€â”€â”€ Featured Post â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.featured-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: border-color .3s, transform .3s;
  margin-bottom: 36px;
}

.featured-card:hover {
  border-color: rgba(238, 43, 36, 0.35);
  transform: translateY(-3px);
}

.featured-card:hover .featured-img img {
  transform: scale(1.04);
}

.featured-img {
  overflow: hidden;
  min-height: 380px;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.featured-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(238, 43, 36, 0.12);
  border: 1px solid rgba(238, 43, 36, 0.22);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .7px;
  text-transform: uppercase;
  margin-bottom: 18px;
  width: fit-content;
}

.featured-body h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.featured-body h2 a:hover {
  color: var(--red);
}

.featured-body .excerpt {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.75;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-meta .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.post-meta .meta-info {
  font-size: 13px;
}

.post-meta .meta-info .author-name {
  color: #fff;
  font-weight: 600;
  display: block;
}

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

.meta-sep {
  color: var(--border);
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  transition: gap .2s;
  margin-top: 20px;
  width: fit-content;
}

.read-more-link:hover {
  gap: 12px;
  color: var(--red-dark);
}

/* â”€â”€â”€ Blog Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.post-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.post-card:hover {
  border-color: rgba(238, 43, 36, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.post-card:hover .card-img img {
  transform: scale(1.06);
}

.card-img {
  overflow: hidden;
  height: 210px;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 9px;
}

.card-body-inner {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body-inner h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -.2px;
}

.card-body-inner h3 a {
  transition: color .2s;
}

.card-body-inner h3 a:hover {
  color: var(--red);
}

.card-body-inner p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

.card-footer-meta .read-time {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* â”€â”€â”€ Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidebar-widget {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-cats li {
  list-style: none;
  border-bottom: 1px solid var(--border);
}

.sidebar-cats li:last-child {
  border-bottom: none;
}

.sidebar-cats li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  transition: color .2s;
}

.sidebar-cats li a:hover {
  color: var(--red);
}

.sidebar-cats li a .cat-count {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 12px;
}

.popular-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.popular-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-post img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.popular-post .pp-info h6 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}

.popular-post .pp-info h6 a:hover {
  color: var(--red);
}

.popular-post .pp-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  transition: all .2s;
}

.tag-cloud a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.newsletter-form input[type="email"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  width: 100%;
  margin-bottom: 10px;
  transition: border-color .2s;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--red);
}

.btn-red {
  background: var(--red);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  width: 100%;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.newsletter-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* â”€â”€â”€ Pagination â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pagination-wrap {
  margin-top: 48px;
}

.pagination .page-link {
  background: var(--dark-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 14px;
  padding: 10px 16px;
  transition: all .2s;
}

.pagination .page-link:hover {
  background: rgba(238, 43, 36, 0.12);
  border-color: rgba(238, 43, 36, 0.3);
  color: var(--red);
}

.pagination .page-item.active .page-link {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  opacity: .35;
}

/* â”€â”€â”€ CTA Banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cta-banner {
  background: linear-gradient(135deg, #1a0a0a 0%, #0d0d0d 50%, #0a0505 100%);
  border: 1px solid rgba(238, 43, 36, 0.18);
  border-radius: 16px;
  padding: 52px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(238, 43, 36, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -.8px;
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  transition: background .2s, transform .15s, box-shadow .2s;
  border: none;
}

.btn-cta-main:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(238, 43, 36, 0.35);
  color: #fff;
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  transition: all .2s;
}

.btn-cta-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}


/* --- Survey Popup Styles --- */
.survey-popup-trigger {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #111;
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.survey-popup-trigger:hover {
    background: #cc2027;
}
.survey-popup-trigger i {
    font-size: 24px;
}
.survey-popup-trigger.hidden {
    right: -60px;
    opacity: 0;
    pointer-events: none;
}
.survey-popup-container {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}
.survey-popup-container.open {
    right: 0;
}
.survey-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.survey-popup-header {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}
.survey-red-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 6px;
    background: #e31837; /* E3 Display red */
}
.survey-popup-close {
    background: #111;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
    margin-top: 10px;
    margin-right: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}
.survey-popup-close:hover {
    background: #e31837;
}
.survey-popup-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}
/* Contact Form 7 specific styles for the popup */
.survey-popup-body .wpcf7 {
    color: #333;
}
.survey-popup-body .wpcf7 h3,
.survey-popup-body .wpcf7 h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}
.survey-popup-body .wpcf7-form-control.wpcf7-submit {
    width: 100%;
    background: #333;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
}
.survey-popup-body .wpcf7-form-control.wpcf7-submit:hover {
    background: #e31837;
}
/* Trustpilot logo area placeholders if they exist in the form */
.survey-popup-body .trust-logos {
    text-align: center;
    margin-top: 30px;
}
.survey-popup-body .trust-logos img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}
@media (max-width: 480px) {
    .survey-popup-container {
        width: 100%;
        right: -100%;
    }
}



.career-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.career-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.career-modal-content {
    background: var(--bg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.career-modal-overlay.open .career-modal-content {
    transform: translateY(0);
}
.career-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    background: var(--card-bg);
}
.career-modal-close {
    background: #111;
    color: #fff;
    border: none;
    width: 36px; height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.3s;
}
.career-modal-close:hover {
    background: #e31837;
}
.career-modal-body {
    padding: 40px;
    overflow-y: auto;
}