/**
 * Hudson Valley Botanicals - Blog Badges Frontend Styles
 * Enhanced styling to match HVB brand design language
 */

/* CSS Variables for consistent theming */
:root {
    --hvb-forest: #1a3a2e;
    --hvb-forest-mid: #2a5d3a;
    --hvb-forest-light: #3a6d4a;
    --hvb-gold: #d4af37;
    --hvb-gold-light: #f4e061;
    --hvb-cream: #fff9e6;
    --hvb-cream-dark: #fff3cd;
    --hvb-text-dark: #1a1a1a;
    --hvb-text-muted: #555;
    --hvb-white: #ffffff;
    --hvb-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --hvb-shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --hvb-shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
    --hvb-radius-sm: 12px;
    --hvb-radius-md: 20px;
    --hvb-radius-lg: 32px;
    --hvb-transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* Hidden Content for Modal */
.hvb-full-content {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

/* Blog Badges Container */
.hvb-blog-badges {
    display: grid;
    gap: 28px;
    margin: 30px 0;
}

/* Column Layouts */
.hvb-blog-badges.hvb-columns-1 {
    grid-template-columns: 1fr;
}

.hvb-blog-badges.hvb-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hvb-blog-badges.hvb-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hvb-blog-badges.hvb-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Blog Badge Card - Enhanced Design */
.hvb-blog-badge {
    background: var(--hvb-white);
    border-radius: var(--hvb-radius-md);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(42,93,58,.1), inset 0 1px 0 rgba(255,255,255,.8);
    transition: all var(--hvb-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    animation: cardFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Staggered animation delays */
.hvb-blog-badge:nth-child(1) { animation-delay: 0.1s; }
.hvb-blog-badge:nth-child(2) { animation-delay: 0.15s; }
.hvb-blog-badge:nth-child(3) { animation-delay: 0.2s; }
.hvb-blog-badge:nth-child(4) { animation-delay: 0.25s; }
.hvb-blog-badge:nth-child(5) { animation-delay: 0.3s; }
.hvb-blog-badge:nth-child(6) { animation-delay: 0.35s; }
.hvb-blog-badge:nth-child(7) { animation-delay: 0.4s; }
.hvb-blog-badge:nth-child(8) { animation-delay: 0.45s; }
.hvb-blog-badge:nth-child(9) { animation-delay: 0.5s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold accent bar on top */
.hvb-blog-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hvb-forest-mid), var(--hvb-gold), var(--hvb-forest-mid));
    opacity: 0;
    transition: opacity var(--hvb-transition);
    z-index: 5;
}

.hvb-blog-badge:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(42,93,58,.2), 0 0 20px rgba(212,175,55,.1);
    border-color: var(--hvb-gold);
}

.hvb-blog-badge:hover::before {
    opacity: 1;
}

/* Badge Image */
.hvb-badge-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hvb-badge-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
}

.hvb-badge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hvb-blog-badge:hover .hvb-badge-image img {
    transform: scale(1.05);
}

.hvb-badge-image.hvb-no-image {
    background: linear-gradient(135deg, var(--hvb-cream) 0%, var(--hvb-cream-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hvb-badge-image.hvb-no-image::before {
    content: "🌿";
    font-size: 64px;
    opacity: 0.4;
    animation: leafFloat 3s ease-in-out infinite;
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

/* Badge Content */
.hvb-badge-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--hvb-white) 0%, rgba(255,249,230,0.3) 100%);
}

.hvb-badge-title {
    margin: 0 0 12px 0;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hvb-forest-mid);
    line-height: 1.3;
    transition: color var(--hvb-transition);
}

.hvb-blog-badge:hover .hvb-badge-title {
    color: var(--hvb-forest);
}

.hvb-badge-excerpt {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--hvb-text-muted);
    flex: 1;
}

/* Reading Time */
.hvb-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--hvb-gold);
    margin-bottom: 16px;
    font-weight: 600;
}

.hvb-reading-time .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--hvb-gold);
}

