/* === General === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #fafafa 0%, #f1f1f1 100%);
    color: #333;
    line-height: 1.6;
    padding: 0 1rem;
    scroll-behavior: smooth;
  }
  
  /* === Header === */
  header {
    background: #7a0019;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 25px;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  #menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
  }
  
  /* === Navigation === */
  nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
  }
  
  nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  nav ul li a:hover {
    color: #ffd700;
  }
  
  @media (max-width: 768px) {
    nav ul {
      flex-direction: column;
      display: none;
    }
  
    nav ul.active {
      display: flex;
    }
  
    #menu-toggle {
      display: block;
      align-self: flex-end;
    }
  }
  
  /* === Sections === */
  main {
    max-width: 1200px;
    margin: 2rem auto;
  }
  
  section {
    margin-bottom: 4rem;
  }
  
  h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    border-left: 4px solid #7a0019;
    padding-left: 0.5rem;
  }
  
  /* === Cards === */
  .card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .card::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background: #7a0019;
    left: 0;
    bottom: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
  }
  
  .card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  .card h3 {
    margin-bottom: 0.5rem;
  }
  
  .card p {
    font-size: 0.95rem;
    color: #444;
  }
  
  .card a {
    display: inline-block;
    margin-top: 0.75rem;
    background-color: #7a0019;
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
  }
  
  .card a:hover {
    background-color: #a00028;
  }
  
  /* === Footer === */
  footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: #777;
    background-color: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  }

  /* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 1.5rem;
  background-color: #7a0019;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: #a00028;
}

footer a {
  color: #7a0019;
  text-decoration: none;
  font-weight: 500;
}

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

