/*
Theme Name: Adwokat Bienias
Theme URI: https://adwokatbienias.pl
Author: Your Name
Author URI: https://yourwebsite.com
Description: Nowoczesny motyw WordPress dla Kancelarii Adwokackiej Krzysztof Bienias
Version: 2.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adwokatbienias
Tags: custom, law, professional, modern
*/

/* ==========================================================================
   1. CSS Variables & Reset
   ========================================================================== */

:root {
    --color-dark: #2b2d33;
    --color-dark-light: #3a3d45;
    --color-gold: #d4a843;
    --color-gold-dark: #b8932e;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-white: #ffffff;
    --color-text-muted: #999999;
    --color-bg: #ffffff;
    --color-bg-light: #f5f5f5;
    --color-border: #e0e0e0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-weight: 400;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* ==========================================================================
   2. Header
   ========================================================================== */

.site-header {
    background-color: var(--color-dark);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    gap: 40px;
}

.main-navigation {
    margin-left: auto;
}

.site-branding a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-text-white);
    letter-spacing: 2px;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    padding: 10px 0;
}

.main-navigation a:hover {
    color: var(--color-gold);
}

/* Submenu styles */
.main-navigation li {
    position: relative;
}

.main-navigation .menu-item-has-children > a::after {
    content: '▾';
    margin-left: 5px;
    font-size: 12px;
}

.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--color-dark-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: none;
    gap: 0;
    padding: 10px 0;
    z-index: 1000;
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.main-navigation ul ul li {
    display: block;
    width: 100%;
}

.main-navigation ul ul a {
    padding: 12px 20px;
    font-size: 13px;
    text-transform: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

.main-navigation ul ul a:hover {
    background-color: var(--color-gold);
    color: var(--color-dark);
    padding-left: 25px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-gold);
    white-space: nowrap;
    font-size: 15px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-white);
    transition: var(--transition);
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--color-dark);
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 45, 51, 0.95) 0%, rgba(43, 45, 51, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.hero-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
    position: relative;
    padding-left: 60px;
}

.hero-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 2px;
    background-color: var(--color-gold);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: white;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 400;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 600px;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 0;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-dark);
}

.btn-primary:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 168, 67, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-white);
    border: 2px solid var(--color-text-white);
}

.btn-secondary:hover {
    background-color: var(--color-text-white);
    color: var(--color-dark);
}

.btn-link {
    color: var(--color-dark);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-link:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   5. Section Labels & Headers
   ========================================================================== */

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
    position: relative;
    padding-left: 60px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 2px;
    background-color: var(--color-gold);
}

.section-header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-top: 20px;
    line-height: 1.7;
}

/* ==========================================================================
   6. Stats Section
   ========================================================================== */

.stats-section {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-number .plus {
    color: var(--color-gold);
    font-size: 0.8em;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
}

/* ==========================================================================
   7. About Section
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    border-radius: 0;
    box-shadow: none;
}

.about-content {
    padding: 0;
}

.section-title {
    margin-bottom: 30px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* ==========================================================================
   8. Services Section
   ========================================================================== */.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-top: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--color-border);
    transition: var(--transition);
    padding: 50px 35px;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-dark);
    font-weight: 400;
}

