/*
Theme Name: Mediakon Blog
Description: Nowoczesny szablon WordPress z Bootstrap 5.3 - modern header design
Version: 4.5
Author: Mediakon
Text Domain: mediakon-blog
*/

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
}

/* Ensure all post listing pages have white background */
body.home,
body.blog,
body.archive,
body.search,
body.category,
body.tag {
    background-color: white;
}

body.home .site-main,
body.blog .site-main,
body.archive .site-main,
body.search .site-main,
body.category .site-main,
body.tag .site-main {
    background: white;
}

#latest-posts {
    background: white !important;
}

/* Header Styles - Modern Design */
.site-header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.navbar {
    padding: 1rem 0 !important;
    background: transparent !important;
    border: none !important;
}

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: #2c3e50 !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #2c3e50 !important;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
}

.brand-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.brand-icon:hover::before {
    opacity: 1;
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.brand-icon i {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
}

.navbar-nav {
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.75rem 1.2rem !important;
    border-radius: 6px !important;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.1), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    color: #2ecc71 !important;
    background: rgba(46, 204, 113, 0.05) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active,
.navbar-nav .current-menu-item > .nav-link {
    color: #2ecc71 !important;
    background: rgba(46, 204, 113, 0.1) !important;
}

/* Featured menu item (for highlighting specific items) */
.navbar-nav .nav-link.featured {
    color: #2ecc71 !important;
    font-weight: 700 !important;
    position: relative;
}

.navbar-nav .nav-link.featured::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2ecc71;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link.featured:hover::after {
    width: 80%;
}

.navbar-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle, .cart-toggle {
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.search-toggle:hover, .cart-toggle:hover {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    transform: scale(1.1);
}

.cart-toggle {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(44, 62, 80, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-form-overlay {
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-form-overlay {
    transform: translateY(0);
}

.search-input-overlay {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    border: none;
    border-radius: 12px;
    background: white;
    color: #2c3e50;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.search-input-overlay:focus {
    outline: none;
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.3);
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-close:hover {
    transform: rotate(90deg);
}

.search-submit-overlay {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-submit-overlay:hover {
    color: #2ecc71;
}

/* Mini Search Popup */
.mini-search-popup {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 1050;
    margin-top: 10px;
}

.mini-search-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mini-search-form {
    position: relative;
    padding: 15px;
}

.mini-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #f8f9fa;
    color: #2c3e50;
    outline: none;
    transition: all 0.3s ease;
}

.mini-search-input:focus {
    border-color: #2ecc71;
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.mini-search-input::placeholder {
    color: #6c757d;
}

.mini-search-submit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #2ecc71;
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-search-submit:hover {
    background: #27ae60;
    transform: translateY(-50%) scale(1.05);
}

/* Position mini search popup relative to navbar tools */
.navbar-tools {
    position: relative;
}

.navbar-toggler {
    border: none !important;
    padding: 0.5rem !important;
    font-size: 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: none !important;
    width: 24px;
    height: 18px;
    position: relative;
    transition: all 0.3s ease;
    background: #2c3e50;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2c3e50;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero Section - Modern Style */
.hero-section-modern {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section-modern::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Hero with featured image */
.hero-section-modern.with-featured-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section-modern.with-featured-image::before {
    background: rgba(44, 62, 80, 0.7);
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, #ecf0f1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-modern {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modern:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #2ecc71;
}

.breadcrumb-separator {
    color: #2ecc71;
    font-weight: 600;
}

.breadcrumb-current {
    color: white;
    font-weight: 600;
}

.hero-description {
    max-width: 600px;
    margin: 2rem auto 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.search-query {
    color: #2ecc71;
    font-weight: 700;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Logo Support */
.navbar-brand-wrapper {
    display: flex;
    align-items: center;
}

.navbar-brand-wrapper .custom-logo-link {
    display: flex;
    align-items: center;
}

.navbar-brand-wrapper .custom-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand-wrapper .custom-logo:hover {
    transform: scale(1.05);
}

/* Hero section - minimalist style - LEGACY (for compatibility) */
.hero-section {
    background: white;
    color: #333;
    padding: 80px 0;
    border-bottom: 1px solid #e9ecef;
}

.hero-content h1 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-content .btn {
    background: #2c3e50;
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.hero-content .btn:hover {
    background: #34495e;
}

/* Responsive styles for modern header */
@media (max-width: 991px) {
    .navbar-nav {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 0;
    }

    .navbar-nav .nav-link {
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .navbar-tools {
        margin-top: 1rem;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid #ecf0f1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .brand-sub {
        display: none;
    }

    .hero-breadcrumb {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mini-search-popup {
        width: 280px;
        right: -20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-input-overlay {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }

    .brand-main {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 0.75rem 0 !important;
    }

    .mini-search-popup {
        width: 250px;
        right: -10px;
    }
}

/* Override default styles from original theme */
.navbar-brand,
.navbar-nav .nav-link,
.navbar {
    border: none !important;
    border-bottom: none !important;
}

/* Remove old hero styles if they exist - keep for legacy compatibility */
.hero-section:not(.hero-section-modern) {
    display: none;
}

/* Single Post Layout Styles */
.single-post-main {
    background: white;
    padding: 2rem 0;
}

.single-post-article {
    background: white;
    margin-bottom: 2rem;
}

/* Featured Image - Container Width with rounded corners */
.single-featured-image {
    width: 100%;
    margin: 0 0 0 0;
    padding: 0;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 6px 6px 0 0;
}

/* Post Content Container */
.single-post-content {
    background: rgb(248, 249, 250);
    padding: 30px;
    margin: 0;
    border-radius: 0 0 6px 6px;
}

/* Post Header */
.single-entry-header {
    margin-bottom: 2rem;
}

.single-entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Post Meta */
.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.single-post-meta span {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.single-post-meta span i {
    margin-right: 0.5rem;
    color: #2ecc71;
}

.single-post-meta a {
    color: #6c757d;
    text-decoration: none;
}

.single-post-meta a:hover {
    color: #2ecc71;
}

/* Post Content */
.single-entry-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2rem;
}

.single-entry-content p {
    margin-bottom: 1.5rem;
}

.single-entry-content h2,
.single-entry-content h3,
.single-entry-content h4 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Post Tags */
.single-post-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.single-post-tags h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tag-item {
    display: inline-block;
    background: white;
    color: #6c757d;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

/* Author Bio */
.single-author-bio {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.author-bio-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 80px;
    height: 80px;
}

.author-name {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.author-description {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Post Navigation */
.single-post-navigation {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    gap: 1rem;
}

.nav-link:hover {
    border-color: #2ecc71;
    color: #2ecc71;
    text-decoration: none;
}

.nav-content {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.85rem;
    color: #2ecc71;
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: 500;
    color: inherit;
    font-size: 0.95rem;
}

/* Comments Wrapper */
.single-comments-wrapper {
    background: rgb(248, 249, 250);
    padding: 30px;
    margin-top: 0;
    border-radius: 6px;
    margin-bottom: 2rem;
}

/* Page Content (different from blog posts) */
body.page .site-main {
    background: white;
}

body.page .site-main .container {
    background: white;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post-main {
        padding: 1rem 0;
    }
    
    .single-post-content {
        padding: 20px;
    }
    
    .single-comments-wrapper {
        padding: 20px;
    }
    
    .single-entry-title {
        font-size: 2rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .author-bio-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Back to top button styles */
.back-to-top-modern {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top-modern.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-modern:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.header-hidden {
    transform: translateY(-100%);
}

.mobile-menu-open {
    overflow: hidden;
}

.search-open {
    overflow: hidden;
}

.brand-icon.hover-effect {
    transform: scale(1.05) rotate(5deg);
}

@media (max-width: 768px) {
    .back-to-top-modern {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Post cards - Modern style */
.post-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: white;
    transition: none;
    position: relative;
}

.post-card:hover {
    /* No hover effects to match modern minimalism */
}

.post-card .card-body,
.post-card .card-footer {
    border-left: 1px solid rgba(0, 0, 0, 0.005) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.005) !important;
}

.post-card .card-body {
    border-top: 1px solid rgba(0, 0, 0, 0.005) !important;
    border-bottom: none !important;
}

.post-card .card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.005) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.005) !important;
    background: white !important;
}

/* Read more link styling */
.read-more {
    color: rgb(46, 204, 113) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #27ae60 !important;
    text-decoration: none;
}

/* Extra specific border styling for post cards */
article.post-card .card-footer,
.post-card.card .card-footer,
.card.post-card .card-footer {
    border: 1px solid rgba(0, 0, 0, 0.075) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.075) !important;
}

article.post-card .card-body,
.post-card.card .card-body,
.card.post-card .card-body {
    border-left: 1px solid rgba(0, 0, 0, 0.075) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.075) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.075) !important;
    border-bottom: none !important;
}

.post-card .card-img-top {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.post-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

/* Date badge styles removed - dates now display above titles */

.post-card .card-body {
    padding: 1.25rem;
    border-bottom: 1px solid #f8f9fa;
}

.post-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card .card-title a {
    color: #333;
    text-decoration: none;
    display: block;
}

.post-card .card-title a:hover {
    color: #666;
}

.post-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #999;
    margin-bottom: 1rem;
}

/* Author section at bottom */
.post-card .card-footer {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.075) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.075) !important;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-card .author-info {
    display: flex;
    align-items: center;
}

.post-card .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.post-card .author-name {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.post-card .read-more {
    font-size: 0.85rem;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card .read-more:hover {
    color: #666;
}

/* Remove old styles */
.post-meta {
    display: none; /* Hide old meta, we'll use new layout */
}

.badge.bg-primary {
    background: white !important;
    color: #6c757d !important;
    border: none;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-excerpt {
    color: #999;
    line-height: 1.5;
    margin-bottom: 1rem !important;
}

.read-more-btn {
    display: none; /* Hide old button style */
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #2c3e50;
}

.navbar {
    border-bottom: 1px solid #e9ecef;
    background: white !important;
}

.navbar-nav .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #2c3e50;
}

/* Footer - Modern dark style */
.footer {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    color: #b8c5d1;
    border-top: none;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #2ecc71 50%, transparent 100%);
}

.footer .footer-content {
    margin-bottom: 3rem;
}

.footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #2ecc71;
}

.footer h6 {
    color: #2ecc71;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer p {
    color: #b8c5d1;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links li {
    margin-bottom: 0.75rem;
}

.footer .footer-links a {
    color: #b8c5d1;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer .footer-links a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #2ecc71;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

.footer .footer-links a:hover {
    color: #2ecc71;
    padding-left: 20px;
}

.footer .footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer .social-links {
    margin-top: 1.5rem;
}

.footer .social-links a {
    color: #b8c5d1;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 197, 209, 0.3);
    border-radius: 50%;
}

.footer .social-links a:hover {
    color: #ffffff;
    background: #2ecc71;
    border-color: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

.footer .footer-bottom {
    border-top: 1px solid rgba(184, 197, 209, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: #8994a3;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .post-card .card-img-top {
        height: 180px;
    }
    
    .post-card .card-body {
        padding: 1rem;
    }
    
    .post-card .card-title {
        font-size: 1.1rem;
    }
    
    .post-meta {
        font-size: 0.8rem;
    }
}

/* Single post and page styling - full width */
.site-main article {
    background: white;
    border: none;
    padding: 0rem;
    margin-bottom: 2rem;
    border-radius: 0;
}

.site-main .entry-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    font-family: Georgia, 'Times New Roman', serif;
}

.site-main .entry-content h1,
.site-main .entry-content h2,
.site-main .entry-content h3,
.site-main .entry-content h4,
.site-main .entry-content h5,
.site-main .entry-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.site-main .entry-content h1 {
    font-size: 2.2rem;
}

.site-main .entry-content h2 {
    font-size: 1.8rem;
}

.site-main .entry-content h3 {
    font-size: 1.4rem;
}

.site-main .entry-content p {
    margin-bottom: 1.5rem;
}

.site-main .entry-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e9ecef;
    margin: 2rem 0;
}

.site-main .entry-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
    background-color: transparent;
    padding: 1rem 0 1rem 2rem;
    font-size: 1.1rem;
    color: #666;
}

.site-main .entry-content ul,
.site-main .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.site-main .entry-content li {
    margin-bottom: 0.5rem;
}

.site-main .entry-title {
    color: #333;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.site-main .featured-image {
    margin: 0 0 3rem 0;
    text-align: center;
}

.site-main .featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: none;
}

/* Post meta styling */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: none;
    font-size: 0.9rem;
    color: #777;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-meta .badge {
    font-size: 0.9rem;
    padding: 0;
    background: transparent;
    color: #777;
    border: none;
    font-weight: normal;
}

/* Page navigation styling */
.page-links {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    text-align: center;
}

.page-links a {
    color: #2c3e50;
    text-decoration: none;
    margin: 0 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.page-links a:hover {
    background: #2c3e50;
    color: white;
}

/* Tags styling */
.post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.post-tags .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 0.85rem;
}

.post-tags .badge:hover {
    background: #2c3e50;
    color: white;
}

/* Author bio styling */
.author-bio {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #2c3e50;
}

.author-bio .author-avatar img {
    border-radius: 50%;
    border: 2px solid #e9ecef;
}

/* Post navigation styling */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.post-navigation .btn {
    padding: 12px 25px;
    background: #2c3e50;
    border: none;
    color: white;
    transition: background-color 0.2s ease;
}

.post-navigation .btn:hover {
    background: #34495e;
}

.nav-title {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #6c757d;
}

/* Responsive adjustments for single posts */
@media (max-width: 768px) {
    .site-main article {
        padding: 0rem;
        margin: 1rem;
    }
    
    .site-main .featured-image {
        margin: 0 0 2rem 0;
    }
    
    .site-main .featured-image img {
        height: 250px;
    }
    
    .site-main .entry-content {
        font-size: 0.95rem;
    }
    
    .site-main .entry-content h1 {
        font-size: 1.8rem;
    }
    
    .site-main .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .site-main .entry-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-links {
        padding: 1.5rem;
    }
    
    .author-bio {
        padding: 1.5rem;
    }
}

/* Footer search styling */
.footer .footer-search .form-control {
    background: white;
    border: 1px solid #dee2e6;
    color: #333;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.footer .footer-search .form-control:focus {
    background: white;
    border-color: #2ecc71;
    color: #333;
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

.footer .footer-search .form-control::placeholder {
    color: #6c757d;
}

.footer .footer-search .btn-primary {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer .footer-search .btn-primary:hover {
    background: linear-gradient(45deg, #27ae60, #229954);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 212, 170, 0.3);
}

/* Footer categories styling */
.footer-categories {
    margin-bottom: 1rem;
}

.footer-category-list {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-category-list li {
    margin-bottom: 0.75rem;
}

.footer-category-list a {
    color: #b8c5d1 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-left: 15px;
}

.footer-category-list a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #2ecc71;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

.footer-category-list a:hover {
    color: #2ecc71 !important;
    padding-left: 20px;
}

.footer-category-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-category-list small {
    color: #8994a3 !important;
    font-size: 0.8rem;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer .footer-content {
        margin-bottom: 2rem;
    }
    
    .footer-category-list {
        max-height: 150px;
    }
    
    .footer .social-links a {
        margin-right: 12px;
        font-size: 1rem;
    }
}

/* Sitemap page styling */
.sitemap-page {
    background: white;
    border: 1px solid #e9ecef;
    padding: 2rem;
}

.page-header .page-title {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-header .page-title i {
    color: #2c3e50;
}

.sitemap-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    height: 100%;
}

.section-title {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2c3e50;
    display: flex;
    align-items: center;
}

.section-title i {
    color: #2c3e50;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.sitemap-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sitemap-item:first-child {
    padding-top: 0;
}

.item-icon {
    background: #2c3e50;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.item-title:hover {
    color: #495057;
}

.item-date,
.item-count {
    color: #6c757d;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.item-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.item-categories {
    margin-top: 0.5rem;
}

.item-categories a {
    background: #2c3e50;
    color: white;
    padding: 2px 8px;
    text-decoration: none;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.sitemap-children {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 1rem;
}

.sitemap-children li {
    margin-bottom: 0.25rem;
}

.sitemap-children a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

.sitemap-children a:hover {
    color: #2c3e50;
}

.show-more {
    text-align: center;
}

.no-content {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: #e9ecef;
    margin: 0;
}

.sitemap-footer {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 2rem;
}

.sitemap-footer h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.search-form-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive sitemap */
@media (max-width: 768px) {
    .sitemap-page {
        padding: 1rem;
    }
    
    .sitemap-section {
        padding: 1rem;
    }
    
    .item-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
    }
    
    .sitemap-footer {
        padding: 1.5rem;
    }
}

/* Search form styling */
.search-form {
    margin-bottom: 1rem;
}

.search-form .form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Remove X clear button from search inputs */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Remove X from all search inputs */
.search-input-overlay::-webkit-search-cancel-button,
.mini-search-input::-webkit-search-cancel-button,
.footer-search input::-webkit-search-cancel-button,
.search-form input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.search-form .btn-primary {
    background: #2c3e50;
    border: none;
}

/* Comments styling */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Homepage category sections */
.category-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2rem;
}

.category-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-section h3 {
    color: #2ecc71 !important;
    border-bottom: 2px solid #2ecc71;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.category-section h3 i {
    color: #2ecc71;
}

/* Posts by category layout specific styling */
#posts-by-category .post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#posts-by-category .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Category description */
.category-section .text-muted.small {
    font-style: italic;
    margin-top: 0.25rem;
}

/* Post categories badges on images */
.post-categories {
    position: absolute;
    top: 8px;
    left: 8px;
    margin-bottom: 0;
    z-index: 2;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.post-categories a {
    color: #ffffff;
    text-transform: uppercase;
    padding: 4px 8px;
    background: #2ecc71;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
}

.post-categories a:hover {
    background: #27ae60;
    transform: translateY(-1px);
    color: #ffffff;
}

/* Ensure card image container has relative positioning */
.post-card .card-img-top {
    position: relative;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
}

.post-card .card-img-top img {
    transition: transform 0.3s ease;
}

.post-card:hover .card-img-top img {
    transform: scale(1.05);
}

.comment-list {
    margin: 0;
    padding: 0;
}

.comment-body {
    margin-bottom: 1.5rem;
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-awaiting-moderation {
    margin: 1rem 0;
}

.comment-reply-link {
    font-size: 0.875rem;
}

.comments-title {
    color: #2c3e50;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.5rem;
}

/* Comment navigation */
.comment-navigation {
    margin: 2rem 0;
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.comment-navigation .nav-links a {
    color: #2c3e50;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #2c3e50;
    transition: background-color 0.2s ease;
}

.comment-navigation .nav-links a:hover {
    background-color: #2c3e50;
    color: white;
}

/* Comment form styling */
.comment-form {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.comment-form .form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.comment-form .required {
    color: #dc3545;
}

/* Archive page styling */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.archive-description {
    margin-top: 1rem;
}

/* Back to top button - teal theme */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: linear-gradient(45deg, #27ae60, #229954);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* WordPress editor styles */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-quote {
    border-left: 4px solid #2c3e50;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
}

.wp-block-code {
    background-color: #f8f9fa;
    padding: 1rem;
    border: 1px solid #e9ecef;
    font-family: 'Courier New', monospace;
}

/* Utility classes */
.btn {
    border-radius: 0;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: #2c3e50;
    border-color: #2c3e50;
}

.btn-primary:hover {
    background: #34495e;
    border-color: #34495e;
}

.btn-outline-primary {
    color: #2c3e50;
    border-color: #2c3e50;
}

.btn-outline-primary:hover {
    background: #2c3e50;
    border-color: #2c3e50;
}