/* ═══════════════════════════════════════════════════════
   PROPACK ELECTRONICS – Inner Pages Shared Styles
   Extends style.css for all inner pages
═══════════════════════════════════════════════════════ */

/* ─── PAGE HERO (inner pages) ─────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214,43,43,.18) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ff6b6b, var(--red));
}
.page-hero-content { position: relative; z-index: 2; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: rgba(255,255,255,.3); }
.breadcrumb .current { color: var(--red); font-weight: 600; }
.page-hero h1 {
  font-family: var(--font-cond);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  max-width: 600px;
  line-height: 1.75;
}

/* ─── INNER PAGE LAYOUT ───────────────────────────── */
.inner-section { padding: 80px 0; }
.inner-section.bg-light { background: var(--bg); }
.inner-section.bg-dark  { background: var(--dark); color: #fff; }

/* ─── SIDEBAR LAYOUT ──────────────────────────────── */
.sidebar-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.sidebar-title {
  background: var(--dark);
  color: var(--white);
  padding: 18px 24px;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-left: 4px solid var(--red);
}
.sidebar-nav { padding: 12px 0; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  font-size: .9rem;
  color: var(--mid);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--red);
  background: var(--red-light);
  border-left-color: var(--red);
  padding-left: 30px;
}
.sidebar-nav a i { width: 16px; font-size: .85rem; flex-shrink: 0; }

