.add-post-card .item-icon {
  background-color: transparent;
  border-radius: 100%;
  height: 80px;
  line-height: 80px;
  margin: 0 auto;
  text-align: center;
  width: 80px;
}

.add-post-card .item-icon .icon-article {
  color: #009ef7;
  font-size: 48px;
}

.swal-modal .swal-text {
  text-align: center;
}

.border-color .width-custom {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100px;
}

.width-custom {
  height: 70px;
  min-width: 100px;
}

.Add-post-modal-img {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid #e4e6ef;
  border-radius: 0.475rem;
  box-shadow: 0 0.1rem 1rem 0.25rem rgba(0, 0, 0, 0.05);
  max-width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

.h-100px {
  height: 100px !important;
}

.custom-break {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  word-break: break-all;
}

.Add-post-modal {
  border-width: 1px;
  border-style: dashed;
  color: #7e8299;
  border-color: #e4e6ef;
}

.additional-images .border-color {
  border: 2px dashed #e4e6ef;
  color: #7e8299;
  height: 130px;
  margin: 0 0 10px 10px;
  padding: 3px;
  width: 120px;
}

.width-custom {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100px;
}

.text-hover-primary:hover {
  transition: color 0.2s ease, background-color 0.2s ease;
  color: #009ef7 !important;
  background-color: #e0e3ff;
}

.option .dropdown-menu {
  min-width: 200px;
  font-size: 13px;
}
.option .dropdown-item {
  padding-top: 12px;
}

.w-125px {
  width: 125px !important;
}

.w-60px {
  width: 60px !important;
}

.h-125px {
  height: 125px !important;
}

.h-60px {
  height: 60px !important;
}

.vote-progressbar {
  height: 1rem !important;
}

.custom-object-fit {
  -o-object-fit: cover;
     object-fit: cover;
}

.overflow-x-hidden {
  overflow-x: hidden !important;
}

.custom-card-layout :hover {
  color: #009ef7;
  border-color: #009ef7;
  background-color: #f1faff !important;
}

.btn-check:checked + .btn.btn-outline.btn-outline-dashed.btn-outline-default, .show > .btn.btn-outline.btn-outline-dashed.btn-outline-default {
  color: #009ef7;
  border-color: #009ef7;
  background-color: #f1faff !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.ad-banner-img-preview {
  height: 100px;
  width: 100%;
  overflow: hidden;
}

.ad-banner-img-preview img {
  height: 100px;
  width: 800px;
  overflow: hidden;
}

.ad-banner-img-previewM {
  height: 250px;
  width: 100%;
  overflow: hidden;
}

.ad-banner-img-previewM img {
  height: 250px;
  width: 300px;
  overflow: hidden;
}

.content {
  background-color: #EFF3F7;
}

.breaking-news-section .content,
.offcanvas-content .content,
.set .content {
  background-color: transparent !important;
}

.footer {
  background-color: #EFF3F7;
}

.badge-tag {
  left: -22px;
  top: 2px;
  transform: rotate(-34deg) !important;
  padding: 5px;
  font-size: 10px;
  border-radius: 0;
  width: 70px;
}

.post-reaction-count {
  border-radius: 15px;
  position: absolute;
  top: -19px;
  right: 16px;
  display: inline-block;
  min-width: 29px;
  opacity: 0.8;
  font-weight: 400;
  color: #fff;
  font-size: 10px;
  background: black;
}

.post-reaction .emoji {
  width: 105px;
  margin-bottom: 5px;
  float: left;
}

.post-reaction span {
  font-size: 50px;
}

.offcanvas {
  z-index: 1050 !important;
}

.create-post-container .offcanvas {
  position: fixed;
  bottom: 0;
  z-index: 1045;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  visibility: hidden;
  background-color: #fff;
  background-clip: padding-box;
  outline: 0;
  transition: transform 0.3s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .create-post-container .offcanvas {
    transition: none;
  }
}
.create-post-container .offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}
.create-post-container .offcanvas-backdrop.fade {
  opacity: 0;
}
.create-post-container .offcanvas-backdrop.show {
  opacity: 0.5;
}
.create-post-container .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
}
.create-post-container .offcanvas-header .btn-close {
  padding: 0.5rem 0.5rem;
  margin-top: -0.5rem;
  margin-right: -0.5rem;
  margin-bottom: -0.5rem;
}
.create-post-container .offcanvas-title {
  margin-bottom: 0;
  line-height: 1.5;
}
.create-post-container .offcanvas-body {
  flex-grow: 1;
  padding: 1rem 1rem;
  overflow-y: auto;
}
.create-post-container .offcanvas-start {
  top: 0;
  left: 0;
  width: 400px;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
}
.create-post-container .offcanvas-end {
  top: 0;
  right: 0;
  width: 400px;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
}
.create-post-container .offcanvas-top {
  top: 0;
  right: 0;
  left: 0;
  height: 30vh;
  max-height: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transform: translateY(-100%);
}
.create-post-container .offcanvas-bottom {
  right: 0;
  left: 0;
  height: 30vh;
  max-height: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
}
.create-post-container .offcanvas.show {
  transform: none;
}

.post-offcanvas-container .offcanvas {
  position: fixed;
  bottom: 0;
  z-index: 1045;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  visibility: hidden;
  background-color: #fff;
  background-clip: padding-box;
  outline: 0;
  transition: transform 0.3s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .create-post-container .offcanvas {
    transition: none;
  }
}
.post-offcanvas-container .offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.post-offcanvas-container .offcanvas-backdrop.fade {
  opacity: 0;
}

.post-offcanvas-container .offcanvas-backdrop.show {
  opacity: 0.5;
}

