/* ============================================
   AmeriPath Consultancy — Custom Styles
   Stack: Bootstrap 5 + custom CSS3
   ============================================ */

:root {
  /* Brand palette */
  --ap-primary-navy: #102F73;
  --ap-deep-navy: #0B2458;
  --ap-royal-blue: #1454A4;
  --ap-brand-red: #BE1025;
  --ap-white: #FFFFFF;
  --ap-light-bg: #F5F8FC;
  --ap-light-blue: #EAF1FA;
  --ap-body-text: #344054;
  --ap-muted-text: #667085;
  --ap-border: #E3E8F0;

  /* Typography */
  --ap-font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --ap-shadow-sm: 0 1px 3px rgba(16, 47, 115, 0.06);
  --ap-shadow: 0 4px 20px rgba(16, 47, 115, 0.08);
  --ap-shadow-lg: 0 12px 40px rgba(16, 47, 115, 0.12);
  --ap-shadow-xl: 0 24px 60px rgba(16, 47, 115, 0.16);

  /* Radius */
  --ap-radius: 12px;
  --ap-radius-lg: 20px;
  --ap-radius-sm: 8px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
  font-family: var(--ap-font);
  color: var(--ap-body-text);
  background-color: var(--ap-white);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ap-font);
  color: var(--ap-primary-navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

a { color: var(--ap-royal-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ap-primary-navy); }

p { margin-bottom: 1rem; }

.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }

.container-narrow { max-width: 860px; margin: 0 auto; }

/* ---------- Labels & Accents ---------- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ap-brand-red);
  margin-bottom: 12px;
  position: relative;
  padding-left: 36px;
}
.section-label::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 2px;
  background: var(--ap-brand-red);
  transform: translateY(-50%);
}
.section-label.center { padding-left: 36px; }

.accent-line {
  width: 56px; height: 3px;
  background: var(--ap-brand-red);
  border-radius: 2px;
  margin-bottom: 20px;
}

.text-navy { color: var(--ap-primary-navy) !important; }
.text-red { color: var(--ap-brand-red) !important; }
.text-muted-ap { color: var(--ap-muted-text) !important; }
.bg-light-ap { background-color: var(--ap-light-bg) !important; }
.bg-light-blue { background-color: var(--ap-light-blue) !important; }
.bg-navy { background-color: var(--ap-primary-navy) !important; }
.bg-deep-navy { background-color: var(--ap-deep-navy) !important; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--ap-font);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 28px;
  border-radius: var(--ap-radius-sm);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
}
.btn-lg { padding: 14px 34px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

.btn-brand-red {
  background: var(--ap-brand-red);
  color: var(--ap-white);
  border-color: var(--ap-brand-red);
}
.btn-brand-red:hover {
  background: #a30d20;
  color: var(--ap-white);
  border-color: #a30d20;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(190, 16, 37, 0.3);
}

.btn-navy {
  background: var(--ap-primary-navy);
  color: var(--ap-white);
  border-color: var(--ap-primary-navy);
}
.btn-navy:hover {
  background: var(--ap-deep-navy);
  color: var(--ap-white);
  border-color: var(--ap-deep-navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 47, 115, 0.3);
}

.btn-outline-navy {
  background: transparent;
  color: var(--ap-primary-navy);
  border-color: var(--ap-primary-navy);
}
.btn-outline-navy:hover {
  background: var(--ap-primary-navy);
  color: var(--ap-white);
  border-color: var(--ap-primary-navy);
}

.btn-outline-white {
  background: transparent;
  color: var(--ap-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: var(--ap-white);
  color: var(--ap-primary-navy);
  border-color: var(--ap-white);
}

.btn-link-arrow {
  color: var(--ap-royal-blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.btn-link-arrow:hover { color: var(--ap-brand-red); gap: 10px; }
.btn-link-arrow i { font-size: 0.8rem; }

/* ---------- Top Utility Bar ---------- */
.ap-top-bar {
  background: var(--ap-deep-navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 8px 0;
}
.ap-top-bar a { color: rgba(255,255,255,0.85); }
.ap-top-bar a:hover { color: var(--ap-white); }
.ap-top-bar .top-info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ap-top-bar .top-info span, .ap-top-bar .top-info a {
  display: inline-flex; align-items: center; gap: 7px;
}
.ap-top-bar i { color: var(--ap-brand-red); font-size: 0.85rem; }
.ap-top-bar .top-social { display: flex; gap: 14px; }

/* ---------- Main Header ---------- */
.ap-header {
  background: var(--ap-white);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  z-index: 1030;
}
.ap-header.scrolled {
  box-shadow: var(--ap-shadow);
}
.ap-header .navbar { padding: 14px 0; }

.ap-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ap-logo img { height: 44px; width: auto; }
.ap-logo .logo-text { line-height: 1.1; }
.ap-logo .logo-text .lt-main {
  font-size: 1.3rem; font-weight: 800; color: var(--ap-primary-navy);
  letter-spacing: -0.02em;
}
.ap-logo .logo-text .lt-sub {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ap-brand-red);
}

