/* ---------------------- Base ---------------------- */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #f9fafb;
  position: relative;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* ---------------------- Top Navigation ---------------------- */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav .logo-dark { max-width: 135px; }

.nav-buttons {
  display: flex;
  gap: 7px;
}

.minimal-play-btn {
  background: transparent;
  border: 2px solid #111;
  border-radius: 0;
  width: 36px;
  height: 36px;
  font-size: 18px;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.minimal-play-btn:hover {
  background: #111;
  color: #fff;
}

.top-nav #logout-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 0.9rem;
}
.top-nav #logout-btn:hover { background: #333; }

/* ---------------------- Dynamic Section Header ---------------------- */
.section-header { padding: 10px 20px; margin-bottom: 0em; margin-top: 6em;}
.section-header #header-title { font-size: 1.8rem; margin: 0; color: #111; font-weight: 600;}
.section-header .header-subtext { font-size: 1rem; color: #666;margin-top: 6px; line-height: 1.6; }

/* ---------------------- Main Content ---------------------- */
#main-content { padding: 20px 15px 80px; }

/* ---------------------- Grid ---------------------- */
.grid-container {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(470px, 1fr));
}

.grid-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.grid-image { flex: 0 0 40%; overflow: hidden; }
.grid-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.grid-content { flex: 1; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.grid-category { font-size: 12px; color: #666; text-transform: uppercase; margin-bottom: 8px; }
.grid-title { font-size: 24px; font-weight: 600; margin: 10px 0 12px; }
.grid-description { font-size: 14px; color: #444; margin: 0 0 16px; line-height: 1.6; }
.grid-button {
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
  align-self: flex-start;
}
.grid-button:hover { background: #333; }

/* ---------------------- Bottom Nav ---------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
}

.bottom-btn {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: #6b7280;
  font-weight: 500;
  flex-grow: 1;
}

.bottom-btn.active { color: #111827; font-weight: 600; }

/* ---------------------- Modals ---------------------- */

#founder-modal{
    background: rgba(0,0,0,0.9);
}
#founder-modal-inside{
  max-width: 1300px;
  padding: 2em;
  background: none;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.hidden { opacity: 0; pointer-events: none; visibility: hidden; }

.modal-content {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  max-width: 400px;
  width: 80%;
  text-align: center;
}

.modal-content h2 { margin-top: 0; font-size: 1.6rem; }
.modal-content input[type="email"] { padding: 12px; margin: 10px 0 15px; border-radius: 6px; border: 1px solid #ccc; font-size: 1rem; }
.checkbox-container { display: flex; gap: 8px; margin-bottom: 15px; font-size: 0.9rem; }
.modal-content button { background: #111; color: #fff; border: none; padding: 12px 25px; border-radius: 6px; cursor: pointer; }
.modal-error { color: red; font-size: 0.85rem; }
#modal-loader { margin: 15px 0; }
.modal-logo{width: 100%;
max-width: 130px;}

/* ---------------------- Founder Video Modal ---------------------- */
#founder-modal .modal-content { padding: 20px; text-align: center; }
#founder-modal video { border-radius: 12px; margin-bottom: 0px; }
#founder-modal button { padding: 8px 18px; background: #111; color: #fff; border: none; cursor: pointer; border-radius: 6px; }

/* ---------------------- Responsive ---------------------- */
@media (max-width: 700px) {
  .grid-container { grid-template-columns: 1fr; }
  .grid-item { flex-direction: column; }
  .grid-content { padding: 15px; }
  .grid-image { flex: none; overflow: hidden; }
}
