/*
Theme Name: Planters Realm
Theme URI: https://plantersrealm.com
Author: Planters Realm
Author URI: https://plantersrealm.com
Description: A professional gardening blog theme inspired by modern gardening publications. Features dropdown navigation, category showcases, and a clean cream/green design.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plantersrealm
Tags: blog, gardening, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --pr-green-dark: #1a4d2e;
    --pr-green-medium: #2d6a4f;
    --pr-green-light: #52b788;
    --pr-orange: #e8703a;
    --pr-orange-hover: #d4602e;
    --pr-cream: #faf6f0;
    --pr-cream-dark: #f0ebe3;
    --pr-white: #ffffff;
    --pr-black: #1a1a1a;
    --pr-gray: #6b7280;
    --pr-gray-light: #e5e7eb;
    --pr-font-heading: 'Oswald', sans-serif;
    --pr-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --pr-max-width: 1340px;
    --pr-header-height: 70px;
    --pr-subnav-height: 48px;
    --pr-topbar-height: 36px;
    --pr-radius: 8px;
    --pr-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --pr-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --pr-transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--pr-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--pr-black);
    background-color: var(--pr-cream);
}

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

a {
    color: var(--pr-green-dark);
    text-decoration: none;
    transition: color var(--pr-transition);
}

a:hover {
    color: var(--pr-orange);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--pr-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--pr-green-dark);
    text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.2em;
}

ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

blockquote {
    border-left: 4px solid var(--pr-orange);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--pr-cream-dark);
    font-style: italic;
    border-radius: 0 var(--pr-radius) var(--pr-radius) 0;
}

.pr-container {
    max-width: var(--pr-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.pr-topbar {
    background: var(--pr-orange);
    height: var(--pr-topbar-height);
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--pr-white);
}

.pr-topbar-inner {
    max-width: var(--pr-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.pr-topbar a {
    color: var(--pr-white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pr-topbar a:hover {
    opacity: 0.85;
    color: var(--pr-white);
}

.pr-topbar svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ==========================================================================
   Main Header
   ========================================================================== */
.pr-header {
    background: var(--pr-white);
    height: var(--pr-header-height);
    border-bottom: 1px solid var(--pr-gray-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

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

/* Logo */
.pr-logo {
    flex-shrink: 0;
}

.pr-logo a {
    display: flex;
    align-items: center;
}

.pr-logo img,
.pr-logo .custom-logo {
    max-height: 50px;
    width: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pr-logo .site-title {
    font-family: var(--pr-font-heading);
    font-size: 1.6rem;
    color: var(--pr-green-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header Right Icons */
.pr-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.pr-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--pr-green-dark);
    border-radius: 50%;
    transition: background var(--pr-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-search-toggle:hover {
    background: var(--pr-cream);
}

.pr-search-toggle svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Category Sub-Navigation (integrated into header)
   ========================================================================== */
.pr-subnav {
    background: var(--pr-white);
    border-bottom: 3px solid var(--pr-green-dark);
}

.pr-subnav-inner {
    max-width: var(--pr-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.pr-subnav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
}

.pr-subnav > .pr-subnav-inner > div > ul > li {
    position: relative;
}

.pr-subnav > .pr-subnav-inner > div > ul > li > a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pr-green-dark);
    letter-spacing: 0.5px;
    transition: all var(--pr-transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.pr-subnav > .pr-subnav-inner > div > ul > li > a:hover,
.pr-subnav > .pr-subnav-inner > div > ul > li.current-menu-item > a,
.pr-subnav > .pr-subnav-inner > div > ul > li.current-menu-ancestor > a {
    color: var(--pr-orange);
    border-bottom-color: var(--pr-orange);
}

/* ==========================================================================
   Dropdown Submenus
   ========================================================================== */
.pr-subnav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pr-white);
    min-width: 220px;
    box-shadow: var(--pr-shadow-lg);
    border-radius: 0 0 var(--pr-radius) var(--pr-radius);
    border-top: 3px solid var(--pr-orange);
    padding: 8px 0;
    z-index: 999;
    list-style: none;
    margin: 0;
}

.pr-subnav ul li:hover > ul {
    display: block;
    animation: pr-dropdown-fade 0.2s ease;
}

@keyframes pr-dropdown-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pr-subnav ul ul li {
    position: relative;
}

.pr-subnav ul ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pr-black);
    transition: all var(--pr-transition);
    white-space: nowrap;
    text-align: center;
}

.pr-subnav ul ul li a:hover {
    background: var(--pr-cream);
    color: var(--pr-orange);
}

/* Third level dropdowns */
.pr-subnav ul ul ul {
    top: 0;
    left: 100%;
    transform: none;
    border-top: none;
    border-left: 3px solid var(--pr-orange);
    border-radius: 0 var(--pr-radius) var(--pr-radius) 0;
}

/* ==========================================================================
   Mobile Menu Toggle & Panel
   ========================================================================== */
.pr-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--pr-green-dark);
}