.ap-header .nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ap-body-text);
  padding: 8px 14px !important;
  transition: color 0.2s ease;
  position: relative;
}
.ap-header .nav-link:hover,
.ap-header .nav-link.active {
  color: var(--ap-primary-navy);
}
.ap-header .nav-link.active::after {
  content: "";
  position: absolute; bottom: 2px; left: 14px; right: 14px;
  height: 2px; background: var(--ap-brand-red); border-radius: 2px;
}

.ap-header .dropdown-menu {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow-lg);
  padding: 8px;
  min-width: 240px;
}
.ap-header .dropdown-item {
  border-radius: var(--ap-radius-sm);
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ap-body-text);
  transition: all 0.2s ease;
}
.ap-header .dropdown-item:hover {
  background: var(--ap-light-blue);
  color: var(--ap-primary-navy);
}
.ap-header .dropdown-toggle::after { border: none; }
.ap-header .dropdown-toggle .fa-chevron-down {
  font-size: 0.65rem; margin-left: 4px; transition: transform 0.2s ease;
}
/* Main navigation dropdown — direct child only */
.ap-header .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
}

.ap-header .nav-item.dropdown:hover > .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.ap-header-actions { display: flex; align-items: center; gap: 12px; }
.ap-header-actions .btn { white-space: nowrap; }


/* Mobile nav toggle */
.ap-header .navbar-toggler {
  border: none; padding: 8px;
}
.ap-header .navbar-toggler:focus { box-shadow: none; }
.ap-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23102F73' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.ap-hero {
  background: var(--ap-light-bg);
  padding: 50px 0 80px;
  position: relative;
  overflow: hidden;
}
.ap-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.ap-hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.05);
}
.ap-hero-bg-slide.active {
  opacity: 1;
  transform: scale(1.12);
  transition: opacity 1.2s ease, transform 8s ease-out;
}
/* Dark overlay so text stays readable over the photo */
.ap-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 36, 88, 0.88) 0%, rgba(16, 47, 115, 0.78) 50%, rgba(16, 47, 115, 0.65) 100%);
}
.ap-hero::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.ap-hero-slide { display: none; animation: apFadeIn 0.6s ease; }
.ap-hero-slide.active { display: block; }
@keyframes apFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.ap-hero-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ap-white); margin-bottom: 16px;
}
.ap-hero-label::before {
  background: var(--ap-brand-red) !important;
}
.ap-hero h1 { margin-bottom: 20px; color: var(--ap-white); }
.ap-hero h1 .highlight { color: #FFD4D9; }
.ap-hero-lead { font-size: 1.1rem; color: rgba(255, 255, 255, 0.82); margin-bottom: 28px; max-width: 520px; }
.ap-hero-trust .trust-item { color: var(--ap-white) !important; }
.ap-hero-trust .trust-item i { color: var(--ap-brand-red); }
.ap-hero-indicators button { background: rgba(255,255,255,0.3) !important; }
.ap-hero-indicators button.active { background: var(--ap-white) !important; }
.ap-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }

