img {
  /* Prevent images from exceeding their container */
  max-width: 600px !important;
  height: auto; /* Maintain aspect ratio if no explicit height is set */
}

@media (max-width: 768px) {
  body {
    padding: 0 0 0 10px; /* Remove padding on mobile to use full width */
  }

  img {
    max-width: 100% !important;
    height: auto;
  }
}

img[width] {
  width: attr(width) !important; /* Respect HTML 'width' */
}

img[height] {
  height: attr(height) !important; /* Respect HTML 'height' */
}

img.hero-image {
  max-width: 100% !important; /* or 100%, or any value you want */
}

.load-video-btn img {
  width: 12px !important;
  height: 12px !important;
}

.video-responsive {
  width: 100%;
  max-width: 560px; /* Limit max width */
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
  background-color: #000; /* Optional background color */
  text-align: left; /* Align to the left */
  position: relative; /* For overlay positioning */
}

.video-responsive videoXX {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Scale video to fit the container */
}

.video-responsive video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.blog-title {
  /* border-radius: 5px;
    background-color: rgb(40, 103, 240);
    color: white; */
  padding: 5px 5px;
  /* display: inline-block; */
  /* Ensures it shrinks to fit the content */
}

.blog-head {
  width: 100%;
  margin-top: -20px;

  border-radius: 3px;
  /* background-color: rgb(38, 71, 133); */
  background: linear-gradient(to right, #1474c3, #240b36);
  color: white;

  padding: 15px 15px;
}

.center {
  text-align: center;
  /* border: 1px solid grey; */
}

.delete-btn {
  border-radius: 5px;
  float: right;
}

.edit-btn {
  float: right;
  border-radius: 5px;
  padding: 1px 3px;
  margin-right: 3px;
  /* background-color: #eeeeee;
  color: #333333; */
  text-decoration: none;
  border: 1px solid #929292;
  /* border-right-color: #333333; */
  /* border-bottom-color: #333333; */
  flex: 0 1 auto;
  /* Ensure buttons keep their natural size */
}

.jump {
  border-radius: 3px;
  background-color: rgb(224, 224, 224);
  color: #000000;
  padding: 5px 5px;
  display: inline-block;
  /* Ensures it shrinks to fit the content */
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  /* Allows for multi-row if there are too many buttons */
  gap: 4px;
  /* Adjusts the space between items */
  padding: 10px 0;
  font-size: 16px;
}

.pagination .ellipsis {
  padding: 4px 10px;
  color: #666;
  text-align: center;
  align-self: center;
  /* Vertically aligns ellipsis with buttons */
}

.pagination a {
  color: #333;
  padding: 4px 10px;
  text-decoration: none;
  background-color: #e0e0e0;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.pagination a.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
}

/*  */

.video-responsive {
  width: 100%;
  max-width: 560px; /* Limit max width on larger screens */
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
  background-color: #000; /* Optional background color */
  /* Remove centering to align left */
}

/* Iframe fills the container */
.video-responsive iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/*  */

table {
  width: fit-content;
  /* Optional, to make the table use full width */
  border-collapse: collapse;
}

td,
th {
  vertical-align: top;
  padding: 8px;
  border: 1px solid #ddd;
  word-wrap: break-word;
  /* Enable word wrapping */
  white-space: normal;
  /* Allow text to wrap */
}

th {
  cursor: pointer;
}

/*  image selector */

.image-editable {
  /* max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s; */
}
.image-editable:hover {
  /* border-color: orange; */
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.modal-select {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative; /* so button positions within this box */
}

.modal-select img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}
.modal-select img:hover {
  border-color: orange;
}

.modal-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Now added delete */

.image-select-container {
  display: inline-block;
  position: relative;
  margin: 10px;
}

.image-select-container img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 1px solid #ccc;
}

.delete-image-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: red;
  color: white;
  border: none;
  padding: 5px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 12px;
}

.delete-image-btn:hover {
  background: darkred;
}

.wrap-text {
  max-width: 300px; /* Adjust width */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}

/*  */

.admin-links {
  background: rgb(221, 7, 0);
  color: white;
}

.published {
  background: rgb(221, 7, 0);
  color: white;
}

.unpublished {
  background: rgb(0, 172, 43);
  color: white;
}

.load-more {
  padding-left: 15px;
  cursor: pointer;
}

/*  */

p a {
  word-break: break-word; /* legacy but widely supported */
  overflow-wrap: break-word; /* modern */
  /* OR allow breaks anywhere  */
  /* word-break: break-all;    
  overflow-wrap: anywhere;  */
}

.ml8{
margin-left: 8px;  
}
.ml15{
margin-left: 15px;  
}
