/*
Theme Name: Harvard
Author: Developer
Description: Academic news theme with classic typography and scholarly design. Inspired by prestigious university publications.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harvard
Tags: education, news, academic, grid-layout, custom-colors, custom-logo, featured-images, translation-ready
*/

/* === CSS VARIABLES === */
:root {
    --hvd-color-primary: #a51c30;
    --hvd-color-secondary: #1e1e1e;
    --hvd-color-accent: #c6a876;
    --hvd-color-text: #333333;
    --hvd-color-text-light: #6c757d;
    --hvd-color-bg: #ffffff;
    --hvd-color-bg-alt: #f8f7f5;
    --hvd-color-border: #e5e5e5;
    --harv-font-heading: 'Crimson Text', Georgia, serif;
    --harv-font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --hvd-font-heading: var(--harv-font-heading);
    --hvd-font-body: var(--harv-font-body);
    --hvd-max-width: 1200px;
    --hvd-spacing: 24px;
    --hvd-radius: 0;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--hvd-font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--hvd-color-text);
    background: var(--hvd-color-bg);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--hvd-font-heading);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.5em;
    color: var(--hvd-color-secondary);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
a { color: var(--hvd-color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--hvd-color-secondary); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.5em; }

/* === ACCESSIBILITY === */
.hvd-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--hvd-color-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-weight: 600;
}
.hvd-skip-link:focus { left: 0; }

/* === HEADER === */
.hvd-header {
    background: var(--hvd-color-bg);
    border-bottom: 1px solid var(--hvd-color-border);
}
.hvd-header-inner {
    max-width: var(--hvd-max-width);
    margin: 0 auto;
    padding: 0 var(--hvd-spacing);
}
.hvd-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid var(--hvd-color-border);
}
.hvd-logo-wrap { flex: 1; text-align: center; }
.hvd-logo a {
    font-family: var(--hvd-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--hvd-color-primary);
    text-decoration: none;
}
.hvd-logo a:hover { text-decoration: none; color: var(--hvd-color-secondary); }
.hvd-logo img,
.hvd-logo .custom-logo { max-height: 50px; width: auto; height: auto; margin: 0 auto; }
.hvd-logo-wrap .custom-logo-link { display: inline-block; }
.hvd-logo-wrap .custom-logo,
.hvd-logo-wrap .custom-logo-link img {
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.hvd-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--hvd-color-secondary);
}
.hvd-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}
.hvd-header-actions { display: flex; align-items: center; gap: 16px; }
.hvd-search-toggle {
    background: none;
    border: none;
    color: var(--hvd-color-secondary);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}
.hvd-search-toggle:hover { color: var(--hvd-color-primary); }

/* === NAVIGATION === */
.hvd-nav { background: var(--hvd-color-secondary); }
.hvd-nav-menu {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 14px 0;
}
.hvd-nav-menu li { position: relative; }
.hvd-nav-menu a {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 4px 0;
}
.hvd-nav-menu a:hover { color: var(--hvd-color-accent); text-decoration: none; }
.hvd-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hvd-color-secondary);
    min-width: 200px;
    list-style: none;
    padding: 8px 0;
    margin-top: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hvd-nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; }
.hvd-nav-menu .sub-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.8rem;
    text-transform: none;
}

/* === SEARCH OVERLAY === */
.hvd-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.hvd-search-overlay.hvd-search-active { opacity: 1; visibility: visible; }
.hvd-search-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}
.hvd-search-container input[type="search"] {
    width: 100%;
    padding: 20px;
    font-size: 1.25rem;
    border: none;
    border-bottom: 2px solid var(--hvd-color-primary);
    background: transparent;
    color: var(--hvd-color-secondary);
    font-family: var(--hvd-font-body);
}
.hvd-search-container input[type="search"]::placeholder { color: var(--hvd-color-text-light); }
.hvd-search-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--hvd-color-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 16px;
}

/* === MAIN CONTENT === */
.hvd-main { min-height: 60vh; }
.hvd-content {
    max-width: var(--hvd-max-width);
    margin: 0 auto;
    padding: var(--hvd-spacing);
}
.hvd-content-inner { display: flex; gap: 48px; }
.hvd-articles { flex: 1; min-width: 0; }

