:root {
  --primary: #1a3a2f;
  --primary-light: #2d5a48;
  --accent: #d4a857;
  --accent-soft: #f0e6d3;
  --bg: #faf9f7;
  --bg-alt: #f3f1ec;
  --text: #1a1a1a;
  --text-muted: #666666;
  --white: #ffffff;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, sans-serif;

  --nav-height: 4.375rem;
  --safe-bottom: env(safe-area-inset-bottom, 0rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  /* scroll-behavior: smooth; */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 1s ease;
}

/* Bottom Navigation */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--white);
  border-top: 0.0625rem solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.25rem 1.25rem rgba(0, 0, 0, 0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0.75rem;
  min-width: 4rem;
}

.nav-item:active {
  transform: scale(0.95);
  background: var(--bg-alt);
}

.nav-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-item.active .nav-icon,
.nav-item.active .nav-label {
  color: var(--primary);
}

.nav-item.active {
  background: var(--accent-soft);
}

/* Sections */
section {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Section Header */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: "";
  width: 1.25rem;
  height: 0.125rem;
  background: var(--accent);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

/* ==================== */
/* HERO SECTION         */
/* ==================== */
.hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding-top: 3.125rem;
  padding-bottom: 6.25rem;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -0.0625rem;
  left: 0;
  right: 0;
  height: 3.75rem;
  background: var(--bg);
  clip-path: ellipse(70% 100% at 50% 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 31.25rem;
}

.hero-photos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  width: 100%;
  padding: 0 0.625rem;
}

.hero-photo {
  width: 6.875rem;
  aspect-ratio: 2/3;
  background: rgba(255, 255, 255, 0.08);
  border: 0.125rem solid rgba(255, 255, 255, 0.25);
  border-radius: 0.875rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-photo:nth-child(2) {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.3);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.6875rem;
  text-align: center;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.hero h1 {
  color: var(--white);
}

.hero .section-label {
  color: var(--accent);
}

.hero .section-label::before {
  background: var(--accent);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.tags,
.social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-media {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--accent);
  line-height: 1;
}

.social-media-icon {
  height: 1.5rem;
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.social-media-icon svg * {
  stroke: var(--accent);
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.875rem;
  border-radius: 6.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
}

/* As Seen On Banner */
.as-seen-on {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.as-seen-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-bottom: 1rem;
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: calc(100% + 2.5rem);
  margin-left: -1.25rem;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--primary-light), transparent);
}

.marquee-wrapper::after {
  display: none;
  right: 0;
  background: linear-gradient(to left, var(--primary-light), transparent);
}

.marquee {
  display: flex;
  animation: marquee 30s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 1.25rem;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.media-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.media-logo:active {
  color: var(--accent);
}

/* .media-logo img {
  width: 90%;
} */

.media-logo span {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==================== */
/* STUDIES SECTION      */
/* ==================== */
.studies {
  background: var(--bg);
}

.education-list {
  margin-top: 0.5rem;
}

.edu-item {
  position: relative;
  padding: 1.25rem;
  background: var(--white);
  border-radius: 1rem;
  margin-bottom: 0.875rem;
  box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.04);
  border-left: 0.25rem solid var(--accent);
}

.edu-header {
  display: flex;
  gap: 0.875rem;
  align-items: stretch;
  margin-bottom: 0.75rem;
}

.edu-logo {
  width: 4.5rem;
  min-height: 4.5rem;
  height: auto;
  background: var(--white);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  padding: 0.25rem;
  align-self: stretch;
}

.edu-logo img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transform: scale(1.15);
}

.edu-logo.usw {
  padding: 0.25rem;
  background: var(--white);
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  width: 4.5rem;
}

.edu-logo.usw img {
  border-radius: 0;
  width: 100%;
  height: auto;
  transform: scale(1.15);
}

.edu-logo svg {
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0.4;
}

.edu-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.edu-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.edu-degree {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.edu-school {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.flag {
  font-size: 1rem;
}

.edu-quote {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 0.0625rem solid var(--bg-alt);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

.edu-quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.25rem;
}

/* ==================== */
/* PUBLICATIONS SECTION */
/* ==================== */
.publications {
  background: var(--bg-alt);
}

.pub-list {
  margin-top: 0.5rem;
}

.pub-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.06);
  margin-bottom: 0.875rem;
}

