/* blogs.css */

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.header {
  text-align: center;
  padding: 40px 20px 20px;
  background: linear-gradient(to right, #e0f7fa, #ffffff);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #042356;
}

.header p {
  font-size: 1rem;
  color: #666;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 30px;
  max-width: 1200px;
  margin: auto;
}

/* Blog card */
.blog-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: scale(1.02);
}

.blog-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.blog-snippet {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.read-more {
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* Load more button */
.load-more-container {
  text-align: center;
  padding: 20px;
}

#loadMoreBtn {
  background-color: #0077cc;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#loadMoreBtn:hover {
  background-color: #005fa3;
}


/* Navigation */
.navbar {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0066cc;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #0066cc;
}


.footer {
  background-color: #05011c;
  color: #ccc;
  padding: 30px 20px 10px;
  font-size: 14px;
  text-align: center; /* Ensures text aligns center by default */
}

.footer a {
  text-decoration: none;
  color: #ccc;
}

.footer a:hover {
  color: #fff;
}

/* .footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
} */

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Changed from space-between */
  gap: 40px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto; /* Centering the content */
}


.footer-logo {
  max-width: 220px;
}

.footer-logo img {
  width: 100px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 13px;
  line-height: 1.4;
  color: #aaa;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-section h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 6px;
}

.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 20px;
}

.footer-social a span {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-social a:hover span {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #333;
  padding-top: 15px;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .footer-logo p {
  font-size: 12px;
}

  .footer-social {
    justify-content: center;
    margin-top: 20px;
  }

  .footer-social a {
    font-size: 18px;
  }

  .footer-bottom {
    font-size: 12px;
    padding-top: 10px;
  }
}


.blog-detail {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.full-blog-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin: 20px 0;
}

.blog-content-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

@media (max-width: 600px) {
  .blog-container {
    padding: 20px 10px;
    gap: 20px;
  }

  .blog-title {
    font-size: 1rem;
  }

  .blog-snippet {
    font-size: 0.9rem;
  }
}