/* Featured Badge Indicator */
.hvb-featured-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--hvb-gold) 0%, var(--hvb-gold-light) 100%);
    color: var(--hvb-forest-mid);
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(212,175,55,.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hvb-featured-indicator .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.hvb-featured-badge {
    border: 2px solid var(--hvb-gold) !important;
}

.hvb-featured-badge:hover {
    box-shadow: 0 20px 40px rgba(212,175,55,.25), 0 0 30px rgba(212,175,55,.15);
}

/* Read More Button - Gold Theme */
.hvb-read-more {
    background: linear-gradient(135deg, var(--hvb-gold) 0%, var(--hvb-gold-light) 100%);
    color: var(--hvb-forest-mid);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--hvb-transition);
    box-shadow: 0 4px 16px rgba(212,175,55,0.3);
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hvb-read-more:hover {
    background: linear-gradient(135deg, var(--hvb-gold-light) 0%, var(--hvb-gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.4);
}

.hvb-read-more:active {
    transform: translateY(-1px);
}

/* No Posts Message */
.hvb-no-posts {
    text-align: center;
    padding: 80px 40px;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--hvb-radius-md);
    margin: 20px 0;
    border: 2px dashed rgba(212,175,55,0.3);
}

/* ================================================================
   MODAL STYLES - Enhanced Design
   ================================================================ */
.hvb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.hvb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,58,46,0.95);
    backdrop-filter: blur(12px);
}

.hvb-modal-container {
    position: relative;
    width: 90%;
    max-width: 920px;
    max-height: 90vh;
    margin: 5vh auto;
    background: linear-gradient(180deg, var(--hvb-white) 0%, #fefdfb 100%);
    border-radius: var(--hvb-radius-lg);
    overflow-y: auto;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212,175,55,0.3);
    animation: modalSlideIn 0.5s cubic-bezier(.4,0,.2,1);
    border: 4px solid var(--hvb-gold);
}

/* Custom scrollbar for modal */
.hvb-modal-container::-webkit-scrollbar {
    width: 10px;
}

.hvb-modal-container::-webkit-scrollbar-track {
    background: var(--hvb-cream);
    border-radius: 0 var(--hvb-radius-lg) var(--hvb-radius-lg) 0;
}

.hvb-modal-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--hvb-gold), var(--hvb-gold-light));
    border-radius: 5px;
    border: 2px solid var(--hvb-cream);
}

.hvb-modal-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--hvb-forest-mid), var(--hvb-gold));
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-80px) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hvb-modal-close {
    position: fixed;
    top: calc(5vh + 20px);
    right: calc(5% + 20px);
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--hvb-gold) 0%, var(--hvb-gold-light) 100%);
    border: 3px solid var(--hvb-white);
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    color: var(--hvb-forest-mid);
    cursor: pointer;
    z-index: 1000000;
    box-shadow: 0 6px 20px rgba(212,175,55,0.5), 0 0 0 4px rgba(42,93,58,0.2);
    transition: all var(--hvb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hvb-modal-close:hover {
    background: linear-gradient(135deg, var(--hvb-gold-light) 0%, var(--hvb-gold) 100%);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 8px 30px rgba(212,175,55,0.6);
}

.hvb-modal-content {
    padding: 0;
}

/* Modal Header with Image */
.hvb-modal-image {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hvb-forest-mid), var(--hvb-forest));
}

.hvb-modal-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--hvb-white), transparent);
    pointer-events: none;
}

.hvb-modal-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* Modal Body Content */
.hvb-modal-body {
    padding: 0 55px 55px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

/* When there's no .hvb-modal-body wrapper, style .hvb-modal-content directly */
.hvb-modal-content > h2 {
    padding: 0 55px;
    margin: -40px 0 0 0;
    position: relative;
    z-index: 2;
}

.hvb-modal-content > .hvb-modal-reading-time {
    margin-left: 55px;
}

.hvb-modal-content > .hvb-modal-text {
    padding: 0 55px 55px;
}

.hvb-modal-content h2 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hvb-forest-mid);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.hvb-modal-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--hvb-white);
    background: linear-gradient(135deg, var(--hvb-forest-mid) 0%, var(--hvb-forest) 100%);
    padding: 10px 22px;
    border-radius: 30px;
    margin-bottom: 32px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(42,93,58,0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.hvb-modal-reading-time .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ================================================================
   MODAL TEXT CONTENT - Rich Typography
   ================================================================ */
.hvb-modal-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.15rem;
    line-height: 2;
    color: #2d3748;
    letter-spacing: 0.01em;
}

/* Paragraphs */
.hvb-modal-text p {
    margin-bottom: 28px;
    text-align: justify;
    text-justify: inter-word;
}

