/*
 * custom.css — ACS Landing Page Restyle
 * Load AFTER main.css in layouts/app.blade.php
 */

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --accent:          #E54C38;
  --accent-dark:     #c43a28;
  --hero-bg:         #1a1a2e;
  --section-bg:      #fdf9f2;
  --section-alt-bg:  #f4f4f0;
  --dark-bg:         #111827;
  --dark-surface:    rgba(255,255,255,0.06);
  --dark-border:     rgba(255,255,255,0.1);
  --text-primary:    #111111;
  --text-secondary:  #555555;
  --text-white:      #ffffff;
  --border:          rgba(0,0,0,0.08);
  --radius-sm:       6px;
  --radius-md:       10px;
  --radius-lg:       14px;
  --shadow-sm:       0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:       0 4px 16px rgba(0,0,0,0.08);
  --section-pad:     80px;
  --section-pad-mob: 52px;
}

/* ============================================================
   GLOBAL RESETS
   ============================================================ */
.row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

.text-accent { color: var(--accent) !important; }
.text-white  { color: var(--text-white) !important; }

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
section, .section {
  padding-top:    var(--section-pad);
  padding-bottom: var(--section-pad);
}

section.section-alt, .section-alt {
  background-color: var(--section-alt-bg);
}

section.section-dark, .section-dark {
  background-color: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Hero overrides section padding */
#hero, .hero {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 767px) {
  section, .section {
    padding-top:    var(--section-pad-mob);
    padding-bottom: var(--section-pad-mob);
  }
}

@media (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0s !important; }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  text-align: center;
  padding-bottom: 52px;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-eyebrow--light {
  color: var(--accent);
  /* same as normal on light bg */
}

.section-title h2,
.section-title-dark {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--text-primary) !important;
  margin-bottom: 0;
  padding-bottom: 20px;
  position: relative;
}

.section-title-dark {
  color: #111111 !important;
}

.section-title h2::before,
.section-title-dark::before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: rgba(0,0,0,0.12);
  bottom: 1px;
  left: 0; right: 0;
  margin: auto;
}

.section-title-dark::before {
  background: rgba(0,0,0,0.12);
}

.section-title h2::after,
.section-title-dark::after {
  content: "";
  position: absolute;
  display: block;
  width: 52px;
  height: 3px;
  background: var(--accent);
  bottom: 0;
  left: 0; right: 0;
  margin: auto;
  border-radius: 2px;
}

.section-title p {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================================
   HERO
   ============================================================ */
#hero, .hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background-color: var(--hero-bg);
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
  min-height: inherit;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  /* darken the bg image so text is readable */

}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 100px 0 60px;
}

.hero-text-col {
  flex: 1;
  max-width: 580px;
}

.hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-heading {
  font-size: clamp(28px, 5.5vw, 60px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin-bottom: 20px !important;
  color: #ffffff !important;
}

.hero-desc {
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

.hero-desc * { color: rgba(255,255,255,0.75); }

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 32px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
  letter-spacing: 0.3px;
}

.btn-hero-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-hero-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 13px 32px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.btn-hero-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* Hero badge cards (right column) */
.hero-badge-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 260px;
  flex-shrink: 0;
}

.hero-badge-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  backdrop-filter: blur(8px);
}

.hero-badge-bar {
  width: 4px;
  height: 44px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-badge-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.hero-badge-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Mobile hero card */
.hero-mobile-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px 20px 24px;
  border-top: 2px solid rgba(229,76,56,0.6);
}

.hero-mobile-card h2 {
  font-size: 1.2rem !important;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #fff !important;
}

.hero-mobile-card p {
  font-size: 0.85rem !important;
  line-height: 1.55;
  margin-bottom: 0;
  color: rgba(255,255,255,0.75);
}

/* Invisible carousel controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  opacity: 0 !important;
}

@media (max-width: 767px) {
  #hero, .hero { min-height: 440px; }
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.about-card-bar {
  width: 4px;
  background: var(--accent);
  flex-shrink: 0;
}

.about-card-body {
  padding: 26px 30px;
  flex: 1;
}

.about-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.about-card-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: var(--accent);
  border-color: var(--accent);
}

.service-card-top-bar {
  height: 4px;
  background: var(--accent);
  width: 100%;
  transition: background 0.25s ease;
}

.service-card:hover .service-card-top-bar {
  background: var(--accent-dark);
}

.service-card-body {
  text-align: left;
  padding: 28px 24px 30px;
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(229,76,56,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
  transition: background 0.25s ease;
}

.service-icon-wrap i {
  font-size: 26px;
  color: var(--accent);
  transition: color 0.25s ease;
}

.service-card-body h3 {
  font-size: 1.10rem;
  font-weight: 600;
  color: var(--accent) !important;
  margin-bottom: 10px;
  transition: color 0.25s ease;
  text-align: center;
}

.service-card-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 0;
  transition: color 0.25s ease;
}

/* On hover — flip everything to white */
.service-card:hover .service-icon-wrap {
  background: rgba(255,255,255,0.2);
}

