.modal-slide-in {
  -webkit-animation: slideInDown 0.5s ease both;
  animation: slideInDown 0.5s ease both;
}

.modal-slide-out {
  -webkit-animation: slideOutUp 0.5s ease both;
  animation: slideOutUp 0.5s ease both;
}

@-webkit-keyframes slideInDown {
  from { -webkit-transform: translateY(-100%); transform: translateY(-100%); }
  to { -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes slideInDown {
  from { -webkit-transform: translateY(-100%); transform: translateY(-100%); }
  to { -webkit-transform: translateY(0); transform: translateY(0); }
}

@-webkit-keyframes slideOutUp {
  from { -webkit-transform: translateY(0); transform: translateY(0); }
  to { -webkit-transform: translateY(-100%); transform: translateY(-100%); }
}
@keyframes slideOutUp {
  from { -webkit-transform: translateY(0); transform: translateY(0); }
  to { -webkit-transform: translateY(-100%); transform: translateY(-100%); }
}
/* Blue Ribbon Styling */
/*----------- Globals -----------*/
/* Disable outline */
:focus {
  outline: none;
}

::-moz-focus-inner {
  border: 0;
}

/* Body */
body {
  background-color: #E2E8F0;
  color: #334155;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.95;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

html.scrollbar-hidden,
body.scrollbar-hidden {
  overflow: hidden !important;
}

/* Typography */
i.icon {
  line-height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: #0F172A;
}

b {
  font-weight: bold;
}

/* Other elements */
a {
  transition: all 0.15s ease-in-out;
}

a:hover,
a:focus {
  text-decoration: none;
}

hr {
  border-top: 3px solid #E2E8F0;
  margin: 0;
}

.anchor-basic {
  color: #FFFFFF !important;
}

.anchor-basic:hover,
.anchor-basic:focus {
  color: #94A3B8 !important;
}

/* Buttons */
.button-main {
  background-color: #1E3A8A;
  border: 1px solid #1E3A8A;
  border-radius: 30px;
  color: #FFFFFF;
  font-size: 14px;
  padding: 10px 35px;
  transition: all 0.3s ease;
}

.button-main:hover {
  background-color: #3B82F6;
  border-color: #3B82F6;
  color: #FFFFFF;
}

.button-main:focus {
  background-color: #3B82F6;
  border: 1px solid #3B82F6;
  box-shadow: none;
}

.button-main.button-scheme {
  background-color: transparent;
  color: #1E3A8A;
  border-color: #1E3A8A;
}

.button-main.button-scheme:hover {
  background-color: #1E3A8A;
  color: #FFFFFF;
  border-color: #1E3A8A;
}

/* Helpers */
.rc-mb-0 {
  margin-bottom: 0 !important;
}

/* Overlay background */
.element-cover-bg {
  background-color: rgba(15, 23, 42, 0.85);
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.element-cover-bg:before {
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

/* Animations */
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}

@-webkit-keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.fadeOut {
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut;
}

@-webkit-keyframes overlayEffectUp {
  0% {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
  }

  35%,
  65% {
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
  }

  100% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }
}

@keyframes overlayEffectUp {
  0% {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
  }

  35%,
  65% {
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
  }

  100% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }
}

@-webkit-keyframes overlayEffectDown {
  0% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  35%,
  65% {
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
  }

  100% {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
  }
}

@keyframes overlayEffectDown {
  0% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  35%,
  65% {
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
  }

  100% {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
  }
}

/* General styles */
.f-basis-100 {
  -ms-flex-preferred-size: 100%;
  flex-basis: 100%;
}

.content-title {
  line-height: 1.5;
  margin-bottom: 12px;
}

.tns-nav {
  margin: 10px 0;
  text-align: center;
}

.tns-nav>[aria-controls] {
  background: #ddd;
  border: 0;
  border-radius: 50%;
  height: 9px;
  margin: 0 5px;
  padding: 0;
  width: 9px;
}

.tns-nav>.tns-nav-active {
  background: #94A3B8;
}

.lity {
  z-index: 99990;
}

.lity-wrap {
  z-index: 99990;
}

.lity-loader {
  z-index: 99991;
}

.lity-container {
  z-index: 99992;
}

.lity-content {
  z-index: 99993;
}

.lity-close,
.lity-close:hover,
.lity-close:focus,
.lity-close:active,
.lity-close:visited {
  z-index: 99994;
}

.lity {
  transition: opacity 0.15s ease;
}

.lity-loader {
  transition: opacity 0.15s ease;
}

.lity-content {
  transition: -webkit-transform 0.15s ease;
  transition: transform 0.15s ease;
  transition: transform 0.15s ease, -webkit-transform 0.15s ease;
}

.lity-close {
  -ms-flex-direction: column;
  -ms-flex-pack: justify;
  -ms-flex-pack: center;
  cursor: pointer;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  height: 19px;
  justify-content: space-between;
  justify-content: center;
  position: relative;
  position: fixed;
  right: 25px;
  top: 25px;
  width: 30px;
  width: 22px;
}

.lity-close .btn-line,
.lity-close:before,
.lity-close:after {
  -ms-flex-item-align: end;
  align-self: flex-end;
  background-color: #0F172A;
  height: 3px;
  width: 100%;
}

.lity-close:before {
  content: '';
  width: 85%;
}

.lity-close:after {
  content: '';
}

.lity-close .btn-line {
  width: 55%;
}

.lity-close .btn-line,
.lity-close:before,
.lity-close:after {
  background-color: #0F172A;
  position: absolute;
  width: 100%;
}

.lity-close .btn-line {
  display: none;
}

.lity-close:before {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.lity-close:after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.lity-close:active {
  top: 25px;
}

.lity-close .btn-line,
.lity-close:before,
.lity-close:after {
  background-color: #0F172A;
  height: 2px;
}

@media (max-width: 575.98px) {
  .lity-close {
    right: 15px;
  }
}

/* Removed overlay-effect animations to avoid double background; content animates itself */

.lightbox-wrapper {
  background-color: #FFFFFF;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  max-height: 100vh;
}

/* Background video for horses section */
#horses.lightbox-wrapper {
  position: relative;
  overflow: auto;
  background-color: #E2E8F0;
}

.lightbox-wrapper .lightbox-close {
  position: fixed;
  right: 4vw;
  top: 35px;
  z-index: 99;
}

.lightbox-wrapper .lightbox-close .close-btn {
  -ms-flex-direction: column;
  -ms-flex-pack: justify;
  -ms-flex-pack: center;
  cursor: pointer;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  height: 19px;
  justify-content: space-between;
  justify-content: center;
  position: relative;
  width: 30px;
}

.lightbox-wrapper .lightbox-close .close-btn .btn-line,
.lightbox-wrapper .lightbox-close .close-btn:before,
.lightbox-wrapper .lightbox-close .close-btn:after {
  -ms-flex-item-align: end;
  align-self: flex-end;
  background-color: #0F172A;
  height: 3px;
  width: 100%;
}

.lightbox-wrapper .lightbox-close .close-btn:before {
  content: '';
  width: 85%;
}

.lightbox-wrapper .lightbox-close .close-btn:after {
  content: '';
}

.lightbox-wrapper .lightbox-close .close-btn .btn-line {
  width: 55%;
}

.lightbox-wrapper .lightbox-close .close-btn .btn-line,
.lightbox-wrapper .lightbox-close .close-btn:before,
.lightbox-wrapper .lightbox-close .close-btn:after {
  background-color: #0F172A;
  position: absolute;
  width: 100%;
}

.lightbox-wrapper .lightbox-close .close-btn .btn-line {
  display: none;
}

.lightbox-wrapper .lightbox-close .close-btn:before {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.lightbox-wrapper .lightbox-close .close-btn:after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.lightbox-wrapper .lightbox-close .close-btn .btn-line,
.lightbox-wrapper .lightbox-close .close-btn:before,
.lightbox-wrapper .lightbox-close .close-btn:after {
  background-color: #0F172A;
  height: 2px;
}

.lightbox-wrapper .simplebar-track.simplebar-vertical {
  width: 13px;
}

.lightbox-wrapper .simplebar-track.simplebar-vertical .simplebar-scrollbar {
  right: 1px;
  width: 9px;
}

.lightbox-wrapper .simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
  background: #d0d0d0;
}

.lightbox-wrapper .lightbox-content {
  margin: 70px 0;
  padding-bottom: 100px;
  min-height: calc(100vh + 1px);
}

.lightbox-wrapper .lightbox-content .single-section:not(:last-child) {
  margin-bottom: 120px;
}

.lightbox-wrapper .lightbox-content .section-heading {
  margin-bottom: 50px;
  text-align: left;
}

.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 960px;
  width: calc(100% - 32px);
  background: #0F172A;
  color: #E2E8F0;
  padding: 16px 18px;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  z-index: 99999;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.cookie-banner__text {
  flex: 1 1 280px;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-banner .cookie-btn {
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 999px;
}

.cookie-banner .policy-btn {
  background: transparent;
  color: #E2E8F0;
  border-color: rgba(226, 232, 240, 0.65);
}

.cookie-banner .policy-btn:hover,
.cookie-banner .policy-btn:focus {
  color: #0F172A;
  background: #E2E8F0;
}

.cookie-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 575.98px) {
  .cookie-banner {
    padding: 14px;
    gap: 10px;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.lightbox-wrapper .lightbox-content .section-heading>.section-title {
  display: inline-block;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.25px;
  line-height: 100%;
  margin-bottom: 0;
  position: relative;
  z-index: 9;
}

.lightbox-wrapper .lightbox-content .section-heading.page-heading {
  margin-bottom: 83px;
  text-align: center;
}

.lightbox-wrapper .lightbox-content .section-heading.page-heading>.section-title {
  font-size: 46px;
  margin-bottom: 37px;
}

.lightbox-wrapper .lightbox-content .section-heading.page-heading>.animated-bar {
  background-color: #CBD5E1;
  content: '';
  display: block;
  height: 18px;
  left: 0;
  margin: 0 auto 0 auto;
  position: relative;
  right: 0;
  width: 250px;
  overflow: hidden;
}

.lightbox-wrapper .lightbox-content .section-heading.page-heading>.animated-bar:before,
.lightbox-wrapper .lightbox-content .section-heading.page-heading>.animated-bar:after {
  -webkit-animation-duration: 8s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  background-color: transparent;
  background-image: url("../img/horse_animated.gif");
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  height: 16px;
  position: absolute;
  top: 0;
  width: 16px;
}

.lightbox-wrapper .lightbox-content .section-heading.page-heading>.animated-bar:before {
  left: 0;
  -webkit-animation-name: barAnimation;
  animation-name: barAnimation;
}

.lightbox-wrapper .lightbox-content .section-heading.page-heading>.animated-bar:after {
  left: 0;
  -webkit-animation-name: barAnimation;
  animation-name: barAnimation;
  -webkit-animation-delay: -0.5s;
  animation-delay: -0.5s;
}

@-webkit-keyframes barAnimation {
  0% {
    -webkit-transform: translateX(250px);
    transform: translateX(250px);
  }

  100% {
    -webkit-transform: translateX(-16px);
    transform: translateX(-16px);
  }
}

@keyframes barAnimation {
  0% {
    -webkit-transform: translateX(250px);
    transform: translateX(250px);
  }

  100% {
    -webkit-transform: translateX(-16px);
    transform: translateX(-16px);
  }
}


.lightbox-wrapper .lightbox-content .section-heading>.section-description {
  font-size: 15px;
  margin-bottom: 17px;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .lightbox-wrapper .lightbox-content .single-section:not(:last-child) {
    margin-bottom: 100px;
  }

  .lightbox-wrapper .lightbox-content .section-heading>.section-title {
    font-size: 36px;
  }

  .lightbox-wrapper .lightbox-content .section-heading>.section-description {
    font-size: 14px;
  }

  .lightbox-wrapper .lightbox-content .section-heading.page-heading>.section-title {
    font-size: 42px;
  }
}

@media (max-width: 767.98px) {
  .lightbox-wrapper .lightbox-content .section-heading>.section-description {
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 575.98px) {
  .lightbox-wrapper .lightbox-content .section-heading>.section-title {
    font-size: 34px;
  }

  .lightbox-wrapper .lightbox-content .section-heading.page-heading>.section-title {
    font-size: 36px;
  }
}

/*----------- Preloader lightbox -----------*/
.preloader {
  background-color: #E2E8F0;
  height: 100%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99999;
}

.preloader .preloader-block {
  -webkit-transform: translate(50%, 50%);
  bottom: 50%;
  position: fixed;
  right: 50%;
  transform: translate(50%, 50%);
  z-index: 3000;
}

.preloader .preloader-block .preloader-icon .loading-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M5.2 14.6c-.3.2-.5.5-.5.8c0 .4.3.7.7.7h.4l2.1-.6l1.1 1.2c.5.6 1.3.8 2.1.8h1.7a2 2 0 0 0 1.9-1.3l.5-1.2c.1-.3.2-.6.2-.8c0-.3-.1-.6-.3-.9l-1.2-1.6c.5-.3.8-.8.8-1.4c0-.3-.1-.7-.3-1l-.5-.8l.6-.9c.3-.5.2-1.1-.3-1.4a1 1 0 0 0-1.4.3l-.7 1.1l-.8-.1l-1.7-1.5a1 1 0 0 0-.7-.3H8.6l-.3-1c-.1-.3-.4-.6-.8-.6c-.5 0-.9.4-.9.9v1.9c0 .3.1.6.3.8l1 1.1l-1.9 2.4l-1 .5c-.3.2-.5.5-.5.9c0 .5.4 1 .9 1c.3 0 .5-.1.8-.3l1.4-.9l.5.9Z'/%3E%3C/svg%3E");
}

.preloader .preloader-block .preloader-icon .loading-dot.loading-dot-1 {
  -webkit-animation: 1.2s grow ease-in-out infinite;
  animation: 1.2s grow ease-in-out infinite;
}

.preloader .preloader-block .preloader-icon .loading-dot.loading-dot-2 {
  -webkit-animation: 1.2s grow ease-in-out infinite 0.15555s;
  animation: 1.2s grow ease-in-out infinite 0.15555s;
  margin: 0 14px;
}

.preloader .preloader-block .preloader-icon .loading-dot.loading-dot-3 {
  -webkit-animation: 1.2s grow ease-in-out infinite 0.3s;
  animation: 1.2s grow ease-in-out infinite 0.3s;
}

@-webkit-keyframes grow {

  0%,
  40%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes grow {

  0%,
  40%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

/*----------  Navbar  ----------*/
.navbar {
  background-color: transparent;
  padding: 23px 80px 23px 50px;
}

.navbar .navbar-brand span {
  color: #FFFFFF;
  text-transform: uppercase;
}

.navbar .navbar-brand img {
  width: 211px;
}

.navbar .navbar-brand svg {
  width: 211px;
}

.navbar .navbar-brand svg #logo-text {
  fill: #FFFFFF;
}

.navbar .navbar-menu {
  display: none;
}

.navbar .navbar-nav {
  margin-left: 10px;
}

.navbar .navbar-nav .nav-link {
  color: #FFFFFF;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 0 10px 0 0;
}

.navbar .navbar-nav .nav-item:not(:last-child) .nav-link {
  margin-right: 42px;
}

.navbar .navbar-nav .nav-item.nav-social .nav-link {
  font-size: 21.6px;
  padding-left: 10px;
  padding-right: 0;
}

/* Tighter spacing only between social icons */
.navbar .navbar-nav .nav-item.nav-social:not(:last-child) .nav-link {
  margin-right: 14px;
}

.navbar .navbar-nav .nav-item.nav-social .nav-link i {
  line-height: 1;
  vertical-align: middle;
}

.navbar .navbar-nav {
  margin-left: 10px;
}

@media (max-width: 767.98px) {
  .navbar {
    padding: 50px 50px 23px 23px;
  }

  .navbar .navbar-brand img {
    width: 173px;
  }

  .navbar .navbar-menu {
    -ms-flex-direction: column;
    -ms-flex-pack: justify;
    cursor: pointer;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    height: 19px;
    justify-content: space-between;
    position: relative;
    width: 30px;
    gap: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .navbar .navbar-menu .btn-line,
  .navbar .navbar-menu:before,
  .navbar .navbar-menu:after {
    -ms-flex-item-align: end;
    align-self: flex-end;
    background-color: #FFFFFF;
    height: 3px;
    width: 100%;
    border-radius: 0;
  }

  .navbar .navbar-menu:before {
    content: '';
    width: 85%;
  }

  .navbar .navbar-menu:after {
    content: '';
    width: 100%;
  }

  .navbar .navbar-menu .btn-line {
    width: 55%;
  }

  .navbar .navbar-collapse .navbar-nav {
    background: rgba(15, 23, 42, 0.9);
    padding: 14px 18px;
    position: relative;
    top: 10px;
    width: 200px;
    max-width: calc(100vw - 60px);
    z-index: 2;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    align-items: flex-end;
    text-align: right;
  }

  .navbar .navbar-collapse .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    letter-spacing: 0.35px;
    padding: 8px 2px;
    white-space: nowrap;
    transition: color 0.2s ease;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .navbar .navbar-collapse .navbar-nav .nav-link:hover,
  .navbar .navbar-collapse .navbar-nav .nav-link:focus {
    color: #93C5FD;
  }

  .navbar .navbar-collapse .navbar-nav .nav-item.nav-social .nav-link {
    padding-left: 0;
    justify-content: flex-end;
  }

  .navbar .navbar-collapse .navbar-nav .nav-item.nav-social:not(:last-child) .nav-link {
    margin-right: 0;
  }
}

@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
  .navbar .navbar-brand svg {
    height: 48px;
  }
}

/*----------- Home -----------*/
.home-area {
  background-color: #E2E8F0;
  background-position: center center;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  position: relative;
}

.home-area:before {
  background-color: rgba(15, 23, 42, 0.4);
}

.home-area .fixed-wrapper {
  margin: 0 50px;
  position: relative;
}

.home-area .fixed-wrapper .fixed-block {
  bottom: 34px;
  position: absolute;
}

.home-area .fixed-wrapper .fixed-block.block-left {
  left: 0;
}

.home-area .fixed-wrapper .fixed-block.block-right {
  right: 0;
}

.home-area .fixed-wrapper .languages-list {
  margin-bottom: 0;
}

.home-area .fixed-wrapper .languages-list .single-language {
  -webkit-transform: rotate(90deg);
  color: #FFFFFF;
  display: block;
  margin-top: 20px;
  text-transform: uppercase;
  transform: rotate(90deg);
}

.home-area .fixed-wrapper .social-icons {
  margin-bottom: 0;
}

.home-area .fixed-wrapper .social-icons>li {
  line-height: 100%;
  margin-top: 14px;
  text-align: center;
}

.home-area .fixed-wrapper .social-icons i.icon {
  color: #FFFFFF;
  font-size: 23px;
  line-height: 100%;
}

.home-area .home-name {
  color: #fff;
  font-size: 70px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 34px;
}

.home-area .home-headline {
  color: #fff;
  font-size: 25.6px;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 0;
}

.home-area .home-headline .single-headline {
  display: inline-block;
  position: relative;
  text-align: left;
  vertical-align: top;
}

.home-area .home-headline .single-headline::after {
  background-color: #b9b9b9;
  content: '';
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
}

.home-area .home-headline .single-headline b {
  display: inline-block;
  font-weight: 400;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.home-area .home-headline .single-headline b.is-visible {
  opacity: 1;
  position: relative;
}


.home-area.video-variant::before {
  background-color: rgba(15, 23, 42, 0.7);
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

.home-area.video-variant .background-video {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.home-logo {
  position: absolute;
  top: 26px;
  left: 32px;
  z-index: 3;
}

.home-logo img {
  width: 180px;
  height: auto;
}

/* Sticky bar for lightboxes (desktop) */
.lightbox-sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.15);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 1200;
}

.lightbox-sticky-bar.visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-sticky-bar .sticky-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: auto;
  min-width: 0;
  opacity: 0;
  transition: opacity 0.25s ease, height 0.2s ease;
}

.lightbox-sticky-bar .sticky-logo img {
  height: 100%;
  width: auto;
}

.lightbox-sticky-bar .sticky-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-sticky-bar .sticky-close {
  margin-left: 0;
  background: transparent;
  border: none;
  color: inherit;
  width: 30px;
  height: 19px;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.2s ease;
  opacity: 0;
  position: fixed;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-sticky-bar .sticky-close:hover {
  background: rgba(15, 23, 42, 0.06);
}

.lightbox-sticky-bar .sticky-close:focus {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

.lightbox-sticky-bar .sticky-close span,
.lightbox-sticky-bar .sticky-close:before,
.lightbox-sticky-bar .sticky-close:after {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #0F172A;
  content: '';
}

.lightbox-sticky-bar .sticky-close span { display: none; }

.lightbox-sticky-bar .sticky-close:before {
  transform: rotate(45deg);
}

.lightbox-sticky-bar .sticky-close:after {
  transform: rotate(-45deg);
}

.lightbox-wrapper.sticky-active .section-heading .section-description,
.lightbox-wrapper.sticky-active .section-heading .animated-bar,
.lightbox-wrapper.sticky-active .section-heading .section-title,
.lightbox-wrapper.sticky-active .lightbox-logo {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.lightbox-wrapper.sticky-active .lightbox-close {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-wrapper.sticky-active .lightbox-content {
  padding-top: 0;
  scroll-margin-top: 80px;
}

@media (min-width: 992px) {
  .lightbox-wrapper .simplebar-content {
    scroll-padding-top: 110px;
  }
}

.lightbox-sticky-bar.visible .sticky-logo,
.lightbox-sticky-bar.visible .sticky-title,
.lightbox-sticky-bar.visible .sticky-close {
  opacity: 1;
}

.lightbox-sticky-bar {
  padding-right: 4vw;
  padding-left: 14px;
}

.lightbox-sticky-bar .sticky-logo { transition-delay: 0.05s; }
.lightbox-sticky-bar .sticky-title { transition-delay: 0.09s; }
.lightbox-sticky-bar .sticky-close { transition-delay: 0.12s; }

/* Floating logos for detail pages (desktop), hidden on mobile */
.page-logo {
  position: fixed;
  top: 23px;
  left: 50px;
  z-index: 100;
  margin-bottom: 0;
}

.page-logo img {
  width: 211px;
  height: auto;
}

.page-logo a {
  display: block;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .home-area.video-variant .background-video {
    object-position: 60% center;
  }

  .home-logo {
    left: 20px;
    top: 20px;
  }

  .home-logo img {
    width: 162px;
  }

  /* Hide floating logos on mobile */
  .page-logo {
    display: none;
  }

  /* Hide sticky bars on mobile */
  .lightbox-sticky-bar {
    display: none !important;
  }

  /* Subtle glow for mobile close button */
  .lightbox-wrapper .lightbox-close .close-btn {
    box-shadow: none;
    border-radius: 0;
  }
}

.home-area.video-variant .container,
.home-area.video-variant .fixed-wrapper {
  position: relative;
  z-index: 2;
}

.home-overlay-credit {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #E2E8F0;
  font-size: 12px;
  text-align: center;
  width: 100%;
  pointer-events: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-logo {
  display: none;
}

.page-footer-credit,
.global-footer-credit {
  text-align: center;
  color: #475569;
  font-size: 12px;
  margin: 28px 0 18px;
}

.page-footer-credit a,
.home-overlay-credit a,
.global-footer-credit a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .home-area .home-name {
    font-size: 62px;
  }

  .home-area .home-headline {
    font-size: 24px;
  }
}

@media (max-width: 767.98px) {
  .home-area .fixed-wrapper {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .home-area {
    background-position: 62% center;
  }

  .home-area .home-name {
    font-size: 48px;
  }

  .home-area .home-headline {
    font-size: 20.8px;
  }
}

/*----------- About lightbox -----------*/
/* About: Info */
.info-section .info-img img {
  background-color: transparent;
  border-color: #E2E8F0;
  width: 430px;
}

/* Center the left image vertically in its column */
.info-section .info-img {
  display: flex;
  align-items: center;
}

.info-section .info-content .content-subtitle {
  font-size: 24px;
  margin-bottom: 15px;
}

.info-section .info-content .content-title {
  font-size: 31px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
}

.info-section .info-content .content-description {
  font-size: 15px;
}

.info-section .info-content .content-description p:last-child {
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 0;
  padding-bottom: 29px;
}

.info-section .info-content .content-info {
  font-size: 15px;
  margin-bottom: 4px;
  padding: 29px 0;
}

.info-section .info-content .content-info>.row:last-child .single-info {
  margin-bottom: 0;
}

.info-section .info-content .content-info .single-info {
  margin-bottom: 10px;
}

.info-section .info-content .content-info .single-info>span {
  color: #dadada;
  font-weight: 400;
  margin-right: 10px;
}

.info-section .info-content .content-info .single-info>p {
  display: inline-block;
  margin-bottom: 0;
}

.info-section .info-content .content-download {
  margin-right: 23px;
}

.info-section .info-content .content-follow {
  -ms-flex-align: center;
  align-items: center;
  display: inline-block;
  display: -ms-flexbox;
  display: flex;
  line-height: 100%;
  margin-bottom: 0;
}

.info-section .info-content .content-follow:before {
  background-color: rgba(255, 255, 255, 0.25);
  content: '';
  height: 2px;
  margin-right: 23px;
  width: 60px;
}

.info-section .info-content .content-follow li {
  font-size: 21px;
}

.info-section .info-content .content-follow li:not(last-child) {
  margin-right: 14px;
}

.info-section .info-content .content-follow li a {
  color: #94A3B8;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .info-section .info-img img {
    -o-object-fit: cover;
    height: 440px;
    object-fit: cover;
  }

  .info-section .info-content .content-subtitle {
    display: none;
  }

  .info-section .info-content .content-title {
    font-size: 26px;
  }

  .info-section .info-content .content-description {
    font-size: 14px;
  }

  .info-section .info-content .content-description p:last-child {
    padding-bottom: 20px;
  }

  .info-section .info-content .content-info {
    font-size: 14px;
    padding: 20px 0;
  }
}

@media (max-width: 991.98px) {
  .info-section .info-img img {
    -o-object-fit: cover;
    border-radius: 50%;
    display: block;
    height: 250px;
    margin: 0 auto 40px auto;
    object-fit: cover;
    width: 250px;
  }

  .info-section .info-content .content-subtitle {
    font-size: 18px;
  }

  .info-section .info-content .content-title {
    font-size: 26px;
  }

  .info-section .info-content .content-description {
    font-size: 14px;
  }

  .info-section .info-content .content-description p:last-child {
    padding-bottom: 24px;
  }

  .info-section .info-content .content-info {
    font-size: 14px;
    margin-bottom: 0;
    padding: 24px 0;
  }
}

@media (max-width: 767.98px) {
  .info-section .info-img img {
    height: 200px;
    width: 200px;
  }

  .info-section .info-content .content-info>.row:last-child .single-info {
    margin-bottom: 10px;
  }

  .info-section .info-content .content-info .single-info {
    display: block;
    margin-bottom: 10px;
    width: auto;
  }
}

@media (max-width: 575.98px) {
  .info-section {
    padding-bottom: 51px;
  }

  .info-section .info-img img {
    margin: 0 auto 32px auto;
  }

  .info-section .info-content .content-subtitle {
    font-size: 18px;
  }

  .info-section .info-content .content-title {
    font-size: 22px;
  }

  .info-section .info-content .content-download {
    margin-bottom: 27px;
  }
}

/* About: Services */
.services-section .single-service {
  background-color: #FFFFFF;
  border-bottom: 2px solid transparent;
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  padding: 38px 42px;
  transition: all 0.15s ease-in-out;
}

.services-section .single-service .service-icon {
  display: inline-block;
  font-size: 58px;
  margin-bottom: 22px;
}

.services-section .single-service .service-title {
  color: #0F172A;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.services-section .single-service .service-description {
  margin-bottom: 0;
}

/* About: Testimonials */
.testimonials-section .single-review {
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  background-color: #FFFFFF;
  padding: 48px 40px;
  text-align: left;
  user-select: none;
}

.testimonials-section .single-review .review-header {
  margin-bottom: 23px;
}

.testimonials-section .single-review .review-client {
  -ms-flex-direction: row;
  flex-direction: row;
  text-align: left;
}

.testimonials-section .single-review .review-client .client-avatar {
  margin-right: 14px;
  width: 54px;
}

.testimonials-section .single-review .review-client .client-details {
  -ms-flex-item-align: center;
  align-self: center;
  line-height: 100%;
}

.testimonials-section .single-review .review-client .client-name {
  color: #0F172A;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 7px;
}

.testimonials-section .single-review .review-client .client-role {
  color: #888;
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
}

.testimonials-section .single-review .review-icon {
  display: inline-block;
  font-size: 50px;
}

.testimonials-section .single-review .review-content {
  font-size: 15px;
  margin-bottom: 0;
}

.testimonials-section .tns-outer {
  position: relative;
}

.testimonials-section .tns-nav {
  margin-bottom: 0;
  margin-top: 30px;
}

@media (max-width: 991.98px) {
  .testimonials-section .single-review {
    padding: 45px 40px;
  }

  .testimonials-section .single-review .review-client .client-avatar {
    width: 50px;
  }

  .testimonials-section .single-review .review-client .client-role {
    font-size: 13px;
  }

  .testimonials-section .single-review .review-icon {
    display: inline-block;
    font-size: 47px;
  }
}

@media (max-width: 767.98px) {
  .testimonials-section .single-review .review-content {
    font-size: 14px;
  }
}

@media (max-width: 362px) {
  .testimonials-section .single-review .review-icon {
    display: none;
  }
}

/* About: Pricing */
.pricing-section .single-plan {
  background-color: #FFFFFF;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
  padding: 50px 0;
  text-align: center;
}

.pricing-section .single-plan .plan-icon {
  display: inline-block;
  font-size: 54px;
  margin-bottom: 27px;
}

.pricing-section .single-plan .plan-type {
  color: #0F172A;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.pricing-section .single-plan .plan-price {
  color: #f0f0f0;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 22px;
}

.pricing-section .single-plan .plan-list {
  margin-bottom: 18px;
}

.pricing-section .single-plan .plan-list li {
  color: inherit;
  padding: 8px;
}

@media (max-width: 991.98px) {
  .pricing-section .single-plan {
    padding: 50px 0;
  }
}

/*----------- Resume lightbox -----------*/
/* Resume: Resume */
.resume-section .col-block.education {
  margin-right: 20px;
}

.resume-section .col-block.experience {
  margin-left: 20px;
}

.resume-section .col-title {
  font-size: 26px;
  margin-bottom: 20px;
}

.resume-section .resume-item {
  background-color: #FFFFFF;
  border-left: 2px solid transparent;
  padding: 32px 48px;
  position: relative;
}

.resume-section .resume-item:not(:last-child) {
  border-bottom: 1px solid #313131;
}

.resume-section .resume-item:last-child {
  margin-bottom: 0;
}

.resume-section .resume-item .item-arrow {
  left: 0;
  margin-top: 2px;
  position: absolute;
}

.resume-section .resume-item .item-arrow:before,
.resume-section .resume-item .item-arrow:after {
  content: "";
  display: block;
  position: absolute;
}

.resume-section .resume-item .item-arrow:before {
  height: 16px;
  left: 0;
  width: 16px;
}

.resume-section .resume-item .item-arrow:after {
  border: 8px solid transparent;
  left: 16px;
}

.resume-section .resume-item .item-title {
  line-height: 100%;
  margin-bottom: 9px;
}

.resume-section .resume-item .item-details {
  display: inline-block;
  margin-bottom: 7px;
}

.resume-section .resume-item .item-description {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .resume-section .resume-item {
    padding-right: 20px;
  }

  .resume-section .col-block.education,
  .resume-section .col-block.experience {
    margin-left: 0;
    margin-right: 0;
  }

  .resume-section .col-12:last-child .resume-item:last-child {
    margin-bottom: 0;
  }

  .resume-section .col-12:first-child .resume-item:last-child {
    margin-bottom: 60px;
  }
}

/* Resume: Skills */
.skills-section .single-skill:not(:last-child) {
  margin-bottom: 42px;
}

.skills-section .single-skill .skill-info {
  -ms-flex-pack: justify;
  color: #94A3B8;
  display: -ms-flexbox;
  display: flex;
  font-size: 16px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.skills-section .single-skill .skill-info .skill-name {
  display: inline-block;
  margin-right: 12px;
  white-space: nowrap;
}

.skills-section .single-skill .skill-progress {
  background-color: #ffffff;
  border-radius: 1px;
  font-size: 15px;
  height: 9px;
  overflow: visible;
}

.skills-section .single-skill .skill-progress .progress-bar {
  border-bottom-left-radius: 1px;
  border-top-left-radius: 1px;
}

@media (max-width: 767.98px) {
  .skills-section .single-skill:not(:last-child) {
    margin-bottom: 40px !important;
  }

  .skills-section [class*='col-']:not(:last-child) .single-skill {
    margin-bottom: 40px !important;
  }
}

/* Resume: Video */
.video-section .content-part .video-title {
  font-size: 31px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 13px;
}

.video-section .content-part .video-description {
  font-size: 16px;
  line-height: 2;
}

.video-section .content-part .video-description:last-child {
  margin-bottom: 0;
}

.video-section .video-part .embed-responsive-item {
  background-color: #FFFFFF;
}

.video-section .video-part .embed-responsive-item:before {
  background-color: rgba(15, 23, 42, 0.2);
}

.video-section .video-part .embed-responsive-item,
.video-section .video-part .embed-responsive-item:before {
  border-radius: 3px;
}

.video-section .video-part .embed-responsive-item .play-wrapper {
  -webkit-transform: scale(1);
  background-color: #fff;
  border-radius: 50%;
  bottom: 0;
  display: block;
  height: 56px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  transform: scale(1);
  transition: all 0.1s ease-in-out;
  width: 56px;
}

.video-section .video-part .embed-responsive-item .play-wrapper .icon {
  color: #0F172A;
  display: block;
  font-size: 20px;
  line-height: 58px;
  text-align: center;
}

.video-section .video-part .embed-responsive-item:hover .play-wrapper {
  -webkit-transform: scale(1.075);
  transform: scale(1.075);
}

@media (max-width: 1199.98px) {
  .video-section .content-part .video-title {
    font-size: 30px;
    margin-bottom: 13px;
  }

  .video-section .content-part .video-description {
    font-size: 15px;
  }
}

@media (max-width: 991.98px) {
  .video-section .content-part {
    margin-bottom: 25px;
  }
}

@media (max-width: 767.98px) {
  .video-section .content-part .video-title {
    font-size: 28px;
  }

  .video-section .content-part .video-description {
    font-size: 14px;
  }
}

/*----------- Feeding lightbox -----------*/
/* Feeding: Feeding */
.feeding-section .filter-control {
  margin-bottom: 16px;
  text-align: center;
}

.feeding-section .filter-control>li {
  border-bottom: 1px solid transparent;
  color: #94A3B8;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.3px;
  position: relative;
  transition: all .10s ease-in-out;
}

.feeding-section .filter-control>li:not(:last-child) {
  margin-right: 16px;
}

.feeding-section .filter-control>li:hover,
.feeding-section .filter-control>li.tab-active {
  color: #1E3A8A;
}

.feeding-section .filter-control>li:hover:before,
.feeding-section .filter-control>li.tab-active:before {
  bottom: 0;
  content: "";
  height: 2px;
  position: absolute;
  width: 100%;
  background-color: #1E3A8A;
}

.feeding-section .feeding-grid .feeding-wrapper {
  -ms-flex-align: center;
  align-items: center;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
}

.feeding-section .feeding-grid .feeding-wrapper:before {
  background-color: rgba(15, 23, 42, 0.9);
  bottom: 0;
  content: '';
  height: 100%;
  opacity: 0;
  position: absolute;
  transition: all 0.15s ease-in-out;
  visibility: hidden;
  width: 100%;
  z-index: 1;
}

.feeding-section .feeding-grid .feeding-wrapper>.img-fluid {
  width: 100%;
}

.feeding-section .feeding-grid .feeding-wrapper .item-content {
  left: 0;
  opacity: 0;
  padding: 3px 18px;
  position: absolute;
  text-align: center;
  transition: all 0.15s ease-in-out;
  visibility: hidden;
  width: 100%;
  z-index: 2;
}

.feeding-section .feeding-grid .feeding-wrapper .item-content .content-title {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 10px;
}

.feeding-section .feeding-grid .feeding-wrapper .item-content .content-more {
  display: inline-block;
  font-weight: 600;
}

.feeding-section .feeding-grid .feeding-wrapper:hover:before {
  opacity: 1;
  visibility: visible;
}

.feeding-section .feeding-grid .feeding-wrapper:hover .item-content {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767.98px) {
  .feeding-section .filter-control>li {
    font-size: 14px;
  }
}

@media (max-width: 575.98px) {
  .feeding-section .feeding-grid .feeding-wrapper .item-content .content-title {
    font-size: 14px;
  }
}

/*----------- Blog lightbox -----------*/
/* Blog: Blog */
.blog-section .single-post {
  background-color: transparent;
  border: none;
  margin-bottom: 70px;
}

.blog-section .single-post .post-img {
  height: 100%;
  position: relative;
}

.blog-section .single-post .post-img .content-date {
  bottom: 0;
  color: #fff;
  display: inline-block;
  left: 0;
  padding: 0 14px;
  position: absolute;
}

.blog-section .single-post .post-content {
  padding: 13px 0 0 0;
}

.blog-section .single-post .post-content .content-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1px;
  margin-bottom: 6px;
}

.blog-section .single-post .post-content .content-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .blog-section .single-post {
    margin-bottom: 40px;
  }

  .blog-section .single-post .post-content .content-title {
    font-size: 20px;
  }
}

/*----------- Contact lightbox -----------*/
/* Contact: Contact */
.contact-section address,
.contact-section ul {
  margin: 0;
}

.contact-section .contact-form .content-title {
  margin-bottom: 22px;
}

.contact-section .contact-form .form-group {
  margin-bottom: 25px;
}

.contact-section .contact-form .form-group .form-control {
  background-color: #FFFFFF;
  border: none;
  border-bottom: 1px solid #E2E8F0;
  border-radius: 0;
  font-size: 15px;
  height: 44px;
  padding: 9px 14px;
}

.contact-section .contact-form .form-group .form-control:-webkit-autofill,
.contact-section .contact-form .form-group .form-control:-webkit-autofill:hover,
.contact-section .contact-form .form-group .form-control:-webkit-autofill:focus,
.contact-section .contact-form .form-group .form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #FFFFFF inset;
  -webkit-text-fill-color: #334155 !important;
  -webkit-transition: background-color 5000s ease-in-out 0s;
  transition: background-color 5000s ease-in-out 0s;
}

.contact-section .contact-form .form-group .form-control::-webkit-input-placeholder {
  color: #94A3B8;
}

.contact-section .contact-form .form-group .form-control::-moz-placeholder {
  color: #94A3B8;
}

.contact-section .contact-form .form-group .form-control:-ms-input-placeholder {
  color: #94A3B8;
}

.contact-section .contact-form .form-group .form-control::-ms-input-placeholder {
  color: #94A3B8;
}

.contact-section .contact-form .form-group .form-control,
.contact-section .contact-form .form-group .form-control::placeholder {
  color: #94A3B8;
}

.contact-section .contact-form .form-group .form-control:focus {
  box-shadow: none;
  border-bottom-color: #1E3A8A;
}

.contact-section .contact-form .form-group.form-message #contact-message {
  height: auto;
}

.contact-section .contact-form .form-submit #contact-submit {
  padding: 10px 26px;
}

.contact-section .contact-form .form-submit #contact-submit.wait {
  background-color: #1E3A8A !important;
  border-color: #1E3A8A !important;
}

.contact-section .contact-form .form-submit #contact-submit.success {
  background-color: #7EC4A7 !important;
  border-color: #7EC4A7 !important;
  color: #fff !important;
}

.contact-section .contact-form .form-submit #contact-submit.error {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

.contact-section .contact-form .form-submit .contact-feedback {
  display: none;
  margin: 0;
  margin-top: 8px;
}

.contact-section .contact-form .form-submit .contact-feedback.success {
  color: #7EC4A7;
}

.contact-section .contact-form .form-submit .contact-feedback.error {
  color: #dc3545;
}

.date-error {
  font-size: 12.5px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 6px;
  display: none;
}

.contact-section .contact-info {
  padding-left: 15px;
}

.contact-section .contact-info .info-description {
  font-size: 15px;
  margin-bottom: 28px;
}

.contact-section .contact-info .list-info>li:first-child .info-icon {
  margin-bottom: 13px;
}

.contact-section .contact-info .list-info>li:first-child .info-details {
  padding-top: 0;
}

.contact-section .contact-info .list-info>li:last-child .info-icon {
  margin-top: 13px;
}

.contact-section .contact-info .list-info>li:last-child .info-details {
  padding-bottom: 0;
}

.contact-section .contact-info .list-info .info-icon {
  font-size: 36px;
  margin-right: 50px;
  position: relative;
}

.contact-section .contact-info .list-info .info-icon i {
  -webkit-transform: translate(0, -50%);
  left: 0;
  line-height: 100%;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}

.contact-section .contact-info .list-info .info-details {
  border-left: 2px solid #E2E8F0;
  padding: 12px 0 12px 22px;
}

.contact-section .contact-info .list-info .info-details .info-type {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0;
}

.contact-section .contact-info .list-info .info-details .info-value a {
  color: #1E3A8A !important;
}

.contact-section .contact-info .list-info .info-details .info-value a:hover,
.contact-section .contact-info .list-info .info-details .info-value a:focus {
  color: #3B82F6 !important;
}

@media (max-width: 1199.98px) {
  .contact-section .contact-form .form-group {
    margin-bottom: 35px;
  }
}

@media (max-width: 991.98px) {
  .contact-section .contact-form {
    margin-bottom: 45px;
  }

  .contact-section .contact-info {
    padding-left: 0;
  }
}

@media (max-width: 767.98px) {
  .contact-section .contact-info .info-description {
    font-size: 14px;
  }
}

/*----------- Lightbox Logo -----------*/
.lightbox-logo {
  position: fixed;
  top: 23px;
  left: 50px;
  z-index: 100;
  margin-bottom: 0;
  padding-top: 0;
  pointer-events: none;
}

.lightbox-logo img {
  width: 176px;
  height: auto;
}

.lightbox-logo a {
  display: block;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .lightbox-logo {
    display: none;
  }

  .lightbox-logo img {
    width: 144px;
  }
}

/*----------- Horse Detail Page -----------*/
.horse-detail-page {
  padding: 40px 20px;
  min-height: 100vh;
  background-color: #E2E8F0;
  overflow-y: auto;
  overflow-x: hidden;
}

.horse-detail-content {
  max-width: 1200px;
  margin: 0 auto;
}

.horse-detail-page .horses-section .horse-item {
  display: flex;
  justify-content: center;
}

.horse-detail-page .horses-section .horse-item .row {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.horse-back-button {
  margin-bottom: 20px;
  text-align: left;
}

.horse-back-button .btn {
  padding: 10px 30px;
  font-size: 15px;
  font-weight: 600;
}

/*----------- Horse Thumbnails Grid -----------*/
.horse-thumbnails-grid {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  gap: 0;
  row-gap: 22px;
}

.horse-thumbnail-card {
  background-color: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #E2E8F0;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 350px;
  margin-left: 15px;
  margin-right: 15px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  padding: 12px 12px 18px;
}

@media (min-width: 768px) {
  .horse-thumbnail-card {
    max-width: calc(50% - 30px);
    flex: 0 0 calc(50% - 30px);
  }
}

@media (min-width: 992px) {
  .horse-thumbnail-card {
    max-width: calc(33.333% - 30px);
    flex: 0 0 calc(33.333% - 30px);
  }
}

.horse-thumbnail-card:hover {
  transform: translateY(-5px);
}

.horse-thumbnail-link {
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-bottom: 70%;
  background-color: #F8FAFC;
  border-radius: 12px;
}

.horse-thumbnail-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.horse-thumbnail-card:hover .horse-thumbnail-img {
  transform: scale(1.05);
}

.horse-thumbnail-info {
  padding: 16px 8px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 6px;
}

.horse-thumbnail-line1 {
  font-size: 16px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

.horse-thumbnail-line2 {
  font-size: 14px;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.horse-more-info-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.horse-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.horse-cta-row .btn {
  margin: 0;
}

/*----------- Horses for Sale -----------*/
.horses-section {
  padding: 15px 0;
}

#horses .lightbox-content .single-section:not(:last-child) {
  margin-bottom: 24px;
}

#horses .lightbox-content .single-section:last-child {
  margin-bottom: 0;
}

#horses #horses-list {
  margin-bottom: 40px;
}

.horse-detail-page .horses-section {
  padding: 0;
  margin-top: 0;
}

.horse-item {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.horse-item:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.horse-divider {
  border-top: 1px solid #E2E8F0;
  margin: 30px 0;
}

.horse-detail-page .horse-divider {
  margin: 0 0 20px 0;
}

/* Reduce section heading spacing for horses section */
#horses .section-heading.page-heading {
  margin-bottom: 40px;
}

.horse-images {
  margin-bottom: 30px;
}

.horse-main-image {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  position: relative;
  width: 100%;
  min-height: 0;
  height: 520px;
  background-color: #E2E8F0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.horse-main-video-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  cursor: pointer;
}

.horse-main-video-button i {
  font-size: 28px;
}

.horse-main-image.has-video .horse-main-video-button {
  display: inline-flex;
}

.horse-main-video-button:focus,
.horse-main-video-button:active,
.horse-main-video-button:focus-visible {
  outline: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.horse-main-image:hover {
  transform: scale(1.02);
}

.horse-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.3);
  border: 2px solid #E2E8F0;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
  outline: none;
}

.horse-nav-arrow:focus {
  outline: none;
}

.horse-main-image:hover .horse-nav-arrow {
  opacity: 1;
}

.horse-nav-arrow:hover {
  background: rgba(15, 23, 42, 0.5);
  border-color: #94A3B8;
  transform: translateY(-50%) scale(1.1);
}

.horse-nav-prev {
  left: 15px;
}

.horse-nav-next {
  right: 15px;
}

.horse-nav-arrow i {
  font-size: 24px;
  line-height: 1;
}

.horse-main-image img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
  background-color: #E2E8F0;
}

.horse-main-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Lity lightbox enhancements for horse images */
.lity-image .lity-close {
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  opacity: 1;
  z-index: 99995;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: fixed;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.lity-image .lity-close:before,
.lity-image .lity-close:after {
  background-color: #0F172A;
  height: 2px;
  width: 20px;
  transition: all 0.3s ease;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
}

.lity-image .lity-close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lity-image .lity-close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lity-image .lity-close:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.lity-image .lity-close:hover:before,
.lity-image .lity-close:hover:after {
  background-color: #000;
}

.lity-image .lity-wrap {
  padding: 0;
  background-color: #ffffff;
}

.lity-image .lity-container {
  padding: 0;
}

.lity-image .lity-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background-color: #ffffff;
  position: relative;
}

.lity-image .lity-content img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
  display: block;
}

