﻿  /* Newsletter Banner */
  .newsletter-banner {
    background: linear-gradient(135deg, #1a1f2c 0%, #2a3040 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    color: #fff;
  }
  .newsletter-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(199, 141, 75, 0.15), transparent 40%);
    pointer-events: none;
  }
  .newsletter-banner h3 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  .newsletter-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
  }
  .newsletter-banner .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50px 0 0 50px;
    padding-left: 1.5rem;
  }
  .newsletter-banner .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
  .newsletter-banner .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
  }
  .newsletter-banner .btn-primary {
    border-radius: 0 50px 50px 0;
    background: #c78d4b;
    border-color: #c78d4b;
    padding-left: 2rem;
    padding-right: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .newsletter-banner .btn-primary:hover {
    background: #d49a5b;
    border-color: #d49a5b;
  }
  .newsletter-banner-icon {
    font-size: 3rem;
    color: #c78d4b;
    margin-bottom: 1.5rem;
    display: inline-block;
  }

  @media (max-width: 768px) {
    .newsletter-banner {
      padding: 40px 20px;
      text-align: center;
    }
    .newsletter-banner h3 {
      font-size: 1.5rem;
    }
    .newsletter-banner p {
      font-size: 1rem;
      margin-bottom: 1.5rem;
    }
    .newsletter-banner .input-group {
      flex-direction: column;
      gap: 15px;
    }
    .newsletter-banner .form-control {
      border-radius: 50px !important;
      width: 100%;
      text-align: center;
      padding: 12px 20px;
    }
    .newsletter-banner .btn-primary {
      border-radius: 50px !important;
      width: 100%;
      padding: 12px 20px;
    }
  }

  /* Admin Sidebar Tweaks */
  .fl-main-wrapper {
      position: relative;
      z-index: 0;
  }
  
  :root {
    --section-bg: #f2f4f7;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(26, 31, 44, 0.08);
    --bg-deep: #ffffff;
    --bg-accent-1: rgba(209, 234, 255, 0.9);
    --bg-accent-2: rgba(255, 221, 236, 0.85);
    --bg-accent-3: rgba(223, 238, 255, 0.75);
    --primary-color: #6b8bd6;
    --pink-color: #f2a3c0;
    --black-color: #1a1f2c;
  }
  
  .section-block {
    padding: 80px 0;
  }
  
  body {
    background: radial-gradient(circle at 15% 10%, var(--bg-accent-1), transparent 55%),
      radial-gradient(circle at 85% 20%, var(--bg-accent-2), transparent 55%),
      radial-gradient(circle at 40% 85%, var(--bg-accent-3), transparent 60%),
      var(--bg-deep);
    color: #1a1f2c;
  }
  
  .text-color {
    color: #384152;
  }
  
  .fl-all-heading h2,
  .highlight-card h4,
  .hero-3d-text {
    color: #1a1f2c;
    text-shadow: none;
  }
  
  .fl-header-section .row {
    align-items: center;
  }
  .fl-menu-main {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .fl-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
  }
  .fl-menu > li {
    display: flex;
    align-items: center;
  }
  .fl-menu > li > a.as-CommonClass-navbar {
    padding: 10px 18px;
    font-size: 14px;
  }
  .fl-menu > li.menu-icon > a.as-CommonClass-navbar {
    padding: 6px 10px;
  }
  .fl-menu > li.menu-icon {
    margin: 0 2px;
  }
  .fl-menu > li.menu-cta .fl-portfolio_btn {
    padding: 9px 18px;
    font-size: 14px;
  }
  @media (min-width: 992px) {
    .fl-logo img {
      max-height: 58px;
    }
    .fl-header-section .col-lg-4 {
      display: flex;
      align-items: center;
    }
    .fl-header-section .col-lg-8 {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
    .fl-menu-main {
      width: 100%;
    }
    .fl-menu {
      justify-content: center;
    }
    .fl-menu .menu-icons-start {
      margin-left: auto;
    }
    .fl-menu .menu-cta,
    .fl-menu .menu-account {
      margin-left: auto;
    }
    .fl-menu .menu-cta + .menu-cta {
      margin-left: 8px;
    }
    .fl-menu > li:last-child {
      margin-right: 0;
    }
  }
  @media (max-width: 991.98px) {
    .fl-menu-main {
      display: block;
    }
  }
  
  .highlight-card,
  .service-card,
  .calculator-card,
  .calculator-summary,
  .calculator-hero-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(26, 31, 44, 0.08);
    box-shadow: 0 10px 24px rgba(26, 31, 44, 0.08);
  }
  
  .highlight-card {
    padding: 26px 24px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 210px;
  }
  
  .highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a1f2c;
    background: linear-gradient(135deg, rgba(107, 139, 214, 0.25), rgba(242, 163, 192, 0.25));
    border: 1px solid rgba(26, 31, 44, 0.08);
  }
  
  .highlight-card h4 {
    font-size: 20px;
    margin-bottom: 4px;
  }
  
  .highlight-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
  }
  
  .fl-highlights-wrapper .row {
    row-gap: 22px;
  }
  
  /* Hero video placeholder */
  .hero-video-section .fl-all-heading {
    margin-bottom: 16px;
  }
  
  .hero-video-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(26, 31, 44, 0.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 36px rgba(26, 31, 44, 0.12);
  }
  
  .hero-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(107, 139, 214, 0.18), rgba(242, 163, 192, 0.18));
    border: 1px dashed rgba(26, 31, 44, 0.18);
    color: #4b5563;
    font-weight: 600;
    text-align: center;
    padding: 20px;
  }
  
  .hero-video {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
  }
  
  .hero-video-logo {
    min-height: 240px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(26, 31, 44, 0.08);
  }
  
  .hero-video-logo img {
    max-width: 240px;
    width: 60%;
    height: auto;
    filter: drop-shadow(0 12px 20px rgba(26, 31, 44, 0.18));
  }
  
  /* Portfolio gallery videos */
  .fl_project_gallery .grid_img video.portfolio-video {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
  }
  
  .fl_project_gallery .grid_img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
  }
  
  .portfolio-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.02);
  }
  
  .portfolio-watermark img {
    width: 55%;
    max-width: 220px;
    opacity: 0.18;
    filter: drop-shadow(0 10px 18px rgba(26, 31, 44, 0.2));
  }
  
  .portfolio-video-thumb {
    position: relative;
    cursor: pointer;
  }
  
  .portfolio-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(199, 141, 75, 0.92);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 10px 18px rgba(199, 141, 75, 0.35);
  }
  
  .portfolio-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    overflow-y: auto;
  }
  
  .dash-top .nav-link {
    background: #fff;
    border: 1px solid rgba(26, 31, 44, 0.08);
    color: #1a1f2c;
    border-radius: 10px;
    padding: 8px 14px;
    margin-left: 6px;
    margin-right: 6px;
  }
  .dash-top .nav-link.active {
    background: linear-gradient(135deg, rgba(107,139,214,0.9), rgba(242,163,192,0.9));
    border-color: rgba(26,31,44,0.08);
    color: #fff;
    box-shadow: 0 8px 16px rgba(26,31,44,0.12);
  }
  @media (max-width: 768px) {
    .dash-top {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }
    .dash-top .nav-link {
      margin: 0;
      text-align: center;
      padding: 10px 12px;
    }
  }
  
  .portfolio-modal.open {
    display: block;
  }
  
  .portfolio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 22, 0.65);
    backdrop-filter: blur(4px);
  }
  
  .portfolio-modal-content {
    position: relative;
    max-width: 960px;
    width: 92%;
    margin: 6vh auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    z-index: 1;
    box-shadow: 0 18px 40px rgba(26, 31, 44, 0.28);
  }
  
  .portfolio-modal-logo {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 6px 8px;
    border: 1px solid rgba(26, 31, 44, 0.08);
  }
  
  .portfolio-modal-logo img {
    height: 36px;
    width: auto;
    display: block;
  }
  
  .portfolio-modal-body img,
  .portfolio-modal-body video {
    width: auto;
    max-width: 100%;
    max-height: 85vh;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }
  
  .portfolio-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #1a1f2c;
    cursor: pointer;
  }
  
  .fl_project_gallery .grid-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  /* Blog card spacing */
  #blog .row {
    row-gap: 24px;
  }
  
  #blog .fl-specialized-box {
    margin-bottom: 0;
  }
  
  .portfolio-caption {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(26, 31, 44, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
  }
  
  .portfolio-caption h5 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #1a1f2c;
  }
  
  .portfolio-caption p {
    margin: 0;
    font-size: 13px;
    color: #5a667a;
  }
  
  /* Portfolio filter visibility */
  .fl_gallery_nav ul li a {
    background: #dde3f2;
    border: 2px solid rgba(26, 31, 44, 0.22);
    color: #0f172a;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 18px rgba(26, 31, 44, 0.12);
  }
  
  .fl_gallery_nav ul li a.gallery_active,
  .fl_gallery_nav ul li a:hover {
    background: #c78d4b;
    border-color: #8e5d2a;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(199, 141, 75, 0.35);
  }
  
  .fl-main-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .fl-copywrite-wrapper {
    margin-top: auto;
  }
  
  /* Compact Menu & Mobile Fixes */
  /* Desktop Menu Centering */
  @media (min-width: 1201px) {
    .fl-menu-main {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      height: 100%;
    }
    .fl-menu {
      display: flex;
      align-items: center;
      margin: 0;
    }
  }

  .fl-header-section.pp-header-wrapper {
    background: rgba(242, 244, 247, 0.9);
    border-radius: 14px;
    padding: 5px 10px;
    margin: 5px;
    box-shadow: 0 12px 24px rgba(26, 31, 44, 0.08);
    backdrop-filter: blur(8px);
  }
  
  .fl-menu li a {
    color: #1a1f2c;
    font-weight: 600;
    margin: 0 6px;
    font-size: 14px;
  }
  
  .fl-menu li.menu-cta {
    margin-left: 6px;
  }
  
  .fl-menu li.menu-cta .fl-portfolio_btn {
    padding: 6px 14px;
    min-width: auto;
    font-size: 12px;
  }
  
  .fl-menu li a:hover {
    color: #3b6dd6;
  }
  
  .fl-menu-box {
    background-color: #e7ebf2;
  }
  
  .fl-menu-box a span {
    background: #1a1f2c;
  }
  
  /* Hero badge refinement */
  .fl-btn-1.fl-common-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6b8bd6, #f2a3c0);
    border: 0;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: normal;
    text-align: left;
    max-width: 320px;
    box-shadow: 0 12px 26px rgba(107, 139, 214, 0.25);
  }
  
  .fl-btn-1.fl-common-btn:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: inline-block;
  }
  
  .fl-banner-right .fl-btn-1,
  .about-hero .fl-btn-1 {
    margin-bottom: 12px;
    z-index: 2;
    position: relative;
  }
  
  /* Light theme overrides for remaining dark sections */
  .fl-banner-wrapper,
  .fl-client-wrapper,
  .fl-contact-wrapper,
  .fl-resume-wrapper,
  .fl-specialized-wrapper,
  .fl-portfolio-wrapper,
  .fl-pricing-wrapper,
  .fl-about-wrapper {
    background: transparent;
  }
  
  .fl-banner-right h2,
  .fl-banner-right h3,
  .fl-all-heading h2,
  .fl-all-heading p,
  .fl-client-wrapper h2,
  .fl-client-wrapper p,
  .fl-contact-wrapper h2,
  .fl-contact-wrapper p,
  .fl-resume-wrapper h2,
  .fl-resume-wrapper h3,
  .fl-specialized-wrapper h2,
  .fl-specialized-wrapper h5,
  .fl-portfolio-wrapper h2,
  .fl-portfolio-wrapper h5,
  .fl-pricing-wrapper h2,
  .fl-pricing-wrapper h3,
  .fl-pricing-wrapper p {
    color: #1a1f2c;
  }
  
  .hero-main-title {
    margin: 0;
    font-size: 13px;
    color: #1a1f2c;
  }
  
  .fl-box-start h2 {
    justify-content: flex-start !important;
    gap: 8px;
  }
  
  .hero-main-rating {
    font-size: 14px;
    color: #c78d4b;
    letter-spacing: 2px;
    margin-top: 4px;
  }
  
  .hero-rating-stars {
    font-size: 26px;
    color: #f0c14b;
    letter-spacing: 4px;
    display: inline-block;
    margin-right: 6px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }
  
  .hero-rating-text {
    font-size: 14px;
    color: #f0c14b;
    margin-left: 4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }
  
  /* Promotions */
  .promo-section .fl-all-heading {
    margin-bottom: 20px;
  }
  .promo-center {
    display: flex;
    justify-content: center;
  }
  .promo-center .promo-card {
    max-width: 760px;
    width: 100%;
  }
  .promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
  }
  .promo-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(26, 31, 44, 0.08);
    position: relative;
    display: grid;
    gap: 12px;
    background-size: cover;
    background-position: center;
  }
  .promo-floating {
    animation: promoFloat 6s ease-in-out infinite;
  }
  @keyframes promoFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
  }
  .promo-card h3 {
    font-size: 18px;
    margin: 0 0 6px;
    color: #1a1f2c;
  }
  .promo-subtitle {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 14px;
  }
  .promo-desc {
    margin: 0 0 12px;
    color: #384152;
    font-size: 14px;
  }
  .promo-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f5e3c4;
    color: #6b4a1b;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
  }
  .promo-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
  }
  .promo-media video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
  }
  .promo-countdown {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #fff3d6;
    color: #7a4e10;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
  }
  .promo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 13px;
  }
  .promo-modal .modal-content {
    border-radius: 18px;
    border: 0;
    overflow: hidden;
  }
  .promo-modal .modal-body {
    padding: 20px;
  }
  .promo-modal .promo-card {
    box-shadow: none;
  }
  .promo-modal {
    z-index: 1060;
    pointer-events: none;
  }
  .promo-modal .modal-dialog,
  .promo-modal .modal-content {
    pointer-events: auto;
  }
  body.modal-open {
    overflow: auto;
    padding-right: 0;
  }
  .promo-model-banner {
    grid-column: span 2;
    min-height: 220px;
    color: #1a1f2c;
  }
  .promo-model-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .promo-model-banner .promo-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 8px 20px rgba(26, 31, 44, 0.12);
  }
  .promo-model-banner .promo-badge {
    z-index: 3;
  }
  .promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2));
    border-radius: 16px;
    z-index: 1;
  }
  @media (max-width: 768px) {
    .promo-model-banner {
      grid-column: span 1;
    }
    .promo-model-split {
      grid-template-columns: 1fr;
    }
  }
  
  /* Ensure rating visible in hero box */
  .fl-box-start h2,
  .fl-box-start h2 span {
    color: #f0c14b !important;
    display: inline-block !important;
    opacity: 1 !important;
  }
  
  .fl-client-paragraph p,
  .fl-contact-info-box p,
  .fl-contact-info-box a,
  .fl-contact-heading h2,
  .fl-contact-heading p {
    color: #384152;
  }
  
  .fl-copywrite-wrapper {
    background: #f2f4f7;
    color: #6b7280;
  }
  
  .fl-copywrite-wrapper p {
    color: inherit;
  }
  
  .fl-portfolio_btn {
  background: #c78d4b;
  border-color: #c78d4b;
  color: #ffffff;
}

