/*
Theme Name: Ecohorbor Child
Description: Child Theme for Ecohorbor Theme
Author: zozothemes
Version: 1.0
Template: ecohorbor
Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Text Domain: ecohorbor-child
*/

/* BASE THEME OVERRIDES START */
.page .page-title-wrap, .error404 .page-title-wrap {
    padding-top: 100px;
}
/* BASE THEME OVERRIDES END */

.flex {
  display: flex;
}

.site-header a {
  color: #262626;
}

.header-navbar a:active,
.header-navbar ul.wp-menu > li.current-menu-item > a,
.header-navbar
  ul.nav.wp-menu
  > li.menu-item-has-children.current-menu-ancestor
  > a {
  color: #549f57;
}

.header-navbar a:hover {
  color: #549f57;
  text-decoration: underline;
}

header.ecohorbor-page-header:after {
  background-color: #000000;
}

/**
Make all links underlined by default
*/
a {
  text-decoration: underline;
}

.elementor a {
  text-decoration: underline;
}

/**
Post dates container (publication and last modified)
*/
.post-dates-container {
 margin-top: 24px;
}

.post-dates-container .publication-date,
.post-dates-container .last-modified {
 display: inline;
}

.post-dates-container .date-separator {
 color: #666;
 margin: 0 0.5em;
}


.ecohorbor-content-wrap {
  padding-top: 40px;
}

.page-title-wrap .page-title {
  color: #fff;
}

.pre-header-section {
  background-color: #000;
  color: #fff;
}

.ecohorbor-lang-switcher {
  display: flex;
  justify-content: flex-end; /* put it to the right; change to center or flex-start */
  margin-bottom: 10px;
  align-items: center;
  gap: 10px; /* space between flag/name items if needed */
}

/* If Polylang outputs a <ul> you want inline */
.ecohorbor-lang-switcher ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}

.ecohorbor-lang-switcher li {
  list-style: none;
}

.ecohorbor-lang-switcher li a {
  color: #fff;
  font-size: 0.9rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}