/* Watermark on enlarged images */

.horse-gallery {
  margin-top: 15px;
}

.horse-thumb {
  display: block;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio - adjust as needed */
  height: 0;
  background-color: #FFFFFF;
}

.horse-thumb:hover,
.horse-thumb.active {
  opacity: 1;
  border-color: #94A3B8;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.horse-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.horse-thumb-video-label {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}

.horse-thumb-video-thumb {
  position: absolute;
  inset: 0;
}

.horse-thumb-video-label {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}

.horse-thumb:hover img {
  transform: scale(1.05) translateZ(0);
}

.horse-details {
  padding-left: 40px;
}

.horse-name {
  font-size: 32px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #E2E8F0;
}

.horse-info {
  margin-top: 20px;
}

.horse-info .info-row {
  display: flex;
  margin-bottom: 20px;
  align-items: baseline;
  animation: fadeInLeft 0.5s ease forwards;
  opacity: 0;
}

.horse-info .info-row:nth-child(1) { animation-delay: 0.1s; }
.horse-info .info-row:nth-child(2) { animation-delay: 0.15s; }
.horse-info .info-row:nth-child(3) { animation-delay: 0.2s; }
.horse-info .info-row:nth-child(4) { animation-delay: 0.25s; }
.horse-info .info-row:nth-child(5) { animation-delay: 0.3s; }
.horse-info .info-row:nth-child(6) { animation-delay: 0.35s; }
.horse-info .info-row:nth-child(7) { animation-delay: 0.4s; }
.horse-info .info-row:nth-child(8) { animation-delay: 0.45s; }
.horse-info .info-row:nth-child(9) { animation-delay: 0.5s; }

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.horse-info .info-row .info-label {
  font-weight: 600;
  color: #0F172A;
  width: 210px;
  flex-shrink: 0;
  margin-right: 20px;
  font-size: 15px;
  line-height: 1.8;
}

.horse-info .info-row .info-value {
  color: #334155;
  flex: 1;
  line-height: 1.8;
  font-size: 15px;
}

.horse-info .ask-question-btn {
  margin-top: 10px;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #1E3A8A;
  background-color: #FFFFFF;
  color: #1E3A8A;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.horse-info .ask-question-btn:hover {
  background-color: #1E3A8A;
  color: #FFFFFF;
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .horse-details {
    padding-left: 0;
    margin-top: 30px;
  }

  .horse-name {
    font-size: 28px;
  }

  .horse-info .info-row {
    margin-bottom: 18px;
  }

  .horse-info .info-row .info-label {
    width: 170px;
    margin-bottom: 0;
    margin-right: 15px;
  }

  .horse-info .info-row .info-value {
    flex: 1;
  }
}

@media (max-width: 767.98px) {
  .horses-section {
    padding: 40px 0;
  }

  .horse-item {
    margin-bottom: 30px;
  }

  .horse-divider {
    margin: 24px 0;
  }

  .horse-name {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .horse-info .info-row {
    align-items: flex-start;
  }

  .horse-info .info-row .info-label,
  .horse-info .info-row .info-value {
    font-size: 14px;
  }

  .horse-info .info-row .info-label {
    width: 120px;
    margin-right: 12px;
    line-height: 1.4;
    white-space: normal;
  }

  .horse-info .info-row .info-value {
    min-width: 0;
  }
  
  .horse-gallery {
    margin-top: 10px;
  }
  
  .horse-gallery .row {
    margin-left: -5px;
    margin-right: -5px;
  }
  
  .horse-gallery .col-4,
  .horse-gallery .col-md-3 {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
  }
  
  .horse-thumb {
    margin-bottom: 10px;
  }
  
  .horse-main-image {
    height: 360px;
  }
}

/*----------- Stallions (Stanówki) -----------*/
#stallions .section-heading.page-heading {
  margin-bottom: 40px;
}

#pasze .section-heading.page-heading {
  margin-bottom: 40px;
}

