/* Vanneck Capital - Blog styles (loaded alongside the main styles.css) */

/* .nav is a 3-col grid (1fr auto 1fr); this is a 4th child so it auto-wraps
   into a new row, and grid's default justify-items:stretch would otherwise
   fill that whole 1fr column - pin it to its own content width instead */
.blog-exit-btn{justify-self:start;width:max-content;display:inline-flex;align-items:center;gap:5px;
  font:600 12px var(--sans);color:var(--blue-mid);
  padding:6px 13px;border:1px solid var(--blue-light);border-radius:999px;margin-left:12px;
  transition:color .25s,border-color .25s,background .25s}
.blog-exit-btn:hover{color:var(--white);background:var(--blue-mid);border-color:var(--blue-mid)}
.blog-exit-btn .flower-ico{width:12px;height:12px;flex:none}
.nav-pill a.is-active{color:var(--blue-mid);background:var(--bg-pale)}

.blog-hero{width:100%;overflow:hidden;background:var(--white)}
.blog-hero img{width:100%;height:auto;display:block}

.blog-wrap{max-width:1620px;margin:0 auto;padding:var(--pad)}

.blog-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:30px}
@media (max-width:1180px){.blog-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){.blog-grid{grid-template-columns:repeat(2,1fr);gap:16px}}
@media (max-width:480px){.blog-grid{grid-template-columns:1fr}}

.blog-card{display:block;border-radius:20px;overflow:hidden;background:var(--white);
  box-shadow:0 1px 3px rgba(20,33,61,.08);transition:transform .3s var(--ease),box-shadow .3s var(--ease);cursor:pointer}
.blog-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(29,75,168,.16)}
.blog-card-img{width:100%;aspect-ratio:1200/630;overflow:hidden;background:var(--bg-pale)}
.blog-card-img img{width:100%;height:100%;object-fit:cover}
.blog-card-body{padding:20px 24px 26px}
.blog-card-body time{display:block;font:600 12px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--blue-mid);margin-bottom:8px}
.blog-card-body h3{font-family:var(--serif);font-weight:600;font-size:22px;line-height:1.3;color:var(--ink);margin-bottom:9px}
.blog-card-body p{font-size:14.5px;line-height:1.5;color:var(--ink-soft);font-family:var(--sans);font-weight:400}

/* modal popup */
.blog-modal-overlay{position:fixed;inset:0;z-index:300;background:rgba(15,44,107,.55);backdrop-filter:blur(3px);
  display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;transition:opacity .25s var(--ease)}
.blog-modal-overlay.is-open{opacity:1}
.blog-modal-overlay[hidden]{display:none}
.blog-modal{background:var(--white);border-radius:20px;max-width:760px;width:100%;max-height:88vh;overflow:hidden;
  position:relative;box-shadow:0 30px 80px rgba(15,44,107,.35);transform:translateY(12px) scale(.98);
  transition:transform .3s var(--ease)}
.blog-modal-overlay.is-open .blog-modal{transform:translateY(0) scale(1)}
.blog-modal-scroll{max-height:88vh;overflow-y:auto}
.blog-modal-close{position:absolute;top:14px;right:14px;z-index:2;width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.92);border:none;font-size:22px;line-height:1;color:var(--ink);cursor:pointer;
  display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.blog-modal-close:hover{background:var(--white);color:var(--blue-mid)}
.blog-modal-img{width:100%;display:block}
.blog-modal-body{padding:28px 34px 36px}
.blog-modal-body time{display:block;font:600 11px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--blue-mid);margin-bottom:8px}
.blog-modal-body h1{font-family:var(--serif);font-weight:600;font-size:clamp(22px,3.4vw,30px);color:var(--ink);margin-bottom:16px}
.blog-modal-permalink{display:inline-block;margin-top:20px;font:600 13px var(--sans);color:var(--blue-mid)}

/* shared article typography (modal + standalone pages) */
.blog-modal-text h2,.blog-post-text h2{font-family:var(--serif);font-weight:600;font-size:19px;color:var(--ink);margin:24px 0 10px}
.blog-modal-text p,.blog-post-text p{font-size:15px;line-height:1.65;color:var(--ink-soft);margin-bottom:12px}
.blog-modal-text ul,.blog-modal-text ol,.blog-post-text ul,.blog-post-text ol{margin:0 0 14px 22px;color:var(--ink-soft)}
.blog-modal-text li,.blog-post-text li{font-size:15px;line-height:1.6;margin-bottom:6px}
.blog-modal-text code,.blog-post-text code{font:500 .88em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--bg-pale);color:var(--cobalt);border:1px solid rgba(29,75,168,.16);border-radius:4px;padding:1px 6px;white-space:nowrap}
.blog-modal-text a,.blog-post-text a{color:var(--blue-mid);text-decoration:underline;text-underline-offset:2px}

