/* =======================================================
   Pakistan Foundry Association - Home Page Content Styles
   Page sections only (no header / footer / nav included)
   ======================================================= */

:root {
  --orange: #E9520C;
  --orange-dark: #C9430A;
  --orange-light: #ED6B3E;
  --navy: #0D2240;
  --navy-soft: #1B3A63;
  --gray-bg: #F5F6FA;
  --gray-border: #E4E7EE;
  --text-gray: #667085;
  --dark-bar: #473D3B;
  --white: #FFFFFF;

  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Rubik', sans-serif;

  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 10px 30px rgba(13, 34, 64, 0.08);
}

/* ---------- Reset (scoped, light touch) ---------- */
/* .pfa-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.pfa-page {
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.pfa-page img {
  max-width: 100%;
  display: block;
}

.pfa-page a {
  text-decoration: none;
}

.pfa-page ul {
  list-style: none;
} */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-orange { color: var(--orange); }

/* ---------- Shared section heading styles ---------- */
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 46px;
  line-height: 1.25;
}

.section-sub {
  color: var(--text-gray);
  font-size: 15px;
  margin-top: 10px;
}

.section-head.center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(233, 82, 12, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* =========================================================
   MAIN BANNER
   ========================================================= */
.main-banner {
  width: 100%;
  display: block;
  position: relative;
  min-height: 900px;
  background: url('../images/ifce2/main-banner.jpg') center / cover no-repeat;
  margin-top: -180px;
}

.main-banner__overlay {
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: 0;
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: url('../images/ifce2/hero-bg.jpg') center 35% / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 13, 23, 0.96) 0%,
    rgba(6, 13, 23, 0.9) 42%,
    rgba(6, 13, 23, 0.55) 70%,
    rgba(6, 13, 23, 0.25) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 70px;
  padding-bottom: 70px;
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  max-width: 460px;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   3. STATS BAR
   ========================================================= */
.stats {
  position: relative;
  z-index: 5;
  background: transparent;
  border-bottom: none;
  padding: 56px 0;
}

.stats__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 38px 32px;
  flex-wrap: wrap;
  border-radius: var(--radius-lg, 16px);
  background:
    linear-gradient(90deg, rgba(20, 4, 4, 0.78) 0%, rgba(120, 20, 12, 0.55) 42%, rgba(255, 140, 60, 0.5) 50%, rgba(120, 20, 12, 0.55) 58%, rgba(20, 4, 4, 0.78) 100%),
    linear-gradient(135deg, #3a0a08 0%, #6e1208 45%, #8a1c08 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.stat {
  text-align: center;
  padding: 0 6px;
}

.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52px;
  color: var(--white);
}

.stat__label {
  display: block;
  font-size: 19px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

.stat__divider {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.35);
}

/* =========================================================
   3. ABOUT US
   ========================================================= */
.about {
  background: var(--white);
  padding: 80px 0;
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.about__image {
  flex: 0 0 460px;
  max-width: 460px;
}

.about__content {
  flex: 1 1 0%;
  min-width: 0;
}

.about__image img {
  border-radius: var(--radius-lg);
  height: 478px;
  object-fit: cover;
  width: 100%;
}

.about__content p {
  color: var(--text-gray);
  font-size: 15px;
  margin-top: 16px;
  max-width: 520px;
}

.about__brochure-btn {
  background: #e9761b;
  color: #ffffff;
  margin-top: 24px;
}

.about__brochure-btn:hover {
    background: #d4660f;
    color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(233, 118, 27, 0.35);
}

/* =========================================================
   4. CORE VALUE PILLARS
   ========================================================= */
.values {
  background: var(--gray-bg);
  padding: 80px 0;
}

.values .container {
  max-width: 1420px;
}

.values__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.value-card {
  flex: 1 1 calc(25% - 18px);
  min-width: 324px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(13, 34, 64, 0.12);
}

.value-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.value-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.value-card__icon img {
  width: 50px;
  height: 48px;
  object-fit: contain;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  white-space: nowrap;
  text-align: center;
}

.value-card p {
  font-size: 14px;
  color: var(--text-gray);
}

/* =========================================================
   5. CTA BANNER (Join us...)
   ========================================================= */
.cta-banner {
  position: relative;
  background-color: #E06939;
  background-image:
    linear-gradient(120deg, rgba(224, 105, 57, 0.94) 0%, rgba(207, 90, 42, 0.94) 100%),
    url('../images/ifce2/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner__icon,
.cta-banner h2,
.cta-banner .btn--primary {
  position: relative;
  z-index: 1;
}

.cta-banner__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  color: var(--white);
}

.cta-banner__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--white);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 26px;
}

.cta-banner .btn--primary {
  background: transparent;
  color: var(--white);
  border: 3px solid var(--white);
}

.cta-banner .btn--primary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   6. EXHIBITORS
   ========================================================= */
.exhibitors {
  background: var(--gray-bg);
  padding: 70px 0;
}

.exhibitors .section-title {
  text-align: center;
  margin-bottom: 44px;
}

/* ---- Marquee viewport ---- */
.exhibitors__marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

/* ---- Scrolling track: holds two duplicated sets back to back ---- */
.exhibitors__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: exhibitors-scroll 28s linear infinite;
}

.exhibitors__marquee:hover .exhibitors__track {
  animation-play-state: paused;
}

@keyframes exhibitors-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Each logo gets its own white card sized to its content ---- */
.exhibitor-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  color: #b91c1c;
  font-weight: 700;
  font-size: 19px;
  white-space: nowrap;
  opacity: 0.92;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px 26px;
  flex-shrink: 0;
}

.exhibitor-logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: var(--white);
}

.exhibitor-logo small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-gray);
  text-transform: uppercase;
}

