@import url("../lib/fonts/inter/google.css");

/************ TABLE OF CONTENTS ***************

1. Reset
2. Global
3. Nav
4. Header
5. Section Title
6. Fact
7. About & Features
8. Sevices
9. Projects
10. Appointment
11. Testimonial Section
12. Footer


**********************************************/

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden; 
  font-family: "Inter", sans-serif;
}
:root {
  /* --primary: #0052cc;    /* Темносина - доверба и стабилност */
  /* --secondary: #0085ff;  /* Светлосина - енергија и модерност */
  --primary: #953035;
  --secondary: #891E22;
  --light: #f4f7fc;      /* Светло сина/сивкава - чист и професионален фон */
  --dark: #1a1a1a;       /* Темносиво/црно - елеганција и сериозност */
  
}

h1,
h2,
.h1,
.h2,
.fw-bold {
  font-weight: 600 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
  font-weight: 500 !important;
}

h5,
h6,
.h5,
.h6,
.fw-normal {
  font-weight: 400 !important;
}

a {
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

.txt-primary {
  color: var(--primary);
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.btn-outline-body {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-body:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-inline-body {
  color: #ffffff;
  background: var(--primary);
}

.btn-inline-body:hover {
  color: var(--light);
  background-color: var(--secondary);
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
  margin-right: 16px;
  padding: 30px 20px;
  color: var(--dark);
  /* font-weight: 500; */
  text-transform: none;
  font-size: 17px;
  white-space: nowrap;
  outline: none;
  transition: color 0.3s, background 0.3s;
}

/* 桌面端：导航区占满 logo 右侧，链接等宽平均分布 */
@media (min-width: 992px) {
  #navbarCollapse.navbar-collapse {
    flex-grow: 1;
  }

  .navbar .navbar-brand {
    margin-right: 300px;
  }

  #navbarCollapse .navbar-nav,
  #navbarCollapse .navbar-nav.nav-links {
    flex-direction: row;
    width: 85%;
    justify-content: space-between;
  }

  #navbarCollapse .navbar-nav .nav-link,
  #navbarCollapse .navbar-nav.nav-links .nav-link {
    flex: 1;
    margin-right: 0;
    text-align: center;
    padding: 30px 12px;
  }
}

section[id] {
  scroll-margin-top: 90px;
}

.navbar .navbar-nav .nav-link:hover {
  color: var(--primary);
}

#navbarCollapse .navbar-nav .nav-link.active {
  color: #fff;
  background: var(--primary);
  font-weight: 500;
}

#navbarCollapse .navbar-nav .nav-link.active:hover {
  color: #fff;
  background: var(--secondary);
}

.navbar.sticky-top {
  top: -100px;
  transition: 0.5s;
}

@media (max-width: 991.98px) {
  .navbar {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar .navbar-brand {
    margin-right: 0 !important;
    flex-shrink: 0;
  }

  .navbar .navbar-toggler {
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
  }

  .navbar .navbar-collapse {
    flex-basis: 100%;
  }

  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 16px;
    white-space: normal;
  }

  .navbar .navbar-nav {
    border-top: 1px solid #eeeeee;
  }

  .xb-news-list-page .xb-page-sidebar,
  .xb-content-page .xb-page-sidebar {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 10px;
    font-size: 14px;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.owl-carousel-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    position: relative;
    min-height: 500px;
  }

  .header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-carousel .owl-carousel-item p {
    font-size: 16px !important;
  }
}

.header-carousel .owl-dots {
  position: absolute;
  width: 60px;
  height: 100%;
  top: 0;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
  position: relative;
  width: 45px;
  height: 45px;
  margin: 5px 0;
  background: var(--dark);
  transition: 0.5s;
}

.header-carousel .owl-dots .owl-dot.active {
  width: 60px;
  height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 2px;
  transition: 0.5s;
  opacity: 0.3;
}

