/* -------------------------------------------------------------------------- */
/*                                   Themes                                   */
/* -------------------------------------------------------------------------- */
/* ===== Blue Theme ===== */
:root {
  --primary-color: linear-gradient(90deg, #364C65 0%, #4A5F6C 100%);
  --primary-hover: #486d97;
  --text-color: #333333;
  --bg-color: linear-gradient(90deg, #F6F5F5 0%, #FFFFFC 100%);
  --navbar-bg: var(--primary-color);
  --navbar-link: #e2e8f0;
  --navbar-link-hover: #fefefe;
  --navbar-shadow: 0px 4px 19.8px 5px rgba(16, 20, 25, 0.12);
  --section-bg: #ffffff;
  --alt-section-bg: #cccccc;
  --footer-bg: var(--primary-color);
  --footer-text: #cccccc;
  --form-bg: #ffffff;
  --form-border: #dddddd;
  --form-text: #333333;
  --breadcrumb-link: #488bb4;
}

/* ===== Dark Theme ===== */
.dark-theme {
  --primary-color: #111827;
  --primary-hover: #2563eb;
  --text-color: #e5e7eb;
  --bg-color: #1f2937;
  --navbar-bg: #111827;
  --navbar-link: #e5e7eb;
  --navbar-link-hover: #60a5fa;
  --section-bg: #1f2937;
  --alt-section-bg: #374151;
  --footer-bg: #111827;
  --footer-text: #9ca3af;
  --form-bg: #374151;
  --form-border: #4b5563;
  --form-text: #e5e7eb;
  --breadcrumb-link: #b0b0b0;
}

/* -------------------------------------------------------------------------- */
/*                                Global Styles                               */
/* -------------------------------------------------------------------------- */
body {
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

.divider {
  border-top: 1px solid var(--footer-text);
  margin: 55px 5% 0 5%;
}

.intext-link {
  color: var(--breadcrumb-link);
  text-decoration: none;
}

.intext-link:hover {
  text-decoration: underline;
}

@media (max-width: 575px) {
  .divider {
    margin: 55px 0 0 0;
  }
}

/* -------------------------------------------------------------------------- */
/*                                  Top Bar                                   */
/* -------------------------------------------------------------------------- */
.nav-link.active {
  color: var(--primary-hover) !important;
  font-weight: 600;
}

.top-bar {
  background: var(--bg-color);
  font-size: 0.9rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--form-border);
  padding: 8px 0;
  min-height: 145px;
  align-content: center;
}

.top-bar a {
  color: var(--text-color);
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--primary-hover);
}

.top-bar-heading {
  font-size: 32px;
}

.top-bar .btn {
  background: var(--primary-color);
  border: none;
  padding: 12px;
}

.top-bar .btn:hover {
  background: var(--primary-hover);
}

.top-bar-phone-container {
  width: -webkit-fill-available;
  text-align: right;
  margin-top: -12px;
}

.top-bar-phone-container span {
  margin-left: 0 !important;
}

.top-bar-watch {
  padding-bottom: 6px;
  padding-right: 5px;
}

/* ===== Responsive Top Bar ===== */
@media (max-width: 991px) {
  .top-bar .container {
    flex-direction: column !important;
    text-align: center;
    gap: 8px;
  }

  .top-bar .container>div {
    width: 100%;
  }

  .top-nav-heading {
    font-size: 24px;
  }

  .top-bar p {
    margin-bottom: 4px;
    font-size: 0.85rem;
  }

  .top-bar span {
    display: block;
    margin-top: 4px;
  }

  .top-bar-heading {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .top-bar-phone-container {
    text-align: center;
    margin-top: 0;
  }

}

@media (max-width: 650px) {
  .top-bar-subline {
    display: none;
  }

  .top-bar .btn {
    padding: 6px 12px;
  }

  .top-bar {
    min-height: 120px;
  }

  .top-bar span {
    margin-top: 0;
  }
}

/* -------------------------------------------------------------------------- */
/*                                   Navbar                                   */
/* -------------------------------------------------------------------------- */
.navbar {
  background: var(--navbar-bg) !important;
  padding: 10px 0;
  box-shadow: var(--navbar-shadow) !important;
}

.navbar-brand {
  color: var(--navbar-link) !important;
  font-weight: 600;
  font-size: 1rem;
}

.nav-link {
  color: var(--navbar-link) !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--navbar-link-hover) !important;
}

/* -------------------------------------------------------------------------- */
/*                               About Section                                */
/* -------------------------------------------------------------------------- */
.about-section {
  padding: 60px 0;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.about-section p {
  font-size: 1rem;
  color: var(--text-color);
}

/* -------------------------------------------------------------------------- */
/*                                 Quote Form                                 */
/* -------------------------------------------------------------------------- */
.quote-form, .contact-form-wrap {
  background: var(--form-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--form-text);
}

.quote-form h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

.quote-form .form-control,
.quote-form .form-select, .contact-form-wrap .form-control,
.contact-form-wrap .form-select {
  border-radius: 6px;
  border: 1px solid var(--form-border);
  font-size: 0.95rem;
  background: var(--form-bg);
  color: var(--form-text);
}

.quote-form .btn, .contact-form-wrap .btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px;
  font-weight: 600;
}

.quote-form input::placeholder, .quote-form textarea::placeholder, .contact-form-wrap input::placeholder, .contact-form-wrap textarea::placeholder {
  color: var(--text-color);
}

.quote-form .btn:hover, .contact-form-wrap .btn:hover {
  background: var(--primary-hover);
}

/* -------------------------------------------------------------------------- */
/*                               Other Services                               */
/* -------------------------------------------------------------------------- */
.services-section {
  background-image: url('../images/other-services-bg.jpg');
  padding: 50px 0;
  text-align: center;
  background-size: cover;
  background-position: top 21% center;
}

.services-section h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--navbar-link);
  text-shadow: 2px 2px 9.4px #000000;
}

