
:root{
  --bg:#eef4ff;
  --bg2:#f9fbff;
  --surface:rgba(255,255,255,.82);
  --surface-strong:#ffffff;
  --surface-alt:rgba(244,248,255,.88);
  --text:#182433;
  --muted:#5a6a7d;
  --accent:#5b7cfa;
  --accent-2:#19b8b2;
  --accent-soft:rgba(91,124,250,.12);
  --border:rgba(146,166,196,.24);
  --shadow:0 18px 50px rgba(55, 84, 170, .12);
  --shadow-soft:0 10px 30px rgba(31, 50, 120, .08);
  --radius:24px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(25,184,178,.12), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(91,124,250,.14), transparent 22%),
    linear-gradient(180deg,var(--bg2) 0%, var(--bg) 100%);
  line-height:1.75;
  min-height:100vh;
  overflow-x:hidden;
}

a{color:#3157e0; text-decoration:none}
a:hover{text-decoration:underline}

.bg-orb{
  position:fixed;
  border-radius:50%;
  filter:blur(24px);
  opacity:.55;
  z-index:0;
  animation:floatOrb 12s ease-in-out infinite;
}
.orb-1{
  width:220px; height:220px;
  background:rgba(91,124,250,.16);
  top:60px; left:40px;
}
.orb-2{
  width:260px; height:260px;
  background:rgba(25,184,178,.14);
  right:50px; top:380px;
  animation-delay:-5s;
}
@keyframes floatOrb{
  0%,100%{transform:translateY(0) translateX(0)}
  50%{transform:translateY(-18px) translateX(10px)}
}

.page-shell{
  position:relative;
  z-index:1;
  width:min(1400px, calc(100% - 48px));
  margin:24px auto;
  display:grid;
  grid-template-columns:290px 1fr;
  gap:28px;
  align-items:start;
}

.sidebar{
  position:sticky;
  top:24px;
  align-self:start;
  max-height:calc(100vh - 48px);
  background:rgba(255,255,255,.7);
  backdrop-filter: blur(16px);
  border:1px solid var(--border);
  border-radius:28px;
  overflow-y:auto;
  box-shadow:var(--shadow);
}
.sidebar-inner{
  padding:28px 20px 28px;
}
.site-title{
  font-size:1.35rem;
  line-height:1.35;
  margin:0 0 22px;
  color:#17263f;
}
.sidebar nav{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.nav-link{
  display:block;
  padding:12px 14px;
  border-radius:16px;
  color:#314157;
  background:transparent;
  transition:transform .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
  font-weight:600;
}
.nav-link:hover,
.nav-link.active{
  background:linear-gradient(135deg, rgba(91,124,250,.18), rgba(25,184,178,.12));
  color:#14213a;
  box-shadow:var(--shadow-soft);
  text-decoration:none;
  transform:translateX(4px);
}

.content{
  min-width:0;
  padding:4px 0 26px;
}
.section{
  padding:18px 0 26px;
}
.hero{
  padding-top:0;
}
.section-header{
  margin-bottom:16px;
}
.section-header h2,
.hero h2{
  font-size:2rem;
  line-height:1.18;
  margin:0 0 10px;
  color:#163149;
}
.section-grid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(260px,.8fr);
  gap:24px;
  align-items:start;
}
.section-grid.reverse{
  grid-template-columns:minmax(0,1.15fr) minmax(240px,.78fr);
}
.text-card,
.image-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
  transition:transform .28s ease, box-shadow .28s ease;
}
.text-card:hover,
.image-card:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 50px rgba(46, 77, 163, .16);
}
.text-card{
  padding:28px 30px;
}
.image-card{
  padding:18px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:240px;
}
.image-card img{
  width:min(100%, 280px);
  max-height:220px;
  object-fit:contain;
  display:block;
  border-radius:18px;
  animation:floatImage 5.5s ease-in-out infinite;
}
.hero .image-card img{
  width:min(100%, 320px);
  max-height:240px;
}
@keyframes floatImage{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-8px)}
}
.full-width{
  grid-column:1 / span 1;
}
.alt .text-card,
.alt .image-card{
  background:var(--surface-alt);
}

