/* Basic Reset */
* {
  margin: 0;
  box-sizing: border-box;
}

/* Body and General Styles */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  color: #666;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background: #f8f8f8;
  padding: 20px;
  border-bottom: 2px solid #eee;
  position: relative;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
}

.header-text {
  text-align: center;
  margin-top: 10px; /* Adjust as needed */
}

.header-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.header-text p {
  font-size: 1.2rem;
  color: #666;
}

.logo img {
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 150px; 
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px; /* Space between menu items */
  position: relative; /* Change from absolute to relative */
}

/* Hamburger Button */
.menu-btn {
  display: none; /* Hide by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-btn .line {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  transition: transform 0.3s ease;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.dropdown-menu a:hover {
  background: #f0f0f0;
}

/* Show dropdown when menu is active */
.dropdown-menu.show {
  display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .menu-btn {
    display: block; /* Ensure it's visible on mobile */
  }

  .nav-menu a {
    display: none; /* Hide regular menu links on mobile */
  }

  .dropdown-menu {
    top: 50px; /* Adjust for mobile */
  }
}

/* Main Content */
.main-content {
  text-align: center;
  padding: 50px 20px;
  background: #007bff;
  color: white;
}

.main-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.main-content p {
  font-size: 1.2rem;
}

/* Latest Blogs */
.latest-blogs {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.latest-blogs h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.blog-box {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-box:hover {
  transform: translateY(-5px);
}

.blog-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.blog-box p {
  color: #666;
  margin-bottom: 15px;
}

.blog-box a {
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.blog-box a:hover {
  background: #0056b3;
}

/* Featured Section */
.featured {
  background: #f8f8f8;
  padding: 50px 20px;
  text-align: center;
}

.featured-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.featured-content a {
  color: #007bff;
  text-decoration: none;
}

.featured-content a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
}

.social-icons a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
}

.social-icons a:hover {
  color: #007bff;
}

/* Contact Form Styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  display: block;
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background: #0056b3;
}

/* Blog Page Styles */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.blog-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.blog-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.blog-content article {
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

.blog-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.blog-content ul li {
  margin-bottom: 10px;
}

.back-to-blogs {
  display: inline-block;
  margin-top: 30px;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.back-to-blogs:hover {
  text-decoration: underline;
}

/* Search Bar Styles */
.search-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 0 20px;
}

#search-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#search-input:focus {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* No Results Message */
.no-results {
  text-align: center;
  color: #666;
  margin-top: 20px;
  font-style: italic;
}

/* Contact Page Styles */
.contact-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.contact-main h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

.contact-main p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

.contact-form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  display: block;
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background: #0056b3;
}

/* Form Message Styles */
.form-message {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
}

/* Hero Section with Background Image */
.hero-section {
  background-image: url('images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Contact Form Section */
.contact-main {
  padding: 50px 20px;
  background: #f9f9f9;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  display: block;
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.contact-form button:hover {
  background: #0056b3;
}

/* Form Message Styles */
.form-message {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
}

/* Contact Page Styles */
.contact-content {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-form, .contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-form h2, .contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #007bff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

button[type="submit"] {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

button[type="submit"]:hover {
  background: #0056b3;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info ul li {
  margin-bottom: 10px;
}

.contact-info ul li a {
  color: #007bff;
  text-decoration: none;
}

.contact-info ul li a:hover {
  text-decoration: underline;
}

/* Map Styles */
.map {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

@media (max-width: 768px) {
  .map iframe {
      height: 200px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Header */
  .header-content {
      flex-direction: column;
      text-align: center;
  }

  .logo {
      position: static;
      margin-bottom: 10px;
  }

  .nav-menu {
      position: static;
      margin-top: 10px;
  }

  /* Main Content */
  .main-content {
      padding: 20px;
  }

  .main-content h1 {
      font-size: 2rem;
  }

  .main-content p {
      font-size: 1rem;
  }

  /* Blog Grid */
  .blog-container {
      grid-template-columns: 1fr;
  }

  /* Footer */
  .social-icons {
      flex-direction: column;
  }

  .social-icons a {
      margin: 5px 0;
  }

  /* Mobile Menu */
  .menu-btn {
      display: block;
  }

  .nav-menu a {
      display: none;
  }

  .dropdown-menu.show {
      display: flex;
  }
}

/* Quotes Carousel */
.quotes-carousel {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background: #f8f8f8;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.quote {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  font-size: 1.2rem;
  font-style: italic;
  color: #333;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #007bff;
}

/* General Spacing */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
}