.pr-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pr-green-dark);
    margin: 5px 0;
    transition: var(--pr-transition);
    border-radius: 2px;
}

/* Mobile Nav Panel — hidden on desktop, only visible on mobile when toggled */
.pr-mobile-nav {
    display: none !important;
}

@media (max-width: 768px) {
    .pr-mobile-nav.active {
        display: block !important;
        position: fixed;
        top: var(--pr-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--pr-white);
        z-index: 998;
        overflow-y: auto;
        padding: 20px;
        border-top: 3px solid var(--pr-green-dark);
    }
}

.pr-mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pr-mobile-nav > .pr-mobile-nav-inner > div > ul > li > a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--pr-green-dark);
    border-bottom: 1px solid var(--pr-gray-light);
}

.pr-mobile-nav ul ul {
    background: var(--pr-cream);
    padding: 0;
}

.pr-mobile-nav ul ul li a {
    display: block;
    padding: 12px 16px 12px 36px;
    font-size: 14px;
    color: var(--pr-black);
    border-bottom: 1px solid var(--pr-gray-light);
}

.pr-mobile-nav ul ul ul li a {
    padding-left: 56px;
}

/* ==========================================================================
   Search Overlay
   ========================================================================== */
.pr-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 77, 46, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.pr-search-overlay.active {
    display: flex;
}

.pr-search-overlay-inner {
    width: 90%;
    max-width: 700px;
    text-align: center;
}

.pr-search-overlay h3 {
    color: var(--pr-white);
    font-size: 1.4rem;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.pr-search-overlay form {
    display: flex;
    gap: 0;
}

.pr-search-overlay input[type="search"] {
    flex: 1;
    padding: 16px 24px;
    font-size: 18px;
    border: none;
    border-radius: var(--pr-radius) 0 0 var(--pr-radius);
    outline: none;
    font-family: var(--pr-font-body);
}

.pr-search-overlay button[type="submit"] {
    padding: 16px 32px;
    background: var(--pr-orange);
    color: var(--pr-white);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 var(--pr-radius) var(--pr-radius) 0;
    font-family: var(--pr-font-body);
    transition: background var(--pr-transition);
}

.pr-search-overlay button[type="submit"]:hover {
    background: var(--pr-orange-hover);
}

.pr-search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--pr-white);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.pr-hero {
    background: linear-gradient(135deg, var(--pr-green-dark) 0%, var(--pr-green-medium) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pr-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="2" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="70" r="3" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="50" r="1.5" fill="rgba(255,255,255,0.04)"/></svg>') repeat;
    background-size: 100px 100px;
}

.pr-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.pr-hero h1 {
    color: var(--pr-white);
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.pr-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.pr-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--pr-orange);
    color: var(--pr-white);
    font-family: var(--pr-font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--pr-transition);
    text-decoration: none;
}

.pr-btn:hover {
    background: var(--pr-orange-hover);
    color: var(--pr-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 112, 58, 0.3);
}

.pr-btn-outline {
    background: transparent;
    border: 2px solid var(--pr-white);
    color: var(--pr-white);
}

.pr-btn-outline:hover {
    background: var(--pr-white);
    color: var(--pr-green-dark);
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.pr-section {
    padding: 60px 0;
}

.pr-section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 40px;
    letter-spacing: 2px;
    position: relative;
}