.pub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary);
  padding: 0.375rem 0.75rem;
  border-radius: 6.25rem;
  margin-bottom: 0.875rem;
}

.pub-badge.first-author {
  background: var(--accent);
  color: var(--primary);
}

.pub-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.pub-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.pub-meta strong {
  color: var(--text);
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.875rem;
  padding: 0.625rem 1rem;
  background: var(--bg-alt);
  border-radius: 0.625rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.pub-link:active {
  background: var(--accent-soft);
}

.pub-link svg {
  width: 1rem;
  height: 1rem;
}

/* Media Coverage Styles */
.media-badge {
  background: var(--accent) !important;
  color: var(--primary) !important;
}

.media-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
}

.media-link-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: var(--bg-alt);
  border-radius: 0.625rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  border-left: 0.1875rem solid var(--accent);
}

.media-link-item .media-logo {
  height: 3.5rem;
  width: 3.5rem;
}

.media-link-item:active {
  background: var(--accent-soft);
  transform: scale(0.98);
}

.media-logo {
  width: 8rem;
  height: 8rem;
  /* background: var(--white); */
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0.25rem;
}

.media-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.1);
}

.media-logo img.img-fox {
  transform: scale(1.75);
}

.media-logo img.img-dailymail {
  transform: scale(2.3);
}

.media-logo img.img-arabnews {
  transform: scale(2.15);
}

.media-logo img.img-ht {
  transform: scale(1.85);
}

.media-logo-placeholder {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.media-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.media-source {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.media-title {
  font-size: 0.9rem;
  color: var(--primary);
  line-height: 1.4;
}

.media-ext-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  background: var(--white);
  border-radius: 0.625rem;
  flex-shrink: 0;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.06);
}

.media-ext-link:active {
  background: var(--accent);
  color: var(--white);
}

.media-ext-link svg {
  width: 1rem;
  height: 1rem;
}

/* ==================== */
/* VISION SECTION       */
/* ==================== */
.vision {
  background: var(--primary);
  color: var(--white);
  padding-bottom: calc(3.75rem + var(--nav-height));
}

.vision::before {
  content: "";
  position: absolute;
  top: -0.0625rem;
  left: 0;
  right: 0;
  height: 3.75rem;
  background: var(--bg-alt);
  clip-path: ellipse(70% 100% at 50% 0%);
}

.vision h2 {
  color: var(--white);
}

.vision .section-label {
  color: var(--accent);
}

.vision .lead {
  color: rgba(255, 255, 255, 0.85);
}

.vision p {
  color: rgba(255, 255, 255, 0.7);
}

/* Vision Quote */
.vision-quote {
  margin: 1.5rem 0;
  padding: 0;
  border: none;
}

.vision-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}

.vision-quote cite {
  display: block;
  font-style: normal;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  margin-top: 1.75rem;
  padding: 1rem 1.75rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(1.25rem);
}

.fade-in {
  opacity: 0;
}

/* Go back button */

.btn-back {
  position: absolute;
  z-index: 9999;
  left: 0.5rem;
  top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  color: var(--accent);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
}

.btn-back svg {
  height: 1rem;
  width: 1rem;
}

/* Desktop styles */
@media (min-width: 768px) {
  .btn-back {
    top: 1.125rem;
  }

  body {
    padding-bottom: 0;
  }

  .nav-bottom {
    top: 0;
    bottom: auto;
    height: 4.5rem;
    padding-bottom: 0;
    border-top: none;
    border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.06);
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-item {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
  }

  .nav-icon {
    margin-bottom: 0;
  }

  .nav-label {
    font-size: 0.875rem;
  }

  section {
    padding: 6.25rem 10%;
  }

  .hero {
    padding-top: 8.75rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-photos {
    gap: 1.5rem;
    margin: 2.5rem 0;
  }

  .hero-photo {
    width: 10rem;
    border-radius: 1.125rem;
  }

  .hero-photo:nth-child(2) {
    transform: scale(1.1);
  }

  .cta-btn {
    width: auto;
    align-self: flex-start;
  }

  /* Make as-seen-on and marquee full width on desktop */
  .as-seen-on {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .marquee-wrapper {
    width: 100%;
    margin-left: 0;
  }
}