/* === SIDEBAR === */
.hvd-has-sidebar .hvd-articles { flex: 1; }
.hvd-sidebar { width: 300px; flex-shrink: 0; }
.hvd-has-sidebar.hvd-sidebar-left .hvd-content-inner { flex-direction: row-reverse; }
.hvd-widget {
    margin-bottom: var(--hvd-spacing);
    padding-bottom: var(--hvd-spacing);
    border-bottom: 1px solid var(--hvd-color-border);
}
.hvd-widget:last-child { border-bottom: none; }
.hvd-widget-title {
    font-family: var(--hvd-font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--hvd-color-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--hvd-color-primary);
}

/* === FEATURED === */
.hvd-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--hvd-color-border);
}
.hvd-featured-main { }
.hvd-featured-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
    margin-bottom: 20px;
}
.hvd-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.hvd-featured-image:hover img { transform: scale(1.03); }
.hvd-featured-content { }
.hvd-featured-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 12px;
}
.hvd-featured-title a { color: var(--hvd-color-secondary); text-decoration: none; }
.hvd-featured-title a:hover { color: var(--hvd-color-primary); text-decoration: none; }
.hvd-featured-excerpt {
    color: var(--hvd-color-text-light);
    margin-bottom: 12px;
}
.hvd-featured-meta {
    font-size: 0.8rem;
    color: var(--hvd-color-text-light);
}
.hvd-featured-secondary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hvd-featured-small {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hvd-color-border);
}
.hvd-featured-small:last-child { border-bottom: none; padding-bottom: 0; }
.hvd-featured-small-image {
    aspect-ratio: 1;
    overflow: hidden;
}
.hvd-featured-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hvd-featured-small-title {
    font-size: 1rem;
    margin-bottom: 8px;
}
.hvd-featured-small-title a { color: var(--hvd-color-secondary); text-decoration: none; }
.hvd-featured-small-title a:hover { color: var(--hvd-color-primary); }

/* === CATEGORY === */
.hvd-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hvd-color-primary);
    margin-bottom: 8px;
}
.hvd-category:hover { color: var(--hvd-color-secondary); text-decoration: none; }

/* === ARTICLE GRID === */
.hvd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.hvd-card { }
.hvd-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
    margin-bottom: 16px;
}
.hvd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.hvd-card:hover .hvd-card-image img { transform: scale(1.03); }
.hvd-card-title {
    font-size: 1.125rem;
    line-height: 1.35;
    margin-bottom: 8px;
}
.hvd-card-title a { color: var(--hvd-color-secondary); text-decoration: none; }
.hvd-card-title a:hover { color: var(--hvd-color-primary); text-decoration: none; }
.hvd-card-excerpt {
    font-size: 0.9rem;
    color: var(--hvd-color-text-light);
    margin-bottom: 8px;
}
.hvd-card-meta {
    font-size: 0.75rem;
    color: var(--hvd-color-text-light);
}
.hvd-sticky { position: relative; }
.hvd-sticky::before {
    content: "Featured";
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--hvd-color-primary);
    color: #fff;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    z-index: 1;
}