/* =========================================================
   7. IFCE 2026: OUR VISUAL SHOWCASE
   ========================================================= */
.gallery {
  background: var(--white);
  padding: 70px 0 50px;
}

.gallery__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  text-align: center;
  color: #c1121f;
  margin-bottom: 32px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.gallery__item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__stripe {
  display: flex;
  width: 100%;
  height: 14px;
  margin-top: 48px;
}

.gallery__stripe span {
  flex: 1 1 0;
  height: 100%;
}

.gallery__stripe span:nth-child(5n+1) { background: #b91c1c; }
.gallery__stripe span:nth-child(5n+2) { background: #1f2024; }
.gallery__stripe span:nth-child(5n+3) { background: #e8650f; }
.gallery__stripe span:nth-child(5n+4) { background: #b91c1c; }
.gallery__stripe span:nth-child(5n+5) { background: #1f2024; }

/* =========================================================
   8. LATEST NEWS
   ========================================================= */
.news {
  background: var(--white);
  padding: 80px 0;
}

.news .section-title {
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 44px;
  letter-spacing: 0.5px;
}

.news__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.news-card {
  flex: 0 1 380px;
  max-width: 380px;
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-border);
}

.news-card__image {
  position: relative;
}

.news-card__image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.news-card__body {
  padding: 22px 22px 26px;
}

.news-card__body h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 10px;
}

.news-card__body p {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 0;
}

/* =========================================================
   9. READY TO SCALE BAR
   ========================================================= */
.cta-bar {
  background: var(--dark-bar);
  padding: 34px 0;
  border-bottom: 1px solid #ffffff20 !important;
}

.cta-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-bar h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--white);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Laptops where 4-in-a-row no longer fits the single-line headings cleanly */
@media (max-width: 1450px) {
  .value-card { flex: 1 1 calc(50% - 12px); }
}

/* Tablets / small laptops */
@media (max-width: 992px) {
  .hero__title { font-size: 36px; }
  .value-card { flex: 1 1 calc(50% - 12px); }
  .about__image { flex-basis: 360px; max-width: 360px; }
  .about__inner { gap: 40px; }
  .stats__inner { gap: 36px; }

  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery__title { font-size: 30px; }
}

/* Tablets portrait */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .hero { min-height: auto; }
  .hero::before {
    background: rgba(6, 13, 23, 0.82);
  }
  .hero__inner { padding-top: 56px; padding-bottom: 56px; }
  .hero__title { font-size: 30px; }
  .hero__content { max-width: 100%; }

  .stats { padding: 40px 0; }

  .about, .values, .cta-banner, .exhibitors, .news, .gallery { padding: 56px 0; }
  .about__inner {
    flex-direction: column;
    gap: 32px;
  }
  .about__image { flex-basis: auto; max-width: 420px; margin: 0 auto; }
  .about__content { flex-basis: auto; text-align: center; }
  .about__content p { margin-left: auto; margin-right: auto; }

  .section-title { font-size: 26px; }

  .value-card { flex: 1 1 calc(50% - 9px); }
  .value-card h3 { white-space: normal; }
  .values__grid { gap: 18px; }

  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .gallery__title { font-size: 26px; margin-bottom: 24px; }
  .gallery__stripe { margin-top: 36px; }

  .news-card { flex: 1 1 100%; max-width: 400px; margin: 0 auto; }
  .news__grid { justify-content: center; }

  .cta-bar__inner { flex-direction: column; text-align: center; }
}

/* Mobile phones */
@media (max-width: 576px) {
  .hero__title { font-size: 26px; }
  .hero__text { font-size: 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; width: 100%; }

  .stats__inner { gap: 22px 30px; padding: 28px 20px; display: none; }
  .stat__num { font-size: 30px; }
  .stat__label { font-size: 13px; }
  .stat__divider { display: none; }

  .value-card { flex: 1 1 100%; }
  .value-card h3 { font-size: 19px; white-space: normal; }

  .section-title { font-size: 22px; }
  .cta-banner h2 { font-size: 20px; padding: 0 8px; }

  .exhibitor-logo { font-size: 16px; padding: 14px 20px; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery__title { font-size: 22px; margin-bottom: 20px; }
  .gallery__stripe { height: 10px; margin-top: 28px; }

  .news-card__body { padding: 18px; }

  .cta-bar h3 { font-size: 17px; text-align: center; }
  .cta-bar .btn { width: 100%; justify-content: center; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero__title { font-size: 22px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .exhibitor-logo { font-size: 14px; }
}

/* =========================================================
   STATS MOBILE SLIDER
   ========================================================= */
.stats__slider {
  display: none;
}

@media (max-width: 576px) {
  .stats__slider {
    display: block;
    overflow: hidden;
    padding: 28px 20px 20px;
    border-radius: var(--radius-lg, 16px);
    background:
      linear-gradient(90deg, rgba(20,4,4,0.78) 0%, rgba(120,20,12,0.55) 42%, rgba(255,140,60,0.5) 50%, rgba(120,20,12,0.55) 58%, rgba(20,4,4,0.78) 100%),
      linear-gradient(135deg, #3a0a08 0%, #6e1208 45%, #8a1c08 100%);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    margin: 0 16px;
  }

  .stats__track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .stats__slide {
    min-width: 100%;
    text-align: center;
    padding: 8px 0 12px;
    flex-shrink: 0;
  }

  .stats__slide .stat__num {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 52px;
    color: var(--white);
    line-height: 1;
  }

  .stats__slide .stat__label {
    display: block;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-top: 8px;
  }

  .stats__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .stats__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
  }

  .stats__dot.active {
    background: var(--white);
    transform: scale(1.3);
  }

  /* Hide desktop stats bar on mobile */
  .stats .container.stats__inner {
    display: none !important;
  }
}
