/* ==========================================================================
   Appslin — final approved-pages update layer
   Additive only. Loaded LAST on:
   dynamic-website-design.html, logo-design.html,
   UI-design.html (ui-design), static-website-design.html
   No approved stylesheet is modified.
   ========================================================================== */

/* ==========================================================================
   1. COMMON — image behaviour copied from
      portal-development.html  ->  "Critical Aspect of Web Portal Development In India"
      (sticky visual that travels with the copy, contained, never cropped)
   ========================================================================== */
.page-ui .pp-split,
.page-logo .pp-split,
.page-static .pp-split,
.page-dynamic .pp-split {
  align-items: start;
}

.page-ui .pp-split-visual,
.page-logo .pp-split-visual,
.page-static .pp-split-visual,
.page-dynamic .pp-split-visual {
  height: auto;
  align-self: start;
  overflow: hidden;
}

.page-ui .pp-split-visual img,
.page-logo .pp-split-visual img,
.page-static .pp-split-visual img,
.page-dynamic .pp-split-visual img,
.page-ui .ap-media img,
.page-logo .ap-media img,
.page-static .ap-media img,
.page-dynamic .ap-media img {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 993px) {
  .page-ui .pp-split-visual,
  .page-logo .pp-split-visual,
  .page-static .pp-split-visual,
  .page-dynamic .pp-split-visual,
  .page-ui .ap-media,
  .page-logo .ap-media,
  .page-static .ap-media,
  .page-dynamic .ap-media {
    position: sticky;
    top: 96px;
    align-self: start;
    height: auto;
  }
  /* full-width media blocks stay in flow */
  .page-ui .ap-media--wide,
  .page-logo .ap-media--wide,
  .page-static .ap-media--wide,
  .page-dynamic .ap-media--wide {
    position: static;
  }
}

@media (max-width: 992px) {
  .page-ui .pp-split-visual,
  .page-logo .pp-split-visual,
  .page-static .pp-split-visual,
  .page-dynamic .pp-split-visual,
  .page-ui .ap-media,
  .page-logo .ap-media,
  .page-static .ap-media,
  .page-dynamic .ap-media {
    position: static;
  }
}

/* ==========================================================================
   2. UI-DESIGN — Performance + Responsive Design share one full-width row
      and Efficient Development Approach + Development Approach share one row
   ========================================================================== */
@media (min-width: 992px) {
  .page-ui #ui-strengths.ap-cards--3,
  .page-ui #ui-approach-cards.ap-cards--3 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }
  .page-ui #ui-strengths.ap-cards--3 > .ap-card:nth-child(-n + 3),
  .page-ui #ui-approach-cards.ap-cards--3 > .ap-card:nth-child(-n + 3) {
    grid-column: span 2;
  }
  .page-ui #ui-strengths.ap-cards--3 > .ap-card:nth-child(n + 4),
  .page-ui #ui-approach-cards.ap-cards--3 > .ap-card:nth-child(n + 4) {
    grid-column: span 3;
  }
}
@media (min-width: 640px) and (max-width: 991px) {
  .page-ui #ui-strengths.ap-cards--3 > .ap-card:nth-child(n + 4),
  .page-ui #ui-approach-cards.ap-cards--3 > .ap-card:nth-child(n + 4) {
    grid-column: span 1;
  }
}
.page-ui #ui-strengths > .ap-card,
.page-ui #ui-approach-cards > .ap-card {
  height: 100%;
}

/* ==========================================================================
   3. STATIC WEBSITE DESIGN — SEO-Friendly + Customization share a full row,
      Testing and Optimization + Delivery and Ongoing Support share a full row
   ========================================================================== */
@media (min-width: 992px) {
  .page-static #static-capabilities.ap-cards--3 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }
  .page-static #static-capabilities.ap-cards--3 > .ap-card:nth-child(-n + 3) {
    grid-column: span 2;
  }
  .page-static #static-capabilities.ap-cards--3 > .ap-card:nth-child(n + 4) {
    grid-column: span 3;
  }

  .page-static #static-process-steps.ap-steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }
  .page-static #static-process-steps.ap-steps > .ap-step:nth-child(-n + 3) {
    grid-column: span 2;
  }
  .page-static #static-process-steps.ap-steps > .ap-step:nth-child(n + 4) {
    grid-column: span 3;
  }
}
.page-static #static-capabilities > .ap-card,
.page-static #static-process-steps > .ap-step {
  height: 100%;
}

/* ==========================================================================
   4. PREMIUM PRICING SECTIONS (Logo Design + UI/UX Design)
   ========================================================================== */
.af-pricing {
  --af-navy: #0b1b3a;
  --af-blue: #2563eb;
  --af-gold: #dda23f;
  --af-line: rgba(16, 42, 86, .1);
  --af-body: #4c5c7a;
}