.ap-hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.ap-hero-trust .trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 600; color: var(--ap-primary-navy); }
.ap-hero-trust .trust-item i { color: var(--ap-brand-red); font-size: 1.1rem; }

.ap-hero-indicators { display: flex; gap: 10px; margin-top: 28px; }
.ap-hero-indicators button {
  width: 36px; height: 4px; border: none; border-radius: 2px;
  background: var(--ap-border); cursor: pointer; transition: all 0.3s ease; padding: 0;
}
.ap-hero-indicators button.active { background: var(--ap-primary-navy); width: 56px; }

/* Hero form card */
.ap-hero-form-card {
  background: var(--ap-white);
  border-radius: var(--ap-radius-lg);
  box-shadow: var(--ap-shadow-xl);
  padding: 32px;
  border: 1px solid var(--ap-border);
}
.ap-hero-form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.ap-hero-form-card .form-subtitle { font-size: 0.88rem; color: var(--ap-muted-text); margin-bottom: 22px; }

/* ---------- Forms ---------- */
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--ap-primary-navy); margin-bottom: 6px; }
.form-control, .form-select {
  border: 1.5px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--ap-body-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ap-royal-blue);
  box-shadow: 0 0 0 3px rgba(20, 84, 164, 0.12);
}
.form-control::placeholder { color: #98A2B3; }
textarea.form-control { min-height: 90px; }
.form-text { font-size: 0.8rem; }

.ap-form-success {
  background: #ECFDF3;
  border: 1px solid #ABEFC6;
  border-radius: var(--ap-radius);
  padding: 20px 24px;
  display: none;
  align-items: flex-start;
  gap: 14px;
}
.ap-form-success.show { display: flex; animation: apFadeIn 0.4s ease; }
.ap-form-success i { color: #12B76A; font-size: 1.6rem; margin-top: 2px; }
.ap-form-success h5 { color: #027A48; margin-bottom: 4px; font-size: 1.05rem; }
.ap-form-success p { font-size: 0.88rem; color: #064E3B; margin: 0; }

.ap-form-error {
  border-color: var(--ap-brand-red) !important;
  box-shadow: 0 0 0 3px rgba(190, 16, 37, 0.1) !important;
}
.invalid-feedback { font-size: 0.78rem; color: var(--ap-brand-red); }

/* ---------- Cards ---------- */
.ap-feature-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 32px 26px;
  height: 100%;
  transition: all 0.3s ease;
}
.ap-feature-card:hover {
  border-color: var(--ap-royal-blue);
  box-shadow: var(--ap-shadow);
  transform: translateY(-4px);
}
.ap-feature-card .icon-wrap {
  width: 56px; height: 56px;
  background: var(--ap-light-blue);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.ap-feature-card .icon-wrap i { font-size: 1.4rem; color: var(--ap-primary-navy); }
.ap-feature-card:hover .icon-wrap { background: var(--ap-primary-navy); }
.ap-feature-card:hover .icon-wrap i { color: var(--ap-white); }
.ap-feature-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.ap-feature-card p { font-size: 0.9rem; color: var(--ap-muted-text); margin: 0; }

/* Service cards */
.ap-service-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  display: flex; flex-direction: column;
}
.ap-service-card:hover {
  border-color: var(--ap-royal-blue);
  box-shadow: var(--ap-shadow-lg);
  transform: translateY(-4px);
}
.ap-service-card .card-icon-area {
  background: var(--ap-light-blue);
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
}
.ap-service-card .card-icon-area i { font-size: 2rem; color: var(--ap-primary-navy); transition: color 0.3s ease; }
.ap-service-card:hover .card-icon-area i { color: var(--ap-brand-red); }
.ap-service-card .card-body-area { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.ap-service-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.ap-service-card p { font-size: 0.86rem; color: var(--ap-muted-text); margin-bottom: 16px; flex: 1; }

/* Service card with image */
.ap-service-card-img {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
}
.ap-service-card-img:hover { box-shadow: var(--ap-shadow-lg); transform: translateY(-4px); }
.ap-service-card-img img { width: 100%; height: 160px; object-fit: cover; }
.ap-service-card-img .card-body-area { padding: 22px; }
.ap-service-card-img h4 { font-size: 1.05rem; margin-bottom: 8px; }
.ap-service-card-img p { font-size: 0.86rem; color: var(--ap-muted-text); }

/* ---------- About Section ---------- */
.ap-about-img { border-radius: var(--ap-radius-lg); overflow: hidden; box-shadow: var(--ap-shadow-lg); position: relative; }
.ap-about-img img { width: 100%; height: 420px; object-fit: cover; }
.ap-about-img::after {
  content: "";
  position: absolute; bottom: -20px; left: -20px;
  width: 120px; height: 120px;
  background: var(--ap-light-blue);
  border-radius: 20px;
  z-index: -1;
}
.ap-about-highlights { list-style: none; padding: 0; margin: 24px 0; }
.ap-about-highlights li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--ap-border);
}
.ap-about-highlights li:last-child { border-bottom: none; }
.ap-about-highlights i { color: var(--ap-brand-red); font-size: 1.1rem; margin-top: 2px; }
.ap-about-highlights strong { display: block; color: var(--ap-primary-navy); font-size: 0.95rem; }
.ap-about-highlights span { font-size: 0.88rem; color: var(--ap-muted-text); }

/* ---------- Process Timeline ---------- */
.ap-process { position: relative; }
.ap-process-line {
  position: absolute; top: 40px; left: 10%; right: 10%;
  height: 2px; background: var(--ap-border);
}
.ap-process-step { text-align: center; position: relative; }
.ap-process-step .step-num {
  width: 80px; height: 80px; margin: 0 auto 20px;
  background: var(--ap-white);
  border: 3px solid var(--ap-light-blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: var(--ap-primary-navy);
  position: relative; z-index: 2;
  transition: all 0.3s ease;
}
.ap-process-step:hover .step-num {
  border-color: var(--ap-brand-red);
  background: var(--ap-primary-navy);
  color: var(--ap-white);
  transform: scale(1.05);
}
.ap-process-step .step-num i { font-size: 1.4rem; }
.ap-process-step .step-num .num-text { display: none; }
.ap-process-step h5 { font-size: 1rem; margin-bottom: 6px; }
.ap-process-step p { font-size: 0.85rem; color: var(--ap-muted-text); margin: 0; }

/* Mobile vertical timeline */
@media (max-width: 767px) {
  .ap-process-line { display: none; }
  .ap-process-step { text-align: left; display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
  .ap-process-step .step-num { width: 56px; height: 56px; margin: 0; flex-shrink: 0; font-size: 1.1rem; }
  .ap-process-step .step-content { padding-top: 10px; }
}

/* ---------- Testimonials ---------- */
.ap-testimonial-carousel { position: relative; max-width: 800px; margin: 0 auto; }
.ap-testimonial-slide { display: none; animation: apFadeIn 0.5s ease; }
.ap-testimonial-slide.active { display: block; }
.ap-testimonial-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--ap-shadow);
}
.ap-testimonial-card .quote-icon { font-size: 2rem; color: var(--ap-light-blue); margin-bottom: 16px; }
.ap-testimonial-card .stars { color: #F79009; font-size: 1.1rem; margin-bottom: 16px; }
.ap-testimonial-card .quote-text { font-size: 1.15rem; color: var(--ap-body-text); font-style: italic; margin-bottom: 24px; line-height: 1.7; }
.ap-testimonial-card .client-name { font-weight: 700; color: var(--ap-primary-navy); }
.ap-testimonial-card .client-label { font-size: 0.82rem; color: var(--ap-muted-text); }
.ap-testimonial-nav { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.ap-testimonial-nav button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ap-border); background: var(--ap-white);
  color: var(--ap-primary-navy); cursor: pointer; transition: all 0.2s ease;
}
.ap-testimonial-nav button:hover { background: var(--ap-primary-navy); color: var(--ap-white); border-color: var(--ap-primary-navy); }

/* ---------- Pricing Cards ---------- */
.ap-price-card {
  background: var(--ap-white);
  border: 1.5px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}
.ap-price-card:hover { border-color: var(--ap-royal-blue); box-shadow: var(--ap-shadow-lg); transform: translateY(-4px); }
.ap-price-card.featured {
  border-color: var(--ap-primary-navy);
  border-width: 2px;
  box-shadow: var(--ap-shadow);
}
.ap-price-card .featured-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ap-primary-navy); color: var(--ap-white);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px;
}
.ap-price-card .pkg-name { font-size: 1.15rem; font-weight: 700; color: var(--ap-primary-navy); margin-bottom: 4px; }
.ap-price-card .pkg-duration { font-size: 0.85rem; color: var(--ap-muted-text); margin-bottom: 20px; }
.ap-price-card .pkg-price { font-size: 2.4rem; font-weight: 800; color: var(--ap-primary-navy); margin-bottom: 20px; }
.ap-price-card .pkg-price.free { color: var(--ap-brand-red); }
.ap-price-card .pkg-desc { font-size: 0.88rem; color: var(--ap-muted-text); margin-bottom: 24px; }
.ap-price-card .pkg-features { list-style: none; padding: 0; margin: 0 0 28px; }
.ap-price-card .pkg-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 0.86rem; color: var(--ap-body-text);
  border-bottom: 1px solid var(--ap-border);
}
.ap-price-card .pkg-features li:last-child { border-bottom: none; }
.ap-price-card .pkg-features i { color: #12B76A; font-size: 0.9rem; margin-top: 3px; }
.ap-price-card .btn { width: 100%; }

/* ---------- Portal CTA ---------- */
.ap-portal-cta {
  background: linear-gradient(135deg, var(--ap-deep-navy) 0%, var(--ap-primary-navy) 100%);
  color: var(--ap-white);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.ap-portal-cta::before {
  content: "";
  position: absolute; top: 50%; right: -60px; transform: translateY(-50%);
  width: 300px; height: 300px;
  border: 2px solid rgba(255,255,255,0.06); border-radius: 50%;
}
.ap-portal-cta::after {
  content: "";
  position: absolute; top: 50%; right: 30px; transform: translateY(-50%);
  width: 180px; height: 180px;
  border: 2px solid rgba(190, 16, 37, 0.15); border-radius: 50%;
}
.ap-portal-cta h2 { color: var(--ap-white); }
.ap-portal-cta p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.ap-portal-cta .portal-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.ap-portal-cta .portal-icon i { font-size: 1.8rem; color: var(--ap-white); }

/* ---------- Alerts Cards ---------- */
.ap-alert-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
}
.ap-alert-card:hover { box-shadow: var(--ap-shadow-lg); transform: translateY(-4px); }
.ap-alert-card .alert-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 20px;
}
.tag-update { background: #FEF3F2; color: var(--ap-brand-red); }
.tag-interview { background: var(--ap-light-blue); color: var(--ap-primary-navy); }
.tag-application { background: #FEF6E6; color: #B54708; }
.ap-alert-card .alert-body { padding: 24px; }
.ap-alert-card .alert-date { font-size: 0.8rem; color: var(--ap-muted-text); margin-bottom: 10px; }
.ap-alert-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.ap-alert-card p { font-size: 0.86rem; color: var(--ap-muted-text); margin-bottom: 16px; }

/* ---------- Disclaimer Block ---------- */
.ap-disclaimer {
  background: var(--ap-light-bg);
  border-left: 4px solid var(--ap-brand-red);
  border-radius: var(--ap-radius-sm);
  padding: 24px 28px;
}
.ap-disclaimer .disclaimer-label {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ap-brand-red); margin-bottom: 8px;
}
.ap-disclaimer p { font-size: 1rem; color: var(--ap-muted-text); margin: 0; line-height: 1.7; }

/* ---------- Footer ---------- */
.ap-footer {
  background: var(--ap-deep-navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.ap-footer h5 {
  color: var(--ap-white); font-size: 1rem; font-weight: 700;
  margin-bottom: 20px; position: relative; padding-bottom: 12px;
}
.ap-footer h5::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 32px; height: 2px; background: var(--ap-brand-red);
}
.ap-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.ap-footer .footer-links li { margin-bottom: 10px; }
.ap-footer .footer-links a {
  color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: color 0.2s ease, padding-left 0.2s ease;
}
.ap-footer .footer-links a:hover { color: var(--ap-white); padding-left: 6px; }
.ap-footer .footer-about { font-size: 0.88rem; line-height: 1.7; margin: 16px 0; }
.ap-footer .footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.88rem; }
.ap-footer .footer-contact i { color: var(--ap-brand-red); margin-top: 4px; }
.ap-footer .footer-logo img { height: 44px; filter: brightness(0) invert(1); }
.ap-footer .footer-social { display: flex; gap: 12px; margin-top: 16px; }
.ap-footer .footer-social a {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: all 0.2s ease;
}
.ap-footer .footer-social a:hover { background: var(--ap-brand-red); color: var(--ap-white); }
.ap-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; margin-top: 48px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
}
.ap-footer .footer-bottom a { color: rgba(255,255,255,0.55); }
.ap-footer .footer-bottom a:hover { color: var(--ap-white); }
.ap-footer .footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Floating Buttons ---------- */
.ap-whatsapp-float {
  position: fixed; bottom: 24px; left: 24px;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: var(--ap-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000; transition: transform 0.2s ease;
}
.ap-whatsapp-float:hover { color: var(--ap-white); transform: scale(1.08); }

.ap-back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ap-primary-navy); color: var(--ap-white);
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; box-shadow: var(--ap-shadow);
  z-index: 1000; opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.ap-back-to-top.visible { opacity: 1; visibility: visible; }
