@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --brand-primary: #0074B2;
  --brand-secondary: #014161;
  --brand-accent: #0284C7;
  --brand-accent-light: #E0F2FE;
  --bg-canvas: #F8FAFC;
  --stage-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-border: 1.5px solid #E2E8F0;
  --card-shadow: 0 10px 25px -5px rgba(1, 65, 97, 0.06);
  --text-dark: #0F172A;
  --text-muted: #475569;
  --badge-bg: #F0F9FF;
  --badge-text: #0284C7;
  --badge-border: #BAE6FD;
  --stage-scale: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #090D16;
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* Circular Logo Universal Engine */
.circular-logo,
.brand-logo-header,
.cover-client-logo,
.graphic-branding-logo {
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%) !important;
  object-fit: cover !important;
  aspect-ratio: 1 / 1 !important;
  box-shadow: 0 6px 16px rgba(0, 74, 178, 0.15) !important;
}

.brand-logo-header {
  height: 65px;
  width: 65px;
  border: 2px solid var(--brand-primary);
}

.cover-client-logo {
  height: 110px;
  width: 110px;
  border: 3px solid #FFFFFF;
  background: #FFFFFF;
  padding: 4px;
}

.graphic-branding-logo {
  height: 55px;
  width: 55px;
  border: 2px solid var(--brand-primary);
}

/* Stage Engine Container */
.stage-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.slide-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  background: var(--stage-bg);
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
}

/* Header Component */
.stage-header {
  height: 120px;
  padding: 24px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-badge {
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--brand-primary);
  border-radius: 50%;
  display: inline-block;
}

/* Slide Container */
.slides-wrapper {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(1080px - 120px - 80px);
}

.slide {
  position: absolute;
  inset: 0;
  padding: 40px 80px;
  display: none !important;
  flex-direction: column;
  gap: 30px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  overflow: hidden;
}

.slide.active {
  display: flex !important;
  opacity: 1;
}

/* Slide Header Title & Subtitle */
.slide-title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--brand-secondary);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.slide-subtitle {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Grid Layouts */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  flex: 1;
}

.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  flex: 1;
}

/* Cards & Content Elements */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.info-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: var(--brand-primary);
}

.info-card.accent::before {
  background: var(--brand-accent);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-secondary);
}

.card-tag {
  background: #F1F5F9;
  color: var(--brand-secondary);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
}

.card-desc {
  font-size: 19px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.card-bullets li {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-bullets li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  background: var(--brand-accent-light);
  color: var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Dual Grid Image Frame */
.image-frame-container {
  height: 580px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 1.5px solid #E2E8F0;
  background: #F1F5F9;
}

.image-frame-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SLIDE 4: Policy Warning Card Mockup */
.policy-warning-card-wrapper {
  height: 580px;
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  border: 2px solid #FCA5A5;
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.08);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.warning-alert-header {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 2px solid #FEE2E2;
  padding-bottom: 20px;
}

.warning-icon-badge {
  width: 60px;
  height: 60px;
  background: #FEE2E2;
  color: #DC2626;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  flex-shrink: 0;
}

.warning-alert-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.warning-alert-main {
  font-size: 24px;
  font-weight: 900;
  color: #991B1B;
}

.warning-alert-sub {
  font-size: 16px;
  font-weight: 700;
  color: #B91C1C;
}

.warning-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.warning-item {
  background: #FFFFFF;
  border: 1.5px solid #FECACA;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.warning-cross {
  width: 28px;
  height: 28px;
  background: #FEE2E2;
  color: #DC2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}

.warning-item p {
  font-size: 17px;
  font-weight: 600;
  color: #7F1D1D;
  line-height: 1.5;
}

.solution-item {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.solution-check {
  width: 32px;
  height: 32px;
  background: #DCFCE7;
  color: #166534;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.solution-item p {
  font-size: 17px;
  font-weight: 700;
  color: #14532D;
  line-height: 1.5;
}

/* SLIDE 6: Branding Graphic Poster Card Component */
.branding-poster-wrapper {
  height: 580px;
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, #014161 0%, #0074B2 100%);
  border: 1.5px solid #BAE6FD;
  box-shadow: 0 20px 40px rgba(1, 65, 97, 0.2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
}

.branding-poster-top {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.branding-poster-logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #FFFFFF;
  padding: 3px;
  border: 2px solid var(--brand-accent);
  flex-shrink: 0;
}

.branding-poster-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.branding-poster-head-text {
  display: flex;
  flex-direction: column;
}

.poster-brand-title {
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
}

.poster-brand-sub {
  font-size: 16px;
  font-weight: 600;
  color: #BAE6FD;
}

.branding-poster-hero {
  position: relative;
  height: 330px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.poster-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-hero-overlay {
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: 16px;
  background: rgba(1, 65, 97, 0.88);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 12px;
  text-align: center;
}

.poster-slogan-pill {
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
}

.branding-poster-footer {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #E0F2FE;
  padding-top: 8px;
}

/* 3-Slide Carousel Mockup Component for Pillar 2 */
.carousel-mockup-wrapper {
  height: 580px;
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, #F8FAFC 0%, #E0F2FE 100%);
  border: 1.5px solid #E2E8F0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
}

.carousel-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #CBD5E1;
  padding-bottom: 12px;
}

.carousel-brand-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-secondary);
}

.carousel-step-pill {
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 800;
}

.carousel-slides-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.carousel-card-item {
  background: #FFFFFF;
  border: 1.5px solid #BAE6FD;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.08);
  position: relative;
}

.carousel-card-item.active-slide {
  border-color: var(--brand-primary);
  box-shadow: 0 10px 25px rgba(0, 116, 178, 0.2);
  transform: translateY(-4px);
}

.carousel-card-num {
  width: 36px;
  height: 36px;
  background: var(--brand-primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}

.carousel-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-secondary);
}

.carousel-card-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}

.carousel-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid #CBD5E1;
  padding-top: 12px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #94A3B8;
}

