/* static/css/home.css */
/* Buttons on homepage */
.home-intro .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #e74c3c;
  color: white;
  text-decoration: none;
  border-radius: 0.3rem;
  transition: background 0.3s, transform 0.2s;
}

.home-intro .btn:hover,
.home-intro .btn:focus {
  background-color: #c0392b;
  transform: translateY(-2px); /* Optional subtle lift effect */
}

/* Homepage section styling */
.home-intro {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.home-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.home-intro p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ===== Non-Gallery Header ===== */
.non-gallery-header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-height: 75px; /* Changed from height to min-height */
  background-color: #fff;
  border-bottom: 2px solid #eee;
  padding: 0 20px;
}

/* Logo */
.non-gallery-header .logo {
  height: 35px;
  width: auto;
  display: block;
}

/* Title */
.non-gallery-header .site-title {
  font-size: 2rem; /* Fixed the bug */
  font-weight: 600;
  margin: 0;
  padding: 0;
  line-height: 35px; /* Match logo height */
}

/* Optional: adjust spacing */
.non-gallery-header .site-title {
  margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .home-intro {
    padding: 3rem 1rem;
  }

  .home-intro h2 {
    font-size: 2rem;
  }

  .home-intro p {
    font-size: 1.1rem;
  }

  .non-gallery-header {
    flex-direction: row;
    min-height: 80px;
    padding: 10px 20px;
    gap: 10px;
  }

  .non-gallery-header .logo {
    height: 30px;
  }

  .non-gallery-header .site-title {
    font-size: 1.5rem;
    line-height: 30px;
    margin-top: 0;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .non-gallery-header {
    gap: 8px;
  }

  .non-gallery-header .site-title {
    font-size: 1.2rem;
  }

  .home-intro h2 {
    font-size: 1.8rem;
  }
}

.home-intro {
  text-align: center;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.home-intro h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.home-intro > p:first-of-type {
  font-size: 1.325rem;
  color: white;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center !important; /* Force center alignment */
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
}

.simple-notice {
  list-style: none;
  font-size: 1.125rem;
  padding-left: 0;
  margin: 2rem 0;
  color: white;
  text-align: center;
}

.simple-notice li {
  padding: 0.375rem 0;
  color: white;
  line-height: 1.5;
  opacity: 0.9;
}

.home-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
}

.btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn.secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn.secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .home-intro {
    padding: 1.5rem 1rem;
  }

  .home-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
  }

  .workshop-notice {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .workshop-notice li {
    padding-left: 1.25rem;
    font-size: 0.95rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .non-gallery-header {
    flex-direction: row !important;       /* Keep logo + title side by side */
    height: auto;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .non-gallery-header .logo {
    height: 25px !important;  /* Reasonable mobile size */
    width: auto;
  }

  .non-gallery-header .site-title {
    font-size: 1.3rem !important;  /* Readable mobile size */
    line-height: normal;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .non-gallery-header {
    min-height: 25px; /* Much more compact */
    padding: 5px 15px; /* Reduced vertical padding */
  }

  .non-gallery-header .logo {
    height: 25px;
  }

  .non-gallery-header .site-title {
    font-size: 1.2rem;
    margin: 0; /* Remove any margins */
  }
}