/* === SINGLE POST === */
.hvd-single-header {
    max-width: 720px;
    margin: 0 auto 32px;
}
.hvd-single-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hvd-single-meta {
    font-size: 0.875rem;
    color: var(--hvd-color-text-light);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.hvd-single-image {
    margin: 0 0 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.hvd-single-image img { width: 100%; }
.hvd-single-image figcaption {
    font-size: 0.8rem;
    color: var(--hvd-color-text-light);
    padding: 12px 0;
    font-style: italic;
}
.hvd-single-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.85;
}
.hvd-single-content h2 { font-size: 1.5rem; margin-top: 48px; }
.hvd-single-content h3 { font-size: 1.25rem; margin-top: 32px; }
.hvd-single-content blockquote {
    border-left: 3px solid var(--hvd-color-primary);
    margin: 32px 0;
    padding: 16px 32px;
    font-style: italic;
    color: var(--hvd-color-text-light);
    background: var(--hvd-color-bg-alt);
}
.hvd-single-footer {
    max-width: 720px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--hvd-color-border);
}
.hvd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hvd-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--hvd-color-bg-alt);
    color: var(--hvd-color-text);
    border: 1px solid var(--hvd-color-border);
}
.hvd-tag:hover { background: var(--hvd-color-primary); color: #fff; border-color: var(--hvd-color-primary); text-decoration: none; }

/* === SHARE === */
.hvd-share {
    max-width: 720px;
    margin: 32px auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.hvd-share-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hvd-color-text-light);
}
.hvd-share-link {
    font-size: 0.8rem;
    padding: 8px 16px;
    background: var(--hvd-color-bg-alt);
    color: var(--hvd-color-text);
    border: 1px solid var(--hvd-color-border);
}
.hvd-share-link:hover { background: var(--hvd-color-primary); color: #fff; border-color: var(--hvd-color-primary); text-decoration: none; }

/* === AUTHOR BOX === */
.hvd-author-box {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--hvd-color-bg-alt);
    max-width: 720px;
}

.hvd-author-avatar img { width: 80px; height: 80px; border-radius: 50%; }
.hvd-author-info { flex: 1; }
.hvd-author-name { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.hvd-author-name a { color: var(--hvd-color-secondary); text-decoration: none; }
.hvd-author-name a:hover { color: var(--hvd-color-primary); }
.hvd-author-bio { font-size: 0.9375rem; color: var(--hvd-color-text-light); }

/* === POST NAVIGATION === */
.hvd-post-nav {
    max-width: 720px;
    margin: 48px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.hvd-post-nav-prev, .hvd-post-nav-next {
    padding: 20px;
    background: var(--hvd-color-bg-alt);
    text-decoration: none;
}
.hvd-post-nav-prev:hover, .hvd-post-nav-next:hover { text-decoration: none; }
.hvd-post-nav-next { text-align: right; }
.hvd-post-nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hvd-color-text-light);
    display: block;
    margin-bottom: 8px;
}
.hvd-post-nav-title { font-weight: 600; color: var(--hvd-color-secondary); }

/* === RELATED === */
.hvd-related {
    max-width: 720px;
    margin: 64px auto;
}
.hvd-related-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hvd-color-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hvd-color-primary);
}
.hvd-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hvd-related-card-title { font-size: 0.95rem; margin-top: 12px; }
.hvd-related-card-title a { color: var(--hvd-color-secondary); text-decoration: none; }
.hvd-related-card-title a:hover { color: var(--hvd-color-primary); }

/* === PAGE === */
.hvd-page-header { max-width: 720px; margin: 0 auto 32px; }
.hvd-page-title { font-size: 2.5rem; }
.hvd-page-content { max-width: 720px; margin: 0 auto; font-size: 1.125rem; line-height: 1.85; }

/* === ARCHIVE === */
.hvd-archive-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hvd-color-border);
}
.hvd-archive-title { font-size: 2rem; margin-bottom: 8px; }
.hvd-archive-desc { color: var(--hvd-color-text-light); }

/* === SEARCH === */
.hvd-search-header { margin-bottom: 48px; }
.hvd-search-title { font-size: 1.5rem; }
.hvd-search-title span { color: var(--hvd-color-primary); }
.hvd-articles-list { display: flex; flex-direction: column; gap: 32px; }
.hvd-search-card {
    display: flex;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--hvd-color-border);
}
.hvd-search-image { width: 180px; flex-shrink: 0; overflow: hidden; aspect-ratio: 16/10; }
.hvd-search-image img { width: 100%; height: 100%; object-fit: cover; }
.hvd-search-card-title { font-size: 1.25rem; margin-bottom: 8px; }
.hvd-search-card-title a { color: var(--hvd-color-secondary); text-decoration: none; }
.hvd-search-card-title a:hover { color: var(--hvd-color-primary); }
.hvd-search-excerpt { font-size: 0.9rem; color: var(--hvd-color-text-light); margin-bottom: 8px; }
.hvd-search-meta { font-size: 0.75rem; color: var(--hvd-color-text-light); }
.hvd-no-results { text-align: center; padding: 64px var(--hvd-spacing); }
.hvd-no-results h2 { font-size: 2rem; margin-bottom: 16px; }
.hvd-search-form-wrap { max-width: 400px; margin: 24px auto 0; }

