/*
Theme Name: Grey Matter Blog
Theme URI: https://thegreymatter.com
Author: The Grey Matter / 9Vectors
Author URI: https://thegreymatter.com
Description: A professional, modern blog theme designed for The Grey Matter / 9Vectors brand. Features a clean, accessible design with teal and cyan tones accented by amber orange. Includes hero sections, reading time calculator, social sharing, related posts, newsletter signup, and full SEO optimization.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: greymatter
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-header, custom-menu, featured-images, post-formats, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties (Brand Colors)
   ========================================================================== */

:root {
    /* Primary Teal (Trust & Depth) */
    --gm-teal-dark: #1E6B8C;
    --gm-teal: #1E6B8C;
    --gm-teal-medium: #4A9BB8;
    --gm-teal-deep: #145570;
    
    /* Primary Cyan (Clarity & Openness) */
    --gm-cyan-light: #A8D8E8;
    --gm-cyan: #A8D8E8;
    --gm-cyan-medium: #7BC4DD;
    --gm-cyan-pale: #D4EDF4;
    --gm-cyan-very-light: #F5F9FB;
    
    /* Accent Orange (Energy & Action) */
    --gm-orange-amber: #F5A623;
    --gm-orange: #F5A623;
    --gm-orange-light: #FFB84D;
    --gm-orange-dark: #E89B0D;
    
    /* Status Colors */
    --gm-status-success: #4CAF50;
    --gm-status-warning: #FFEB3B;
    --gm-status-alert: #E74C3C;
    
    /* Neutrals */
    --gm-charcoal: #2C2C2C;
    --gm-slate-teal: #5A7684;
    --gm-white: #FFFFFF;
    
    /* Typography */
    --gm-font-primary: 'Arial', sans-serif;
    --gm-font-heading: 'Arial', sans-serif;
    
    /* Spacing */
    --gm-space-xs: 0.25rem;
    --gm-space-sm: 0.5rem;
    --gm-space-md: 1rem;
    --gm-space-lg: 1.5rem;
    --gm-space-xl: 2rem;
    --gm-space-2xl: 3rem;
    --gm-space-3xl: 4rem;
    
    /* Container */
    --gm-container-max: 1200px;
    --gm-content-max: 720px;
    
    /* Shadows */
    --gm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --gm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --gm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --gm-transition-fast: 150ms ease;
    --gm-transition-base: 200ms ease;
    --gm-transition-slow: 300ms ease;
    
    /* Border Radius */
    --gm-radius-sm: 0.25rem;
    --gm-radius-md: 0.5rem;
    --gm-radius-lg: 0.75rem;
    --gm-radius-xl: 1rem;
    --gm-radius-full: 9999px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--gm-font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gm-charcoal);
    background-color: var(--gm-cyan-very-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gm-font-heading);
    font-weight: 700;
    color: var(--gm-teal-dark);
    line-height: 1.3;
    margin: 0 0 var(--gm-space-md);
}

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: 0 0 var(--gm-space-lg);
}

a {
    color: var(--gm-teal-medium);
    text-decoration: none;
    transition: color var(--gm-transition-fast);
}

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

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

/* ==========================================================================
   Layout Components
   ========================================================================== */

.gm-container {
    max-width: var(--gm-container-max);
    margin: 0 auto;
    padding: 0 var(--gm-space-lg);
}

.site-content {
    min-height: calc(100vh - 200px);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    background-color: var(--gm-teal-dark);
    padding: var(--gm-space-lg) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--gm-shadow-md);
}

.site-header .gm-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--gm-space-md);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--gm-white);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--gm-orange-light);
}

.site-description {
    font-size: 0.875rem;
    color: var(--gm-cyan-light);
    margin: 0;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--gm-space-sm);
}

.main-navigation a {
    display: block;
    padding: var(--gm-space-sm) var(--gm-space-md);
    color: var(--gm-white);
    font-weight: 500;
    border-radius: var(--gm-radius-md);
    transition: all var(--gm-transition-fast);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: var(--gm-orange-amber);
    color: var(--gm-white);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gm-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--gm-space-sm);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--gm-teal-deep);
        padding: var(--gm-space-lg);
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    background-color: var(--gm-teal-dark);
    color: var(--gm-cyan-light);
    padding: var(--gm-space-3xl) 0 var(--gm-space-xl);
    margin-top: var(--gm-space-3xl);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gm-space-2xl);
    margin-bottom: var(--gm-space-2xl);
}