#stallions .lightbox-content .single-section:not(:last-child) {
  margin-bottom: 56px;
}

#stallions .lightbox-content .single-section:last-child {
  margin-bottom: 0;
}

#stallions .horses-section {
  padding-top: 0;
  margin-top: 0;
}

.stallions-hero,
.horses-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 60px 50px;
  margin-bottom: 40px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.35);
  min-height: 360px;
  display: flex;
  align-items: center;
  background-color: #0F172A;
}

.stallions-hero-video,
.horses-hero-video,
.pasza-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.stallions-hero-overlay,
.horses-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(15, 23, 42, 0.78), rgba(30, 58, 138, 0.75));
  z-index: 1;
}

.stallions-hero-content,
.horses-hero-content {
  position: relative;
  max-width: 960px;
  z-index: 2;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #E2E8F0;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 16px;
  color: #E2E8F0;
  margin-bottom: 22px;
}

.hero-ctas .btn {
  margin-right: 12px;
  margin-bottom: 10px;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: grid;
  gap: 6px;
  color: #E2E8F0;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-list li::before {
  content: "\2022";
  color: #93C5FD;
  font-size: 18px;
  line-height: 1;
}

.stallion-filters {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
  margin-bottom: 12px;
}

#horses .stallion-filters {
  margin-bottom: 22px;
}