.service-card:hover .service-icon-wrap i {
  color: #fff;
}

.service-card:hover .service-card-body h3 {
  color: #fff !important;
}

.service-card:hover .service-card-body p {
  color: rgba(255,255,255,0.85);
}

.service-card:hover .service-card-body h4,
.service-card:hover .service-card-body h5,
.service-card:hover .service-card-body ul,
.service-card:hover .service-card-body li {
  color: rgba(255,255,255,0.85) !important;
}

/* ============================================================
   ACCREDITATIONS
   ============================================================ */
.acc-nav {
  gap: 8px;
}

.acc-nav-link {
  display: block;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  background: #fff;
  transition: all 0.2s ease;
  text-align: center;
}

.acc-nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.acc-nav-link.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.acc-content-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px 28px 28px 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}

.acc-content-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.acc-image {
  border-radius: var(--radius-md);
  max-width: 100%;
}

@media (max-width: 991px) {
  .acc-nav {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
  .acc-nav .nav-item { flex: 1 1 auto; }
  .acc-nav-link { text-align: center; }
}

/* ============================================================
   NEWS
   ============================================================ */
.news-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.news-card-img-wrap {
  flex-shrink: 0;
}

.news-card-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.news-card-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.news-card-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.news-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent) !important;
  text-decoration: none;
}

.news-read-more:hover { text-decoration: underline; }

.news-prev, .news-next {
  width: 40px !important;
  height: 40px !important;
  background: var(--accent) !important;
  border-radius: 50% !important;
  top: auto !important;
  bottom: 0 !important;
  opacity: 1 !important;
  left: auto !important;
  right: auto !important;
  position: relative !important;
}

.news #newsCarousel .carousel-control-prev {
  position: absolute !important;
  left: -20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  bottom: auto !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--accent) !important;
  opacity: 1 !important;
}

.news #newsCarousel .carousel-control-next {
  position: absolute !important;
  right: -20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  bottom: auto !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--accent) !important;
  opacity: 1 !important;
}

#newsCarousel { padding-bottom: 0; overflow: visible; }
.news .container { padding-left: 40px; padding-right: 40px; }

@media (max-width: 767px) {
  .news-card { flex-direction: column; }
  .news-card-img { width: 100%; height: 200px; }
}

/* ============================================================
   COMPLIANCE
   ============================================================ */
.compliance-topic {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.compliance-topic-title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  text-align: center;
  color: var(--text-primary) !important;
  margin-bottom: 14px;
}

.compliance-topic-desc {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
}

.accordion-card {
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.accordion-card:hover { box-shadow: var(--shadow-sm); }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  background: #f8f8f6;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text-primary);
  transition: background 0.2s ease;
  user-select: none;
  border-left: 3px solid transparent;
}

.accordion-card.active .accordion-header {
  border-left-color: var(--accent);
  background: #fff;
}