/* Lead Paragraph - First paragraph styling */
.hvb-modal-text p:first-of-type {
    font-size: 1.35rem;
    color: var(--hvb-forest-mid);
    font-weight: 500;
    line-height: 1.8;
    border-left: 5px solid var(--hvb-gold);
    padding: 20px 28px;
    margin-bottom: 36px;
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(255,249,230,0.5) 100%);
    border-radius: 0 var(--hvb-radius-sm) var(--hvb-radius-sm) 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 12px rgba(0,0,0,0.04);
    text-align: left;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.hvb-modal-text p:last-child {
    margin-bottom: 0;
}

/* Text Emphasis */
.hvb-modal-text strong,
.hvb-modal-text b {
    color: var(--hvb-forest-mid);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hvb-modal-text em,
.hvb-modal-text i {
    color: var(--hvb-forest-light);
    font-style: italic;
}

/* Links */
.hvb-modal-text a {
    color: var(--hvb-gold);
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(to bottom, transparent 60%, rgba(212,175,55,0.3) 60%);
    transition: all var(--hvb-transition);
    padding: 0 2px;
}

.hvb-modal-text a:hover {
    color: var(--hvb-forest-mid);
    background: linear-gradient(to bottom, transparent 0%, rgba(212,175,55,0.4) 0%);
}

/* ================================================================
   HEADINGS IN CONTENT
   ================================================================ */
.hvb-modal-text h2,
.hvb-modal-text h3,
.hvb-modal-text h4,
.hvb-modal-text h5,
.hvb-modal-text h6 {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--hvb-forest-mid);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 20px;
    position: relative;
}

.hvb-modal-text h2 {
    font-size: 2rem;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--hvb-gold);
    margin-bottom: 28px;
}

.hvb-modal-text h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--hvb-forest-mid);
}

.hvb-modal-text h3 {
    font-size: 1.6rem;
    padding-left: 20px;
    border-left: 4px solid var(--hvb-gold);
}

.hvb-modal-text h4 {
    font-size: 1.35rem;
    color: var(--hvb-forest);
}

.hvb-modal-text h5 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hvb-gold);
}

.hvb-modal-text h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--hvb-text-muted);
}

/* ================================================================
   LISTS
   ================================================================ */
.hvb-modal-text ul,
.hvb-modal-text ol {
    margin: 32px 0;
    padding-left: 0;
    list-style: none;
}

.hvb-modal-text ul li,
.hvb-modal-text ol li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    line-height: 1.8;
}

.hvb-modal-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--hvb-gold), var(--hvb-gold-light));
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(212,175,55,0.4);
}

.hvb-modal-text ol {
    counter-reset: list-counter;
}

.hvb-modal-text ol li {
    counter-increment: list-counter;
}

.hvb-modal-text ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--hvb-forest-mid), var(--hvb-forest));
    color: var(--hvb-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 3px 8px rgba(42,93,58,0.3);
}

/* Nested lists */
.hvb-modal-text ul ul,
.hvb-modal-text ol ol,
.hvb-modal-text ul ol,
.hvb-modal-text ol ul {
    margin: 12px 0;
    padding-left: 20px;
}

.hvb-modal-text ul ul li::before {
    width: 8px;
    height: 8px;
    background: var(--hvb-forest-mid);
    top: 10px;
}

/* ================================================================
   BLOCKQUOTES
   ================================================================ */
.hvb-modal-text blockquote {
    position: relative;
    margin: 40px 0;
    padding: 32px 40px 32px 50px;
    background: linear-gradient(135deg, var(--hvb-cream) 0%, rgba(212,175,55,0.12) 100%);
    border: none;
    border-radius: var(--hvb-radius-md);
    font-style: italic;
    color: var(--hvb-forest-mid);
    font-size: 1.2rem;
    line-height: 1.9;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}

.hvb-modal-text blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--hvb-gold);
    opacity: 0.4;
    line-height: 1;
}

.hvb-modal-text blockquote::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 5px;
    background: linear-gradient(180deg, var(--hvb-gold), var(--hvb-forest-mid));
    border-radius: 3px;
}

.hvb-modal-text blockquote p {
    margin: 0;
    text-align: left;
}

.hvb-modal-text blockquote cite {
    display: block;
    margin-top: 16px;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    color: var(--hvb-forest);
}

.hvb-modal-text blockquote cite::before {
    content: '— ';
}

/* ================================================================
   HORIZONTAL RULES / DIVIDERS
   ================================================================ */