.header-carousel .owl-dots .owl-dot.active img {
  opacity: 1;
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/*** Section Title ***/
.section-title h6 {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.section-title h2 {
  font-size: 1.5rem;
}

/*** Facts ***/
.fact-item {
  cursor: pointer;
  border-radius: 10px;
}
.fact-item .fact-icon {
  width: 120px;
  height: 120px;
  margin-top: -60px;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 120px;
  transition: 0.5s;
}

.fact-item:hover .fact-icon {
  background: var(--primary);
}

.fact-item .fact-icon i {
  color: var(--primary);
  transition: 0.5;
}

.fact-item:hover .fact-icon i {
  color: #ffffff;
}

/*** About & Feature ***/

.about-img,
.feature-img {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.about-img img,
.feature-img img {
  position: absolute;
  width: 60%;
  height: 80%;
  object-fit: cover;
  border-radius: 15px;
}

.about-img img:last-child,
.feature-img img:last-child {
  margin: 20% 0 0 40%;
}

.about-img::before,
.feature-img::before {
  position: absolute;
  content: "";
  width: 60%;
  height: 80%;
  top: 10%;
  left: 20%;
  z-index: -1;
}

/*** Service ***/
.service-item .bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  border-radius: 15px;
}

.service-item .service-text {
  background: var(--light);
  transition: 0.5s;
  border-radius: 15px;
}
.service-item .service-text i {
  color: var(--primary);
}

.service-item:hover .service-text {
  background: rgba(0, 0, 0, 0.7);
}

.service-item * {
  transition: 0.5;
}

.service-item:hover * {
  color: #ffffff;
}

.service-item .btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--dark);
  background: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  transition: 0.5s;
}

.service-item:hover .btn {
  width: 140px;
}

/*** Project ***/
.project .nav .nav-link {
  background: var(--light);
  color: var(--primary);
  transition: 0.5s;
  font-size: 24px;
}

.project .nav .nav-link.active {
  background: var(--primary);
  color: var(--light)
}

.project .nav .nav-link.active h3 {
  color: #ffffff !important;
}

/*** Team ***/
.team-items {
  margin: -0.75rem;
}

.team-item {
  padding: 0.75rem;
}

.team-item::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  background: #ffffff;
  transition: 0.5s;
  z-index: -1;
}

.team-item:hover::after {
  height: 100%;
  background: var(--primary);
}

.team-item .team-social {
  position: absolute;
  width: 100%;
  bottom: -20px;
  left: 0;
}

.team-item .team-social .btn {
  display: inline-flex;
  margin: 0 2px;
  color: var(--primary);
  background: var(--light);
}

.team-item .team-social .btn:hover {
  color: #ffffff;
  background: var(--primary);
}

/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
  top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
  border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
  font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  padding: 10px;
  border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
  background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
  border-bottom-color: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel {
  display: flex !important;
  flex-direction: column-reverse;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-carousel .owl-dots {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 5px;
  transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
  width: 100px;
  height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
  position: absolute;
  width: 40px;
  height: 40px;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  content: "\f10d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary);
  background: #ffffff;
  border-radius: 40px;
  transition: 0.5s;
  opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
  opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
  opacity: 0.4;
  transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
  opacity: 1;
}

/*** Footer ***/
.footer-content a {
  text-decoration: none;
}
.footer .btn-outline-body{
  padding: 18px;
}
.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #fff;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}


#footer .footer-links-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

#footer .footer-links-flex .btn.btn-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  white-space: nowrap;
}

#footer .footer-content {
  font-size: 14px;
}

#footer .footer-brand__logo img {
  width: auto;
  height: 60px;
}

#footer .footer-brand h5 {
  line-height: 1.5;
}

.footer .form-control {
  border-color: #fff;
}

.footer .copyright {
  padding: 15px 0;
  font-size: 12px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--light);
}

.footer .copyright a:hover {
  color: var(--primary);
}

/*** News Section ***/
#News .xb-news-board {
  margin-top: 8px;
}

