/*
Theme Name: Santali Digital Dishom Complete
Theme URI: https://example.com/
Author: Santali Digital Dishom
Description: Santali Digital Dishom theme with Home, Courses, Gallery, News, a WordPress-powered Blog (all published posts) and a WooCommerce Shop (all published products) with categories and pagination.
Version: 2.5.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: santali-digital-dishom
*/


/* Blog layout safety layer: keep article and archive styling available even if
   the optional custom stylesheet is cached or fails to load. */
body.single-post { margin: 0 !important; background: #f7f5ef !important; color: #26352d !important; font-family: Arial, sans-serif !important; }
body.single-post .sdd-inner-topbar { box-sizing: border-box; width: 100%; padding: 9px max(5%, calc((100% - 1200px)/2)); background: #113f2f; color: #fff; font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
body.single-post .sdd-inner-topbar span { color: #ffb366; }
body.single-post .sdd-inner-header { box-sizing: border-box; width: 100%; min-height: 76px; padding: 14px max(5%, calc((100% - 1200px)/2)); background: #fff; border-bottom: 1px solid #e9e3d8; box-shadow: 0 3px 14px rgba(17,63,47,.08); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
body.single-post .sdd-inner-brand { display: flex; align-items: center; gap: 12px; color: #113f2f; text-decoration: none; }
body.single-post .sdd-brand-mark { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 12px; background: #800020; color: #fff; font-size: 24px; font-weight: 800; }
body.single-post .sdd-inner-brand strong, body.single-post .sdd-inner-brand small { display: block; }
body.single-post .sdd-inner-brand strong { font-size: 17px; line-height: 1.3; }
body.single-post .sdd-inner-brand small { margin-top: 3px; color: #800020; font-size: 10px; }
body.single-post .sdd-inner-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
body.single-post .sdd-inner-nav a { color: #234536; text-decoration: none; font-size: 14px; font-weight: 700; }
body.single-post .sdd-single-page { box-sizing: border-box; width: min(100% - 32px, 920px) !important; max-width: 920px !important; margin: 38px auto 64px !important; padding: 0 !important; }
body.single-post .sdd-single-article { box-sizing: border-box; width: 100%; padding: clamp(20px, 4vw, 48px) !important; background: #fff !important; border: 1px solid #e9e3d8; border-radius: 16px; box-shadow: 0 5px 22px rgba(17,63,47,.06); }
body.single-post .sdd-back-blog { display: inline-block; margin: 0 0 24px; color: #176b45; text-decoration: none; font-size: 14px; font-weight: 700; }
body.single-post .sdd-single-header h1 { margin: 10px 0 14px; color: #113f2f; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; font-weight: 800; }
body.single-post .sdd-single-header .sdd-blog-category { display: inline-block; padding: 5px 11px; border-radius: 20px; background: #f8edf0; color: #800020; font-size: 12px; font-weight: 700; }
body.single-post .sdd-blog-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #748078; font-size: 13px; }
body.single-post .sdd-single-featured { margin: 28px 0; }
body.single-post .sdd-single-featured img { display: block; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: 520px; object-fit: cover; border-radius: 12px; }
body.single-post .sdd-single-content { color: #303a34; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
body.single-post .sdd-single-content p { margin: 0 0 1.15em; }
body.single-post .sdd-single-content h2, body.single-post .sdd-single-content h3 { margin: 1.6em 0 .6em; color: #113f2f; line-height: 1.35; }
body.single-post .sdd-single-content img { display: block; max-width: 100% !important; height: auto !important; margin: 22px auto; border-radius: 10px; }
body.single-post .sdd-single-content figure { max-width: 100%; margin: 22px auto; }
body.single-post .sdd-single-tags { margin-top: 28px; color: #65736a; font-size: 14px; }
body.single-post .sdd-single-tags a, body.single-post .sdd-post-navigation a { color: #176b45; text-decoration: none; }
body.single-post .sdd-post-navigation { display: flex; justify-content: space-between; gap: 18px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee8dc; }
body.single-post .sdd-inner-footer { box-sizing: border-box; width: 100%; padding: 32px max(5%, calc((100% - 1200px)/2)); display: grid; grid-template-columns: 1fr auto; gap: 18px; background: #113f2f; color: #fff; }
body.single-post .sdd-inner-footer p, body.single-post .sdd-inner-footer small { color: #d6e1da; }
body.single-post .sdd-inner-footer a { color: #fff; text-decoration: none; }
@media (max-width: 700px) {
 body.single-post .sdd-inner-header { align-items: flex-start; flex-direction: column; }
 body.single-post .sdd-inner-nav { gap: 14px; }
 body.single-post .sdd-single-page { width: min(100% - 20px, 920px) !important; margin: 20px auto 40px !important; }
 body.single-post .sdd-single-article { padding: 20px 16px !important; }
 body.single-post .sdd-single-content { font-size: 16px; line-height: 1.75; }
 body.single-post .sdd-inner-footer { grid-template-columns: 1fr; }
}


/* Blog library cards: compact catalogue layout, matching the Education book cards. */
.sdd-blog-page{box-sizing:border-box;width:min(100% - 32px,1200px);margin:38px auto 64px;color:#26352d;font-family:Inter,Arial,sans-serif}
.sdd-blog-page *{box-sizing:border-box}
.sdd-blog-hero{margin:0 0 30px;padding:30px 34px;border-radius:18px;background:linear-gradient(120deg,#113f2f,#1b5e47);color:#fff;box-shadow:0 8px 24px rgba(17,63,47,.12)}
.sdd-blog-kicker{display:inline-block;margin-bottom:8px;color:#ffcf8a;font-size:11px;font-weight:800;letter-spacing:1.6px}
.sdd-blog-hero h1{margin:0 0 8px;color:#fff;font-size:clamp(28px,4vw,38px);line-height:1.15;font-weight:800}
.sdd-blog-hero p{max-width:700px;margin:0;color:#e5eee8;font-size:15px;line-height:1.65}
.sdd-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.sdd-blog-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e9e3d8;border-radius:15px;box-shadow:0 5px 18px rgba(17,63,47,.07);transition:transform .2s ease,box-shadow .2s ease}
.sdd-blog-card:hover{transform:translateY(-4px);box-shadow:0 12px 26px rgba(17,63,47,.13)}
.sdd-blog-thumb{display:block;position:relative;width:100%;height:170px;overflow:hidden;background:#f1eee6;text-decoration:none}
.sdd-blog-thumb img{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;transition:transform .3s ease}
.sdd-blog-card:hover .sdd-blog-thumb img{transform:scale(1.035)}
.sdd-blog-placeholder{display:grid;width:100%;height:100%;place-items:center;background:linear-gradient(135deg,#e8eee8,#f8f0df);color:#113f2f;font-weight:800;text-align:center;padding:20px}
.sdd-blog-card-body{display:flex;flex:1;flex-direction:column;padding:14px 16px 16px}
.sdd-blog-meta{display:flex;flex-wrap:wrap;gap:4px 10px;margin-bottom:7px;color:#7b867e;font-size:11px;line-height:1.5}
.sdd-blog-category{display:inline-flex;align-self:flex-start;margin:0 0 7px;padding:4px 9px;border-radius:30px;background:#f8edf0;color:#800020;font-size:11px;font-weight:800;text-decoration:none}
.sdd-blog-card h2{margin:0 0 7px;font-size:18px;line-height:1.3;font-weight:800}
.sdd-blog-card h2 a{color:#113f2f;text-decoration:none}
.sdd-blog-card h2 a:hover{color:#800020}
.sdd-blog-card-body>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:0 0 12px;color:#5f6b63;font-size:12px;line-height:1.55}
.sdd-blog-readmore{display:inline-flex;align-items:center;justify-content:center;gap:8px;align-self:flex-start;margin-top:auto;padding:8px 12px;border-radius:7px;background:#113f2f;color:#fff!important;font-size:12px;font-weight:800;text-decoration:none;transition:background .2s ease}
.sdd-blog-readmore:hover{background:#800020}
.sdd-blog-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:32px 0 0}
.sdd-blog-pagination .page-numbers{display:inline-flex;min-width:38px;height:38px;align-items:center;justify-content:center;padding:0 12px;border:1px solid #e2ded5;border-radius:7px;background:#fff;color:#113f2f;text-decoration:none;font-weight:700}
.sdd-blog-pagination .page-numbers.current{background:#113f2f;border-color:#113f2f;color:#fff}
.sdd-blog-empty{padding:42px 24px;border:1px dashed #c9d2ca;border-radius:14px;background:#fff;text-align:center}
@media(max-width:900px){.sdd-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sdd-blog-thumb{height:155px}}
@media(max-width:580px){.sdd-blog-page{width:calc(100% - 22px);margin:22px auto 42px}.sdd-blog-hero{padding:23px 20px;margin-bottom:20px}.sdd-blog-grid{grid-template-columns:1fr;gap:14px}.sdd-blog-thumb{height:165px}.sdd-blog-card-body{padding:13px 14px}.sdd-blog-card h2{font-size:17px}}

/* Inner-page header and footer now mirror the main Home-page navigation. */
.sdd-home-brand,.sdd-home-brand:hover{text-decoration:none}
.sdd-home-nav{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px}.sdd-home-nav a{text-decoration:none;white-space:nowrap;padding-left:8px!important;padding-right:8px!important;font-size:13px!important}
.sdd-home-nav a:hover{color:#113f2f}
.sdd-inner-mobile-menu{display:none;gap:5px;flex-wrap:wrap}
.sdd-inner-mobile-menu.is-open{display:flex}
.sdd-inner-mobile-menu a{display:block;padding:9px 12px;border-radius:8px;color:#34443b;text-decoration:none;font-size:14px;font-weight:600}
.sdd-inner-mobile-menu a:hover{background:#f3efe6;color:#113f2f}
.sdd-home-footer a{color:#d1d5db;text-decoration:none;transition:color .2s ease}
.sdd-home-footer a:hover{color:#ff9933}
.sdd-home-footer .sdd-footer-brand{color:#fff}
.sdd-ticker-text{display:inline-block;animation:sddTickerMove 32s linear infinite}
@keyframes sddTickerMove{0%{transform:translateX(100%)}100%{transform:translateX(-100%)}}
@media(max-width:1023px){.sdd-home-nav{display:none!important}.sdd-mobile-menu-toggle{display:inline-flex!important;align-items:center;gap:6px}}
@media(min-width:1024px) and (max-width:1350px){.sdd-home-nav{gap:0}.sdd-home-nav a{padding-left:6px!important;padding-right:6px!important;font-size:12px!important}.sdd-home-brand strong{font-size:16px!important}.sdd-home-actions{gap:6px!important}.sdd-home-actions>a{padding-left:9px!important;padding-right:9px!important}}
@media(min-width:1024px){.sdd-inner-mobile-menu{display:none!important}.sdd-mobile-menu-toggle{display:none!important}}
@media(max-width:700px){.sdd-home-ticker{font-size:11px}.sdd-home-header .min-h-20{min-height:68px}.sdd-home-brand strong{font-size:16px}.sdd-home-brand small{font-size:9px;letter-spacing:.08em}.sdd-home-footer{padding-top:42px;padding-bottom:30px}}
