/* =========================================================
PUBLICATION ARTICLES | PROFESSIONAL PORTFOLIO CSS STYLESHEET
========================================================= */

:root {
  --body-bg: #020305;
  --body-gradient:
    radial-gradient(circle at 18% 18%, rgba(212, 175, 55, 0.08), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(168, 85, 247, 0.035), transparent 22%),
    radial-gradient(circle at 12% 82%, rgba(255, 0, 251, 0.022), transparent 20%),
    radial-gradient(circle at 82% 82%, rgba(34, 211, 238, 0.055), transparent 26%),
    linear-gradient(145deg, #0b0e14 0%, #020305 72%);
  --body-text: #f8fafc;
  --muted-text: #b8c2d4;
  --panel-bg: linear-gradient(145deg, rgba(16, 20, 28, 0.72), rgba(5, 5, 5, 0.90));
  --card-bg: rgba(255, 255, 255, 0.025);
  --accent-cyan: #22d3ee;
  --accent-purple: #a855f7;
  --accent-pink: #ff00fb;
  --accent-green: #25d366;
  --border-color: rgba(34, 211, 238, 0.24);
  --shadow-color: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--body-bg);
  background-image: var(--body-gradient);
  background-attachment: fixed;
  color: var(--body-text);
  font-family: "Urbanist", sans-serif;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-wrapper {
  margin-left: auto;
  margin-right: auto;
  padding: 38px 0 0;
}

/* ======================================================================
TOP NAVIGATION
====================================================================== */

.top-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-color);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--accent-cyan);
  border-radius: 999px;
  color: var(--accent-cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: #020617;
  background: var(--accent-cyan);
  transform: translateY(-2px);
}

.page-identity {
  text-align: right;
}

.page-identity strong {
  display: block;
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.page-identity span {
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* ======================================================================
PUBLICATION INTRODUCTION
====================================================================== */

.publication-intro {
  padding: 94px 0 48px;
  text-align: center;
}

.publication-intro h1 {
  margin: 0;
  color: var(--body-text);
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 900;
  letter-spacing: clamp(1px, 0.55vw, 8px);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(34, 211, 238, 0.16);
}

.publication-intro p {
  width: min(980px, 100%);
  margin: 34px auto 0;
  color: var(--muted-text);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 400;
  line-height: 1.75;
}

/* ======================================================================
WHATSAPP HERO BUTTON
====================================================================== */

.channel-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1120px, 100%);
  margin: 26px auto 102px;
  padding: 28px 34px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: linear-gradient(110deg, rgba(37, 211, 102, 0.95), rgba(18, 140, 126, 0.92) 42%, rgba(10, 102, 194, 0.92));
  box-shadow:
    0 24px 58px rgba(37, 211, 102, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #ffffff;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.channel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.2), transparent 75%);
  transform: translateX(-110%);
  transition: transform 0.65s ease;
}

.channel-hero:hover,
.channel-hero:focus-visible {
  transform: translateY(-6px);
  box-shadow:
    0 34px 72px rgba(37, 211, 102, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.channel-hero:hover::before,
.channel-hero:focus-visible::before {
  transform: translateX(110%);
}

.channel-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 38px;
}

.channel-copy {
  position: relative;
  z-index: 1;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 750;
  line-height: 1.5;
  text-align: center;
}

/* ======================================================================
VISUAL GALLERY HEADING AND CATEGORY LINKS
====================================================================== */

.gallery-heading {
  margin-bottom: 35px;
  text-align: center;
}

.gallery-heading h2 {
  margin: 0;
  background: linear-gradient(90deg, var(--accent-cyan), #4f8cff, var(--accent-purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: 1px;
}

.gallery-heading p {
  margin: 14px 0 0;
  color: var(--muted-text);
  font-size: 17px;
}

.category-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}

.category-navigation a {
  padding: 11px 18px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.category-navigation a:hover,
.category-navigation a:focus-visible {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  transform: translateY(-2px);
}

/* ======================================================================
PUBLICATION CATEGORY SECTIONS
====================================================================== */

.category-section {
  --section-accent: var(--accent-cyan);
  width: 100%;
  margin-bottom: 64px;
  padding: clamp(24px, 4vw, 48px);
  scroll-margin-top: 24px;
  border: 1px solid color-mix(in srgb, var(--section-accent) 46%, transparent);
  border-radius: 34px;
  background: var(--panel-bg);
  box-shadow: 0 24px 60px var(--shadow-color);
  backdrop-filter: blur(14px);
}

.category-section.leadership {
  --section-accent: #fbbf24;
}

.category-section.transformation {
  --section-accent: #22d3ee;
}

.category-section.ai-governance {
  --section-accent: #a855f7;
}

.category-section.epic-systems {
  --section-accent: #ff00fb;
}

.category-section.nuclear-medicine {
  --section-accent: #fb7185;
}

.category-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--section-accent) 35%, transparent);
}

.category-title-row h3 {
  margin: 0;
  color: var(--section-accent);
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 900;
  letter-spacing: 0.4px;
}

.category-count {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--section-accent) 60%, transparent);
  border-radius: 999px;
  color: var(--section-accent);
  font-size: 13px;
  font-weight: 800;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  cursor: zoom-in;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.article-card:hover,
.article-card:focus-visible {
  border-color: var(--section-accent);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--section-accent) 18%, transparent);
  outline: none;
  transform: translateY(-6px);
}

.article-card img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  background: #030712;
}