h3{
  margin:20px 0 8px;
  color:#1d4267;
}
h4{
  margin:16px 0 8px;
  color:#2b5678;
}
p, li{
  font-size:1rem;
}
ul{
  margin:8px 0 0 0;
  padding-left:22px;
}
blockquote{
  margin:14px 0 0;
  padding:18px 20px;
  border-left:5px solid var(--accent);
  background:linear-gradient(135deg, rgba(91,124,250,.08), rgba(25,184,178,.08));
  border-radius:14px;
  font-style:italic;
}
.conclusion-section .section-grid{
  grid-template-columns:minmax(0,1.25fr) minmax(240px,.78fr);
}

.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .65s ease, transform .65s ease;
}
.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

.menu-toggle{
  display:none;
  position:fixed;
  top:16px;
  left:16px;
  z-index:1200;
  border:none;
  background:linear-gradient(135deg,#163149,#3157e0);
  color:#fff;
  width:48px;
  height:48px;
  border-radius:14px;
  font-size:1.2rem;
  box-shadow:var(--shadow);
  cursor:pointer;
}

@media (max-width: 1080px){
  .page-shell{
    grid-template-columns:1fr;
    width:min(1100px, calc(100% - 28px));
    margin:14px auto 28px;
  }
  .sidebar{
    position:fixed;
    top:14px;
    left:14px;
    bottom:14px;
    width:290px;
    max-height:none;
    transform:translateX(-120%);
    transition:transform .3s ease;
    z-index:1100;
  }
  .sidebar.open{
    transform:translateX(0);
  }
  .content{
    padding:66px 0 18px;
  }
  .menu-toggle{display:block}
  .section-grid,
  .section-grid.reverse,
  .conclusion-section .section-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 700px){
  .text-card{
    padding:22px 18px;
  }
  .image-card{
    min-height:200px;
    padding:14px;
  }
  .image-card img{
    width:min(100%, 230px);
    max-height:180px;
  }
  .hero .image-card img{
    width:min(100%, 250px);
    max-height:190px;
  }
  .section-header h2,
  .hero h2{
    font-size:1.55rem;
  }
}



/* --- Updated layout: header + left text / small right images --- */
.page-header{
  padding: 0 0 18px;
}
.page-header-card{
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 26px 30px;
}
.page-header-text h1{
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.15;
  color: #163149;
}

.section-grid.text-left-image-right{
  grid-template-columns: minmax(0,1.35fr) minmax(180px,.55fr);
  gap: 22px;
  align-items: start;
}

.section-grid.text-left-image-right .text-card{
  order: 1;
}

.section-grid.text-left-image-right .image-card{
  order: 2;
  min-height: 160px;
  padding: 14px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.section-grid.text-left-image-right .image-card img{
  width: min(100%, 180px);
  max-height: 140px;
  object-fit: contain;
  border-radius: 14px;
}

.hero-grid{
  grid-template-columns: minmax(0,1.35fr) minmax(220px,.6fr);
}
.hero .image-card{
  min-height: 180px;
}
.hero .image-card img{
  width: min(100%, 210px);
  max-height: 150px;
}

.conclusion-section .section-grid.text-left-image-right{
  grid-template-columns: minmax(0,1.35fr) minmax(180px,.55fr);
}

.full-width{
  grid-column: auto;
}

@media (max-width: 1080px){
  .page-header-card{
    padding: 22px 20px;
  }
  .page-header-text h1{
    font-size: 1.8rem;
  }
  .section-grid.text-left-image-right,
  .hero-grid,
  .conclusion-section .section-grid.text-left-image-right{
    grid-template-columns: 1fr;
  }
  .section-grid.text-left-image-right .image-card,
  .hero .image-card{
    position: static;
    min-height: auto;
    justify-self: center;
  }
  .section-grid.text-left-image-right .image-card img,
  .hero .image-card img{
    width: min(100%, 200px);
    max-height: 160px;
  }
}

.page-header{
  position: sticky;
  top: 0;
  z-index: 1000;
}
