:root {
  --primary-color: #8B0000;
  --text-color: #333;
  --bg-color: #f4f4f4;
  --card-bg: #fff;
  --page-max-width: 1200px;
  --page-padding: 1rem;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.banner {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  margin-bottom: 2rem;
}

.banner h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.banner h2 {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-video {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: transparent;
  border: 2px solid white;
  color: white;
  font-weight: bold;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1.2rem;
}

.btn-video:hover {
  background-color: white;
  color: var(--primary-color);
}

main {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  main {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  main {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-top: 4px solid var(--primary-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #666;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: var(--transition);
}

.card-link:hover {
  border-bottom-color: var(--primary-color);
}

footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  color: #888;
  font-size: 0.8rem;
  border-top: 1px solid #eee;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  background-color: transparent;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: black;
  border-radius: 8px;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  text-decoration: none;
  font-size: 2rem;
  line-height: 1;
  font-weight: bold;
  opacity: 0.8;
  transition: var(--transition);
  cursor: pointer;
}

.modal-close:hover {
  opacity: 1;
  color: var(--primary-color);
}

@media (max-width: 600px) {
  .modal-content {
    width: 95%;
  }

  .modal-close {
    top: -30px;
    right: 5px;
  }
}