/* Fullscreen slider */
.slick--skin--fullscreen .media {
  min-height: 100vh !important;
}

/* Sidebar */
.navbar.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 999;
}

body {
  overflow-y: scroll !important;
  overflow-x: hidden;
}

.sidebar-wrapper {
  min-height: 100vh;
  overflow: visible;
}

/* Links */
#services-grid a,
a {
  color: #232323;
  text-decoration: none;
}

.route-view-news-page_1 a,
.pagination a {
  text-decoration: none !important;
  display: inline-block;
}

.category-inline a,
.pagination a {
  color: #939393 !important;
}

/* Pagination */
.pagination nav.pager,
.pagination ul.pager__items {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.pagination ul.pager__items li {
  margin: 0 5px;
}

/* Sidebar category list */
ul.list-style-6 {
  padding-left: 0 !important;
  list-style: none !important;
  margin-top: 0;
}

ul.list-style-6 li {
  padding: 12px 0;
  border-bottom: 1px solid #ededed;
  text-align: left !important;
  display: block !important;
}

ul.list-style-6 li:first-child {
  border-top: 1px solid #ededed;
}

ul.list-style-6 li a {
  color: #232323 !important;
  text-decoration: none !important;
  display: block !important;
  width: 100%;
  float: none !important;
  text-align: left !important;
  transition: color 0.3s ease;
}

ul.list-style-6 li a:hover {
  color: #ff214f !important;
}

/* Popular posts sidebar */
ul.latest-post {
  padding-left: 0 !important;
  margin-top: 0 !important;
  list-style: none !important;
}

ul.latest-post li {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-bottom: 20px !important;
  text-align: left !important;
}

ul.latest-post li figure {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  margin: 0 15px 0 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
}

ul.latest-post li figure a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

ul.latest-post li figure img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  max-width: none !important;
  margin: 0 !important;
  display: block !important;
}

ul.latest-post li .media-body {
  text-align: left !important;
  display: block !important;
  width: 100% !important;
}

ul.latest-post li .media-body a {
  color: #232323 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  display: block !important;
  margin-bottom: 5px !important;
  text-align: left !important;
  transition: color 0.3s ease;
}

ul.latest-post li .media-body a:hover {
  color: #ff214f !important;
}

ul.latest-post li .media-body span.text-medium-gray {
  color: #888888 !important;
  font-size: 12px !important;
  display: block !important;
  text-align: left !important;
}

/* Tag cloud */
.tag-cloud {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.tag-cloud a {
  display: inline-block !important;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  text-align: center !important;
}

.tag-cloud div,
.tag-cloud span {
  display: inline-block !important;
  width: auto !important;
}

/* Article meta list */
.article-meta-list {
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  list-style: none !important;
}

.article-meta-list li {
  display: inline-flex;
  align-items: center;
  color: #595959;
}

.article-meta-list li:not(:last-child)::after {
  content: "\2022";
  margin: 0 15px;
  color: #a9a9a9;
  font-size: 14px;
}

.article-meta-list li a {
  color: #595959 !important;
  text-decoration: none !important;
}

.article-meta-list li a:hover {
  color: #ff214f !important;
}

.article-meta-list li div,
.article-meta-list li span {
  display: inline-block;
  margin: 0;
  padding: 0;
}

/* Blog post image slider */
.blog-post-content .swiper-slide img {
  width: 100%;
  height: 650px;
  object-fit: cover;
}

/* Hero banner word break fix */
#block-views-block-hero-banner-block-1 .title-large {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* ===================================================
   Timeline
=================================================== */

.timeline_bar {
  position: relative;
  padding: 50px 0;
  z-index: 1;
}

.timeline_bar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background-color: #e5e5e5;
  z-index: -1;
}

.end_timeline {
  text-align: center;
  margin: 30px 0;
  clear: both;
}

.end_timeline span {
  display: inline-block;
  padding: 10px 30px;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.timeline_box {
  position: relative;
  background: #fff;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
  transition: all 0.3s ease;
}

.timeline_box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.timeline_box .htitle {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.timeline_box p {
  font-size: 13px;
  line-height: 24px;
  color: #777;
  margin-bottom: 0;
}

.timeline_box a {
  color: #111;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.timeline_box a:hover {
  color: #ff214f;
}

.timeline_box::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e5e5;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e5e5e5;
  transform: translateY(-50%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.timeline_box:hover::after {
  background: #ff214f;
  box-shadow: 0 0 0 2px #ff214f;
}

.timeline_box .date {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: #999;
  width: 50px;
}

/* Webform */
.webform-button--submit.button {
  all: unset;
}

#webform-submission-contact-node-150-add-form .js-form-item {
  margin-bottom: 25px;
}

.webform-submission-form input[type="text"],
.webform-submission-form input[type="email"],
.webform-submission-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dfdfdf;
  background: #fff;
  font-size: 13px;
  line-height: 20px;
  margin-bottom: 20px;
}

.webform-submission-form .form-actions {
  text-align: center;
  width: 100%;
  clear: both;
}

.webform-submission-form .button--primary {
  background-color: transparent;
  border: 2px solid #232323;
  color: #232323;
  padding: 12px 28px;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.webform-submission-form .button--primary:hover {
  background-color: #232323;
  color: #ffffff;
}

/* Hide home page title */
.page-home-page .title-section {
  display: none;
}
/* ==========================================================================
   Complete User Login Form Styling (Card Layout + Stacked Inputs)
   ========================================================================== */

/* 1. The Main Card Container (Forces width and centering) */
.user-login-form {
    max-width: 450px !important;    /* Stops it from stretching full width */
    width: 90%;                     /* Keeps it responsive on mobile */
    margin: 80px auto !important;   /* Centers it horizontally on the page */
    padding: 40px;                  /* Inner spacing */
    background-color: #ffffff;
    border: 1px solid #eaeaec;
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.03);
    box-sizing: border-box;
}

/* 2. Force the Drupal form wrappers to stack vertically */
.user-login-form .form-item {
    display: block !important;
    width: 100%;
    margin-bottom: 20px;
    clear: both;
}

/* 3. Style and align labels */
.user-login-form label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    text-align: left;
}