.stallion-filters .filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 0;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  outline: none;
  box-shadow: none;
}

.stallion-filters .filter-header:focus,
.stallion-filters .filter-header:focus-visible {
  outline: none;
  box-shadow: none;
}

.filter-eyebrow {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #64748B;
}

.filter-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0F172A;
}

.filter-hint {
  margin: 0;
  color: #475569;
}

.accordion-header.expanded .filter-hint {
  display: none;
}
.filter-toggle-icon {
  width: 16px;
  height: 16px;
  border-right: 2px solid #1E3A8A;
  border-bottom: 2px solid #1E3A8A;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.filter-body {
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  margin-top: 0;
}

.filter-body.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  margin-top: 0;
}

.filter-body.expanded {
  max-height: 2000px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 8px;
}

.filter-header.expanded .filter-toggle-icon {
  transform: rotate(-135deg);
}

.stallion-accordion {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  margin-bottom: 18px;
}

.stallion-accordion .accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.stallion-accordion .accordion-header:focus {
  outline: none;
}

.stallion-accordion .accordion-body {
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  padding-left: 0;
}

.stallion-accordion .accordion-body.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.stallion-accordion .accordion-body.expanded {
  max-height: 1000px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 8px;
}

.stallion-accordion .accordion-header.expanded .filter-toggle-icon {
  transform: rotate(-135deg);
}

