/* ===== Base Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(to right, #eef2f3, #dbe9f4);
  padding: 0;
  min-height: 100vh;
  color: #1e293b;
  overflow-x: hidden;
}

/* Only for series-strip and its content */
.series-strip,
.series-strip * {
  font-family: 'Segoe UI', Arial, sans-serif !important;
}

/* ==== Series Tabs ==== */
.series-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  background: #f3f5fa;
  padding: 12px;
  flex-wrap: wrap;
  border-radius: 16px;
  margin: 18px 30px 18px 30px;
  box-shadow: 0 1px 6px rgba(44,62,80,0.08);  
}
.series-tab {
  padding: 10px 20px;
  border-radius: 22px;
  background: #e5e7eb;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  transition: background 0.25s, color 0.2s;
  color: #273eaf;
  margin: 0 2px;
}
.series-tab.active,
.series-tab:hover {
  background: #273eaf;
  color: #fff;
}

/* ==== Main Form ==== */
.form-container {
  max-width: 560px;
  margin: 30px auto 18px auto;
  padding: 25px 22px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0 16px rgba(30,40,90,0.07);
  border: 1px solid #ecf0f6;
}
.form-container h2 {
  text-align: center;
  margin-bottom: 18px;
  color: #273eaf;
  font-size: 1.36rem;
}
.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
  color: #334155;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 10px;
  border: 1px solid #b7c6e6;
  border-radius: 8px;
  font-size: 15px;
  background: #f8fafc;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #273eaf;
  background: #fff;
  box-shadow: 0 0 2px #273eaf55;
}
textarea {
  resize: vertical;
  min-height: 80px;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: #273eaf;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.23s, box-shadow 0.19s;
  box-shadow: 0 2px 10px rgba(30,40,90,0.04);
}
.submit-btn:hover {
  background: #1e3a8a;
}
#formMsg {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  min-height: 18px;
}

/* ==== Approved Series Strip Style ==== */
.pinned-upcoming-section {
  max-width: 1200px;
  margin: 36px auto;
  padding: 0 18px;
}
.series-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 18px;
  margin-left: 30px;
}

.series-info {
  flex: 1 1 340px;
  min-width: 310px;
  max-width: 365px;
  background: #fff;
  border-radius: 17px;
  padding: 22px 25px 18px 25px;
  box-shadow: 0 2px 18px rgba(44,62,80,0.11);
  transition: box-shadow 0.21s, transform 0.19s;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.series-info:hover {
  transform: translateY(-5px) scale(1.017);
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
}

.series-info h2 {
  font-size: 20px;
  margin-bottom: 14px;
  color: #2563eb;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.12;
  min-height: 2.2em;
}
.series-info p {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.1;
  color: #26324b;
  font-weight: 350;
  word-break: break-word;
  font-style: italic;
}
.series-info p b {
  color: #000000;
  font-weight: 600;
}

/* Links for poster/pdf */
.series-info a {
  color: #2563eb;
  text-decoration: underline;
  transition: color 0.18s;
  word-break: break-word;
}
.series-info a:hover {
  color: #1d4ed8;
}

/* Responsive: Tablet (2 per row), Mobile (1 per row/horizontal) */
@media (max-width: 980px) {
  .series-info-grid {
    gap: 17px;
  }
  .series-info {
    min-width: 47vw;
    max-width: 98vw;
    padding: 17px 13px 14px 15px;
  }
}
@media (max-width: 700px) {
  .pinned-upcoming-section {
    padding: 0 2vw;
    margin: 22px auto 16px auto;
  }
  .series-info-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 11px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    margin-top: 8px;
    margin-left: 30px;
  }
  .series-info {
    flex: 0 0 87vw;
    min-width: 87vw;
    max-width: 98vw;
    scroll-snap-align: start;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(30,30,47,0.11);
    background: #F1F5F9;
    margin-bottom: 0;
    text-align: left;
    padding: 12px 15px 15px 15px;   
  }
  .series-info h2 {
    font-size: 1.50em;
    padding-bottom: 4px;
    min-height: unset;
  }
  .series-info p { font-size: 16px; }
}

/* ==== Footer Responsive Fix ==== */
@media (min-width: 768px) {
  #footer-container { margin-top: auto; }
}
@media (max-width: 767px) {
  #footer-container { margin-bottom: 55px; }
}

/* ==== Utility ==== */
.loading-spinner {
  width: 36px; height: 36px;
  margin: 50px auto;
  border: 4px solid #b9c1db;
  border-top: 4px solid #273eaf;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0);}
  100% { transform: rotate(360deg);}
}