.pr-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--pr-orange);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   Featured / Trending Section
   ========================================================================== */
.pr-featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.pr-featured-large {
    position: relative;
    border-radius: var(--pr-radius);
    overflow: hidden;
    min-height: 450px;
}

.pr-featured-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.pr-featured-large .pr-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--pr-white);
}

.pr-featured-large .pr-card-category {
    color: var(--pr-orange);
    background: rgba(0,0,0,0.4);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.pr-featured-large h3 {
    color: var(--pr-white);
    font-size: 1.6rem;
    margin-bottom: 0;
}

.pr-featured-large h3 a {
    color: var(--pr-white);
}

.pr-featured-large h3 a:hover {
    color: var(--pr-orange);
}

.pr-featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pr-featured-small {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--pr-white);
    border-radius: var(--pr-radius);
    overflow: hidden;
    box-shadow: var(--pr-shadow);
    transition: transform var(--pr-transition), box-shadow var(--pr-transition);
}

.pr-featured-small:hover {
    transform: translateY(-3px);
    box-shadow: var(--pr-shadow-lg);
}

.pr-featured-small .pr-thumb {
    width: 140px;
    min-height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.pr-featured-small .pr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pr-featured-small .pr-small-content {
    padding: 12px 16px 12px 0;
    flex: 1;
}

.pr-featured-small .pr-card-category {
    color: var(--pr-orange);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.pr-featured-small h4 {
    font-size: 1rem;
    line-height: 1.3;
}

.pr-featured-small h4 a {
    color: var(--pr-green-dark);
}

.pr-featured-small h4 a:hover {
    color: var(--pr-orange);
}

/* ==========================================================================
   Post Cards Grid
   ========================================================================== */
.pr-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.pr-post-card {
    background: var(--pr-white);
    border-radius: var(--pr-radius);
    overflow: hidden;
    box-shadow: var(--pr-shadow);
    transition: transform var(--pr-transition), box-shadow var(--pr-transition);
}

.pr-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pr-shadow-lg);
}

.pr-post-card .pr-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

.pr-post-card:hover .pr-card-image img {
    transform: scale(1.05);
}

.pr-post-card .pr-card-body {
    padding: 24px;
}

.pr-card-category {
    color: var(--pr-orange);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 8px;
}

.pr-card-category a {
    color: var(--pr-orange);
}

.pr-card-category a:hover {
    color: var(--pr-orange-hover);
}

.pr-post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.25;
}

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

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

.pr-card-excerpt {
    color: var(--pr-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pr-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--pr-gray-light);
    font-size: 13px;
    color: var(--pr-gray);
}

.pr-card-meta svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Category Showcase (Green BG Section)
   ========================================================================== */
.pr-category-showcase {
    background: linear-gradient(135deg, var(--pr-green-dark) 0%, var(--pr-green-medium) 100%);
    padding: 70px 0;
    position: relative;
}

.pr-category-showcase .pr-section-title {
    color: var(--pr-white);
}

.pr-category-showcase .pr-section-title::after {
    background: var(--pr-orange);
}

.pr-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    text-align: center;
}

.pr-category-item {
    transition: transform var(--pr-transition);
}

.pr-category-item:hover {
    transform: translateY(-6px);
}

.pr-category-item .pr-cat-icon {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: border-color var(--pr-transition);
}

.pr-category-item:hover .pr-cat-icon {
    border-color: var(--pr-orange);
}

.pr-category-item .pr-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pr-category-item h4 {
    color: var(--pr-white);
    font-size: 1rem;
    letter-spacing: 1px;
}

.pr-category-item h4 a {
    color: var(--pr-white);
}

.pr-category-item h4 a:hover {
    color: var(--pr-orange);
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.pr-newsletter {
    background: var(--pr-cream-dark);
    padding: 70px 0;
    text-align: center;
}

.pr-newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
}

.pr-newsletter h2 {
    margin-bottom: 12px;
}

.pr-newsletter p {
    color: var(--pr-gray);
    margin-bottom: 28px;
}

