:root {
    --primary-color: #504e7a;
    --header-bg: #504e7a;
    --nav-bg: #f8f8f8;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --hover-color: #4A4A6E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #f5f5f5;
    line-height: 1.6;
    font-size: 15px;
}

body.menu-open {
    overflow: hidden;
}

/* Header */
.top-header {
    background-color: var(--header-bg);
    padding: 0.75rem 0;
    color: white;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.header-icons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.header-icon {
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.header-icon:hover {
    opacity: 0.75;
}

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Navigation */
.main-nav {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: relative;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu li a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

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

.submit-link {
    padding: 0.875rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s;
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li a {
        padding: 1rem 1.5rem;
        font-size: 15px;
    }

    .submit-link {
        display: none;
    }

    .nav-menu.active ~ .submit-link {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: 70vh;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* Category colors */
.cat-art { background-color: #E57373; }
.cat-automotive { background-color: #EF5350; }
.cat-business { background-color: #64B5F6; }
.cat-developer { background-color: #4FC3F7; }
.cat-download { background-color: #66BB6A; }
.cat-food { background-color: #FF7043; }
.cat-gaming { background-color: #4DB6AC; }
.cat-internet { background-color: #FFD54F; }
.cat-recreation { background-color: #F06292; }
.cat-shopping { background-color: #42A5F5; }
.cat-society { background-color: #EF5350; }
.cat-technology { background-color: #64B5F6; }

.category-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-links li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.category-links li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.category-links li:not(:last-child)::after {
    content: ", ";
}

/* Homepage Intro */
.homepage-intro {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.homepage-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.homepage-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Article List */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.article-card a {
    display: block;
    overflow: hidden;
}

.article-card a:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.article-card-body {
    padding: 1.5rem;
}

.article-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.article-card-body h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

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

.article-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.6;
}

/* Category Header */
.category-header {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.category-header .lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: var(--text-light);
    border-color: var(--border-color);
}

/* Article Detail */
.article-detail {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.article-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.article-detail .article-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Featured image styling */
.article-detail header img.img-fluid {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
    max-width: 100%;
}

/* Badge styling */
.article-detail .badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.article-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.article-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.article-content h2:first-child {
    margin-top: 1rem; /* First H2 should have less top margin */
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.article-content p {
    margin-bottom: 1rem;
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.article-content p.m-0 {
    margin-bottom: -2rem !important; /* Intro paragraph */
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Links styling */
.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
}

.article-content a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.article-content a[target="_blank"] {
    font-weight: 500;
}

/* Site URL styling */
.article-content .site-url {
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* Last update info */
.article-content p span:last-child {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Clear floats before next section */
.article-content h2::before {
    content: "";
    display: table;
    clear: both;
}

/* Add separator between sections */
.article-content h2:not(:first-child) {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.article-content li {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.article-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.article-tags .badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: normal;    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
}

.article-tags .badge:hover {
    background-color: var(--hover-color);
}

/* Breadcrumbs */
.breadcrumbs {
    background: white;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    align-items: center;
}

.breadcrumbs li {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Všechny položky kromě poslední se NESMÍ zkrátit */
.breadcrumbs li:not(:last-child) {
    flex-shrink: 0;
}

/* Pouze poslední položka se může zkrátit */
.breadcrumbs li:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

/* Oddělovač / mezi položkami */
.breadcrumbs li:not(:last-child)::after {
    content: " / ";
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Contact Page */
.contact-page {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-page .lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

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

.contact-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer p {
    color: var(--text-light);
    line-height: 1.6;
}

.footer a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

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

.footer-articles {
    list-style: none;
    padding: 0;
}

.footer-articles li {
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.footer-articles li:before {
    display: none;
}

.footer-articles a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.footer-articles a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Author Box */
.author-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.author-box-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

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

.author-avatar i {
    font-size: 4rem;
    color: var(--primary-color);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.author-title {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.author-bio {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.author-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.author-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.author-social-link i {
    font-size: 1rem;
}

/* Responsive Author Box */
@media (max-width: 768px) {
    .author-box-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .author-avatar i {
        font-size: 3rem;
    }

    .author-social {
        justify-content: center;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .nav-menu li a {
        padding: 0.75rem 0.875rem;
        font-size: 13px;
    }

    .submit-link {
        padding: 0.75rem 1.25rem;
        font-size: 13px;
    }

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

@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }

    .header-icon {
        font-size: 1.25rem;
        width: 28px;
        height: 28px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .article-detail h1 {
        font-size: 2rem;
    }

    .homepage-intro h2 {
        font-size: 1.5rem;
    }

    .category-item {
        flex-direction: column;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .category-header {
        padding: 1.5rem;
    }

    .category-header h1 {
        font-size: 1.75rem;
    }

    .pagination .page-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .main-content {
        padding: 1.5rem 0;
    }
}

/* Hero Slider */
.hero-slider-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.hero-slide-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4A4A6E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    padding: 3rem 2rem 2rem;
    color: white;
}

.hero-slide-caption h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: white;
}

.hero-slide-caption p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
}

.hero-slide-link:hover .hero-slide-image {
    transform: scale(1.05);
}

.hero-slide-image {
    transition: transform 0.5s ease;
}

/* Slider Navigation Buttons */
.hero-slider-prev,
.hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    opacity: 1;
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
    left: 1.5rem;
}

.hero-slider-next {
    right: 1.5rem;
}

/* Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Old carousel compatibility */
.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 8px;
    bottom: 2rem;
}

.carousel-caption h5 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 250px;
    }

    .hero-slide-wrapper {
        height: 250px;
    }

    .hero-slide-caption {
        padding: 2rem 1rem 1rem;
    }

    .hero-slide-caption h2 {
        font-size: 1.3rem;
    }

    .hero-slide-caption p {
        font-size: 0.9rem;
    }

    .hero-slider-prev,
    .hero-slider-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-slider-prev {
        left: 0.75rem;
    }

    .hero-slider-next {
        right: 0.75rem;
    }

    .hero-slider-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }

    .hero-slider-dot.active {
        width: 24px;
    }

    .carousel-item img {
        height: 250px;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h5 {
        font-size: 1.2rem;
    }
}

/* Article Item Layout */
.item-content-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.item-image {
    flex-shrink: 0;
}

.item-image img {
    max-width: 300px;
    height: auto;
}

.xsxs.m00 {
    flex: 1;
}

/* Article item layout */
.article-content h2.link-title {
    display: block;
    margin-bottom: 1rem;
    margin-right: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Small icon next to title */
.wim {
    display: none; /* Hide small 40px icons */
}

/* Article item container - each H2 section */
.article-content h2 + img.site-icon {
    display: block;
    margin: 1rem 0;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Line breaks in content */
.article-content br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

/* Desktop layout - image left, text right */
@media (min-width: 768px) {
    .article-content h2.link-title {
        clear: both;
    }

    .article-content h2 + img.site-icon {
        float: left;
        margin-right: 2rem;
        margin-bottom: 1.5rem;
        max-width: 280px;
        transition: transform 0.3s ease;
    }

    .article-content h2 + img.site-icon:hover {
        transform: scale(1.05);
    }

    .article-content h2 + img.site-icon + p {
        overflow: hidden; /* Create new block formatting context */
        min-height: 200px; /* Ensure text wraps around image */
    }

  
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .article-content h2 + img.site-icon {
        max-width: 220px;
    }
}

/* Mobile layout - stacked */
@media (max-width: 767px) {
    .article-content h2 + img.site-icon {
        width: 100%;
        max-width: 100%;
        float: none;
        margin-right: 0;
    }

    .article-content p {
        text-align: left; /* Left align on mobile for better readability */
    }

    .article-content p.m-0 {
        padding: 1rem;
        font-size: 1rem;
    }

    .article-content h2.link-title {
        font-size: 1.5rem;
    }
}

/* Share buttons */
.article-share {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: white;
}

.share-facebook {
    background-color: #1877f2;
}

.share-facebook:hover {
    background-color: #1664d8;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-twitter:hover {
    background-color: #1a8cd8;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-linkedin:hover {
    background-color: #006399;
}

.share-email {
    background-color: #6c757d;
}

.share-email:hover {
    background-color: #5a6268;
}

/* Responsive article items */
@media (max-width: 768px) {
    .item-content-wrapper {
        flex-direction: column;
    }

    .item-image img {
        max-width: 100%;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: hidden;
}

/* Global word breaking for mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    * {
        max-width: 100%;
    }

    img, video, iframe, embed, object {
        max-width: 100% !important;
        height: auto !important;
    }
}

.text-center {
    text-align: center;
}

.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 0.75rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.75rem;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 0.75rem;
}

@media (max-width: 768px) {
    .col-md-4,
    .col-md-6,
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 404 Error Page */
.error-404-page {
    min-height: 70vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.error-404-content {
    max-width: 600px;
}

.error-404-number {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0 rgba(91, 91, 126, 0.1);
}

.error-404-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-404-message {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Search form on 404 */
.error-404-search {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.error-404-search p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

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

/* Quick links */
.error-404-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.error-404-link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.error-404-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    text-align: center;
}

.error-404-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.error-404-link i {
    font-size: 2rem;
    color: var(--primary-color);
}

.error-404-link span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Illustration */
.error-404-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-404-illustration svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Responsive 404 */
@media (max-width: 992px) {
    .error-404-page {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }

    .error-404-number {
        font-size: 6rem;
    }

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

    .error-404-illustration {
        order: -1;
    }

    .error-404-illustration svg {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .error-404-page {
        padding: 2rem 0;
    }

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

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

    .error-404-link-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .error-404-link {
        flex-direction: row;
        padding: 1rem;
        text-align: left;
    }

    .error-404-link i {
        font-size: 1.5rem;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .error-404-illustration svg {
        max-width: 280px;
    }
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(91, 91, 126, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    padding: 2rem;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-overlay-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.search-overlay-close:hover {
    transform: rotate(90deg);
}

.search-overlay-form h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.search-overlay-input-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-overlay-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid white;
    border-radius: 50px;
    background: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.search-overlay-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.search-overlay-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-overlay-button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.search-overlay-button i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .search-overlay-content {
        width: 95%;
        padding: 1.5rem;
    }

    .search-overlay-form h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .search-overlay-input-group {
        flex-direction: column;
        gap: 1rem;
    }

    .search-overlay-input,
    .search-overlay-button {
        width: 100%;
        font-size: 1rem;
    }

    .search-overlay-close {
        font-size: 2rem;
    }
}

/* ===== RELATED ARTICLES SIDEBAR ===== */
.related-articles-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.related-articles-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.related-article-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.related-article-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-article-link:hover {
    transform: translateX(5px);
}

.related-article-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.related-article-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.comment-form-wrapper {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.comment-form-wrapper h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.comment-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.comment-author-info strong {
    display: block;
    color: var(--text-dark);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-text {
    padding-left: 66px;
    color: var(--text-dark);
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* ===== ENHANCED SEARCH PAGE ===== */
.search-header-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem 0 2.5rem;
    margin-bottom: 0;
    width: 100%;
}

.search-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.search-main-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.search-icon-large {
    font-size: 2.5rem;
    margin-right: 1rem;
    opacity: 0.9;
}

.search-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.search-page-form-enhanced {
    margin-top: 2rem;
}

.search-input-wrapper {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.search-input-enhanced {
    flex: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
}

.search-input-enhanced:focus {
    outline: none;
}

.search-button-enhanced {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.search-button-enhanced:hover {
    background: var(--secondary-color);
}

.search-stats {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 1.5rem 0;
}

.search-no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-no-results-icon {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.search-no-results h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.search-no-results p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.search-tips {
    max-width: 500px;
    margin: 2rem auto 0;
    text-align: left;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.search-tips h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.search-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.search-tips li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Responsive adjustments for search page */
@media (max-width: 768px) {
    .search-main-title {
        font-size: 1.8rem;
    }
    
    .search-icon-large {
        font-size: 1.8rem;
        margin-right: 0.5rem;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 12px;
        padding: 0.75rem;
    }
    
    .search-input-enhanced,
    .search-button-enhanced {
        border-radius: 8px;
        width: 100%;
    }
    
    .search-button-enhanced {
        padding: 1rem;
    }
}

/* ===== MODERN COMMENT FORM ===== */
.comment-form-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}

.comment-form-modern .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
}

.input-with-icon .form-control {
    padding-left: 2.75rem;
}

.comment-form-modern .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form-modern .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 91, 126, 0.1);
    outline: none;
}

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

.comment-form-modern .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.comment-form-modern .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 91, 126, 0.3);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===== RELATED ARTICLES SECTION ===== */
.related-articles-section {
    padding: 2rem 0;
}

/* ===== COMMENTS SECTION WRAPPER ===== */
.comments-section-wrapper {
    padding: 2rem 0;
    background: #f8f9fa;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.comments-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comments-list {
    margin-top: 2rem;
}

.comment-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.comment-item:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .comment-form-card {
        position: static;
        margin-top: 2rem;
    }
    
    .comments-section-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .comment-form-card {
        padding: 1.5rem;
    }
    
    .comments-section {
        padding: 1.5rem;
    }
}

/* ===== FIX COMMENTS SECTION WRAPPER ===== */
.comments-section-wrapper {
    padding: 3rem 0;
    background: #f8f9fa;
    margin-top: 3rem;
}

.comments-section-wrapper .container {
    max-width: 100%;
}

/* Fix button styling */
.btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
}

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

/* Override comment form button */
.comment-form-modern .btn-primary {
    background: var(--primary-color) !important;
    border: none !important;
    padding: 1rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.comment-form-modern .btn-primary:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(91, 91, 126, 0.3) !important;
    color: white !important;
}

/* Fix comments list spacing */
.comments-list {
    margin-top: 2rem;
}

.comment-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:first-child {
    padding-top: 0;
}

/* Responsive fixes */
@media (max-width: 991px) {
    .comment-form-card {
        position: static;
        margin-top: 2rem;
    }
    
    .comments-section-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* ===== COMMENTS VERTICAL LAYOUT FIX ===== */
.comment-form-card {
    position: static !important;
    max-width: 100%;
    margin-bottom: 2rem;
}

.comment-form-modern .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.comment-form-modern .row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.comment-form-modern .btn-lg {
    padding: 0.875rem 2rem !important;
}

.comments-section {
    margin-top: 0;
}

/* Container fix for full width background */
.comments-section-wrapper > .comment-form-card,
.comments-section-wrapper > .comments-section {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1200px) {
    .comments-section-wrapper > .comment-form-card,
    .comments-section-wrapper > .comments-section {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .comments-section-wrapper > .comment-form-card,
    .comments-section-wrapper > .comments-section {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .comments-section-wrapper > .comment-form-card,
    .comments-section-wrapper > .comments-section {
        max-width: 540px;
    }
    
    .comment-form-modern .btn-lg {
        width: 100%;
    }
}

/* ===== FINAL COMMENTS SECTION FIX ===== */
.comments-section-wrapper {
    margin-top: 3rem !important;
    padding: 0 !important;
    background: transparent !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.comments-section-wrapper .container {
    max-width: 100% !important;
}

.comment-form-card,
.comments-section {
    background: white !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.comment-form-card {
    margin-bottom: 2rem !important;
}

/* ===== COMMENT FORM FULL WIDTH WITH BACKGROUND ICONS ===== */
.comment-form-modern .input-with-icon {
    position: relative;
}

.comment-form-modern .input-with-icon i {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 1;
}

.comment-form-modern .input-with-icon textarea + i,
.comment-form-modern .input-with-icon i + textarea {
    top: 1rem;
}

.comment-form-modern .input-with-icon .form-control {
    padding-left: 1rem !important;
    padding-right: 3rem !important;
    width: 100%;
    position: relative;
    z-index: 2;
}

.comment-form-modern .input-with-icon textarea.form-control {
    padding-top: 0.75rem !important;
}

/* Remove old left icon styling */
.comment-form-modern .input-with-icon i {
    left: auto !important;
    transform: none !important;
}

/* Full width form groups */
.comment-form-modern .form-group {
    width: 100%;
}

.comment-form-modern .row {
    display: none;
}

/* ===== VERIFICATION PAGE BUTTON FIX ===== */
.card .btn-primary.btn-lg {
    padding: 1rem 3rem !important;
    font-size: 1.1rem !important;
    min-height: 60px !important;
    font-weight: 600 !important;
}

.card .btn-primary.btn-lg i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* ===== VERIFICATION PAGE BUTTON HOVER FIX ===== */
.card .btn-primary.btn-lg:hover {
    background: var(--secondary-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(91, 91, 126, 0.3) !important;
}

.card .btn-primary.btn-lg:active {
    transform: translateY(0) !important;
}

/* ===== FORCE WHITE TEXT ON BUTTON HOVER ===== */
.card .btn-primary.btn-lg:hover,
.card .btn-primary.btn-lg:hover i,
.card .btn-primary.btn-lg:focus,
.card .btn-primary.btn-lg:active {
    color: #ffffff !important;
    background: #6c757d !important;
}

.card .btn-primary.btn-lg {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* ===== FIX COMMENT FORM BUTTON TEXT SIZE ===== */
.comment-form-modern .btn-primary.btn-lg {
    font-size: 1.1rem !important;
    padding: 1rem 2rem !important;
    min-height: 60px !important;
}

.comment-form-modern .btn-primary.btn-lg i {
    font-size: 1.2rem !important;
}

/* ===== FIX COMMENT BUTTON HOVER - WHITE BACKGROUND ===== */
.comment-form-modern .btn-primary.btn-lg:hover {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(91, 91, 126, 0.3) !important;
}

.comment-form-modern .btn-primary.btn-lg:hover i {
    color: var(--primary-color) !important;
}

.comment-form-modern .btn-primary.btn-lg {
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}
.article-meta { margin-top: 1em}
.article-meta i:not(:first-child),.article-meta span:not(:first-child) { margin-left: 1em; }

@media (min-width: 900px) {
    /* Obal pro h2 + nsledujc odstavce */
    h2.link-title {
        clear: both;
    }
    
    /* Odstavec s obrzkem */
    h2.link-title + p {
        float: left;
        width: 30%;
        padding-right: 20px;
    }
    
    h2.link-title + p img.wim {
        display: none;
    }
    
    h2.link-title + p img.site-icon {
        width: 100%;
        height: auto;
    }
    
    /* Odstavec s textem */
    h2.link-title + p + p.m-0 {
        float: left;
        width: 70%;
    }
    
    /* Clearfix po sekci */
    h2.link-title + p + p.m-0 + p {
        clear: both;
    }
}

h2.link-title + p + p + p {
    text-align: right;
}
.article-content p a span:last-child, h2.link-title + p + p + p a {
 font-size: 1em !important; font-style: normal !important; font-weight: bold;
}

@media (max-width: 768px) {
.main-content {padding:0}

.container.mt-4x { margin-top:0; padding:0}
.article-detail {
    padding: 1rem;
    border-radius: 0;
    box-shadow: 0;
    overflow-x: hidden;
    max-width: 100vw;
}
.article-detail .badge {margin-bottom: 0.2em;
        display: inline-block;}
.article-detail header img.img-fluid {    margin-bottom: 0;}
.mb-4 {
    margin-bottom: 1rem;
}
.article-grid ,.related-articles-section {
    padding: 2rem 1rem;
}
    .category-header {
        margin: 0 1rem;
    }
.comment-form-card, .comments-section {padding: 1rem !important;
    border-radius: 0px !important;
  box-shadow: 0 !important;}

  .footer .col-md-4 { margin-bottom: 1em}

  /* Přetečení textu na mobilu */
  .article-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  .article-content h1,
  .article-content h2,
  .article-content h3,
  .article-content h4,
  .article-content h5,
  .article-content h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  .article-content p,
  .article-content li,
  .article-content div {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }

  .article-content a {
    word-break: break-all;
  }

  .article-content pre,
  .article-content code {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  .article-content img,
  .article-content video,
  .article-content iframe {
    max-width: 100% !important;
    height: auto !important;
  }
}