/* Reset and Basic 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: #f8f9fa;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: #2c3e50;
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.logo i {
  margin-right: 10px;
  font-size: 28px;
}

/* Section Title */
.section-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 3px solid #3498db;
  display: inline-block;
}

/* Blog Grid */
.blog-section {
  padding: 40px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* Blog Card - FIXED */
.blog-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.blog-image {
  position: relative;
  /* height: 220px; */
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
}

.blog-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-content h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 12px;
}

.blog-content p {
  text-align: justify;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
  flex: 1;
  min-height: 70px;
}

.blog-meta {
  color: #777;
  font-size: 0.9rem;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
}

.blog-meta i {
  margin-right: 5px;
}

.blog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.read-btn {
  background-color: transparent;
  color: #3498db;
  border: 2px solid #3498db;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
  min-width: 120px;
}

.read-btn:hover {
  background-color: #3498db;
  color: white;
}

.apply-btn {
  background-color: #2c3e50;
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.apply-btn:hover {
  background-color: #3498db;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-logo i {
  margin-right: 10px;
  font-size: 28px;
}

.footer-links {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  color: #95a5a6;
  font-size: 0.9rem;
}

/* Blog Details Page */
.back-link {
  margin: 30px 0;
}

.back-link a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link a:hover {
  text-decoration: underline;
}

.blog-detail {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
}

.blog-header {
  margin-bottom: 25px;
}

.blog-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin: 15px 0;
}

.blog-header .blog-meta {
  color: #777;
  font-size: 1rem;
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.blog-image-large {
  margin-bottom: 30px;
  overflow: hidden;
}

.blog-image-large img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  /* object-fit: cover; */
}

.blog-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

.blog-content h2 {
  color: #2c3e50;
  margin: 30px 0 15px;
  font-size: 1.8rem;
}

.blog-content h3 {
  color: #2c3e50;
  margin: 20px 0 10px;
  font-size: 1.4rem;
}

.blog-content p {
  margin-bottom: 20px;
}

.blog-content ul {
  margin-left: 25px;
  margin-bottom: 20px;
}

.blog-content li {
  margin-bottom: 10px;
}

.apply-section {
  margin-top: 40px;
  text-align: center;
}

.apply-btn-large {
  display: inline-block;
  background-color: #2c3e50;
  color: white;
  padding: 12px 35px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

.apply-btn-large:hover {
  background-color: #3498db;
}

/* Similar Blogs */
.similar-blogs {
  margin-bottom: 60px;
}

.similar-blogs-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.similar-blog {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.similar-blog:hover {
  transform: translateY(-5px);
}

.similar-blog-image {
  height: 180px;
  overflow: hidden;
}

.similar-blog-image img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

.similar-blog-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.similar-blog-content h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.similar-blog-content p {
  color: #555;
  margin-bottom: 15px;
  font-size: 0.95rem;
  flex: 1;
}

.similar-blog-content a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: auto;
}

.similar-blog-content a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .similar-blogs-container {
    grid-template-columns: 1fr;
  }

  .blog-actions {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .footer-links {
    gap: 15px;
  }

  .read-btn {
    min-width: 100px; /* Adjust for mobile */
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .blog-detail {
    padding: 20px;
  }

  .blog-header h1 {
    font-size: 1.7rem;
  }

  .blog-content {
    font-size: 1rem;
  }

  .blog-content p {
    text-align: justify;
    min-height: 60px; /* Adjust for smaller screens */
  }
}

/* Privacy Policy and contact Page Styles */
.privacy-content,
.contact-content {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 40px 0;
}

.page-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #3498db;
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 30px;
  padding: 15px;
  background-color: #f8f9fa;
  border-left: 4px solid #3498db;
  border-radius: 4px;
}

.privacy-section,
.contact-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.privacy-section,
.contact-section:last-child {
  border-bottom: none;
}

.privacy-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}

.logo i,
.footer-logo i {
  font-size: 28px;
}

/* Responsive Design for Privacy Page */
@media (max-width: 768px) {
  .privacy-content,
  .contact-section {
    padding: 20px;
    margin: 20px 0;
  }

  .page-title,
  .contact-section {
    font-size: 2rem;
  }

  .intro-text,
  .contact-section {
    font-size: 1.1rem;
    padding: 12px;
  }

  .privacy-section p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .page-title,
  .contact-section {
    font-size: 1.7rem;
  }
}
