/* Base */

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
  /*padding-top: 110px;*/
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.top-header {
  background-color: #000;
  color: white;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 1050;
  height: 48px;
}

.top-header {
  position: fixed;
  top: 0;
  width: 100%;
}

#top-header {
  transition: all 1s ease;
  /*opacity: 0;*/
  transform: translateY(-100%);
  pointer-events: none;
}

#top-header.visible {
  /*opacity: 1;*/
  transform: translateY(0);
  pointer-events: auto;
}

#main-navbar {
  transition: margin-top 1s ease;
  margin-top: 0;
}

#main-navbar.with-top-margin {
  margin-top: 3rem !important;
}

.navbar {
  margin-top: 40px;
}

.icon-btn {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.icon-btn:hover {
  color: #00ffcc;
}

header {
  background-color: #0b3d91;
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

header.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  text-align: center;
}

main {
  padding-top: 90px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0 0;
  margin: 0;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffcc00;
}

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #0b3d91;
}

section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}

/* Grid */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media screen and (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Cards */

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  color: #0b3d91;
}

.card p {
  margin: 0;
  color: #555;
}

/* Footer */

footer {
  background-color: #0b3d91;
  color: white;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.social-bar {
  background: #343a40;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  justify-content: center;
}

.social-bar .wrap {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .75rem 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-bar .label {
  font-size: .95rem;
  opacity: .9;
  margin-right: .25rem;
}

.social-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: .9rem;
}

.social-links a:hover {
  background: rgba(255,255,255,.08);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