.stallion-accordion .stallion-inspiration,
.stallion-accordion .stallion-tips {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 12000;
  pointer-events: none;
  font-size: 18px;
}

.back-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top i {
  font-size: 22px;
  line-height: 1;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

/* Horses filters: tighten first two columns, give remaining equal flexible width */
#horses .stallion-filters .filter-grid {
  grid-template-columns: 150px 150px repeat(3, minmax(200px, 1fr));
}

@media (max-width: 767.98px) {
  /* Stack filters on phones so they fit within the viewport */
  .filter-grid,
  #horses .stallion-filters .filter-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.filter-group {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
}

.filter-label {
  font-weight: 600;
  margin-bottom: 10px;
  color: #0F172A;
}

.filter-checkbox {
  display: block;
  font-size: 14px;
  color: #334155;
  margin-bottom: 8px;
}

.filter-checkbox input {
  margin-right: 8px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background: #E2E8F0;
  color: #0F172A;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.filter-chip.active {
  background: rgba(30, 58, 138, 0.1);
  color: #1E3A8A;
  border-color: #1E3A8A;
}

.filter-range {
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}

.filter-slider {
  width: 100%;
  accent-color: #1E3A8A;
}

.filter-range-values {
  display: flex;
  justify-content: space-between;
  color: #475569;
  font-size: 13px;
  margin-top: 6px;
}

