/* ===== Base Styling ===== */
body {
  margin: 0;
  background-color: #fce0ad;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Top Border Section ===== */
.top-wrapper {
  max-width: 1500px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  /* needed for top-right-links positioning */
}

/* ===== Title Section ===== */
.title-section {
  padding: 1rem;
  background-color: #9fe1f1;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.title-section h1 {
  font-size: 2.4rem;
  font-weight: bold;
  margin: 0;
  color: #1a1a1a;
}

/* ===== Dropdown Section ===== */
.dropdown-wrapper {
  border-radius: 8px;
  padding: 2rem;
  background-color: #fefefe;
  margin-bottom: 2rem;
}

.dropdown-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* ===== Top Right Links ===== */
.top-right-links {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  z-index: 1050;
  display: flex;
  gap: 1rem;
}

.top-right-links a {
  color: #151616;
  font-weight: bold;
  text-decoration: none;
}

.top-right-links a:hover {
  text-decoration: underline;
}

/* ===== Dropdown Styling ===== */
.form-select {
  width: 100%;
  max-width: 280px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 2px solid #ced4da;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  height: 48px;
  display: block;
  margin: 0 auto;
}

.form-select:hover,
.form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
  outline: none;
}

/* ===== Iframe Styling ===== */
#pageViewer {
  width: 100%;
  border: none;
  min-height: 700px;
  margin: 0 auto 3rem;
  display: block;
  background: white;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

/* ===== Video Section ===== */
.esquare-video {
  width: 100%;
  max-width: 1000px;   /* limits video width on desktop */
  height: auto;
  border-radius: 12px;
  border: 4px solid #007bff;   /* 🔹 Blue border (Bootstrap primary color) */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;   /* keeps video filling area */
  display: block;
  margin: 0 auto;
}



/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 992px) {
  .title-section h1 {
    font-size: 2.2rem;
  }

  .dropdown-group {
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* Top wrapper adjusts fully */
  .top-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem;
    border-radius: 0;
  }

  /* Title text smaller */
  .title-section h1 {
    font-size: 1.7rem;
  }

  /* Top right links smaller & reposition */
  .top-right-links {
    position: relative;
    /* remove absolute positioning */
    justify-content: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
  }

  .top-right-links a {
    font-size: 0.9rem;
  }

  /* Dropdown stacking */
  .dropdown-group {
    flex-direction: column;
    align-items: center;
  }

  .form-select {
    width: 100%;
    font-size: 0.95rem;
  }

  /* Dropdown wrapper spacing */
  .dropdown-wrapper {
    padding: 1rem;
  }

  /* Iframe smaller */
  #pageViewer {
    padding: 0.5rem;
    min-height: 500px;
    max-width: 100%;
  }

  /* Mobile adjustments */
  @media (max-width: 768px) {
    .esquare-video {
      max-width: 100%;
      border-radius: 8px;
    }
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .title-section h1 {
    font-size: 1.4rem;
  }

  .top-right-links a {
    font-size: 0.8rem;
  }
}