.af-head {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}
.af-head h2,
.af-head h3 {
  margin: 12px 0 14px;
}
.af-head p {
  margin: 0 0 10px;
  color: var(--af-body);
  line-height: 1.75;
}
.af-trustline {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--af-line);
  background: #fff;
  color: #12244a;
  font-size: .9rem;
  font-weight: 600;
}
.section--dark .af-head h2,
.section--dark .af-head h3 { color: #fff; }
.section--dark .af-head p { color: #ccd8f2; }
.section--dark .af-trustline {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  color: #eef3ff;
}

.af-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 22px 0 6px;
}

/* ---------- cards grid ---------- */
.af-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.af-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 22px;
  padding: 30px 26px 28px;
  box-shadow: 0 24px 54px -42px rgba(10, 31, 68, .55);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.af-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .3);
  box-shadow: 0 32px 64px -38px rgba(10, 31, 68, .5);
}
.af-card--featured {
  border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 30px 64px -34px rgba(37, 99, 235, .55);
}
.af-card--premium {
  border-color: rgba(221, 162, 63, .5);
  box-shadow: 0 30px 64px -34px rgba(221, 162, 63, .45);
}
.af-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--af-blue);
}
.af-card--premium .af-badge {
  background: linear-gradient(140deg, #dda23f, #b9822f);
  color: #14203d;
}
.af-card h4 {
  margin: 6px 0 6px;
  font-size: 1.12rem;
  color: #0b1b3a;
}
.af-audience {
  margin: 0 0 16px;
  color: var(--af-body);
  font-size: .92rem;
  line-height: 1.65;
  min-height: 46px;
}
.af-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 4px;
  font-weight: 800;
  color: #0b1b3a;
}
.af-price sup {
  font-size: 1.15rem;
  font-weight: 700;
  top: -.55em;
}
.af-price span {
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -.02em;
}
.af-price em {
  font-style: normal;
  font-size: .85rem;
  font-weight: 600;
  color: #7b88a3;
  margin-left: 6px;
}
.af-divider {
  height: 1px;
  background: var(--af-line);
  margin: 18px 0;
}
.af-feats {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.af-feats li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--af-body);
  font-size: .93rem;
  line-height: 1.6;
}
.af-feats svg {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 3px;
  color: #1f9d55;
}
.af-card .af-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ---------- note panel ---------- */
.af-note {
  margin-top: 30px;
  background: #f6f9ff;
  border: 1px solid var(--af-line);
  border-radius: 22px;
  padding: 28px 30px;
}
.af-note h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #0b1b3a;
}
.af-note > p {
  margin: 0 0 16px;
  color: var(--af-body);
  font-size: .94rem;
}
.af-note ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.af-note li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--af-body);
  font-size: .92rem;
  line-height: 1.6;
}
.af-note svg {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 3px;
  color: var(--af-blue);
}

/* ---------- service / deliverable / benefit cards ---------- */
.af-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.af-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-mini {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 20px;
  padding: 24px 22px 22px;
  box-shadow: 0 24px 54px -44px rgba(10, 31, 68, .55);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.af-mini:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, .26);
  box-shadow: 0 30px 60px -36px rgba(10, 31, 68, .5);
}
.af-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  margin-bottom: 14px;
  color: var(--af-blue);
  background: rgba(37, 99, 235, .1);
}
.af-ico svg { width: 20px; height: 20px; }
.af-mini h5 { margin: 0 0 8px; font-size: 1.02rem; color: #0b1b3a; }
.af-mini p { margin: 0 0 16px; color: var(--af-body); font-size: .94rem; line-height: 1.7; }
.af-mini .af-link {
  margin-top: auto;
  font-weight: 600;
  font-size: .92rem;
  color: var(--af-blue);
  text-decoration: none;
}
.af-mini .af-link:hover { text-decoration: underline; }

.section--dark .af-mini,
.section--dark .af-card {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}
.section--dark .af-mini h5,
.section--dark .af-card h4,
.section--dark .af-price { color: #fff; }
.section--dark .af-mini p,
.section--dark .af-feats li,
.section--dark .af-audience { color: #ccd8f2; }

/* ---------- deliverables chips ---------- */
.af-deliverables {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.af-deliverables li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: .95rem;
  color: #12244a;
}
.af-deliverables svg { width: 18px; height: 18px; min-width: 18px; color: #1f9d55; }

/* ---------- process timeline ---------- */
.af-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}
.af-tl-step {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 20px;
  padding: 24px 20px 22px;
  box-shadow: 0 24px 54px -44px rgba(10, 31, 68, .55);
}
.af-tl-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-weight: 700;
  color: #0b1b3a;
  background: linear-gradient(150deg, #f4cd85, #dda23f);
}
.af-tl-step h5 { margin: 0 0 8px; font-size: 1rem; color: #0b1b3a; }
.af-tl-step p { margin: 0; color: var(--af-body); font-size: .92rem; line-height: 1.7; }

/* ---------- FAQ (new, self-contained) ---------- */
.af-faq { display: grid; gap: 14px; max-width: 940px; margin: 0 auto; }
.af-faq details {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 16px;
  padding: 18px 22px;
}
.af-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #0b1b3a;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--af-blue);
}
.af-faq details[open] summary::after { content: "\2013"; }
.af-faq p { margin: 12px 0 0; color: var(--af-body); line-height: 1.75; font-size: .95rem; }

/* ---------- final CTA band ---------- */
.af-cta-band {
  text-align: center;
  border-radius: 26px;
  padding: clamp(30px, 4vw, 54px);
  background: linear-gradient(150deg, #0b1b3a 0%, #17346a 100%);
  box-shadow: 0 40px 80px -50px rgba(10, 31, 68, .7);
}
.af-cta-band h3 { margin: 0 0 12px; color: #fff; }
.af-cta-band p { margin: 0 auto 22px; color: #ccd8f2; max-width: 620px; line-height: 1.75; }
.af-cta-band .af-head-actions { margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .af-note ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .af-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-deliverables { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .af-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .af-grid,
  .af-cards,
  .af-cards--3,
  .af-timeline,
  .af-deliverables,
  .af-note ul { grid-template-columns: minmax(0, 1fr); }
  .af-card { padding: 26px 20px 24px; }
  .af-audience { min-height: 0; }
  .af-note { padding: 22px 20px; }
}
