/* Etude Page Layout */
.etude-container {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  color: #fff;
}

/* Title */
.etude-title {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* YouTube Embed */
.video-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.video-container iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.download-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
  background-color: #1b1f2a;
  padding: 2rem;
  border-radius: 12px;
  max-width: 900px;
  margin: 2rem auto;
}

.thumbnail img {
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 8px;
}

/* Button Grid Styling */
/* .download-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
} */

.download-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Max 2 columns */
  gap: 1rem;
}

.download-buttons h2 {
  grid-column: 1 / -1;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.download-buttons.single-file {
  grid-template-columns: 1fr; 
  justify-items: center;
}


.download-buttons.single-file .etude-button {
  min-width: 220px;
  text-align: center;
}

.etude-button {
  background-color: var(--button-background);
  color: var(--button-text-color);
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: block;
  text-align: center;
}

.etude-button:hover {
  background-color: var(--button-background-hover);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .download-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-buttons h2 {
    text-align: center;
  }

  .thumbnail img {
    max-width: 80%;
    margin: 0 auto 1rem auto;
  }
}

.etude-download-section {
  background-color: #1a1d26;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.download-title {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.etude-download-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.etude-thumbnail img {
  max-width: 250px;
  height: auto;
  border-radius: 10px;
}

/* ========== MODAL STYLING ========== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #1e293b;
  border-radius: 8px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  color: #fff;
}

.modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.modal-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.modal-content button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  background-color: #b86e35;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.modal-content button:hover {
  background-color: #a85d29;
}

#email-form input[type="email"] {
  width: 100%;
  padding: 0.6rem;
  margin: 0.5rem 0;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
}

.hidden {
  display: none;
}