.pr-newsletter-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.pr-newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--pr-gray-light);
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 15px;
    font-family: var(--pr-font-body);
    outline: none;
    transition: border-color var(--pr-transition);
    background: var(--pr-white);
}

.pr-newsletter-form input[type="email"]:focus {
    border-color: var(--pr-green-dark);
}

.pr-newsletter-form button {
    padding: 14px 28px;
    background: var(--pr-orange);
    color: var(--pr-white);
    border: none;
    border-radius: 0 50px 50px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--pr-font-body);
    transition: background var(--pr-transition);
    white-space: nowrap;
}

.pr-newsletter-form button:hover {
    background: var(--pr-orange-hover);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.pr-footer {
    background: var(--pr-green-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.pr-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.pr-footer h4 {
    color: var(--pr-white);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.pr-footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Footer Newsletter */
.pr-footer-newsletter {
    margin-bottom: 20px;
}

.pr-footer-email-wrap {
    display: flex;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
    max-width: 300px;
}

.pr-footer-email-wrap input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--pr-white);
    font-size: 14px;
    font-family: var(--pr-font-body);
    outline: none;
}

.pr-footer-email-wrap input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.pr-footer-email-wrap button {
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.3);
    color: var(--pr-white);
    cursor: pointer;
    transition: background var(--pr-transition);
    display: flex;
    align-items: center;
}

.pr-footer-email-wrap button:hover {
    background: rgba(255,255,255,0.1);
}

/* Footer Logo */
.pr-footer-logo {
    margin-top: 20px;
}

.pr-footer-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.pr-footer-sitename {
    font-family: var(--pr-font-heading);
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pr-footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.pr-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--pr-white);
    transition: all var(--pr-transition);
}

.pr-footer-social a:hover {
    background: var(--pr-orange);
    transform: translateY(-2px);
}

.pr-footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

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

.pr-footer-links li {
    margin-bottom: 10px;
}

.pr-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all var(--pr-transition);
}

.pr-footer-links a:hover {
    color: var(--pr-orange);
    padding-left: 4px;
}

.pr-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.pr-single-header {
    background: linear-gradient(135deg, var(--pr-green-dark) 0%, var(--pr-green-medium) 100%);
    padding: 50px 0 60px;
}

.pr-single-header .pr-card-category {
    color: var(--pr-orange);
    background: rgba(255,255,255,0.1);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 16px;
}

.pr-single-header .pr-card-category a {
    color: var(--pr-orange);
}

.pr-single-header h1 {
    color: var(--pr-white);
    margin-bottom: 20px;
    max-width: 800px;
}

.pr-single-excerpt {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.pr-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    flex-wrap: wrap;
}

.pr-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
}

.pr-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pr-single-meta a {
    color: var(--pr-orange);
}

/* Single Content Layout */
.pr-single-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    padding: 50px 0;
}

.pr-single-content {
    max-width: 100%;
    overflow-wrap: break-word;
}

.pr-single-content .pr-featured-image {
    margin: 0 0 30px;
    border-radius: var(--pr-radius);
    overflow: hidden;
}

.pr-single-content .pr-featured-image img {
    width: 100%;
    border-radius: var(--pr-radius);
}

/* Article Content Styles */
.pr-article-body {
    font-size: 17px;
    line-height: 1.8;
}

.pr-article-body h2 {
    margin: 40px 0 16px;
    padding-top: 20px;
    border-top: 2px solid var(--pr-gray-light);
}

.pr-article-body h3 {
    margin: 30px 0 12px;
}

.pr-article-body h4 {
    margin: 24px 0 10px;
}

.pr-article-body img {
    border-radius: var(--pr-radius);
    margin: 20px 0;
}

.pr-article-body a {
    color: var(--pr-orange);
    text-decoration: underline;
    text-decoration-color: rgba(232, 112, 58, 0.3);
    text-underline-offset: 3px;
}

.pr-article-body a:hover {
    text-decoration-color: var(--pr-orange);
}

.pr-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.pr-article-body th,
.pr-article-body td {
    padding: 12px 16px;
    border: 1px solid var(--pr-gray-light);
    text-align: left;
}

