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

/* Banner Carousel */
.banner {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-img.active {
  opacity: 1;
}

.banner .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.45);
  padding: 30px 20px;   /* reduced padding for wider look */
  border-radius: 15px;
  text-align: center;
  color: #fff;
  max-width: 1000px;    /* allow more width */
  width: 90%;           /* responsive width */
}

.banner h1 {
  font-size: 3.5em;
  margin-bottom: 12px;  /* slightly reduced */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.banner p {
  font-size: 1.5em;
  margin-bottom: 18px;  /* reduced for tighter spacing */
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Search Bar */
.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  max-width: 900px;  /* wider search bar */
  margin: 0 auto;
}

.search-box input {
  padding: 15px;
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 50px 0 0 50px;
  outline: none;
  font-size: 1em;
}

.search-box button {
  padding: 15px 25px;
  border: none;
  border-radius: 0 25px 25px 0;
  background: linear-gradient(90deg, #ff9800, #ff5722);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.search-box button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.5);
}

/* Sections */
section {
  padding: 60px 20px;
  text-align: center;
}

section h2 {
  margin-bottom: 40px;
  font-size: 2.5em;
  color: #ff5722;
  position: relative;
}

section h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background: #ff9800;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

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

.card {
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card-header {
  padding: 20px;
  background: linear-gradient(90deg, #ff9800, #ff5722);
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  transition: background 0.3s ease;
}

.card-header:hover {
  background: linear-gradient(90deg, #ff5722, #ff9800);
}

.toggle-icon {
  font-size: 22px;
  transition: transform 0.4s ease;
}

.toggle-icon.active {
  transform: rotate(180deg);
}

/* Card Content */
.card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 20px;
}

.card-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.card-content img:hover {
  transform: scale(1.05);
}

.card-content p {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #ff5722, #ff9800);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  position: relative;
}

footer h2 {
  margin-bottom: 15px;
}

footer p {
  margin-bottom: 10px;
}

footer .social a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

footer .social a:hover {
  color: #333;
}

/* Animations */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-20px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 768px) {
  .banner h1 { font-size: 2.2em; }
  .banner p { font-size: 1.1em; }
  .banner .overlay { width: 95%; padding: 20px; }
  .search-box { max-width: 100%; }
  .search-box input { width: 100%; }
  .search-box button { width: auto; padding: 12px 20px; }
}