/* ===================== GLOBAL RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f8f9fa;
  color: #001f3f;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===================== NAVIGATION ===================== */
nav {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  font-family: 'Segoe UI', sans-serif;
  position: sticky;
  top: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  z-index: 1000;
  transition: all 0.4s ease;
}

nav.scrolled {
  padding: 10px 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

nav ul li a {
  text-decoration: none;
  color: #001f3f;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #c8102e;
}

/* ====== DROPDOWN ====== */
nav ul li {
  position: relative;
}

nav ul li ul {
  display: none;
  position: absolute;
  background: #fff;
  top: 120%;
  left: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  border-radius: 6px;
  list-style: none;
  padding: 10px 0;
  min-width: 200px;
  z-index: 999;
}

nav ul li:hover > ul {
  display: block;
}

nav ul li ul li {
  padding: 10px 20px;
}

nav ul li ul li a {
  font-weight: 500;
  color: #001f3f;
}

/* ====== SPONSOR BUTTON ====== */
.sponsor-btn a {
  background: #c8102e;
  padding: 8px 20px;
  border-radius: 30px;
  color: white !important;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sponsor-btn a:hover {
  background: #001f3f;
  transform: scale(1.05);
}

/* ===================== BURGER MENU ===================== */
.menu-toggle {
  display: none;
  cursor: pointer;
  position: absolute;
  right: 25px;
  top: 18px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle .bar {
  width: 32px;
  height: 3px;
  background-color: #001f3f;
  transition: all .3s ease;
}

/* ===================== MOBILE NAV ===================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    position: absolute;
    top: 60px;
    width: 100%;
    left: 0;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
  }

  nav ul.show {
    max-height: 600px;
    padding: 20px 0;
  }

  nav ul li {
    margin: 8px 0;
  }

  nav ul li ul {
    position: static;
    box-shadow: none;
  }
}

/* ===================== SCROLL SIDEBAR ===================== */
.scroll-nav {
  position: fixed;
  top: 130px;
  right: 25px;
  width: 220px;
  background: rgba(255,255,255,0.92);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 1000;
}

.scroll-nav a {
  display: block;
  text-decoration: none;
  margin-bottom: 10px;
  font-weight: bold;
  color: #001f3f;
  transition: all 0.3s ease;
}

.scroll-nav a.active,
.scroll-nav a:hover {
  color: #c8102e;
  transform: translateX(5px);
}

@media(max-width: 992px) {
  .scroll-nav {
    display: none;
  }
}

/* ===================== FADE IN ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== IMAGE EFFECT ===================== */
figure img {
  max-width: 100%;
  border-radius: 10px;
  transition: all 0.5s ease;
}

figure img:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

/* ===================== BUTTON ===================== */
.button {
  display: inline-block;
  padding: 12px 28px;
  background: #c8102e;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.button:hover {
  background: #001f3f;
  transform: translateY(-3px);
}

/* ===================== TOOLTIP ===================== */
.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background-color: #001f3f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  bottom: 125%;
  left: 50%;
  transform: translate(-50%, 10px);
  transition: all 0.3s ease;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0px);
}

/* ===================== CONTAINERS & TYPOGRAPHY ===================== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 50px 20px;
}

h1, h2, h3 {
  margin-bottom: 15px;
  line-height: 1.3;
}

h1 { font-size: 2.7em; color: #c8102e; text-align: center; }
h2 { font-size: 2em; color: #c8102e; }
h3 { font-size: 1.4em; color: #001f3f; }

/* ===================== GRIDS ===================== */
.product-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card,
.resource-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.product-card:hover,
.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

/* ===================== FOOTER ===================== */
.gbionic-footer {
  font-size: 0.9em;
  color: #555;
  text-align: center;
  margin-top: 50px;
}

