/*
Theme's main style.
*/

.pagination {
  margin: 0;
}
.pagination-center {
  text-align: center;
}
.pagination-row {
  margin-bottom: 20px;
}

.page-header {
  margin-bottom: 20px;
}

.page-header-top-right {
  margin-top: 10px;
}

.post-view-attachment .entry-attachment .attachment {
  text-align: center;
}
.post-view-attachment .entry-attachment .attachment .card {
  margin: 0 auto;
  width: 400px;
}
.post-view-attachment .entry-attachment .attachment .wp-video {
  margin: 0 auto;
}

.row-with-vspace {
  margin-bottom: 20px;
}

.site-footer {
  background-color: #f5f5f5;
  border-top: 3px solid #ddd;
  font-size: 12px;
  padding: 10px;
}

.site-main .format-aside {
  background: #f5f5f5;
}
.site-main .format-image {
  background: url("../img/content-post-format-image.png") left top no-repeat;
}
.site-main .format-link {
  background: url("../img/content-post-format-link.png") left top no-repeat;
}
.site-main .format-quote {
  background: url("../img/content-post-format-quote.png") left top no-repeat;
}
.site-main .format-video {
  background: url("../img/content-post-format-video.png") left top no-repeat;
}

.site-title {
  margin-bottom: 0;
  margin-top: 10px;
}
.site-title > a {
  text-decoration: none;
}
.site-title > div {
  height: auto;
  line-height: 18px;
}
.site-title .site-description {
  color: #999;
  font-size: 16px;
}
.site-title .site-title-heading {
  margin: 0;
}

.widget_calendar .calendar_wrap table {
  font-size: 14px;
  margin: 0;
}
.widget_calendar .calendar_wrap table caption {
  caption-side: top;
}
.widget_calendar .calendar_wrap .table td,
.widget_calendar .calendar_wrap .table th {
  padding: 8px;
}
.widget_calendar .calendar_wrap .table #next {
  text-align: right;
}

#comments .comment-navigation,
#comments .comment-navigation-below {
  margin-bottom: 20px;
  margin-top: 15px;
}
#comments .comment-navigation {
  list-style: none;
  margin-top: 0;
  padding: 0;
}
#comments .comment-respond {
  margin-top: 20px;
}
#comments .media-list li .media {
  margin-top: 15px;
}
#comments .media-list li .media .media-body {
  border: 1px solid #eee;
  padding: 10px;
}
#comments .media-list li .media .media-body .comment-author {
  font-size: 12px;
  margin-bottom: 10px;
}
#comments .media-list ul.children {
  list-style: none;
  margin-left: 4em;
  padding-left: 0;
}

#main .wp-video-shortcode {
  display: block;
  height: auto;
  max-width: 100%;
}
#main .attachment .entry-content {
  margin-bottom: 20px;
}
#main .attachment .entry-content .attachment {
  text-align: center;
}
#main .attachment .entry-meta {
  margin-bottom: 20px;
}
/* fix auto img responsive */
#main .post .entry-content img {
  height: auto;
  max-width: 100%;
}
#main .post,
#main .page {
  border: 1px solid #eee;
  margin-bottom: 20px;
  overflow-x: auto;
  padding: 10px;
}
#main .post .entry-header .entry-meta {
  color: #999;
  font-size: 0.8rem;
}
#main .post .entry-header .entry-meta a {
  color: inherit;
}
#main .post .entry-header .entry-meta .posted-on .updated {
  display: none;
}
#main .post .entry-meta .categories-icon {
  cursor: default;
}
#main .post .entry-meta .comments-link a {
  color: #333;
}
#main .post .entry-meta .comments-link a .comment-total,
#main .page .entry-meta .comments-link a .comment-total {
  color: #555;
}
#main .attachment .edit-post-link a,
#main .attachment .entry-meta .edit-post-link a,
#main .post .entry-meta .edit-post-link a,
#main .page .entry-meta .edit-post-link a {
  color: #333;
}
#main .post .entry-meta .tags-icon {
  cursor: default;
}
#main .attachment .entry-title,
#main .post .entry-title,
#main .page .entry-title {
  margin-top: 0;
  word-wrap: break-word;
}

#sidebar-left .widget,
#sidebar-right .widget {
  border: 1px solid #eee;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 10px;
}
#sidebar-left .widget ul,
#sidebar-right .widget ul {
  padding-left: 20px;
}
#sidebar-left .widget .widget-title,
#sidebar-right .widget .widget-title {
  font-size: 18px;
  margin-top: 0;
}

/* Fix Bootstrap 4 */
.navbar {
  min-height: 54px; /* With this, we can use navbar without navbar-brand */
}

/* Team Section Styles */
.portfolio-section {
  padding: 1rem 0 0 0;
  border-radius: 0.5rem;
}

.portfolio-wrapper {
  margin-top: 1rem;
  overflow: hidden;
  width: 100%;
}

.portfolio-swiper {
  width: 100%;
  padding: 1rem 0;
}