/* Force bronze-gold for yellow CTA buttons */
.fl-portfolio_btn.fl_yellow-color {
  background: #c78d4b !important;
  border-color: #c78d4b !important;
  color: #ffffff !important;
}

/* Make bronze-gold buttons smaller */
.fl-portfolio_btn.fl_yellow-color {
  padding: 5px 12px !important;
  min-width: 110px !important;
  font-size: 12px !important;
}

/* Extra compact bronze buttons */
.fl-portfolio_btn.fl_yellow-color {
  padding: 5px 12px !important;
  min-width: 100px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  height: auto !important;
}
  
  .fl-portfolio_btn {
    padding: 6px 14px;
    min-width: 120px;
    font-size: 13px;
    text-align: center;
  }

  /* Modal stacking fix: ensure modal is above backdrop and headers */
  .modal {
    z-index: 1095;
  }
  .modal-backdrop {
    z-index: 1090;
  }
  
  /* Removed btn-outline-dark and btn-outline-light overrides */
  
  .fl-portfolio_btn:hover {
  background: #b1783b;
  border-color: #b1783b;
  color: #ffffff;
}
  
  .fl-logo a img {
    max-width: 200px !important;
    max-height: 70px !important;
    height: 70px !important;
    width: auto !important;
    object-fit: contain;
  }
  
  .fl-logo {
    padding-left: 10px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  
  /* Neutralize dark cards/blocks from template */
  .fl-banner-box-bottom,
  .fl-resume-left-box,
  .fl-packages,
  .fl-client-slider-box,
  .fl-about-img-content,
  .fl-package-greenbtn-transparent,
  .fl-pricing-border,
  .fl-package-greenbtn,
  .fl-banner-box-img,
  .fl-banner-box-head,
  .fl-contact-info-box,
  .fl-contact-box1 {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1a1f2c !important;
    border: 1px solid rgba(26, 31, 44, 0.08);
    box-shadow: 0 10px 24px rgba(26, 31, 44, 0.08);
  }
  
  .fl-banner-box-bottom p,
  .fl-resume-left-box h2,
  .fl-resume-left-box h3,
  .fl-packages h2,
  .fl-client-slider-box p,
  .fl-about-img-content p,
  .fl-package-greenbtn-transparent p,
  .fl-contact-info-box h2,
  .fl-contact-box1 p,
  .fl-contact-box1 a {
    color: #1a1f2c !important;
  }
  
  .fl-box-start h2,
  .fl-box-start h2 span {
    color: #f0c14b !important;
  }
  
  /* About page redesign */
  .about-hero {
    position: relative;
    padding-top: 30px;
    padding-bottom: 20px;
  }
  
  .about-hero-3d {
    position: relative;
    margin-left: auto;
  }
  .shape-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(26, 31, 44, 0.1);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 20px 40px rgba(26, 31, 44, 0.14);
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .shape-card-title {
    font-weight: 700;
    color: #1a1f2c;
    margin-bottom: 6px;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    max-height: 1.2em;
  }
  
  .shape-card-text {
    color: #5a667a;
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-height: 2.7em;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .about-hero-3d.dense .shape-card {
    padding: 14px 16px;
    height: 120px;
  }
  .about-hero-3d.dense .shape-card-title {
    font-size: 16px;
  }
  .about-hero-3d.dense .shape-card-text {
    font-size: 13px;
    -webkit-line-clamp: 1;
    max-height: 1.35em;
  }
  
  .shape-card-main {
    top: 70px;
    left: 24%;
    right: 12%;
    transform: translateZ(20px) rotateX(6deg) rotateY(-8deg);
  }
  
  .shape-card-left {
    top: 20px;
    left: -10%;
    width: 50%;
    transform: translateZ(10px) rotateX(4deg) rotateY(10deg);
  }
  
  .shape-card-right {
    bottom: 20px;
    right: -10%;
    width: 50%;
    transform: translateZ(10px) rotateX(-4deg) rotateY(-10deg);
  }
  
  .shape-card-top {
    top: -35px;
    right: 22%;
    width: 46%;
    transform: translateZ(15px) rotateX(2deg) rotateY(-6deg);
  }
  
  .about-extra-cards {
    margin-top: 18px;
    display: grid;
    gap: 12px;
  }
  
  .about-extra-cards .shape-card {
    position: relative;
    transform: none;
  }
  
  .about-hero-video-wrapper {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: transparent !important;
  }
  
  .about-hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit !important;
    clip-path: inset(0 round 22px);
  }
  
  .about-video-effect-glow .about-hero-video {
    filter: none !important;
  }
  
  .about-video-effect-shadow .about-hero-video {
    filter: none !important;
  }
  
  .about-video-effect-gradient::before {
    display: none !important;
    background: transparent !important;
  }
  
  .about-hero-video {
    background-color: transparent !important;
  }
  
  .about-hero-video-wrapper::before,
  .about-hero-video-wrapper::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
  }
  
  .about-hero-3d .shape-card:hover {
    transform: translateY(-10px) scale(1.03) rotateX(4deg) rotateY(-4deg);
    box-shadow: 0 26px 52px rgba(26, 31, 44, 0.25);
    background: #ffffff;
  }
  
  .stat-card,
  .process-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(26, 31, 44, 0.08);
    border-radius: 14px;
    padding: 22px;
    height: 100%;
    box-shadow: 0 12px 28px rgba(26, 31, 44, 0.08);
  }
  
  .about-hero .fl-btn-1.fl-common-btn {
    background: linear-gradient(135deg, #6b8bd6, #f2a3c0);
    color: #ffffff;
    font-size: 12px;
    padding: 10px 18px;
    letter-spacing: 1px;
  }
  
  .stat-card h3 {
    font-size: 28px;
    margin-bottom: 6px;
    color: #1a1f2c;
  }
  
  .stat-card p,
  .process-card p {
    color: #5a667a;
    margin: 0;
  }
  
  .process-card h4 {
    color: #1a1f2c;
    margin-bottom: 10px;
  }
  
  /* Services page layout */
  .services-hero {
    padding: 30px 0 10px;
  }
  
  .fl-specialized-wrapper {
    padding: 40px 0;
  }
  
  .services-hero-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(26, 31, 44, 0.08);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 36px rgba(26, 31, 44, 0.12);
  }
  
  .service-tile {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(26, 31, 44, 0.08);
    border-radius: 18px;
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 6px 14px rgba(26, 31, 44, 0.07);
  }
  
  .service-tile .fl-portfolio_btn {
    margin-top: auto;
  }
  
  @media (max-width: 991px) {
    .about-hero-3d {
      min-height: 220px;
      margin-top: 30px;
    }

    .shape-card {
      position: relative;
      width: 100%;
      left: auto;
      right: auto;
      top: auto;
      bottom: auto;
      margin-bottom: 16px;
      transform: none;
    }
  }

  @media (max-width: 1200px) {
    /* FIX: Remove backdrop-filter and transform from header to prevent "containing block" issue for fixed menu */
    .fl-header-section.pp-header-wrapper {
        backdrop-filter: none !important;
        transform: none !important;
        z-index: 1000;
        position: relative;
    }

    /* Mobile Menu Fixes */
    .fl-bhh-toggle {
      position: absolute;
      top: 15px; /* Adjust to align with logo */
      right: 15px; /* Fix the 100px issue */
      z-index: 10002; /* Ensure above menu and everything */
      display: block !important;
    }

    .fl-menu-btn {
        display: block !important;
    }

    .fl-menu-btn span {
        background-color: #ffffff; /* White color for visibility on dark header */
        height: 3px; /* Make it thicker */
        width: 30px;
    }

    .fl-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Hide completely off-screen */
        width: 100%; /* Full width for better UX on small screens, or keep 280px */
        max-width: 300px;
        height: 100vh;
        overflow-y: auto;
        padding-top: 80px; 
        background-color: #1a1f2c; /* Dark background */
        z-index: 10001; /* High z-index */
        transition: all 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: 4px 0 25px rgba(0,0,0,0.3);
        display: block !important;
        visibility: visible;
        backdrop-filter: none !important; /* Ensure no inherited blur */
        -webkit-backdrop-filter: none !important;
        transform: none !important;
    }
    
    .menu-open .fl-menu {
        left: 0;
    }
    
    /* Mobile Menu Overlay */
    /* Applied to fl-main-wrapper instead of body to ensure correct stacking context */
    .menu-open .fl-main-wrapper::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.8); /* Dark background */
        z-index: 990; /* Lower than header (1000) */
        backdrop-filter: none !important; 
    }

    /* Portfolio Grid Responsive Fixes */
    @media (max-width: 991px) {
        .fl_project_gallery .grid-item {
            width: calc(50% - 10px);
        }
    }

    @media (max-width: 575px) {
        .fl_project_gallery .grid-item {
            width: 100%;
            margin: 0 0 24px 0; /* Vertical spacing only */
        }
        
        .fl_project_gallery .grid_img img {
            height: auto; 
            min-height: 250px;
        }
    }

    /* Shop Mobile Compact View (eMAG style) */
    @media (max-width: 576px) {
        .product-card .card-body {
            padding: 0.5rem !important;
        }
        .product-card .card-title {
            font-size: 0.8rem !important;
            height: 2.4em !important;
            line-height: 1.2 !important;
            margin-bottom: 0.25rem !important;
        }
        .product-card .badge {
            font-size: 0.6rem !important;
            padding: 0.25em 0.4em !important;
        }
        /* Price adjustments */
        .product-card .fs-4 { 
            font-size: 1.1rem !important;
        }
        .product-card .small {
            font-size: 0.7rem !important;
        }
        /* Hide specs and rating on mobile to save space and reduce clutter */
        .product-card .card-body > .mb-2 {
            display: none !important;
        }
        /* Compact Button */
        .product-card .btn-custom-shop {
            padding: 0.35rem 0.2rem !important;
            font-size: 0.75rem !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .product-card .btn-custom-shop i.bx-chevron-right {
            display: none;
        }
        /* Adjust image container */
        .product-card .ratio-4x3 {
            margin-bottom: 0.25rem !important;
        }
    }
    .fl-menu li a {
        color: #ffffff !important; /* White text on dark background */
        font-size: 16px;
        font-weight: 500;
        margin: 0;
        padding: 15px 25px;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
        text-align: left;
    }
    
    .fl-menu li {
        width: 100%;
        padding: 0;
        display: block;
    }

    .fl-menu li a:hover,
    .fl-menu li a.active {
        background-color: transparent; /* Remove background box */
        color: #c78d4b !important; /* Gold/Campaign color */
        border-left: 0;
        padding-left: 25px; /* Keep alignment */
    }
    
    /* Adjust badges for mobile menu */
    .fl-menu li a .badge {
        position: static !important;
        transform: none !important;
        margin-left: auto;
        float: right;
        display: inline-block !important;
        margin-top: 4px;
    }
    
    /* Adjust icons in mobile menu */
    .fl-menu li a i,
    .fl-menu li a svg {
        margin-right: 12px;
        vertical-align: middle !important;
        font-size: 20px;
        color: #c78d4b;
    }
    
    /* Fix CTA buttons in mobile menu */
    .fl-menu li.menu-cta {
        margin: 20px 25px 0;
        width: auto;
        padding-bottom: 10px;
    }
    
    .fl-menu li.menu-cta .fl-portfolio_btn {
        width: 100%;
        display: block;
        padding: 12px;
        font-size: 14px;
    }
  }
  
  /* Additional light overrides for remaining dark blocks */
  .fl-specialized-box,
  .fl-resume-left-box,
  .fl-card-border,
  .fl-card-border .card1,
  .fl-card-border .circle,
  .fl-projectFactsWrap .item,
  .fl-about-img-content {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(26, 31, 44, 0.08) !important;
    box-shadow: 0 10px 24px rgba(26, 31, 44, 0.08);
  }
  
  .fl-projectFactsWrap .item h5,
  .fl-projectFactsWrap .item p,
  .fl-about-img-content h3,
  .fl-about-img-content p {
    color: #1a1f2c !important;
  }
  
  /* About page skill circles */
  .circle .box span {
    background-color: #ffffff !important;
    border: 2px solid rgba(26, 31, 44, 0.12) !important;
  }
  
  .circle .box span h3 {
    color: #1a1f2c !important;
  }
  
  .fl-text {
    color: #1a1f2c !important;
  }
  
  .form-control,
  .form-select,
  textarea,
  input,
  select {
    background-color: #ffffff;
    color: #1a1f2c;
    border-color: rgba(26, 31, 44, 0.12);
  }
  
  .form-control::placeholder,
  textarea::placeholder {
    color: #8a93a3;
  }

  /* Auth Card (Login/Register) Styling */
  .auth-card {
    background: #ffffff !important;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
  }

  .auth-card h2 {
    font-weight: 700;
    color: #1a1f2c;
    text-align: center;
  }

  .auth-card p.text-color {
    color: #6c757d;
    text-align: center;
  }

  .auth-card .form-label {
    font-weight: 500;
    color: #1a1f2c;
    font-size: 0.9rem;
  }

  .auth-card .form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
  }

  .auth-card .form-control:focus {
    background-color: #ffffff;
    border-color: #6b8bd6;
    box-shadow: 0 0 0 3px rgba(107, 139, 214, 0.15);
  }

  .auth-card .btn-dark {
    background-color: #1a1f2c;
    border-color: #1a1f2c;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    transition: all 0.2s;
  }

  .auth-card .btn-dark:hover {
    background-color: #384152;
    border-color: #384152;
    transform: translateY(-1px);
  }

