/*
Theme Name: BeFunky.in
Description: Fast, responsive editorial WordPress theme for Shayari, Wishes, Quotes, Messages and Images.
Version: 25.0.0
Author: BeFunky.in
Text Domain: befunky
License: GPL-2.0-or-later
*/

:root{
 --pink:#f52869;--pink-dark:#df1556;--ink:#172033;--muted:#697386;--line:#e8edf3;
 --surface:#fff;--page:#f4f8fb;--soft:#fff1f6;--soft2:#f1f7ff;--shadow:0 10px 35px rgba(23,32,51,.08);
 --radius:16px;--container:1240px;
}
html[data-theme="dark"]{
 --ink:#f4f7fb;--muted:#aab4c5;--line:#2c3545;--surface:#151b25;--page:#0e131b;
 --soft:#291722;--soft2:#172536;--shadow:0 10px 35px rgba(0,0,0,.3);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--page);color:var(--ink);font:15px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body,button,input{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
img{display:block;max-width:100%;height:auto}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
button{cursor:pointer}
.container{width:min(calc(100% - 32px),var(--container));margin:auto}
.site-shell{width:min(1280px,100%);margin:8px auto;background:var(--surface);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}
.site-header{background:var(--surface);border-bottom:1px solid var(--line);position:relative;z-index:50}
.header-top{display:flex;align-items:center;gap:22px;padding:14px 28px 10px}
.brand{display:inline-flex;align-items:center;min-width:190px}
.custom-logo-link{display:flex;align-items:center}
.custom-logo{max-height:54px;width:auto}
.logo-wordmark{font:800 30px/1 Georgia,serif;letter-spacing:-1.5px}
.logo-wordmark .pink{color:var(--pink)}
.logo-sub{font-size:9px;line-height:1;font-weight:800;display:block;margin-top:5px;letter-spacing:.2px}
.header-search{flex:1;max-width:530px;margin-left:auto}
.search-form{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface)}
.search-form label{flex:1}
.search-field{display:block;width:100%;border:0;outline:0;background:transparent;color:var(--ink);padding:11px 13px}
.search-submit{width:48px;height:44px;border:0;background:var(--pink);color:#fff;font-size:20px}
.header-actions{display:flex;gap:7px}
.icon-button{border:0;background:transparent;color:var(--ink);width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:18px}
.icon-button:hover{background:var(--soft);color:var(--pink)}
.mobile-menu-button{display:none}
.primary-nav{border-top:0}
.primary-nav .menu{display:flex;align-items:center;gap:27px;margin:0;padding:0 28px;list-style:none;overflow:auto;white-space:nowrap}
.primary-nav .menu>li{position:relative}
.primary-nav a{display:block;padding:14px 0;font-size:13px;font-weight:800}
.primary-nav a:hover,.primary-nav .current-menu-item>a,.primary-nav .current_page_item>a{color:var(--pink)}
.primary-nav .current-menu-item>a:after,.primary-nav .current_page_item>a:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px;background:var(--pink)}
.primary-nav .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:190px;margin:0;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);list-style:none}
.primary-nav li:hover>.sub-menu{display:block}
.primary-nav .sub-menu a{padding:9px 10px}

