/*
Theme Name: Polimity Theme
Theme URI: https://polimity.com
Author: Polimity
Author URI: https://polimity.com
Description: A clean, professional WordPress theme inspired by Polimity.com. Features a modern header and footer design with excellent typography for blog posts and pages.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: polimity-theme
Tags: blog, one-column, custom-logo, featured-images, threaded-comments
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    --color-primary: #2563EB;
    --color-primary-hover: #1D4ED8;
    --color-dark: #1F2937;
    --color-body: #6B7280;
    --color-light-gray: #F9FAFB;
    --color-white: #FFFFFF;
    --color-border: #E5E7EB;
    --color-footer-bg: #FFFFFF;
    --color-footer-text: #64748B;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-body);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-main {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--color-dark);
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--color-body);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu li a:hover {
    color: var(--color-dark);
}

/* Navigation Dropdown Submenu */
.nav-menu li.has-submenu {
    position: relative;
}

.nav-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 1000;
}

.nav-menu li.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .submenu li {
    margin: 0;
}

.nav-menu .submenu li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-dark);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu .submenu li a:hover {
    background-color: var(--color-light-gray);
    color: var(--color-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 3rem 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo:hover {
    color: var(--color-dark);
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-footer-text);
}

.footer-founded {
    font-size: 0.875rem;
    color: var(--color-footer-text);
}

.footer-column h4 {
    color: var(--color-dark);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--color-footer-text);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: var(--color-primary);
}

/* Footer Contact Column */
.footer-contact p {
    font-size: 0.875rem;
    color: var(--color-footer-text);
    margin-bottom: 0.5rem;
}

.footer-cta-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: color 0.2s ease;
}

.footer-cta-link:hover {
    color: var(--color-primary-hover);
}

.footer-social {
    margin-top: 1rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-footer-text);
    transition: color 0.2s ease;
}

.linkedin-link:hover {
    color: var(--color-primary);
}

.linkedin-link svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-footer-text);
}

.footer-tagline {
    font-size: 0.75rem;
    color: var(--color-footer-text);
}

/* ==========================================================================
   Categories Bar
   ========================================================================== */
.categories-bar {
    background-color: var(--color-light-gray);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.categories-bar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.categories-bar ul li {
    margin: 0;
}

.categories-bar ul li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-body);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.categories-bar ul li a:hover,
.categories-bar ul li.current-cat a {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Blog & Archive
   ========================================================================== */
.page-header {
    background-color: var(--color-light-gray);
    padding: 3rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-body);
    margin-bottom: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background-color: var(--color-white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--color-light-gray);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--color-body);
    margin-bottom: 0.75rem;
}

.post-card-category {
    color: var(--color-primary);
    font-weight: 500;
}

.post-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.post-card h3 a {
    color: var(--color-dark);
}

.post-card h3 a:hover {
    color: var(--color-primary);
}

.post-card-excerpt {
    font-size: 0.9375rem;
    color: var(--color-body);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0 4rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-body);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: var(--color-light-gray);
    color: var(--color-dark);
}

.pagination .current {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post-header {
    background-color: var(--color-light-gray);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.single-post-header .container {
    max-width: 800px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-body);
    margin-bottom: 1rem;
}

.single-post-category {
    color: var(--color-primary);
    font-weight: 500;
}

.single-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post-excerpt {
    font-size: 1.125rem;
    color: var(--color-body);
    margin-bottom: 0;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.single-post-featured-image {
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
}

/* Post Content Typography */
.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.entry-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: var(--color-light-gray);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 0.5rem 0.5rem 0;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content pre {
    background-color: var(--color-dark);
    color: #E5E7EB;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.entry-content code {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.875em;
}

.entry-content :not(pre) > code {
    background-color: var(--color-light-gray);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
}

.entry-content img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Post Tags */
.post-tags {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.post-tags span {
    font-weight: 600;
    color: var(--color-dark);
    margin-right: 0.5rem;
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-light-gray);
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: var(--color-body);
    margin: 0.25rem;
}

.post-tags a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--color-light-gray);
    border-radius: 0.75rem;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-info h4 {
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Page
   ========================================================================== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.page-content h1 {
    margin-bottom: 2rem;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--color-dark);
}

.comment-meta {
    font-size: 0.8125rem;
    color: var(--color-body);
}

.comment-content {
    padding-left: 64px;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.comment-reply-link {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Comment Form */
.comment-respond {
    margin-top: 3rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comment-form .submit:hover {
    background-color: var(--color-primary-hover);
}

/* ==========================================================================
   Search
   ========================================================================== */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.search-form button:hover {
    background-color: var(--color-primary-hover);
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 6rem 1.5rem;
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.125rem;
    color: var(--color-body);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    padding: 2rem 0;
}

.widget {
    margin-bottom: 2.5rem;
}

.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--color-body);
}

.widget ul li a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .main-navigation {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .header-cta {
        width: 100%;
        margin-top: 1rem;
    }

    .header-cta .btn {
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .single-post-header h1 {
        font-size: 2rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .error-404 h1 {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .single-post-header {
        padding: 2rem 0;
    }

    .post-card-content {
        padding: 1rem;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-light-gray);
    clip: auto !important;
    clip-path: none;
    color: var(--color-dark);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    z-index: 9999;
    border-radius: 0 0 0.5rem 0.5rem;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--color-body);
    text-align: center;
    padding: 0.5rem 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.gallery-item {
    margin: 0;
}

.gallery-caption {
    font-size: 0.8125rem;
    padding: 0.5rem;
}

/* Sticky Post */
.sticky .post-card {
    border: 2px solid var(--color-primary);
}
