h1, h2, h3 {
  scroll-margin-top: 100px;
}
.generic-content-section {
  max-width: 1200px;
  margin: auto;
  padding: 20px 10px;
}
.generic-content-section h1 { fo nt-size: 2em; margin-bottom: 1rem; }
.generic-content-section h2 { fo nt-size: 1.4em; margin-top: 1rem; }
.generic-content-section h3 { fo nt-size: 1.2em; margin-top: 1rem; }

.generic-content-section p{
  line-height:1.7;
}
.media-content figure {
  text-align: center;
}

.media-content figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 6px;
}

.media-block { display: flex; gap: 20px; margin: 20px 0; flex-wrap: wrap; align-items: center;}
.media-text { flex: 1 1 400px; min-width: 0;}
.media-content { flex: 1 1 300px; display: flex; flex-direction: column; gap: 15px; align-items: center;}
 
.media-content img { 
   max-width: 350px;
    height: auto;
    display: block;
    width: 100%;
    border-radius: 10px;
    border: 1px solid goldenrod;
     box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth hover effect */
  }
  .media-content img:hover {
    transform: translateY(-5px); /* thoda lift effect */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25); /* shadow thoda strong on hover */
}
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Table */
table { width: 100%; border-collapse: collapse; margin-top: 10px; background-color: #fff; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
tr:nth-child(even) { background-color: #f9f9f9; }
.table-wrapper {
    display: block;
    width: 100%;
    overflow-x: auto;
}

.table-wrapper table {
    display: table;
    min-w idth: 700px;   /* 🔥 force overflow */
}

.table-wrapper th,
.table-wrapper td {
    white-space: nowrap; /* no wrapping */
}



/* Social Share */
.social-share { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.social-share a { color: white; padding: 6px 10px; border-radius: 4px; text-decoration: none; }
.social-share-items{display: flex; gap: 10px; flex-wrap: wrap;}
.social-share-items a{  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px;}
  .social-share-items img{
  width:22px;
  height:22px;
}

/* Comment Section */
.comment-section { margin-top: 40px; padding: 20px; border-top: 2px solid #ddd; }
.comment-section h2 { font-size: 1.6em; margin-bottom: 15px; }
#login-buttons button,
#post-comment { background: #FF6600; color: white; border: none; padding: 8px 12px; border-radius: 4px; margin-right: 10px; cursor: pointer; }
#comment-input { width: 100%; height: 70px; padding: 8px; margin: 10px 0; border-radius: 4px; border: 1px solid #ddd; }
.comment-item { border-bottom: 1px solid #eee; padding: 8px 0; }
.comment-item strong { color: #333; }
.comment-item p { margin: 5px 0 0 0; }
#login-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
#comment-form {
  margin-top: 15px;
  display: none; /* Initially hidden */
}

.login-buttons button{
  flex:1;
}
.comment-time {
    font-size: 0.8em;
    color: #888;
    margin-left: 5px;
}
#logout-btn {
  background: #333;        /* Dark button */
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  display: none;           /* Show only when logged in */
}

/* @media (max-width: 768px) { .media-block { flex-direction: column; } } */

/* Zoom effect on images */
.zoomable {
  cursor: zoom-in;
  position: relative;
}

/* icon */
.zoomable::after {
  content: "🔍";
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 18px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: 0;
  transition: 0.3s ease;
}

.zoomable:hover::after {
  opacity: 1;
}

.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.zoom-overlay.show {
  opacity: 1;
}

.zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;

  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.zoom-overlay.show img {
  transform: scale(1);
}
.zoom-overlay img {
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.keywords {
  font-size: 0.85rem;
  color: #666;
}
.toc {
  background: #f9f9f9;
  border-left: 4px solid #ff7a00;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.toc h3 {
  margin-bottom: 10px;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin: 6px 0;
}

.toc a {
  text-decoration: none;
  color: #333;
}

.toc a:hover {
  color: #ff7a00;
}