/* === 404 === */
.hvd-error-page { text-align: center; padding: 80px var(--hvd-spacing); }
.hvd-error-code {
    font-family: var(--hvd-font-heading);
    font-size: 6rem;
    font-weight: 700;
    color: var(--hvd-color-primary);
    line-height: 1;
}
.hvd-error-title { font-size: 2rem; margin: 24px 0 16px; }
.hvd-error-text { color: var(--hvd-color-text-light); max-width: 500px; margin: 0 auto 32px; }
.hvd-error-search { max-width: 400px; margin: 0 auto 32px; }
.hvd-error-home {
    display: inline-block;
    background: var(--hvd-color-primary);
    color: #fff;
    padding: 12px 32px;
    font-weight: 600;
}
.hvd-error-home:hover { background: var(--hvd-color-secondary); text-decoration: none; }

/* === PAGINATION === */
.hvd-pagination {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--hvd-color-border);
}
.hvd-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hvd-pagination a, .hvd-pagination span {
    display: block;
    padding: 8px 16px;
    font-size: 0.875rem;
    background: var(--hvd-color-bg-alt);
    color: var(--hvd-color-text);
    text-decoration: none;
}
.hvd-pagination a:hover { background: var(--hvd-color-primary); color: #fff; }
.hvd-pagination .current { background: var(--hvd-color-primary); color: #fff; }

/* === BREADCRUMBS === */
.hvd-breadcrumbs {
    font-size: 0.75rem;
    margin-bottom: 24px;
    color: var(--hvd-color-text-light);
}
.hvd-breadcrumbs a { color: var(--hvd-color-text-light); text-decoration: none; }
.hvd-breadcrumbs a:hover { color: var(--hvd-color-primary); }
.hvd-breadcrumbs .separator { margin: 0 8px; }

/* === COMMENTS === */
.hvd-comments { max-width: 720px; margin: 64px auto 0; padding-top: 32px; border-top: 1px solid var(--hvd-color-border); }
.hvd-comments-title { font-size: 1.25rem; margin-bottom: 32px; }
.hvd-comments-list { list-style: none; margin: 0; padding: 0; }
.hvd-comment { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--hvd-color-border); }
.hvd-comment-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.hvd-comment-avatar img { border-radius: 50%; }
.hvd-comment-author { font-weight: 600; }
.hvd-comment-date { font-size: 0.8rem; color: var(--hvd-color-text-light); }
.hvd-comment-content { font-size: 0.95rem; }
.hvd-comment-actions { margin-top: 12px; }
.hvd-comment-actions a { font-size: 0.8rem; color: var(--hvd-color-text-light); margin-right: 16px; }
.hvd-comments-closed { color: var(--hvd-color-text-light); font-style: italic; }
.hvd-comment-form { margin-top: 32px; }
.hvd-comment-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.hvd-comment-form input[type="text"],
.hvd-comment-form input[type="email"],
.hvd-comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--hvd-color-border);
    margin-bottom: 16px;
    font-family: inherit;
    font-size: 1rem;
}
.hvd-comment-form textarea { min-height: 150px; }
.hvd-comment-form input[type="submit"] {
    background: var(--hvd-color-primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    cursor: pointer;
}
.hvd-comment-form input[type="submit"]:hover { background: var(--hvd-color-secondary); }

/* === FOOTER === */
.hvd-footer {
    background: var(--hvd-color-secondary);
    color: #fff;
    padding: 48px 0 0;
    margin-top: 64px;
}
.hvd-footer-inner { max-width: var(--hvd-max-width); margin: 0 auto; padding: 0 var(--hvd-spacing); }
.hvd-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hvd-footer-widget-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hvd-color-accent);
    margin-bottom: 16px;
}
.hvd-footer-widget a { color: rgba(255,255,255,0.7); text-decoration: none; }
.hvd-footer-widget a:hover { color: #fff; }
.hvd-footer-widget ul { list-style: none; margin: 0; padding: 0; }
.hvd-footer-widget li { margin-bottom: 8px; }
.hvd-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}
.hvd-footer-menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.hvd-footer-menu a { color: rgba(255,255,255,0.7); font-size: 0.8rem; text-decoration: none; }
.hvd-footer-menu a:hover { color: #fff; }
.hvd-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* === SCROLL TO TOP === */
.hvd-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--hvd-color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hvd-scroll-top:hover { background: var(--hvd-color-secondary); }
.hvd-scroll-top.hvd-visible { opacity: 1; visibility: visible; }

/* === FORMS === */
.search-form { display: flex; }
.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--hvd-color-border);
    border-right: none;
    font-size: 1rem;
    font-family: inherit;
}
.search-form input[type="submit"] {
    padding: 12px 20px;
    background: var(--hvd-color-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.search-form input[type="submit"]:hover { background: var(--hvd-color-secondary); }

/* === PAGE LINKS === */
.hvd-page-links { margin: 32px 0; font-weight: 600; }
.hvd-page-links span { margin-right: 8px; }
.hvd-page-links a { margin: 0 4px; padding: 4px 12px; background: var(--hvd-color-bg-alt); text-decoration: none; }
.hvd-page-links a:hover { background: var(--hvd-color-primary); color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hvd-grid { grid-template-columns: repeat(2, 1fr); }
    .hvd-sidebar { width: 260px; }
    .hvd-footer-widgets { grid-template-columns: repeat(2, 1fr); }
    .hvd-related-grid { grid-template-columns: repeat(2, 1fr); }
    .hvd-featured { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --hvd-spacing: 16px; }
    .hvd-logo img,
    .hvd-logo .custom-logo { max-height: 40px; }
    .hvd-logo-wrap .custom-logo,
    .hvd-logo-wrap .custom-logo-link img { max-height: 40px; }
    .hvd-menu-toggle { display: block; }
    .hvd-nav { display: none; }
    .hvd-nav.hvd-nav-open { display: block; }
    .hvd-nav-menu { flex-direction: column; gap: 0; padding: 16px 0; }
    .hvd-nav-menu a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .hvd-nav-menu .sub-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; padding-left: 20px; margin-top: 0; }
    .hvd-content-inner { flex-direction: column; }
    .hvd-sidebar { display: none !important; }
    .hvd-has-sidebar.hvd-sidebar-left .hvd-content-inner { flex-direction: column; }
    .hvd-grid { grid-template-columns: 1fr; }
    .hvd-single-title { font-size: 2rem; }
    .hvd-footer-widgets { grid-template-columns: 1fr; gap: 32px; }
    .hvd-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .hvd-post-nav { grid-template-columns: 1fr; }
    .hvd-search-card { flex-direction: column; }
    .hvd-search-image { width: 100%; }
    .hvd-related-grid { grid-template-columns: 1fr; }
    .hvd-featured-small { grid-template-columns: 80px 1fr; }
}

/* Interlinking Section */
.harv-interlinking {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.harv-interlinking-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.harv-interlinking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.harv-interlinking-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}
.harv-interlinking-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--harv-color-primary, #333);
}
.harv-interlinking-list a {
    color: var(--harv-color-primary, #333);
    text-decoration: none;
}
.harv-interlinking-list a:hover {
    text-decoration: underline;
}

/* Grid Layouts */
.hvd-grid-3col .hvd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.hvd-grid-2col .hvd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.hvd-grid-list .hvd-grid {
    display: block;
}
.hvd-grid-list .hvd-card {
    margin-bottom: 30px;
}
@media (max-width: 1024px) {
    .hvd-grid-3col .hvd-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hvd-grid-3col .hvd-grid,
    .hvd-grid-2col .hvd-grid {
        grid-template-columns: 1fr;
    }
}