.service-excerpt {
    color: var(--color-text-light);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ==========================================================================
   7. Locations Section
   ========================================================================== */

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.location-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.location-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

/* ==========================================================================
   8. Contact Section
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-link {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: var(--font-body);
}

.footer-column p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 12px;
}

.footer-column a:hover {
    color: var(--color-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-dark);
}

.site-info {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ==========================================================================
   10. Static Page Styles
   ========================================================================== */

.page-header {
    background-color: var(--color-dark);
    color: white;
    padding-top: 120px;
    padding-bottom: 60px;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.page-content {
    padding: 80px 0;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.page-text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.page-text-content h1,
.page-text-content h2,
.page-text-content h3,
.page-text-content h4,
.page-text-content h5,
.page-text-content h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

.page-text-content h2 {
    font-size: 2rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-gold);
}

.page-text-content h3 {
    font-size: 1.5rem;
}

.page-text-content h4 {
    font-size: 1.25rem;
}

.page-text-content p {
    margin-bottom: 1.5em;
}

.page-text-content a {
    color: var(--color-gold);
    text-decoration: underline;
    transition: color 0.3s;
}

.page-text-content a:hover {
    color: var(--color-dark);
}

.page-text-content ul,
.page-text-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.page-text-content li {
    margin-bottom: 0.75em;
    line-height: 1.7;
}

.page-text-content ul li {
    list-style-type: disc;
}

.page-text-content ol li {
    list-style-type: decimal;
}

.page-text-content blockquote {
    border-left: 4px solid var(--color-gold);
    padding: 20px 30px;
    margin: 2em 0;
    background-color: #f8f8f8;
    font-style: italic;
    color: #666;
    font-size: 1.15rem;
}

.page-text-content blockquote p:last-child {
    margin-bottom: 0;
}

.page-text-content img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}

.page-text-content figure {
    margin: 2em 0;
}

.page-text-content figcaption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

.page-text-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

.page-text-content table th,
.page-text-content table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.page-text-content table th {
    background-color: var(--color-dark);
    color: white;
    font-weight: 600;
}

.page-text-content table tr:nth-child(even) {
    background-color: #f8f8f8;
}

.page-text-content hr {
    border: 0;
    height: 2px;
    background-color: #e5e5e5;
    margin: 3em 0;
}

.page-text-content code {
    background-color: #f8f8f8;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.page-text-content pre {
    background-color: #f8f8f8;
    padding: 20px;
    overflow-x: auto;
    margin: 2em 0;
}

.page-text-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.page-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.page-links-title {
    font-weight: 600;
    margin-right: 10px;
}

.page-links a,
.page-links > span {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background-color: #f8f8f8;
    color: var(--color-dark);
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.page-links a:hover,
.page-links > span {
    background-color: var(--color-gold);
    color: white;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.edit-link a {
    color: var(--color-gold);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.edit-link a:hover {
    color: var(--color-dark);
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .page-content {
        padding: 50px 0;
    }
    
    .page-layout {
        max-width: 100%;
    }
    
    .page-text-content {
        font-size: 1rem;
    }
    
    .page-text-content h2 {
        font-size: 1.5rem;
    }
    
    .page-text-content table {
        font-size: 0.9rem;
    }
    
    .page-text-content table th,
    .page-text-content table td {
        padding: 10px;
    }
}

/* ==========================================================================
   11. Animations
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .services-grid,
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        width: 100%;
        order: 4;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }

    /* Mobile submenu styles */
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0,0,0,0.2);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: block;
    }

    .main-navigation .submenu-open > ul {
        max-height: 500px;
        padding: 10px 0;
        display: block;
    }

    .main-navigation ul ul a {
        padding-left: 40px;
        font-size: 13px;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-navigation .menu-item-has-children > a::after {
        float: right;
        transition: transform 0.3s ease;
    }

    .main-navigation .submenu-open > a::after {
        transform: rotate(180deg);
    }

    .header-contact {
        display: none;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid,
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   12. Single Service Page
   ========================================================================== */

.service-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
    color: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.main-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.main-content h2,
.main-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.main-content ul,
.main-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.related-services {
    list-style: none;
}

.related-services li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.related-services li:last-child {
    border-bottom: none;
}

.related-services a {
    color: var(--color-text);
    transition: var(--transition);
}

.related-services a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* ==========================================================================
   13. Archive & Page Header
   ========================================================================== */

.page-header {
    background-color: var(--color-bg-light);
    padding: 80px 0;
    text-align: center;
}

.page-title {
    margin-bottom: 15px;
    color: var(--color-primary);
}

.page-description {
    font-size: 1.2rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   14. Contact Page
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h2 {
    margin-bottom: 30px;
}

.contact-info-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.contact-info-card h3 {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 15px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.info-item a {
    color: var(--color-text);
    font-size: 1.1rem;
}

.info-item a:hover {
    color: var(--color-primary);
}

.info-item p {
    margin: 0;
    color: var(--color-text-light);
}

/* ==========================================================================
   15. Blog Styles
   ========================================================================== */

/* Blog Cards */
.blog-card {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card:hover .post-title a {
    color: var(--color-gold);
}

.blog-card:hover .read-more {
    color: var(--color-dark);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card-content {
    padding: 30px;
}

.post-meta {
    margin-bottom: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold);
}

.post-meta a {
    color: var(--color-gold);
    text-decoration: none;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: var(--font-heading);
}

.post-title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--color-gold);
}

.post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--color-dark);
}

/* Single Post */
.post-header {
    background-color: var(--color-dark);
    color: white;
    padding-top: 120px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--color-dark);
    font-family: var(--font-heading);
}

.entry-content h2 {
    font-size: 2rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content a {
    color: var(--color-gold);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--color-dark);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-gold);
    padding-left: 30px;
    margin: 2em 0;
    font-style: italic;
    color: #666;
    font-size: 1.15rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}

.post-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.post-tags a {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px 5px 5px 0;
    background-color: #f8f8f8;
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s, color 0.3s;
}

.post-tags a:hover {
    background-color: var(--color-gold);
    color: white;
}

/* Author Box */
.author-box {
    margin-top: 50px;
    padding: 30px;
    background-color: #f8f8f8;
    border-left: 4px solid var(--color-gold);
}

.author-box .author-avatar {
    border-radius: 50%;
}

/* Post Navigation */
.post-navigation {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.post-navigation a {
    flex: 1;
    padding: 20px;
    background-color: #f8f8f8;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s, transform 0.3s;
    min-width: 200px;
}

.post-navigation a:hover {
    background-color: var(--color-gold);
    color: white;
    transform: translateY(-3px);
}

.nav-next {
    text-align: right;
}

/* Pagination */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    background-color: #f8f8f8;
    color: var(--color-dark);
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 0;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--color-gold);
    color: white;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #e5e5e5;
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--color-dark);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 30px;
    background-color: #f8f8f8;
}

.comment-author {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #999;
}

.comment-metadata a {
    color: #999;
    text-decoration: none;
}

.comment-content {
    line-height: 1.6;
}

.reply {
    margin-top: 15px;
}

.reply a {
    color: var(--color-gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    padding: 15px 40px;
    background-color: var(--color-gold);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s;
    justify-self: start;
}

.comment-form input[type="submit"]:hover {
    background-color: var(--color-dark);
}

/* Blog Grid Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .author-box > div {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   16. Additional Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    .content-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .service-hero {
        min-height: 300px;
    }
}
