/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 0 15px;
}

/* Header */
header {
  background-color: #2c3e50;
  color: #fff;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* Ensure row layout on larger screens */
}

header h1 {
  margin-left: 20px;
  color: #e74c3c;
  font-weight: bold;
  font-size: 1.5rem;
}

/* Nav styling */
nav {
  margin-right: 20px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  align-items: center;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  transition: background 0.3s;
}


/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
              url("https://images.pexels.com/photos/1661950/pexels-photo-1661950.jpeg") no-repeat center center/cover;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
  font-size: 1rem;
  margin-bottom: 25px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.buttons .btn {
  display: inline-block;
  background-color: #e74c3c;
  color: #fff;
  padding: 10px 20px;
  margin: 5px;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s;
  font-weight: bold;
}

/* Features Section */
.features {
  padding: 60px 20px;
  background-color: #ecf0f1;
}

.features h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
  font-size: 1.6rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.feature {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.feature p {
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.6;
}

/* News Section */
.news {
  padding: 60px 20px;
  background-color: #fff;
}

.news h2 {
  text-align: center;
  margin-bottom: 30px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.news-grid article {
  background-color: #f1f1f1;
  padding: 15px;
  border-radius: 5px;
}

.news-grid img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.news-grid h3 {
  margin-bottom: 10px;
}

.news-grid p {
  font-size: 0.9rem;
}

/* Testimonials */
.testimonials {
  padding: 60px 20px;
  background-color: #34495e;
  text-align: center;
  color: #fff;
}

.testimonials h2 {
  margin-bottom: 40px;
  font-size: 1.6rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.testimonial {
  background-color: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 10px;
  font-style: italic;
}

.testimonial p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.testimonial h4 {
  color: #e74c3c;
  font-weight: bold;
}

/* About Section */
.about {
  padding: 60px 20px;
  background-color: #ecf0f1;
  text-align: center;
}

.about h2 {
  margin-bottom: 25px;
  color: #2c3e50;
  font-size: 1.6rem;
}

.about p {
  max-width: 800px;
  margin: auto;
  font-size: 0.95rem;
  color: #7f8c8d;
  line-height: 1.8;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #bdc3c7;
  text-align: center;
  padding: 25px 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  header h1 {
    margin: 0 0 10px 0;
  }

  nav ul {
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .buttons .btn {
    display: block;
    margin: 10px auto;
    width: 90%;
  }
}