.footer-widget h3 {
    color: var(--gm-white);
    font-size: 1.125rem;
    margin-bottom: var(--gm-space-lg);
    padding-bottom: var(--gm-space-sm);
    border-bottom: 2px solid var(--gm-orange-amber);
}

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

.footer-widget li {
    margin-bottom: var(--gm-space-sm);
}

.footer-widget a {
    color: var(--gm-cyan-light);
}

.footer-widget a:hover {
    color: var(--gm-orange-light);
}

.site-info {
    text-align: center;
    padding-top: var(--gm-space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.site-info a {
    color: var(--gm-orange-amber);
}

/* ==========================================================================
   Blog Post List (Index/Archive)
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--gm-space-xl);
    padding: var(--gm-space-3xl) 0;
}

.post-card {
    background-color: var(--gm-white);
    border-radius: var(--gm-radius-xl);
    box-shadow: var(--gm-shadow-md);
    overflow: hidden;
    transition: all var(--gm-transition-base);
}

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

.post-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--gm-transition-slow);
}

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

.post-card-content {
    padding: var(--gm-space-xl);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--gm-space-md);
    margin-bottom: var(--gm-space-md);
    font-size: 0.875rem;
    color: var(--gm-slate-teal);
}

.post-card-category {
    display: inline-block;
    padding: var(--gm-space-xs) var(--gm-space-sm);
    background-color: var(--gm-orange-amber);
    color: var(--gm-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--gm-radius-full);
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--gm-space-md);
    line-height: 1.4;
}

.post-card-title a {
    color: var(--gm-teal-dark);
}

.post-card-title a:hover {
    color: var(--gm-orange-amber);
}

.post-card-excerpt {
    color: var(--gm-slate-teal);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--gm-space-lg);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--gm-space-xs);
    font-weight: 600;
    color: var(--gm-teal-dark);
}

.read-more:hover {
    color: var(--gm-orange-amber);
}

/* ==========================================================================
   Single Post Styles
   ========================================================================== */

.gm-blog-wrapper {
    font-family: var(--gm-font-primary);
    color: var(--gm-charcoal);
    background-color: var(--gm-cyan-very-light);
    line-height: 1.6;
}

/* Hero Section */
.gm-post-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.gm-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gm-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(30, 107, 140, 0.95) 0%,
        rgba(30, 107, 140, 0.7) 40%,
        rgba(30, 107, 140, 0.3) 100%
    );
}

.gm-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--gm-teal-deep) 0%,
        var(--gm-teal-dark) 50%,
        var(--gm-teal-medium) 100%
    );
}

.gm-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: var(--gm-space-3xl) 0;
}

/* Categories */
.gm-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gm-space-sm);
    margin-bottom: var(--gm-space-lg);
}

.gm-category-tag {
    display: inline-block;
    padding: var(--gm-space-xs) var(--gm-space-md);
    background-color: var(--gm-orange-amber);
    color: var(--gm-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: var(--gm-radius-full);
    transition: background-color var(--gm-transition-fast);
}

.gm-category-tag:hover {
    background-color: var(--gm-orange-dark);
    color: var(--gm-white);
}

/* Post Title */
.gm-post-title {
    font-family: var(--gm-font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gm-white);
    line-height: 1.2;
    margin: 0 0 var(--gm-space-xl);
    max-width: 900px;
}

/* Post Meta */
.gm-post-meta {
    display: flex;
    align-items: center;
    gap: var(--gm-space-lg);
}

.gm-author-info {
    display: flex;
    align-items: center;
    gap: var(--gm-space-md);
}

.gm-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--gm-radius-full);
    border: 2px solid var(--gm-cyan-light);
    object-fit: cover;
}

.gm-author-details {
    display: flex;
    flex-direction: column;
    gap: var(--gm-space-xs);
}

.gm-author-name,
.gm-author-name a {
    font-weight: 600;
    color: var(--gm-white);
    text-decoration: none;
    transition: color var(--gm-transition-fast);
}

.gm-author-name a:hover {
    color: var(--gm-orange-light);
}

.gm-post-date {
    font-size: 0.875rem;
    color: var(--gm-cyan-light);
}

