/* Website styles for V2 posts (Blog V2, Event V2, Our Non Profit, Policy pages). */
.v2-article { --v2-text: #2b2b33; --v2-muted: #6b7280; --v2-line: #e8e8ef; color: var(--v2-text); }

.v2-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 9999; background: var(--ul-primary, #2f3191); transition: width .1s linear; }

.v2-article-head { margin-bottom: 28px; }
.v2-badge {
    display: inline-block; background: rgba(47, 49, 145, .08); color: var(--ul-primary, #2f3191);
    font-weight: 700; font-size: 13px; letter-spacing: .03em; padding: 6px 14px; border-radius: 99px;
    text-decoration: none; margin-bottom: 14px;
}
a.v2-badge:hover { background: var(--ul-primary, #2f3191); color: #fff; }
.v2-title { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.2; font-weight: 800; color: #14142b; margin: 0 0 16px; }
.v2-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--v2-muted); font-size: 15px; }
.v2-meta span { display: inline-flex; align-items: center; gap: 6px; }
.v2-meta i { color: var(--ul-primary, #2f3191); }

.v2-cover { border-radius: 18px; overflow: hidden; margin-bottom: 34px; box-shadow: 0 10px 30px rgba(20, 20, 43, .08); }
.v2-cover img { width: 100%; max-height: 560px; object-fit: cover; display: block; }

.v2-event-box {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
    background: #f6f7ff; border: 1px solid #e3e5ff; border-radius: 14px; padding: 18px 20px; margin-bottom: 30px;
}
.v2-event-box div { display: flex; gap: 12px; align-items: flex-start; }
.v2-event-box i { font-size: 22px; color: var(--ul-primary, #2f3191); }
.v2-event-box strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--v2-muted); }
.v2-event-box span { font-size: 16px; font-weight: 600; color: #14142b; }

/* Content */
.v2-content { font-size: 18px; line-height: 1.85; }
.v2-content > * { margin-bottom: 24px; }
.v2-content > *:last-child { margin-bottom: 0; }
.v2-content a:not(.ul-btn) { color: var(--ul-primary, #2f3191); text-decoration: underline; text-underline-offset: 3px; }
.v2-p { margin-top: 0; }
.v2-align-left { text-align: left; }
.v2-align-center { text-align: center; }
.v2-align-right { text-align: right; }
.v2-align-justify { text-align: justify; }
.v2-h { font-weight: 800; color: #14142b; line-height: 1.3; margin-top: 40px; scroll-margin-top: 120px; }
h2.v2-h { font-size: clamp(24px, 2vw, 32px); }
h3.v2-h { font-size: clamp(20px, 1.6vw, 25px); }
h4.v2-h { font-size: 19px; }
.v2-content mark { background: #fff1a8; padding: 0 3px; }

.v2-figure { margin-left: 0; margin-right: 0; }
.v2-figure img { width: 100%; border-radius: 14px; display: block; }
.v2-figure.v2-size-normal { max-width: 760px; margin-left: auto; margin-right: auto; }
.v2-figure.v2-size-full img { border-radius: 0; }
.v2-content figcaption { font-size: 14px; color: var(--v2-muted); text-align: center; margin-top: 10px; line-height: 1.5; }

.v2-gallery { display: grid; gap: 14px; }
.v2-gallery.v2-cols-2 { grid-template-columns: repeat(2, 1fr); }
.v2-gallery.v2-cols-3 { grid-template-columns: repeat(3, 1fr); }
.v2-gallery.v2-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 767px) { .v2-gallery.v2-cols-3, .v2-gallery.v2-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .v2-gallery { grid-template-columns: 1fr !important; } }
.v2-gallery figure { margin: 0; }
.v2-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; transition: transform .3s; }
.v2-gallery a { display: block; overflow: hidden; border-radius: 12px; }
.v2-gallery a:hover img { transform: scale(1.04); }

.v2-slider { border-radius: 16px; overflow: hidden; position: relative; }
.v2-slide { margin: 0; }
.v2-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.v2-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 34px 18px 32px; color: #fff !important; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.v2-slider .swiper-button-prev, .v2-slider .swiper-button-next { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.v2-slider .swiper-pagination-bullet { background: #fff; opacity: .7; }
.v2-slider .swiper-pagination-bullet-active { opacity: 1; background: var(--ul-primary, #2f3191); }

.v2-media-text { display: grid; grid-template-columns: 2fr 3fr; gap: 28px; align-items: center; }
.v2-media-text.v2-media-right .v2-media { order: 2; }
.v2-media img { width: 100%; border-radius: 14px; display: block; }
.v2-media-body .v2-p { margin: 0; }
@media (max-width: 767px) { .v2-media-text { grid-template-columns: 1fr; } .v2-media-text.v2-media-right .v2-media { order: 0; } }

.v2-list { padding-left: 26px; }
ul.v2-list { list-style: disc; }
ol.v2-list { list-style: decimal; }
.v2-list li { margin-bottom: 8px; padding-left: 4px; }
.v2-list li::marker { color: var(--ul-primary, #2f3191); font-weight: 700; }

.v2-quote { margin-left: 0; margin-right: 0; padding: 22px 26px; border-left: 5px solid var(--ul-primary, #2f3191); background: #f6f7ff; border-radius: 0 14px 14px 0; }
.v2-quote p { font-size: 21px; font-style: italic; line-height: 1.6; margin: 0; color: #14142b; }
.v2-quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; color: var(--v2-muted); font-size: 15px; }

.v2-callout { padding: 18px 22px; border-radius: 12px; border-left: 5px solid; font-size: 17px; }
.v2-callout-info { background: #eff6ff; border-color: #3b82f6; }
.v2-callout-success { background: #f0fdf4; border-color: #22c55e; }
.v2-callout-warning { background: #fffbeb; border-color: #f59e0b; }
.v2-callout-danger { background: #fef2f2; border-color: #ef4444; }

.v2-video { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; }
.v2-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.v2-btn-wrap { display: flex; }
.v2-btn-wrap.v2-align-center { justify-content: center; }
.v2-btn-wrap.v2-align-right { justify-content: flex-end; }
.v2-btn-outline { background: transparent !important; color: var(--ul-primary, #2f3191) !important; border: 2px solid var(--ul-primary, #2f3191) !important; }

.v2-divider { border: 0; height: 1px; background: var(--v2-line); margin: 36px 0; opacity: 1; }

/* Share bar */
.v2-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--v2-line); }
.v2-share strong { margin-right: 6px; color: #14142b; }
.v2-share a, .v2-share button {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--v2-line); background: #fff; color: #14142b; font-size: 17px; text-decoration: none; transition: all .2s; cursor: pointer;
}
.v2-share a:hover, .v2-share button:hover { background: var(--ul-primary, #2f3191); color: #fff; border-color: var(--ul-primary, #2f3191); }
.v2-share .v2-copy { width: auto; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.v2-share .v2-copied { background: #16a34a; border-color: #16a34a; color: #fff; }

/* Sidebar */
.v2-side-box { background: #fff; border: 1px solid var(--v2-line, #e8e8ef); border-radius: 16px; padding: 22px; margin-bottom: 24px; }
.v2-side-title { font-size: 19px; font-weight: 800; margin-bottom: 16px; color: #14142b; }
.v2-toc a { display: block; padding: 6px 0; color: #374151; text-decoration: none; border-bottom: 1px dashed #eee; font-size: 15px; }
.v2-toc a.v2-toc-3 { padding-left: 14px; font-size: 14px; }
.v2-toc a:hover { color: var(--ul-primary, #2f3191); }
.v2-recent { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f1f5; text-decoration: none; }
.v2-recent:last-child { border-bottom: 0; }
.v2-recent img { width: 72px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.v2-recent strong { display: block; color: #14142b; font-size: 15px; line-height: 1.35; }
.v2-recent small { color: #6b7280; font-size: 13px; }
.v2-recent:hover strong { color: var(--ul-primary, #2f3191); }
.v2-cats a { display: flex; justify-content: space-between; padding: 8px 0; color: #374151; text-decoration: none; border-bottom: 1px dashed #eee; }
.v2-cats a:hover { color: var(--ul-primary, #2f3191); }
.v2-cats span { background: #f3f4f6; border-radius: 99px; padding: 0 10px; font-size: 13px; }
@media (min-width: 992px) { .v2-sticky { position: sticky; top: 110px; } }

/* Category chips on list pages */
.v2-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.v2-chip { padding: 8px 18px; border-radius: 99px; border: 1px solid #dedee8; color: #374151; text-decoration: none; font-weight: 600; font-size: 15px; background: #fff; transition: all .2s; }
.v2-chip:hover, .v2-chip.active { background: var(--ul-primary, #2f3191); border-color: var(--ul-primary, #2f3191); color: #fff; }

/* Related + empty states */
.v2-related { margin-top: 60px; }
.v2-related h3 { font-size: 26px; font-weight: 800; margin-bottom: 24px; }
.v2-empty { text-align: center; padding: 80px 0; }
.v2-empty h2 { margin-bottom: 14px; }
.v2-empty p { color: #6b7280; margin-bottom: 26px; }
.v2-preview-note { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; padding: 10px 16px; border-radius: 10px; margin-bottom: 24px; font-weight: 600; }

/* Cards used by the Non Profit list and home section */
.v2-card-img { position: relative; }
.v2-card-img img { width: 100%; aspect-ratio: 370 / 265; object-fit: cover; }
.v2-card-tag { position: absolute; left: 16px; top: 16px; background: var(--ul-primary, #2f3191); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.v2-card-excerpt { color: #6b7280; font-size: 15px; line-height: 1.6; margin: 10px 0 16px; }
