/**
 * ThBlog - Blog Module - Homepage Slider Styles
 *
 * @author    THECON
 * @copyright THECON
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

.thblog-home-section .swiper-wrapper {
    /*padding: 0 20px;*/
}

/* ========= Card styling - match gastro theme ========= */
.thblog-home-section .thblog-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 15px;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateY(0);
    will-change: transform;
}

.thblog-home-section .thblog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Card image */
.thblog-card-image {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.thblog-card-image img {
    transition: transform 0.3s ease;
}

.thblog-card:hover .thblog-card-image img {
    transform: scale(1.05);
}

.thblog-card-image-link {
    text-decoration: none;
}

/* Slide width */
.thblog-home-section .swiper-slide {
    min-width: 320px;
}

/* Card body */
.thblog-home-section .card-body {
    padding: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

/* Card meta smaller */
.thblog-card-meta {
    margin-bottom: 8px !important;
    margin-top: 4px !important;
    gap: 10px !important;
    font-size: 0.8rem;
}

.thblog-card-date {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

/* Card date inline with meta */
.thblog-card-date-inline {
    font-size: 0.85rem;
    color: #6c757d;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.thblog-card-date-inline .material-icons {
    color: var(--th-color-main-green, #1EC3A4);
}

/* Card meta (author, comments) */
.thblog-card-meta {
    font-size: 0.85rem;
    color: #6c757d;
    font-family: 'Inter', sans-serif;
}

.thblog-card-author,
.thblog-card-comments {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.thblog-card-author svg,
.thblog-card-comments svg {
    width: 13px;
    height: 13px;
}

/* Card title */
.thblog-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    font-family: 'Inter', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thblog-card-title a {
    color: var(--th-color-dark-blue, #00181C);
    text-decoration: none;
    transition: color 0.3s ease;
}

.thblog-card-title a:hover {
    color: var(--th-color-main-green, #1EC3A4);
}

/* Read more link */
.thblog-card-readmore {
    margin-top: auto;
    padding-top: 12px;
}

.thblog-card-readmore a {
    color: var(--th-color-main-green, #1EC3A4);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.thblog-card-readmore a .material-icons {
    font-size: 14px;
    line-height: 1;
}

.thblog-card-readmore a:hover {
    color: var(--th-color-dark-blue, #00181C);
}

/* Swiper horizontal */
.thblog-home-section .swiper-horizontal {
    padding: 0 10px;
    margin-left: -20px;
    margin-right: -20px;
}

/* Section header */
.thblog-home-section .th_section_head {
    margin-bottom: 20px;
    text-align: center;
}

.thblog-home-section .th_section_title a {
    color: var(--th-color-dark-blue, #00181C);
    text-decoration: none;
}

.thblog-home-section .th_section_subtitle {
    color: var(--th-color-main-green, #1EC3A4);
    font-family: 'Inter', sans-serif;
}

/* ========= Section ========= */
.thblog-home-section {
    padding: 50px 0 30px;
    background-color: #ffffff;
}

body#index #content,
body#index .page-content,
body#index #wrapper {
    background-color: #ffffff;
}

/* ========= Wrapper ========= */
.thblog-home-wrapper {
    position: relative;
}

/* ========= Slider ========= */
.thblog-home-slider {
    padding-bottom: 60px !important;
}

/* ========= View All Button ========= */
.thblog-home-footer {
    padding: 0 0 30px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.thblog-home-viewall-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: var(--th-color-main-green, #1EC3A4);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.thblog-home-viewall-btn:hover {
    background-color: var(--th-color-dark-blue, #00181C);
    color: #fff;
    text-decoration: none;
}

.thblog-home-viewall-btn .material-icons {
    font-size: 18px;
}

/* ========= Navigation - hidden ========= */
.thblog-home-nav {
    display: none;
}

/* ========= Pagination - hidden ========= */
.thblog-home-pagination {
    display: none;
}

/* ========= Responsive ========= */
@media (max-width: 767px) {
    .thblog-home-nav {
        display: none;
    }
}