/* ==========================================================================
   Appslin — Portal Development page: FINAL corrections layer
   Additive only. No production CSS file is modified by this stylesheet.
   Loaded last so these rules win where they must.
   ========================================================================== */

:root {
  --pf-navy: #0b2545;
  --pf-blue: #1565d8;
  --pf-green: #10b981;
  --pf-body: #4a5b73;
  --pf-line: rgba(11, 37, 69, .10);
}

/* ==========================================================================
   1. HERO BANNER — medium/large image, nothing cropped
   ========================================================================== */
.pr-hero .pr-hero-grid {
  align-items: center;
}
.pr-hero .pr-hero-visual {
  width: 100%;
  max-width: 100%;
}
.pr-hero .pr-hero-frame {
  padding: 14px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 40px 90px -50px rgba(11, 37, 69, .55);
  overflow: visible;
}
.pr-hero .pr-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}
@media (min-width: 993px) {
  .pr-hero .pr-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  }
  .pr-hero .pr-hero-visual { margin-left: auto; }
}
.pr-hero .pr-hero-chip {
  z-index: 3;
}

/* ==========================================================================
   2. WEB PORTAL DEVELOPMENT SERVICES — overlap fix, equal finishing line
   ========================================================================== */
.pr-intro .pr-intro-grid {
  align-items: stretch;
  gap: clamp(28px, 4vw, 56px);
}
.pr-intro .pr-intro-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.pr-intro .pr-intro-visual img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  min-height: 300px;
  object-fit: cover;
  max-height: none;
  border-radius: 20px;
  margin: 0;
}
/* the note and badge chips no longer float on top of the image */
.pr-intro .pr-intro-note {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 20px 46px -34px rgba(11, 37, 69, .45);
}
.pr-intro .pp-intro-badges {
  position: static !important;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pr-intro .pp-intro-badges span {
  white-space: nowrap;
}
.pr-intro .pr-intro-actions {
  margin-top: 26px;
}

/* ==========================================================================
   3 + 4. PORTAL PACKAGES — visual hierarchy
   ========================================================================== */
.pp-pack {
  align-items: center;
}
.pp-pack h4 {
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.25;
  margin: 10px 0 8px;
  color: var(--pf-navy);
}
.pp-pack > div > p {
  color: var(--pf-body);
  line-height: 1.72;
}
.pp-pack .pp-pack-sub {
  display: block;
  margin: 18px 0 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pf-blue);
}
.pp-pack .pp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 8px 20px;
  margin: 0 0 16px;
}
.pp-pack .pp-pack-chips {
  padding-top: 14px;
  border-top: 1px dashed var(--pf-line);
}
.pp-pack .pp-pack-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pp-pack .pp-pack-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* ---- Modal / popup layout repair ---- */
.modal-dialog {
  width: min(940px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-body {
  align-items: start;
}
.modal-body form {
  min-width: 0;
}
.modal-body .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 16px;
}
.modal-body .field input,
.modal-body .field select,
.modal-body .field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.modal-body .btn {
  width: auto;
}
@media (max-width: 860px) {
  .modal-body { grid-template-columns: minmax(0, 1fr) !important; }
  .modal-body .modal-aside { order: 2; }
  .modal-dialog { margin: 3vh auto; max-height: 94vh; }
}

/* ==========================================================================
   5. "Not sure which portal" band
   ========================================================================== */
.pp-highlight {
  align-items: center;
}
.pp-highlight .pp-hl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   6. Generic auto slider used by the converted sections
   ========================================================================== */
.pf-slider {
  position: relative;
  margin-top: 26px;
}
.pf-slider-viewport {
  overflow: hidden;
  padding: 6px 2px 10px;
}
.pf-track {
  display: flex;
  gap: 22px;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.pf-track > * {
  flex: 0 0 calc((100% - (var(--pf-gap, 22px) * (var(--pf-per, 3) - 1))) / var(--pf-per, 3));
  min-width: 0;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  height: auto;
}
.pf-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.pf-arrow {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--pf-line);
  background: #fff;
  color: var(--pf-navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .28s ease;
}
.pf-arrow svg { width: 18px; height: 18px; }
.pf-arrow:hover { background: var(--pf-blue); color: #fff; border-color: transparent; }
.pf-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pf-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 37, 69, .20);
  cursor: pointer;
  transition: all .28s ease;
}
.pf-dot.is-active {
  background: var(--pf-blue);
  width: 26px;
  border-radius: 20px;
}
.section--dark .pf-arrow {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
.section--dark .pf-arrow:hover { background: #fff; color: var(--pf-navy); }
.section--dark .pf-dot { background: rgba(255, 255, 255, .28); }
.section--dark .pf-dot.is-active { background: #fff; }

/* equal-height cards inside sliders */
.pf-track .p-card,
.pf-track .pp-feature,
.pf-track .pp-step,
.pf-track .pp-aspect {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   6b. Highlight statement after the Why Appslin slider
   ========================================================================== */
.pf-statement {
  margin-top: 44px;
  text-align: center;
  padding: clamp(26px, 4vw, 48px) clamp(20px, 4vw, 56px);
  border-radius: 26px;
  background: linear-gradient(135deg, #0b2545 0%, #123b70 55%, #1565d8 100%);
  box-shadow: 0 40px 90px -55px rgba(11, 37, 69, .8);
  position: relative;
  overflow: hidden;
}
.pf-statement:before {
  content: "";
  position: absolute;
  inset: auto -12% -60% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .22);
  filter: blur(10px);
  pointer-events: none;
}
.pf-statement span.pf-statement-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7ee2bd;
  margin-bottom: 14px;
}
.pf-statement p {
  position: relative;
  margin: 0 auto;
  max-width: 940px;
  color: #fff;
  font-weight: 600;
  font-size: clamp(18px, 2.3vw, 27px);
  line-height: 1.55;
}

/* ==========================================================================
   7. CRAFTING — Tailor Made + Innovation & Usability side by side
   ========================================================================== */
#crafting .pp-split {
  align-items: stretch;
  gap: clamp(28px, 4vw, 56px);
}
#crafting .pp-split > div:first-child {
  display: flex;
  flex-direction: column;
}
#crafting .pp-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
}
#crafting .pp-cards .pp-mini:nth-child(1) {
  grid-column: 1 / -1;
}
@media (min-width: 721px) {
  #crafting .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#crafting .pp-split-visual {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 14px;
  height: 100%;
}
#crafting .pp-split-visual img {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 20px;
}
#crafting .pp-float-card {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  max-width: none;
  width: 100%;
  margin: 0;
}