.hvb-modal-text hr {
    border: none;
    height: 4px;
    margin: 50px auto;
    max-width: 200px;
    background: linear-gradient(90deg, transparent, var(--hvb-gold), var(--hvb-forest-mid), var(--hvb-gold), transparent);
    border-radius: 2px;
    position: relative;
}

.hvb-modal-text hr::before {
    content: '🌿';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--hvb-white);
    padding: 0 15px;
    font-size: 1.2rem;
}

/* ================================================================
   IMAGES IN CONTENT
   ================================================================ */
.hvb-modal-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--hvb-radius-md);
    margin: 32px auto;
    display: block;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border: 4px solid var(--hvb-cream);
}

.hvb-modal-text figure {
    margin: 40px 0;
    text-align: center;
}

.hvb-modal-text figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--hvb-text-muted);
    font-style: italic;
}

/* ================================================================
   TABLES
   ================================================================ */
.hvb-modal-text table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 36px 0;
    border-radius: var(--hvb-radius-sm);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.hvb-modal-text th,
.hvb-modal-text td {
    padding: 16px 20px;
    text-align: left;
}

.hvb-modal-text th {
    background: linear-gradient(135deg, var(--hvb-forest-mid) 0%, var(--hvb-forest) 100%);
    color: var(--hvb-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.hvb-modal-text td {
    background: var(--hvb-white);
    border-bottom: 1px solid rgba(42,93,58,0.1);
}

.hvb-modal-text tr:last-child td {
    border-bottom: none;
}

.hvb-modal-text tr:nth-child(even) td {
    background: rgba(255,249,230,0.5);
}

.hvb-modal-text tr:hover td {
    background: rgba(212,175,55,0.1);
}

/* ================================================================
   CODE ELEMENTS
   ================================================================ */
.hvb-modal-text code {
    background: linear-gradient(135deg, rgba(42,93,58,0.1), rgba(42,93,58,0.05));
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9em;
    color: var(--hvb-forest-mid);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    border: 1px solid rgba(42,93,58,0.15);
}

.hvb-modal-text pre {
    background: linear-gradient(135deg, #1a2f23 0%, var(--hvb-forest) 100%);
    color: #e2e8f0;
    padding: 28px;
    border-radius: var(--hvb-radius-md);
    overflow-x: auto;
    margin: 36px 0;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid rgba(212,175,55,0.2);
    font-size: 0.95rem;
    line-height: 1.7;
}

.hvb-modal-text pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-size: inherit;
}

/* ================================================================
   SPECIAL CONTENT BOXES
   ================================================================ */
/* Info/Note boxes - style paragraphs that start with Note: or Info: */
.hvb-modal-text p:has(strong:first-child) {
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(255,249,230,0.8));
    padding: 20px 24px;
    border-radius: var(--hvb-radius-sm);
    border-left: 4px solid var(--hvb-gold);
    margin: 28px 0;
}

/* Drop cap for first letter of article */
.hvb-modal-text > p:first-of-type::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    color: var(--hvb-forest-mid);
    margin-right: 12px;
    margin-top: 8px;
    text-shadow: 2px 2px 0 var(--hvb-gold);
}

