/* Scoped blog styles deliberately override conflicts from external main-site styles. */
.cwd-blog-theme { margin:0; background:#fff; color:#1b1b29; font-family:Arial,Helvetica,sans-serif; line-height:1.6; }
.cwd-blog-theme *, .cwd-blog-theme *::before,.cwd-blog-theme *::after {box-sizing:border-box;}
.cwd-blog-theme a{text-decoration:none;}
.cwd-container{width:min(1160px,calc(100% - 36px));margin:0 auto;}
.cwd-skip{position:absolute;left:-9999px;top:6px;z-index:999;background:#fff;padding:10px;}
.cwd-skip:focus{left:8px;}
.cwd-site-header{position:relative;z-index:20;background:white;box-shadow:0 2px 16px rgba(13,20,50,.065);}
.cwd-header-inner{min-height:84px;display:flex;justify-content:space-between;align-items:center;gap:28px;}
.cwd-brand{color:#0e0e13;display:flex;align-items:center;gap:12px;flex-shrink:0;line-height:1;}
.cwd-brand-image{display:block;max-width:235px;max-height:70px;width:auto;height:auto;}
.cwd-mark{position:relative;font-size:47px;color:#ed273d;line-height:1;transform:rotate(45deg);display:inline-block;}
.cwd-mark span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:22px;color:#fff;transform:rotate(-45deg);}
.cwd-brand-text{display:flex;flex-direction:column;letter-spacing:-.7px;}
.cwd-brand-text small{font-size:12px;font-weight:700;letter-spacing:0;}
.cwd-brand-text strong{font-weight:900;font-size:22px;letter-spacing:-1px;}
.cwd-brand-text em{font-weight:700;font-size:11px;text-align:right;font-style:normal;letter-spacing:0;}
.cwd-site-nav .cwd-nav-items{list-style:none;margin:0;padding:0;display:flex;gap:25px;align-items:center;}
.cwd-site-nav .cwd-nav-items>li{position:relative;list-style:none;margin:0;padding:0;}
.cwd-site-nav a{display:block;color:#10101b;font-size:15px;font-weight:500;padding:13px 0;white-space:nowrap;}
.cwd-site-nav a:hover,.cwd-site-nav .current-menu-item>a{color:#ec293e;}
.cwd-site-nav .sub-menu{display:none;position:absolute;left:0;top:100%;list-style:none;margin:0;min-width:220px;background:white;padding:12px 18px;box-shadow:0 12px 26px #10112022;}
.cwd-site-nav li:hover>.sub-menu,.cwd-site-nav li:focus-within>.sub-menu{display:block;}
.cwd-menu-toggle{display:none;background:transparent;border:0;cursor:pointer;padding:12px;}
.cwd-menu-toggle span{display:block;background:#111;width:24px;height:2px;margin:5px;}
.cwd-main{padding-top:65px;padding-bottom:100px;min-height:60vh;}
.cwd-page-heading{text-align:center;margin:0 auto 46px;max-width:760px;}
.cwd-kicker{display:block;color:#eb3043;font-size:12px;text-transform:uppercase;font-weight:800;letter-spacing:2px;margin-bottom:12px;}
.cwd-page-heading h1,.cwd-article-heading h1{font-size:clamp(34px,4vw,54px);line-height:1.14;margin:0 0 16px;color:#141327;font-weight:800;}
.cwd-page-heading p{color:#687082;font-size:17px;margin:0;}
.cwd-archive-description{color:#687082;}
.cwd-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;}
.cwd-post-card{overflow:hidden;background:white;border:1px solid #eceef3;border-radius:13px;box-shadow:0 8px 24px #14214c0c;transition:transform .2s,box-shadow .2s;}
.cwd-post-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px #14214c18;}
.cwd-card-image{display:block;aspect-ratio:16/10;background:linear-gradient(120deg,#071047,#281278 55%,#ed294b);overflow:hidden;}
.cwd-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s;}
.cwd-post-card:hover .cwd-card-image img{transform:scale(1.045);}
.cwd-placeholder{display:flex;height:100%;align-items:center;justify-content:center;text-align:center;color:#fff;font-size:26px;font-weight:800;line-height:1.2;}
.cwd-card-content{padding:24px;}
.cwd-card-meta{color:#858ca2;font-size:12px;font-weight:600;margin-bottom:10px;}
.cwd-card-content h2{font-size:22px;line-height:1.35;margin:0 0 12px;font-weight:800;}
.cwd-card-content h2 a{color:#14162a;}
.cwd-card-content h2 a:hover{color:#ed293e;}
.cwd-card-content p{margin:0 0 20px;color:#677083;font-size:14px;line-height:1.75;}
.cwd-read-more{color:#eb293f;font-size:14px;font-weight:800;}
.cwd-pagination{margin-top:45px;text-align:center;}
.cwd-pagination .nav-links{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;}
.cwd-pagination .page-numbers{display:inline-block;padding:9px 15px;border:1px solid #e7e9ef;border-radius:7px;color:#333;}
.cwd-pagination .page-numbers.current,.cwd-pagination .page-numbers:hover{background:#ed293d;color:white;border-color:#ed293d;}
.cwd-single-main{width:min(860px,calc(100% - 36px));padding:60px 0 95px;min-height:60vh;}
.cwd-back{color:#ed293d;font-weight:700;font-size:14px;}
.cwd-article-heading{text-align:center;margin:28px 0 35px;}
.cwd-article-byline{color:#7b8393;font-size:14px;}
.cwd-article-image img{width:100%;height:auto;border-radius:14px;display:block;}
.cwd-article-content{margin-top:35px;font-size:17px;line-height:1.9;color:#383e4e;overflow-wrap:break-word;}
.cwd-article-content h2,.cwd-article-content h3{color:#131528;line-height:1.3;margin-top:1.5em;}
.cwd-article-content img{max-width:100%;height:auto;}
.cwd-article-content a,.cwd-tags a{color:#ed293d;}
.cwd-article-content blockquote{border-left:4px solid #ed293d;margin:25px 0;padding:12px 22px;background:#f9f9fb;}
.cwd-tags{border-top:1px solid #e9e9ef;margin-top:40px;padding-top:20px;}
.cwd-empty{text-align:center;padding:65px 20px;border-radius:12px;background:#f7f8fb;}
.cwd-button{background:#ed293d;color:white;padding:12px 25px;display:inline-block;border-radius:7px;}
.cwd-footer{background:#0d1136;color:#ced2e2;}
.cwd-footer-main{padding:55px 0;display:grid;grid-template-columns:2fr 1fr 1fr;gap:65px;}
.cwd-footer h3{color:white;font-size:17px;margin:0 0 16px;}
.cwd-footer a{color:#d6dbea;display:block;margin:0 0 9px;font-size:14px;}
.cwd-footer a:hover{color:#fff;}
.cwd-footer p{max-width:380px;font-size:14px;}
.cwd-footer .cwd-footer-logo{color:white;font-weight:500;font-size:23px;}
.cwd-footer .cwd-footer-logo strong{font-weight:900;}
.cwd-footer-bottom{border-top:1px solid #ffffff1a;padding:16px 0;font-size:12px;}
@media(max-width:980px){.cwd-site-nav .cwd-nav-items{gap:12px;}.cwd-site-nav a{font-size:13px;}.cwd-post-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:730px){.cwd-header-inner{min-height:72px;flex-wrap:wrap;}.cwd-menu-toggle{display:block;}.cwd-site-nav{display:none;width:100%;padding:0 0 15px;}.cwd-site-nav.cwd-nav-open{display:block;}.cwd-site-nav .cwd-nav-items{display:flex;flex-direction:column;align-items:stretch;gap:0;}.cwd-site-nav .cwd-nav-items>li{border-bottom:1px solid #eee;}.cwd-site-nav a{padding:10px 0;}.cwd-site-nav .sub-menu{display:block;position:static;box-shadow:none;padding:0 15px;}.cwd-post-grid{grid-template-columns:1fr;}.cwd-footer-main{grid-template-columns:1fr;gap:22px;}.cwd-main{padding-top:40px;padding-bottom:65px;}.cwd-brand-text strong{font-size:19px;}.cwd-mark{font-size:37px;}.cwd-page-heading{margin-bottom:28px;}}
/* v1.1: footer colors and layout aligned with the main site's screenshot. */
.cwd-blog-theme {font-family:'Poppins',Arial,Helvetica,sans-serif;}
.cwd-site-header{box-shadow:none;border-bottom:1px solid #f3f3f3;}
.cwd-header-inner{min-height:80px;}
.cwd-footer{background:#f4f8ff;color:#18263e;}
.cwd-footer-main{padding:66px 0 56px;grid-template-columns:1.18fr 1fr .9fr 1.1fr;gap:55px;}
.cwd-footer h3{font-size:20px;font-weight:700;color:#551f91;margin:0 0 20px;}
.cwd-footer a{color:#19243b;font-size:13px;margin-bottom:10px;line-height:1.5;}
.cwd-footer a:hover{color:#6625a8;}
.cwd-footer p{color:#2a3448;font-size:13px;line-height:1.7;}
.cwd-footer-logo{display:inline-block!important;max-width:235px;margin-bottom:20px!important;}
.cwd-footer-brand-image{max-width:220px;height:auto;display:block;}
.cwd-footer-brand-fallback{display:flex;align-items:center;gap:12px;line-height:1;color:#111;}
.cwd-footer-brand-fallback>span:last-child{display:flex;flex-direction:column;}
.cwd-footer-brand-fallback small{font-size:13px;font-weight:700;}
.cwd-footer-brand-fallback strong{font-size:26px;letter-spacing:-1.6px;}
.cwd-footer-brand-fallback em{font-size:12px;font-style:normal;text-align:right;}
.cwd-footer-redmark{font-size:52px;color:#ed273d;}
.cwd-footer-contact strong{display:block;margin:12px 0 0;font-size:13px;color:#15213b;}
.cwd-footer-contact strong:before{content:'—';color:#176be7;margin-right:6px;font-weight:800;}
.cwd-footer-contact p{margin:2px 0 12px;}
.cwd-footer-contact p a{margin:0;}
.cwd-socials{display:flex;gap:11px;margin-top:45px;}
.cwd-footer .cwd-socials a{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#086bcb;color:white;font-size:17px;font-weight:700;margin:0;}
.cwd-footer .cwd-socials a:nth-child(2){background:#e40036;}
.cwd-footer .cwd-socials a:nth-child(3){background:#1976e9;}
.cwd-footer-bottom{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;border-top:1px solid #c9d2e0;padding:19px 0;color:#48556a;font-size:12px;}
.cwd-footer-bottom a{display:inline;color:#48556a;font-size:12px;}
.cwd-nav-items > li.menu-item-has-children>a:after{content:'⌄';padding-left:5px;}
@media(max-width:900px){.cwd-footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:35px;}}
@media(max-width:600px){.cwd-footer-main{grid-template-columns:1fr;padding:40px 0;}.cwd-footer-bottom{flex-direction:column;gap:10px;}.cwd-socials{margin-top:20px;}}

/* v1.2 main-site logo and footer parity */
.cwd-blog-theme .cwd-site-header .cwd-header-inner{min-height:81px;}
.cwd-blog-theme .cwd-brand-image{width:185px;height:auto;max-width:185px;max-height:none;object-fit:contain;}
.cwd-blog-theme .cwd-footer-brand-image{display:block;width:205px;max-width:100%;height:auto;max-height:none;object-fit:contain;}
.cwd-blog-theme .cwd-footer-about p{max-width:260px;margin:18px 0 0;}
.cwd-blog-theme .cwd-socials{display:flex;align-items:center;gap:12px;margin-top:72px;min-height:0;}
.cwd-blog-theme .cwd-socials:empty{display:none;}
.cwd-blog-theme .cwd-footer .cwd-socials a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;color:#fff;font-family:Arial,sans-serif;font-size:18px;font-weight:800;text-decoration:none;line-height:1;margin:0;}
.cwd-blog-theme .cwd-social-linkedin{background:#0a66c2!important;}
.cwd-blog-theme .cwd-social-pinterest{background:#e60023!important;}
.cwd-blog-theme .cwd-social-facebook{background:#1877f2!important;}
.cwd-blog-theme .cwd-socials .cwd-social-linkedin span{font-size:17px;letter-spacing:-1px;}
.cwd-blog-theme .cwd-socials .cwd-social-pinterest span{font-size:24px;font-family:Georgia,serif;font-style:italic;}
.cwd-blog-theme .cwd-socials .cwd-social-facebook span{font-size:24px;}
.cwd-blog-theme .cwd-footer{background:#f4f8ff;}
.cwd-blog-theme .cwd-footer-main{grid-template-columns:1.1fr 1fr .95fr 1.1fr;gap:44px;max-width:1160px;}
.cwd-blog-theme .cwd-footer-bottom{align-items:center;}
.cwd-blog-theme .cwd-site-nav .cwd-nav-items{gap:28px;}
@media(max-width:900px){.cwd-blog-theme .cwd-footer-main{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:730px){.cwd-blog-theme .cwd-brand-image{width:160px;}.cwd-blog-theme .cwd-footer-main{grid-template-columns:1fr;}.cwd-blog-theme .cwd-socials{margin-top:25px;}.cwd-blog-theme .cwd-site-nav .cwd-nav-items{gap:0;}}

/* v1.3: allow Elementor to control the entire page body. */
.cwd-elementor-page{width:100%;min-height:320px;}
.cwd-elementor-page .elementor{width:100%;}
.cwd-shortcode-posts .cwd-post-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.cwd-shortcode-columns-1 .cwd-post-grid{grid-template-columns:1fr;}
.cwd-shortcode-columns-2 .cwd-post-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.cwd-shortcode-columns-4 .cwd-post-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.cwd-shortcode-posts .cwd-pagination .page-numbers{margin:0 4px 6px;}
@media(max-width:980px){.cwd-shortcode-posts .cwd-post-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){.cwd-shortcode-posts .cwd-post-grid{grid-template-columns:1fr;}}