.filter-selected-value {
  margin-top: 8px;
  font-weight: 600;
  color: #0F172A;
}

.filter-actions {
  margin-top: 6px;
  text-align: right;
}

.stallion-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stallion-card-body {
  align-items: flex-start;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

#stallions .stallion-card-body .horse-thumbnail-line2 {
  min-height: 32px;
}

#stallions .stallion-card-body .stallion-meta {
  min-height: 28px;
}

#stallions .stallion-card-body .stallion-tagline {
  min-height: 72px;
  line-height: 1.5;
}

#stallions .stallion-card-body .horse-thumbnail-line1 {
  min-height: 24px;
}

#stallions .stallion-price-inline {
  min-height: 24px;
}

.stallion-pill {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.8);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.stallion-thumb-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  pointer-events: none;
  z-index: 2;
}

.stallion-meta {
  font-size: 14px;
  color: #475569;
  margin-bottom: 10px;
  line-height: 1.6;
  text-align: center;
  width: 100%;
}

.stallion-tagline {
  font-size: 15px;
  color: #0F172A;
  font-weight: 600;
  margin-bottom: 16px;
}

.stallion-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 15px;
  flex-direction: column;
  margin-top: auto;
}

.stallion-price-inline {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  justify-content: center;
  font-weight: 700;
  color: #0F172A;
}

