/* ===========================================================================
   Blog styles — The Thar Resort
   ---------------------------------------------------------------------------
   Everything here is scoped under .blog-modern (listing) or .blog-single
   (detail), so none of it can leak into the rest of the site's stylesheet.
   Palette is taken from style.css: #d1852e accent, #2c251e / #3d3830 text,
   #ede1d5 cream, Archivo body / Prata headings.
   =========================================================================== */

/* style.css sets `p { text-align: justify }` for the whole site. In the narrow
   columns of a card grid that stretches the word spacing badly, so every
   paragraph inside a blog component is put back to normal left alignment.
   The article body itself is left justified, to match the rest of the site. */
.blog-modern p,
.blog-single .blog-widget p,
.blog-single .blog-cta p,
.blog-single .blog-empty p,
.blog-related p {
    text-align: left;
}

.blog-modern__sub,
.blog-empty p,
.blog-cta p {
    text-align: center !important;
}

:root {
    --blog-accent: #d1852e;
    --blog-accent-dark: #b06f22;
    --blog-ink: #2c251e;
    --blog-body: #5c5a5a;
    --blog-cream: #ede1d5;
    --blog-line: #e7ded4;
    --blog-radius: 14px;
    --blog-shadow: 0 4px 24px rgba(44, 37, 30, .07);
    --blog-shadow-hover: 0 14px 38px rgba(44, 37, 30, .14);
}

/* ── Section shell ─────────────────────────────────────────────────────── */
.blog-modern {
    padding: 80px 0 90px;
    background: #fff;
}

.blog-modern__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 42px;
}

.blog-modern__eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--blog-accent);
    margin-bottom: 12px;
}

.blog-modern__title {
    font-family: prata, serif;
    font-size: 38px;
    line-height: 1.2;
    color: var(--blog-ink);
    margin: 0 0 14px;
}

.blog-modern__sub {
    font-size: 16px;
    color: var(--blog-body);
    margin: 0;
}

/* ── Toolbar: search + category pills ──────────────────────────────────── */
.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 26px;
    margin-bottom: 38px;
    border-bottom: 1px solid var(--blog-line);
}

.blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-cat {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--blog-line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-ink);
    text-decoration: none;
    transition: .25s;
    background: #fff;
}

.blog-cat:hover {
    border-color: var(--blog-accent);
    color: var(--blog-accent);
    text-decoration: none;
}

.blog-cat.is-active {
    background: var(--blog-accent);
    border-color: var(--blog-accent);
    color: #fff;
}

.blog-cat .count {
    opacity: .6;
    font-weight: 500;
}

.blog-search {
    position: relative;
    flex: 0 0 300px;
    max-width: 100%;
}

.blog-search input {
    width: 100%;
    height: 46px;
    padding: 0 46px 0 18px;
    border: 1px solid var(--blog-line);
    border-radius: 999px;
    font-size: 15px;
    color: var(--blog-ink);
    background: #fff;
    outline: none;
    transition: .25s;
}

.blog-search input:focus {
    border-color: var(--blog-accent);
    box-shadow: 0 0 0 4px rgba(209, 133, 46, .12);
}

.blog-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--blog-accent);
    color: #fff;
    cursor: pointer;
    transition: .25s;
}

.blog-search button:hover {
    background: var(--blog-accent-dark);
}

/* ── Featured post ─────────────────────────────────────────────────────── */
.blog-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    border: 1px solid var(--blog-line);
    border-radius: var(--blog-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--blog-shadow);
    margin-bottom: 48px;
    transition: .3s;
}

.blog-featured:hover {
    box-shadow: var(--blog-shadow-hover);
}