.gm-separator {
    margin: 0 var(--gm-space-sm);
    opacity: 0.6;
}

/* Main Content Area */
.gm-post-main {
    padding: var(--gm-space-3xl) 0;
}

.gm-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gm-space-3xl);
}

@media (min-width: 1024px) {
    .gm-content-grid {
        grid-template-columns: 1fr 340px;
    }
}

/* Article Styles */
.gm-article {
    background-color: var(--gm-white);
    border-radius: var(--gm-radius-xl);
    box-shadow: var(--gm-shadow-lg);
    overflow: hidden;
}

.gm-post-content {
    padding: var(--gm-space-2xl);
}

/* Content Typography */
.gm-post-content h2 {
    font-family: var(--gm-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gm-teal-dark);
    margin: var(--gm-space-2xl) 0 var(--gm-space-md);
    line-height: 1.3;
}

.gm-post-content h3 {
    font-family: var(--gm-font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gm-teal-dark);
    margin: var(--gm-space-xl) 0 var(--gm-space-md);
    line-height: 1.4;
}

.gm-post-content h4 {
    font-family: var(--gm-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gm-teal-dark);
    margin: var(--gm-space-lg) 0 var(--gm-space-sm);
}

.gm-post-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--gm-space-lg);
    color: var(--gm-charcoal);
}

.gm-post-content a {
    color: var(--gm-teal-medium);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--gm-transition-fast);
}

.gm-post-content a:hover {
    color: var(--gm-orange-amber);
}

.gm-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--gm-radius-lg);
    margin: var(--gm-space-xl) 0;
}

.gm-post-content blockquote {
    position: relative;
    margin: var(--gm-space-2xl) 0;
    padding: var(--gm-space-xl);
    padding-left: var(--gm-space-2xl);
    background-color: var(--gm-cyan-pale);
    border-left: 4px solid var(--gm-teal-dark);
    border-radius: 0 var(--gm-radius-lg) var(--gm-radius-lg) 0;
    font-style: italic;
    color: var(--gm-slate-teal);
}

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

.gm-post-content ul,
.gm-post-content ol {
    margin: var(--gm-space-lg) 0;
    padding-left: var(--gm-space-xl);
}

.gm-post-content li {
    margin-bottom: var(--gm-space-sm);
    line-height: 1.7;
}

.gm-post-content ul li::marker {
    color: var(--gm-orange-amber);
}

.gm-post-content ol li::marker {
    color: var(--gm-teal-dark);
    font-weight: 600;
}

.gm-post-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    background-color: var(--gm-cyan-pale);
    padding: 0.125em 0.375em;
    border-radius: var(--gm-radius-sm);
    color: var(--gm-teal-deep);
}

.gm-post-content pre {
    background-color: var(--gm-charcoal);
    color: var(--gm-cyan-light);
    padding: var(--gm-space-lg);
    border-radius: var(--gm-radius-lg);
    overflow-x: auto;
    margin: var(--gm-space-xl) 0;
}

.gm-post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Page Links */
.gm-page-links {
    display: flex;
    align-items: center;
    gap: var(--gm-space-sm);
    margin-top: var(--gm-space-2xl);
    padding-top: var(--gm-space-xl);
    border-top: 1px solid var(--gm-cyan-light);
}

.gm-page-links-title {
    font-weight: 600;
    color: var(--gm-slate-teal);
}

.gm-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--gm-cyan-pale);
    color: var(--gm-teal-dark);
    border-radius: var(--gm-radius-md);
    font-weight: 600;
    transition: all var(--gm-transition-fast);
}

.gm-page-number:hover {
    background-color: var(--gm-teal-dark);
    color: var(--gm-white);
}

/* Post Footer */
.gm-post-footer {
    padding: var(--gm-space-xl) var(--gm-space-2xl);
    border-top: 1px solid var(--gm-cyan-light);
    background-color: var(--gm-cyan-very-light);
}

/* Tags */
.gm-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gm-space-sm);
    margin-bottom: var(--gm-space-lg);
}

.gm-tags-label {
    font-weight: 600;
    color: var(--gm-slate-teal);
    margin-right: var(--gm-space-sm);
}

