/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Base */
body {
  font-family: Arial, sans-serif;
  background: url(images/Backgrounds/4.jpg) center / cover no-repeat;
  line-height: 1.6;
  color: black;
}

/* Page container */
#home {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

#home h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 12px;
}

/* Fix first paragraph spacing and readability */
.intro {
  margin: 0 auto 25px auto;
  max-width: 800px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.7;
  background: rgba(255,255,255,0.6);
  padding: 12px 16px;
  border-radius: 8px;
  backdrop-filter: blur(2px);
}

/* Entry: video + text side-by-side on desktop/tablet */
.entry {
  display: grid !important;
  grid-template-columns: 400px 1fr; /* larger videos now */
  gap: 28px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.entry:first-of-type { border-top: 0; }

/* Ensure no old floats interfere */
.entry .media iframe {
  display: block !important;
  float: none !important;
  border: 0;
  width: 400px !important;
  height: 500px !important;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Translucent text box */
.entry .content {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 16px 18px;
}

.entry .content h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 8px;
}

.entry .content p { margin-bottom: 10px; }

.entry .download {
  color: #0056b3;
  text-decoration: none;
}
.entry .download:hover { text-decoration: underline; }

/* Phones: stack + scale video, keep 400×500 ratio (4:5 = 0.8) */
@media (max-width: 800px) {
  #home { padding: 16px; }

  .entry {
    grid-template-columns: 1fr !important;  /* stack */
    gap: 12px;
    align-items: start;
  }

  .entry .media iframe {
    width: 95vw !important;
    height: calc(95vw * 1.25) !important; /* maintain 4:5 ratio */
    max-width: 100%;
    margin: 0 auto;
  }

  .entry .content {
    background: rgba(255,255,255,0.82);
    padding: 12px 14px;
  }

  .intro {
    background: rgba(255,255,255,0.75);
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}

/* Wider desktops */
@media (min-width: 1200px) {
  #home { max-width: 1200px; }
}