.portfolio-swiper .swiper-wrapper {
  display: flex;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.portfolio-slide {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: calc(33.333% - 20px);
}

.portfolio-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-slide .card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.portfolio-slide .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-slide:hover .card-img img {
  transform: scale(1.05);
}

.portfolio-slide .card-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

.portfolio-slide .card-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  text-align: left;
  z-index: 4;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 60%,
    transparent 100%
  );
  color: white;
  display: flex;
  flex-direction: column;
}

.portfolio-slide .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  width: 100%;
  padding: 0px;
}

.portfolio-slide .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-align: left;
  flex: 1;
  min-width: 0;
}

.portfolio-slide .card-position {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  text-align: right;
  flex-shrink: 0;
}

.portfolio-slide .card-text {
  position: relative;
  padding: 0;
  z-index: 3;
  color: white;
  opacity: 1;
  text-align: left;
  width: 100%;
  margin-top: 0;
}

.portfolio-slide .card-text p {
  margin-bottom: 0.75rem;
  text-align: left;
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  font-size: 0.85rem;
  line-height: 1.4;
}

.portfolio-slide .card-text p:last-child {
  margin-bottom: 0;
}

.portfolio-slide .card-text .bio-text {
  margin-bottom: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95) !important;
}

.portfolio-slide .card-text .specialties-text {
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95) !important;
}

.portfolio-slide .card-text .specialties-text strong {
  font-weight: 600;
  color: white !important;
}

.portfolio-slide .card-text p {
  margin-bottom: 0.75rem;
  text-align: left;
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  font-size: 0.85rem;
  line-height: 1.4;
}

.portfolio-slide .card-text p:last-child {
  margin-bottom: 0;
}

.portfolio-slide .card-text .bio-text {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95) !important;
}

.portfolio-slide .card-text .specialties-text {
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95) !important;
}

.portfolio-slide .card-text .specialties-text strong {
  font-weight: 600;
  color: white !important;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .portfolio-slide {
    min-height: 400px;
    width: calc(50% - 20px);
  }
}

@media (max-width: 767px) {
  .portfolio-section {
    padding: 0;
  }

  .portfolio-slide {
    margin: 0 8px;
    min-height: 350px;
    width: calc(100% - 16px);
  }

  .portfolio-slide .card-inner {
    padding: 1rem;
  }

  .portfolio-slide .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
  }

  .portfolio-slide .card-title {
    font-size: 1.1rem;
    text-align: left;
  }

  .portfolio-slide .card-position {
    text-align: left;
    font-size: 0.85rem;
  }

  .portfolio-slide .card-text {
    padding: 0;
    font-size: 0.8rem;
  }

  .portfolio-slide .card-text p {
    font-size: 0.8rem;
  }

  .portfolio-section .swiper-arrow-btn {
    width: 40px;
    height: 40px;
  }

  .portfolio-section .arrow-svg {
    width: 16px;
    height: 16px;
  }
}

/* Animation for autoscroll */
.portfolio-swiper .swiper-wrapper {
  transition-timing-function: ease-in-out;
}

/* Portfolio section title alignment */
/* .portfolio-section .title-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
} */

/* .portfolio-section .title-inner h2 {
  flex: 1;
  margin: 0;
} */

.portfolio-section .title-inner p {
  flex: 2;
  margin: 0;
  max-width: 500px;
}