/* standalone article page */
.blog-post-wrap{max-width:720px;margin:0 auto;padding:40px var(--pad) 140px}
.blog-post-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.blog-post-back{font:600 13px var(--sans);color:var(--blue-mid)}
.blog-post-head time{font:600 12px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft)}
.blog-post-banner{width:100%;border-radius:16px;margin-bottom:24px}
.blog-post-wrap h1{font-family:var(--serif);font-weight:600;font-size:clamp(26px,4vw,38px);color:var(--ink);margin-bottom:22px}
.blog-post-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:40px;
  padding-top:24px;border-top:1px solid var(--bg-pale);font:600 13px var(--sans)}
.blog-post-pager a{color:var(--blue-mid);max-width:30%}
.blog-post-pager-all{color:var(--ink-soft)!important;max-width:none!important}

/* sticky-footer: guarantees the blue band reaches the true bottom of the
   page even when content is shorter than the viewport, with no white gap
   after it - this selector only ever loads on blog pages */
html,body{height:100%}
body{display:flex;flex-direction:column}
main{flex:1 0 auto}

.blog-footer{padding:0!important;flex:none}
.blog-footer .footer-top{padding:72px var(--pad) 0}
.blog-footer .legal-block{padding:28px var(--pad)}
.blog-footer .footer-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;
  padding:64px var(--pad);font:500 13px var(--sans);color:rgba(255,255,255,.5);max-width:none}
.blog-footer .footer-bottom a{color:var(--blue-light);font-weight:600}

/* deals page */
.deals-wrap{max-width:1180px}
.deals-lead{max-width:640px;font-size:15px;line-height:1.6;color:var(--ink-soft);margin-top:14px}
.deals-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:40px}
@media (max-width:900px){.deals-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.deals-grid{grid-template-columns:1fr}}
.deal-card{display:flex;flex-direction:column;background:var(--white);border-radius:20px;padding:26px;box-shadow:0 1px 3px rgba(20,33,61,.08)}
.deal-card-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.deal-logo{width:56px;height:56px;border-radius:14px;overflow:hidden;background:var(--bg-pale);flex:none}
.deal-logo img{width:100%;height:100%;object-fit:cover}
.deal-card h3{font-family:var(--serif);font-weight:600;font-size:20px;color:var(--ink);margin-bottom:2px}
.deal-meta{display:block;font:600 11px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--blue-mid)}
.deal-card p{flex:1 0 auto;font-size:14px;line-height:1.55;color:var(--ink-soft);margin-bottom:14px}
.deal-source{font:600 12px var(--sans);color:var(--ink-soft);display:block;border-top:1px solid var(--bg-pale);padding-top:12px}
.deal-source a{color:var(--blue-mid)}

/* protection page */
.protect-wrap{max-width:860px;position:relative}

.protect-decor{position:absolute;pointer-events:none;z-index:0;width:190px;opacity:.9}
.protect-decor img{width:100%;display:block}
.protect-decor.pos-top{top:-30px;right:-24px}
.protect-decor.pos-list{bottom:-54px;right:-30px;width:170px}
@media (max-width:760px){.protect-decor{display:none}}

.protect-partners{position:relative;z-index:1;display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:18px 0 22px;
  padding:12px 18px;background:var(--bg-pale);border-radius:999px;width:fit-content}
.protect-partners span{font:600 11px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft)}
.protect-partner-badge{display:flex;align-items:center;gap:7px;font:700 14px var(--serif);color:var(--ink)}
.protect-partner-badge img{height:22px;width:auto;display:block}
.protect-partner-sep{width:1px;height:18px;background:rgba(29,75,168,.22)}

.protect-stats{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:24px 0 32px}
.protect-stat{position:relative;overflow:hidden;background:var(--bg-pale);border:1.5px solid rgba(29,75,168,.3);
  border-radius:14px;padding:18px 14px;text-align:center}
.protect-stat b{position:relative;z-index:1;display:block;font-family:var(--serif);font-weight:700;font-size:26px;color:var(--cobalt)}
.protect-stat span{position:relative;z-index:1;display:block;font:700 12px var(--sans);letter-spacing:.03em;color:var(--ink-soft);margin-top:4px}
.protect-stat .protect-petal{position:absolute;z-index:0;width:40px;opacity:.5;pointer-events:none}
.protect-stat .protect-petal img{width:100%;display:block}
.protect-stat:nth-child(1) .protect-petal{top:-10px;right:-10px;transform:rotate(15deg)}
.protect-stat:nth-child(2) .protect-petal{bottom:-12px;left:-10px;transform:rotate(-20deg)}
.protect-stat:nth-child(3) .protect-petal{top:-12px;right:-8px;transform:rotate(60deg)}
@media (max-width:560px){.protect-stats{grid-template-columns:1fr}}