.ap-back-to-top:hover { background: var(--ap-brand-red); transform: translateY(-2px); }

/* ---------- Page Hero (inner pages) ---------- */
.ap-page-hero {
  background: linear-gradient(135deg, var(--ap-deep-navy) 0%, var(--ap-primary-navy) 100%);
  color: var(--ap-white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  text-align:center;
}
.ap-page-hero::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px;
  border: 2px solid rgba(255,255,255,0.06); border-radius: 50%;
}
.ap-page-hero h1 { color: var(--ap-white); margin-bottom: 12px; }
.ap-page-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin: 0; }
.ap-breadcrumb {
  font-size: 0.84rem; margin-bottom: 16px;
}
.ap-breadcrumb a { color: rgba(255,255,255,0.6); }
.ap-breadcrumb a:hover { color: var(--ap-white); }
.ap-breadcrumb span { color: rgba(255,255,255,0.8); }

/* ---------- Content blocks ---------- */
.ap-content-block h2 { margin-bottom: 16px; }
.ap-content-block h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.ap-content-block p { font-size: 0.95rem; color: var(--ap-body-text); line-height: 1.75; }
.ap-content-block ul { padding-left: 20px; }
.ap-content-block ul li { margin-bottom: 8px; font-size: 0.92rem; color: var(--ap-body-text); }