/* 4. Style inputs to fill their container properly */
.user-login-form input[type="text"],
.user-login-form input[type="password"] {
    display: block;
    width: 100% !important; /* Fills the 450px card, not the whole screen */
    max-width: 100%;
    height: auto;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    margin-bottom: 0;
}

/* Focus state for better accessibility */
.user-login-form input[type="text"]:focus,
.user-login-form input[type="password"]:focus {
    border-color: #333333;
    outline: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* 5. Button Actions Wrapper */
.user-login-form .form-actions {
    margin-top: 10px;
    margin-bottom: 0;
    clear: both;
}

/* 6. The Submit Button */
.user-login-form input.form-submit {
    width: 100%;
    background-color: #232323;
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-login-form input.form-submit:hover {
    background-color: #595959;
}

/* Minor tweaks for mobile */
@media (max-width: 575px) {
    .user-login-form {
        margin: 40px auto !important;
        padding: 25px 20px;
        width: 95%;
    }
}
/* ===================================================
   Responsive
=================================================== */

@media (min-width: 992px) {
  /* Slider arrows */
  .text-side-arrows .swiper-button-prev {
    left: 53% !important;
  }

  .text-side-arrows .swiper-button-next {
    right: 3% !important;
  }
}

@media (min-width: 768px) {
  /* Timeline alternating layout */
  .col-md-6:not(.offset-md-6) .timeline_box {
    margin-right: 40px;
  }

  .col-md-6:not(.offset-md-6) .timeline_box::after {
    right: -48px;
  }

  .col-md-6:not(.offset-md-6) .date {
    right: -120px;
    text-align: left;
  }

  .col-md-6:not(.offset-md-6) .timeline_box::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
  }

  .col-md-6.offset-md-6 .timeline_box {
    margin-left: 40px;
  }

  .col-md-6.offset-md-6 .timeline_box::after {
    left: -48px;
  }

  .col-md-6.offset-md-6 .date {
    left: -120px;
    text-align: right;
  }

  .col-md-6.offset-md-6 .timeline_box::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
  }

  /* Webform 2-column layout */
  .form-item-name,
  .form-item-last-name,
  .form-item-email,
  .form-item-subject {
    width: 50%;
    float: left;
    padding: 0 15px;
  }

  .form-item-message {
    width: 100%;
    clear: both;
    padding: 0 15px;
  }

  .user-login-form .form-item-name {
    padding: 0px !important;
  }
}

@media (max-width: 991px) {
  /* Slider arrows on mobile */
  .text-side-arrows .swiper-button-prev,
  .text-side-arrows .swiper-button-next {
    top: 75% !important;
  }

  #navbar-menu {
    top: 30px !important;
  }

  .mobile-top-margin,
  #block-views-block-hero-banner-block-1 {
    margin-top: 80px !important;
  }

  .slick--skin--fullscreen .media {
    min-height: 60vh !important;
  }
}

@media (max-width: 767px) {
  /* Article meta */
  .article-meta-list {
    justify-content: center;
  }

  .article-meta-list li {
    display: inline-flex;
    align-items: center;
    color: #595959;
  }

  .article-meta-list li:not(:last-child)::after {
    content: "\2022";
    margin: 0 15px;
    color: #a9a9a9;
    font-size: 14px;
  }

  /* Timeline mobile */
  .timeline_box {
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 50px;
    text-align: center;
    padding: 30px 20px;
  }

  .timeline_box::after {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline_box .date {
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: #f9f9f9;
    padding: 2px 10px;
    width: auto;
  }

  .timeline_box::before {
    display: none;
  }

  /* Hero banner centering */
  #block-views-block-hero-banner-block-1 .container.full-screen {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: calc(100vh - 80px);
  }

  #block-views-block-hero-banner-block-1 .row {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #block-views-block-hero-banner-block-1 .bg-white-opacity {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 90%;
  }
}