/*
Theme Name: Discover India
Theme URI: https://www.discover-india.in/blog/
Author: Discover India Vacations Pvt. Ltd.
Description: Blog theme matching discover-india.in. Loads the main site's assets/css/style.css and assets/js/main.js, and reuses its navigation and footer.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: discoverindia
*/
/* Blog-specific additions — fonts, colours, nav and footer come from the main site's assets/css/style.css */

/* ── Blog hero (extends .page-hero) ── */
.blog-hero::before{background-image:none!important;opacity:1!important;background:linear-gradient(135deg,rgba(201,168,76,.14),rgba(184,92,56,.08))}
.page-hero .breadcrumb,.page-hero .breadcrumb span{color:var(--muted)}

/* ── Layout ── */
.blog-wrap{max-width:1240px;margin:0 auto;padding:4rem 4rem 5rem}
.blog-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:3.5rem;align-items:start}

/* ── Category pills ── */
.blog-cats{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:2.5rem}
.blog-cats a{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;color:var(--muted);border:1px solid var(--border);padding:.5rem 1.1rem;background:var(--warm-white);transition:all .2s}
.blog-cats a:hover{border-color:var(--gold);color:var(--gold-dark)}
.blog-cats a.on{background:var(--ink);border-color:var(--ink);color:var(--cream)}

/* ── Post grid / cards (same look as .place-card / .dest-card) ── */
.post-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.75rem}
.post-grid.three{grid-template-columns:repeat(3,1fr)}
.post-card{display:flex;flex-direction:column;background:var(--cream);border:1px solid var(--border);overflow:hidden;text-decoration:none;color:inherit;transition:border-color .25s,transform .25s}
.post-card:hover{border-color:var(--gold);transform:translateY(-3px)}
.post-card-img{height:210px;overflow:hidden;position:relative;background:var(--gold-light)}
.post-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.post-card:hover .post-card-img img{transform:scale(1.06)}
.post-card-tag{position:absolute;top:.8rem;left:.8rem;background:var(--ink);color:var(--gold);font-size:.6rem;letter-spacing:.12em;text-transform:uppercase;padding:.3rem .7rem}
.post-card-body{padding:1.4rem 1.5rem 1.5rem;display:flex;flex-direction:column;flex:1}
.post-card-meta{display:flex;flex-wrap:wrap;gap:.9rem;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:.6rem}
.post-card-body h3{font-family:'Cormorant Garamond',serif;font-size:1.4rem;font-weight:400;line-height:1.25;color:var(--ink);margin-bottom:.55rem}
.post-card-body p{font-size:.85rem;color:var(--muted);line-height:1.75;margin-bottom:1rem}
.post-card-foot{margin-top:auto;padding-top:.85rem;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase}
.post-card-foot span:first-child{color:var(--muted)}
.post-card-foot span:last-child{color:var(--gold)}

/* ── Featured (first) post ── */
.post-card.featured{grid-column:1/-1;flex-direction:row}
.post-card.featured .post-card-img{width:55%;height:auto;min-height:300px;flex-shrink:0}
.post-card.featured h3{font-size:1.9rem}

/* ── Pagination ── */
.blog-pagination{display:flex;gap:.5rem;justify-content:center;margin-top:3rem;flex-wrap:wrap}
.blog-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 .9rem;border:1px solid var(--border);color:var(--ink);text-decoration:none;font-size:.85rem}
.blog-pagination .page-numbers:hover{border-color:var(--gold)}
.blog-pagination .current{background:var(--ink);color:var(--cream);border-color:var(--ink)}
.blog-empty{padding:3rem;border:1px dashed var(--border);text-align:center;color:var(--muted);background:var(--cream)}
.blog-empty a{color:var(--gold-dark)}

