/*
Theme Name: Lalbaugcha Raja Guide
Theme URI: https://lalbaugcharajaguide.com/
Author: Lalbaugcha Raja Guide
Description: Lightweight, SEO-friendly, AdSense-conscious custom WordPress theme for LalbaugchaRajaGuide.com.
Version: 1.0.6
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: lrg
*/

:root{
  --lrg-maroon:#8b1022;
  --lrg-maroon-dark:#5f0916;
  --lrg-gold:#d99a22;
  --lrg-saffron:#eea72e;
  --lrg-cream:#fff7e8;
  --lrg-paper:#ffffff;
  --lrg-ink:#241b18;
  --lrg-muted:#6c625e;
  --lrg-border:#eadfcd;
  --lrg-soft:#fffaf2;
  --lrg-radius:16px;
  --lrg-shadow:0 10px 30px rgba(68,35,20,.08);
  --lrg-content:760px;
  --lrg-wide:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--lrg-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:17px;line-height:1.78;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:var(--lrg-maroon);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--lrg-maroon-dark)}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link:focus{clip:auto!important;width:auto;height:auto;top:8px;left:8px;background:#fff;padding:10px 14px;z-index:99999;border-radius:8px}

.site-header{border-top:3px solid var(--lrg-maroon);border-bottom:1px solid var(--lrg-border);background:var(--lrg-cream)}
.header-inner{max-width:var(--lrg-wide);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:9px 22px}
.site-branding{display:flex;align-items:center;min-width:0}
.custom-logo-link{display:block;line-height:0}
.custom-logo{display:block;width:330px;height:82px;max-width:38vw;object-fit:cover;object-position:center 46%;border-radius:2px}
.default-logo{width:330px;max-width:38vw;display:block;line-height:0}
.default-logo img{display:block;width:100%;height:auto;max-height:92px;object-fit:contain}
.primary-nav ul{display:flex;align-items:center;gap:26px;list-style:none;margin:0;padding:0}
.primary-nav a{color:#1f1b19;text-decoration:none;font-weight:650;font-size:16px}
.primary-nav a:hover,.primary-nav .current-menu-item>a{color:var(--lrg-maroon)}
.menu-toggle{display:none;border:1px solid var(--lrg-border);background:#fff;border-radius:10px;padding:10px 12px;font-size:20px;color:var(--lrg-maroon)}

.site-main-wrap{max-width:var(--lrg-wide);margin:0 auto;padding:34px 22px 56px}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:42px;align-items:start}
.content-area{min-width:0}
.sidebar{min-width:0}

.breadcrumbs{font-size:14px;color:var(--lrg-muted);margin:0 0 16px}
.breadcrumbs a{text-decoration:none}
.entry-header{margin-bottom:22px}
.entry-title{font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,4.4vw,54px);line-height:1.12;letter-spacing:-.02em;margin:0 0 12px;color:#331411}
.entry-meta{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:14px;color:var(--lrg-muted)}
.entry-content{max-width:var(--lrg-content)}
.entry-content p{margin:0 0 1.25em}
.entry-content h2,.entry-content h3,.entry-content h4{scroll-margin-top:90px;color:#351411;font-family:Georgia,"Times New Roman",serif;line-height:1.25}
.entry-content h2{font-size:32px;margin:2.1em 0 .65em;padding-bottom:.35em;border-bottom:1px solid var(--lrg-border)}
.entry-content h3{font-size:25px;margin:1.65em 0 .55em}
.entry-content h4{font-size:20px;margin:1.5em 0 .5em}
.entry-content ul,.entry-content ol{padding-left:1.35em;margin:0 0 1.35em}
.entry-content li{margin:.35em 0}
.entry-content blockquote{margin:1.6em 0;padding:18px 22px;border-left:4px solid var(--lrg-gold);background:var(--lrg-soft);border-radius:0 12px 12px 0}
.entry-content strong{color:#321710}

.wp-block-table{margin:1.3em 0 1.6em;overflow:visible}
.wp-block-table table,.entry-content table{width:100%;max-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:1.3em 0 1.6em;border:1px solid var(--lrg-border);border-radius:14px;overflow:hidden;background:#fff;font-size:15.5px;box-shadow:0 5px 18px rgba(68,35,20,.04)}
.entry-content th{background:#fff2d7;color:#4a2118;text-align:left;font-weight:750}
.entry-content th,.entry-content td{padding:13px 14px;border-bottom:1px solid var(--lrg-border);border-right:1px solid var(--lrg-border);vertical-align:top;overflow-wrap:anywhere;word-break:normal}
.entry-content th:last-child,.entry-content td:last-child{border-right:0}
.entry-content tbody tr:nth-child(even) td{background:#fffaf3}
.entry-content tr:hover td{background:#fff7e8}
.entry-content tr:last-child td{border-bottom:0}
.table-scroll{overflow:visible;margin:1.3em 0 1.6em}
.table-scroll table{margin:0;min-width:0;width:100%;table-layout:fixed}

.featured-image{margin:20px 0 28px;border-radius:18px;overflow:hidden;box-shadow:var(--lrg-shadow)}
.featured-image img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}

.home-main-wrap{padding-top:22px}
.home-intro{max-width:860px;margin:0 auto 24px;padding:0 0 18px;border-bottom:1px solid var(--lrg-border)}
.home-intro h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(36px,4.8vw,56px);line-height:1.08;letter-spacing:-.025em;color:#351411;margin:0 0 10px;overflow-wrap:anywhere}
.home-intro p{font-size:18px;line-height:1.65;color:#564944;max-width:820px;margin:0}
.home-article{max-width:860px;margin:0 auto}
.home-article .entry-content{max-width:none}
.home-after-content{max-width:860px;margin:46px auto 0;background:linear-gradient(135deg,#fff9ef 0%,#fff 70%);border:1px solid var(--lrg-border);border-radius:18px;padding:24px;box-shadow:0 8px 24px rgba(68,35,20,.05)}
.home-after-heading h2{font-family:Georgia,"Times New Roman",serif;color:#351411;font-size:26px;line-height:1.2;margin:0 0 6px}
.home-after-heading p{color:var(--lrg-muted);margin:0 0 18px}
.quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.quick-link{display:flex;align-items:center;min-height:54px;text-decoration:none;border:1px solid var(--lrg-border);background:#fff;padding:12px 14px;border-radius:11px;font-weight:700;color:#4a1f16;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.quick-link:hover{border-color:#d8b775;box-shadow:0 5px 14px rgba(68,35,20,.06);transform:translateY(-1px)}
.festival-strip{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--lrg-border)}
.festival-pill{background:#760f20;color:#fff;padding:8px 12px;border-radius:999px;font-size:14px;line-height:1.3}
.festival-pill strong{color:#fff}

.widget{background:#fff;border:1px solid var(--lrg-border);border-radius:16px;padding:20px;margin:0 0 20px;box-shadow:0 8px 24px rgba(68,35,20,.05)}
.widget-title{font-family:Georgia,"Times New Roman",serif;font-size:21px;color:#3d1712;margin:0 0 14px}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:9px 0;border-bottom:1px solid #f1e8da}
.widget li:last-child{border-bottom:0}
.widget a{text-decoration:none;font-weight:650}
.sticky-info{position:sticky;top:18px}

.site-footer{background:#2b1714;color:#efe8e4;margin-top:30px}
.footer-inner{max-width:var(--lrg-wide);margin:auto;padding:42px 22px 26px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:36px}
.footer-title{color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:22px;margin:0 0 12px}
.site-footer a{color:#f4d28a;text-decoration:none}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:8px 0}
.footer-note{border-top:1px solid rgba(255,255,255,.14);margin-top:28px;padding-top:20px;font-size:13px;color:#cfc3be}

.pagination,.nav-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:34px}
.page-numbers{padding:8px 12px;border:1px solid var(--lrg-border);border-radius:9px;text-decoration:none}
.page-numbers.current{background:var(--lrg-maroon);color:#fff;border-color:var(--lrg-maroon)}

@media (max-width:980px){
  .content-grid{grid-template-columns:1fr}
  .sidebar{order:2}
  .sticky-info{position:static}
  .primary-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--lrg-cream);border-bottom:1px solid var(--lrg-border);padding:14px 22px;z-index:50}
  .primary-nav.open{display:block}
  .primary-nav ul{display:block}
  .primary-nav li{border-bottom:1px solid var(--lrg-border)}
  .primary-nav a{display:block;padding:12px 2px}
  .menu-toggle{display:block}
  .header-inner{position:relative}
  .custom-logo{width:280px;height:70px;max-width:48vw}
  .footer-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:680px){
  body{font-size:17px;line-height:1.72}
  .header-inner{padding:12px 16px;gap:12px}
  .custom-logo{width:220px;height:56px;max-width:62vw}
  .default-logo{width:220px;max-width:62vw}
  .default-logo img{max-height:66px}
  .site-main-wrap{padding:24px 16px 42px}
  .entry-title{font-size:35px}
  .entry-content h2{font-size:28px;margin-top:1.8em}
  .entry-content h3{font-size:23px}
  .home-intro{margin-bottom:18px;padding-bottom:14px}
  .home-intro h1{font-size:34px}
  .home-intro p{font-size:16.5px}
  .home-after-content{padding:18px 14px;border-radius:16px;margin-top:36px}
  .home-after-heading h2{font-size:24px}
  .quick-links{grid-template-columns:1fr 1fr}
  .entry-content table{font-size:13.5px}
  .entry-content th,.entry-content td{padding:9px 8px;line-height:1.45}
  .footer-grid{grid-template-columns:1fr}
  .entry-content{max-width:none}
}

/* v1.0.2: homepage article begins immediately after header */
.home-intro{display:none!important}
.home-article>.entry-content>h1:first-child{margin-top:0}
@media (max-width:680px){.home-main-wrap{padding-top:18px}}


/* v1.0.3: render the static homepage page title as the primary H1 */
.home-entry-header{max-width:860px;margin:0 0 18px}
.home-entry-title{font-size:clamp(36px,4.6vw,52px);line-height:1.1;margin:0;color:#351411;overflow-wrap:anywhere}
@media (max-width:680px){.home-entry-title{font-size:34px;margin-bottom:4px}}


/* v1.0.4: modernize oversized article titles, especially homepage H1 */
.entry-title{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:800;
  font-size:clamp(31px,3.6vw,44px);
  line-height:1.14;
  letter-spacing:-0.032em;
  color:#2f1714;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
}
.home-entry-header{max-width:860px;margin:0 0 16px}
.home-entry-title{
  font-size:clamp(31px,4vw,46px);
  line-height:1.12;
  letter-spacing:-0.034em;
  max-width:18ch;
  margin:0;
}
@media (max-width:680px){
  .entry-title,.home-entry-title{
    font-size:29px;
    line-height:1.16;
    letter-spacing:-0.026em;
    max-width:none;
    text-wrap:pretty;
  }
  .home-entry-header{margin-bottom:14px}
}

/* v1.0.5 final layout polish */
.home-content-grid{grid-template-columns:minmax(0,790px) 310px;gap:44px;justify-content:start}
.home-article{max-width:none;margin:0}
.home-article .entry-content{max-width:790px}
.home-entry-header{max-width:790px;margin:0 0 18px}
.entry-title,.home-entry-title{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-weight:800!important;
  color:#2c1714!important;
  letter-spacing:-.035em!important;
  text-wrap:balance;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.entry-title{font-size:clamp(30px,3vw,42px)!important;line-height:1.16!important;max-width:21ch}
.home-entry-title{font-size:clamp(32px,3.15vw,43px)!important;line-height:1.15!important;max-width:22ch;margin:0!important}
.home-main-wrap{padding-top:28px}

/* Premium visitor sidebar */
.sidebar{width:100%}
.sticky-info{top:20px}
.lrg-sidebar-card{padding:0;overflow:hidden;border-radius:18px;background:#fff;border:1px solid var(--lrg-border);box-shadow:0 10px 30px rgba(68,35,20,.06)}
.lrg-sidebar-card .widget-kicker{padding:16px 18px 0;font-size:11px;line-height:1.2;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:var(--lrg-maroon)}
.lrg-sidebar-card .widget-title{padding:0 18px;margin:6px 0 15px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:20px;line-height:1.25;font-weight:800;color:#321713}
.lrg-festival-widget{background:linear-gradient(160deg,#fff9ed 0%,#fff 72%)}
.sidebar-facts{border-top:1px solid #f0e5d4}
.sidebar-facts>div{display:flex;justify-content:space-between;gap:16px;padding:12px 18px;border-bottom:1px solid #f3eadc;align-items:flex-start}
.sidebar-facts>div:last-child{border-bottom:0}
.sidebar-facts span{font-size:12px;line-height:1.35;color:#756862}
.sidebar-facts strong{font-size:13px;line-height:1.35;text-align:right;color:#3b1b16}
.sidebar-guide-links{border-top:1px solid #f0e5d4}
.sidebar-guide-links a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #f3eadc;color:#3c1d18;text-decoration:none;font-size:14px;font-weight:700;transition:background .15s ease,color .15s ease}
.sidebar-guide-links a:last-child{border-bottom:0}
.sidebar-guide-links a:hover{background:#fff8eb;color:var(--lrg-maroon)}
.sidebar-guide-links b{font-size:17px;color:var(--lrg-gold)}
.sidebar-post-list{border-top:1px solid #f0e5d4;padding:6px 0}
.sidebar-post-list a{display:grid;grid-template-columns:28px 1fr;gap:10px;padding:11px 18px;text-decoration:none;align-items:start}
.sidebar-post-list a:hover{background:#fffaf2}
.sidebar-post-list span{font-size:11px;font-weight:800;color:#c58b24;padding-top:2px}
.sidebar-post-list strong{font-size:13.5px;line-height:1.42;color:#3d201a;font-weight:700}

/* Tables remain real tables: no forced horizontal scroller */
.wp-block-table,.table-scroll{overflow:visible!important;max-width:100%}
.wp-block-table table,.entry-content table{table-layout:auto!important;width:100%!important;min-width:0!important}
.entry-content th,.entry-content td{white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}

/* Homepage quick cards stay after article and align with full content area */
.home-after-content{max-width:1144px;margin:52px 0 0;padding:24px 26px}

@media (max-width:980px){
  .home-content-grid{grid-template-columns:1fr;gap:30px}
  .home-article .entry-content,.home-entry-header{max-width:none}
  .home-after-content{max-width:none}
}
@media (max-width:680px){
  .home-main-wrap{padding-top:20px}
  .entry-title,.home-entry-title{font-size:28px!important;line-height:1.17!important;letter-spacing:-.025em!important;max-width:none}
  .home-entry-header{margin-bottom:14px}
  .sidebar{margin-top:6px}
  .lrg-sidebar-card{border-radius:15px}
}


/* v1.0.6: editable guide links, tighter premium cards and footer trust notice */
.lrg-quick-widget .widget-title{margin-bottom:12px}
.sidebar-guide-links a{
  min-height:48px;
  padding:10px 16px!important;
  font-size:13.5px!important;
  line-height:1.35;
}
.sidebar-guide-links b{
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#fff5df;
  color:#c98512!important;
  font-size:16px!important;
  transition:transform .16s ease,background .16s ease;
}
.sidebar-guide-links a:hover b{transform:translateX(2px);background:#ffe9bd}

.home-after-content{
  background:linear-gradient(145deg,#fffaf0 0%,#fff 68%);
  border-color:#ead9bc;
  padding:22px 24px!important;
}
.home-after-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:16px}
.home-after-heading h2{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:23px;font-weight:800;letter-spacing:-.025em;margin:0!important}
.home-after-heading p{font-size:14px;line-height:1.5;max-width:560px;margin:0!important;text-align:right}
.quick-links{gap:10px!important}
.quick-link{
  min-height:58px!important;
  padding:12px 15px!important;
  border-radius:12px!important;
  font-size:14px!important;
  line-height:1.35;
  justify-content:space-between;
  gap:12px;
}
.quick-link span{min-width:0}
.quick-link b{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:999px;
  background:#fff3d9;
  color:#c88512;
  font-size:16px;
  transition:transform .16s ease,background .16s ease;
}
.quick-link:hover b{transform:translateX(2px);background:#ffe7b5}
.festival-strip{margin-top:14px!important;padding-top:14px!important}
.festival-pill{font-size:13px!important;padding:7px 11px!important}

.footer-trust-note{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:28px;
  padding:14px 16px;
  border:1px solid rgba(244,210,138,.22);
  background:rgba(255,255,255,.045);
  border-radius:12px;
  color:#d9cfca;
  font-size:12.5px;
  line-height:1.55;
}
.footer-trust-note p{margin:0}
.footer-trust-icon{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  flex:0 0 22px;
  border:1px solid rgba(244,210,138,.45);
  border-radius:50%;
  color:#f4d28a;
  font-family:Georgia,serif;
  font-weight:700;
  font-size:13px;
}
.footer-note{margin-top:16px!important;padding-top:16px!important}

@media (max-width:680px){
  .home-after-heading{display:block}
  .home-after-heading p{text-align:left;margin-top:6px!important}
  .quick-link{min-height:54px!important;padding:11px 12px!important;font-size:13.5px!important}
  .sidebar-guide-links a{min-height:46px;padding:9px 14px!important}
  .footer-trust-note{font-size:12px;padding:12px 13px}
}