/* Before/After Slider */
.ba-section {
    position: relative;
    padding: 80px 0;
    background: transparent;
}
.ba-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.ba-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}
.ba-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    aspect-ratio: 16/9;
    cursor: ew-resize;
    user-select: none;
}
.ba-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}
.ba-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    border-right: 2px solid #c78d4b;
}
.ba-overlay .ba-img {
    width: 100vw; /* Will be set by JS to container width */
    max-width: none;
}
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #c78d4b;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    border: 2px solid #fff;
    pointer-events: auto;
    animation: pulse-gold 2s infinite;
}
.ba-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.2s ease;
}
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(199, 141, 75, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(199, 141, 75, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(199, 141, 75, 0);
    }
}
.ba-handle::before, .ba-handle::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    position: absolute;
}
.ba-handle::before {
    border-right: 8px solid #fff;
    left: 8px;
}
.ba-handle::after {
    border-left: 8px solid #fff;
    right: 8px;
}
.ba-label {
    position: absolute;
    top: 20px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; }

  .auth-card .btn-outline-dark {
    border-radius: 8px;
    padding: 10px;
    font-weight: 500;
    border-color: #e2e8f0;
    color: #1a1f2c;
  }

  .auth-card .btn-outline-dark:hover {
    background-color: #f8f9fa;
    border-color: #cbd5e1;
    color: #1a1f2c;
  }

  .auth-card .alert {
    border-radius: 8px;
    font-size: 0.9rem;
  }
  
  .fl-contact-wrapper .fl-form-design,
  .fl-contact-wrapper .mt_popup_form,
  .fl-contact-wrapper .mt_popup_form_container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(26, 31, 44, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(26, 31, 44, 0.08);
  }
  
  .fl-contact-wrapper .form-label {
    color: #1a1f2c;
  }
  
  /* Remove blue background accents behind Contact heading */
  .fl-contact-wrapper {
    background-image: none !important;
    background-color: transparent !important;
  }
  
  .fl-all-heading::before,
  .fl-all-heading::after,
  .fl-all-heading h2::before,
  .fl-all-heading h2::after {
    content: none !important;
    background: none !important;
  }
  
  /* Remove template contact sidebar panel on all pages */
  .fl-sidebar,
  .fl-menu-box {
    display: none !important;
  }
  
  /* Contact page 3D logo card */
  .contact-logo-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 0 14px;
    text-align: center;
    box-shadow: none;
  }
  
  .contact-logo-3d {
    position: relative;
    perspective: 800px;
    margin-bottom: 14px;
  }
  
  .contact-logo-3d img {
    max-width: 220px;
    width: 100%;
    height: auto;
    transform: rotateX(8deg) rotateY(-12deg);
  }