.dot.active {
  width: 32px;
  border-radius: 20px;
  background: var(--brand-primary);
}

.image-caption-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 18px 24px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.caption-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-secondary);
}

.caption-sub {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Custom Table Styles */
.table-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #E2E8F0;
  box-shadow: var(--card-shadow);
  background: #FFFFFF;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.table-custom th {
  background: var(--brand-secondary);
  color: #FFFFFF;
  padding: 20px 24px;
  font-size: 20px;
  font-weight: 800;
}

.table-custom td {
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid #E2E8F0;
}

.table-custom tr:nth-child(even) td {
  background: #F8FAFC;
}

.table-custom tr:last-child td {
  border-bottom: none;
}

/* Status Pills */
.pill {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill.success {
  background: #DCFCE7;
  color: #15803D;
}

.pill.primary {
  background: #E0F2FE;
  color: #0369A1;
}

.pill.warning {
  background: #FEF3C7;
  color: #B45309;
}

/* Cover Slide Special Layout (Slide 1) - Clean Brand Gradient WITHOUT background image */
.slide-cover-layout {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #014161 0%, #0074B2 50%, #0284C7 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 100px;
  color: #FFFFFF;
  z-index: 5;
}

.cover-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.cover-agency-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cover-agency-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.cover-main-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1300px;
}

.cover-title-tag {
  background: rgba(2, 132, 199, 0.4);
  border: 1px solid rgba(186, 230, 253, 0.5);
  color: #E0F2FE;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 700;
  width: fit-content;
}

.cover-main-title {
  font-size: 68px;
  font-weight: 900;
  line-height: 1.15;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cover-subtitle {
  font-size: 32px;
  font-weight: 600;
  color: #BAE6FD;
  line-height: 1.4;
}

.cover-footer-row {
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
}

.cover-meta {
  font-size: 20px;
  font-weight: 600;
  color: #E0F2FE;
  display: flex;
  gap: 30px;
}

/* Section Divider Cover Layout */
.section-cover-layout {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #014161 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px;
  color: #FFFFFF;
  gap: 24px;
}

.section-number-badge {
  background: var(--brand-primary);
  color: #FFFFFF;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(0, 116, 178, 0.4);
}

.section-main-title {
  font-size: 56px;
  font-weight: 900;
  color: #FFFFFF;
}

.section-desc {
  font-size: 24px;
  font-weight: 500;
  color: #94A3B8;
  max-width: 900px;
}

/* Thank You Slide Special Layout (Slide 18) */
.thankyou-layout {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #014161 0%, #0074B2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 40px;
  color: #FFFFFF;
}

.thankyou-title {
  font-size: 96px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -1px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.thankyou-sub {
  font-size: 32px;
  font-weight: 700;
  color: #BAE6FD;
}

.agency-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 30px 60px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.agency-brand-logo {
  height: 65px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.agency-label {
  font-size: 20px;
  font-weight: 600;
  color: #E0F2FE;
}

/* Footer & Presentation Controls */
.stage-footer {
  height: 80px;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border-top: 1.5px solid #E2E8F0;
  z-index: 10;
  position: relative;
}

/* Progress Bar */
.progress-container {
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 4px;
  background: #E2E8F0;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transition: width 0.3s ease;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-ctrl {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: var(--brand-secondary);
  padding: 10px 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ctrl:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

.btn-ctrl:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #F1F5F9;
  color: #94A3B8;
  border-color: #E2E8F0;
}

.slide-selector-select {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-secondary);
  cursor: pointer;
  outline: none;
}
