/* RESET & BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #d9e2ff 100%);
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* LINKS */

a {
  color: #c90000;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #850000;
  outline: none;
}

/* BUTTONS */

.btn {
  display: inline-block;
  background-color: #c90000;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(201, 0, 0, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: #850000;
  box-shadow: 0 6px 20px rgba(133, 0, 0, 0.7);
  outline: none;
}

.btn.big {
  font-size: 1.6rem;
  padding: 1rem 3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* HEADER & NAVBAR */

header {
  background: #c90000;
  color: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(201, 0, 0, 0.5);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  color: #fff;
  transition: background-color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  background-color: #850000;
  box-shadow: 0 2px 10px rgba(133, 0, 0, 0.6);
}

/* HOME PAGE */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  text-align: center;
}

.home h1 {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: #111;
  text-shadow: 1px 1px 3px rgba(201, 0, 0, 0.5);
}

.module-choice {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* CONTAINER & CARDS */

.container {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 8px 20px rgba(201, 0, 0, 0.2),
    inset 0 -4px 8px rgba(255, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(201, 0, 0, 0.35),
    inset 0 -6px 12px rgba(255, 0, 0, 0.3);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 4px solid #c90000;
}

.card-content {
  padding: 1.5rem 1.2rem 2rem;
  text-align: center;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
  color: #900000;
}

.card-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.6rem;
}

/* MAIN SEQUENCE PAGE */

.sequence-main {
  max-width: 900px;
  margin: 3rem auto 4rem;
  padding: 0 1rem;
  flex: 1;
}

.sequence-main h1 {
  font-size: 2.8rem;
  color: #b00000;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(176, 0, 0, 0.6);
}

.sequence-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.sequence-content img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(201, 0, 0, 0.2);
  object-fit: contain;
}

.description {
  background: #fff6f6;
  border: 1px solid #c90000;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: inset 0 0 8px rgba(201, 0, 0, 0.1);
}

.description h2 {
  color: #900000;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.description p {
  font-size: 1.15rem;
  color: #333;
  line-height: 1.5;
}

/* MEDIA SECTION */

.media h2 {
  font-size: 2rem;
  color: #b00000;
  margin-bottom: 1rem;
  text-align: center;
}

video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(201, 0, 0, 0.25);
  outline: none;
}

/* FOOTER */

footer {
  background: #c90000;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-weight: 600;
  box-shadow: 0 -3px 8px rgba(201, 0, 0, 0.5);
}

/* RESPONSIVE */

@media (min-width: 768px) {
  .sequence-content {
    flex-direction: row;
    gap: 3rem;
  }

  .sequence-content img,
  .description {
    flex: 1;
  }
}

@media (max-width: 400px) {
  .btn.big {
    padding: 0.7rem 1.6rem;
    font-size: 1.2rem;
  }
}