/* ── Single post ── */
.article{max-width:760px;min-width:0}
.article-meta{display:flex;flex-wrap:wrap;gap:1.25rem;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding-bottom:1.4rem;margin-bottom:2rem;border-bottom:1px solid var(--border)}
.article-feat{margin:0 0 2.25rem}
.article-feat img{width:100%;height:auto;display:block}
.prose{font-size:1.02rem;line-height:1.9;color:#3a2f1f}
.prose>p:first-of-type{font-size:1.15rem;color:var(--ink)}
.prose h2{font-family:'Cormorant Garamond',serif;font-weight:400;font-size:2rem;line-height:1.2;color:var(--ink);margin:2.6rem 0 1rem}
.prose h3{font-family:'Cormorant Garamond',serif;font-weight:400;font-size:1.5rem;color:var(--ink);margin:2rem 0 .8rem}
.prose p{margin-bottom:1.3rem}
.prose a{color:var(--terracotta);text-underline-offset:3px}
.prose a:hover{color:var(--gold-dark)}
.prose ul,.prose ol{margin:0 0 1.4rem 1.4rem}
.prose li{margin-bottom:.55rem}
.prose img{max-width:100%;height:auto}
.prose figure{margin:2rem 0}
.prose figcaption{font-size:.8rem;color:var(--muted);margin-top:.5rem}
.prose blockquote{margin:2rem 0;padding:1.4rem 1.8rem;background:var(--cream);border-left:3px solid var(--gold);font-family:'Cormorant Garamond',serif;font-size:1.3rem;font-style:italic;color:var(--ink)}
.prose table{border-collapse:collapse;width:100%;margin:1.8rem 0;font-size:.92rem}
.prose th,.prose td{border:1px solid var(--border);padding:.75rem .9rem;text-align:left;vertical-align:top}
.prose th{background:var(--cream);font-weight:500}
.prose .wp-block-table{overflow-x:auto}
.article-share{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--border);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase}
.article-share a{color:var(--muted);text-decoration:none;border:1px solid var(--border);padding:.45rem 1rem}
.article-share a:hover{border-color:var(--gold);color:var(--gold-dark)}

/* ── Sidebar ── */
.blog-aside{display:grid;gap:1.75rem;position:sticky;top:130px}
.blog-aside .promo-box{position:static}
.aside-box{border:1px solid var(--border);background:var(--cream);padding:1.6rem}
.aside-box h3{font-family:'Cormorant Garamond',serif;font-size:1.25rem;font-weight:400;margin-bottom:1rem}
.aside-box ul{list-style:none}
.aside-box li{border-bottom:1px solid var(--border)}
.aside-box li:last-child{border-bottom:0}
.aside-box li a{display:flex;justify-content:space-between;gap:.75rem;padding:.65rem 0;font-size:.85rem;color:var(--ink);text-decoration:none}
.aside-box li a:hover{color:var(--gold-dark)}
.aside-box li a span{color:var(--muted);font-size:.75rem}
.blog-search{display:flex}
.blog-search input[type=search]{flex:1;min-width:0;padding:.7rem .9rem;border:1px solid var(--border-input);background:var(--warm-white);font-family:'DM Sans',sans-serif;font-size:.85rem;color:var(--ink);outline:0}
.blog-search input[type=search]:focus{border-color:var(--gold)}
.blog-search button{background:var(--ink);color:var(--cream);border:0;padding:0 1.1rem;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}

/* ── CTA strip ── */
.blog-cta{background:var(--ink);color:var(--cream);padding:4rem}
.blog-cta-inner{max-width:1240px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap}
.blog-cta h2{font-family:'Cormorant Garamond',serif;font-weight:300;font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.2}
.blog-cta h2 em{color:var(--gold-light)}
.blog-cta p{font-size:.9rem;color:rgba(250,246,238,.65);margin-top:.6rem;max-width:520px}

/* ── Related ── */
.blog-related{background:var(--cream);padding:4.5rem 4rem}
.blog-related-inner{max-width:1240px;margin:0 auto}
.blog-related .post-card{background:var(--warm-white)}

/* ── WordPress alignment helpers ── */
.alignleft{float:left;margin:0 1.5rem 1rem 0}.alignright{float:right;margin:0 0 1rem 1.5rem}.aligncenter{display:block;margin:0 auto 1rem}
.wp-caption{max-width:100%}.screen-reader-text{position:absolute;left:-9999px}

/* ── Responsive ── */
@media (max-width:1024px){
  .blog-wrap{padding:3rem 2rem 4rem}
  .blog-layout{grid-template-columns:1fr}
  .blog-aside{position:static}
  .post-grid.three{grid-template-columns:repeat(2,1fr)}
  .blog-cta,.blog-related{padding:3.5rem 2rem}
}
@media (max-width:768px){
  .post-grid,.post-grid.three{grid-template-columns:1fr}
  .post-card.featured{flex-direction:column}
  .post-card.featured .post-card-img{width:100%;min-height:220px}
  .post-card.featured h3{font-size:1.5rem}
}
@media (max-width:480px){
  .blog-wrap{padding:2.25rem 1.25rem 3rem}
  .blog-cta,.blog-related{padding:2.75rem 1.25rem}
}