.blog-featured__media {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.blog-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.blog-featured:hover .blog-featured__media img {
    transform: scale(1.05);
}

.blog-featured__body {
    padding: 40px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured__body .post-card__title {
    font-size: 27px;
}

/* In a card the excerpt sits above "Read More", which is pushed to the bottom
   by margin-top:auto. The featured body is vertically centred instead, so that
   auto margin would open a large gap — reset it here. */
.blog-featured__body .post-card__more {
    margin-top: 0;
}

/* ── Card grid ─────────────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--blog-line);
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--blog-shadow-hover);
}

.post-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--blog-cream);
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.post-card:hover .post-card__media img {
    transform: scale(1.06);
}

.blog-chip {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--blog-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.blog-chip:hover {
    background: var(--blog-accent);
    color: #fff;
    text-decoration: none;
}

.post-card__body {
    padding: 26px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--blog-body);
}

.post-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.post-card__meta i {
    color: var(--blog-accent);
    font-size: 13px;
}

.post-card__title {
    font-family: prata, serif;
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.post-card__title a {
    color: var(--blog-ink);
    text-decoration: none;
    transition: color .25s;
}

.post-card__title a:hover {
    color: var(--blog-accent);
    text-decoration: none;
}

.post-card__excerpt {
    font-size: 15px;
    line-height: 1.75;
    color: var(--blog-body);
    margin: 0 0 20px;
}

.post-card__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--blog-accent);
    text-decoration: none;
    align-self: flex-start;
}

.post-card__more i {
    transition: transform .25s;
}

.post-card__more:hover {
    color: var(--blog-accent-dark);
    text-decoration: none;
}

.post-card__more:hover i {
    transform: translateX(5px);
}

/* ── Empty state ───────────────────────────────────────────────────────── */
.blog-empty {
    text-align: center;
    padding: 70px 20px;
    border: 1px dashed var(--blog-line);
    border-radius: var(--blog-radius);
    background: #fdfbf9;
}

.blog-empty i {
    font-size: 34px;
    color: var(--blog-accent);
    opacity: .5;
    margin-bottom: 16px;
    display: block;
}

.blog-empty h3 {
    font-family: prata, serif;
    font-size: 23px;
    color: var(--blog-ink);
    margin: 0 0 10px;
}

.blog-empty p {
    color: var(--blog-body);
    margin: 0 0 18px;
}

/* ── Pagination ────────────────────────────────────────────────────────── */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 55px;
}

.blog-pagination a,
.blog-pagination span {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blog-line);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--blog-ink);
    text-decoration: none;
    background: #fff;
    transition: .25s;
}

.blog-pagination a:hover {
    border-color: var(--blog-accent);
    color: var(--blog-accent);
    text-decoration: none;
}

.blog-pagination .is-current {
    background: var(--blog-accent);
    border-color: var(--blog-accent);
    color: #fff;
}

.blog-pagination .is-gap {
    border: 0;
    background: none;
    min-width: 20px;
    padding: 0;
}

/* ===========================================================================
   Detail page
   =========================================================================== */
.blog-single {
    padding: 80px 0 90px;
    background: #fff;
}

.blog-single__crumbs {
    font-size: 14px;
    color: var(--blog-body);
    margin-bottom: 18px;
}

.blog-single__crumbs a {
    color: var(--blog-accent);
    text-decoration: none;
}

.blog-single__title {
    font-family: prata, serif;
    font-size: 36px;
    line-height: 1.28;
    color: var(--blog-ink);
    margin: 0 0 18px;
}

.blog-single__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 0 0 28px;
    padding: 0 0 24px;
    list-style: none;
    border-bottom: 1px solid var(--blog-line);
    font-size: 14px;
    color: var(--blog-body);
}

.blog-single__meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-single__meta i {
    color: var(--blog-accent);
}

.blog-single__cover {
    border-radius: var(--blog-radius);
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--blog-cream);
}

.blog-single__cover img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-single__content {
    font-size: 16.5px;
    line-height: 1.9;
    color: var(--blog-body);
}

.blog-single__content h2,
.blog-single__content h3,
.blog-single__content h4,
.blog-single__content h5 {
    font-family: prata, serif;
    color: var(--blog-ink);
    line-height: 1.35;
    margin: 34px 0 14px;
}

.blog-single__content h2 { font-size: 27px; }
.blog-single__content h3 { font-size: 24px; }
.blog-single__content h4 { font-size: 21px; }
.blog-single__content h5 { font-size: 18px; }

.blog-single__content p {
    margin: 0 0 18px;
}

.blog-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0 22px;
}

.blog-single__content ul,
.blog-single__content ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.blog-single__content li {
    margin-bottom: 9px;
}

