/* ============= BLOG SECTION ============= */
.blog-section {
  margin: 50px auto;
  max-width: 1200px;
}

.blog-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 35px;
  font-size: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* ============= BLOG CARDS ============= */
.blog-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(44,62,80,0.15);
  border-color: #e53333;
}

.blog-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e53333;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.blog-date {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.blog-card h3 {
  color: #003b77;
  font-size: 1.2rem;
  margin: 12px 0;
  line-height: 1.4;
}

.blog-card p {
  color: #555;
  line-height: 1.7;
  margin: 15px 0;
  font-size: 0.95rem;
}

.blog-link {
  color: #e53333;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.blog-link:hover {
  color: #003b77;
  text-decoration: underline;
}

/* Notification Cards */
.notification-card {
  border-left: 4px solid #e53333;
  background: #fffbf5;
}

/* Study Tips Cards */
.tips-card {
  border-left: 4px solid #003b77;
}

.blog-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

/* ============= RESOURCES SECTION ============= */
.resources-section {
  background: #f7f7f7;
  padding: 40px 20px;
  border-radius: 12px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.resource-category {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.resource-category h3 {
  color: #e53333;
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e53333;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.resource-item:hover {
  background: #fff;
  border-color: #003b77;
  box-shadow: 0 4px 12px rgba(0,59,119,0.1);
}

.resource-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.resource-info {
  flex-grow: 1;
}

.resource-info h4 {
  color: #003b77;
  font-size: 1rem;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.resource-info p {
  color: #777;
  font-size: 0.85rem;
  margin: 0;
}

.download-btn {
  background: #e53333;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: #003b77;
  transform: scale(1.05);
}

/* Responsive Design Enhancements */

/* Adjust grid column widths and gap on smaller screens */
@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
  }

  .resource-category {
    padding: 20px;
  }

  .resource-icon {
    font-size: 1.8rem;
  }
}

/* Stack resources vertically on smaller devices */
@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 18px;
  }

  .resource-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .resource-icon {
    font-size: 2.2rem;
  }

  .resource-info h4 {
    font-size: 1.1rem;
  }

  .resource-info p {
    font-size: 0.9rem;
  }

  .download-btn {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}

/* Fine tuning for very small devices */
@media (max-width: 480px) {
  .resource-category {
    padding: 15px;
  }

  .resource-icon {
    font-size: 1.8rem;
  }
  
  .resource-info h4 {
    font-size: 1rem;
  }

  .resource-info p {
    font-size: 0.85rem;
  }

  .download-btn {
    padding: 6px 14px;
    font-size: 0.9rem;
  }
}