/* ======================================================================
IMAGE LIGHTBOX
====================================================================== */

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  width: auto;
  max-width: min(1500px, 94vw);
  max-height: 90vh;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

/* ======================================================================
FOOTER
====================================================================== */

footer {
  width: 100%;
  margin-top: 30px;
  padding: 38px 20px;
  border-top: 1px solid var(--border-color);
  color: var(--muted-text);
  font-size: 14px;
  text-align: center;
}

footer a {
  margin-left: 5px;
  color: inherit;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--accent-cyan);
}

/* ======================================================================
TABLET RESPONSIVE DESIGN
====================================================================== */

@media (max-width: 1024px) {
  .page-wrapper {
    width: min(100% - 32px, 980px);
  }

  .publication-intro {
    padding-top: 72px;
  }

  .channel-hero {
    margin-bottom: 84px;
  }

  .article-card img {
    height: 410px;
  }
}

/* ======================================================================
MOBILE RESPONSIVE DESIGN
====================================================================== */

@media (max-width: 700px) {
  .page-wrapper {
    width: min(100% - 24px, 640px);
    padding-top: 20px;
  }

  .top-navigation {
    align-items: flex-start;
  }

  .page-identity {
    max-width: 150px;
  }

  .page-identity strong {
    font-size: 13px;
  }

  .page-identity span {
    font-size: 9px;
  }

  .publication-intro {
    padding: 58px 0 32px;
  }

  .publication-intro h1 {
    font-size: clamp(39px, 14vw, 62px);
    line-height: 1.02;
  }

  .publication-intro p {
    margin-top: 25px;
    font-size: 17px;
    line-height: 1.65;
  }

  .channel-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 18px auto 72px;
    padding: 25px 20px;
    border-radius: 25px;
  }

  .channel-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border-radius: 18px;
    font-size: 30px;
  }

  .gallery-heading h2 {
    font-size: 39px;
    line-height: 1.08;
  }

  .category-navigation {
    gap: 9px;
    margin-bottom: 38px;
  }

  .category-navigation a {
    padding: 9px 12px;
    font-size: 11px;
  }

  .category-section {
    margin-bottom: 34px;
    padding: 20px;
    border-radius: 25px;
  }

  .category-title-row {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .category-title-row h3 {
    font-size: 27px;
    line-height: 1.12;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article-card {
    border-radius: 18px;
  }

  .article-card img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .lightbox {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
SEMANTIC STRUCTURE WRAPPERS
========================================================================== */

.semantic-structure {
  display: contents;
}

.semantic-nav-list,
.semantic-nav-list li {
  display: contents;
}

/* ==========================================================================
FINAL CLEAN LAYOUT — SINGLE SOURCE OF TRUTH
========================================================================== */

.page-wrapper {
  width: min(100% - 48px, 1320px);
}

.top-navigation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 0;
}

.back-link {
  position: static;
  inset: auto;
  margin: 0;
  z-index: auto;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(79, 140, 255, 0.11));
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.1);
}

.back-link:hover,
.back-link:focus-visible {
  background: linear-gradient(135deg, var(--accent-cyan), #60a5fa);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.page-identity {
  margin-left: auto;
  flex: 0 0 auto;
  text-align: right;
}

@media (min-width: 701px) {
  .publication-intro h1 {
    white-space: nowrap;
    font-size: clamp(52px, 6.6vw, 104px);
  }

  .channel-hero {
    width: min(1120px, 100%);
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    padding: 28px 34px;
    border-radius: 30px;
  }

  .channel-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    font-size: 38px;
  }

  .channel-copy {
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.5;
    white-space: nowrap;
  }

  .article-card img {
    height: 520px;
    object-fit: contain;
  }
}

@media (max-width: 700px) {
  .page-wrapper {
    width: calc(100% - 24px);
    padding-top: 14px;
  }

  .top-navigation {
    width: 100%;
    align-items: flex-start;
    gap: 12px;
    margin: 0 auto;
    padding: 12px 10px 18px;
    border: 1px solid rgba(0, 209, 255, 0.18);
    border-radius: 18px;
    background: rgba(5, 12, 24, 0.72);
  }

  .back-link {
    padding: 9px 13px;
    font-size: 11px;
    letter-spacing: 0.4px;
    white-space: nowrap;
  }

  .page-identity {
    min-width: 0;
  }

  .page-identity strong {
    font-size: 12px;
  }

  .page-identity span {
    font-size: 9px;
  }

  .publication-intro {
    padding: 54px 0 32px;
  }

  .publication-intro h1 {
    white-space: normal;
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1.06;
    margin-top: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .channel-hero {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    margin: 20px auto 68px;
    padding: 14px 14px;
    border-radius: 22px;
    text-align: center;
  }

  .channel-icon {
    width: 48px;
    height: 48px;
    margin-inline: 0;
    border-radius: 15px;
    font-size: 24px;
  }

  .channel-copy {
    white-space: normal;
    max-width: none;
    margin-inline: 0;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
  }

  .article-card img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

/* ==========================================================================
TOUCH DEVICES
Keep borders visible when hover is unavailable.
========================================================================== */

@media (hover: none) and (pointer: coarse) {

  .glass-panel,
  .project-card,
  .module-card,
  .feature-card,
  .article-card,
  .cert-card,
  .comparison-col,
  .phase-card,
  .visual,
  .feature-image,
  .page-return,
  .project-return,
  .back-btn,
  .back-link,
  .back-home-btn,
  .return-btn,
  .theme-btn,
  .nav-links a {
    border-color: rgba(255,255,255,.18) !important;
  }

}