.ap-info-box {
  background: var(--ap-light-blue);
  border-radius: var(--ap-radius);
  padding: 24px;
}
.ap-info-box h5 { color: var(--ap-primary-navy); font-size: 1rem; margin-bottom: 10px; }
.ap-info-box p { font-size: 0.88rem; color: var(--ap-muted-text); margin: 0; }

.ap-note-box {
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  border-radius: var(--ap-radius);
  padding: 20px 24px;
  display: flex; gap: 14px; align-items: flex-start;
}
.ap-note-box i { color: var(--ap-brand-red); font-size: 1.2rem; margin-top: 2px; }
.ap-note-box p { font-size: 0.86rem; color: #B42318; margin: 0; }

/* ---------- Contact ---------- */
.ap-contact-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 28px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}
.ap-contact-card:hover { box-shadow: var(--ap-shadow); transform: translateY(-2px); }
.ap-contact-card .cc-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--ap-light-blue); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.ap-contact-card .cc-icon i { font-size: 1.3rem; color: var(--ap-primary-navy); }
.ap-contact-card h5 { font-size: 1rem; margin-bottom: 6px; }
.ap-contact-card a, .ap-contact-card p { font-size: 0.9rem; color: var(--ap-muted-text); margin: 0; }

.ap-map-area {
  background: var(--ap-light-bg);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ap-muted-text);
  text-align: center;
  background-image: repeating-linear-gradient(0deg, var(--ap-border) 0, var(--ap-border) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(90deg, var(--ap-border) 0, var(--ap-border) 1px, transparent 1px, transparent 30px);
}
/* ==========================================
   FAQ NESTED DROPDOWN
========================================== */