.pr-article-body th {
    background: var(--pr-green-dark);
    color: var(--pr-white);
    font-family: var(--pr-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.pr-article-body tr:nth-child(even) {
    background: var(--pr-cream-dark);
}

/* Post Tags */
.pr-post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--pr-gray-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pr-post-tags span {
    font-weight: 700;
    font-size: 14px;
    color: var(--pr-green-dark);
}

.pr-post-tags a {
    display: inline-block;
    padding: 4px 14px;
    background: var(--pr-cream-dark);
    color: var(--pr-gray);
    font-size: 13px;
    border-radius: 20px;
    transition: all var(--pr-transition);
}

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

/* Post Navigation */
.pr-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--pr-gray-light);
}

.pr-post-nav a {
    display: block;
    padding: 20px;
    background: var(--pr-white);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    transition: all var(--pr-transition);
}

.pr-post-nav a:hover {
    box-shadow: var(--pr-shadow-lg);
    transform: translateY(-2px);
}

.pr-post-nav .pr-nav-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pr-orange);
    margin-bottom: 6px;
    font-weight: 700;
}

.pr-post-nav .pr-nav-title {
    font-family: var(--pr-font-heading);
    font-size: 1rem;
    color: var(--pr-green-dark);
    text-transform: uppercase;
}

.pr-post-nav .pr-nav-next {
    text-align: right;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.pr-sidebar {
    position: sticky;
    top: calc(var(--pr-header-height) + 20px);
    align-self: start;
}

.pr-widget {
    background: var(--pr-white);
    border-radius: var(--pr-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--pr-shadow);
}

.pr-widget h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 1.5px;
}

.pr-widget h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--pr-orange);
    margin-top: 8px;
}

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

.pr-widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pr-gray-light);
}

.pr-widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pr-widget ul li a {
    font-size: 14px;
    color: var(--pr-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Related Posts Widget */
.pr-related-posts .pr-related-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pr-gray-light);
}

.pr-related-posts .pr-related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pr-related-posts .pr-related-thumb {
    width: 80px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.pr-related-posts .pr-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pr-related-posts .pr-related-info h5 {
    font-size: 0.85rem;
    line-height: 1.3;
    text-transform: uppercase;
}

.pr-related-posts .pr-related-info h5 a {
    color: var(--pr-green-dark);
}

.pr-related-posts .pr-related-info h5 a:hover {
    color: var(--pr-orange);
}

/* ==========================================================================
   Archive / Category Pages
   ========================================================================== */
.pr-archive-header {
    background: linear-gradient(135deg, var(--pr-green-dark) 0%, var(--pr-green-medium) 100%);
    padding: 50px 0;
}

.pr-archive-header h1 {
    color: var(--pr-white);
    margin-bottom: 10px;
}

.pr-archive-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    max-width: 600px;
}

.pr-archive-content {
    padding: 50px 0;
}

.pr-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pr-archive-grid .pr-post-card .pr-card-body {
    padding: 20px;
}

.pr-archive-grid .pr-post-card h3 {
    font-size: 1.1rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.pr-breadcrumbs {
    padding: 12px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.pr-breadcrumbs a {
    color: rgba(255,255,255,0.7);
}

.pr-breadcrumbs a:hover {
    color: var(--pr-orange);
}

.pr-breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pr-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pr-pagination a,
.pr-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--pr-radius);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--pr-transition);
}

.pr-pagination a {
    background: var(--pr-white);
    color: var(--pr-green-dark);
    box-shadow: var(--pr-shadow);
}

.pr-pagination a:hover {
    background: var(--pr-orange);
    color: var(--pr-white);
    transform: translateY(-2px);
}

.pr-pagination span.current {
    background: var(--pr-green-dark);
    color: var(--pr-white);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.pr-comments {
    margin-top: 50px;
}

.pr-comments h3 {
    margin-bottom: 24px;
}

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

.comment-list .comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--pr-gray-light);
}

.comment-list .comment .comment-author img {
    border-radius: 50%;
    float: left;
    margin-right: 16px;
}