.stallion-price-inline .price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
}

.stallion-price-inline .price-value {
  font-size: 18px;
  color: #0F172A;
}

.stallion-actions .btn {
  margin: 0;
}

.stallion-detail-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 26px 32px 26px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #E2E8F0;
}

.stallion-gallery .stallion-main-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  margin-bottom: 18px;
}

.stallion-gallery .stallion-main-image img {
  width: 100%;
  display: block;
}

.stallion-details .stallion-lead {
  font-size: 16px;
  color: #334155;
  line-height: 1.8;
  margin-top: -10px;
}

.stallion-details .horse-info {
  display: block;
}

.stallion-details .horse-info .info-row {
  width: 100%;
  flex-wrap: nowrap;
  min-width: 0;
}

.stallion-details .horse-info .info-row .info-label {
  width: 140px;
  margin-bottom: 0;
}

.stallion-details .horse-info .info-row .info-value {
  min-width: 0;
  word-break: break-word;
  flex: 1;
}

.stallion-achievements {
  padding-left: 18px;
  margin: 0;
  color: #334155;
}

.stallion-achievements li {
  margin-bottom: 6px;
}

.stallion-cta-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stallion-inspiration,
.stallion-tips,
.stallion-reservation {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  margin-bottom: 32px;
}

#stallions .stallion-reservation {
  margin-bottom: 0;
}

