/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html, body {
  overflow-x: hidden; /* Prevent horizontal scrolling */
  background-color: #F3F4F6;
  color: #111827;
}

/* Navbar */
.custom-navbar {
  background: linear-gradient(90deg, #41E296, #2CCF83);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-height: 80px;
}
.navbar-brand .logo-img {
  height: 60px;
  object-fit: contain;
}

/* Override Bootstrap navbar toggler icon for better visibility if needed */
.navbar-toggler {
  border: none;
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* Navigation Links */
.nav-list {
  list-style: none;
  display: flex;
  gap: 15px;
}
.nav-list a {
  color: white !important;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
}
.nav-list a:hover {
  background: rgba(255,255,255,0.2);
  border-radius: 5px;
  transform: scale(1.05);
}

/* Ad Horizontal */
.ad-horizontal {
  background: #bdc3c7;
  color: #1E293B;
  text-align: center;
  padding: 15px;
  margin: 15px auto;
  max-width: 1200px;
  border: 1px solid #95a5a6;
}

/* Main Layout */
.content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Post Card */
.post-card {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}
.post-card img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 5px;
}

/* Post Content */
.post-content {
  padding: 15px 0;
}
.post-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.post-content p {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Read More Button */
.read-more {
  display: inline-block;
  background: #3B82F6;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}
.read-more:hover {
  background: #1E40AF;
  transform: scale(1.05);
}

/* Sidebar */
.sidebar {
  background: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

/* Social Media Section */
.follow-text {
  font-size: 14px;
  margin-bottom: 15px; /* Spacing below the follow text */
  color: #333;
}
.social-media {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px; /* Increased spacing between social media and recent posts */
}
.social-media .emoji {
  font-size: 28px;
  transition: transform 0.2s;
}
.social-media .emoji:hover {
  transform: scale(1.2);
}

/* Recent Posts */
.recent-posts h3 {
  font-size: 18px;
  margin-bottom: 15px;
}
.recent-posts ul {
  list-style: none;
  padding: 0;
}
.recent-posts li {
  display: flex;
  align-items: center;
  margin-bottom: 20px; /* Increased spacing between posts */
  font-size: 14px; /* Smaller text */
}
.recent-posts li img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  object-fit: cover;
  border-radius: 5px;
}

/* Footer */
footer {
  background: #1E293B;
  color: white;
  padding: 15px;
  text-align: center;
  margin-top: 20px;
}

/* Single Post Image Styling (for post.html and others) */
.post-page img,
.post-main-image,
.post-content img,
.post-detail img {
  display: block;
  max-width: 100%; /* Ensure images do not overflow the container */
  width: 100%;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 5px;
  object-fit: contain;
}

/* Container to prevent image overflow */
.post-image-container {
  width: 100%;
  overflow: hidden;
  border-radius: 5px;
}
.post-image-container img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

/* Mobile Adjustments for Single Post Images */
@media (max-width: 600px) {
  .post-page img,
  .post-main-image,
  .post-content img,
  .post-detail img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 2px solid #ddd;
  }
}

/* Additional Mobile Improvements for Blog Posts */
@media (max-width: 768px) {
  .post-card img {
    max-height: 150px;
  }
  .post-content h2 {
    font-size: 20px;
  }
  .post-content p {
    font-size: 14px;
  }
  .read-more {
    padding: 10px 20px;
    font-size: 14px;
  }
}
