.post-item {
    background: var(--bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
}

.post-item-related {
    background: var(--bs-body-bg);
    overflow: hidden;
    padding: 10px 10px;
    transition: transform 0.3s ease;
    width: 100%;
    border-radius: 20px;
}

.post-item-related .post-image {
    border-radius: 12px !important;
}
/* Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;

}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-scroll-x-md {
        display: grid;
        grid-auto-flow: column;
        overflow-x: scroll;
        gap: 20px;
    }

    .grid-scroll-x-sm .post-item {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-wrapper-row {
        flex-direction: column;
    }

    .grid-scroll-x-sm {
        display: grid;
        grid-auto-flow: column;
        overflow-x: scroll;
        gap: 20px;
    }

    .grid-scroll-x-sm .post-item {
        width: 250px;
    }
}

.post-item:hover {
    transform: translateY(-5px);
}

.post-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-wrapper-row {
    display: flex;
    /* flex-direction: column; */
    /* height: 100%; */
}

.post-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-image-wrapper-row {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    flex-basis: 35%;
    flex-grow: 0;
    flex-shrink: 0;
}

.post-image-wrapper-related {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    flex-basis: 30%;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 10px;
}

.post-image-wrapper-related .post-image, .post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out, transform 0.4s ease-in-out;
    opacity: 0;
    /* border-radius: 0 !important; */
}
.post-item-related-title{
    margin-bottom: 10px;
    font-style: italic;
    border-left: 5px solid;
    padding-left: 10px;
    color: var(--text-color-light);
}

.post-image.loaded {
    opacity: 1;
}

.post-image-link:hover .post-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;

    /* transition: transform 0.3s ease; */

}

.post-image-link:hover .image-overlay {
    opacity: 1;
    /* transition: transform 0.3s ease; */
}

.read-more {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag {
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-tag:hover {
    background: #fff;
    color: #2c3e50;
}

.post-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.post-meta i {
    margin-right: 5px;
}

.post-title {
    margin: 0 0 15px;
    font-size: 1.5rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--text-color);
}

.post-excerpt {

    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-excerpt a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* .post-excerpt a:hover {
    color: #34495e;
} */

.post-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    gap: 12px;
    color: #34495e;
}

.posts-grid-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem !important
}

.lh-30 {
    line-height: 30px;
}

.post-container {
    background-color: var(--body);
}

.hero-section {
    /* height: 70vh; */
    /* min-height: 500px; */
    max-height: 90vh;
    overflow: hidden;
}


@media (max-width: 768px) {

    /* .hero-section {
        max-height: 40vh;
        min-height: 300px;
    } */
    .hero-overlay{
        display: none;
    }
    .hero-content{
        position: relative !important;
        background-color: var(--body);
        color: var(--text-color) !important;
    }
    .two-columns-grid {
        display: grid;
        grid-auto-flow: column;
        overflow-x: scroll;
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 1.3rem !important;
    }

    .sm-fs-7 {
        font-size: 0.75rem !important;
    }

    .post-item-related .post-title {
        font-size: 1.2rem !important;
    }

    .post-item-related .post-excerpt {
        display: none;
    }
}

.slide-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.two-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.two-columns-grid>article:nth-child(3) {
    grid-column: 1 / -1;
}

.hero-image {
    position: relative;
    height: 100%;
}

.hero-image img {
    object-fit: cover;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 90%))
}

.article-popup-image{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #000000a9;
    z-index: 10000;
    align-items: center;
    text-align: center;
    justify-content: center;
    display: none;
}
.article-popup-image-img{
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
}
.article-popup-image-close{
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.hero-content {
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    color: white;
}

.travel-meta {
    font-size: 1.1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-5px);
}

.tip-item i {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.tip-item h6 {
    margin-bottom: 0.5rem;
    color: #333;
}

.tip-item p {
    color: #666;
    margin-bottom: 0;
}

.latest-posts .post-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

/* .latest-posts .post-item:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
} */

.newsletter-form .form-control {
    border-radius: 20px 0 0 20px;
}

.newsletter-form .btn {
    border-radius: 0 20px 20px 0;
}

.article-text img {
    cursor: pointer;
}

.article-text img {
    max-width: 100%;
    height: auto !important;
    display: block;
    border-radius: 15px;
}

.article-content .content-wrapper {
    background-color: var(--bg);
}

.posts-grid-row>article:nth-child(1) .post-wrapper-row,
.posts-grid-row>article:nth-child(4) .post-wrapper-row,
.posts-grid-row>article:nth-child(7) .post-wrapper-row {
    display: block;
}


.related-post {
    padding: 30px 20px;
    color: #0f5132 !important;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 10px;
    margin: 1em 0;
    /* font-style: italic; */
}

.related-post a {
    color: #0f5132 !important;
}

.section-title {
    padding: 0px 7px;
    margin-bottom: 15px;
    margin-top: 15px;
}

html[dir="rtl"] .section-title {
    border-right: 5px solid #ff4d4d;
}

html[dir="ltr"] .section-title {
    border-left: 5px solid #ff4d4d;
}


.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}