.stallion-inspiration h4,
.stallion-tips h4 {
  font-weight: 700;
  margin-bottom: 14px;
  color: #0F172A;
  font-size: 20px;
}

.reservation-section .reservation-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.reservation-toggle:focus,
.reservation-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

.reservation-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #CBD5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease;
}

.reservation-toggle-icon::before,
.reservation-toggle-icon::after {
  content: '';
  position: absolute;
  background: #1E3A8A;
  border-radius: 2px;
}

.reservation-toggle-icon::before {
  width: 12px;
  height: 2px;
}

.reservation-toggle-icon::after {
  width: 2px;
  height: 12px;
}

.reservation-toggle[aria-expanded="true"] .reservation-toggle-icon {
  transform: rotate(45deg);
}

.reservation-body {
  margin-top: 20px;
}

.reservation-body.collapsed {
  display: none;
}

.stallion-tips .tip-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 18px;
  height: 100%;
}

.stallion-tips .tip-card h6 {
  font-weight: 700;
  margin-bottom: 8px;
  color: #0F172A;
}

.stallion-tips .tip-card p {
  margin: 0;
  color: #334155;
}

@media (max-width: 767.98px) {
  .stallion-tips .row {
    gap: 10px 0;
  }
}

.tip-footnote {
  margin-top: 14px;
  color: #475569;
}

.reservation-lead {
  color: #475569;
}

.stallion-reservation .form-control,
.stallion-reservation textarea {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.stallion-reservation .form-control:focus,
.stallion-reservation textarea:focus {
  border-color: #1E3A8A;
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.2);
}

.stallion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.stallions-hero .button-main.button-scheme,
.horses-hero .button-main.button-scheme {
  color: #E2E8F0;
  border-color: rgba(226, 232, 240, 0.8);
}

.stallions-hero .button-main.button-scheme:hover,
.horses-hero .button-main.button-scheme:hover {
  color: #0F172A;
  background-color: #E2E8F0;
  border-color: #E2E8F0;
}

.stallion-cta-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.stallion-cta-row .button-main.button-scheme {
  color: #1E3A8A;
  border-color: #1E3A8A;
  background-color: #ffffff;
}

.stallion-cta-row .button-main.button-scheme:hover {
  color: #FFFFFF;
  background-color: #1E3A8A;
  border-color: #1E3A8A;
}

@media (max-width: 991.98px) {
  .stallions-hero,
  .horses-hero {
    padding: 40px 28px;
  }

  .hero-title {
    font-size: 30px;
  }

  .stallion-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .stallion-actions {
    width: 100%;
  }

  .stallion-actions .btn {
    margin-left: 0;
    margin-right: 8px;
  }
}

@media (max-width: 767.98px) {
  .stallions-hero,
  .horses-hero {
    padding: 32px 22px;
  }

  .hero-title {
    font-size: 26px;
  }

  .stallion-filters {
    padding: 22px;
  }

  .stallion-card {
    max-width: 100%;
  }

  .stallion-details .stallion-lead {
    margin-top: 10px;
  }
}

/* Sticky logo reset to avoid pixelation */
.lightbox-sticky-bar .sticky-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px !important;
  width: auto;
  min-width: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-sticky-bar.visible .sticky-logo {
  opacity: 1;
}

.lightbox-sticky-bar .sticky-logo img {
  height: 100%;
  width: auto;
}