.blog-single__content blockquote {
    margin: 26px 0;
    padding: 22px 26px;
    border-left: 4px solid var(--blog-accent);
    background: #fdf7f1;
    border-radius: 0 10px 10px 0;
    font-size: 17px;
    color: var(--blog-ink);
}

.blog-single__content a {
    color: var(--blog-accent);
    text-decoration: underline;
}

/* Share row */
.blog-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid var(--blog-line);
}

.blog-share span {
    font-weight: 700;
    color: var(--blog-ink);
    font-size: 14px;
    letter-spacing: .4px;
}

.blog-share a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--blog-line);
    color: var(--blog-ink);
    text-decoration: none;
    transition: .25s;
}

.blog-share a:hover {
    background: var(--blog-accent);
    border-color: var(--blog-accent);
    color: #fff;
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.blog-aside {
    position: sticky;
    top: 110px;
}

.blog-widget {
    border: 1px solid var(--blog-line);
    border-radius: var(--blog-radius);
    padding: 26px 24px;
    margin-bottom: 26px;
    background: #fff;
}

.blog-widget__title {
    font-family: prata, serif;
    font-size: 19px;
    color: var(--blog-ink);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--blog-line);
    position: relative;
}

.blog-widget__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 46px;
    height: 2px;
    background: var(--blog-accent);
}

.blog-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Recent posts */
.recent-post {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--blog-line);
}

.recent-post:first-child { padding-top: 0; }
.recent-post:last-child  { border-bottom: 0; padding-bottom: 0; }

.recent-post__thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 62px;
    border-radius: 9px;
    overflow: hidden;
    background: var(--blog-cream);
}

.recent-post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}

.recent-post:hover .recent-post__thumb img {
    transform: scale(1.08);
}

.recent-post__title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 5px;
}

.recent-post__title a {
    color: var(--blog-ink);
    text-decoration: none;
}

.recent-post__title a:hover {
    color: var(--blog-accent);
    text-decoration: none;
}

.recent-post__date {
    font-size: 12px;
    color: var(--blog-body);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Category list */
.cat-list li {
    border-bottom: 1px dashed var(--blog-line);
}

.cat-list li:last-child { border-bottom: 0; }

.cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    color: var(--blog-ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: .25s;
}

.cat-list a:hover {
    color: var(--blog-accent);
    padding-left: 5px;
    text-decoration: none;
}

.cat-list .count {
    font-size: 12px;
    background: var(--blog-cream);
    color: var(--blog-ink);
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: 600;
}

/* Booking call-out */
.blog-cta {
    border-radius: var(--blog-radius);
    padding: 30px 26px;
    text-align: center;
    color: #fff;
    background: linear-gradient(150deg, #3d3830, #2c251e);
}

.blog-cta h4 {
    font-family: prata, serif;
    font-size: 21px;
    margin: 0 0 10px;
    color: #fff;
}

.blog-cta p {
    font-size: 14.5px;
    opacity: .85;
    margin: 0 0 20px;
    line-height: 1.7;
}

.blog-cta .btn-book {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--blog-accent);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: .25s;
}

.blog-cta .btn-book:hover {
    background: #fff;
    color: var(--blog-ink);
    text-decoration: none;
}

/* ── Related posts ─────────────────────────────────────────────────────── */
.blog-related {
    margin-top: 70px;
    padding-top: 45px;
    border-top: 1px solid var(--blog-line);
}

.blog-related__title {
    font-family: prata, serif;
    font-size: 27px;
    color: var(--blog-ink);
    margin: 0 0 28px;
}

.blog-related .blog-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .blog-grid,
    .blog-related .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured__media { min-height: 260px; }
    .blog-featured__body { padding: 30px 28px; }
    .blog-modern__title { font-size: 31px; }
    .blog-single__title { font-size: 29px; }
    .blog-aside { position: static; margin-top: 46px; }
}

@media (max-width: 767px) {
    .blog-modern,
    .blog-single { padding: 55px 0 65px; }
    .blog-grid,
    .blog-related .blog-grid { grid-template-columns: 1fr; }
    .blog-toolbar { flex-direction: column; align-items: stretch; }
    .blog-search { flex: 1 1 auto; }
    .blog-modern__title { font-size: 26px; }
    .blog-single__title { font-size: 25px; }
    .blog-featured__body .post-card__title { font-size: 22px; }
}