.ap-header .dropdown-submenu {
    position: relative;
}

/* FAQ submenu hidden by default */
.ap-header .dropdown-submenu > .dropdown-menu {
    display: none !important;
    position: absolute;
    top: 0;
    left: 100%;
    margin: 0;
    min-width: 240px;
    z-index: 1050;
}

/* Show FAQ submenu only after click */
.ap-header .dropdown-submenu.show-submenu > .dropdown-menu {
    display: block !important;
}

/* FAQ arrow */
.ap-header .dropdown-submenu > .faq-submenu-toggle::after {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    float: right;
    font-size: 10px;
    margin-top: 5px;
    border: none;
}

/* Mobile FAQ submenu */
@media (max-width: 991.98px) {

    .ap-header .dropdown-submenu > .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 100%;
        margin: 0;
        padding: 4px 0 4px 15px;
        box-shadow: none;
        border: none;
    }

}

/* ---------- Visa detail page ---------- */
.ap-visa-hero {
  background: var(--ap-light-bg);
  padding: 40px 0;
  border-bottom: 1px solid var(--ap-border);
}
.ap-visa-section { padding: 40px 0; }
.ap-visa-sidebar .ap-info-box { margin-bottom: 20px; }

/* ---------- 404 Page ---------- */
.ap-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.ap-404 .error-code { font-size: 8rem; font-weight: 800; color: var(--ap-primary-navy); line-height: 1; }
.ap-404 .error-code span { color: var(--ap-brand-red); }


