/* Process Page - Alternating Timeline Layout */

:root {
  --espresso: #4A2810;
  --gold: #C89D52;
  --cream: #FFFDF7;
  --charcoal: #2C2520;
  --white: #FFFFFF;
  --timeline-line: #C89D52;
}

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Hero Clearance */
.page-hero {
  background-color: var(--cream);
  padding-top: 140px;
  padding-bottom: 40px;
  text-align: center;
}

.urdu-subheading {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1.8;
  display: block;
  direction: rtl;
}

.page-hero h1 {
  font-size: 42px;
  color: var(--espresso);
  margin-bottom: 1rem;
  font-weight: 800;
}

.page-hero p {
  font-size: 17px;
  color: var(--charcoal);
  max-width: 650px;
  margin: 0 auto;
}

/* Timeline Wrapper Section */
.process-timeline-section {
  padding: 60px 0 100px;
  position: relative;
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Center Vertical Red/Gold Line */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--espresso) 100%);
  transform: translateX(-50%);
  z-index: 1;
}

/* Timeline Row Grid Layout */
.timeline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  margin-bottom: 70px;
}

/* Center Circle Node */
.timeline-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: var(--espresso);
  border: 3px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--cream);
}

/* Row Left vs Right Positioning */
.timeline-row.row-left .timeline-card-container {
  grid-column: 1;
  text-align: right;
}

.timeline-row.row-left .timeline-media-container {
  grid-column: 2;
}

.timeline-row.row-right .timeline-card-container {
  grid-column: 2;
  grid-row: 1;
  text-align: left;
}

.timeline-row.row-right .timeline-media-container {
  grid-column: 1;
  grid-row: 1;
}

/* Content Cards */
.timeline-card {
  background: var(--white);
  border: 1px solid rgba(200, 157, 82, 0.3);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(74, 40, 16, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.card-step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
}

.timeline-card h3 {
  color: var(--espresso);
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.timeline-card p {
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Media Image Frames */
.timeline-media-frame {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(74, 40, 16, 0.08);
  position: relative;
  background-color: var(--espresso);
}

.timeline-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback Styled Box when no image is available */
.timeline-media-frame.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4A2810 0%, #2C1808 100%);
}

.timeline-media-frame.media-placeholder::after {
  content: attr(data-label);
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(200, 157, 82, 0.4);
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
}

/* Certifications Banner */
.certifications-banner {
  background: #fcf8f0;
  border-top: 1px solid rgba(200, 157, 82, 0.3);
  padding: 60px 0;
  text-align: center;
}

.certifications-banner h2 {
  color: var(--espresso);
  font-size: 28px;
  margin-bottom: 30px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cert-card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(200, 157, 82, 0.3);
  border-top: 3px solid var(--gold);
}

.cert-card h4 {
  color: var(--espresso);
  font-size: 16px;
  margin-bottom: 4px;
}

.cert-card p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

/* Responsive Layout Adjustments */
@media (max-width: 820px) {
  .timeline-wrapper::before {
    left: 24px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 60px;
    margin-bottom: 50px;
  }

  .timeline-node {
    left: 24px;
    top: 24px;
    transform: translate(-50%, 0);
  }

  .timeline-row.row-left .timeline-card-container,
  .timeline-row.row-right .timeline-card-container {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  .timeline-row.row-left .timeline-media-container,
  .timeline-row.row-right .timeline-media-container {
    grid-column: 1;
    grid-row: 2;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
  
  .page-hero h1 {
    font-size: 30px;
  }
}