/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  color: #222;
  background-color: #fafafa;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2E0854;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo-title {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.navbar .logo-title img {
  width: 40px;
  margin-right: 10px;
  border-radius: 50%;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #FFD700;
}

/* Hamburger Menu */
.hamburger {
  color: #fff;
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #2E0854;
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 1rem;
  }

  .nav-links li {
    margin-bottom: 1rem;
  }

  #menu-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  color: #fff;
}

/* Slideshow stays in the background */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Each slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeSlide 18s infinite;
}

/* Cycle timing for multiple slides */
.slide:nth-child(1) {
  animation-delay: 0s;
}
.slide:nth-child(2) {
  animation-delay: 6s;
}
.slide:nth-child(3) {
  animation-delay: 12s;
}

/* Slide image */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero text overlay sits above */
.hero-text {
  position: relative;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.3rem;
}

/* Fade animation */
@keyframes fadeSlide {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  30%  { opacity: 1; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero .logo {
  max-width: 180px;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: #FFD700;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #FFB700;
}

/* Featured Section */
.featured {
  padding: 3rem 2rem;
  text-align: center;
}

.featured h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #4B0082;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: #fff;
  padding: 0; /* Let image + content define spacing */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden; /* Clips zoomed image */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  height: 600px; /* taller so the whole image is visible */
  object-fit: center;
  border-radius: 12px 12px 0 0;
  display: block;
  transition: transform 0.3s ease;
}

.card-content {
  padding: 1.0rem 1.5rem; /* slightly smaller padding */
  text-align: left;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-content h3 {
  margin-bottom: 1rem; /* tighter spacing under heading */
  font-size: 1.3rem;
}

.card-content p {
  margin: 0; /* removes extra bottom spacing */
  font-size: 1rem;
  color: #444;
}

/* About Section */
.about {
  background: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #4B0082;
}

.about p {
  max-width: 700px;
  margin: 0 auto;
  color: #333;
}

/* Contact Section */
.contact {
  padding: 3rem 2rem;
  text-align: center;
  background: #f4f4f4;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #4B0082;
}

.contact p {
  margin: 0.5rem 0;
}

/* Footer */
.footer {
  background: #2E0854;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

.footer p {
  margin: 0.3rem 0;
}

/* Subscription Form */
.subscription-form {
  padding: 3rem 2rem;
  text-align: center;
}

.subscription-form h2 {
  font-size: 2rem;
  color: #4B0082;
}

form {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #2E0854;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  border-color: #4B0082;
  outline: none;
}

button.btn {
  display: inline-block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  color: #fff;
}

/* Slideshow container */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Each slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeSlide 18s infinite;
}

/* Each image fills the screen */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animation sequence for 3 slides */
.slide:nth-child(1) {
  animation-delay: 0s;
}
.slide:nth-child(2) {
  animation-delay: 6s;
}
.slide:nth-child(3) {
  animation-delay: 12s;
}

/* Fade in/out animation */
@keyframes fadeSlide {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  30%  { opacity: 1; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Hero text over slideshow */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-text h1 {
  font-size: 2.8rem;
}

.hero-text p {
  margin: 1rem 0;
  font-size: 1.3rem;
}

/* Cards with hover animation */
.card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  border-radius: 12px 12px 0 0;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Subscription Hero Overrides */
.sub-hero {
  height: 70vh; /* slightly smaller than homepage */
  position: relative;
  color: #fff;
  overflow: hidden;
}

.sub-hero .hero-text {
  position: relative;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.sub-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.sub-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}