.hero{background:linear-gradient(110deg,var(--surface),var(--soft2));padding:44px;display:grid;grid-template-columns:1.05fr .95fr;gap:35px;align-items:center}
.hero-copy{max-width:650px}
.kicker{font-size:11px;text-transform:uppercase;letter-spacing:1.7px;font-weight:900;color:var(--pink)}
.hero h1{font:700 clamp(40px,5vw,62px)/.98 Georgia,serif;letter-spacing:-2.5px;margin:11px 0 16px}
.hero p{font-size:17px;color:var(--muted);max-width:600px;margin:0 0 24px}
.actions{display:flex;flex-wrap:wrap;gap:8px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:12px 20px;border-radius:999px;background:var(--pink);color:#fff;font-weight:850;font-size:13px;border:1px solid var(--pink)}
.button:hover{background:var(--pink-dark);border-color:var(--pink-dark)}
.button.secondary{background:var(--surface);border-color:#ccd5df;color:var(--ink)}
.hero-art{min-height:270px;border-radius:24px;overflow:hidden;position:relative;background:linear-gradient(135deg,#dceeff,#fff0f7);display:flex;align-items:flex-end;padding:28px}
.hero-art:before{content:"";position:absolute;inset:12% 9% auto auto;width:130px;height:130px;border-radius:50%;background:rgba(255,255,255,.65)}
.hero-art:after{content:"";position:absolute;left:-25px;bottom:-50px;width:220px;height:140px;border-radius:50%;background:rgba(255,255,255,.6)}
.hero-quote{position:relative;z-index:2;font:italic 29px/1.25 Georgia,serif;max-width:340px;color:#29364b}
.hero-quote small{display:block;font:700 11px system-ui;margin-top:12px;letter-spacing:1px;text-transform:uppercase}

.quick-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;padding:16px 28px;border-bottom:1px solid var(--line)}
.quick-item{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:72px;border-radius:12px;background:color-mix(in srgb,var(--surface) 90%,#eef2f8);font-size:11px;font-weight:850;transition:.2s}
.quick-item:hover{transform:translateY(-2px);background:var(--soft);color:var(--pink)}
.quick-icon{font-size:22px;line-height:1;margin-bottom:6px}

.section{padding:30px 28px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px}
.section-title{font:700 28px/1.15 Georgia,serif;margin:0;letter-spacing:-.5px}
.see-all{font-size:12px;color:var(--pink);font-weight:900}
.post-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.post-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;min-width:0;transition:transform .18s,box-shadow .18s}
.post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.post-thumb{aspect-ratio:16/10;background:linear-gradient(135deg,#ffe0eb,#e7f3ff);overflow:hidden;position:relative}
.post-thumb img{width:100%;height:100%;object-fit:cover}
.placeholder-art{height:100%;display:grid;place-items:center;text-align:center;padding:18px;font:700 22px/1.1 Georgia,serif;color:#33425a}
.post-body{padding:12px 13px 13px}
.post-title{font-size:14px;line-height:1.35;margin:0 0 7px;font-weight:850}
.post-date{font-size:11px;color:var(--muted)}
.arrow{float:right;color:var(--pink);font-size:17px;line-height:1}

.promo{margin:0 28px 28px;padding:28px 30px;border-radius:16px;background:linear-gradient(90deg,var(--soft),#f5efff);display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden}
.promo h2{font:700 32px/1.05 Georgia,serif;margin:0 0 8px}
.promo p{color:var(--muted);margin:0}
.promo-art{font-size:62px;letter-spacing:-12px;white-space:nowrap}

.newsletter-strip{margin:0 28px 30px;padding:18px 20px;border:1px solid #ffd8e5;border-radius:14px;background:var(--soft);display:flex;align-items:center;justify-content:space-between;gap:20px}
.newsletter-strip strong{font-size:14px}
.newsletter-strip p{font-size:11px;color:var(--muted);margin:2px 0 0}
.newsletter-form{display:flex;gap:7px;min-width:330px}
.newsletter-form input{flex:1;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:10px 11px;outline:0}
.newsletter-form button{border:0}

.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;padding:28px}
.breadcrumbs{font-size:11px;color:var(--muted);margin-bottom:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.article-title{font:700 clamp(32px,4vw,49px)/1.05 Georgia,serif;letter-spacing:-1.2px;margin:7px 0 13px}
.article-excerpt{color:var(--muted);font-size:16px;margin:0 0 18px}
.author-row{display:flex;align-items:center;gap:10px;margin:15px 0 19px}
.author-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#f52869,#ffb7ce);color:#fff;font-weight:900;overflow:hidden}
.author-avatar img{width:100%;height:100%;object-fit:cover}
.author-meta{font-size:12px}.author-meta .meta{font-size:11px;color:var(--muted)}
.share-row{margin-left:auto;display:flex;gap:6px}
.share-button{width:32px;height:32px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;font-size:12px}
.share-button:hover{background:var(--soft);color:var(--pink)}
.featured-image{border-radius:15px;overflow:hidden;background:#f2f4f7;margin-bottom:22px}
.featured-image img{width:100%;height:auto}
.article-content{font-size:17px}
.article-content h2{font:700 28px/1.2 Georgia,serif;margin:30px 0 12px}
.article-content h3{font:700 22px/1.25 Georgia,serif;margin:25px 0 10px}
.article-content p{margin:0 0 17px}
.article-content ul,.article-content ol{padding-left:25px}
.quote-box{margin:22px 0;padding:20px 22px;border-left:4px solid var(--pink);background:var(--soft);border-radius:0 12px 12px 0;font:italic 18px/1.55 Georgia,serif}
.tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:25px}
.tag{padding:5px 9px;border-radius:999px;background:var(--soft2);font-size:10px;font-weight:800;color:var(--muted)}
.prev-next{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:25px}
.prev-next a{border:1px solid var(--line);border-radius:11px;padding:13px;font-size:12px}
.prev-next span{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}

.sidebar-card{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:16px;margin-bottom:16px}
.sidebar-card h3{font:700 20px Georgia,serif;margin:0 0 12px}
.related-item{display:grid;grid-template-columns:58px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px;font-weight:800}
.related-item:last-child{border-bottom:0}
.related-thumb{width:58px;height:46px;border-radius:7px;overflow:hidden;background:linear-gradient(135deg,#ffe0eb,#e8f3ff)}
.related-thumb img{width:100%;height:100%;object-fit:cover}
.category-list{list-style:none;margin:0;padding:0}
.category-list li{border-bottom:1px solid var(--line)}
.category-list li:last-child{border-bottom:0}
.category-list a{display:flex;justify-content:space-between;padding:8px 0;font-size:12px;font-weight:750}
.stay-updated{background:var(--soft)}
.stay-updated input{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);margin:6px 0 8px}
.stay-updated button{width:100%;border:0;padding:10px;background:var(--pink);color:#fff;border-radius:8px;font-weight:850}

.pagination{display:flex;flex-wrap:wrap;gap:7px;margin-top:25px}
.pagination a,.pagination span{display:inline-block;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:12px}
.pagination .current{background:var(--pink);border-color:var(--pink);color:#fff}

.site-footer{background:var(--surface);border-top:1px solid var(--line);padding:28px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:28px}
.footer-title{font:700 20px Georgia,serif;margin-bottom:8px}
.footer-title .pink{color:var(--pink)}
.footer-text,.footer-links a{font-size:11px;color:var(--muted)}
.footer-links a{display:block;padding:4px 0}
.copyright{border-top:1px solid var(--line);margin-top:22px;padding-top:14px;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted)}

html[data-theme="dark"] .hero-art{background:linear-gradient(135deg,#1d3146,#321b28)}
html[data-theme="dark"] .hero-quote{color:#f2f5fb}
html[data-theme="dark"] .primary-nav .sub-menu{background:var(--surface)}

@media(max-width:1000px){
 .quick-grid{grid-template-columns:repeat(4,1fr)}
 .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .content-layout{grid-template-columns:1fr}
 .sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .footer-grid{grid-template-columns:2fr 1fr 1fr}
}
@media(max-width:700px){
 .site-shell{margin:0;border-radius:0}
 .header-top{padding:12px 15px;flex-wrap:wrap;gap:8px}
 .brand{min-width:0}
 .logo-wordmark{font-size:25px}
 .header-search{order:4;flex-basis:100%;max-width:none}
 .mobile-menu-button{display:grid}
 .primary-nav{display:none;border-top:1px solid var(--line)}
 .primary-nav.is-open{display:block}
 .primary-nav .menu{display:block;padding:6px 15px}
 .primary-nav .menu>li{border-bottom:1px solid var(--line)}
 .primary-nav a{padding:11px 4px}
 .primary-nav .current-menu-item>a:after,.primary-nav .current_page_item>a:after{display:none}
 .primary-nav .sub-menu{display:block;position:static;border:0;box-shadow:none;padding:0 0 6px 15px;background:transparent}
 .hero{padding:31px 18px;grid-template-columns:1fr}
 .hero h1{font-size:41px}
 .hero p{font-size:15px}
 .hero-art{min-height:190px}
 .quick-grid{padding:12px 15px;gap:7px}
 .quick-item{min-height:67px;font-size:10px}
 .section{padding:24px 15px}
 .section-title{font-size:25px}
 .post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .post-body{padding:10px}
 .post-title{font-size:12px}
 .promo{margin:0 15px 22px;padding:22px}
 .promo h2{font-size:27px}
 .promo-art{font-size:42px}
 .newsletter-strip{margin:0 15px 24px;display:block}
 .newsletter-form{min-width:0;margin-top:12px}
 .content-layout{padding:20px 15px}
 .article-title{font-size:34px}
 .author-row{align-items:flex-start;flex-wrap:wrap}
 .share-row{margin-left:50px}
 .featured-image{margin-top:5px}
 .sidebar{display:block}
 .sidebar-card{margin-bottom:14px}
 .prev-next{grid-template-columns:1fr}
 .footer-grid{grid-template-columns:1fr 1fr}
 .copyright{display:block}
 .copyright span{display:block;margin-top:4px}
}
@media(max-width:390px){
 .quick-grid{grid-template-columns:repeat(4,1fr)}
 .post-grid{grid-template-columns:1fr}
 .newsletter-form{display:block}
 .newsletter-form input{width:100%;margin-bottom:7px}
 .newsletter-form button{width:100%}
}


/* Post-page image downloads */
.article-content .befunky-image-download-wrap{
  margin:22px 0 28px;
  border-radius:15px;
}
.article-content .befunky-image-download-wrap > img{
  width:100%;
  border-radius:15px;
}
.befunky-download-row{
  display:flex;
  justify-content:center;
  margin-top:10px;
}
.befunky-download-button{
  min-width:190px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:10px 17px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
  font-size:13px;
  font-weight:850;
  box-shadow:0 4px 15px rgba(23,32,51,.06);
  transition:.2s;
}
.befunky-download-button[aria-disabled="true"]{
  cursor:not-allowed;
  opacity:.72;
}
.befunky-download-button:not([aria-disabled="true"]){
  background:var(--pink);
  border-color:var(--pink);
  color:#fff;
}
.befunky-download-button:not([aria-disabled="true"]):hover{
  background:var(--pink-dark);
  transform:translateY(-1px);
}
.download-icon{
  width:23px;height:23px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(245,40,105,.10);
  color:var(--pink);font-size:17px;line-height:1;
}
.befunky-download-button:not([aria-disabled="true"]) .download-icon{
  background:rgba(255,255,255,.18);color:#fff;
}
.download-timer{
  min-width:25px;height:25px;border-radius:50%;
  display:grid;place-items:center;
  background:#f0f3f7;color:var(--muted);font-size:11px;
}
.befunky-download-button:not([aria-disabled="true"]) .download-timer{
  background:rgba(255,255,255,.18);color:#fff;
}

/* Stylish quote copy control */
.article-content blockquote{
  position:relative;
  padding:20px 62px 20px 22px;
}
.befunky-quote-inner{min-width:0}
.befunky-copy-quote{
  position:absolute;
  top:12px;right:12px;
  display:inline-flex;align-items:center;gap:6px;
  border:1px solid rgba(245,40,105,.18);
  background:var(--surface);
  color:var(--pink);
  padding:7px 10px;
  border-radius:999px;
  font-size:11px;font-weight:850;
  box-shadow:0 3px 12px rgba(23,32,51,.06);
}
.befunky-copy-quote:hover{
  background:var(--pink);color:#fff;border-color:var(--pink);
}
.befunky-copy-quote.is-copied{
  background:#172033;color:#fff;border-color:#172033;
}
.copy-icon{font-size:14px;line-height:1}

/* Related posts section */
.related-section{
  margin-top:34px;
  padding-top:26px;
  border-top:1px solid var(--line);
}
.related-note{
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}
.related-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
}
.related-card{
  border:1px solid var(--line);
  border-radius:13px;
  overflow:hidden;
  background:var(--surface);
  transition:.2s;
}
.related-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
.related-card-image{
  aspect-ratio:16/9;
  overflow:hidden;
  background:linear-gradient(135deg,#ffe0eb,#e8f3ff);
}
.related-card-image img{
  width:100%;height:100%;object-fit:cover;
}
.related-card-body{padding:11px 12px}
.related-card-body h3{
  margin:0 0 7px;
  font-size:13px;line-height:1.35;
}
.related-card-body span{
  font-size:10px;color:var(--muted);
}
.related-card-body b{
  float:right;color:var(--pink);font-size:16px;line-height:1;
}

/* Compact previous/next navigation */
.prev-next{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:17px;
}
.prev-next > div{min-width:0}
.prev-next a{
  display:block;
  height:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px 14px;
  background:var(--surface);
  transition:.2s;
}
.prev-next a:hover{
  border-color:#ffc1d5;
  background:var(--soft);
}
.prev-next a span{
  display:block;
  margin:0 0 5px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.prev-next a strong{
  display:block;
  font-size:12px;
  line-height:1.35;
  font-weight:850;
  color:var(--ink);
}

@media(max-width:700px){
  .related-grid{grid-template-columns:1fr}
  .related-card-image{aspect-ratio:16/8}
  .befunky-download-button{width:100%;max-width:280px}
  .article-content blockquote{padding-right:18px;padding-top:53px}
  .befunky-copy-quote{top:11px;right:11px}
}


/* BeFunky V4 fixes */
.article-content blockquote{
  position:relative;
  background:#fff0f6 !important;
  color:#273246 !important;
  border-left:4px solid var(--pink);
  padding:20px 62px 20px 22px;
}
html[data-theme="dark"] .article-content blockquote{
  background:#2a1b25 !important;
  color:#f4f7fb !important;
}
.article-content blockquote .befunky-copy-quote{
  background:rgba(255,255,255,.88);
  color:var(--pink);
}
html[data-theme="dark"] .article-content blockquote .befunky-copy-quote{
  background:#151b25;
  color:#ff7198;
}

html[data-theme="dark"] body{background:var(--page);color:var(--ink)}
html[data-theme="dark"] .site-shell,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .related-card,
html[data-theme="dark"] .prev-next a,
html[data-theme="dark"] .search-form,
html[data-theme="dark"] .quick-item{
  background:var(--surface);
  color:var(--ink);
  border-color:var(--line);
}
html[data-theme="dark"] .hero{background:linear-gradient(110deg,#151b25,#172536)}
html[data-theme="dark"] .promo{background:linear-gradient(90deg,#291722,#211b31)}
html[data-theme="dark"] .newsletter-strip{background:#211822;border-color:#4a2a38}
html[data-theme="dark"] .search-field{color:var(--ink)}
html[data-theme="dark"] .search-field::placeholder{color:#8d98aa}
html[data-theme="dark"] .tag{background:#172536;color:#c3ccda}
html[data-theme="dark"] .placeholder-art{color:#eef2f8}
html[data-theme="dark"] .related-card-body h3,
html[data-theme="dark"] .post-title,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .article-title{color:var(--ink)}

@media(max-width:700px){
  .article-content blockquote{padding:54px 18px 20px}
  .related-grid{grid-template-columns:1fr}
}

/* BeFunky V5 */
.article-content img{
  display:block;
  margin-left:auto !important;
  margin-right:auto !important;
}
.article-content .befunky-image-download-wrap{
  width:100%;
  text-align:center;
  margin:24px auto 32px;
}
.article-content .befunky-image-download-wrap > img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  margin:0 auto !important;
}

.article-content blockquote{
  box-sizing:border-box;
  width:100%;
  margin:28px auto;
  padding:22px 20px 20px;
  border:3px solid #ff8b3d !important;
  border-radius:16px;
  background:#fff !important;
  color:#111 !important;
  text-align:center;
  font-style:normal;
}
.article-content blockquote .befunky-quote-inner{
  display:block;
  max-width:760px;
  margin:0 auto;
  text-align:center;
  color:inherit;
  font-size:18px;
  line-height:1.55;
}
.article-content blockquote .befunky-copy-quote{
  position:static !important;
  display:flex;
  min-width:96px;
  width:max-content;
  margin:12px auto 0 !important;
  padding:8px 22px;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:0 !important;
  border-radius:999px;
  background:#ffb84d !important;
  color:#111 !important;
  box-shadow:none !important;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
}
.article-content blockquote .befunky-copy-quote:hover{
  filter:brightness(.96);
  transform:translateY(-1px);
}
.article-content blockquote .befunky-copy-quote.is-copied{
  background:#54b978 !important;
  color:#fff !important;
}

.befunky-download-button{
  cursor:pointer !important;
}
.befunky-download-button .download-timer{
  display:none;
}
.befunky-download-button.is-counting .download-timer{
  display:grid;
}
.befunky-download-button[data-ready="true"] .download-timer{
  display:none;
}
html[data-theme="dark"] .article-content blockquote{
  background:#1f252f !important;
  color:#f4f7fb !important;
  border-color:#ff8b3d !important;
}
html[data-theme="dark"] .article-content blockquote .befunky-copy-quote{
  background:#ffb84d !important;
  color:#111 !important;
}
@media(max-width:700px){
  .article-content blockquote{padding:20px 14px 18px}
  .article-content blockquote .befunky-quote-inner{font-size:16px}
}


/* BeFunky V6 — mobile alignment hardening */
@media (max-width: 767px) {
  .article-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }

  .article-content p,
  .article-content h2,
  .article-content h3,
  .article-content h4,
  .article-content ul,
  .article-content ol {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Keep every post image centered and inside the viewport. */
  .article-content img,
  .article-content figure,
  .article-content .wp-block-image,
  .article-content .wp-block-image img,
  .article-content .wp-caption {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .article-content img {
    width: auto;
    height: auto;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .article-content figure,
  .article-content .wp-block-image,
  .article-content .wp-caption {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  /* Download control remains centered and never overflows. */
  .article-content .befunky-image-download-wrap {
    width: 100%;
    max-width: 100%;
    margin: 20px auto 28px;
    text-align: center;
    box-sizing: border-box;
  }

  .article-content .befunky-download-row {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }

  .article-content .befunky-download-button {
    max-width: calc(100% - 24px);
    box-sizing: border-box;
  }

  /* Quote card stays centered at 320px, 360px, 375px, 390px,
     414px and larger phone widths. */
  .article-content blockquote {
    width: 100%;
    max-width: 100%;
    margin: 22px auto !important;
    box-sizing: border-box;
    text-align: center !important;
    overflow-wrap: anywhere;
  }

  .article-content blockquote .befunky-quote-inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center !important;
  }

  .article-content blockquote .befunky-copy-quote {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Prevent wide tables/code/content from breaking the page. */
  .article-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .article-content pre {
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
  }

  .article-content iframe,
  .article-content video,
  .article-content embed {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .article-content blockquote {
    padding: 18px 11px 16px !important;
    border-width: 2px !important;
    border-radius: 14px;
  }

  .article-content blockquote .befunky-quote-inner {
    font-size: 15px;
    line-height: 1.5;
  }

  .article-content .befunky-download-button {
    width: calc(100% - 20px);
    max-width: 280px;
  }
}


/* =========================================================
   BeFunky V7 — full-site responsive/mobile layer
   ========================================================= */

html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  overflow-x:hidden;
}
.site-shell{
  max-width:1280px;
}
.custom-logo,
.custom-logo-link img{
  max-width:100%;
  height:auto;
}
input,textarea,select{
  max-width:100%;
}
iframe,video,embed,object{
  max-width:100%;
}

/* Footer WordPress menus should never create horizontal overflow. */
.footer-links ul{
  list-style:none;
  margin:0;
  padding:0;
}

/* Tablet / small laptop: turn the header into the same compact
   responsive system used on phones. */
@media (max-width: 900px){
  .header-top{
    padding:12px 18px 10px;
    flex-wrap:wrap;
    gap:9px;
  }

  .brand{
    min-width:0;
    flex:1 1 auto;
  }

  .header-search{
    order:4;
    flex:0 0 100%;
    max-width:none;
    margin-left:0;
  }

  .header-actions{
    flex:0 0 auto;
  }

  .mobile-menu-button{
    display:grid;
  }

  .primary-nav{
    display:none;
    border-top:1px solid var(--line);
  }

  .primary-nav.is-open{
    display:block;
  }

  .primary-nav .menu{
    display:block;
    padding:6px 18px;
    overflow:visible;
    white-space:normal;
  }

  .primary-nav .menu>li{
    border-bottom:1px solid var(--line);
  }

  .primary-nav a{
    padding:12px 5px;
    min-height:44px;
    display:flex;
    align-items:center;
  }

  .primary-nav .current-menu-item>a:after,
  .primary-nav .current_page_item>a:after{
    display:none;
  }

  .primary-nav .sub-menu{
    display:block;
    position:static;
    width:auto;
    min-width:0;
    border:0;
    box-shadow:none;
    padding:0 0 7px 15px;
    background:transparent;
  }

  .primary-nav .sub-menu a{
    min-height:40px;
  }

  .hero{
    grid-template-columns:1fr;
  }

  .content-layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    display:block;
  }

  .footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .article-content{
    min-width:0;
  }
}

/* Tablets */
@media (min-width: 701px) and (max-width: 900px){
  .site-shell{
    margin:0;
    border-radius:0;
  }

  .hero{
    padding:34px 24px;
  }

  .section{
    padding:26px 22px;
  }

  .content-layout{
    padding:24px 22px;
  }

  .promo{
    margin-left:22px;
    margin-right:22px;
  }

  .newsletter-strip{
    margin-left:22px;
    margin-right:22px;
  }

  .site-footer{
    padding:26px 22px;
  }
}

/* Phones */
@media (max-width: 700px){
  html,body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  .container,
  .site-shell{
    width:100%;
    max-width:100%;
  }

  .site-shell{
    margin:0;
    border-radius:0;
  }

  .header-top{
    width:100%;
    padding:10px 12px;
  }

  .brand{
    min-width:0;
    overflow:hidden;
  }

  .brand>a,
  .custom-logo-link{
    min-width:0;
    max-width:100%;
  }

  .logo-wordmark{
    font-size:24px;
    white-space:nowrap;
  }

  .logo-sub{
    max-width:100%;
    white-space:nowrap;
  }

  .header-actions{
    gap:3px;
  }

  .icon-button{
    width:40px;
    height:40px;
    min-width:40px;
  }

  .header-search{
    width:100%;
  }

  .search-field{
    min-height:44px;
    font-size:16px; /* prevents iOS input zoom */
    padding:10px 12px;
  }

  .search-submit{
    width:46px;
    height:44px;
  }

  .hero{
    padding:28px 15px;
    gap:20px;
  }

  .hero h1{
    font-size:clamp(34px,10vw,42px);
    letter-spacing:-1.8px;
  }

  .hero p{
    font-size:15px;
  }

  .actions{
    width:100%;
  }

  .actions .button{
    flex:1 1 150px;
    min-height:44px;
  }

  .hero-art{
    min-height:170px;
    padding:22px;
  }

  .hero-quote{
    font-size:25px;
  }

  .quick-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    padding:10px 12px;
    gap:6px;
  }

  .quick-item{
    min-width:0;
    min-height:68px;
    padding:8px 3px;
  }

  .quick-item span:last-child{
    max-width:100%;
    overflow-wrap:anywhere;
  }

  .section{
    padding:23px 12px;
  }

  .section-heading{
    align-items:flex-end;
  }

  .section-title{
    font-size:24px;
  }

  .post-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .post-card{
    min-width:0;
  }

  .post-thumb{
    width:100%;
  }

  .post-title{
    overflow-wrap:anywhere;
  }

  .promo{
    margin:0 12px 20px;
    padding:20px 16px;
    flex-direction:column;
    align-items:flex-start;
  }

  .promo-art{
    align-self:center;
    font-size:40px;
    letter-spacing:-8px;
    max-width:100%;
  }

  .newsletter-strip{
    margin:0 12px 22px;
    padding:16px;
  }

  .newsletter-form{
    width:100%;
    min-width:0;
    flex-direction:column;
  }

  .newsletter-form input,
  .newsletter-form button{
    width:100%;
    min-height:44px;
    font-size:16px;
  }

  .content-layout{
    display:block;
    padding:18px 12px 24px;
  }

  .article-title{
    font-size:clamp(29px,8vw,36px);
    overflow-wrap:anywhere;
  }

  .article-excerpt{
    font-size:15px;
  }

  .author-row{
    gap:8px;
  }

  .author-avatar{
    width:40px;
    min-width:40px;
  }

  .share-row{
    width:100%;
    margin-left:48px;
  }

  .share-button{
    width:36px;
    height:36px;
  }

  .featured-image{
    width:100%;
    margin-bottom:18px;
  }

  .featured-image img{
    width:100%;
    height:auto;
    object-fit:contain;
  }

  .article-content{
    width:100%;
    max-width:100%;
    font-size:16px;
    line-height:1.7;
    overflow-wrap:anywhere;
    word-break:normal;
  }

  .article-content h2{
    font-size:25px;
  }

  .article-content h3{
    font-size:21px;
  }

  .article-content ul,
  .article-content ol{
    padding-left:22px;
  }

  .sidebar{
    width:100%;
  }

  .sidebar-card{
    width:100%;
  }

  .related-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .prev-next{
    grid-template-columns:1fr;
  }

  .site-footer{
    padding:24px 15px;
  }

  .footer-grid{
    grid-template-columns:1fr 1fr;
    gap:20px;
  }

  .copyright{
    line-height:1.5;
  }
}

/* Very small phones: remove any cramped two-column UI. */
@media (max-width: 390px){
  .header-top{
    padding-left:10px;
    padding-right:10px;
  }

  .logo-wordmark{
    font-size:22px;
  }

  .logo-sub{
    font-size:8px;
  }

  .icon-button{
    width:38px;
    min-width:38px;
    height:38px;
  }

  .quick-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
  }

  .quick-item{
    min-height:64px;
    font-size:9px;
  }

  .quick-icon{
    font-size:19px;
  }

  .post-grid{
    grid-template-columns:1fr;
  }

  .related-grid{
    grid-template-columns:1fr;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }

  .article-content blockquote{
    max-width:100%;
  }
}

/* 320px devices */
@media (max-width: 340px){
  .hero{
    padding-left:12px;
    padding-right:12px;
  }

  .hero h1{
    font-size:33px;
  }

  .quick-item{
    font-size:8.5px;
  }

  .section,
  .content-layout{
    padding-left:10px;
    padding-right:10px;
  }

  .article-title{
    font-size:28px;
  }

  .article-content{
    font-size:15.5px;
  }

  .article-content blockquote{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .article-content blockquote .befunky-quote-inner{
    font-size:15px;
  }

  .befunky-download-button{
    width:100%;
    max-width:280px;
  }
}

/* Landscape phones: use the available width without allowing
   horizontal overflow. */
@media (max-width: 900px) and (orientation: landscape){
  .hero{
    grid-template-columns:1fr 1fr;
  }

  .hero-art{
    min-height:190px;
  }

  .post-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* Accessibility / touch targets */
@media (pointer:coarse){
  .primary-nav a,
  .button,
  .icon-button,
  .share-button,
  .pagination a,
  .pagination span,
  .befunky-copy-quote,
  .befunky-download-button{
    -webkit-tap-highlight-color:transparent;
  }
}


/* =========================================================
   BeFunky V8 — Topics + Latest pages
   ========================================================= */

/* Topics */
.topics-page,
.latest-page{
  width:min(1240px,100%);
  margin:0 auto;
  padding:28px;
}

.topics-hero,
.latest-hero{
  padding:26px 28px 30px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(120deg,var(--soft),var(--soft2));
  margin-bottom:24px;
}

.topics-kicker,
.latest-kicker,
.topics-section-kicker,
.latest-category-kicker{
  display:block;
  color:var(--pink);
  font-size:10px;
  font-weight:900;
  letter-spacing:1.5px;
  text-transform:uppercase;
  margin-bottom:7px;
}

.topics-title,
.latest-title{
  margin:0 0 10px;
  font:700 clamp(38px,5vw,58px)/1 Georgia,serif;
  letter-spacing:-2px;
}

.topics-intro,
.latest-intro{
  max-width:760px;
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.topics-section{
  padding:0 2px 12px;
}

.topics-count{
  font-size:11px;
  color:var(--muted);
  font-weight:800;
}

.topics-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
}

.topic-card{
  display:flex;
  align-items:flex-start;
  gap:14px;
  min-width:0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  box-shadow:0 5px 22px rgba(23,32,51,.045);
  transition:transform .18s,box-shadow .18s,border-color .18s;
}

.topic-card:hover{
  transform:translateY(-3px);
  border-color:#ffc2d5;
  box-shadow:var(--shadow);
}

.topic-icon{
  width:58px;
  min-width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:linear-gradient(135deg,var(--soft),var(--soft2));
  font-size:29px;
}

.topic-card-content{
  min-width:0;
}

.topic-card h3{
  margin:0 0 5px;
  font:700 20px/1.2 Georgia,serif;
}

.topic-card p{
  margin:0 0 9px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.topic-meta{
  color:var(--pink);
  font-size:10px;
  font-weight:900;
}

.topic-meta b{
  margin-left:5px;
  font-size:14px;
}

.topics-empty,
.latest-empty{
  padding:30px;
  border:1px dashed var(--line);
  border-radius:14px;
  color:var(--muted);
  text-align:center;
}

/* Latest */
.latest-category{
  margin-bottom:34px;
}

.latest-category-heading{
  margin-bottom:14px;
}

.latest-category-heading .section-title{
  margin-top:0;
}

.latest-category-kicker{
  margin-bottom:3px;
}

.latest-post-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

/* V8 dark mode */
html[data-theme="dark"] .topics-hero,
html[data-theme="dark"] .latest-hero{
  background:linear-gradient(120deg,#291722,#172536);
}

html[data-theme="dark"] .topic-card{
  background:var(--surface);
  border-color:var(--line);
}

html[data-theme="dark"] .topic-card:hover{
  border-color:#6d354b;
}

@media(max-width:1000px){
  .topics-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .latest-post-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  .topics-page,
  .latest-page{
    padding:20px 15px 28px;
  }

  .topics-hero,
  .latest-hero{
    padding:22px 18px 24px;
    border-radius:15px;
    margin-bottom:20px;
  }

  .topics-title,
  .latest-title{
    font-size:38px;
    letter-spacing:-1.3px;
  }

  .topics-intro,
  .latest-intro{
    font-size:14px;
  }

  .topics-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .topic-card{
    padding:15px;
  }

  .topic-icon{
    width:50px;
    min-width:50px;
    height:50px;
    font-size:25px;
  }

  .topic-card h3{
    font-size:18px;
  }

  .latest-category{
    margin-bottom:28px;
  }

  .latest-category-heading{
    align-items:flex-end;
  }

  .latest-category-heading .see-all{
    white-space:nowrap;
    font-size:10px;
  }

  .latest-post-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
}

@media(max-width:390px){
  .topics-page,
  .latest-page{
    padding-left:10px;
    padding-right:10px;
  }

  .topics-title,
  .latest-title{
    font-size:34px;
  }

  .topic-card{
    padding:13px;
  }

  .latest-post-grid{
    grid-template-columns:1fr;
  }

  .latest-category-heading{
    display:block;
  }

  .latest-category-heading .see-all{
    display:inline-block;
    margin-top:5px;
  }
}


/* V9: ten requested quick categories */
.quick-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
@media(max-width:700px){
  .quick-grid{
    grid-template-columns:repeat(5,minmax(76px,1fr));
    overflow-x:auto;
    scrollbar-width:none;
  }
  .quick-grid::-webkit-scrollbar{display:none}
  .quick-item{min-width:76px}
}


/* V10 blockquote action bar, styled to match the provided design */
.article-content blockquote{
  border:3px solid transparent !important;
  background:linear-gradient(var(--surface,#fff),var(--surface,#fff)) padding-box,
             linear-gradient(110deg,#6257ff 0%,#e93691 58%,#ff4545 100%) border-box !important;
  border-radius:16px;
  padding:24px 22px 20px !important;
  overflow:hidden;
}
.article-content blockquote .befunky-quote-inner{
  margin:0 auto 22px;
  padding:0 8px;
  text-align:center;
  color:var(--text,#172033);
}
.article-content blockquote .befunky-quote-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  border-top:1px solid var(--line,#e7eaf0);
  padding-top:8px;
  width:100%;
}
.article-content blockquote .befunky-quote-actions button{
  display:flex;
  width:100%;
  min-width:0;
  min-height:44px;
  align-items:center;
  justify-content:center;
  margin:0 !important;
  padding:10px 14px;
  border:0 !important;
  border-radius:8px;
  color:#fff !important;
  cursor:pointer;
  font:700 12px/1.2 Arial,sans-serif;
  box-shadow:0 3px 8px rgba(0,0,0,.13);
  transition:filter .15s,transform .15s;
}
.article-content blockquote .befunky-whatsapp-quote{background:#1fc65b !important}
.article-content blockquote .befunky-copy-quote{background:linear-gradient(100deg,#ff5b13,#f1373e) !important}
.article-content blockquote .befunky-quote-actions button:hover{filter:brightness(.96);transform:translateY(-1px)}
.article-content blockquote .befunky-copy-quote.is-copied{background:#1caa57 !important}
.article-content blockquote .whatsapp-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border:1.7px solid #fff;border-radius:50%;
  font-size:13px;line-height:1;
}
.article-content blockquote .visually-hidden{
  position:absolute !important;width:1px !important;height:1px !important;
  padding:0 !important;margin:-1px !important;overflow:hidden !important;
  clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;
}
html[data-theme="dark"] .article-content blockquote{
  background:linear-gradient(#202631,#202631) padding-box,
             linear-gradient(110deg,#6257ff 0%,#e93691 58%,#ff4545 100%) border-box !important;
}
html[data-theme="dark"] .article-content blockquote .befunky-quote-inner{color:#f4f6fa}
@media(max-width:480px){
  .article-content blockquote{padding:20px 12px 14px !important;border-radius:14px}
  .article-content blockquote .befunky-quote-inner{padding:0 2px;margin-bottom:17px;font-size:16px;line-height:1.55}
  .article-content blockquote .befunky-quote-actions{gap:7px}
  .article-content blockquote .befunky-quote-actions button{min-height:42px;padding:9px 8px}
}


/* V11 homepage post cards: full-bleed image with readable bottom overlay */
.homepage-posts{
  padding-top:26px;
}
.homepage-posts-kicker{
  display:block;
  margin-bottom:5px;
  color:var(--pink);
  font-size:10px;
  font-weight:900;
  letter-spacing:1.4px;
  text-transform:uppercase;
}
.homepage-card-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.homepage-post-card{
  position:relative;
  isolation:isolate;
  aspect-ratio: 1.78 / 1;
  border:0;
  border-radius:17px;
  background:#111722;
  box-shadow:0 6px 18px rgba(13,20,32,.08);
}
.homepage-post-card>a{
  display:block;
  position:absolute;
  inset:0;
  color:#fff;
  overflow:hidden;
  border-radius:inherit;
}
.homepage-post-card .post-thumb{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  aspect-ratio:auto;
  background:#111722;
}
.homepage-post-card .post-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
.homepage-post-card:hover .post-thumb img{
  transform:scale(1.045);
}
.homepage-post-card .placeholder-art{
  width:100%;
  background:linear-gradient(135deg,#243044,#111722);
  color:#fff;
}
.homepage-card-shade{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(to bottom,rgba(7,12,20,.04) 15%,rgba(7,12,20,.12) 38%,rgba(7,12,20,.92) 100%);
  pointer-events:none;
}
.homepage-card-content{
  position:absolute;
  z-index:2;
  left:24px;
  right:20px;
  bottom:20px;
  color:#fff;
  pointer-events:none;
}
.homepage-card-content .post-title{
  margin:0 0 9px;
  color:#fff;
  font-size:clamp(17px,1.65vw,23px);
  line-height:1.22;
  font-weight:900;
  text-shadow:0 2px 8px rgba(0,0,0,.55);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.homepage-card-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  color:rgba(255,255,255,.88);
  font-size:12px;
  font-weight:650;
  text-shadow:0 1px 5px rgba(0,0,0,.7);
}
.homepage-pagination{
  justify-content:center;
  align-items:center;
  gap:10px;
  margin:38px 0 12px;
}
.homepage-pagination a,
.homepage-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  height:48px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:50px;
  background:var(--surface);
  color:var(--ink);
  font-size:14px;
  font-weight:800;
  text-decoration:none;
}
.homepage-pagination .current{
  background:#6257ed;
  border-color:#6257ed;
  color:#fff;
  box-shadow:0 5px 14px rgba(98,87,237,.24);
}
.homepage-pagination .dots{
  min-width:20px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.homepage-pagination a:hover{
  border-color:var(--pink);
  color:var(--pink);
}
@media(max-width:900px){
  .homepage-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .homepage-card-content{left:18px;right:16px;bottom:16px}
  .homepage-card-content .post-title{font-size:18px}
}
@media(max-width:560px){
  .homepage-card-grid{grid-template-columns:1fr;gap:15px}
  .homepage-post-card{aspect-ratio:1.72 / 1;border-radius:14px}
  .homepage-card-content{left:17px;right:15px;bottom:15px}
  .homepage-card-content .post-title{font-size:20px}
  .homepage-card-meta{font-size:11px}
  .homepage-pagination{gap:6px;margin-top:28px}
  .homepage-pagination a,
  .homepage-pagination span{min-width:40px;height:40px;padding:0 10px;font-size:12px}
}


/* V12 — single-column post and page canvas, based on supplied reference */
.content-layout{
  display:block !important;
  width:min(840px,calc(100% - 36px)) !important;
  max-width:840px !important;
  margin:16px auto 40px !important;
  padding:0 !important;
  grid-template-columns:minmax(0,1fr) !important;
}
.content-layout>article{
  width:100%;
  min-width:0;
  max-width:100%;
  padding:38px 40px 42px;
  margin:0;
  border:1px solid var(--line,#e7eaf0);
  border-radius:12px;
  background:var(--surface,#fff);
  box-shadow:0 2px 10px rgba(20,30,45,.025);
}
.content-layout .breadcrumbs{
  margin:0 0 20px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}
.content-layout .article-title{
  margin:0 0 17px;
  color:var(--ink,#172033);
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(34px,4.2vw,44px);
  font-weight:850;
  line-height:1.12;
  letter-spacing:-1.1px;
  overflow-wrap:anywhere;
}
.content-layout .author-row{
  margin:0 0 30px;
  align-items:center;
}
.content-layout .author-avatar{display:none}
.content-layout .author-meta{
  color:var(--muted);
  font-size:14px;
}
.content-layout .author-meta strong{
  color:var(--muted);
  font-weight:500;
}
.content-layout .author-meta .meta{
  display:inline;
  margin-left:5px;
  color:var(--muted);
}
.content-layout .share-row{margin-left:auto}
.content-layout .featured-image{
  width:100%;
  margin:0 0 28px;
  text-align:center;
}
.content-layout .featured-image img{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  margin:0 auto;
  border-radius:7px;
}
.content-layout .article-content{
  width:100%;
  max-width:100%;
  color:var(--text,#263247);
  font-size:17px;
  line-height:1.68;
  overflow-wrap:anywhere;
}
.content-layout .article-content p{
  margin:0 0 1.15em;
}
.content-layout .article-content img{
  display:block;
  max-width:100%;
  height:auto;
  margin:22px auto;
}
.content-layout .related-section{
  margin-top:36px;
}
.content-layout .related-card-body>span{
  display:none;
}
.content-layout .prev-next{
  margin-top:26px;
}
.page-content-layout>article{
  padding-top:38px;
}
@media(max-width:700px){
  .content-layout{
    width:calc(100% - 20px) !important;
    margin:10px auto 24px !important;
  }
  .content-layout>article{
    padding:23px 16px 28px;
    border-radius:10px;
  }
  .content-layout .breadcrumbs{
    margin-bottom:15px;
    font-size:11px;
  }
  .content-layout .article-title{
    font-size:clamp(29px,8vw,36px);
    letter-spacing:-.7px;
    line-height:1.15;
  }
  .content-layout .author-row{
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:20px;
  }
  .content-layout .author-meta{
    font-size:12px;
  }
  .content-layout .author-meta .meta{
    display:block;
    margin:2px 0 0;
  }
  .content-layout .share-row{
    margin-left:0;
    width:100%;
  }
  .content-layout .article-content{
    font-size:16px;
    line-height:1.7;
  }
  .content-layout .featured-image{
    margin-bottom:20px;
  }
}
@media(max-width:390px){
  .content-layout{
    width:calc(100% - 14px) !important;
  }
  .content-layout>article{
    padding:19px 12px 24px;
  }
}


/* V13 — slim sticky navigation header based on reference */
.sticky-site-header{
  position:sticky !important;
  top:0;
  z-index:999;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  box-shadow:0 1px 5px rgba(16,24,40,.025);
}
.sticky-header-inner{
  min-height:66px;
  display:flex;
  align-items:center;
  gap:18px;
  width:100%;
  padding:0 clamp(18px,6.1vw,76px);
}
.header-navigation-wrap{flex:1;min-width:0}
.sticky-site-header .primary-nav{border:0;min-width:0}
.sticky-site-header .primary-nav .menu{
  display:flex;
  align-items:center;
  gap:clamp(18px,2.4vw,32px);
  margin:0;padding:0;list-style:none;
  white-space:nowrap;overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;
}
.sticky-site-header .primary-nav .menu::-webkit-scrollbar{display:none}
.sticky-site-header .primary-nav .menu>li{flex:0 0 auto}
.sticky-site-header .primary-nav a{
  position:relative;display:block;padding:23px 0 22px;
  color:var(--ink);font-size:14px;font-weight:450;line-height:1.4;
}
.sticky-site-header .primary-nav a:hover,
.sticky-site-header .primary-nav .current-menu-item>a,
.sticky-site-header .primary-nav .current_page_item>a{color:var(--pink)}
.sticky-site-header .primary-nav .current-menu-item>a:after,
.sticky-site-header .primary-nav .current_page_item>a:after{
  height:0;
}
.sticky-header-actions{
  display:flex;flex:0 0 auto;align-items:center;gap:12px;
}
.sticky-header-actions .icon-button{
  width:30px;height:38px;padding:0;border-radius:0;
  color:var(--ink);font-size:19px;
}
.sticky-header-actions .header-search-toggle svg{
  width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
.header-search-panel{
  padding:12px clamp(18px,6.1vw,76px) 16px;
  border-top:1px solid var(--line);
  background:var(--surface);
}
.header-search-panel[hidden]{display:none}
.header-search-panel .search-form{max-width:560px;margin-left:auto}
@media(max-width:760px){
  .sticky-header-inner{min-height:58px;padding:0 14px;gap:12px}
  .sticky-site-header .primary-nav .menu{gap:20px}
  .sticky-site-header .primary-nav a{padding:19px 0;font-size:13px}
  .sticky-header-actions{gap:7px}
  .sticky-header-actions .icon-button{width:27px;height:34px}
  .header-search-panel{padding:10px 14px 13px}
}
@media(prefers-reduced-motion:no-preference){
  .sticky-site-header{transition:box-shadow .18s ease}
}


/* V14 fixes: restore brand, enforce sticky positioning, center expanded search */
:root{--befunky-sticky-header-height:66px}
.site-shell{padding-top:var(--befunky-sticky-header-height)}
.sticky-site-header{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:99999 !important;
}
body.admin-bar .sticky-site-header{top:32px !important}
body.admin-bar .site-shell{padding-top:calc(var(--befunky-sticky-header-height) + 32px)}
.sticky-header-inner{
  min-height:var(--befunky-sticky-header-height);
  max-width:1600px;
  margin:0 auto;
  padding-left:clamp(14px,3vw,48px);
  padding-right:clamp(14px,3vw,48px);
}
.sticky-header-brand{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  min-width:0;
  margin-right:clamp(12px,2vw,28px);
}
.sticky-header-brand a{
  display:flex;
  align-items:center;
  color:var(--ink);
  text-decoration:none;
}
.sticky-header-brand img{
  display:block;
  width:auto;
  max-width:138px;
  max-height:38px;
  object-fit:contain;
}
.sticky-header-brand .site-title,
.sticky-header-brand .logo-text{
  margin:0;
  font-size:clamp(18px,2vw,24px);
  font-weight:850;
  line-height:1;
  white-space:nowrap;
}
.sticky-header-brand .site-tagline{display:none}
.sticky-site-header .header-navigation-wrap{flex:1 1 auto;min-width:0}
.sticky-site-header .primary-nav .menu{gap:clamp(13px,1.8vw,28px)}
.sticky-site-header .primary-nav a{font-size:13px}
.header-search-panel{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  z-index:100000;
  display:flex;
  justify-content:center;
  width:100%;
  padding:18px 20px 20px !important;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--surface);
  box-shadow:0 12px 22px rgba(15,23,42,.12);
}
.header-search-panel[hidden]{display:none !important}
.header-search-panel .search-form{
  display:flex;
  width:min(600px,100%);
  max-width:600px;
  margin:0 auto !important;
}
.header-search-panel input[type="search"],
.header-search-panel input[name="s"]{flex:1;min-width:0}
@media(max-width:760px){
  :root{--befunky-sticky-header-height:58px}
  body.admin-bar .sticky-site-header{top:46px !important}
  body.admin-bar .site-shell{padding-top:calc(var(--befunky-sticky-header-height) + 46px)}
  .sticky-header-inner{gap:8px;padding-left:10px;padding-right:10px}
  .sticky-header-brand{margin-right:5px}
  .sticky-header-brand img{max-width:94px;max-height:30px}
  .sticky-header-brand .site-title,
  .sticky-header-brand .logo-text{font-size:17px}
  .sticky-site-header .primary-nav .menu{gap:16px}
  .sticky-site-header .primary-nav a{font-size:12px;padding:19px 0}
  .sticky-header-actions{gap:3px}
  .header-search-panel{padding:12px 12px 14px !important}
}
@media(max-width:480px){
  .sticky-header-brand img{max-width:78px}
  .sticky-header-brand .site-title,
  .sticky-header-brand .logo-text{font-size:15px}
  .sticky-site-header .primary-nav .menu{gap:13px}
}


/* V15 mobile menu and transparent side gutters on post/page views */
.sticky-mobile-menu{display:none;flex:0 0 auto}
@media(max-width:760px){
  .sticky-mobile-menu{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:32px !important;
    height:36px !important;
    font-size:23px !important;
    line-height:1;
    order:3;
  }
  .sticky-site-header .sticky-header-inner{position:relative}
  .sticky-site-header .header-navigation-wrap{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    z-index:100001;
    width:100%;
    max-height:calc(100vh - 70px);
    overflow-y:auto;
    padding:8px 14px 14px;
    background:var(--surface);
    border-bottom:1px solid var(--line);
    box-shadow:0 12px 20px rgba(15,23,42,.12);
  }
  .sticky-site-header .header-navigation-wrap .primary-nav,
  .sticky-site-header .header-navigation-wrap .primary-nav .menu{
    display:block !important;
    width:100%;
    overflow:visible;
    white-space:normal;
  }
  .sticky-site-header .header-navigation-wrap .primary-nav .menu>li{
    display:block;
    width:100%;
    border-bottom:1px solid var(--line);
  }
  .sticky-site-header .header-navigation-wrap .primary-nav a{
    display:block;
    padding:13px 8px;
    font-size:15px;
  }
  .sticky-site-header .header-navigation-wrap.is-open{
    display:block;
  }
  .sticky-header-actions{margin-left:auto}
}
/* The article itself remains a card; the side gutters use the page canvas, not white shell fill. */
body.single-post .site-shell,
body.page .site-shell{
  width:100%;
  max-width:none;
  margin:0 auto;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
body.single-post,
body.page{background:var(--page)}
body.single-post .content-layout,
body.page .content-layout{background:transparent}


/* V16: full-bleed header/footer with a centered content measure */
.sticky-header-inner{
  width:min(1060px,100%);
  max-width:1060px !important;
  padding-left:12px !important;
  padding-right:12px !important;
}
.site-footer{
  width:100vw !important;
  max-width:none !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:calc(50% - 50vw) !important;
  padding:26px 0 20px !important;
  box-sizing:border-box;
}
.footer-inner{
  width:min(1060px,calc(100% - 36px));
  margin:0 auto;
}
.footer-grid{
  width:100%;
}
.copyright{
  width:100%;
}
.back-to-top{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:99990;
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border:0;
  border-radius:50%;
  background:var(--pink,#ed247d);
  color:#fff;
  font-size:26px;
  font-weight:700;
  line-height:1;
  box-shadow:0 5px 18px rgba(20,25,40,.22);
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s;
}
.back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.back-to-top:hover{filter:brightness(.94)}
@media(max-width:760px){
  .sticky-header-inner{width:100%;padding-left:10px !important;padding-right:10px !important}
  .footer-inner{width:calc(100% - 28px)}
  .back-to-top{right:15px;bottom:16px;width:42px;height:42px;font-size:24px}
}
@media(prefers-reduced-motion:reduce){
  .back-to-top{transition:none}
}


/* V17: restore readable foreground contrast throughout dark-mode article/page content.
   Scope to textual content so imagery, badges and intentional button colors remain intact. */
html[data-theme="dark"] .article-content,
html[data-theme="dark"] .article-content p,
html[data-theme="dark"] .article-content li,
html[data-theme="dark"] .article-content ol,
html[data-theme="dark"] .article-content ul,
html[data-theme="dark"] .article-content dd,
html[data-theme="dark"] .article-content dt,
html[data-theme="dark"] .article-content figcaption,
html[data-theme="dark"] .article-content table,
html[data-theme="dark"] .article-content th,
html[data-theme="dark"] .article-content td,
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .entry-content p,
html[data-theme="dark"] .entry-content li,
html[data-theme="dark"] .entry-content figcaption,
html[data-theme="dark"] .page-content,
html[data-theme="dark"] .page-content p,
html[data-theme="dark"] .page-content li,
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .article-meta time,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .breadcrumb a,
html[data-theme="dark"] .post-navigation,
html[data-theme="dark"] .post-navigation a {
  color:var(--ink,#f4f7fb);
}
html[data-theme="dark"] .article-content h1,
html[data-theme="dark"] .article-content h2,
html[data-theme="dark"] .article-content h3,
html[data-theme="dark"] .article-content h4,
html[data-theme="dark"] .article-content h5,
html[data-theme="dark"] .article-content h6,
html[data-theme="dark"] .entry-content h1,
html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3,
html[data-theme="dark"] .entry-content h4,
html[data-theme="dark"] .entry-content h5,
html[data-theme="dark"] .entry-content h6,
html[data-theme="dark"] .page-content h1,
html[data-theme="dark"] .page-content h2,
html[data-theme="dark"] .page-content h3,
html[data-theme="dark"] .page-content h4,
html[data-theme="dark"] .page-content h5,
html[data-theme="dark"] .page-content h6 {
  color:var(--ink,#f4f7fb);
}
html[data-theme="dark"] .article-content a:not(.befunky-copy-quote),
html[data-theme="dark"] .entry-content a,
html[data-theme="dark"] .page-content a {
  color:#8fc5ff;
}
html[data-theme="dark"] .article-content blockquote,
html[data-theme="dark"] .article-content blockquote * {
  color:#f4f7fb;
}
html[data-theme="dark"] .article-content blockquote .befunky-copy-quote {
  color:#111 !important;
}
html[data-theme="dark"] .article-content code,
html[data-theme="dark"] .article-content pre {
  background:#202938;
  color:#f4f7fb;
}


/* V18: sitewide full-bleed header/footer; no isolated white strips at the edges */
.site-header,
.sticky-site-header{
  width:100vw !important;
  max-width:none !important;
  left:50% !important;
  right:auto !important;
  margin-left:-50vw !important;
  margin-right:0 !important;
  box-sizing:border-box;
  background:var(--page,#f4f8fb) !important;
}
.sticky-header-inner{
  width:min(1060px,calc(100% - 32px)) !important;
  max-width:1060px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.site-footer{
  width:100vw !important;
  max-width:none !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:calc(50% - 50vw) !important;
  background:var(--page,#f4f8fb) !important;
  box-sizing:border-box;
}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .sticky-site-header,
html[data-theme="dark"] .site-footer{
  background:var(--page,#0e1420) !important;
}
@media(max-width:760px){
  .sticky-header-inner{
    width:calc(100% - 20px) !important;
    max-width:none !important;
  }
}


/* V19: stronger black scrim on image cards to keep overlay titles readable */
.homepage-card-shade{
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.28) 0%,
    rgba(0,0,0,.36) 32%,
    rgba(0,0,0,.68) 62%,
    rgba(0,0,0,.94) 100%
  ) !important;
}
.homepage-card-content,
.homepage-card-content .post-title,
.homepage-card-meta{
  color:#fff !important;
}
.homepage-card-content .post-title{
  text-shadow:0 2px 4px rgba(0,0,0,.95),0 0 10px rgba(0,0,0,.75) !important;
  -webkit-text-stroke:0 transparent !important;
}
.homepage-card-meta{
  text-shadow:0 1px 4px rgba(0,0,0,.95) !important;
}


/* V20: fit every quick-category tile cleanly on 360px phones without horizontal clipping */
@media (max-width:390px){
  .quick-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    width:100%;
    min-width:0;
    box-sizing:border-box;
    gap:7px !important;
    padding:10px 9px !important;
    overflow:visible !important;
  }
  .quick-grid::-webkit-scrollbar{display:none}
  .quick-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    width:100%;
    min-width:0 !important;
    max-width:100%;
    min-height:68px;
    box-sizing:border-box;
    padding:9px 2px !important;
    gap:5px;
    font-size:10px;
    line-height:1.15;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  .quick-item .quick-icon{
    display:block;
    flex:0 0 auto;
    font-size:21px;
    line-height:1.1;
    margin:0;
  }
  .quick-item span:last-child{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
  }
}
@media (max-width:340px){
  .quick-grid{gap:5px !important;padding-left:7px !important;padding-right:7px !important}
  .quick-item{font-size:9px;min-height:64px}
  .quick-item .quick-icon{font-size:19px}
}


/* V21: apply homepage image-overlay cards consistently to archive/search/related grids */
.post-grid.homepage-card-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.post-grid.homepage-card-grid .homepage-post-card{
  position:relative;
  isolation:isolate;
  aspect-ratio:1.78 / 1;
  min-width:0;
}
.related-card-grid{margin-top:0}
@media(max-width:760px){
  .post-grid.homepage-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}
@media(max-width:560px){
  .post-grid.homepage-card-grid{grid-template-columns:1fr;gap:15px}
}


/* V22: consistent three-card rows and compact card headings throughout the theme */
.post-grid,
.post-grid.homepage-card-grid,
.post-grid.latest-post-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:20px !important;
}
.homepage-card-content .post-title{
  font-size:clamp(15px,1.35vw,19px) !important;
  line-height:1.2 !important;
  margin-bottom:7px !important;
}
.post-grid .homepage-post-card{
  min-width:0;
}
.pagination:not(.homepage-pagination){
  justify-content:center;
  align-items:center;
  gap:10px;
  margin:38px 0 12px;
}
.pagination:not(.homepage-pagination) a,
.pagination:not(.homepage-pagination) span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  height:48px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:50px;
  background:var(--surface);
  color:var(--ink);
  font-size:14px;
  font-weight:800;
  text-decoration:none;
}
.pagination:not(.homepage-pagination) .current{
  background:var(--pink);
  border-color:var(--pink);
  color:#fff;
}
@media(max-width:900px){
  .post-grid,
  .post-grid.homepage-card-grid,
  .post-grid.latest-post-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:14px !important}
  .homepage-card-content .post-title{font-size:16px !important}
}
@media(max-width:560px){
  .post-grid,
  .post-grid.homepage-card-grid,
  .post-grid.latest-post-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:8px !important}
  .homepage-card-content{left:10px !important;right:10px !important;bottom:10px !important}
  .homepage-card-content .post-title{font-size:14px !important;line-height:1.18 !important}
  .homepage-card-meta{font-size:10px !important}
  .pagination:not(.homepage-pagination) a,
  .pagination:not(.homepage-pagination) span{min-width:40px;height:40px;padding:0 10px;font-size:12px}
}

@media(max-width:560px){
  .homepage-card-content .post-title{font-size:12px !important}
  .homepage-card-meta{font-size:9px !important}
}


/* V23 responsive post-card columns:
   phones: one card; iPad mini/tablets: two cards; iPad Pro/desktop: three cards.
   These final overrides intentionally supersede earlier grid declarations. */
.post-grid,
.post-grid.homepage-card-grid,
.post-grid.latest-post-grid,
.related-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (min-width: 601px) and (max-width: 1023px) {
  .post-grid,
  .post-grid.homepage-card-grid,
  .post-grid.latest-post-grid,
  .related-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 600px) {
  .post-grid,
  .post-grid.homepage-card-grid,
  .post-grid.latest-post-grid,
  .related-card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }
}


/* V24: use the WhatsApp brand mark consistently in every quote action */
.article-content .befunky-whatsapp-quote .whatsapp-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}


/* V25: maintain contrast for image-download controls in dark mode.
   Quote button colors remain unchanged. */
html[data-theme="dark"] .article-content .befunky-download-button {
  background: #202938;
  border-color: #3a4659;
  color: #f4f7fb;
  box-shadow: 0 4px 15px rgba(0,0,0,.28);
}
html[data-theme="dark"] .article-content .befunky-download-button[aria-disabled="true"] {
  background: #202938;
  border-color: #3a4659;
  color: #d7deea;
}
html[data-theme="dark"] .article-content .befunky-download-button:not([aria-disabled="true"]) {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
html[data-theme="dark"] .article-content .befunky-download-button:not([aria-disabled="true"]):hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
}
html[data-theme="dark"] .article-content .befunky-download-button .download-icon {
  background: rgba(255,255,255,.1);
  color: #ff8eae;
}
html[data-theme="dark"] .article-content .befunky-download-button:not([aria-disabled="true"]) .download-icon {
  background: rgba(255,255,255,.18);
  color: #fff;
}
html[data-theme="dark"] .article-content .befunky-download-button .download-timer {
  background: #354155;
  color: #f4f7fb;
}
html[data-theme="dark"] .article-content .befunky-download-button:not([aria-disabled="true"]) .download-timer {
  background: rgba(255,255,255,.18);
  color: #fff;
}
