/*
Theme Name: Dharm Bandhu
Author: Dharm Bandhu
Description: Responsive, lightweight Hindi devotional WordPress theme with dynamic posts, search and archives.
Version: 1.5.19
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dharm-bandhu
*/
:root{--o:#f47700;--brown:#8d310d;--ink:#302722;--line:#eadbd1}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:system-ui,"Noto Sans Devanagari","Mangal",Arial,sans-serif;line-height:1.6}img{max-width:100%;height:auto;display:block}a{text-decoration:none;color:inherit}.wrap{width:min(1180px,94%);margin:auto}
.topbar{background:linear-gradient(90deg,#ed6500,#ff8510);color:#fff;font-size:12px}.topbar .wrap{min-height:32px;display:flex;align-items:center;justify-content:space-between}.site-header{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid #eee1d8;box-shadow:0 2px 12px #00000008}.nav-row{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:49px;height:49px;flex:0 0 49px;border:2px solid #ef8737;border-radius:50%;background:#fff8ef;color:#e8660b;display:grid;place-items:center;font-size:29px;font-weight:900}.brand-name{font-size:24px;line-height:1.1;font-weight:900;color:var(--brown)}.brand-tagline{font-size:10px;color:#7c7068;margin-top:4px}.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:23px}.main-nav a{display:block;padding:27px 0;font-size:13px;font-weight:800}.main-nav a:hover{color:var(--o)}.menu-toggle{display:none;border:0;border-radius:8px;background:#fff0df;color:#a4440b;font-size:22px;padding:7px 12px}
.hero{width:100%;margin:0;padding:0;background:#f1c98f;overflow:hidden;line-height:0}.hero img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;object-position:center;margin:0;padding:0;border:0}
.services{padding:24px 0 30px;background:linear-gradient(180deg,var(--services-bg,#fff5e9),#fffdf9)}.service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.service-card{display:block;overflow:hidden;padding:0;margin:0;background:#fff;border:1px solid #e7d8cf;border-radius:14px;text-align:center;box-shadow:0 3px 10px #5028140f;transition:.2s}.service-card:hover{transform:translateY(-3px);box-shadow:0 8px 18px #5028141f}.service-img{width:100%;aspect-ratio:1/1;overflow:hidden;margin:0;padding:0;background:transparent;line-height:0}.service-img img{width:100%;height:100%;max-width:none;object-fit:contain;object-position:center;margin:0;padding:5px;border:0;background:transparent}.service-name{display:block;padding:9px 3px 10px;background:#fff;color:#632c18;font-size:13px;font-weight:900;line-height:1.25}
.section{padding:32px 0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.section-title{position:relative;padding-left:13px;color:#91330f;font-size:21px;line-height:1.3;margin:0;font-weight:900}.section-title:before{content:"";position:absolute;left:0;top:2px;width:4px;height:22px;border-radius:10px;background:var(--o)}.view-all{font-size:11px;font-weight:900;color:#df6908}.notice{padding:17px 24px;border-radius:14px;border:1px solid #efdba9;background:linear-gradient(100deg,#fff9df,#fffdf5);text-align:center}.notice-label{font-size:11px;color:#bd6900;font-weight:900}.notice-text{font-size:14px;color:#614727;font-weight:800;margin-top:3px}
.articles-section{background:linear-gradient(180deg,#f4faff,#edf7ff);border-block:1px solid #dfedf8}.article-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px}.articles-box{background:#fff;border:1px solid #cfe3f1;border-radius:16px;padding:16px}.article-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.article-card{overflow:hidden;background:#fff;border:1px solid #e1ebf2;border-radius:11px;transition:.2s}.article-card:hover{transform:translateY(-3px);box-shadow:0 8px 16px #32648c1a}.article-thumb{height:100px;background:#f7fbfe;overflow:hidden}.article-thumb img{width:100%;height:100%;object-fit:contain;object-position:center}.article-body{padding:8px}.article-label{display:inline-block;padding:2px 6px;border-radius:4px;background:#ef7818;color:#fff;font-size:8px;font-weight:800}.article-card h3{font-size:12px;line-height:1.45;margin:5px 0}.article-date{font-size:9px;color:#999}.empty-posts{padding:16px;color:#76675f;font-size:13px}
.knowledge-box{background:linear-gradient(145deg,var(--knowledge-bg,#fbf5ff),#f3eafa);border:1px solid #dfcceb;border-radius:16px;overflow:hidden}.knowledge-header{display:flex;justify-content:space-between;align-items:center;padding:15px 17px;border-bottom:1px solid #e4d5ed}.knowledge-header h3{margin:0;color:#754395;font-size:18px}.knowledge-header span{color:#9b6caf;font-size:10px}.knowledge-item{padding:12px 17px;border-bottom:1px solid #e4d5ed}.knowledge-item:last-child{border-bottom:0}.knowledge-item h4{font-size:13px;line-height:1.5;margin:0;color:#653b79}.knowledge-item p{font-size:11px;color:#716478;line-height:1.6;margin:4px 0 0}.knowledge-item a.more{display:inline-block;margin-top:5px;color:#884ea5;font-size:10px;font-weight:900}
.lower-grid{display:block}.bhajan-box{background:linear-gradient(145deg,var(--bhajan-bg,#fff0f0),#ffe3e3);border:1px solid #e6bcbc;border-radius:16px;padding:17px}.bhajan-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.bhajan-head h3{margin:0;color:#a32828;font-size:18px}.bhajan-head a{color:#b34444;font-size:10px;font-weight:900}.song{padding:9px 0;border-bottom:1px solid #ebcaca}.song:last-child{border:0}.song-row{display:flex;align-items:center;gap:9px}.song-play{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:50%;background:#a32828;color:#fff;font-size:10px}.song-details{flex:1;min-width:0}.song-title{font-size:11px;font-weight:900;color:#653131}.song audio{display:block;width:100%;height:30px;margin-top:7px}.shlok-box{background:linear-gradient(145deg,#faf6ff,#eee9ff);border:1px solid #d7cdef;border-radius:16px;padding:22px;text-align:center}.shlok-title{color:#7550a1;font-size:14px;font-weight:900;margin-bottom:13px}.shlok-text{color:#543b72;font-size:14px;line-height:1.9;font-weight:800}.shlok-source{margin-top:7px;color:#907ca4;font-size:10px}
.whatsapp-section{padding:4px 0 35px}.whatsapp-box{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 27px;border-radius:17px;background:linear-gradient(90deg,#128b47,#25a85c);color:#fff}.whatsapp-content{display:flex;align-items:center;gap:14px}.whatsapp-icon{width:53px;height:53px;flex:0 0 53px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#12914a;font-size:25px}.whatsapp-text h2{font-size:19px;margin:0}.whatsapp-text p{font-size:11px;margin:3px 0 0}.whatsapp-btn{padding:11px 22px;border-radius:8px;background:#fff;color:#108343;font-size:11px;font-weight:900;white-space:nowrap}
.site-footer{padding:38px 0 15px;background:#35150d;color:#fff}.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:28px;padding-bottom:25px}.footer-logo{color:#ff9d32;font-size:23px;font-weight:900}.footer-tag{color:#ffc17a;font-size:10px}.footer-about{max-width:300px;margin-top:8px;color:#d5c3bb;font-size:11px}.site-footer h3{color:#ffac54;font-size:12px;margin:0 0 10px}.site-footer ul{list-style:none;margin:0;padding:0}.site-footer li{margin-bottom:5px}.site-footer a{color:#d5c4bc;font-size:11px}.footer-bottom{padding-top:14px;border-top:1px solid #ffffff1f;text-align:center;color:#bca8a0;font-size:10px}.back-top{position:fixed;right:15px;bottom:15px;width:42px;height:42px;display:none;border:0;border-radius:50%;background:var(--o);color:#fff;font-size:18px;cursor:pointer;z-index:999}.back-top.show{display:block}
.single-wrap,.archive-wrap{padding:35px 0}.post-title{font-size:clamp(25px,4vw,38px);line-height:1.3;color:#78300f}.post-meta{font-size:12px;color:#86766c;margin:10px 0 20px}.entry-content{font-size:17px;line-height:1.9}.entry-content img{height:auto}.pagination{margin-top:20px}
@media(max-width:1000px){.service-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.topbar{display:none}.nav-row{min-height:65px}.brand-mark{width:43px;height:43px;flex-basis:43px;font-size:26px}.brand-name{font-size:20px}.brand-tagline{font-size:9px}.menu-toggle{display:block}.main-nav{display:none;position:absolute;top:65px;left:0;right:0;background:#fff;box-shadow:0 8px 20px #00000019}.main-nav.is-open{display:block}.main-nav ul{display:flex;flex-direction:column;gap:0}.main-nav a{padding:12px 5%;border-top:1px solid #eee4dd}.hero img{height:auto}.service-grid{gap:9px 5px}.service-card{border-radius:11px}.service-name{padding:8px 2px 9px;font-size:10px}.article-layout{grid-template-columns:1fr}.article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-thumb{height:110px}.lower-grid{grid-template-columns:1fr}.whatsapp-box{flex-direction:column;align-items:flex-start}.whatsapp-btn{width:100%;text-align:center}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.wrap{width:92%}.hero img{height:auto}.service-grid{gap:7px 4px}.service-name{font-size:9px}.article-thumb{height:95px}.article-card h3{font-size:11px}.section{padding:25px 0}.section-title{font-size:19px}}

.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{clip:auto!important;height:auto;width:auto;left:8px;top:8px;padding:12px;background:#fff;z-index:9999}.search-form{display:flex;gap:8px;max-width:600px;margin:18px 0}.search-form label{flex:1}.search-form input[type=search]{width:100%;padding:11px;border:1px solid var(--line);border-radius:8px}.search-form input[type=submit]{padding:10px 18px;border:0;border-radius:8px;background:var(--o);color:#fff;cursor:pointer}.comments-area{margin-top:35px;padding-top:20px;border-top:1px solid var(--line)}.comment-form input,.comment-form textarea{max-width:100%;padding:10px;border:1px solid var(--line);border-radius:6px}.comment-form input[type=submit]{background:var(--o);color:#fff;border:0;cursor:pointer}

/* Responsive refinements */
.article-thumb{display:flex;align-items:center;justify-content:center;min-height:100px;height:auto;aspect-ratio:3/2}
.article-thumb img{width:100%;height:100%;object-fit:contain}
.no-thumb{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:90px;color:#9b765e;font-weight:800;font-size:13px}
.knowledge-header h2{margin:0;color:#754395;font-size:18px}
.song-singer{display:block;color:#8a6969;font-size:11px;margin-top:2px}
.song-link{font-size:12px;color:#a33131;font-weight:700;margin-left:auto}
.audio-note{font-size:11px;color:#956969;margin:5px 0 0 39px}
.shlok-meaning{margin-top:12px;color:#6b5647;font-size:14px;line-height:1.8}
.shlok-post-title{font-size:16px;line-height:1.6;margin:12px 0;color:#784c2e}
.shlok-post-title a{color:inherit;text-decoration:none}
.shlok-dynamic{font-size:14px;line-height:1.8}
.archive-wrap{padding-top:32px;padding-bottom:48px;min-height:50vh}
.archive-header{margin-bottom:20px}
.archive-description{color:#6b625c;line-height:1.8}
.archive-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.archive-grid .article-card h2{font-size:16px;line-height:1.5;margin:6px 0}
.archive-grid .article-body p{font-size:13px;line-height:1.7;color:#6f6964}
.pagination{margin:28px 0;text-align:center}
.pagination .nav-links{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.pagination .page-numbers{display:inline-block;padding:8px 12px;border:1px solid #e7d8cf;border-radius:8px;color:#633c2a;text-decoration:none}
.pagination .page-numbers.current{background:#7c3e24;color:#fff}
@media(max-width:760px){.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.archive-grid{gap:9px}.archive-grid .article-body{padding:7px}.archive-grid .article-card h2{font-size:13px}}

/* Preserve the hero artwork aspect ratio without cropping it. */
.hero img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.brand .custom-logo-link{display:inline-flex;align-items:center;flex:0 0 auto}
.brand img.custom-logo{width:auto;max-width:64px;max-height:64px;object-fit:contain}

/* v1.3.0 refinements */
.article-excerpt{font-size:11px;line-height:1.55;color:#6f625a;margin:5px 0 0}
.whatsapp-section{padding:28px 0 35px}
.shlok-section{padding-top:0}
.song audio{max-width:100%}
.service-card:focus-visible,.article-card a:focus-visible,.main-nav a:focus-visible,.whatsapp-btn:focus-visible,.view-all:focus-visible{outline:3px solid #2865c7;outline-offset:3px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

.single-featured-image{margin:0 0 22px}.single-featured-image img{width:100%;height:auto;border-radius:14px}.post-navigation{display:flex;justify-content:space-between;gap:18px;margin-top:30px;padding-top:18px;border-top:1px solid var(--line);font-size:14px}.post-navigation a{color:#873e1b}.page-links{margin-top:20px}

/* v1.4.0 layout and interaction refinements */
.article-layout.articles-only,.article-layout.knowledge-only{grid-template-columns:minmax(0,1fr)}
.article-layout.articles-only .articles-box,.article-layout.knowledge-only .knowledge-box{width:100%;min-width:0}
.bhajan-head h2{margin:0;color:#a32828;font-size:18px;line-height:1.4}
.service-card:focus-visible,.song-link:focus-visible,.post-navigation a:focus-visible,.site-footer a:focus-visible,.menu-toggle:focus-visible,.back-top:focus-visible{outline:3px solid #2865c7;outline-offset:3px}
@media(max-width:760px){.article-layout.articles-only,.article-layout.knowledge-only{grid-template-columns:minmax(0,1fr)}}

/* v1.4.0 audit fixes */
.admin-bar .site-header{top:32px}
@media(max-width:782px){.admin-bar .site-header{top:46px}}

/* v1.5.0 content and accessibility polish */
.knowledge-item h3{font-size:13px;line-height:1.5;margin:0;color:#653b79;font-weight:800}
.knowledge-item h3 a{color:inherit}
.admin-note{font-size:11px;color:#8b6c3c;border-top:1px dashed #e7d7b8;margin-top:8px;padding-top:7px}
.site-header{scroll-margin-top:80px}
#services,#lekh,#bhajan,#shlok{scroll-margin-top:90px}
@media(max-width:760px){#services,#lekh,#bhajan,#shlok{scroll-margin-top:72px}}


/* Keep the eight service icons comfortably sized on wide screens. */
.service-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1000px){.service-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:480px){.service-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* v1.5.4: keep homepage article cards readable beside the knowledge sidebar. */
@media(min-width:1001px){.article-layout.has-both .article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-layout.has-both .article-thumb{aspect-ratio:3/2;min-height:120px}.article-layout.has-both .article-card h3{font-size:14px;line-height:1.5}.article-layout.has-both .article-excerpt{font-size:12px;line-height:1.65}}

/* v1.5.6: keep the logo and site identity from creating nested anchor elements. */
.brand-mark-link{display:inline-flex;align-items:center;text-decoration:none;flex:0 0 auto}
.brand-copy{display:flex;flex-direction:column;min-width:0}

/* v1.5.6: do not fabricate a posts destination when no archive page is configured. */

/* v1.5.7: keep service artwork proportional and remove legacy object-fit conflict. */


/* v1.5.8: respect reduced-motion preferences across CSS animations and smooth scrolling. */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* v1.5.15: let either homepage content section use the full width when shown alone. */
@media(min-width:761px){.article-layout.articles-only,.article-layout.knowledge-only{grid-template-columns:minmax(0,1fr)}}

/* v1.5.16: keep the all-bhajans link independently configurable. */

/* v1.5.17: make the site name and tagline a clear home link, including when a custom logo is configured. */
.brand-copy{color:inherit;text-decoration:none;border-radius:3px}
.brand-copy:focus-visible{outline:2px solid var(--o);outline-offset:4px}
