/* -------------------------------------------------------
   Maharashtra Saral Seva Bharti - Final Responsive Style
   Author: GPT-5
----------------------------------------------------------*/

/* ✅ Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

body {
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ✅ Header */
header {
  text-align: center;
  padding: 20px 10px;
}

header img {
  width: 100px;
  border-radius: 20px;
}

header h1 {
  color: #c00;
  font-size: 1.9rem;
  font-weight: 700;
  margin-top: 10px;
}

header p {
  font-size: 0.95rem;
  color: #555;
}

/* ✅ Navbar */
.navbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.navbar a {
  text-decoration: none;
  background: #f2f2f2;
  padding: 8px 15px;
  border-radius: 25px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.navbar a:hover,
.navbar .active {
  background: #d62828;
  color: #fff;
  border-color: #b71c1c;
}

/* ✅ Highlight Box */
#highlights {
  background: #fff3e0;
  color: #333;
  padding: 8px 10px;
  font-size: 0.9rem;
  border-top: 3px solid #d62828;
  border-bottom: 3px solid #d62828;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ✅ Section Title */
.section-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #b71c1c;
  margin-top: 25px;
}

/* ✅ Post Grid */
#posts-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1100px;
  margin: auto;
}

.post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card h3 {
  padding: 10px 15px 5px 15px;
  color: #c00;
  font-size: 1rem;
}

.post-card p {
  padding: 0 15px 10px 15px;
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
}

.read-more {
  text-align: center;
  display: block;
  padding: 8px;
  background: #d62828;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid #c00;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: #b71c1c;
}

/* ✅ Footer */
footer {
  background: #f2f2f2;
  padding: 20px 10px;
  text-align: center;
  margin-top: 40px;
  border-top: 2px solid #ddd;
}

footer a {
  color: #333;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #d62828;
}

/* ✅ Social Icons */
.social-icons {
  margin: 10px 0;
}

.social-icons img {
  width: 36px;
  height: 36px;
  margin: 0 6px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.15);
}

/* ✅ Responsive Fix */
@media (max-width: 1024px) {
  #posts-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header img {
    width: 80px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  #posts-container {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .navbar a {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  #highlights {
    font-size: 0.85rem;
    padding: 6px;
  }

  .post-card img {
    height: 160px;
  }

  footer {
    font-size: 0.85rem;
  }

  .social-icons img {
    width: 30px;
    height: 30px;
  }
}

/* ✅ Animation for Smooth Appear */
.post-card {
  opacity: 0;
  transform: translateY(15px);
  animation: slideUp 0.6s forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
