/*
Theme Name: Ave Child
Template: ave
Text Domain: ave-child
*/

/* -------------------------------
   Single Event Full-Width Banner
---------------------------------*/
.event-banner.fullscreen{
    height: 60vh;
}
/* Hide default title bar on single events */
.single-event .titlebar-inner {
    display: none !important;
}

/* Make the image fill the banner container */
.event-banner.fullscreen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* same idea as background-position: center; */
    display: block;
}

/* Single event content styling */
.event-single .entry-header {
    margin-top: 20px;
    margin-bottom: 20px;
}

.event-single .entry-title {
    font-size: 2em;
    margin-bottom: 10px;
}

.event-single .event-date {
    color: #DF4303;
    font-size: 12px;
}

/* Event gallery styling */
.event-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.event-gallery .gallery-slide {
    flex: 1 1 200px;
}

.event-gallery .gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-banner.fullscreen {
        width: 100%;
        margin-left: 0;
    }

    .event-single .entry-title {
        font-size: 1.5em;
    }
}

/* Share buttons inside the container, top-right */
.event-share-buttons {
    display: inline-flex;
}

/* Wrapper for label + buttons */
.event-share-wrapper {
    display: block;
    text-align: right;
    margin-top:15px;
}

/* Label styling */
.share-label {
    color: #727B83;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
}

/* Share buttons styling */
.event-share-buttons .share-btn {
    display: inline-block;
    width: 25px;
    height: 25px;
    transition: transform 0.3s;
    margin-left: 10px;
}

.event-share-buttons .share-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hover effect */
.event-share-buttons .share-btn:hover {
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-share-wrapper {
        flex-wrap: wrap;
        gap: 5px;
    }

    .share-label {
        font-size: 12px;
    }

    .event-share-buttons .share-btn {
        width: 16px;
        height: 17px;
    }
}

h1.entry-title {
    font-size: 40px !important;
    color: #00263A;
}

/* Full-width banner */
.events-banner {
    position: relative;
    width: 100%;
    height: 650px; /* adjust height */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.events-banner-overlay {
    background: rgba(0,0,0,0.5);
    padding: 20px 40px;
    border-radius: 8px;
}

.events-banner-overlay h1 {
    color: #fff;
    font-size: 48px;
    margin: 0;
}

/* Remove default WP page title bar on Events Page */
.page-template-template-events .page-header,
.page-template-template-events .entry-title {
    display: none !important;
}

.events-banner-title h1 {
    font-weight: bold;
    font-size: 80px !important;
}



/* -------------------------------
   Events Page Grid
---------------------------------*/
.events-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}
.events-filter h2 {
    margin: 0;
    font-size: 28px;
    color: #00263A;
}
.events-filter form {
    display: flex;
    gap: 10px;
}
.events-filter input,
.events-filter select,
.events-filter button {
    padding: 8px 12px;
    font-size: 14px;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* no spaces */
}

.event-item {
    height: 500px; /* set the overall block height */
    position: relative;
    overflow: hidden;
}

.event-image-wrapper {
    height: 100%; /* make the inner wrapper fill the block */
    position: relative;
    overflow: hidden;
}

.event-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* makes the image cover the container while keeping aspect ratio */
    display: block;
}

/* Blue bottom overlay */
.event-image-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%; /* halfway up */
    background: linear-gradient(to top, #00263A, rgba(0, 38, 58, 0));
    pointer-events: none; /* allows clicks through overlay */
}

/* Event overlay content at bottom and hover slide-up slightly */
.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* keep content at bottom */
    background: rgba(0,38,58,0.6); /* default overlay partially transparent */
    height: 100%;
    transition: all 0.3s ease;
}

/* Wrap title + blurb for sliding effect */
.event-text-wrapper {
    transition: transform 0.3s ease;
}

/* Default state */

h2.event-title {
    color: #fff;
    line-height: 100%;
    margin-bottom: 10px;
}
.event-title,
.event-blurb {
    margin: 0;
}

/* Button */
.view-event-btn {
    opacity: 0;
    transform: translateY(10px); /* start slightly below */
    transition: all 0.3s ease;
}

/* Hover state */
.event-item:hover .view-event-btn {
    opacity: 1;
    transform: translateY(0); /* slide button up */
    display: inline-block;
}

/* Slide text up slightly when hovering to make space for button */
.event-item:hover .event-text-wrapper {
    transform: translateY(-40px); /* adjust this value as needed */
}

/* Hover overlay color */
.event-item:hover .event-overlay {
    background: rgba(223, 67, 3, 0.6); /* orange hover overlay */
}

/* Event date tag */
.events-page .event-date {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #DF4303;
    color: #fff;
    padding: 15px 10px;
    font-weight: bold;
    z-index: 10;
    width: 75px;
    text-align: center;
    line-height: 20px;
}