/* Prevent body scroll when modal is open */
body.hvb-modal-active {
    overflow: hidden;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
@media screen and (max-width: 1024px) {
    .hvb-blog-badges.hvb-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hvb-modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 768px) {
    .hvb-blog-badges.hvb-columns-3,
    .hvb-blog-badges.hvb-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hvb-blog-badges {
        gap: 20px;
    }

    .hvb-badge-image {
        height: 200px;
    }

    .hvb-badge-content {
        padding: 24px;
    }

    .hvb-badge-title {
        font-size: 1.1rem;
    }

    .hvb-badge-excerpt {
        font-size: 0.9rem;
    }
    
    .hvb-modal-container {
        width: 95%;
        max-height: 95vh;
        margin: 2.5vh auto;
        border-radius: var(--hvb-radius-md);
    }
    
    .hvb-modal-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .hvb-modal-image img {
        height: 280px;
    }

    .hvb-modal-content > h2,
    .hvb-modal-content > .hvb-modal-text {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .hvb-modal-content > .hvb-modal-reading-time {
        margin-left: 30px;
    }
    
    .hvb-modal-content > .hvb-modal-text {
        padding-bottom: 40px;
    }

    .hvb-modal-content h2 {
        font-size: 1.8rem;
        margin-top: -30px;
    }

    .hvb-modal-text {
        font-size: 1.05rem;
        line-height: 1.85;
    }

    .hvb-modal-text p:first-of-type {
        font-size: 1.15rem;
        padding: 16px 20px;
    }
    
    .hvb-modal-text > p:first-of-type::first-letter {
        font-size: 3.5rem;
        margin-right: 8px;
    }

    .hvb-modal-text h2 {
        font-size: 1.6rem;
    }
    
    .hvb-modal-text h3 {
        font-size: 1.4rem;
        padding-left: 16px;
    }

    .hvb-modal-text h4 {
        font-size: 1.2rem;
    }
    
    .hvb-modal-text blockquote {
        padding: 24px 28px 24px 40px;
        margin: 28px 0;
    }
    
    .hvb-modal-text blockquote::before {
        font-size: 4rem;
        left: 12px;
    }
    
    .hvb-modal-text ul li,
    .hvb-modal-text ol li {
        padding-left: 32px;
    }
}

@media screen and (max-width: 480px) {
    .hvb-blog-badges.hvb-columns-2,
    .hvb-blog-badges.hvb-columns-3,
    .hvb-blog-badges.hvb-columns-4 {
        grid-template-columns: 1fr;
    }

    .hvb-blog-badges {
        gap: 16px;
    }

    .hvb-badge-image {
        height: 180px;
    }

    .hvb-badge-content {
        padding: 20px;
    }

    .hvb-badge-title {
        font-size: 1.05rem;
    }
    
    .hvb-read-more {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
    }
    
    .hvb-modal-container {
        width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        border-width: 0;
        border-top: 4px solid var(--hvb-gold);
    }
    
    .hvb-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .hvb-modal-image img {
        height: 220px;
    }

    .hvb-modal-content > h2,
    .hvb-modal-content > .hvb-modal-text {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hvb-modal-content > .hvb-modal-reading-time {
        margin-left: 20px;
    }
    
    .hvb-modal-content > .hvb-modal-text {
        padding-bottom: 30px;
    }

    .hvb-modal-content h2 {
        font-size: 1.5rem;
        margin-top: -20px;
    }

    .hvb-modal-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    .hvb-modal-text p:first-of-type {
        font-size: 1.05rem;
        padding: 14px 16px;
        border-left-width: 4px;
    }
    
    .hvb-modal-text > p:first-of-type::first-letter {
        font-size: 3rem;
        margin-right: 6px;
        margin-top: 4px;
    }

    .hvb-modal-reading-time {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
    
    .hvb-featured-indicator {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .hvb-modal-text h2 {
        font-size: 1.4rem;
        margin-top: 36px;
    }
    
    .hvb-modal-text h3 {
        font-size: 1.25rem;
        padding-left: 14px;
        border-left-width: 3px;
    }

    .hvb-modal-text h4 {
        font-size: 1.1rem;
    }
    
    .hvb-modal-text blockquote {
        padding: 20px 20px 20px 32px;
        margin: 24px 0;
        font-size: 1.05rem;
    }
    
    .hvb-modal-text blockquote::before {
        font-size: 3rem;
        left: 8px;
        top: -5px;
    }
    
    .hvb-modal-text ul li,
    .hvb-modal-text ol li {
        padding-left: 28px;
    }
    
    .hvb-modal-text ul li::before {
        width: 10px;
        height: 10px;
        top: 10px;
    }
    
    .hvb-modal-text ol li::before {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .hvb-modal-text hr::before {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hvb-modal-text pre {
        padding: 20px;
        font-size: 0.85rem;
        border-radius: var(--hvb-radius-sm);
    }
    
    .hvb-modal-text table {
        font-size: 0.9rem;
    }
    
    .hvb-modal-text th,
    .hvb-modal-text td {
        padding: 12px 14px;
    }
}

/* ================================================================
   ACCESSIBILITY & REDUCED MOTION
   ================================================================ */
.hvb-blog-badge:focus-within {
    outline: 3px solid var(--hvb-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .hvb-blog-badge,
    .hvb-modal-container,
    .hvb-badge-image.hvb-no-image::before {
        animation: none !important;
        transition: none !important;
    }
    
    .hvb-blog-badge {
        opacity: 1;
        transform: none;
    }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
    .hvb-blog-badge {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .hvb-read-more,
    .hvb-modal {
        display: none !important;
    }
}