* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; color: #333; background: #fafbfc; line-height: 1.6; }

/* Header */
header {
  display: flex; justify-content: space-between; align-items: center;
  background: #000; color: #fff; padding: 10px 20px;
}
.logo-section { display: flex; align-items: center; }
.logo { max-height: 50px; margin-right: 10px; }
.logo-text { font-weight: bold; font-size: 1.15em; letter-spacing: 1px; }
nav ul { list-style: none; display: flex; }
nav ul li { margin-left: 20px; }
nav ul li a {
  color: #fff; text-decoration: none; font-weight: bold;
  padding: 4px 7px; border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #ece9fc; color: #1a2a42;
}

/* Carousel */
#carousel { position: relative; overflow: hidden; }
.carousel-container { position: relative; height: 400px; min-height: 240px; }
.carousel-container .slide {
  position: absolute; width: 100%; height: 100%; opacity: 0;
  animation: fade 15s infinite;
}
.carousel-container .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-container .slide:nth-child(1) { animation-delay: 0s; }
.carousel-container .slide:nth-child(2) { animation-delay: 5s; }
.carousel-container .slide:nth-child(3) { animation-delay: 10s; }
@keyframes fade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  33% { opacity: 1; }
  41% { opacity: 0; }
  100% { opacity: 0; }
}
.carousel-overlay {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(0,0,0,0.6); color: #fff; padding: 8px 15px;
  font-size: 1.18em; border-radius: 8px;
}

/* Vertical Cards Section */
#vertical-cards {
  background: #fff;
  padding: 36px 0 18px 0;
}
.vertical-cards-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.vertical-card {
  flex: 1 1 180px;
  min-width: 180px;
  max-width: 220px;
  background: #E6F0FF;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(30,120,240,0.08);
  border: 2px solid #90caf9;
  padding: 26px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
  transition: transform 0.13s, box-shadow 0.13s;
}
.vertical-card h3 {
  margin-bottom: 15px;
  color: #1a2a42;
  font-size: 1.15em;
  font-weight: bold;
}
.vertical-card p {
  margin-bottom: 18px;
  color: #333;
  font-size: 1em;
  text-align: center;
}
.card-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #1a2a42;
  color: #fff !important;
  border: none;
  border-radius: 7px;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  font-weight: 500;
  text-align: center;
}
.card-btn:hover {
  background: #274872;
}
.vertical-card:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 6px 24px rgba(30,120,240,0.15);
}

/* --- MOBILE: force card appearance and background color --- */
@media (max-width: 1000px) {
  .vertical-cards-container { gap: 16px; }
  .vertical-card { min-width: 160px; max-width: 95vw; }
}
@media (max-width: 700px) {
  .vertical-cards-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
  }
  .vertical-card {
    max-width: 98vw !important;
    width: 98vw !important;
    min-width: 0 !important;
    background: #E6F0FF !important;
    box-shadow: 0 2px 12px rgba(30,120,240,0.12) !important;
    border-radius: 16px !important;
    border: 2px solid #90caf9 !important;
    margin-bottom: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 25px 10px 22px 10px !important;
  }
  .vertical-card h3, .vertical-card p, .card-btn {
    text-align: center !important;
  }
}

/* Meetups Section */
#meetups { padding: 40px 20px; text-align: center; }
#meetups h2 { font-size: 2em; color: #1a2a42; margin-bottom: 28px; letter-spacing: 1px; }
.meetup-container {
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  max-width: 850px; margin: 0 auto;
}
.meetup-container img {
  width: 100%; max-width: 800px; height: auto; margin: 5px 0;
}
#meetups p { margin-top: 15px; font-size: 1em; }

/* Gallery Section */
#gallery { padding: 40px 20px; }
#gallery h2 { font-size: 2em; color: #1a2a42; margin-bottom: 28px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.gallery-item img { width: 100%; display: block; transition: transform 0.13s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; bottom: 0; width: 100%; min-height: 22%;
  background: rgba(0, 0, 0, 0.62); color: #fff;
  font-size: 1em; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8px 5px; box-sizing: border-box;
  border-radius: 0 0 10px 10px; transition: background 0.13s;
}
.gallery-item:hover .gallery-overlay { background: rgba(30,30,60,0.78); }
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  #meetups,
  #gallery,
  #contact { padding: 24px 4vw; }
  .meetup-container { padding: 10px 0; }
}

/* Contact Us Section */
#contact { padding: 40px 20px; background: #f4f4f4; }
#contact h2 { font-size: 2em; color: #1a2a42; margin-bottom: 20px; }
#contact form {
  max-width: 520px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  padding: 22px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
#contact label { margin-top: 5px; font-weight: bold; color: #1a2a42; }
#contact input, #contact textarea {
  padding: 9px; margin-top: 4px; border: 1px solid #ccc; border-radius: 5px;
  font-size: 1em; background: #fafbfc;
}
#contact textarea { resize: vertical; min-height: 80px; }
#contact button {
  margin-top: 15px; padding: 11px; background: #1a2a42; color: #fff;
  border: none; cursor: pointer; border-radius: 5px; font-size: 1.08em;
  font-weight: bold; transition: background 0.15s;
}
#contact button:hover { background: #274872; }

/* Footer */
footer {
  background: #000; color: #fff; padding: 24px 10px 18px 10px; text-align: center; font-size: 1.02em;
}
.footer-links {
  list-style: none; display: flex; justify-content: center; margin-bottom: 10px; padding-left: 0;
}
.footer-links li { margin: 0 10px; }
.footer-links li a { color: #fff; text-decoration: none; transition: color 0.12s; }
.footer-links li a:hover, .footer-links li a:focus { text-decoration: underline; color: #ece9fc; }
/* Featured Sections (Upcoming events / Observatory / Previous events) */
.featured-section {
  padding: 40px 20px;
  background: #fff;
}
.featured-section h2 {
  font-size: 2em;
  color: #1a2a42;
  margin-bottom: 22px;
}
.featured-media {
  max-width: 768px;
  margin: 0 auto;
}
.featured-media img {
  width: 100%;
  aspect-ratio: 2 / 3; /* 768x512 */
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  background: #e9edf3;
}
.section-body-text {
  max-width: 850px;
  margin: 16px auto 0 auto;
  text-align: center;
  font-size: 1.05em;
  color: #333;
}

/* Slightly different background to separate stacked sections */
#upcoming-events { background: #fff; }
#observatory { background: #fafbfc; }
#previous-events { background: #fff; }

@media (max-width: 600px) {
  .featured-section { padding: 24px 4vw; }
  .section-body-text { text-align: left; }
}


.btn-book {
  display: inline-block;
  padding: 12px 24px;
  background-color: #1e88e5;   /* button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-book:hover {
  background-color: #1565c0;
  transform: translateY(-1px);
}

.btn-book:active {
  transform: translateY(0);
}
