/* Travel Guide (Blog Index) Stylesheet */

.blog-hero {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    border-radius: 24px; /* Contained and rounded corner layout */
}

.blog-hero__eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #38b48b;
    margin-bottom: 12px;
}

.blog-hero__title {
    font-family: "Lora", Georgia, serif;
    font-size: clamp(2.8rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 20px;
    max-width: 800px;
}

.blog-hero__lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 650px;
}

/* Search Bar Pill style */
.blog-search-container {
    background: #ffffff;
    border-radius: 40px;
    padding: 6px;
    display: flex;
    align-items: center;
    max-width: 580px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-search-form {
    display: flex;
    width: 100%;
    position: relative;
}

.blog-search-form input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 60px 12px 24px;
    font-size: 1rem;
    color: #283638;
}

.blog-search-form input::placeholder {
    color: #8fa09d;
}

.blog-search-form button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0e8a63;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-search-form button:hover {
    background: #0b6d4e;
    transform: translateY(-50%) scale(1.05);
}

/* Category Tabs Row */
.blog-categories-wrapper {
    background: #f5efe4; /* Warm peach/cream background color */
    border: 1px solid rgba(14, 78, 59, 0.05);
    border-radius: 24px; /* Contained and rounded corner layout */
    padding: 24px 30px;
}

.blog-categories-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
}

.blog-categories-list::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #5f736f;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding-bottom: 8px;
}

.category-tab__icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(14, 138, 99, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f736f;
    font-size: 1.2rem;
    transition: all 0.25s ease;
}

.category-tab:hover {
    color: #0e8a63;
}

.category-tab:hover .category-tab__icon-box {
    background: #eef7f3;
    border-color: #0e8a63;
    color: #0e8a63;
    transform: translateY(-3px);
}

.category-tab.active {
    color: #0e8a63;
}

.category-tab.active .category-tab__icon-box {
    background: #eef7f3;
    border-color: #0e8a63;
    color: #0e8a63;
}

.category-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: #0e8a63;
    border-radius: 2px;
}

/* Sections Header (Titles) */
.blog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #eff3f2;
    padding-bottom: 16px;
}

.blog-section-title {
    font-family: "Lora", Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #10382c;
    margin: 0;
}

.blog-section-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0e8a63;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.blog-section-link:hover {
    color: #0b6d4e;
}

.blog-section-link:hover i {
    transform: translateX(4px);
}

.blog-section-link i {
    transition: transform 0.2s ease;
}

/* General badges */
.blog-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(14, 138, 99, 0.1);
    color: #0e8a63;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Featured Section Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 28px;
}

.featured-left {
    grid-column: span 7;
}

.featured-right {
    grid-column: span 5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Large Featured Card */
.featured-card-large {
    display: block;
    position: relative;
    height: 100%;
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(16, 56, 44, 0.06);
    border: 1px solid rgba(14, 78, 59, 0.05);
}

.featured-card-large__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card-large:hover .featured-card-large__img {
    transform: scale(1.04);
}

.featured-card-large__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 25, 20, 0.95) 0%, rgba(7, 25, 20, 0.5) 55%, rgba(0, 0, 0, 0.1) 100%);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

.featured-card-large__badge {
    align-self: flex-start;
    background: #0e8a63;
    color: #ffffff;
    margin-bottom: 20px;
}

.featured-card-large__title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #ffffff;
}

.featured-card-large__desc {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 580px;
}

.featured-card-large__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
}

.featured-card-large__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
}

.featured-card-large__meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Small Featured Cards */
.featured-card-small {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(16, 56, 44, 0.03);
    border: 1px solid rgba(14, 78, 59, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card-small:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(16, 56, 44, 0.08);
}

.featured-card-small__img-box {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.featured-card-small__img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card-small:hover .featured-card-small__img-box img {
    transform: scale(1.05);
}

.featured-card-small__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #0e8a63;
    color: #ffffff;
    z-index: 2;
}

.featured-card-small__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-card-small__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #10382c;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-small__meta {
    margin-top: auto;
    font-size: 0.8rem;
    color: #8fa09d;
}

/* Latest Section Grid */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.latest-carousel {
    position: relative;
}

.latest-carousel__viewport {
    min-width: 0;
}

.latest-carousel__nav {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(14, 138, 99, 0.16);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(16, 56, 44, 0.12);
    color: #0e8a63;
    cursor: pointer;
    display: none;
    height: 40px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 40px;
    z-index: 3;
}

.latest-carousel__nav:hover {
    background: #0e8a63;
    color: #ffffff;
}

.latest-carousel__nav:active {
    transform: translateY(-50%) scale(0.96);
}

.latest-carousel__nav--prev {
    left: -18px;
}

.latest-carousel__nav--next {
    right: -18px;
}

.latest-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(14, 78, 59, 0.05);
    box-shadow: 0 4px 15px rgba(16, 56, 44, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.latest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(16, 56, 44, 0.07);
}

