/* Blog Page Styles */

.blog-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.subtitle {
  font-size: 1.2em;
  color: #555;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 0 10%;
}

.blog-card {
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

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

.blog-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 15px;
}

.blog-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  background-color: #125aa6;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0f4a8d;
}

/* Main container for hamburger menu and cards icon */
#icon-menu-container {
  position: fixed;
  bottom: 20px; /* Keep it at the bottom for upward opening */
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hamburger menu and Cards icon styling */
.icon-menu {
  cursor: pointer;
  font-size: 24px;
  background-color: #125aa6;
  color: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

/* Dropdown menu styles - opening upwards */
.menu {
  position: absolute;
  bottom: 100%; /* Opens upwards */
  left: 0;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px;
  display: none;
  width: 200px;
  z-index: 2000;
  max-height: 200px; /* Limit the height to make it scrollable */
  overflow-y: auto;
}

/* Hamburger menu open state */
.menu.open {
  display: block;
}


/* Blog titles list inside the dropdown menu */
#blog-titles-list {
  list-style: none;
  padding: 0;
}

#blog-titles-list li {
  margin: 0;
  padding: 10px 0; /* Add padding for better separation between items */
  border-bottom: 1px solid #f0f0f0; /* Optional: Add a separator line to distinguish items */
}

#blog-titles-list a {
  text-decoration: none;
  color: #125aa6;
  transition: color 0.3s;
  display: block; /* Make the link block-level to occupy the full width */
  line-height: 1.2; /* Adjust line-height to avoid unnecessary spacing */
}

#blog-titles-list a:hover {
  color: #0f4a8d;
  background-color: #f7f7f7; /* Optional: Add a slight background color on hover to differentiate */
}

/* Blog container for articles */
.blog-container {
  flex: 1;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 20px;
}

/* Blog article container styling */
.blog-article-container {
  flex: 1;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 0 10%;
}

/* Blog Article Styles */
.blog-article-image {
  width: 80%;
  height: fit-content;
  margin: 20px auto;
  border-radius: 8px;
  display: block;
}

.blog-article-header {
  margin-top: 20px;
  color: #333;
  font-weight: bold;
}

.blog-article-paragraph {
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.blog-article-list {
  margin: 15px 0;
  padding-left: 20px;
}

.blog-article-video {
  width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 8px;
  display: block;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}