.comment-list .comment .comment-meta {
    font-size: 13px;
    color: var(--pr-gray);
    margin-bottom: 8px;
}

.comment-respond {
    margin-top: 30px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--pr-gray-light);
    border-radius: var(--pr-radius);
    font-family: var(--pr-font-body);
    font-size: 15px;
    margin-bottom: 16px;
    transition: border-color var(--pr-transition);
    outline: none;
    background: var(--pr-white);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--pr-green-dark);
}

.comment-form .form-submit input[type="submit"] {
    padding: 12px 32px;
    background: var(--pr-orange);
    color: var(--pr-white);
    border: none;
    border-radius: 50px;
    font-family: var(--pr-font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--pr-transition);
}

.comment-form .form-submit input[type="submit"]:hover {
    background: var(--pr-orange-hover);
}

/* ==========================================================================
   Page Template
   ========================================================================== */
.pr-page-header {
    background: linear-gradient(135deg, var(--pr-green-dark) 0%, var(--pr-green-medium) 100%);
    padding: 50px 0;
    text-align: center;
}

.pr-page-header h1 {
    color: var(--pr-white);
}

.pr-page-content {
    padding: 50px 0;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.pr-404 {
    text-align: center;
    padding: 80px 20px;
}

.pr-404 h1 {
    font-size: 6rem;
    color: var(--pr-orange);
    margin-bottom: 10px;
}

.pr-404 h2 {
    margin-bottom: 16px;
}

.pr-404 p {
    color: var(--pr-gray);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pr-404 .search-form {
    max-width: 400px;
    margin: 0 auto 24px;
    display: flex;
}

.pr-404 .search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--pr-gray-light);
    border-right: none;
    border-radius: var(--pr-radius) 0 0 var(--pr-radius);
    font-size: 15px;
    outline: none;
    font-family: var(--pr-font-body);
}

.pr-404 .search-form button {
    padding: 12px 24px;
    background: var(--pr-orange);
    color: var(--pr-white);
    border: none;
    border-radius: 0 var(--pr-radius) var(--pr-radius) 0;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--pr-font-body);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.pr-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--pr-green-dark);
    color: var(--pr-white);
    border: none;
    border-radius: var(--pr-radius);
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: all var(--pr-transition);
    box-shadow: var(--pr-shadow);
}

.pr-back-to-top.visible {
    display: flex;
}

.pr-back-to-top:hover {
    background: var(--pr-orange);
    transform: translateY(-3px);
}

/* ==========================================================================
   WordPress Core Overrides
   ========================================================================== */
.wp-block-image {
    margin: 20px 0;
}

.wp-block-image img {
    border-radius: var(--pr-radius);
}

.alignleft {
    float: left;
    margin: 0 20px 10px 0;
}

.alignright {
    float: right;
    margin: 0 0 10px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--pr-gray);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--pr-radius);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

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

    .pr-featured-sidebar {
        flex-direction: row;
        overflow-x: auto;
    }

    .pr-featured-small {
        min-width: 300px;
    }

    .pr-single-content-wrapper {
        grid-template-columns: 1fr;
    }

    .pr-sidebar {
        position: static;
    }

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

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

@media (max-width: 768px) {
    .pr-topbar {
        display: none;
    }

    .pr-subnav {
        display: none;
    }

    .pr-menu-toggle {
        display: block;
    }

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

    .pr-archive-grid {
        grid-template-columns: 1fr;
    }

    .pr-hero {
        padding: 50px 0;
    }

    .pr-section {
        padding: 40px 0;
    }

    .pr-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pr-post-nav {
        grid-template-columns: 1fr;
    }

    .pr-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .pr-newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .pr-newsletter-form input[type="email"] {
        border-right: 2px solid var(--pr-gray-light);
        border-radius: 50px;
    }

    .pr-newsletter-form button {
        border-radius: 50px;
    }
}

@media (max-width: 480px) {
    .pr-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pr-category-item .pr-cat-icon {
        width: 100px;
        height: 100px;
    }

    .pr-featured-large {
        min-height: 300px;
    }
}