.gm-tags a {
    display: inline-block;
    padding: var(--gm-space-xs) var(--gm-space-md);
    background-color: var(--gm-white);
    color: var(--gm-teal-dark);
    font-size: 0.875rem;
    text-decoration: none;
    border: 1px solid var(--gm-cyan-medium);
    border-radius: var(--gm-radius-full);
    transition: all var(--gm-transition-fast);
}

.gm-tags a:hover {
    background-color: var(--gm-teal-dark);
    color: var(--gm-white);
    border-color: var(--gm-teal-dark);
}

/* Share Section */
.gm-share-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gm-space-md);
}

.gm-share-label {
    font-weight: 600;
    color: var(--gm-slate-teal);
}

.gm-share-buttons {
    display: flex;
    gap: var(--gm-space-sm);
}

.gm-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gm-white);
    color: var(--gm-teal-dark);
    border: 1px solid var(--gm-cyan-medium);
    border-radius: var(--gm-radius-md);
    cursor: pointer;
    transition: all var(--gm-transition-fast);
    text-decoration: none;
}

.gm-share-btn:hover {
    background-color: var(--gm-teal-dark);
    color: var(--gm-white);
    border-color: var(--gm-teal-dark);
    transform: translateY(-2px);
}

.gm-share-twitter:hover {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
}

.gm-share-linkedin:hover {
    background-color: #0077B5;
    border-color: #0077B5;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.gm-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--gm-space-xl);
}

/* Cards */
.gm-card {
    background-color: var(--gm-white);
    border-radius: var(--gm-radius-xl);
    box-shadow: var(--gm-shadow-md);
    padding: var(--gm-space-xl);
    border: 1px solid var(--gm-cyan-pale);
}

.gm-card-title {
    font-family: var(--gm-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gm-teal-dark);
    margin: 0 0 var(--gm-space-lg);
    padding-bottom: var(--gm-space-md);
    border-bottom: 2px solid var(--gm-cyan-light);
}

/* Author Card */
.gm-author-bio {
    text-align: center;
}

.gm-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--gm-radius-full);
    border: 3px solid var(--gm-cyan-light);
    margin-bottom: var(--gm-space-md);
}

.gm-bio-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gm-teal-dark);
    margin: 0 0 var(--gm-space-sm);
}

.gm-bio-text {
    font-size: 0.9375rem;
    color: var(--gm-slate-teal);
    line-height: 1.6;
    margin-bottom: var(--gm-space-lg);
}

/* Related Posts */
.gm-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-related-item {
    margin-bottom: var(--gm-space-md);
}

.gm-related-item:last-child {
    margin-bottom: 0;
}

.gm-related-link {
    display: flex;
    gap: var(--gm-space-md);
    text-decoration: none;
    padding: var(--gm-space-sm);
    margin: calc(var(--gm-space-sm) * -1);
    border-radius: var(--gm-radius-md);
    transition: background-color var(--gm-transition-fast);
}

.gm-related-link:hover {
    background-color: var(--gm-cyan-pale);
}

.gm-related-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--gm-radius-md);
    overflow: hidden;
}

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

.gm-related-info {
    flex: 1;
    min-width: 0;
}

.gm-related-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gm-teal-dark);
    margin: 0 0 var(--gm-space-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--gm-transition-fast);
}

.gm-related-link:hover .gm-related-title {
    color: var(--gm-orange-amber);
}

.gm-related-date {
    font-size: 0.8125rem;
    color: var(--gm-slate-teal);
}

/* Newsletter Card */
.gm-newsletter-card {
    background: linear-gradient(135deg, var(--gm-teal-dark) 0%, var(--gm-teal-deep) 100%);
    border: none;
    text-align: center;
}

.gm-newsletter-card .gm-card-title {
    color: var(--gm-white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.gm-newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--gm-orange-amber);
    color: var(--gm-white);
    border-radius: var(--gm-radius-full);
    margin-bottom: var(--gm-space-md);
}

.gm-newsletter-text {
    font-size: 0.9375rem;
    color: var(--gm-cyan-light);
    margin-bottom: var(--gm-space-lg);
}

.gm-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--gm-space-sm);
}

/* ==========================================================================
   Buttons & Inputs
   ========================================================================== */

.gm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--gm-space-md) var(--gm-space-xl);
    background-color: var(--gm-orange-amber);
    color: var(--gm-white);
    font-family: var(--gm-font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--gm-radius-lg);
    cursor: pointer;
    transition: all var(--gm-transition-fast);
}