.portfolio-section .swiper-btns {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .portfolio-section .title-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .portfolio-section .title-inner h2,
  .portfolio-section .title-inner p {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .portfolio-section .desktop-btns {
    display: none;
  }

  .portfolio-section .mobile-btns {
    display: flex;
    justify-content: center;
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .portfolio-section .mobile-btns {
    display: none;
  }
}

/* === Services Fullwidth Page Styles === */
.services-tabs {
  position: relative;
}

/* Service tabs styling - inactive tabs have white text, active tabs have golden background */
.services-tabs .nav-link {
  color: #fff;
  background-color: #6c6b69;
  border-color: #bc9c25;
}

.services-tabs .nav-link:hover {
  color: #fff;
  background-color: #bc9c25;
  border-color: #bc9c25;
}

.services-tabs .nav-link.active {
  color: #fff;
  background-color: #bc9c25;
  border-color: #bc9c25;
}

/* Mobile dropdown for services navigation */
.services-dropdown {
  margin-bottom: 1rem;
}

.services-mobile-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: #6c6b69;
  color: #fff;
  border: 1px solid #bc9c25;
  border-radius: 0.375rem;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.services-mobile-select:focus {
  outline: none;
  border-color: #bc9c25;
  box-shadow: 0 0 0 0.2rem rgba(188, 156, 37, 0.25);
}

.services-mobile-select option {
  background-color: #6c6b69;
  color: #fff;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 2.5rem;
  background: #6c6b69;
}
.service-image-col {
  padding: 0;
}
.service-image-col .service-image {
  width: 100%;
  height: 100%;
  /* Reduced min-height to better suit a narrower (4/12) image column */
  min-height: 240px;
  overflow: hidden;
}
.service-image-col .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
.service-content-col h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}
.service-desc {
  color: #fff;
}
.service-meta {
  font-size: 0.95rem;
  color: #fff;
}
/* Service details block (price & duration) */
.service-details {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.95rem;
}
.service-details .service-price,
.service-details .service-duration {
  color: #fff;
}

@media (max-width: 1023.98px) {
  .service-details {
    display: block;
  }
  .service-details .service-price,
  .service-details .service-duration {
    margin-bottom: 0.5rem;
  }
  .service-content-col {
    padding-top: 0;
  }
  .service-content-col h3 {
    font-size: 1.4rem;
    padding-bottom: 0;
  }
  .services-tabs .nav-link.active {
    font-size: 0.9rem;
  }
  .wp-block-image img {
    max-height: 10rem;
    object-fit: cover;
  }
}

/* Buttons inside service content: gold background with white text */
.service-content-col .btn-primary {
  background-color: #bc9c25;
  border-color: #bc9c25;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.5rem 1.5rem;
}
.service-content-col .btn-primary:hover,
.service-content-col .btn-primary:focus,
.service-content-col .btn-primary:active {
  background-color: #6c6b69;
  border-color: #bc9c25;
  color: #bc9c25;
  text-decoration: none;
}

/* Override Bootstrap default active state for Reserve button specifically */
.service-content-col .btn-primary:not(:disabled):not(.disabled).active,
.service-content-col .btn-primary:not(:disabled):not(.disabled):active,
.show > .service-content-col .btn-primary.dropdown-toggle {
  color: #fff !important;
  background-color: #a6811e !important;
  border-color: #a6811e !important;
}
@media (max-width: 1023.98px) {
  .service-image-col .service-image {
    min-height: 180px;
  }
  .service-row {
    padding: 0;
  }
}

.service-image {
  overflow: hidden;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stretch-featured-image {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  max-height: 24vh;
}

.stretch-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .stretch-featured-image {
    height: clamp(280px, 25vh, 400px);
    max-height: 50vh; /* Desktop max-height */
  }
}

/* Featured image overlay for centered title */
.featured-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.overlay-content {
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 800px;
}

.featured-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  color: white !important;
}

@media (max-width: 1023.98px) {
  .featured-title {
    font-size: 2rem;
  }

  .overlay-content {
    padding: 1rem;
  }
}

/* ============================================
   TEAMS FULL WIDTH PAGE STYLES
   ============================================ */

/* .teams-grid {
  padding: 0 15px;
} */

.team-tile {
  background: #6c6b69;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  height: 100%;
  border: none;
}

.team-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-tile-image {
  position: relative;
  width: 100%;
  height: 468px;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.team-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-tile:hover .team-tile-image img {
  transform: scale(1.05);
}

.team-tile-placeholder {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-tile-placeholder .placeholder-content {
  color: #6c757d;
  font-size: 4rem;
  opacity: 0.3;
}

.team-tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-tile:hover .team-tile-overlay {
  opacity: 1;
}

.team-tile-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #6c6b69;
  color: white;
  border-bottom-left-radius: 15px !important;
  border-bottom-right-radius: 15px !important;
}

/* Ensure Bootstrap card-body class also gets rounded corners */
.team-tile .card-body {
  border-bottom-left-radius: 15px !important;
  border-bottom-right-radius: 15px !important;
}

.team-tile-header {
  margin-bottom: 1rem;
}

.team-tile-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white !important;
  line-height: 1.3;
}

.team-tile-position {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0;
  color: white !important;
}

.team-tile-bio {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.team-tile-bio .card-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: white !important;
  margin-bottom: 0;
}

.team-tile-specialties {
  margin-top: auto;
}

.specialties-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specialties-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.specialty-tag {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #e9ecef;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  text-transform: none;
  transition: all 0.2s ease;
}

.specialty-tag:hover {
  background: var(--stylena-primary-color, #c4a574);
  color: white;
  border-color: var(--stylena-primary-color, #c4a574);
}

.no-team-members {
  padding: 3rem 1rem;
}

.no-team-members i {
  opacity: 0.3;
}

.no-team-members h3 {
  margin-bottom: 1rem;
}

.no-team-members p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Responsive adjustments for teams page */
@media (max-width: 1199px) {
  .team-tile-image {
    height: 412px;
  }

  .team-tile-content {
    padding: 1.25rem;
  }
}

@media (max-width: 991px) {
  .team-tile-image {
    height: 374px;
  }

  .teams-grid {
    padding: 0 10px;
  }
}

@media (max-width: 767px) {
  .team-tile-image {
    height: 468px;
  }

  .team-tile-content {
    padding: 1rem;
  }

  .team-tile-name {
    font-size: 1.1rem;
  }

  .specialties-tags {
    gap: 0.25rem;
  }

  .specialty-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 575px) {
  .teams-grid .col-sm-12 {
    padding-left: 5px;
    padding-right: 5px;
  }

  .team-tile-image {
    height: 449px;
  }
}
