/* Blog Layout */
.blog-section {
  margin: 40px auto;
  max-width: 850px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
}
.blog-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #1a73e8;
  border-left: 6px solid #ff9800;
  padding-left: 10px;
}
.blog-section p {
  font-size: 18px;
  margin: 12px 0;
}
.blog-section strong { color: #000; }
.blog-section em { color: #555; }

/* Highlights */
.blog-highlight {
  background: #fef3c7;
  padding: 10px 15px;
  border-left: 5px solid #f59e0b;
  margin: 20px 0;
  font-weight: bold;
}

/* Lists */
.blog-list {
  background: #f9fafb;
  border: 1px solid #ddd;
  padding: 15px 25px;
  border-radius: 8px;
  margin: 20px 0;
}
.blog-list li {
  margin: 8px 0;
  font-size: 17px;
}

/* Tables */
.blog-table-wrapper { overflow-x: auto; }
.blog-table {
  border-collapse: collapse;
  width: 100%;
  margin: 25px 0;
  min-width: 600px;
}
.blog-table th, .blog-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}
.blog-table th {
  background-color: #1a73e8;
  color: #fff;
  font-size: 18px;
}
.blog-table td { font-size: 16px; }

/* Quotes */
.blog-quote {
  font-size: 20px;
  font-weight: bold;
  color: #e53935;
  margin: 25px 0;
  border-left: 6px solid #e53935;
  padding-left: 12px;
}

/* Blog Images - extra shrunken */
.blog-img {
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  width: 60%;        /* smaller default size */
  height: auto;
  max-width: 550px;  /* tight cap on desktops */
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Medium screens (tablets/laptops) */
@media (max-width: 1024px) {
  .blog-img {
    width: 70%;      /* smaller on tablets */
    max-width: 500px;
  }
}

/* Small screens (mobiles) */
@media (max-width: 600px) {
  .blog-img {
    width: 85%;      /* not edge-to-edge, keeps margin space */
    max-width: 100%;
    border-radius: 5px;
  }
}


.blog-link {
  color: #0066cc;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
  display: inline-block;
}

/* Animated underline */
.blog-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Exit */
.blog-link:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

/* Re-enter */
.blog-link:not(:hover)::after {
  transform: scaleX(1);
  transform-origin: left;
}