/* Custom Cart Button (Red/Blue Dual) */
:root {
    /* Default values */
    --cart-btn-icon-bg: #ff0000;
    --cart-btn-text-bg: #0056b3;
}
.btn-custom-cart-new {
    display: flex;
    align-items: stretch;
    padding: 0;
    border: none;
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s;
    width: 100%;
}
.btn-custom-cart-new:hover {
    transform: scale(1.02);
}
.btn-custom-cart-new .icon-container {
    background-color: var(--cart-btn-icon-bg);
    color: white;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    /* Create the convex curve */
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    font-size: 1.2rem;
    min-width: 50px;
}
.btn-custom-cart-new .text-container {
    background-color: var(--cart-btn-text-bg);
    color: white;
    padding: 8px 15px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1;
    padding-left: 20px; 
    margin-left: -15px; /* Overlap */
}

/* Helper classes for Shop Product Page */
.hover-bg-gray:hover {
    background-color: #f8f9fa !important;
}

.hover-border-primary:hover {
    border-color: #0d6efd !important;
}

.border-transparent {
    border-color: transparent !important;
}

/* ===== eShop global header, search band and aux menu ===== */
.shop-home-header {
  background: #fff;
  border-radius: 0;
  padding: 8px 16px 0 16px;
  color: #333;
  margin-bottom: 0;
  border-bottom: 1px solid transparent;
  position: relative;
  min-height: 56px;
}
.shop-home-header > .row { margin-bottom: 0 !important; --bs-gutter-y: 0 !important; }
.shop-home-header > .row > [class*="col-"] { margin-top: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
@media (min-width: 992px) {
  .shop-home-header .mb-lg-0 { margin-bottom: 0 !important; }
  .shop-home-header {
    padding-left: 0;
    padding-right: 0;
  }
  .shop-home-header > .container-xxl {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
}
.eshop-aux-navbar {
  background: linear-gradient(90deg, #e41032, #ff6a00, #8e2de2, #0074d8);
  padding: 4px 0;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}
.eshop-aux-navbar-inner {
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.eshop-aux-left {
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}
.eshop-aux-left i {
  font-size: 1.4rem;
}
.eshop-aux-left-label {
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.eshop-aux-left.active {
  background: rgba(0, 0, 0, 0.16);
}
.eshop-aux-menu {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.85rem;
}
.eshop-aux-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 100%;
}
.eshop-aux-menu a.active {
  font-weight: 700;
  text-decoration: underline;
}
.eshop-aux-menu a:hover {
  text-decoration: underline;
}

@media (min-width: 992px) {
  .eshop-aux-left {
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: -4px;
    margin-bottom: -4px;
  }
  .eshop-aux-navbar-inner {
    padding-left: 250px;
    padding-right: 250px;
  }
}
.navbar-searchbox {
  width: 100%;
}
@media (min-width: 992px) {
  .navbar-searchbox {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
.searchbox-wrapper {
  width: 100%;
  position: relative;
}
@media (max-width: 991.98px) {
  .shop-home-header {
    padding: 8px 10px 0 10px;
  }
  .eshop-aux-navbar-inner {
    padding: 0 8px;
  }
  .eshop-aux-left {
    padding: 6px 10px;
    flex: 0 0 auto;
  }
  .eshop-aux-menu {
    padding: 0 6px;
    gap: 10px;
    font-size: 0.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .eshop-aux-menu li {
    flex: 0 0 auto;
  }
  .navbar-searchbox {
    margin-top: 6px;
  }
}
.searchbox-input {
  display: flex;
  align-items: stretch;
  border-radius: 999px;
  border: 1px solid #0074d8;
  background: #fff;
  overflow: hidden;
  min-height: 20px;
}
.searchbox-input .form-control {
  border: none;
  box-shadow: none;
  flex: 1;
  padding: 0;
  display: flex;
  align-items: center;
  background: transparent;
}
.searchbox-main {
  width: 100%;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0 0.85rem;
  font-size: 0.88rem;
}
.searchbox-main::placeholder {
  color: #999;
}
.searchbox-suggestion {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.input-group-btn {
  display: flex;
  align-items: center;
  padding-right: 8px;
}
.searchbox-submit-button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0074d8;
}
.searchbox-submit-button i {
  font-size: 1.1rem;
}
.searchbox-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 1050;
}
.searchbox-dropdown.active {
  display: block;
}
.searchbox-dropdown-content {
  padding: 12px 16px;
  font-size: 0.9rem;
}
.searchbox-section-title {
  font-weight: 600;
  margin-bottom: 6px;
}
.searchbox-suggestion-item {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.searchbox-suggestion-item i {
  font-size: 0.9rem;
  color: #999;
}
.searchbox-suggestion-item:hover {
  background: #f5f7fb;
}
.searchbox-suggestion-category {
  font-size: 0.8rem;
  color: #666;
  margin-left: 4px;
}
.searchbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1040;
}
.searchbox-backdrop.active {
  display: block;
}
.shop-home-subtext {
  font-size: 0.85rem;
  opacity: 0.85;
}
.shop-home-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #005eb8;
  font-weight: 700;
}
.shop-home-logo-sub {
  font-size: 0.78rem;
  opacity: 0.8;
}
.shop-home-header-actions .shop-home-header-link {
  color: #333333;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.shop-home-header-actions .shop-home-header-link i {
  font-size: 1.4rem;
}
.shop-home-header-actions .shop-home-header-link:hover {
  color: #0074d8;
}

/* prevenim Ã®mpachetarea acÈ›iunilor pe desktop */
@media (min-width: 992px) {
  .shop-home-header-actions {
    flex-wrap: nowrap;
  }
}

@media (max-width: 991.98px) {
  .shop-home-header-actions {
    justify-content: flex-start !important;
    gap: 4px;
  }
  .shop-home-header-actions .shop-home-header-link {
    font-size: 0.8rem;
    padding: 2px 8px;
    gap: 4px;
  }
  .shop-home-header-actions .shop-home-header-link i {
    font-size: 1.2rem;
  }
}

.eshop-cart-wrapper {
  position: relative;
}

.eshop-cart-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  z-index: 1200;
  display: none;
}

.eshop-cart-wrapper:hover .eshop-cart-dropdown {
  display: block;
}

.eshop-cart-dropdown-inner {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 280px;
  max-width: 340px;
  padding: 10px 12px 12px;
}

.eshop-cart-dropdown-arrow {
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  box-shadow: -1px -1px 2px rgba(15, 23, 42, 0.12);
}

.eshop-cart-dropdown-title {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0074d8;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.eshop-cart-dropdown-items {
  max-height: 260px;
  overflow-y: auto;
}

.eshop-cart-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.eshop-cart-dropdown-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eshop-cart-dropdown-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.eshop-cart-dropdown-thumb i {
  font-size: 1.4rem;
  color: #adb5bd;
}

.eshop-cart-dropdown-info {
  flex: 1;
  min-width: 0;
}

.eshop-cart-dropdown-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eshop-cart-dropdown-meta {
  font-size: 0.75rem;
  color: #6c757d;
}

.eshop-cart-dropdown-price {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  color: #212529;
}

.eshop-cart-dropdown-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding-top: 6px;
  margin-top: 6px;
  border-top: 1px solid #f0f0f0;
}

.eshop-cart-dropdown-total-label {
  font-weight: 500;
  color: #495057;
}

.eshop-cart-dropdown-total-value {
  font-weight: 700;
  color: #212529;
}

.eshop-cart-dropdown-more {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 4px;
}

.eshop-cart-dropdown-button {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (min-width: 992px) {
  .shop-home-main.container-xxl {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
  /* AliniazÄƒ È™i headerul eShop la aceeaÈ™i lÄƒÈ›ime, doar pe pagina shop_home */
  .shop-home .container-xxl {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== eShop floating bar standard width (centered, not full-bleed) ===== */
.eshop-product-floating-bar .eshop-product-floating-inner.container-xxl {
  max-width: min(1880px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}

.eshop-checkout-page {
  max-width: 1140px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px 18px 20px;
}
.eshop-checkout-title {
  font-size: 1.6rem;
  font-weight: 700;
}
.eshop-checkout-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 0;
}
.eshop-checkout-secure {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e9f7ef;
  color: #198754;
  font-size: 0.9rem;
}
.eshop-checkout-secure i {
  font-size: 1.2rem;
}
.eshop-checkout-step-card {
  border: 1px solid #e1e5ee;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.eshop-checkout-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fc;
  border-bottom: 1px solid #e1e5ee;
  justify-content: space-between;
}
.eshop-checkout-step-body {
  padding: 14px 16px 16px;
}
.eshop-checkout-step-body .row {
  margin-left: -8px;
  margin-right: -8px;
}
.eshop-checkout-step-body .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}
.eshop-checkout-step-body .form-check:not(.form-switch) {
  padding: 4px 0 4px 1.8rem;
}
.eshop-checkout-step-body .form-check-input {
  margin-top: 0.2rem;
  margin-left: -1.8rem;
  margin-right: 0.4rem;
}

.shop-home-product-card {
  position: relative;
}
.shop-home-wishlist-top {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #eee;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #999;
  padding: 0;
}
.shop-home-wishlist-top:hover {
  background: #fff;
  color: #ef2809;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.shop-home-wishlist-top i {
  font-size: 1.2rem;
}
.shop-home-wishlist-top.active i {
  color: #ef2809;
}
.eshop-checkout-step-body .form-check-label {
  display: inline-block;
}
.eshop-checkout-step-body .form-switch {
  padding: 4px 0 4px 1.8rem;
}
.eshop-checkout-step-body .form-switch .form-check-input {
  margin-top: 0.1rem;
  margin-left: -1.8rem;
}
.eshop-billing-switch {
  padding-left: 2.2rem;
}
.eshop-checkout-divider {
  margin: 10px 0 14px;
  border-top: 1px dashed #e1e5ee;
}
.eshop-checkout-step-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eshop-checkout-step-progress {
  font-size: 0.78rem;
  color: #6c757d;
  font-weight: 500;
}
.eshop-checkout-step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0074d8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.eshop-checkout-step-title {
  font-size: 1rem;
  font-weight: 600;
}
.eshop-checkout-step-sub {
  font-size: 0.85rem;
  color: #6c757d;
}
.eshop-checkout-step-card .form-label {
  font-weight: 500;
  font-size: 0.9rem;
}
.eshop-checkout-step-card .form-control,
.eshop-checkout-step-card .form-select {
  font-size: 0.9rem;
}
.eshop-checkout-step-card .form-check {
  padding: 4px 0;
}
.eshop-checkout-step-card .form-check-input:checked {
  background-color: #0074d8;
  border-color: #0074d8;
}
.eshop-checkout-step-card textarea.form-control {
  min-height: 68px;
}
.eshop-checkout-terms {
  max-width: 460px;
}
.eshop-checkout-summary-card {
  border: 1px solid #e1e5ee;
  border-radius: 12px;
  padding: 16px 18px;
  background: #ffffff;
  position: sticky;
  top: 90px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.eshop-checkout-submit {
  padding-left: 32px;
  padding-right: 32px;
  font-weight: 600;
}
@media (max-width: 767.98px) {
  .eshop-checkout-submit {
    width: 100%;
  }
}
.eshop-checkout-summary-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1rem;
}
.eshop-checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.eshop-checkout-summary-total {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e1e5ee;
}
.eshop-checkout-summary-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6c757d;
}
@media (max-width: 991.98px) {
  .eshop-checkout-summary-card {
    position: static;
    margin-top: 8px;
  }
  .eshop-checkout-title {
    font-size: 1.4rem;
  }
}

/* ===== eShop cart quantity controls: ensure clear, non-overlapping click areas ===== */
.eshop-cart-qty-group {
  display: grid;
  grid-template-columns: 38px 60px 38px;
  gap: 6px;
}
.eshop-cart-qty-group .btn {
  min-width: 38px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.eshop-cart-qty-group .btn i {
  pointer-events: none;
  font-size: 18px;
}
.eshop-cart-qty-display {
  height: 32px;
  padding: 0 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: #ffffff;
  border: 1px solid rgba(26, 31, 44, 0.12);
  font-weight: 600;
  font-size: 0.9rem;
}
.eshop-cart-reco-card {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
}
.eshop-cart-reco-section + .eshop-cart-reco-section {
  margin-top: 16px;
}
.eshop-cart-reco-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.eshop-cart-reco-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.eshop-cart-reco-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.eshop-cart-reco-items.is-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.eshop-cart-reco-items.is-carousel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.eshop-cart-reco-item {
  display: flex;
  flex-direction: column;
  width: 220px;
  min-width: 220px;
  scroll-snap-align: start;
}
.eshop-cart-reco-thumb {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.eshop-cart-reco-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.eshop-cats-dropdown {
  display: none;
  position: relative;
  z-index: 40;
}
.eshop-cats-dropdown.active {
  display: block;
}
.eshop-cats-dropdown .container-xxl {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.eshop-cats-panel {
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  margin-top: 8px;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  padding: 10px 0;
  width: 320px;
}
.eshop-cats-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eshop-cats-list li + li {
  margin-top: 2px;
}
.eshop-cats-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: #111827;
  font-size: 0.94rem;
}
.eshop-cats-link .eshop-cats-icon {
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}
.eshop-cats-link i {
  font-size: 1.2rem;
}
.eshop-cats-link:hover {
  background: #f5f7fb;
}
.eshop-cats-link.active {
  background: #f5f7fb;
  font-weight: 600;
}
@media (max-width: 991.98px) {
  .eshop-cats-dropdown {
    display: none !important;
  }
}
.eshop-cart-reco-thumb i {
  font-size: 20px;
  color: #9ca3af;
}
.eshop-cart-reco-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eshop-cart-reco-name a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  line-height: 1.25;
}
.eshop-cart-reco-name a:hover {
  text-decoration: underline;
}
.eshop-cart-reco-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f766e;
}
.eshop-cart-reco-info-btn {
  color: #6b7280;
}
.eshop-cart-reco-info-btn i {
  font-size: 1.1rem;
}
.eshop-cart-reco-arrows {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}
.eshop-reco-arrow {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
.eshop-reco-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.eshop-reco-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--eshop-reco-dot-bg, rgba(15, 23, 42, 0.18));
  border: 0;
  padding: 0;
}
.eshop-reco-dot.active {
  background: var(--eshop-reco-dot-active, #0ea5a4);
}
.shop-home-product-card {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.shop-home-product-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.shop-home-product-top {
  position: relative;
  margin-bottom: 8px;
}
.shop-home-promoted-flag {
  position: absolute;
  left: 8px;
  top: 52px;
  z-index: 2;
}
.shop-home-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #5c2dff;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.shop-home-product-badge {
  position: absolute;
  top: 30px;
  left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ef2809;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.shop-home-badges-left {
  position: absolute;
  left: 8px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shop-home-badge-left {
  padding: 3px 6px;
  border-radius: 4px;
  background: #ef2809;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}
.shop-home-badge-left-2 {
  background: #ff6a00;
}
.shop-home-badge-circle {
  position: absolute;
  right: 10px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #f44336;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #f44336;
}
.shop-home-product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.shop-home-product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.shop-home-product-title {
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.3;
  height: 3.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.shop-home-product-old-price {
  font-size: 0.8rem;
  color: #999;
  text-decoration: line-through;
}
.shop-home-product-brand {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 2px;
}
.shop-home-product-footer {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shop-home-price-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.shop-home-price-main {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.shop-home-price-int {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ef2809;
}
.shop-home-price-dec {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ef2809;
}
.shop-home-price-currency {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Shop Product Card Image Container */
.shop-card-img-container {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
  .shop-card-img-container {
    height: 180px;
  }
}

/* Shop Product Detail Main Image Container */
.shop-product-main-img-container {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fff;
  border-radius: 8px;
}

@media (max-width: 992px) {
  .shop-product-main-img-container {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .shop-product-main-img-container {
    height: 300px;
  }
}

.shop-home-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #005eb8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.shop-home-cart-btn i {
  font-size: 1.2rem;
}

/* Interactive Lab Map Styles - Enhanced Gold/Luxury Theme */
.lab-map-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    min-height: 80vh;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    perspective: 1000px; /* Enable 3D perspective */
}

.lab-map-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s ease-out; /* Smoother for mouse movement */
    transform-style: preserve-3d;
}

/* Atmospheric Overlays */
.lab-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.lab-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(199, 141, 75, 0.05) 3px, /* Subtle Gold Tint */
        rgba(199, 141, 75, 0.05) 4px
    );
    pointer-events: none;
    z-index: 2;
    animation: scanlineMove 10s linear infinite;
}

@keyframes scanlineMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* Hotspots - Luxury Tech Style */
.lab-hotspot {
    position: absolute;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%) translateZ(20px); /* Lift off surface */
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.hotspot-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(199, 141, 75, 0.6); /* Gold #c78d4b */
    border-radius: 50%;
    animation: spinSlow 20s linear infinite;
    transition: all 0.3s ease;
}

.hotspot-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #e60023; /* Red */
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(230, 0, 35, 0.8);
    animation: pulseRed 2s infinite;
}

.hotspot-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 10, 0.85);
    color: #c78d4b; /* Gold Text */
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(199, 141, 75, 0.3); /* Gold Border */
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.lab-hotspot:hover .hotspot-ring {
    border-color: #c78d4b; /* Gold */
    border-style: solid;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(199, 141, 75, 0.3);
}

.lab-hotspot:hover .hotspot-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(15px);
}

/* Hide hotspots when overlay is open */
.lab-map-container.overlay-open .lab-hotspot {
    display: none;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseRed {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(230, 0, 35, 0.8); opacity: 1; }
    50% { transform: scale(1.3); box-shadow: 0 0 25px rgba(230, 0, 35, 0.5); opacity: 0.7; }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(230, 0, 35, 0.8); opacity: 1; }
}

/* Video Overlay - Cinematic */
.lab-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    /* justify-content: center; Removed to allow scrolling */
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0; /* Remove padding to maximize space */
    backdrop-filter: blur(15px);
    overflow-y: auto; /* Allow scrolling */
}

.lab-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lab-overlay-content {
    width: 90%;
    height: 90%; /* A bit smaller than full screen */
    max-width: none;
    background: transparent;
    position: relative;
    transform: scale(1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.lab-overlay.active .lab-overlay-content {
    transform: scale(1);
}

.lab-overlay-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.7;
    transition: all 0.3s;
    transform: rotate(0deg);
    z-index: 101;
}

.lab-overlay-close:hover {
    opacity: 1;
    color: #c78d4b;
    transform: rotate(90deg);
}

.lab-video-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    background: #000;
    border: 1px solid rgba(199, 141, 75, 0.2);
}

.lab-gallery-wrapper {
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1;
    border-radius: 12px;
    background: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lab-swiper {
    width: 100%;
    height: 100%;
    padding-bottom: 0;
}

.lab-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.lab-swiper .swiper-slide img,
.lab-swiper .swiper-slide video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.lab-video-wrapper {
    width: 100%;
    height: 100%;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-video-wrapper video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
    margin: 0;
}

.lab-info {
    color: #fff;
    margin-top: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.2s;
}

.lab-overlay.active .lab-info {
    opacity: 1;
    transform: translateY(0);
}

.lab-info h3 {
    color: #c78d4b; /* Gold Title */
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lab-info p {
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Particles */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: floatUp linear infinite;
    z-index: 5;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/* Social Share Buttons - Gold Theme */
.svc-share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.05);
    font-size: 1.2rem;
}
.svc-share-btn:hover {
    background: #c78d4b;
    color: #fff;
    transform: translateY(-2px);
    border-color: #c78d4b;
}

/* Story Card Style - Unique Aspect & Decorative Frame */
.story-card {
    border-radius: 20px 50px 20px 50px !important;
    background: #ffffff;
    border: 1px solid #c78d4b !important; /* Outer gold border */
    box-shadow: 
        0 15px 35px rgba(26, 31, 44, 0.08),
        inset 0 0 0 5px #fff, /* White gap */
        inset 0 0 0 6px #c78d4b !important; /* Inner gold border */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(26, 31, 44, 0.12), 
        0 8px 20px rgba(199, 141, 75, 0.15),
        inset 0 0 0 5px #fff,
        inset 0 0 0 7px #c78d4b !important; /* Slightly thicker inner border on hover */
}

/* Corner Decoration - Top Left */
.story-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-top: 2px solid #c78d4b;
    border-left: 2px solid #c78d4b;
    border-radius: 10px 0 0 0;
    opacity: 0.6;
    pointer-events: none;
}

/* Corner Decoration - Bottom Right */
.story-card::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid #c78d4b;
    border-right: 2px solid #c78d4b;
    border-radius: 0 0 10px 0;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.story-card .card-body {
    position: relative;
    z-index: 1;
    padding: 2.5rem !important; /* Increased padding for frame breathing room */
}


/* Stats Container */
.stats-container-wrapper {
    position: relative;
    padding: 3rem !important;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(26, 31, 44, 0.08);
    border: 1px solid #c78d4b;
    margin-top: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Inner decorative border */
.stats-container-wrapper::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dashed rgba(199, 141, 75, 0.3);
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
}

/* Decorative corner accents */
.stats-container-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, #c78d4b 10px, transparent 0) top left,
        linear-gradient(225deg, #c78d4b 10px, transparent 0) top right,
        linear-gradient(315deg, #c78d4b 10px, transparent 0) bottom right,
        linear-gradient(45deg, #c78d4b 10px, transparent 0) bottom left;
    background-size: 51% 51%;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* Stat Cards Enhancement */
.stats-container-wrapper .stat-card {
    position: relative;
    z-index: 2;
    background: transparent !important;
    box-shadow: none !important;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stats-container-wrapper .stat-card:hover {
    transform: translateY(-5px);
}

.stats-container-wrapper .stat-card h3 {
    font-size: 3rem;
    font-weight: 700;
    color: #c78d4b; /* Gold color for numbers */
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

.stats-container-wrapper .stat-card p {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Process Step Cards - Special Box Design */
.process-step-card {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    padding-top: 3rem !important; /* Extra space for number */
}

/* Hover state - lift and glow */
.process-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(199, 141, 75, 0.15) !important;
    border-color: rgba(199, 141, 75, 0.5) !important;
}

/* Top gold accent line */
.process-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c78d4b, #f2a3c0);
    opacity: 0.8;
}

/* Background Number */
.process-step-card .step-number-bg {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(199, 141, 75, 0.05);
    z-index: -1;
    transition: all 0.4s ease;
    user-select: none;
    font-family: var(--font-heading, sans-serif);
}

.process-step-card:hover .step-number-bg {
    color: rgba(199, 141, 75, 0.1);
    transform: scale(1.1) rotate(-5deg);
}

/* Icon Styling */
.process-step-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(199, 141, 75, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.process-step-card .icon-wrapper i {
    font-size: 2rem;
    color: #c78d4b;
    transition: all 0.3s ease;
}

.process-step-card:hover .icon-wrapper {
    background: #c78d4b;
    transform: scale(1.1);
}

.process-step-card:hover .icon-wrapper i {
    color: #ffffff;
    transform: rotate(10deg);
}

/* Typography */
.process-step-card h4 {
    color: #333;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.process-step-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Corner accent */
.process-step-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(199, 141, 75, 0.1) 50%);
    pointer-events: none;
    transition: all 0.3s ease;
}

.process-step-card:hover::after {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(199, 141, 75, 0.2) 50%);
}