.services-section p {
  max-width: 600px;
  margin: 0 auto 20px;
  color: var(--navbar-link) !important;
  text-shadow: 2px 2px 9.4px #000000;
}

.services-section .btn {
  min-width: 150px;
  font-weight: 500;
  border-radius: 8px;
  margin-right: 5px;
  border: none;
  padding: 10px 20px;
}

.services-section .btn-dark {
  background: var(--primary-color);
  color: #fff;
}

.services-section .btn-dark:hover {
  background: var(--primary-hover);
}

.services-section .btn-light {
  background: var(--section-bg);
  border: 1px solid var(--form-border);
  color: var(--text-color);
}

.services-section .btn-light:hover {
  background: var(--alt-section-bg);
}

.ebay-btn {
  background-image: url(../images/ebay-logo.webp) !important;
  color: #ffffff00 !important;
  background-size: 50% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

@media (min-width: 1200px) {
  .services-inner-container {
    justify-self: left;
    text-align: left;
  }

  .services-text {
    max-width: 525px !important;
  }

  .services-section {
    margin-top: -280px;
  }
}

@media (max-width: 1199px) {
  .services-section .btn {
    margin: 5px;
  }
}

/* -------------------------------------------------------------------------- */
/*                             Soldering Services                             */
/* -------------------------------------------------------------------------- */
.soldering-section .lead {
  font-size: 1.1rem;
  font-weight: 500;
}

.card img {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  object-fit: cover;
  height: 200px;
}

.card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--form-bg);
  color: var(--text-color);
}

.card:hover {
  transform: translateY(-3px);
}

.card-footer {
  background: var(--form-bg);
  border-top: none;
}

/* Contact/Find Out More Button Style */
.btn-contact {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-weight: 500;
  text-decoration: none;
}

.btn-contact:hover {
  background: var(--primary-hover);
}

.btn-findoutmore {
  background: #efefef;
  color: var(--primary-color);
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-weight: 500;
  text-decoration: none;
}

/* PayPal Button Style 
.btn-paypal {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease;
}

.btn-paypal:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}*/

/* PayPal Logo Size 
.btn-paypal img {
  height: 18px;
  width: auto;
  display: block;
}*/

/* -------------------------------------------------------------------------- */
/*                               Repairs Section                              */
/* -------------------------------------------------------------------------- */

.repairs-section h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.repairs-section p {
  font-size: 0.95rem;
  color: #333;
}

.repairs-section img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 300px;
}

.repairs-carousel h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.repairs-carousel p {
  font-size: 0.95rem;
  color: var(--text-color);
}

.repairs-carousel img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 300px;
}

.repairs-carousel .btn {
  margin-top: 0.5rem;
  border: none;
  padding: 12px;
}

.repairs-carousel .btn-dark {
  background: var(--primary-color);
  color: #fff;
}