.gm-btn-primary:hover {
    background-color: var(--gm-orange-dark);
    color: var(--gm-white);
    transform: translateY(-1px);
    box-shadow: var(--gm-shadow-md);
}

.gm-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--gm-space-sm) var(--gm-space-lg);
    background-color: var(--gm-white);
    color: var(--gm-teal-dark);
    font-family: var(--gm-font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--gm-teal-dark);
    border-radius: var(--gm-radius-lg);
    cursor: pointer;
    transition: all var(--gm-transition-fast);
}

.gm-btn-secondary:hover {
    background-color: var(--gm-cyan-pale);
    color: var(--gm-teal-dark);
}

.gm-input-field {
    width: 100%;
    padding: var(--gm-space-md);
    font-family: var(--gm-font-primary);
    font-size: 0.9375rem;
    color: var(--gm-charcoal);
    background-color: var(--gm-white);
    border: 2px solid transparent;
    border-radius: var(--gm-radius-lg);
    outline: none;
    transition: border-color var(--gm-transition-fast);
}

.gm-input-field::placeholder {
    color: var(--gm-slate-teal);
}

.gm-input-field:focus {
    border-color: var(--gm-orange-amber);
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */

.gm-post-nav {
    background-color: var(--gm-white);
    border-top: 1px solid var(--gm-cyan-light);
    border-bottom: 1px solid var(--gm-cyan-light);
}

.gm-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .gm-nav-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.gm-nav-item {
    display: flex;
    flex-direction: column;
    padding: var(--gm-space-xl);
    text-decoration: none;
    transition: background-color var(--gm-transition-fast);
}

.gm-nav-item:hover {
    background-color: var(--gm-cyan-very-light);
}

.gm-nav-prev {
    border-bottom: 1px solid var(--gm-cyan-light);
}

@media (min-width: 768px) {
    .gm-nav-prev {
        border-bottom: none;
        border-right: 1px solid var(--gm-cyan-light);
    }
}

.gm-nav-next {
    align-items: flex-end;
    text-align: right;
}

.gm-nav-label {
    display: inline-flex;
    align-items: center;
    gap: var(--gm-space-xs);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gm-slate-teal);
    margin-bottom: var(--gm-space-sm);
}

.gm-nav-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gm-teal-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--gm-transition-fast);
}

.gm-nav-item:hover .gm-nav-title {
    color: var(--gm-orange-amber);
}

.gm-nav-empty {
    display: none;
}

@media (min-width: 768px) {
    .gm-nav-empty {
        display: block;
    }
}

/* ==========================================================================
   Comments Section
   ========================================================================== */

.gm-comments-section {
    padding: var(--gm-space-3xl) 0;
}

.gm-comments-wrapper {
    max-width: var(--gm-content-max);
    background-color: var(--gm-white);
    border-radius: var(--gm-radius-xl);
    box-shadow: var(--gm-shadow-md);
    padding: var(--gm-space-2xl);
}

/* WordPress Comments Styling */
.gm-comments-wrapper .comments-title,
.comments-title {
    font-family: var(--gm-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gm-teal-dark);
    margin: 0 0 var(--gm-space-xl);
    padding-bottom: var(--gm-space-md);
    border-bottom: 2px solid var(--gm-cyan-light);
}

.gm-comments-wrapper .comment-list,
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-comments-wrapper .comment,
.comment {
    padding: var(--gm-space-lg) 0;
    border-bottom: 1px solid var(--gm-cyan-pale);
}

.gm-comments-wrapper .comment:last-child,
.comment:last-child {
    border-bottom: none;
}

.gm-comments-wrapper .comment-author,
.comment-author {
    display: flex;
    align-items: center;
    gap: var(--gm-space-md);
    margin-bottom: var(--gm-space-md);
}

.gm-comments-wrapper .comment-author img,
.comment-author img {
    width: 48px;
    height: 48px;
    border-radius: var(--gm-radius-full);
    border: 2px solid var(--gm-cyan-light);
}

.gm-comments-wrapper .comment-author .fn,
.comment-author .fn {
    font-weight: 600;
    color: var(--gm-teal-dark);
}

.gm-comments-wrapper .comment-metadata,
.comment-metadata {
    font-size: 0.875rem;
    color: var(--gm-slate-teal);
}