.latest-card__img-box {
    height: 140px;
    overflow: hidden;
}

.latest-card__img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-card:hover .latest-card__img-box img {
    transform: scale(1.05);
}

.latest-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.latest-card__badge {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 2px 8px;
    font-size: 0.65rem;
}

.latest-card__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #10382c;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-card__meta {
    margin-top: auto;
    font-size: 0.78rem;
    color: #8fa09d;
}

/* Newsletter Subscription Box */
.blog-newsletter-section {
    /*padding: 60px 0;*/
    background: #ffffff;
}

.blog-newsletter-box {
    background: #eef4f1; /* Soft sage green background color matching image 2 */
    border-radius: 24px;
    padding: 40px 50px;
    position: relative;
    overflow: hidden;
}

.blog-newsletter-left {
    border-right: 1px solid rgba(14, 78, 59, 0.08);
    padding-right: 40px;
}

.blog-newsletter-middle {
    padding-left: 40px;
}

.blog-newsletter-box__title {
    font-family: "Lora", Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #10382c;
    margin-bottom: 12px;
}

.blog-newsletter-box__text {
    font-size: 0.95rem;
    color: #5f736f;
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
}

.blog-newsletter-box__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-newsletter-box__input-wrapper {
    display: flex;
    gap: 12px;
    width: 100%;
}

.blog-newsletter-box__input-wrapper input {
    flex: 1;
    border: 1px solid #e1e7e6;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: #283638;
    background: #ffffff;
}

.blog-newsletter-box__input-wrapper input:focus {
    outline: none;
    border-color: #0e8a63;
}

.blog-newsletter-box__input-wrapper button {
    background: #0e8a63;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.blog-newsletter-box__input-wrapper button:hover {
    background: #0b6d4e;
}

.blog-newsletter-box__subtext {
    font-size: 0.78rem;
    color: #8fa09d;
    margin-top: 4px;
}

.blog-newsletter-box__visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Mobile Responsive */
@media (max-width: 1199px) {
    .latest-carousel {
        padding: 0 28px;
    }

    .latest-carousel__nav {
        display: inline-flex;
    }

    .latest-carousel__nav--prev {
        left: 0;
    }

    .latest-carousel__nav--next {
        right: 0;
    }

    .latest-grid {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        padding: 4px 2px 14px;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .latest-card {
        flex: 0 0 240px;
        scroll-snap-align: start;
    }
}

@media (max-width: 991px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-left {
        grid-column: span 12;
    }
    .featured-right {
        grid-column: span 12;
        gap: 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .featured-card-large {
        min-height: 420px;
    }
    .featured-card-small__img-box {
        height: 132px;
    }
    .featured-card-small__body {
        padding: 16px;
    }
    .featured-card-small__title {
        font-size: 0.92rem;
    }
    .blog-newsletter-box {
        padding: 40px;
    }
    .blog-newsletter-left {
        border-right: none !important;
        padding-right: 0 !important;
        margin-bottom: 20px;
    }
    .blog-newsletter-middle {
        padding-left: 0 !important;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        padding: 60px 0;
    }
    .blog-section-header {
        align-items: flex-start;
        gap: 12px;
    }
    .blog-section-title {
        font-size: 2rem;
    }
    .blog-categories-list {
        justify-content: flex-start;
        gap: 24px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .featured-card-large {
        min-height: 360px;
    }
    .featured-card-large__overlay {
        padding: 24px;
    }
    .featured-card-large__title {
        font-size: 1.65rem;
    }
    .featured-card-large__desc {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        overflow: hidden;
    }
    .featured-right {
        gap: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .featured-card-small {
        border-radius: 14px;
    }
    .featured-card-small__img-box {
        height: 112px;
    }
    .featured-card-small__badge {
        left: 10px;
        top: 10px;
    }
    .featured-card-small__body {
        padding: 13px;
    }
    .featured-card-small__title {
        font-size: 0.84rem;
        margin-bottom: 9px;
    }
    .featured-card-small__meta {
        font-size: 0.72rem;
        line-height: 1.45;
    }
    .latest-carousel {
        padding: 0 24px;
    }
    .latest-carousel__nav {
        height: 36px;
        width: 36px;
    }
    .latest-card {
        flex-basis: 220px;
    }
    .latest-card__img-box {
        height: 124px;
    }
    .blog-newsletter-box__input-wrapper {
        flex-direction: column;
    }
    .blog-newsletter-box__visual {
        display: none; /* Hide visual on mobile */
    }
}

@media (max-width: 575px) {
    .featured-right {
        gap: 12px;
    }

    .featured-card-small__img-box {
        height: 96px;
    }

    .featured-card-small__body {
        padding: 11px;
    }

    .featured-card-small__title {
        font-size: 0.78rem;
    }

    .featured-card-small__meta {
        font-size: 0.68rem;
    }

    .latest-card {
        flex-basis: min(76vw, 260px);
    }
}