.repairs-carousel .btn-dark:hover {
  background: var(--primary-hover);
  opacity: 1;
}

.repairs-carousel .btn-light {
  background: var(--section-bg);
  border: 1px solid var(--form-border);
  color: var(--text-color);
}

.repairs-carousel .btn-light:hover {
  background: var(--alt-section-bg);
}

.carousel-inner {
  padding: 20px;
}

.repairs-title {
  color: var(--text-color);
}

/* Carousel Control Arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6);
  background-size: 50% 50%;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(1);
  /* makes the arrow white */
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Carousel Indicators (Dots) */
.carousel-indicators [data-bs-target] {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  margin: 0 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative !important;
}

.carousel-indicators [data-bs-target].active {
  background-color: var(--primary-hover);
  transform: scale(1.2);
}

.carousel-indicators [data-bs-target]:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-item .col-md-6 {
  width: 45%;
}

.carousel-indicators {
  bottom: -45px !important;
}

.play-pause-btns {
  padding-top: 20px;
}

/* Allow vertical scrolling inside the carousel area on mobile */
#repairsCarousel .carousel-inner {
  touch-action: pan-y;
  -ms-touch-action: pan-y;
}


@media (max-width: 768px) {

  /* Carousel Arrows */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 36px;
    height: 36px;
    background-size: 40% 40%;
  }

  /* Carousel Indicators */
  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }

  /* Slide Content */
  .repairs-carousel .row {
    text-align: center;
  }

  .repairs-carousel img {
    max-height: 200px;
    margin-bottom: 15px;
  }

  .repairs-carousel h5 {
    font-size: 1.1rem;
  }

  .repairs-carousel p {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .repairs-carousel .btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  /* Pause/Play Buttons */
  .repairs-carousel .btn-outline-dark {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  /* Stack carousel items vertically */
  .repairs-carousel .carousel-item .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Image on top, text below */
  .repairs-carousel .carousel-item img {
    order: 1;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
  }

  .repairs-carousel .carousel-item .col-md-6:last-child {
    order: 2;
    width: 100%;
    padding: 0 15px;
  }

  /* Adjust heading and text sizes */
  .repairs-carousel .carousel-item h5 {
    font-size: 1.1rem;
    margin-top: 10px;
  }

  .repairs-carousel .carousel-item p {
    font-size: 0.9rem;
  }

  .carousel-item .col-md-6 {
    width: 80%;
  }

}

@media (max-width: 480px) {
  .repairs-carousel img {
    max-height: 180px;
  }

  .repairs-carousel h5 {
    font-size: 1rem;
  }

  .repairs-carousel p {
    font-size: 0.85rem;
  }
}


/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 20px 0;
  font-size: 0.9rem;
}

.footer a {
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #0dcaf0;
}


/* -------------------------------------------------------------------------- */
/*                                   Article                                  */
/* -------------------------------------------------------------------------- */
.article-header {
  padding-bottom: 0.75% !important;
}

/* Article Header */
.article-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 500 !important;
}

.article-header p {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Article Content */
.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.article-content p,
.article-content li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.article-content ul {
  padding-left: 20px;
}

/* Breadcrumb */
.breadcrumb-container {
  background: var(--section-bg) !important;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--text-color);
}

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

.breadcrumb-item a {
  text-decoration: none;
  color: var(--breadcrumb-link);
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-color);
}

.article-image {
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

.article-image-audio-hifi {
  background-image: url('../images/repairs-audio-hifi.jpg');
}

.article-image-PCB {
  background-image: url('../images/repairs-pcb.jpg');
}

.article-image-drones {
  background-image: url('../images/repairs-drones.jpg');
}

.article-image-consoles {
  background-image: url('../images/repairs-consoles.jpg');
}

.article-image-laptop {
  background-image: url('../images/repairs-laptop.jpg');
}

.article-image-tablet {
  background-image: url('../images/repairs-tablet.jpg');
}

.article-image-subsea {
  background-image: url('../images/repairs-subsea.jpg');
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.1rem;
  }

  .article-content p,
  .article-content li {
    font-size: 0.95rem;
  }

  .article-image {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .article-image {
    min-height: 225px;
  }
}


/* -------------------------------------------------------------------------- */
/*                             Electronic Repairs                             */
/* -------------------------------------------------------------------------- */

.electronic-repair-cards .btn-dark {
  background: var(--primary-color);
  color: #fff;
}