.widget-heading {
    border-color: #da251c;
    position: relative;
    float: left;
    width: 100%;
    box-sizing: border-box;
    margin: 0px 0px 20px;
    border-bottom: 3px solid #da251c;
    padding: 0px;
    outline: rgb(127, 127, 127) none 0px;
    vertical-align: baseline;
    background: rgba(0, 0, 0, 0) none repeat scroll 0px 0px / auto padding-box
        border-box;
    text-decoration: none solid rgb(127, 127, 127);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-heading-text {
    position: relative;
    float: left;
    font-family: 'Merriweather', serif;
    color: #031739;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.widget-heading-link {
    float: right;
    font-size: 12px;
    color: rgb(169, 180, 186);
    line-height: 30px;
    padding: 0px;
    text-decoration: none solid rgb(169, 180, 186);
    margin: 0px;
    border: 0px none rgb(169, 180, 186);
    outline: rgb(169, 180, 186) none 0px;
    background: rgba(0, 0, 0, 0) none repeat scroll 0px 0px / auto padding-box
        border-box;
}

.widget-info-list {
    position: relative;
    float: left;
    width: 100%;
    border-left: 2px solid #9b9b9b1a;
}

.widget-info-item {
    margin: 0px;
    position: relative;
    float: left;
    width: 100%;
    box-sizing: border-box;
    padding: 0px 0px 0px 12px;
}
.widget-info-item:before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--outer-bg);
    top: 0;
    left: -6px;
    border: 2px solid rgba(155, 155, 155, 0.05);
    border-radius: 50%;
    transition: all 0.17s ease;
    box-shadow: inset 0 0 0 6px rgba(155, 155, 155, 0.15);
}

.widget-info-item:hover:before {
    box-shadow: inset 0 0 0 6px #0088ff;
    border-color: #0088ff30;
}

.widget-info-item-inner {
    padding: 0px;
    margin: 0px;
    border: 0px none rgb(127, 127, 127);
    outline: rgb(127, 127, 127) none 0px;
    vertical-align: baseline;
    background: rgba(0, 0, 0, 0) none repeat scroll 0px 0px / auto padding-box
        border-box;
    text-decoration: none solid rgb(127, 127, 127);
}

.widget-info-item-date {
    font-family: Poppins, sans-serif;
    font-size: 11px;
    color: rgb(169, 180, 186);
    font-weight: 400;
    overflow: hidden;
    padding: 0px 1px;
    margin: 0px;
    border: 0px none rgb(169, 180, 186);
    outline: rgb(169, 180, 186) none 0px;
    vertical-align: baseline;
    background: rgba(0, 0, 0, 0) none repeat scroll 0px 0px / auto padding-box
        border-box;
    text-decoration: none solid rgb(169, 180, 186);
}

.widget-info-item-date-inner {
    float: left;
    font-style: normal;
    margin: 0px 10px 0px 0px;
    padding: 0px;
    border: 0px none rgb(169, 180, 186);
    outline: rgb(169, 180, 186) none 0px;
    vertical-align: baseline;
    background: rgba(0, 0, 0, 0) none repeat scroll 0px 0px / auto padding-box
        border-box;
    text-decoration: none solid rgb(169, 180, 186);
}

.widget-info-title {
    float: left;
    width: 100%;
    font-size: 13px;
    margin: 4px 0px 0px;
    color: rgb(23, 25, 33);
    font-weight: 600;
    line-height: 18.2px;
    padding: 0px;
    border: 0px none rgb(23, 25, 33);
    outline: rgb(23, 25, 33) none 0px;
    vertical-align: baseline;
    background: rgba(0, 0, 0, 0) none repeat scroll 0px 0px / auto padding-box
        border-box;
    text-decoration: none solid rgb(23, 25, 33);
}

.widget-info-link {
    color: rgb(23, 25, 33);
    display: block;
    text-decoration: none solid rgb(23, 25, 33);
    padding: 0px;
    margin: 0px;
    border: 0px none rgb(23, 25, 33);
    outline: rgb(23, 25, 33) none 0px;
    vertical-align: baseline;
    background: rgba(0, 0, 0, 0) none repeat scroll 0px 0px / auto padding-box
        border-box;
}

.content-section.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#content-wrapper-2 {
    float: left;
    width: 100%;
    overflow: hidden;
    padding-bottom: 30px;
}

#content-wrapper {
    padding-bottom: 0;
}

#post-body figure {
    text-align: center;
}

.row-x1 {
    margin: 0 40px;
}

table {
    width: 100%;
    overflow-x: auto;
    text-align: left;
    margin: 0;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}

table td,
table th {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
}

table thead th {
    color: var(--title-color);
    vertical-align: bottom;
}

.widget.statics {
    margin-bottom: 30px;
}

#header-wrapper .bg-img {
    background-position: center;
    height: 230px;
    background-color: #da251cd1;
    background-repeat: no-repeat;
    background-size: cover;
}

@media only screen and (max-width: 880px) {
    .header-items {
        height: 100%;
    }
}

/* Hiển thị 3 bài, ẩn phần còn lại, overflow hidden */
.noti-swiper {
    height: 240px; /* hoặc 3 * chiều cao 1 bài */
    overflow: hidden;
}

.departmentPost-swiper {
    height: 280px;
    overflow: hidden;
}

.swiper-slide {
    padding-left: 8px;
}