/* Sidebar CTA */
.sidebar-cta {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  color: #fff;
}
.sidebar-cta h4 { font-size: 1rem; margin-bottom: 8px; }
.sidebar-cta p  { font-size: .82rem; opacity: .85; margin-bottom: 16px; line-height: 1.5; }
.sidebar-cta .btn { width: 100%; background: #fff; color: var(--red); font-weight: 700; }
.sidebar-cta .btn:hover { background: var(--dark); color: #fff; }

/* ─── PRODUCT CATEGORY CARD ───────────────────────── */
.cat-section { margin-bottom: 60px; }
.cat-section:last-child { margin-bottom: 0; }
.cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-grey);
}
.cat-icon {
  width: 52px; height: 52px;
  background: var(--red);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-icon i { font-size: 1.3rem; color: #fff; }
.cat-header h2 {
  font-family: var(--font-cond);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
}
.cat-header p { font-size: .875rem; color: var(--grey); margin-top: 3px; }

/* Product list cards */
.prod-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.prod-list-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
}
.prod-list-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.plc-icon {
  width: 44px; height: 44px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.plc-icon i { color: var(--red); font-size: 1rem; transition: color var(--transition); }
.prod-list-card:hover .plc-icon { background: var(--red); }
.prod-list-card:hover .plc-icon i { color: #fff; }
.plc-body h4 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.plc-body p  { font-size: .82rem; color: var(--grey); line-height: 1.55; }

/* ─── SERVICE DETAIL CARD ─────────────────────────── */
.service-detail {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  border: 1px solid var(--light-grey);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
  transition: all var(--transition);
}
.service-detail:hover { box-shadow: var(--shadow-lg); border-color: var(--red); }
.sd-icon {
  width: 80px; height: 80px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sd-icon i { font-size: 2rem; color: var(--red); }
.sd-body h3 {
  font-family: var(--font-cond);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.sd-body p { font-size: .9rem; color: var(--grey); line-height: 1.75; margin-bottom: 14px; }
.sd-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sd-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--mid);
}
.sd-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── INDUSTRY CARD (full page) ───────────────────── */
.industry-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--light-grey);
}
.industry-detail:last-child { border-bottom: none; }
.industry-detail.reverse { direction: rtl; }
.industry-detail.reverse > * { direction: ltr; }
.ind-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ind-detail-img i { font-size: 6rem; color: rgba(255,255,255,.1); }
.ind-detail-img .ind-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214,43,43,.3), transparent);
}
.ind-detail-text .section-label { margin-bottom: 8px; }
.ind-detail-text h2 {
  font-family: var(--font-cond);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.ind-detail-text p { font-size: .9rem; color: var(--grey); line-height: 1.8; margin-bottom: 18px; }
.ind-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ind-tag {
  background: var(--red-light);
  color: var(--red);
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 30px;
}

/* ─── ABOUT PAGE ──────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--light-grey));
}
.tl-item {
  position: relative;
  margin-bottom: 40px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 6px;
  width: 14px; height: 14px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(214,43,43,.2);
}
.tl-year {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 5px;
}
.tl-item h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.tl-item p  { font-size: .875rem; color: var(--grey); line-height: 1.65; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
  transition: all var(--transition);
}
.cert-card:hover { transform: translateY(-4px); border-color: var(--red); }
.cert-card i { font-size: 2.4rem; color: var(--red); margin-bottom: 12px; }
.cert-card h4 { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.cert-card p  { font-size: .78rem; color: var(--grey); line-height: 1.5; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
  transition: all var(--transition);
  text-align: center;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-cond);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255,255,255,.2);
}
.team-body { padding: 20px 16px; }
.team-body h4 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.team-body span { font-size: .8rem; color: var(--red); font-weight: 600; }
.team-body p { font-size: .8rem; color: var(--grey); margin-top: 8px; line-height: 1.5; }

/* ─── VALUES GRID ─────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: all var(--transition);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-card i { font-size: 2rem; color: var(--red); margin-bottom: 16px; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.value-card p  { font-size: .875rem; color: var(--grey); line-height: 1.7; }

/* ─── NEWS / EVENTS ───────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
  transition: all var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-img {
  height: 200px;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.news-img i { font-size: 3.5rem; color: rgba(255,255,255,.15); }
.news-img .news-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.news-body { padding: 24px; }
.news-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.news-date { font-size: .78rem; color: var(--grey); display: flex; align-items: center; gap: 5px; }
.news-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.news-body p  { font-size: .855rem; color: var(--grey); line-height: 1.65; margin-bottom: 16px; }
.news-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .855rem; font-weight: 600; color: var(--red);
  transition: gap var(--transition);
}
.news-link:hover { gap: 10px; }

/* ─── CONTACT PAGE ────────────────────────────────── */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
}
.map-embed iframe { display: block; width: 100%; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.cig-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
  text-align: center;
  transition: all var(--transition);
}
.cig-card:hover { transform: translateY(-4px); border-color: var(--red); }
.cig-card .ci-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cig-card .ci-icon i { color: var(--red); font-size: 1.2rem; }
.cig-card h4 { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.cig-card p, .cig-card a { font-size: .875rem; color: var(--grey); line-height: 1.6; }
.cig-card a:hover { color: var(--red); }

/* ─── RESOURCES PAGE ──────────────────────────────── */
.resource-card-lg {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
  transition: all var(--transition);
}
.resource-card-lg:hover { box-shadow: var(--shadow-lg); border-color: var(--red); }
.rcl-icon {
  width: 100px; height: 100px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.rcl-icon i { font-size: 2.8rem; color: var(--red); }
.rcl-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.rcl-body p  { font-size: .875rem; color: var(--grey); line-height: 1.7; }
.rcl-meta { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.rcl-tag {
  font-size: .75rem; font-weight: 600;
  background: var(--bg); color: var(--grey);
  padding: 3px 10px; border-radius: 4px;
  border: 1px solid var(--light-grey);
}

/* ─── FAQ ACCORDION ───────────────────────────────── */
.faq-list { margin-top: 32px; }
.faq-item {
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item.open { border-color: var(--red); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  background: var(--white);
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark);
  user-select: none;
  transition: all var(--transition);
}
.faq-item.open .faq-q { color: var(--red); background: var(--red-light); }
.faq-q i { font-size: .8rem; color: var(--grey); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); color: var(--red); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 22px;
  font-size: .9rem;
  color: var(--grey);
  line-height: 1.75;
  background: var(--white);
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 16px 22px 20px;
}

/* ─── INNER PAGE MINI CTA ─────────────────────────── */
.inline-cta {
  background: linear-gradient(135deg, var(--dark), #2a2a2a);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.inline-cta::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(214,43,43,.25), transparent 70%);
}
.inline-cta h3 {
  font-family: var(--font-cond);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.inline-cta p { font-size: .9rem; color: rgba(255,255,255,.65); }
.inline-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* Featured article responsive */
.featured-article-grid > div:first-child {
  min-height: 280px;
}
@media (max-width: 760px) {
  .featured-article-grid {
    grid-template-columns: 1fr !important;
  }
  .featured-article-grid > div:first-child {
    min-height: 200px;
    padding: 36px 24px !important;
  }
  .featured-article-grid > div:last-child {
    padding: 28px 24px !important;
  }
}

/* Process steps responsive */
@media (max-width: 760px) {
  .process-step { padding: 16px 10px !important; }
  .process-step > div:first-child { width: 60px !important; height: 60px !important; }
  .process-step > div:first-child i { font-size: 1.2rem !important; }
}

/* Resources featured card responsive */
@media (max-width: 760px) {
  [style*="grid-template-columns: 120px 1fr auto"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 1024px) {
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .prod-list { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-card-lg { grid-template-columns: 80px 1fr; }
  .resource-card-lg .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 900px) {
  .industry-detail { grid-template-columns: 1fr; gap: 32px; }
  .industry-detail.reverse { direction: ltr; }
  .service-detail { grid-template-columns: 1fr; }
  .sd-icon { width: 60px; height: 60px; }
  .sd-icon i { font-size: 1.5rem; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .inline-cta { flex-direction: column; padding: 36px 28px; }
  .inline-cta-btns { width: 100%; }
  /* Featured news card mobile */
  .featured-article-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .inner-section { padding: 48px 0; }
  .prod-list { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .resource-card-lg { grid-template-columns: 1fr; padding: 22px 18px; gap: 16px; }
  .rcl-icon { width: 60px; height: 60px; }
  .rcl-icon i { font-size: 1.6rem; }
  .values-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .sd-list { grid-template-columns: 1fr; }
  .inline-cta { padding: 26px 18px; flex-direction: column; gap: 20px; }
  .inline-cta h3 { font-size: 1.3rem; }
  .inline-cta-btns { width: 100%; flex-direction: column; }
  .inline-cta-btns .btn { width: 100%; justify-content: center; }
  .cat-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cat-header h2 { font-size: 1.3rem; }
  .service-detail { padding: 24px 20px; gap: 16px; }
  .sd-icon { width: 52px; height: 52px; }
  .sd-icon i { font-size: 1.3rem; }
  .industry-detail { gap: 24px; padding: 40px 0; }
  .ind-detail-img { min-height: 200px; }
  .ind-detail-img i { font-size: 4rem; }
  .sidebar-layout { gap: 24px; }
  .sidebar { position: static; }
  .faq-q { font-size: .875rem; padding: 14px 16px; }
  .faq-a { padding: 0 16px; }
  .faq-item.open .faq-a { padding: 14px 16px 18px; }
  .breadcrumb { font-size: .75rem; gap: 6px; }
  /* Contact page specifics */
  .contact-grid { gap: 28px; }
  .contact-form-wrap { padding: 20px 16px; }
  .cig-card { padding: 22px 16px; }
  /* Featured news article */
  .news-card .news-img { height: 160px; }
}

/* ─── Very small screens inner ──────────── */
@media (max-width: 380px) {
  .cert-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.5rem; }
}