#News .xb-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #953035;
  position: relative;
  background: #fff;
}

#News .xb-news-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #953035;
  pointer-events: none;
  z-index: 2;
}

#News .xb-news-corner--tl {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
  border-radius: 0 0 14px 0;
}

#News .xb-news-corner--tr {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 0 0 14px;
}

#News .xb-news-corner--bl {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
  border-radius: 0 14px 0 0;
}

#News .xb-news-corner--br {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
  border-radius: 14px 0 0 0;
}

/* 左侧新闻列表 */
#News .xb-news-list {
  padding: 8px 0;
  border-right: 1px solid #eee;
}

#News .xb-news-list-item {
  padding: 22px 28px;
  border-bottom: 1px solid #eee;
}

#News .xb-news-list-item:last-child {
  border-bottom: none;
}

#News .xb-news-list-item h5 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: #222;
}

#News .xb-news-list-item h5 a {
  color: inherit;
  text-decoration: none;
}

#News .xb-news-list-item h5 a:hover {
  color: var(--primary);
}

#News .xb-news-list-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #999;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 右侧焦点图轮播 */
#News .xb-news-featured {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#News .xb-news-featured__media {
  position: relative;
  width: 100%;
  height: 430px;
  overflow: hidden;
  background: #1a1a1a;
}

#News .xb-news-featured__media .carousel,
#News .xb-news-featured__media .carousel-inner,
#News .xb-news-featured__media .carousel-item {
  height: 430px;
}

#News .xb-news-featured__media .carousel-item img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
}

#News .xb-news-featured__bar {
  display: flex;
  align-items: stretch;
  min-height: 90px;
}

#News .xb-news-featured__date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 12px 8px;
}

#News .xb-news-featured__day {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

#News .xb-news-featured__ym {
  font-size: 13px;
  margin-top: 4px;
  opacity: 0.9;
}

#News .xb-news-featured__info {
  flex: 1;
  background: #1a1a1a;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

#News .xb-news-featured__info h5 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

#News .xb-news-featured__info h5 a {
  color: #fff;
  text-decoration: none;
}

#News .xb-news-featured__info h5 a:hover {
  color: #f0c0c0;
}

#News .xb-news-featured__info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

#News .xb-news-featured__media .xb-news-featured__ctrl {
  z-index: 5;
  width: 40px;
  height: 40px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 1;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
}

#News .xb-news-featured__media .carousel-control-prev {
  left: 12px;
}

#News .xb-news-featured__media .carousel-control-next {
  right: 12px;
}

#News .xb-news-featured__media .xb-news-featured__ctrl .carousel-control-prev-icon,
#News .xb-news-featured__media .xb-news-featured__ctrl .carousel-control-next-icon {
  width: 16px;
  height: 16px;
}

#News .xb-news-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 8px;
}

#News .xb-news-more a {
  color: #888;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.12em;
}

#News .xb-news-more a:hover {
  color: #953035;
}

#News .xb-news-more__deco {
  display: inline-block;
  width: 32px;
  height: 12px;
  position: relative;
  opacity: 0.45;
}

#News .xb-news-more__deco::before,
#News .xb-news-more__deco::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid #953035;
  transform: translateY(-50%) rotate(45deg);
}

#News .xb-news-more__deco::before {
  left: 2px;
}

#News .xb-news-more__deco::after {
  left: 14px;
}

#News .xb-news-more__deco--right {
  transform: scaleX(-1);
}

@media (max-width: 991px) {
  #News .xb-news-grid {
    grid-template-columns: 1fr;
  }

  #News .xb-news-list {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 575px) {
  #News .xb-news-list-item {
    padding: 18px 16px;
  }

  #News .xb-news-list-item h5 {
    font-size: 15px;
  }

  #News .xb-news-featured__media,
  #News .xb-news-featured__media .carousel,
  #News .xb-news-featured__media .carousel-inner,
  #News .xb-news-featured__media .carousel-item,
  #News .xb-news-featured__media .carousel-item img {
    height: 220px;
  }

  #News .xb-news-featured__date {
    width: 72px;
  }

  #News .xb-news-featured__day {
    font-size: 26px;
  }
}

