:root{
  --bg:#0b1220;
  --panel:#0f1b33;
  --brand:#5aa9ff;
  --border:rgba(255,255,255,.10);
  --radius:16px;
  --primary-blue: #174EA6;
  --accent-blue: #4285F4;
  --text-dark: #202124;
  --text-secondary: #5f6368;
  --background-light: #f8f9fa;
  --border-light: #e8eaed;
  --highlight-yellow: #fbbc04;
  --white: #ffffff;
  --success: #27ae60;
  --danger: #e74c3c;
  --reading-width: 85ch;
  --card:#0f1b3f;
      --card2:#0b1432;
      --text:#EAF0FF;
      --muted:rgba(234,240,255,.72);
      --accent:#7C5CFF;
      --accent2:#2DE2E6;
      --shadow: 0 18px 50px rgba(0,0,0,.45);
}

  *{ box-sizing:border-box; }
  body{
      margin:0;
      font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
      background:
        radial-gradient(1200px 700px at 20% 0%, rgba(124,92,255,.35), transparent 55%),
        radial-gradient(1000px 600px at 90% 10%, rgba(45,226,230,.22), transparent 50%),
        linear-gradient(180deg, var(--bg0), var(--bg1));
      min-height:100vh;
      padding: 0;

  }

/* HEADER */

.header-container {
  background: #f5f5f5e9;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

header {
  height: 100%;
  margin: 0 auto;
  padding: 0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  width: 140px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.engraved1,
.engraved2 {
  font-weight: bold;
  padding: 3px 8px;
  border: none;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: -2px;
  text-shadow: 1px 1px 0 #fff, -1px -1px 0 #c3c2c2;
}

.engraved1 {
  color: #f9f4f4;
  background-color: #e90c0c;
  font-size: 25px;
}

.engraved2 {
  color: var(--text-dark);
  background-color: var(--highlight-yellow);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 23px;
}


nav ul:not(.submenu) {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  justify-content: center;
  margin-right: 25px;
}

nav>ul>li {
  position: relative;
}

.top-nav {
  text-decoration: none;
  color: rgba(6, 14, 46, 0.97);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  font-size: 1.15rem;
  transition: color 0.3s ease;
}

.top-nav:hover {
  color: var(--primary-blue);
}

.top-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--highlight-yellow);
  transition: width 0.3s ease;
}

.top-nav:hover::after {
  width: 100%;
}

.mobile-menu-icon {
  display: none;
  font-size: 1.8rem;
  margin-right: 15px;
  cursor: pointer;
  color: var(--white);
}

/*Submenu*/

.submenu {
  width: 180px;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: absolute;
  list-style: none;
  top: 52px;
  left: -5px;
  padding: 18px 0;
  visibility: hidden;
  opacity: 0;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  z-index: 800;
  transition: all 0.3s ease;
}

nav ul li:hover .submenu {
  visibility: visible;
  opacity: 1;
  top: 52px;
  gap: 0.8rem;
}

.submenu::before {
  content: '';
  height: 0;
  width: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #fff;
  position: absolute;
  top: -12px;
  left: 20px;
}

.submenu>li>a {
  display: block;
  color: #1d2655;
  padding: 4px 6px 6px 14px;
  font-size: 1.1rem;
  margin-top: 4px;
  transition: all 0.3s ease;
  list-style: none;
  text-decoration: none;
}

.submenu>li>a:hover {
  background: #0074c7;
  color: #fff;
  transform: scale(1.1);
  padding-left: 30px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

button a {
  text-decoration: none;
  font-weight: 600;
  color: #fff;
}

button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

button.active {
  background: #ff0066;
  border-color: #ff0066;
}

.wrap{
  width: min(980px, 100%);
  padding: 20px 16px;
  margin: 15px auto;
  padding: 0;
}

.topbar{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  margin-bottom: 16px;
  padding: 0 6px;
}

.title{
  margin:0;
  font-size: clamp(18px, 2.5vw, 26px);
  color: #0074c7;
  letter-spacing: .2px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

/* Carousel viewport */
.viewport{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; 
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(124,92,255,.16), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.35));
}

/* Slides track */
.track{
  height: 100%;
  display:flex;
  transition: transform 420ms cubic-bezier(.2,.85,.2,1);
  will-change: transform;
}

.slide{
  flex: 0 0 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
}

.imgFrame{
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}

img{
  width: 100%;
  height: 100%;
  object-fit: contain; 
  display:block;
  user-drag: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Caption area */
.caption{
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.18));
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}

.caption .left{
  min-width:0;
}

.caption .capTitle{
  margin:0;
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Dots */
.dots{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:center;
  padding: 14px 16px 18px;
  background: rgba(130, 124, 124, 0.461);
  border-top: 1px solid rgba(255,255,255,.06);
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(124, 131, 169, 0.97);
  cursor:pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, width 180ms ease;
  position: relative;
}

.dot:hover{
  background: #2e3a5f;
}

.dot:focus-visible{
  outline: 2px solid rgba(124,92,255,.9);
  outline-offset: 4px;
}

.dot.active{
  width: 26px;
  border-color: rgba(124,92,255,.9);
  background: linear-gradient(90deg, rgba(124,92,255,1), rgba(45,226,230,.85));
  box-shadow: 0 0 0 6px rgba(124,92,255,.10);
}

/* Optional arrows */
.navBtn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: var(--danger);
  color: var(--text);
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index: 2;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
  user-select:none;
}

.navBtn:hover{
  transform: translateY(-50%) scale(1.04);
  border-color: rgba(124,92,255,.55);
  background: rgba(0,0,0,.35);
}

.navBtn:active{ transform: translateY(-50%) scale(.98); }
.navBtn[disabled]{
  opacity: .45;
  cursor:not-allowed;
}
.navPrev{ left: 14px; }
.navNext{ right: 14px; }

@media (max-width: 860px){
  .header-container {
    padding: 0;
  }

  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 0;
  }

  .logo {
    width: 120px;
    flex-shrink: 0;
  }

  .engraved1 {
    font-size: 18px;
  }

  .engraved2 {
    font-size: 16px;
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
  }

  nav ul:not(.submenu) {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 10px 0;
    margin: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.nav-active {
    display: flex;
  }


  .top-nav {
    padding: 12px 15px;
    font-size: 1rem;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #ddd;
    display: block;
  }

  .last {
    border-bottom: none;
  }

  .top-nav::after {
    display: none;
  }

  .mobile-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 10px 0 0;
    cursor: pointer;
    color: #000;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 5px;
  }

  .submenu {
    width: 100%;
    display: none;
    flex-direction: column;
    position: static;
    padding: 0;
    margin: 0;
    background: #f9f9f9;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    top: auto;
    left: auto;
  }

  .submenu::before {
    display: none;
  }

  .submenu.show {
    display: flex;
  }

  .submenu > li > a {
  padding: 8px 10px;
  margin-left: 20px;
  font-size: 0.95rem;
  text-align: left;
  border-bottom: none;
  }


  .submenu > li > a:hover {
    background: #0074c7;
    color: #fff;
    transform: none;
    padding-left: 30px;
    box-shadow: none;
  }

  .unfold {
    cursor: pointer;
    position: relative;
  }

  .unfold::after {
    content: ' ▼';
    font-size: 0.8rem;
    margin-left: 5px;
  }

  .viewport{ aspect-ratio: 9 / 13; }
  .navBtn{ width: 36px; height: 36px; }
  .dots{ padding-bottom: 14px; }

}