.ap-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ap-fade-up.ap-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback if JavaScript is unavailable */
html:not(.ap-js) .ap-fade-up {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {

  .ap-header .navbar-collapse {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 16px;
    margin-top: 12px;
    box-shadow: var(--ap-shadow);
  }

  /* Main navigation dropdown */
  .ap-header .nav-item.dropdown > .dropdown-menu {
    display: none;
    border: none;
    box-shadow: none;
    padding: 4px 0 4px 16px;
    min-width: auto;
    position: static;
    float: none;
  }

  /* Open main dropdown on click */
  .ap-header .nav-item.dropdown.open > .dropdown-menu {
    display: block;
  }

  .ap-header .nav-item.dropdown > .dropdown-toggle .fa-chevron-down {
    float: right;
    margin-top: 8px;
  }

  .ap-header-actions {
    margin-top: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .ap-header-actions .btn {
    width: 100%;
  }

  .ap-top-bar .top-social {
    display: none;
  }
}

@media (max-width: 767px) {
  .section-padding { padding: 50px 0; }
  .ap-hero { padding: 30px 0 50px; }
  .ap-hero-form-card { padding: 24px; }
  .ap-testimonial-card { padding: 28px; }
  .ap-testimonial-card .quote-text { font-size: 1rem; }
  .ap-portal-cta { padding: 50px 0; }
  .ap-price-card { padding: 28px 22px; }
  .ap-about-img img { height: 300px; }
  .ap-whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    bottom: 18px;
    left: 18px;
  }
  .ap-back-to-top {
    width: 42px;
    height: 42px;
    bottom: 18px;
    right: 18px;
  }
}

/* Smooth scrolling */
html { scroll-behavior: smooth; scroll-padding-top: 120px; }