@media only screen and (max-width: 880px) {
    .row-x1 {
        margin: 0 20px;
    }
    #header-wrapper img {
        height: 180px;
    }
    #slide-menu.open {
        transform: translateX(0);
    }

    .mobile-menu li.has-sub.open .m-sub {
        display: block;
    }
    #header-wrapper .bg-img {
        height: 200px;
        background-position: -50px;
    }
}

@media only screen and (max-width: 1133px) {
    #header-wrapper .bg-img {
        height: 180px;
    }
}

#spotmag-pro-main-nav-menu {
    flex-wrap: wrap;
    justify-content: center;
}
#spotmag-pro-main-nav-menu > li {
    white-space: nowrap;
}

.main-header-bar {
    width: 100%;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    padding: 0;
    display: flex;
    justify-content: center;
}
.main-header-bar-inner {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    align-items: center;
}
.bar-left {
    color: #333;
    font-weight: 500;
}
.bar-right {
    flex: 1;
    margin-left: 24px;
    overflow: hidden;
    position: relative;
}
.marquee {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    position: relative;
}
.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.main-header,
.header-inner,
.header-header {
    height: unset;
}

#spotmag-pro-main-nav ul#spotmag-pro-main-nav-menu,
#spotmag-pro-main-nav-menu {
    height: unset !important;
}

#spotmag-pro-main-nav-menu > li {
    margin-bottom: 15px;
}

#spotmag-pro-main-nav-menu {
    padding-top: 15px;
}

.bar-search-form {
    margin-left: 16px;
}
.bar-search-input {
    font-size: 14px;
    height: 28px;
    font-family: var(--body-font);
    background-color: #F6F6F6;
    padding: 4px 8px;
    outline: none;
}
.bar-search-btn {
    height: 28px;
    transition: background 0.2s;
    padding: 4px 10px;
    border-left: none;
    background: #F6F6F6;
    color: #424242;
    cursor: pointer;
}
.bar-search-btn:hover {
    opacity: 0.8;
}

.primary-footer a {
    color: white;
}

.widget-title i::before {
    color: #da251c;
}


.widget.map-widget {
    text-align: center;
    padding: 0;
}

.widget.map-widget .map-widget-title{
    margin-bottom: 10px;
    margin-top: 15px;
    text-transform: uppercase;
}

.widget.map-widget .map-widget-footer {
    margin-top: 10px;
    margin-bottom: 15px;
}

#spotmag-pro-main-nav-menu li.active > a {
    color: #da251c;
}

.marquee i {
    color: #da251c;
}


/* Header Banner Styles */
.header-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  height: 200px;
}

.header-banner .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-banner .row {
  display: flex;
  width: 100%;
}

.header-banner .col-md-6 {
  display: flex;
  align-items: center;
}
.header-banner .col-md-6:first-child {
  padding: 20px;
  width: 40%;
}

.header-banner .col-md-6:last-child {
  clip-path: polygon(0 0%, 100% 0%, 100% 100%, 150px 100%);
  width: 60%;
}

.header-banner .header-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.header-banner .header-logo {
  width: 25%;
  margin-right: 20px;
  text-align: center;
}

.header-banner .header-logo img {
  max-width: 100%;
  height: auto;
}

.header-banner .header-text {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.header-banner .header-text.full-width {
  width: 100%;
}

.header-banner .header-text.with-logo {
  width: 75%;
}

.header-banner .header-heading {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: rgb(255, 43, 43);
  white-space: nowrap;
}

.header-banner .header-title {
  font-size: 2.2rem;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 0 #cccccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9,
    0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2),
    0 5px 10px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.2),
    0 20px 20px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.header-banner .header-slider {
  position: relative;
  overflow: hidden;
}

.header-banner .header-swiper {
  height: 100%;
}

.header-banner .swiper-slide {
  position: relative;
  height: 100%;
  padding-left: 0;
}

.header-banner .swiper-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.header-banner .swiper-pagination {
  bottom: 10px;
}

.header-banner .swiper-button-next,
.header-banner .swiper-button-prev {
  color: white;
}

.header-banner .swiper-button-next {
  right: 10px;
}

.header-banner .swiper-button-prev {
  left: 10px;
}

.header-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

#spotmag-pro-main-nav-menu li.active > a {
  color: var(--main-color);
}

/* Full Page Loading Screen Styles */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-container {
  position: relative;
  display: inline-block;
}

.loader-logo {
  position: relative;
  z-index: 2;
}

.loader-logo img {
  max-width: 120px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 10px;
}

.loader-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.spinner {
  width: 160px;
  height: 160px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--main-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.spinner::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid transparent;
  border-top: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: spin 2s linear infinite reverse;
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .loader-logo img {
    max-width: 80px;
  }

  .spinner {
    width: 120px;
    height: 120px;
  }

  .header-banner .row {
    position: relative;
  }

  .header-banner .col-md-6:first-child {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 200px;
  }

  .header-banner .col-md-6:last-child {
    width: 100%;
    clip-path: none;
    z-index: 0;
    height: 200px;
  }

  #header-wrapper .header-logo img {
    height: auto;
  }

  .main-header-bar-inner,
  .bar-right {
    flex-direction: column;
  }
  .marquee {
    margin: 20px 0 10px 0;
  }

  #footer-wrapper .row-x1 {
    flex-direction: column;
  }
  .footer-info {
    margin: 0;
  }

  #footer-wrapper .section {
    margin-bottom: 20px;
  }

  .header-banner .header-heading {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .header-banner .header-title {
    font-size: 1.2rem;
  }
}

#sidebar-wrapper .widget img {
  width: 100%;
  object-fit: cover;
}