/*** News List Page ***/
.xb-news-list-page {
  padding: 60px 0 80px;
}

.xb-sidebar {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
}

.xb-sidebar__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.xb-sidebar__head::before {
  content: "";
  display: block;
  width: 4px;
  height: 22px;
  background: var(--primary);
  flex-shrink: 0;
}

.xb-sidebar__head h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
}

.xb-sidebar__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xb-sidebar__menu li {
  border-bottom: 1px solid #f0f0f0;
}

.xb-sidebar__menu li:last-child {
  border-bottom: none;
}

.xb-sidebar__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  color: #555;
  font-size: 16px;
  transition: color 0.3s, background 0.3s;
}

.xb-sidebar__menu a::before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ccc;
  font-size: 13px;
}

.xb-sidebar__menu a:hover,
.xb-sidebar__menu a.active {
  color: var(--primary);
  background: #fafafa;
}

.xb-sidebar__menu a.active::before {
  color: var(--primary);
}

.xb-news-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.xb-news-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.xb-news-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.xb-news-card__thumb {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.xb-news-card__thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.xb-news-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.xb-news-card:hover .xb-news-card__thumb img {
  transform: scale(1.03);
}

.xb-news-card__body {
  padding: 24px;
}

.xb-news-card__body h5 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--dark);
}

.xb-news-card__body h5 a {
  color: inherit;
}

.xb-news-card__body h5 a:hover {
  color: var(--primary);
}

.xb-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #888;
}

.xb-news-card__meta span,
.xb-news-card__meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #888;
}

.xb-news-card__meta i {
  color: var(--primary);
}

.xb-news-card__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #888;
}

.xb-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.xb-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  color: #555;
  font-size: 15px;
  transition: 0.3s;
}

.xb-pagination a:hover,
.xb-pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/*** Content Page (Detail / Single Page) ***/
.xb-content-page {
  padding: 30px 50px 80px;
}

.xb-content-page__inner {
  max-width: 860px;
  margin: 0 auto;
}

.xb-content-page__inner--wide {
  max-width: none;
  margin: 0;
}

.xb-content-page__inner--wide .xb-content-page__title {
  text-align: left;
}

.xb-content-page__inner--wide .xb-content-page__meta {
  justify-content: flex-start;
}

.xb-content-page__inner--sidebar .xb-content-page__title {
  text-align: left;
  margin-bottom: 20px;
}

.xb-content-page__inner--sidebar .xb-content-page__title h1 {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .xb-content-page .row > .col-lg-9 {
    padding-left: 48px;
  }
}

.xb-content-page__title {
  text-align: center;
  margin-bottom: 24px;
}

.xb-content-page__title h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

.xb-content-page__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #888;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.xb-content-page__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.xb-content-page__meta i {
  color: var(--primary);
}

.xb-content-page__body {
  font-size: 16px;
  line-height: 1.85;
  color: #555;
}

.xb-content-page__body p {
  margin-bottom: 1.25rem;
}

.xb-content-page__body img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

@media (max-width: 991px) {
  .xb-news-card__thumb {
    width: 140px;
  }
}

@media (max-width: 575px) {
  .xb-news-list-page,
  .xb-content-page {
    padding: 40px 20px 60px;
  }

  .xb-news-card__thumb {
    width: 110px;
  }

  .xb-news-card__body {
    padding: 14px 16px;
  }

  .xb-news-card__body h5 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .xb-news-card__meta {
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
  }

  .xb-news-card__body p {
    font-size: 13px;
    line-height: 1.6;
  }

  .xb-content-page__title h1 {
    font-size: 1.5rem;
  }
}

/*** About Page: Certificates / Experts / Advantages ***/
.xb-about-section--light {
  background: #f9f9f9;
}