.protect-hero-media{float:right;width:150px;margin:0 0 16px 24px;filter:drop-shadow(0 18px 30px rgba(15,44,107,.22));
  position:relative;z-index:1}
.protect-hero-media img{width:100%;display:block}

.protect-list-wrap{position:relative}
.protect-list{position:relative;z-index:1;list-style:none;margin:0 0 28px;padding:0;display:flex;flex-direction:column;gap:12px}
.protect-list li{position:relative;background:var(--bg-pale);
  border:1.5px solid rgba(29,75,168,.42);border-radius:14px;
  padding:18px 22px;font-size:16px;line-height:1.6;color:var(--ink-soft)}
.protect-list li::before{content:"";position:absolute;inset:4px;border:1px dotted rgba(29,75,168,.38);border-radius:10px;pointer-events:none}
.protect-list li::after{content:"";position:absolute;top:-8px;left:22px;width:16px;height:16px;padding:2px;box-sizing:content-box;
  background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%233F73D1'%3E%3Ccircle cx='12' cy='7.2' r='3.1'/%3E%3Ccircle cx='16.8' cy='10' r='3.1'/%3E%3Ccircle cx='15' cy='15.6' r='3.1'/%3E%3Ccircle cx='9' cy='15.6' r='3.1'/%3E%3Ccircle cx='7.2' cy='10' r='3.1'/%3E%3C/g%3E%3Ccircle cx='12' cy='11.3' r='2.3' fill='%23EEF3FC'/%3E%3Ccircle cx='12' cy='11.3' r='1' fill='%233F73D1'/%3E%3C/svg%3E") center/16px no-repeat;border-radius:50%;pointer-events:none}
.protect-list strong{color:var(--ink);font-weight:700}

.protect-steps{list-style:none;counter-reset:protect-step;margin:0 0 28px;padding:0;display:grid;gap:10px}
.protect-steps li{counter-increment:protect-step;display:flex;gap:16px;align-items:center;
  font-size:16px;line-height:1.55;color:var(--ink-soft)}
.protect-steps li::before{content:counter(protect-step);flex:none;width:48px;height:48px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%' cy='40%' r='70%'%3E%3Cstop offset='0' stop-color='%23F4F8FF'/%3E%3Cstop offset='1' stop-color='%23C9DAF6'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill='url(%23g)' stroke='%231D4BA8' stroke-width='1.6'%3E%3Ccircle cx='32' cy='17.5' r='11.5'/%3E%3Ccircle cx='45.8' cy='27.5' r='11.5'/%3E%3Ccircle cx='40.5' cy='43.8' r='11.5'/%3E%3Ccircle cx='23.5' cy='43.8' r='11.5'/%3E%3Ccircle cx='18.2' cy='27.5' r='11.5'/%3E%3C/g%3E%3Ccircle cx='32' cy='34' r='15.5' fill='%23fff' stroke='%231D4BA8' stroke-width='1.6'/%3E%3Ccircle cx='32' cy='34' r='12.4' fill='none' stroke='%238FB1EC' stroke-width='1' stroke-dasharray='1.2 2.2'/%3E%3C/svg%3E") center/contain no-repeat;
  color:var(--cobalt);font:600 21px/48px var(--serif);font-variant-numeric:lining-nums;text-align:center;
  filter:drop-shadow(0 5px 8px rgba(29,75,168,.16))}

.protect-form-wrap{position:relative;z-index:1;background:var(--bg-pale);border:1px solid rgba(29,75,168,.14);border-radius:20px;padding:32px;margin-top:16px}
.protect-form-wrap .apply-form label{font-size:15px;color:var(--ink)}
.protect-form-wrap .apply-form input,.protect-form-wrap .apply-form select,.protect-form-wrap .apply-form textarea{background:var(--white)}
.protect-fine-print{font-size:13px;line-height:1.55;color:var(--ink-soft);margin-top:14px}

@media (max-width:560px){
  .protect-hero-media{float:none;width:140px;margin:0 auto 20px}
}

@media (max-width:640px){
  .blog-exit-btn{display:none}
  .blog-modal{max-width:100%;max-height:100vh;border-radius:0}
  .blog-modal-scroll{max-height:100vh}
  .blog-modal-overlay{padding:0}
  .blog-post-pager{flex-direction:column;align-items:flex-start}
  .blog-post-pager a{max-width:100%}
}
