* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #19193f;
    margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
    
}

.section-title {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Link Layout (Mobile Default: 2 Links Per Line) */
.links-container {
  width: 100%;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Stacks nicely so text never squishes */
  gap: 12px;
  padding: 0;
  list-style-type: none;
}

/* 2. Medium Screens (Large Phones & Tablets / 480px to 767px): 2 Links Per Line */
@media (min-width: 480px) {
  .links-container {
    grid-template-columns: repeat(2, 1fr); /* Safely snaps to 2 columns here */
    gap: 15px;
  }
}

/* 3. Desktop View Optimization (Screens 768px and wider): 4 Links Per Line */
@media (min-width: 768px) {
  .links-container {
    grid-template-columns: repeat(4, 1fr); /* Spreads out cleanly to 4 columns */
  }
}


/* --- THE RE-STYLING FOR INDIVIDUAL LINKS (Stays the same) --- */
.video-trigger {
  display: block;
  background-color: #ffffff;
  color: #0066cc;
  text-decoration: underline;
  font-weight: bold;
  padding: 15px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  
  white-space: normal;       
  word-wrap: break-word;     
  overflow-wrap: break-word; 
}

.video-trigger:hover {
  background-color: #0066cc;
  color: #ffffff;
  text-decoration: none;
}
/* --- THE POP-UP MODAL BOX STYLING (THEATER MODE ADJUSTMENTS) --- */

/* Dark background overlay spanning the full screen */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9); /* Darker backdrop to emphasize the large video */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Container holding the video box */
.modal-content {
  position: relative;
  width: 95%;          /* Expands the box on standard screens */
  max-width: 1100px;   /* Massive maximum layout size for desktop view */
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  padding: 10px;
  box-sizing: border-box;
}

/* Close Button (X) Styling - Shifted slightly for large layout integration */
.close-btn {
  position: absolute;
  top: -45px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #ff3333;
}

/* Fluid Aspect-Ratio Wrapper to maintain the 600x480 scale natively */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 80%; /* Calculated exact scale ratio from your 600x480 requirements */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Desktop View Optimization (Screens wider than 768px: 4 Links Per Line) */
@media (min-width: 768px) {
  .links-container {
    grid-template-columns: repeat(4, 1fr);
  }
}