/* ============================================
   ROOT VARIABLES: CSS Custom Properties
   Theme colors and design tokens
   Dark theme is default, light theme via media query
   ============================================ */
:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --text: #e5e7eb;
  --muted: #cbd5e1;
  --accent: #0ea5e9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --panel: #fff;
    --text: #0f172a;
    --muted: #475569;
    --shadow: 0 10px 30px rgba(2, 6, 23, .08);
  }
}

/* ============================================
   GLOBAL STYLES: Base resets and typography
   ============================================ */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font: 16px/1.6 system-ui, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   LAYOUT: Container and responsive wrapper
   ============================================ */
.wrap {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 24px;
  overflow-x: hidden;
}

/* ============================================
   HEADER: Logo, brand, and navigation buttons
   ============================================ */
header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-link {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  text-decoration: none;
  opacity: 0.85;
}

.brand-link:hover .logo {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .45);
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ============================================
   BUTTONS & TAGS: Interactive elements styling
   ============================================ */
.tag {
  display: inline-block;
  padding: .15rem .55rem;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 165, 233, .75);
  font-size: 12px;
}

.btn {
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(2, 6, 23, .2);
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.btn:hover {
  background: rgba(2, 6, 23, .3);
  text-decoration: none;
}

/* ============================================
   HERO SECTION: Landing page main content (p1)
   ============================================ */
.hero {
  padding: 22px;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero h2 {
  margin: 0 0 6px;
  font-size: 28px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.muted {
  color: var(--muted);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ============================================
   CARD: Content container with panel styling
   ============================================ */
.card {
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 18px;
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ============================================
   GALLERY: Responsive image grid with hover effects
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  max-width: 100%;
}

.tile {
  margin: 0;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 12px;
  overflow: hidden;
  background: #0002;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tile img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  max-width: 100%;
}

.tile figcaption {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ============================================
   KPI PILLS: Key performance indicator badges
   ============================================ */
.kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.pill {
  background: rgba(14, 165, 233, .12);
  border: 1px solid rgba(14, 165, 233, .35);
  padding: 8px 10px;
  border-radius: 12px;
}

/* ============================================
   PAGER: Section navigation menu
   ============================================ */
.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 14px 0;
  flex-wrap: wrap;
}

.pager a {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .35);
}

.pager a.active {
  background: rgba(14, 165, 233, .2);
}

/* ============================================
   SECTIONS: Page section visibility and display logic
   ============================================ */
.section {
  display: none;
}

.section.active {
  display: block;
}

.hidden {
  display: none !important;
}

#showAllBtn,
#showAllBtn2 {
  margin: 14px auto;
  display: block;
}

/* ============================================
   SLIDER: Image carousel with navigation dots
   ============================================ */
.slider {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: var(--radius);
  padding: 10px;
  overflow: hidden;
  max-width: 100%;
}

.track {
  display: flex;
  transition: transform .4s ease;
  max-width: 100%;
}

.slide {
  min-width: 100%;
  margin: 0;
  padding: 0 0 8px;
  max-width: 100%;
}

.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  max-width: 100%;
}

.slide figcaption {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.slide ul {
  margin: 6px 0 0 18px;
  padding-left: 20px;
}

.nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(2, 6, 23, .5);
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.nav.prev {
  left: 8px;
}

.nav.next {
  right: 8px;
}

.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 6px 0 0;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(148, 163, 184, .5);
  cursor: pointer;
}

.dots button[aria-selected="true"] {
  background: var(--accent);
}

@media (max-width: 680px) {
  .slide img {
    height: 260px;
  }
}

/* ============================================
   FOOTER: Copyright and location information
   ============================================ */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, .25);
}

/* ============================================
   INLINE STYLES: Specific one-off styles extracted from HTML
   ============================================ */
.inline-style-1 {
  margin: 0;
}

.inline-style-2 {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-style-3,
.inline-style-4 {
  margin-top: 6px;
}

.inline-style-5,
.inline-style-6 {
  margin-top: 10px;
}

.inline-style-7 {
  max-width: 180px;
  width: 40%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .35);
}

.inline-style-8 {
  margin-top: 12px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 12px;
  overflow: hidden;
}

.inline-style-9 {
  border: 0;
}

.inline-style-10 {
  padding: 40px 0;
  background: linear-gradient(180deg, rgba(0, 80, 160, 0.05), transparent);
  border-top: 1px solid rgba(0, 80, 160, 0.15);
}

.inline-style-11 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.inline-style-12 {
  margin: 0 0 8px;
  color: #0b4a8b;
}

.inline-style-13 {
  margin: 0 0 18px;
  color: #335c85;
}

.inline-style-14 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

/* ============================================
   LIGHTBOX: Full-screen modal image viewer
   Features: overlay, navigation, close button, keyboard support
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 48px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  padding: 0;
  width: 50px;
  height: 50px;
  line-height: 40px;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 16px 20px;
  cursor: pointer;
  z-index: 10001;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 8px;
  max-width: 80%;
  text-align: center;
}

@media (max-width: 680px) {
  /* Layout adjustments */
  .wrap {
    padding: 12px;
    max-width: 100%;
  }

  /* Header mobile layout */
  header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 16px;
  }

  .brand {
    justify-content: center;
  }

  .brand-link {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .brand h1 {
    font-size: 18px;
  }

  .inline-style-2 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .btn {
    font-size: 13px;
    padding: 6px 8px;
    white-space: nowrap;
  }

  /* Hero section */
  .hero {
    padding: 14px;
  }

  .hero h2 {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .hero .muted {
    font-size: 13px;
    line-height: 1.4;
  }

  /* KPI pills - responsive grid */
  .kpi {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .pill {
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
  }

  /* Card adjustments */
  .card {
    padding: 12px;
    margin-top: 14px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 14px;
  }

  /* Gallery responsive */
  .gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tile img {
    height: 200px;
  }

  .tile figcaption {
    font-size: 13px;
  }

  /* Pager navigation */
  .pager {
    gap: 5px;
    margin: 12px 0;
  }

  .pager a {
    padding: 5px 7px;
    font-size: 12px;
  }

  /* Footer stacking */
  footer {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
  }

  /* Slider adjustments */
  .slider {
    padding: 6px;
  }

  .slide {
    padding: 0;
  }

  .slide img {
    height: 240px;
  }

  .slide figcaption {
    font-size: 12px;
    padding: 6px 4px;
  }

  .slide ul {
    padding-left: 16px;
    margin-left: 0;
  }

  .nav {
    width: 32px;
    height: 32px;
  }

  /* Lightbox mobile */
  .lightbox-image {
    max-width: 95%;
    max-height: 80vh;
  }

  .lightbox-nav {
    font-size: 24px;
    padding: 10px 14px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    font-size: 32px;
    top: 8px;
    right: 12px;
  }

  .lightbox-caption {
    font-size: 13px;
    padding: 8px 12px;
    max-width: 90%;
    bottom: 10px;
  }

  /* Contact section adjustments */
  .inline-style-7 {
    max-width: 140px;
    width: 50%;
  }

  .inline-style-8 {
    margin-top: 10px;
  }

  .inline-style-8 iframe {
    height: 220px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .wrap {
    padding: 8px;
  }

  .hero {
    padding: 12px;
  }

  .hero h2 {
    font-size: 18px;
  }

  .card {
    padding: 10px;
  }

  .btn {
    font-size: 12px;
    padding: 5px 7px;
  }

  .pager a {
    font-size: 11px;
    padding: 4px 6px;
  }

  .pill {
    font-size: 12px;
  }
}