.gm-comments-wrapper .comment-content p,
.comment-content p {
    margin: 0 0 var(--gm-space-md);
    line-height: 1.7;
}

.gm-comments-wrapper .reply a,
.reply a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gm-teal-medium);
    text-decoration: none;
    transition: color var(--gm-transition-fast);
}

.gm-comments-wrapper .reply a:hover,
.reply a:hover {
    color: var(--gm-orange-amber);
}

/* Comment Form */
.gm-comments-wrapper .comment-respond,
.comment-respond {
    margin-top: var(--gm-space-2xl);
    padding-top: var(--gm-space-xl);
    border-top: 2px solid var(--gm-cyan-light);
}

.gm-comments-wrapper .comment-reply-title,
.comment-reply-title {
    font-family: var(--gm-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gm-teal-dark);
    margin: 0 0 var(--gm-space-lg);
}

.gm-comments-wrapper .comment-form label,
.comment-form label {
    display: block;
    font-weight: 600;
    color: var(--gm-slate-teal);
    margin-bottom: var(--gm-space-sm);
}

.gm-comments-wrapper .comment-form input[type="text"],
.gm-comments-wrapper .comment-form input[type="email"],
.gm-comments-wrapper .comment-form input[type="url"],
.gm-comments-wrapper .comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: var(--gm-space-md);
    font-family: var(--gm-font-primary);
    font-size: 1rem;
    color: var(--gm-charcoal);
    background-color: var(--gm-cyan-very-light);
    border: 2px solid var(--gm-cyan-medium);
    border-radius: var(--gm-radius-lg);
    outline: none;
    transition: border-color var(--gm-transition-fast);
    margin-bottom: var(--gm-space-lg);
}

.gm-comments-wrapper .comment-form input:focus,
.gm-comments-wrapper .comment-form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--gm-teal-dark);
}

.gm-comments-wrapper .comment-form .submit,
.comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--gm-space-md) var(--gm-space-2xl);
    background-color: var(--gm-orange-amber);
    color: var(--gm-white);
    font-family: var(--gm-font-primary);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--gm-radius-lg);
    cursor: pointer;
    transition: all var(--gm-transition-fast);
}

.gm-comments-wrapper .comment-form .submit:hover,
.comment-form .submit:hover {
    background-color: var(--gm-orange-dark);
    transform: translateY(-1px);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gm-space-sm);
    padding: var(--gm-space-2xl) 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--gm-space-md);
    background-color: var(--gm-white);
    color: var(--gm-teal-dark);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--gm-cyan-medium);
    border-radius: var(--gm-radius-md);
    transition: all var(--gm-transition-fast);
}

.pagination .page-numbers:hover {
    background-color: var(--gm-teal-dark);
    color: var(--gm-white);
    border-color: var(--gm-teal-dark);
}

.pagination .page-numbers.current {
    background-color: var(--gm-orange-amber);
    color: var(--gm-white);
    border-color: var(--gm-orange-amber);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 767px) {
    .gm-post-hero {
        min-height: 40vh;
    }
    
    .gm-hero-content {
        padding: var(--gm-space-2xl) 0;
    }
    
    .gm-post-content {
        padding: var(--gm-space-lg);
    }
    
    .gm-post-footer {
        padding: var(--gm-space-lg);
    }
    
    .gm-share-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alignleft {
    float: left;
    margin-right: var(--gm-space-lg);
    margin-bottom: var(--gm-space-md);
}

.alignright {
    float: right;
    margin-left: var(--gm-space-lg);
    margin-bottom: var(--gm-space-md);
}

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

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

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--gm-slate-teal);
    text-align: center;
    padding: var(--gm-space-sm);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .gm-sidebar,
    .gm-post-nav,
    .gm-share-section,
    .gm-newsletter-card,
    .main-navigation {
        display: none;
    }
    
    .gm-content-grid {
        grid-template-columns: 1fr;
    }
    
    .gm-post-hero {
        min-height: auto;
        padding: var(--gm-space-xl) 0;
    }
    
    .gm-hero-image,
    .gm-hero-overlay,
    .gm-hero-gradient {
        display: none;
    }
    
    .gm-post-title,
    .gm-author-name,
    .gm-author-name a {
        color: var(--gm-charcoal);
    }
    
    body {
        background: white;
    }
}