/* Responsive */
@media(max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    .events-filter {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Events Pagination Styling */
.events-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.events-pagination a,
.events-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #00263A;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.events-pagination a:hover {
    background-color: #DF4303;
    color: #fff;
    border-color: #DF4303;
}

.events-pagination .current {
    background-color: #DF4303;
    color: #fff;
    border-color: #DF4303;
    font-weight: 600;
}

.events-pagination .dots {
    background: none;
    border: none;
    color: #727B83;
    cursor: default;
    padding: 8px 12px;
}
/* Events filter input & select styling */
.events-filter input,
.events-filter select {
    width: 370px;
    height: 50px;
    padding: 0 16px;
    border-radius: 10px;
    border: 0.5px solid transparent;
    background: #FFFFFF;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
    gap: 24px;
    font-size: 14px;
    color: #000;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border 0.3s, box-shadow 0.3s;
}

/* Gradient border effect */
.events-filter input {
    border-image-source: linear-gradient(0deg, rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                         linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    border-image-slice: 1;
}

.events-filter select {
    border-image-source: linear-gradient(0deg, rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                         linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
    border-image-slice: 1;
}

/* Hover / focus state */
.events-filter input:focus,
.events-filter select:focus {
    border-color: #00263A; /* optional highlight color */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
a.view-event-btn {
    display: table;
    background: #fff;
    width: 110px;
    text-align: center;
    color: #DF4303;
    padding: 3px;
    border-radius: 50px;
    font-size: 15px;
}


/* Full-width gallery wrapper */
.event-gallery-fullwidth {
    width: 100%;
    position: relative;
    padding: 40px 0; /* adjust top/bottom spacing */
}

/* Each slide */
.event-gallery-swiper .swiper-slide {
    width: 60%;        /* center slide width */
    opacity: 0.5;      /* side slides semi-transparent */
    transition: opacity 0.3s, transform 0.3s;
}

/* Center active slide */
.event-gallery-swiper .swiper-slide-active {
    opacity: 1;       /* fully visible */
    transform: scale(1); /* optional: enlarge center slide slightly */
}

/* Optional: side slides */
.event-gallery-swiper .swiper-slide-prev,
.event-gallery-swiper .swiper-slide-next {
    opacity: 0.5;
}

/* Arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;           /* arrow color */
    top: 50%;
    transform: translateY(-50%);
}

/* Pagination bullets */
.swiper-pagination {
    bottom: 10px;
}
/* Position arrows further from edges */
.swiper-button-next {
    right: 10% !important; /* adjust distance from right edge */
}

.swiper-button-prev {
    left: 10% !important; /* adjust distance from left edge */
}

/* Style arrows as white arrows inside #00263A circles */
.swiper-button-next,
.swiper-button-prev {
 width: 50px !important;
    height: 50px !important;
    background-color: #00263A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px !important; /* adjust arrow size */
    color: #ffffff;
}

/* Optional: hover effect */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #003050; /* slightly lighter on hover */
}
/* Pagination bullets below the slider */
.event-gallery-fullwidth .swiper-pagination {
    bottom: 10px; /* distance below the slider */
}

/* Default bullet color */
.event-gallery-fullwidth .swiper-pagination-bullet {
    background-color: #D9D9D9;
    opacity: 1; /* remove default transparency */
}

/* Active bullet color */
.event-gallery-fullwidth .swiper-pagination-bullet-active {
    background-color: #7C7979;

}
.swiper-pagination {
    position: relative !important;
    margin-top: 20px !important;
}

.event-gallery-fullwidth .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 650px; /* adjust as needed */
  overflow: hidden;

}

.event-gallery-fullwidth .swiper-slide img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

/* Tablet */
@media (max-width: 1024px) {
  .event-gallery-fullwidth .swiper-slide {
    height: 500px;
  }
  .events-banner {
    height: auto;
}
}

/* Mobile */
@media (max-width: 768px) {
  .event-gallery-fullwidth .swiper-slide {
    height: 350px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .event-gallery-fullwidth .swiper-slide {
    height: 250px;
  }
  .events-filter input, .events-filter select {
    width: 300px;
}

}
.team-slide {
    display: flex;
    min-height: 700px;
}

.team-content {
    width: 50%;
    background: #002c45;
    color: #fff;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-content-inner {
    width: 100%;
    max-width: 520px;
    padding: 80px;
}

.team-image {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

.team-name {
    color: #fff;
    font-size: 42px;
    line-height: 1;
    margin: 0 0 20px;
}

.team-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.team-blurb {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.team-button {
    display: inline-block;
    background: #f15a00;
    color: #fff;
    padding: 18px 40px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.team-button:hover {
    color: #fff;
}

.team-prev,
.team-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f15a00;
    color: #fff;
    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
    line-height: 1;
}

.team-prev {
    left: 40px;
}

.team-next {
    right: 40px;
}

.team-prev span,
.team-next span {
    transform: translateY(-2px);
}

@media (max-width: 991px) {

    .team-slide {
        flex-direction: column;
    }

    .team-content,
    .team-image {
        width: 100%;
    }

    .team-image {
        min-height: 400px;
    }

    .team-content-inner {
        padding: 50px 30px;
    }

    .team-name {
        font-size: 48px;
    }

    .team-prev {
        left: 15px;
    }

    .team-next {
        right: 15px;
    }
}

.insights-featured,
.insights-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.insights-featured {
      margin-top: 30px;
}

.insights-featured-content {
    background: #002c45;
    color: #fff;
    padding: 30px;
}

.insights-featured-image img,
.insights-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insights-card {
    margin-bottom: 30px;
    background: #f3f5f7;
}

.insights-card-content {
    padding: 50px;
}

.insights-featured h2 {
    color: #fff;
    font-size: 60px;
    line-height: 1.1;
}

.insights-card h3 {
    font-size: 42px;
    line-height: 1.2;
    margin-top: 0;
}

.insights-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #f15a00;
    color: #fff;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
}

.insights-pagination {
    display: flex;
    justify-content: center;
    margin: 80px 0;
}

.insights-pagination .page-numbers {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    background: #4c5d6d;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.insights-pagination .page-numbers.current {
    background: #f15a00;
    color: #fff;
}

.insights-pagination .page-numbers:hover {
    background: #f15a00;
    color: #fff;
}

.insights-pagination .dots {
    background: transparent;
    color: #4c5d6d;
}

/* Search */

.insights-search {
    display: flex;
    justify-content: flex-end;
    margin: 30px 0;
}

.insights-search form {
    position: relative;
    width: 260px;
    max-width: 100%;
}

.insights-search input[type="search"] {
    width: 100%;
    height: 45px;

    padding: 0 60px 0 25px;

    border: 1px solid #d9d9d9;
    background: #fff;

    font-size: 18px;
    color: #002c45;

    outline: none;
}

.insights-search input[type="search"]::placeholder {
    color: #7a7a7a;
}

.insights-search button {
    position: absolute;
    top: 50%;
    right: 20px;

    transform: translateY(-50%);

    background: transparent;
    border: 0;

    padding: 0;
    margin: 0;

    cursor: pointer;
    color: #002c45;
    font-size: 20px;
}

.insights-search button:hover {
    color: #f15a00;
}

/* Mobile */

@media (max-width: 768px) {

    .insights-search {
        justify-content: center;
    }

    .insights-search form {
        width: 100%;
    }

}
.insights-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}

.insights-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.insights-share-label {
    font-size: 16px;
    font-weight: 500;
}

/* Normal article cards */

.insights-card .insights-share a {
    color: #002c45;
    text-decoration: none;
    font-size: 18px;
}

/* Featured article */

.insights-featured .insights-share a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.insights-share a:hover {
    color: #f15a00;
}

.insights-date {
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #002c45;
}

.insights-card-content h3 {
    font-weight: bold;
    color: #002c45;
}
.insights-excerpt {
    color: #002c45;
}
span.insights-share-label{
    color: #002c45;
}

.insights-featured-content .insights-date {
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
}

.insights-featured-content .insights-card-content h3 {
    font-weight: bold;
    color: #fff;
}
.insights-featured-content .insights-excerpt {
    color: #fff;
}
.insights-featured-content span.insights-share-label{
    color: #fff;
}

/* Image spacing */
.insight-single .insight-featured-image {
    margin-bottom: 30px;
}

/* Title */
.insight-single .entry-title {
    font-weight: 700;
}

/* Publish date */
.insight-single .insight-date {
    color: #00263A;
    text-transform: uppercase;
    font-weight: 600;
}

/* Space below publish date */
.insight-single .insight-meta {
    margin-bottom: 25px;
}

/* Space below share section */
.insight-single .insights-share {
    margin-bottom: 40px;
}

.wpcf7 label {
    display: block;
    margin-bottom: 0;
    font-weight: bold;
    color: #00263A;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 0;
}
span.wpcf7-form-control-wrap textarea {
       background: #e7e8e9;
    border-radius: 10px !important;
    padding-left: 20px;
    padding-right: 20px;
}

.wpcf7 br {
    display: none;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
    height: 36px;
    padding: 0;
    line-height: 36px;
}/* ===========================
   Insights Responsive
=========================== */

@media (max-width: 991px) {

    .insights-featured,
    .insights-card {
        display: flex;
        flex-direction: column;
    }

    .insights-featured-content,
    .insights-card-content {
        padding: 35px;
    }

    .insights-featured h2 {
        font-size: 42px;
    }

    .insights-card h3 {
        font-size: 32px;
    }

    .insights-featured-image,
    .insights-card-image {
        order: -1;
    }

    .insights-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .insights-share {
        flex-wrap: wrap;
    }

    .insights-search {
        justify-content: center;
    }

    .insights-search form {
        width: 100%;
        max-width: 500px;
    }

}

@media (max-width: 767px) {

    .insights-featured-content,
    .insights-card-content {
        padding: 25px;
    }

    .insights-featured h2 {
        font-size: 32px;
    }

    .insights-card h3 {
        font-size: 26px;
    }

    .insights-btn {
        width: 100%;
        text-align: center;
    }

    .insights-actions {
        gap: 15px;
    }

    .insights-share {
        width: 100%;
    }

    .insights-share-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .insights-pagination {
        margin: 40px 0;
        flex-wrap: wrap;
    }

    .insights-pagination .page-numbers {
        margin: 4px;
    }

}@media (max-width: 991px) {

    .insights-featured-image img,
    .insights-card-image img {
        height: auto;
    }

}