/* =========================================================
   Logo Pop Ads - Global Stylesheet (site.css)
   Centralised from inline <style> blocks across pages
   ========================================================= */

/* Global page baseline */
body {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent sideways scrolling */
}

/* Cards: subtle image zoom on hover */
.card img {
  transition: transform 0.3s;
}
.card:hover img {
  transform: scale(1.05);
}

/* Shared section image styling */
.section-img {
  width: 100%;
  height: auto;
  max-height: 450px; /* default used on several pages */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Per-page image height overrides (single stylesheet, controlled by <body class="...">) */
body.page-img-480 .section-img { max-height: 480px; }
body.page-img-460 .section-img { max-height: 460px; }
body.page-img-420 .section-img { max-height: 420px; }

/* FAQ + Vacancies accordion highlight */
.accordion-button:not(.collapsed) {
  background-color: #ffc107;
  color: #000;
  font-weight: 600;
}
.accordion-button::after {
  filter: invert(1);
}

/* FAQ */
.faq-heading {
  margin-top: 50px;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Vacancies extra styles */
.role-heading { font-weight: 700; }
.vacancy-intro { font-size: 1.05rem; }

/* Remove Bootstrap's default arrow */
.custom-acc-btn::after {
  display: none !important;
}

/* Layout for custom arrow + title */
.custom-acc-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 1.25rem;
}

/* Right arrow (collapsed) */
.custom-acc-btn .acc-arrow {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #000;
  transition: transform 0.2s ease;
}

/* Down arrow (expanded) */
.custom-acc-btn:not(.collapsed) .acc-arrow {
  transform: rotate(90deg);
}

/* Title styling */
.custom-acc-btn .acc-title {
  font-weight: 600;
  flex-grow: 1;
}

/* Thank-you pages */
.thank-icon {
  font-size: 70px;
}

/* Error pages */
.hero-error {
  background-color: #dc3545;
  color: white;
  padding: 5rem 1rem;
  text-align: center;
}
.hero-error h1 {
  font-weight: bold;
}
.hero-error .btn {
  margin-top: 1.5rem;
}

/* Quotation page (scoped so it doesn’t affect other pages) */
body.page-quotation {
  margin: 0;
  background: #f5f5f5;
}
body.page-quotation .iframe-container {
  position: relative;
  width: 100%;
  background: #fff;
}
body.page-quotation iframe {
  width: 100%;
  height: 100vh;
  border: none;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}
body.page-quotation iframe.loaded {
  opacity: 1;
}

/* MOBILE FIXES */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2rem !important;
  }

  #hero p.lead {
    font-size: 1rem !important;
  }

  section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .card-body img {
    height: auto !important;
    width: 100% !important;
  }

  .row.align-items-center {
    text-align: center;
  }

  .row.align-items-center > div {
    margin-bottom: 1.5rem;
  }
}