.tab-button {
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  border-bottom: 3px solid transparent;
  transition: color 0.3s ease;
}
.tab-button:hover {
  background-color: transparent;
  color: #000;
}
.tab-button.active {
  border-bottom-color: #008659;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/*
=========================================
Slider Navigation Arrows
=========================================
*/
.highlights-slider-component {
  position: relative;
}

.highlights-slider-wrapper.swiper {
  overflow: hidden;
}

.highlights-slider-component .swiper-button-next,
.highlights-slider-component .swiper-button-prev {
  background-color: #4caf50;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 10;
}
.highlights-slider-component .swiper-button-next::after,
.highlights-slider-component .swiper-button-prev::after {
  font-size: 1rem;
  font-weight: 900;
}

.highlights-slider-component .swiper-button-prev {
  top: 30%;
  left: -50px;
}
.highlights-slider-component .swiper-button-next {
  top: 30%;
  right: -50px;
}

@media (max-width: 768px) {
  .highlights-slider-component .swiper-button-prev {
    left: 10px;
  }
  .highlights-slider-component .swiper-button-next {
    right: 10px;
  }
}

.highlight-slide-item .card-body {
  padding-left: 0px;
  padding-right: 0px;
}

.highlight-slide-item .card-category-label {
  background-color: rgba(58, 184, 128, 10%);
  padding: 4px 8px;
  border-radius: 1px;
  font-weight: 500;
}

.highlight-slide-item .card-title {
  text-decoration: underline;
}

.highlight-slide-item .card-meta {
  font-size: 0.85rem;
}

.event-details {
  margin-bottom: 20px;
  padding: 15px;
  border-left: 4px solid #0AC481;
}

.highlight-slide-item.card .card-img-top {
    height: 200px;       
    object-fit: cover; 
    width: 100%;        
}

.highlight-slide-item.card {
    height: 100%;           
    display: flex;        
    flex-direction: column; 
}

.card-body {
    flex-grow: 1;          
}

/*
=========================================
CPT Archive Page Header
=========================================
*/
.post-type-archive-bioch4_events .page-title-wrap,
.post-type-archive-bioch4_news .page-title-wrap,
.post-type-archive-bioch4_alerts .page-title-wrap {
    padding-top: 100px;
    padding-bottom: 60px;
}

/*
=========================================
A11Y Fix #006: Footer widget CSS overrides
Changed aside to div - replicate parent theme styles
=========================================
*/
.footer-widget-2 h5 {
    font-size: 22px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-bottom: 5px;
    padding-left: 33px;
    line-height: 34px;
}

.footer-widget-2 h5:before {
    content: "";
    width: 15px;
    height: 30px;
    position: absolute;
    background: #4ba15d1f;
    border-radius: 150px 0px 0px 150px;
    left: 0;
    top: 50%;
    opacity: 0.2;
    transform: translateY(-50%);
    z-index: 0;
    transition: var(--trans-dft);
}

.footer-widget-2 h5:after {
    content: "\f884";
    font-family: 'bootstrap-icons';
    position: absolute;
    font-weight: 100;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    left: 7px;
    border-radius: 50%;
    animation: rotation 8s linear infinite;
    z-index: 2;
}

.footer-widgets-wrap .footer-widget-2.col-md-3:nth-child(2) {
    flex: 0 0 auto;
    width: 22%;
}

.footer-widgets-wrap .footer-widget-2.col-md-3:nth-child(3) {
    flex: 0 0 auto;
    width: 21%;
}

.footer-widgets-wrap .footer-widget-2.col-md-3:last-child {
    flex: 0 0 auto;
    width: 32%;
}

.footer-widget-2:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .footer-widgets-wrap .footer-widget-2.col-md-3:nth-child(2),
    .footer-widgets-wrap .footer-widget-2.col-md-3:nth-child(3),
    .footer-widgets-wrap .footer-widget-2.col-md-3:last-child {
        width: 50%;
    }
    .footer-widgets-wrap .footer-widget-2.col-md-3 {
        margin-bottom: 30px;
    }
    .footer-widget-2.col-md-4:last-child {
        margin-bottom: 0;
    }
    .footer-widget-2.col-md-4:nth-child(2) {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .footer-widgets-wrap .footer-widget-2.col-md-3 {
        width: 100%;
    }
}

/*
=========================================
A11Y Fix #007: Page title elements CSS overrides
Changed ul.page-title-elements to div - replicate parent theme styles
=========================================
*/
.page-title-wrap > .page-title-elements > * {
    margin-top: 10px;
}

.page-title-wrap > .page-title-elements > *:first-child {
    margin-top: 0;
}

.page-title-elements.page-title-center.pull-center h1.page-title {
    display: block;
    word-break: break-word;
    margin-bottom: 15px;
}

.page-title-elements.page-title-center.pull-center * {
    word-break: break-all;
    text-align: center;
}

.page-title-elements.page-title-center.pull-center h1.page-title,
.page-title-elements.page-title-center.pull-center .breadcrumbs-wrap {
    text-align: center;
}

.page-title-wrap > .page-title-elements.pull-center > .breadcrumbs-wrap .breadcrumb-wrap {
    display: inline-block;
}

.page-title-elements.page-title-right {
    text-align: right;
}

@media only screen and (max-width: 1200px) {
    .page-title-elements.page-title-center.pull-center h1.page-title {
        margin-bottom: 10px;
        font-size: 40px;
        line-height: 48px;
    }
}

@media only screen and (max-width: 767px) {
    .page-title-wrap > .page-title-elements > * {
        display: block;
        text-align: center;
    }
}

@media only screen and (max-width: 1024px) {
    .page-title-wrap > .page-title-elements > *.page-title {
        font-size: 48px;
        line-height: 55px;
    }
}

@media only screen and (max-width: 991px) {
    .page-title-elements.page-title-right {
        text-align: left;
    }
}

@media only screen and (max-width: 600px) {
    .page-title-wrap > .page-title-elements > *.page-title {
        font-size: 36px;
        line-height: 42px;
    }
}

/*
=========================================
A11Y Fix #010: Semantic Heading Fix for Pagination
Changed h6 to div in template-parts/navigation.php
Replicating h6 styles for div.pagination-prev/next
=========================================
*/
.pagination-single-inner > div.pagination-next {
    margin-left: auto;
}
.pagination-single-inner > div.pagination-prev {
    margin-left: 0;
}
.pagination-single-inner div.pagination-prev, 
.pagination-single-inner div.pagination-next {
    font-size: 20px;
    word-break: break-word;
    font-weight: 500; /* Replicating typical h6 weight */
    line-height: 1.2; /* Replicating typical h6 line-height */
}
.pagination-single-inner > div.pagination-prev > a,
.pagination-single-inner > div.pagination-next > a {
    position: relative;
    line-height: 1.5;
    display: block; /* Ensure block display like h6 context */
    font-weight: 600; /* h6 default is bold */
}
.pagination-single-inner > div.pagination-prev > a span.arrow,
.pagination-single-inner > div.pagination-next > a span.arrow {
    display: inline-block;
    background: #000;
    color: #fff;
    height: 45px;
    width: 45px;
    line-height: 45px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    transition: all .3s;
    border-radius: 50%;
}
.pagination-single-inner > div.pagination-prev > a span.title,
.pagination-single-inner > div.pagination-next > a span.title {
    display: block;
    font-size: 22px;
    line-height: 1.4;
    color: #262626;
    transition: all .3s;
}
.pagination-single-inner > div.pagination-prev > a:hover span.title,
.pagination-single-inner > div.pagination-next > a:hover span.title {
    transition: all .3s;
}

/*
=========================================
Footer Bottom / Copyright Section Overrides
Overrides settings from theme-options-css.php
=========================================
*/
.footer-bottom-wrap {
    /* Padding, Margin, Border overrides */
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    margin-top: 0 !important;
    border: none !important;
}

.footer-bottom-wrap a {
    /* Link Color Override */
    color: #ffffff !important;
}

.footer-bottom-wrap a:hover,
.footer-bottom-wrap a:focus,
.footer-bottom-wrap a:active {
    color: #6ed672 !important; /* Replaced #549F57 with #6ed672 to meet WCAG AA contrast against rgb(5,70,56) */
    text-decoration: underline !important;
}

/*
=========================================
A11Y Fix #011: Back-to-top nav wrapper
Ensures nav doesn't affect layout positioning
=========================================
*/
nav.back-to-top-nav {
    display: contents; /* Nav acts as if not there for layout purposes */
}

/*
=========================================
HTML Sitemap (Shortcode) - Minimal Styling
=========================================
*/
.ecohorbor-html-sitemap {
  margin: 10px 0 20px;
}

.ecohorbor-html-sitemap .ecohorbor-html-sitemap-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.ecohorbor-html-sitemap .ecohorbor-html-sitemap-item {
  margin: 8px 0;
  line-height: 1.5;
}

.ecohorbor-html-sitemap > .ecohorbor-html-sitemap-list > .ecohorbor-html-sitemap-item > a,
.ecohorbor-html-sitemap > .ecohorbor-html-sitemap-list > .ecohorbor-html-sitemap-item > span {
  font-weight: 600;
}

.ecohorbor-html-sitemap .ecohorbor-html-sitemap-list .ecohorbor-html-sitemap-list {
  margin-top: 6px;
  margin-left: 10px;
  padding-left: 16px;
  border-left: 2px solid #dce9df;
}

.ecohorbor-html-sitemap .ecohorbor-html-sitemap-list .ecohorbor-html-sitemap-item::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: #5c7a63;
  vertical-align: middle;
}

.ecohorbor-html-sitemap a {
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

@media (max-width: 767px) {
  .ecohorbor-html-sitemap .ecohorbor-html-sitemap-list .ecohorbor-html-sitemap-list {
    margin-left: 6px;
    padding-left: 12px;
  }

  .ecohorbor-html-sitemap .ecohorbor-html-sitemap-item {
    margin: 6px 0;
  }
}

