/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/


/*************** HERO BANNER ***************/
.ts-hero-banner {
    position: relative;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 50px;
    margin-bottom: 40px;
    color: #fff;
    z-index: 10;
}

.ts-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.ts-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

.ts-hero-title {
    color: #fff !important;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

/*************** BREADCRUMBS ***************/
.ts-breadcrumbs {
    padding: 0px 0 0px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.content-area>.container.container-full {
    padding: 0 !important;
}

.ts-breadcrumb-item a {
    color: #0b5e8c;
    text-decoration: none;
}

.ts-breadcrumb-item a:hover {
    text-decoration: underline;
}

.ts-separator {
    margin: 0 10px;
    color: #999;
    font-weight: bold;
}

.ts-current {
    color: #333;
    font-weight: 500;
}

@media only screen and (max-width: 48em) {
    .ts-hero-banner {
        height: 220px;
        padding: 0 20px;
    }

    .ts-hero-title {
        font-size: 21px;
    }
}

/* GALLERY SLIDER */
.ts-gallery-wrapper {
    width: 100%;
}

.ts-main-slider {
    width: 100%;
    /* height: 400px; */
    height: 100%;
    border-radius: 10px;
}

.ts-main-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: brightness(0.8);
}

.ts-thumbs-slider {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

.swiper-slide.swiper-slide-active {
    height: stretch;
}

.ts-thumbs-slider .swiper-slide {
    width: auto;
    height: 100%;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.ts-thumbs-slider .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #0b5e8c;
    border-radius: 5px;
}

.ts-thumbs-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    aspect-ratio: 1/1;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

@media (max-width: 768px) {
    .ts-main-slider {
        height: 250px;
    }

    .ts-thumbs-slider {
        height: 60px;
    }
}

/* ADD MOBILE ONLY CSS HERE */
@media (max-width: 768px) {}

/*************** BLOG EQUAL HEIGHTS ***************/
.blog-archive .post-item {
    height: 100% !important;
}

.blog-archive .post-item .col-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.blog-archive .box-text {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding: 20px !important;
    text-align: left !important;
}

.blog-archive .box-text .entry-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.4;
    min-height: 2.8em;
    /* Force 2 lines height */
    overflow: hidden;
}

.blog-archive .box-text p {
    flex: 1 0 auto;
    margin-bottom: 15px;
}

.blog-archive .box-text .op-read-more {
    margin-top: auto;
}

/*************** TEAM BUILDING ALBUMS ***************/
.isa-album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.isa-album-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.isa-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.isa-album-thumb {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.isa-album-info {
    padding: 15px;
    text-align: center;
}

.isa-album-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0b5e8c;
}

@media (max-width: 991px) {
    .isa-album-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .isa-album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .isa-album-thumb {
        height: 160px;
    }

    .isa-album-title {
        font-size: 14px;
    }
}

/*************** PAGINATION STYLING ***************/
.isa-pagination {
    margin: 30px 0;
    text-align: center;
}

.isa-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    background: #f1f1f1;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.isa-pagination .page-numbers.current {
    background: #0b5e8c;
    color: #fff;
}

.isa-pagination .page-numbers:hover:not(.current) {
    background: #ddd;
}


/*************** BLOG PAGE FIXES ***************/
body.blog .post-item .col-inner,
body.archive:not(.post-type-archive-team_album) .post-item .col-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

body.blog .post-item .box-text,
body.archive:not(.post-type-archive-team_album) .post-item .box-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: left !important;
}

body.blog .row.large-columns-3,
body.archive:not(.post-type-archive-team_album) .row.large-columns-3 {
    margin-left: -10px !important;
    margin-right: -10px !important;
}

body.blog .post-item,
body.archive:not(.post-type-archive-team_album) .post-item {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-bottom: 20px;
}

/*************** PAGINATION UNIFIED STYLE ***************/
/* Target both standard Flatsome, custom, and Tour/Hotel pagination */
.nav-pagination,
.isa-pagination,
.ts-pagination,
.nav-pagination li,
.isa-pagination li,
.ts-pagination li {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    list-style: none !important;
}

.nav-pagination li,
.isa-pagination li,
.ts-pagination li {
    margin: 0 !important;
}

.nav-pagination li a,
.nav-pagination li span,
.isa-pagination .page-numbers,
.ts-pagination .page-numbers {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    /* Force circular */
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #333 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    line-height: 1 !important;
}

.nav-pagination li .current,
.isa-pagination .page-numbers.current,
.ts-pagination .page-numbers.current {
    background: #0b5e8c !important;
    color: #fff !important;
    border-color: #0b5e8c !important;
}

.nav-pagination li a:hover,
.isa-pagination .page-numbers:hover:not(.current),
.ts-pagination .page-numbers:hover:not(.current) {
    background: #eef7fd !important;
    border-color: #0b5e8c !important;
    color: #0b5e8c !important;
}

.ts-archive-sidebar .ts-sidebar-card.widget>ul>li+li,
ul.menu>li+li {
    border: none !important;
}

.ts-archive-sidebar .ts-sidebar-card.widget>ul>li>a,
.widget>ul>li>span:first-child,
ul.menu>li>a,
ul.menu>li>span:first-child {
    padding: 0 !important;
}

/* SIDEBAR COUNT STYLING */
/* --- UNIFIED SIDEBAR STYLING (MATCH TOUR/HOTEL) --- */
.ts-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.ts-sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #0b5e8c !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ts-sidebar-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ts-sidebar-list li {
    margin-bottom: 12px !important;
    margin-left: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f9f9f9 !important;
    padding-bottom: 8px !important;
}

.ts-sidebar-list li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.ts-sidebar-list li a {
    color: #555 !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block !important;
}

.ts-sidebar-list li.active a,
.ts-sidebar-list li a:hover {
    color: #0b5e8c !important;
    font-weight: 700 !important;
}

.ts-sidebar-list li a .count {
    font-size: 0.85em;
    color: #999;
    margin-left: 5px;
    font-weight: normal;
}

/* Responsive Grid Adjustments */
.ts-archive-row {
    display: flex;
    gap: 30px;
}

.ts-archive-sidebar {
    width: 25% !important;
}

.ts-archive-main {
    width: 75% !important;
}

@media (max-width: 991px) {
    .ts-archive-row {
        flex-direction: column;
        gap: 0;
    }

    .ts-archive-sidebar {
        width: 100% !important;
        margin-bottom: 30px;
    }

    .ts-archive-main {
        width: 100% !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    body.blog .row,
    body.archive:not(.post-type-archive-team_album) .row {
        display: flex;
        flex-wrap: wrap;
    }

    body.blog .post-item,
    body.archive:not(.post-type-archive-team_album) .post-item {
        width: 50% !important;
        flex-basis: 50%;
    }
}

@media (max-width: 767px) {

    body.blog .post-item,
    body.archive:not(.post-type-archive-team_album) .post-item {
        width: 100% !important;
        flex-basis: 100%;
    }
}



/*************** TEAM ALBUM SINGLE PAGE ***************/
.single-team_album .main-sidebar {
    display: none !important;
}

.single-team_album .large-9 {
    width: 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    border: none !important;
}

.single-team_album .post-item {
    margin-bottom: 0;
}

/*************** TEAM ALBUM SINGLE PAGE FINAL ***************/
body.single-team_album .post-sidebar,
body.single-team_album .large-3.col {
    display: none !important;
}

body.single-team_album .large-9.col {
    width: 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    border: none !important;
}

body.single-team_album .container {}

body.single-team_album .isa-photo-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 991px) {
    body.single-team_album .isa-photo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    body.single-team_album .isa-photo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}