/* Expandable sections */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  background-color: #0d1117;
  border: 2px solid #494f57; /* Match button border style */
  border-left-width: 4px; /* Keep thicker left border */
  text-align: left;
}

.section-header:hover {
  background-color: rgba(73, 79, 87, 0.2); /* Match button hover style */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Match button shadow */
  transform: translateY(-2px); /* Subtle lift effect like buttons */
}

.section-header .title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #e6edf3;
}

.section-toggle {
  display: none; /* Hide the empty toggle boxes */
}

/* Removed collapsed state and hover effects for the now-hidden section toggle */

.section-content {
  max-height: 5000px;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
  overflow: hidden;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  text-align: left;
}

.section-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  padding: 0;
  padding: 0 !important;
  margin: 0;
  pointer-events: none;
  position: absolute; /* Positioning collapsed content so it doesn't affect layout */
  visibility: hidden; /* Hide completely */
}

/* Blog Post Cards */
.blog-post-card {
  height: 100%;
  transition: transform 0.3s ease;
  background-color: rgba(30, 30, 30, 0.7); /* Darker background */
  border: 1px solid rgba(128, 128, 128, 0.3); /* More visible border */
  position: relative; /* Needed for absolute positioning of links */
  cursor: pointer; /* Show pointer cursor to indicate clickable */
}

.blog-post-card:hover {
  transform: translateY(-5px);
}

.blog-post-card .card-img-top {
  height: 200px; /* Increased from 160px */
  object-fit: cover;
  border-bottom: 1px solid rgba(128, 128, 128, 0.3);
}

.blog-post-card .card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff; /* Brighter white for better contrast */
  font-size: 1.25rem;
}

.blog-post-card .card-text {
  font-size: 0.95rem;
  color: #e6e6e6; /* Light gray for better readability */
  line-height: 1.5;
}

.blog-post-meta {
  font-size: 0.85rem;
  color: #aaaaaa;
  margin-bottom: 0.7rem;
  font-style: italic;
}

.blog-post-card .btn {
  margin-top: 0.8rem;
  background-color: transparent;
  border: 2px solid #494f57; /* Changed from blue to darker gray */
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-post-card .btn:hover {
  background-color: #494f57; /* Changed from blue to darker gray */
  color: white;
}

/* Category tags */
.category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.category-ctf {
  background-color: #494f57; /* Changed from blue to darker gray */
  color: white;
  font-weight: 600;
}

.category-research {
  background-color: #198754; /* Brighter green */
  color: white;
  font-weight: 600;
}

.category-security {
  background-color: #dc3545; /* Keep red */
  color: white;
  font-weight: 600;
}

.category-tool {
  background-color: #7952b3; /* Brighter purple */
  color: white;
  font-weight: 600;
}

/* View all button */
.view-all-btn {
  margin-top: 2rem;
  text-align: center;
}

.view-all-btn .btn {
  border: 2px solid white;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.view-all-btn .btn:hover {
  background-color: white;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}