.post-offcanvas-container .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
}

.post-offcanvas-container .offcanvas-header .btn-close {
  padding: 0.5rem 0.5rem;
  margin-top: -0.5rem;
  margin-right: -0.5rem;
  margin-bottom: -0.5rem;
}

.post-offcanvas-container .offcanvas-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.post-offcanvas-container .offcanvas-body {
  flex-grow: 1;
  padding: 1rem 1rem;
  overflow-y: auto;
}

.post-offcanvas-container .offcanvas-start {
  top: 0;
  left: 0;
  width: 400px;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
}

.post-offcanvas-container .offcanvas-end {
  top: 0;
  right: 0;
  width: 400px;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
}

.post-offcanvas-container .offcanvas-top {
  top: 0;
  right: 0;
  left: 0;
  height: 30vh;
  max-height: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transform: translateY(-100%);
}

.post-offcanvas-container .offcanvas-bottom {
  right: 0;
  left: 0;
  height: 30vh;
  max-height: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
}

.post-offcanvas-container .offcanvas.show {
  transform: none;
}

.lb-image {
  width: 100% !important;
  height: 100% !important;
}

.lightboxOverlay {
  width: 100% !important;
}

.lb-outerContainer, .lb-container {
  width: 800px;
  height: 600px;
  max-width: 800px;
}
@media (max-width: 770px) {
  .lb-outerContainer, .lb-container {
    max-width: 500px;
    max-height: 400px;
  }
}
@media (max-width: 576px) {
  .lb-outerContainer, .lb-container {
    max-width: 300px;
    max-height: 200px;
  }
}

.badge-light-primary {
  color: #009ef7;
  background-color: #f1faff;
}

.badge-light-success {
  color: #50cd89;
  background-color: #e8fff3;
}

.badge-light-warning {
  color: #ffc700;
  background-color: #fff8dd;
}

.badge-light-info {
  color: #7239ea;
  background-color: #f8f5ff;
}

.badge-light-danger {
  color: #f1416c;
  background-color: #fff5f8;
}

.badge-light-dark {
  color: #181c32;
  background-color: #eff2f5;
}

.dropdown-toggle:after {
  border: solid black;
  border-width: 0 2px 2px 0;
}

/* Bug #4: Center images in article content and make them responsive */
.news-desc img {
    display: block;
    margin: 15px auto;
    max-width: 100%;
    height: auto;
}

/* Fix: Prevent text selection highlight on breaking news ticker */
.breaking-news-section .breaking-slider,
.breaking-news-section .breaking-slider .swiper-wrapper,
.breaking-news-section .breaking-slider .swiper-slide {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.breaking-news-section .title .content {
    overflow: hidden;
    background-color: transparent !important;
}

.breaking-news-section .breaking-slider .swiper-slide a {
    font-size: 14px !important;
    line-height: 1.4;
}

.breaking-news-section .title .content.swiper-slide,
.breaking-news-section .swiper-slide.content {
    background-color: transparent !important;
}

/* Bug #5: Slider - title below image */
.hero-section .hero-image.carousel-item {
    flex-direction: column;
    height: auto !important;
    overflow: hidden !important;
}

.hero-section .hero-image.carousel-item.active,
.hero-section .hero-image.carousel-item-next,
.hero-section .hero-image.carousel-item-prev {
    display: flex !important;
}

.hero-section .hero-image.carousel-item > a:first-child {
    display: block;
    width: 100%;
    height: 400px;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-section .hero-image.carousel-item > a:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-section .hero-image .hero-content {
    position: relative !important;
    bottom: auto !important;
    background: #1a1a2e;
    padding: 12px 20px !important;
    width: 100%;
}

.hero-section .hero-image .hero-content h1 {
    font-size: 18px !important;
    line-height: 1.5;
    margin-bottom: 3px;
    padding-right: 0 !important;
}

.hero-section .hero-image .hero-content h1 a {
    color: #fff !important;
    text-decoration: none;
}

.hero-section .hero-image .hero-content .desc p,
.hero-section .hero-image .hero-content .desc span {
    font-size: 12px !important;
    color: #ccc !important;
}

.hero-section .hero-image .tags {
    z-index: 5;
}

/* Disable hover zoom on slider images to prevent rendering issues */
.hero-section .hero-image.carousel-item:hover img {
    transform: none !important;
}

@media (max-width: 767px) {
    .hero-section .hero-image.carousel-item > a:first-child {
        height: 250px;
    }
}

/* Carousel controls positioned over image area only */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    height: 400px !important;
    top: 0 !important;
    align-items: center;
}

@media (max-width: 767px) {
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        height: 250px !important;
    }
}

/* Bug #1: Subcategory dropdown - multi-column for many items */
header .nav .dropdown .dropdown-nav {
    columns: 2 !important;
    column-gap: 0 !important;
    min-width: 380px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

header .nav .dropdown .dropdown-nav li {
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    padding: 10px 15px 0 15px !important;
}

.top-bar-section .navbar .dropdown .dropdown-nav {
    columns: 2 !important;
    column-gap: 0 !important;
    min-width: 380px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

.top-bar-section .navbar .dropdown .dropdown-nav li {
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    padding: 10px 15px 0 15px !important;
}

@media (min-width: 992px) {
    header .nav .dropdown .dropdown-nav,
    .top-bar-section .navbar .dropdown .dropdown-nav {
        columns: 3 !important;
        min-width: 520px !important;
    }
}

/* Mobile offcanvas multi-column for subcategories */
.set .content {
    columns: 2 !important;
    column-gap: 5px;
}

.set .content li {
    break-inside: avoid;
}