.xb-about-section__subtitle {
  color: #666;
  font-size: 15px;
  margin-top: 12px;
}

.xb-section-title--bar .xb-section-title__bar {
  display: block;
  width: 50px;
  height: 3px;
  margin: 0 auto 16px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0,
    var(--primary) 6px,
    transparent 6px,
    transparent 10px
  );
}

.xb-card-slider {
  position: relative;
  padding: 0 48px;
}

.xb-card-grid > [class*="col-"] {
  display: flex;
}

.xb-card-grid .xb-profile-card {
  width: 100%;
}

.xb-card-slider__viewport {
  overflow: hidden;
}

.xb-card-slider__track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.xb-card-slider__item {
  flex: 0 0 calc(25% - 18px);
  min-width: 0;
}

.xb-card-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, opacity 0.3s;
}

.xb-card-slider__btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}

.xb-card-slider__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.xb-card-slider__btn--prev {
  left: 0;
}

.xb-card-slider__btn--next {
  right: 0;
}

.xb-profile-card {
  position: relative;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: box-shadow 0.35s ease;
  height: 100%;
}

.xb-profile-card::before,
.xb-profile-card::after {
  content: "";
  position: absolute;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.35s ease, width 0.35s ease, height 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.xb-profile-card::before {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
}

.xb-profile-card::after {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
}

.xb-profile-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.xb-profile-card:hover::before,
.xb-profile-card:hover::after {
  opacity: 1;
  width: calc(100% + 20px);
}

.xb-profile-card__media {
  position: relative;
  padding: 32px 24px 0;
}

.xb-profile-card__media img {
  width: 100%;
  /* max-width: 214px; */
  height: 254px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

.xb-profile-card__zoom {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.xb-profile-card__zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}

.xb-profile-card__zoom:hover .xb-profile-card__zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.xb-profile-card__body {
  padding: 20px 20px 28px;
}

.xb-profile-card__body h5 {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.xb-profile-card__body span {
  display: block;
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

.xb-about-section--process {
  background: #fff;
  padding-bottom: 100px !important;
}

.xb-advantage-grid {
  margin-top: 10px;
}

.xb-advantage-grid > [class*="col-"] {
  display: flex;
}

.xb-advantage-item {
  width: 100%;
  padding: 30px 24px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.xb-advantage-item__icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #f9eaea;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}

.xb-advantage-item__icon i {
  font-size: 46px;
  color: var(--primary);
}

.xb-advantage-item:hover .xb-advantage-item__icon {
  border-color: var(--primary);
}

.xb-advantage-item h5 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
}

.xb-advantage-item p {
  font-size: 15px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 0;
}

.xb-lightbox-modal {
  border: none;
  background: transparent;
  position: relative;
}

.xb-lightbox-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  z-index: 2;
  filter: invert(1);
  opacity: 0.85;
}

.xb-lightbox-modal .modal-body img {
  display: block;
  max-height: 80vh;
  object-fit: contain;
  background: #fff;
}

.xb-lightbox-modal__caption {
  padding: 12px 16px;
  background: #fff;
  text-align: center;
  font-size: 15px;
  color: var(--dark);
}

@media (max-width: 1199px) {
  .xb-card-slider__item {
    flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 991px) {
  .xb-card-slider__item {
    flex: 0 0 calc(50% - 12px);
  }

  .xb-card-slider {
    padding: 0 40px;
  }
}

@media (max-width: 575px) {
  .xb-card-slider__item {
    flex: 0 0 calc(100% - 0px);
  }

  .xb-card-slider {
    padding: 0 36px;
  }

  .xb-card-slider__btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .xb-profile-card__media img {
    max-width: 180px;
    height: 180px;
  }

  .xb-advantage-item__icon {
    width: 100px;
    height: 100px;
  }

  .xb-advantage-item__icon i {
    font-size: 38px;
  }
}