/* ==========================================================================
   11. FAQ — no overlap, image and accordion finish together
   ========================================================================== */
#faq .faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: stretch;
}
#faq .faq-grid > div:first-child {
  display: flex;
  flex-direction: column;
}
#faq .pp-faq-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  flex: 1 1 auto;
}
#faq .pp-faq-visual img {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 260px;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}
#faq .pp-faq-visual .pp-float-card {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100%;
  max-width: none;
  margin: 0;
}
#faq .pp-faq-visual .btn {
  margin: 0;
  align-self: flex-start;
}
#faq .accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
#faq .acc-item { margin: 0; }
#faq .acc-body {
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.4, 0, .2, 1), opacity .35s ease;
}
@media (max-width: 900px) {
  #faq .faq-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   12. CONTACT + ADDRESS layout
   ========================================================================== */
#request-info .contact-grid {
  align-items: stretch;
  gap: clamp(28px, 4vw, 52px);
}
#request-info .contact-grid > *:first-child {
  display: flex;
  flex-direction: column;
}
#request-info .pp-offices { flex: 1 1 auto; align-content: start; }
#request-info .contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 0 0 26px;
}
#request-info .contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 20px 44px -36px rgba(11, 37, 69, .5);
}
#request-info .contact-card h5 { margin: 0 0 3px; font-size: 14px; color: var(--pf-navy); }
#request-info .contact-card p { margin: 0; font-size: 14px; word-break: break-word; }
#request-info .pp-offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 0;
  align-items: stretch;
}
#request-info .pp-office {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  min-width: 0;
}
#request-info .pp-office h5 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--pf-navy);
}
#request-info .pp-office h5 svg { flex: 0 0 auto; margin-top: 2px; }
#request-info .pp-office p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pf-body);
  overflow-wrap: anywhere;
}
#request-info .pp-office-flag { align-self: flex-start; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .pf-track { --pf-per: 2; }
}
@media (max-width: 992px) {
  .pr-hero .pr-hero-frame { padding: 10px; }
  .pr-intro .pr-intro-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-pack { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .pf-track { --pf-per: 1; --pf-gap: 16px; gap: 16px; }
  .pf-slider { margin-top: 20px; }
  .pp-pack .pp-features { grid-template-columns: minmax(0, 1fr); }
  .pp-highlight { text-align: left; }
}
@media (max-width: 520px) {
  .pr-hero .pr-hero-frame { padding: 8px; border-radius: 16px; }
  .pf-statement { border-radius: 20px; }
}

/* ==========================================================================
   12. Continuous marquee sliders (infinite loop, equal cards)
   ========================================================================== */
.pf-marquee .pf-slider-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.pf-marquee .pf-track {
  width: max-content;
  align-items: stretch;
  transition: none !important;
  transform: none;
  animation: pfMarquee 40s linear infinite;
}
.pf-marquee:hover .pf-track,
.pf-marquee:focus-within .pf-track { animation-play-state: paused; }
.pf-marquee .pf-track > * {
  flex: 0 0 clamp(260px, 30vw, 350px);
  width: clamp(260px, 30vw, 350px);
  height: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
@keyframes pfMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 11px), 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-marquee .pf-track { animation: none; }
  .pf-marquee .pf-slider-viewport { overflow-x: auto; }
}

/* ==========================================================================
   13. CRITICAL ASPECTS — same layout language as "Crafting Web Portals"
   ========================================================================== */
#critical-aspects .pp-split {
  align-items: stretch;
  gap: clamp(28px, 4vw, 56px);
}
#critical-aspects .pp-split > div:first-child {
  display: flex;
  flex-direction: column;
}
#critical-aspects .pp-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
}
#critical-aspects .pp-cards .pp-mini:nth-child(1) { grid-column: 1 / -1; }
@media (min-width: 721px) {
  #critical-aspects .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#critical-aspects .pp-split-visual {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 100%;
}
#critical-aspects .pp-split-visual img {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 20px;
}
.pp-mini--ico .pp-aspect-ico {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(21, 101, 216, .10);
  color: var(--pf-blue);
}
.pp-mini--ico .pp-aspect-ico svg { width: 19px; height: 19px; }

/* FAQ visual: smaller, balanced image */
#faq .pp-faq-visual img {
  min-height: 0;
  max-height: 340px;
}