.accordion-header:hover { background: #f0efeb; }

.accordion-title { flex: 1; padding-right: 12px; }

.accordion-icon {
  flex-shrink: 0;
  font-size: 11px;
  color: #aaa;
  transition: transform 0.3s ease;
}

.accordion-card.active .accordion-icon { transform: rotate(180deg); }

.collapse-content { display: none; }

.accordion-body {
  padding: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.accordion-body a { color: var(--accent); text-decoration: none; }
.accordion-body a:hover { text-decoration: underline; }

.accordion-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.93rem;
}

.accordion-body th,
.accordion-body td {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.accordion-body th {
  background: #f5f5f3;
  font-weight: 600;
}

@media (max-width: 575px) {
  .compliance-topic { padding: 20px 16px; }
}

/* ============================================================
   TESTIMONIALS (dark section)
   ============================================================ */
.testimonials-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: #555555;
}

.testimonials-intro * { color: #555555 !important; }

.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin: 8px;
}

.testimonial-quote-mark {
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: Georgia, serif;
  opacity: 0.8;
}

.testimonial-message {
  font-size: 15px;
  line-height: 1.75;
  color: #444444;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,0,0,0.08);
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: #111111;
}

.testimonial-role {
  font-size: 12px;
  color: #888888;
}

.testimonial-stars i {
  color: #E54C38;
  font-size: 13px;
}

.testimonials .swiper-pagination-bullet {
  background: rgba(0,0,0,0.15) !important;
}

.testimonials .swiper-pagination-bullet-active {
  background: var(--accent) !important;
}

/* ============================================================
   JOBS
   ============================================================ */
.scrollable-widget {
  max-height: 600px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-map {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

@media (max-width: 767px) { .contact-map { height: 220px; } }

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: rgba(229,76,56,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon i {
  font-size: 20px;
  color: var(--accent);
}

.contact-info-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-info-card p {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 0;
}

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-input {
  border-radius: var(--radius-sm) !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  font-size: 14px !important;
  padding: 11px 14px !important;
  color: var(--text-primary) !important;
  background: #fafaf8 !important;
  transition: border-color 0.2s ease !important;
}

.contact-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(229,76,56,0.08) !important;
  background: #fff !important;
}

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 36px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  letter-spacing: 0.3px;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #ffffff;
  color: #444444;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 60px 24px 0;
  font-family: Arial, sans-serif;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-bottom: 48px;
}

.footer-col {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-brand {
  flex: 1 1 240px;
}

.footer-logo {
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: 16px;
  /* no filter needed on white bg */
  filter: none;
  opacity: 1;
}

.footer-desc {
  font-size: 13px;
  color: #000000;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-badges img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.footer-col-title {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li { margin-bottom: 8px; }

.footer-list a {
  font-size: 18px;
  color: #000000;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-list a:hover { color: var(--accent); }

.footer-contact-list {
  font-style: normal;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 18px;
  color: #000000;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--accent);
  margin-top: 2px;
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  text-align: center !important;
  max-width: 100%;
  margin: 0;
  width: 100%;
}

.footer-legal small {
  font-size: 12px;
  color: #000000;
}

@media (max-width: 991px) {
  .footer-col { flex: 1 1 45%; }
}

@media (max-width: 575px) {
  .footer-col { flex: 1 1 100%; }
  .footer-logo { width: 150px; }
  .site-footer { padding-top: 40px; }
}

/* ============================================================
   FIXED CONTACT US BUTTON
   ============================================================ */
.chat-with-us {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(80%);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 10px;
  border-radius: 10px 0 0 10px;
  box-shadow: -3px 0 12px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: background 0.25s ease;
}

.chat-with-us span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.chat-with-us:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-menu a {
  color: #111;
  text-decoration: none;
  display: block;
  padding: 6px 0;
}

.mobile-menu a:hover { color: var(--accent) !important; }

/* ============================================================
   CONTAINER WIDTH (large screens)
   ============================================================ */
@media (min-width: 1200px) {
  .container, .container-lg, .container-md,
  .container-sm, .container-xl, .container-xxl {
    max-width: 1180px !important;
  }
}

@media (min-width: 1400px) {
  .container, .container-lg, .container-md,
  .container-sm, .container-xl, .container-xxl {
    max-width: 1380px !important;
  }
}

@media (min-width: 1600px) {
  .container, .container-lg, .container-md,
  .container-sm, .container-xl, .container-xxl {
    max-width: 1580px !important;
  }
}

@media (min-width: 1200px) {
  .footer-inner {
    max-width: 1160px !important;
  }
}

@media (min-width: 1400px) {
  .footer-inner {
    max-width: 1360px !important;
  }
}

@media (min-width: 1600px) {
  .footer-inner {
    max-width: 1560px !important;
  }
}

@media (max-width: 767px) {
  .hero-bg {
    background-position: center center;
    background-size: cover;
  }

  /* Slide 1 — center on the nurses group */
  .carousel-item:first-child .hero-bg {
    background-position: 65% center;
  }

  /* Slide 2 — center on the hospital building */
  .carousel-item:nth-child(2) .hero-bg {
    background-position: 70% center;
  }
}

@media (max-width: 767px) {

  #hero, .hero {
    min-height: unset;
  }

  #hero .carousel,
  #hero .carousel-inner,
  #hero .carousel-item {
    min-height: unset;
    position: relative;
  }

  /* Image sits on top, fixed height */
  .hero-bg {
    position: relative !important;
    height: 240px;
    width: 100%;
  }

  /* Text card sits below the image, normal flow */
  .hero-mobile-card {
    position: relative !important;
    bottom: unset;
    left: unset;
    right: unset;
    z-index: 1;
    background: #1a1a2e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 20px 18px 24px;
    border-top: 3px solid var(--accent, #E54C38);
  }

  .hero-mobile-card h2 {
    font-size: 1.25rem !important;
    margin-bottom: 8px;
    color: #fff !important;
  }

  .hero-mobile-card p {
    font-size: 0.88rem !important;
    line-height: 1.65;
    margin-bottom: 0;
    color: rgba(255,255,255,0.75) !important;
  }

  /* Hide Browse Jobs button on mobile */
  .hero-mobile-card .btn-hero-primary {
    display: none !important;
  }

  /* Slide 1 — show nurses faces */
  .carousel-item:first-child .hero-bg {
    background-position: 60% 25%;
  }

  /* Slide 2 — show hospital building */
  .carousel-item:nth-child(2) .hero-bg {
    background-position: 50% 35%;
  }
}

/* Captcha image — fluid on all screens */
#captcha-img img {
  display: block;
  height: clamp(38px, 8vw, 52px);
  width: auto;
  max-width: 100%;
  border-radius: 6px;
  border: 1.5px solid #e0e0e0;
}
