/* ==========================================================================
   CUSTOM CSS - JOOMLA 5 RESPONSIVE ARTICLE LIST
   Clean, readable, optimized code
   ========================================================================== */

/* ==========================================================================
   CORE SETTINGS
   ========================================================================== */

/* Hide page builder edit mode */
#sp-page-builder .sp-pagebuilder-page-edit {
    display: none;
}

/* Typography */
.h1, h1 {
    font-size: 1.5rem;
}

.h3, h3 {
    font-size: 1.0rem;
}

/* Desktop container min-width */
.container, 
.container-lg, 
.container-md, 
.container-sm {
    min-width: 1260px;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */

#sp-top-bar .sp-module {
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}

/* ==========================================================================
   SOCIAL SHARE
   ========================================================================== */

.helix-social-share .helix-social-share-icon ul li div a:hover,
.helix-social-share .helix-social-share-icon ul li div a:focus {
    background: #dfdfdf;
    color: #fff;
}

/* ==========================================================================
   MAIN LAYOUT
   ========================================================================== */

#sp-main-body {
    padding: 50px 0;
}

.sppb-row-column {
    padding-right: 10px;
    padding-left: 10px;
}

/* Page builder content */
.sppb-addon-content {
    font-size: 14px;
}

.sppb-addon-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
}

.sppb-addon-content h4 {
    text-align: center;
    padding-bottom: 10px;
    margin-top: 10px;
    font-weight: 500;
}

/* Module title */
.sp-module .sp-module-title {
    font-size: 18px;
}
.sp-module {
  margin-left: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#sp-footer-a {
    background: #000;
    color: #fff;
    padding: 20px 10px 10px 10px;
}

#sp-footer {
    background: #000;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.breadcrumb {
    padding: 8px 30px;
}

/* ==========================================================================
   SIMPLE PORTFOLIO
   ========================================================================== */

.sp-simpleportfolio-item-category-title,
.sp-simpleportfolio-tags {
    display: none;
}

.sp-simpleportfolio-btns a.btn-zoom,
div.sp-simpleportfolio-btns a.btn-zoom {
    display: none !important;
}

.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-overlay-wrapper .sp-simpleportfolio-overlay {
    background: rgba(55, 54, 54, 0.31) !important;
}

.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-info h3 {
    font-size: 15px !important;
    line-height: 20px !important;
}

/* ==========================================================================
   ARTICLE - GENERAL
   ========================================================================== */

/* Article title */
h3.article-title a {
    color: #212529;
}

h3.article-title a:hover {
    text-decoration: underline;
}

/* Article image - with hover effect */
.article-image {
    border-radius: 6px;
}

.article-image-link {
    display: inline-block;
    overflow: hidden;
    position: relative;
}

.article-image-link img {
    transition: all 0.4s ease;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Dark overlay on hover */
.article-image-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 6px;
}

.article-image-link:hover::before {
    opacity: 1;
    border-radius: 6px;
}

/* Entry header */
.entry-header h2 a {
    color: #000;
    font-size: 16px;
}

.entry-header h2 a:hover,
.entry-header h2 a:active {
    text-decoration: underline;
}

/* Hide float-end elements */
.float-end {
    float: right !important;
    display: none;
}

/* Custom fields */
.fields-container {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.field-entry.cena .field-value {
    font-size: 18px;
    color: #242424;
    font-weight: 300;
}

.field-entry.cena .field-value::after {
    content: "\20AC";
    margin-left: 4px;
}

/* ==========================================================================
   ARTICLE SINGLE VIEW - TWO COLUMN LAYOUT
   ========================================================================== */

/* Wrapper for left + right columns */
.article-flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: flex-start;
    margin-top: 25px;
}

/* Left column (image) */
.article-left-text {
    flex: 1 1 40%;
}

/* Right column (title, text, cart, share buttons) */
.article-right-text {
    flex: 1 1 55%;
}

/* Responsive image */
.article-left-text img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Full width text below */
.article-full-text {
    margin-top: 35px;
    font-size: 0.95rem;
    line-height: 1.6em;
}

/* ==========================================================================
   LATEST NEWS MODULE
   ========================================================================== */

div.latestnews div small {
    display: none;
}

div.latestnews div a {
    margin-bottom: 10px;
}

/* ==========================================================================
   GOOGLE MAP
   ========================================================================== */

.google-map-big {
    height: 440px;
    width: 100%;
}

/* ==========================================================================
   CONTENT CART PLUGIN
   ========================================================================== */

div.article-right-text div.jlcontentcart {
    float: left;
}

.jlcc-input.jlcc-count {
    order: 1;
    width: 80px;
}

.jlcc-button.jlcc-primary {
    order: 2;
}

/* One row cart */
.jlcontentcart-onerow {
    display: inline-block;
}

.jlcontentcart-onerow a {
    display: inline-block;
    padding: 0px 5px !important;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    background-color: none !important;
    border: 0px solid #dee2e6 !important;
    border-radius: 0px !important;
}

.jlcontentcart-onerow a:hover {
    text-decoration: underline;
}

.content_cart.jlcontentcart {
    border: 0px solid #e5e3e3 !important;
    padding: 0px !important;
}

.jlcc-block-data {
    text-align: left !important;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

.jlcc-block-data > div {
    display: flex;
}

.jlcc-input {
    width: 100%;
    box-sizing: border-box;
}

/* Cart icon */
.sp-module-content div.content_cart.jlcontentcart.jlcontentcart-onerow a:before {
    content: "\f07a";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

/* Cart button */
.jlcc-button {
    display: inline-block;
    margin: 8px 0;
    padding: 5px 15px;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 400;
    line-height: 2;
    text-transform: uppercase;
    border: 1px solid #ee3b27 !important;
    background-color: #ee3b27 !important;
    color: #fff;
    cursor: pointer;
}

.jlcc-button:hover {
    background-color: #feffff !important;
    color: #ee3b27 !important;
    text-decoration: none;
    border: 1px solid #ee3b27 !important;
}

/* Cart info text */
.jlcc-info-text {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Cart consent switches */
.jlcc-consent-block {
    margin: 15px 0;
    padding: 10px;
    background-color: #fff;
    grid-column: 1 / -1;
    display: block;
}

.jlcc-consent-item {
    display: block;
    margin: 12px 0;
    border-radius: 4px;
}

.jlcc-consent-label {
    margin-bottom: 10px;
    font-size: 14px;
}

.jlcc-consent-label .required {
    color: #d9534f;
    font-weight: bold;
}

.jlcc-switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 34px;
}

.jlcc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.jlcc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.jlcc-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.jlcc-switch input:checked + .jlcc-slider {
    background-color: #28a745;
}

.jlcc-switch input:checked + .jlcc-slider:before {
    transform: translateX(46px);
}

.jlcc-slider-text {
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.jlcc-slider-text-off {
    right: 8px;
}

.jlcc-slider-text-on {
    left: 8px;
    display: none;
}

.jlcc-switch input:checked ~ .jlcc-slider-text-off {
    display: none;
}

.jlcc-switch input:checked ~ .jlcc-slider-text-on {
    display: block;
}

/* ==========================================================================
   COOKIE NOTICE
   ========================================================================== */

#redim-cookiehint,
#redim-cookiehint a {
    color: #0f0f0f !important;
}

#redim-cookiehint {
    background-color: #dfdfdf !important;
}

/* ==========================================================================
   RESPONSIVE ARTICLE LIST GRID
   Desktop to Mobile: 4 columns > 3 columns > 2 columns (minimum)
   ========================================================================== */

/* Desktop Large (1400px+) - 4 columns */
@media (min-width: 1400px) {
    .blog .items-row > div,
    .blog .row > div,
    .items-row > div[class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Desktop Standard (1200px - 1399px) - 4 columns */
@media (min-width: 1200px) and (max-width: 1399px) {
    .blog .items-row > div,
    .blog .row > div,
    .items-row > div[class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Desktop Small / Laptop (992px - 1199px) - 3 columns */
@media (min-width: 992px) and (max-width: 1199px) {
    .blog .items-row > div,
    .blog .row > div,
    .items-row > div[class*="col-"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Tablet (768px - 991px) - 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        min-width: unset;
        max-width: 100%;
    }
    
    .blog .items-row > div,
    .blog .row > div,
    .items-row > div[class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile Large / Small Tablet (576px - 767px) - 2 columns */
@media (min-width: 576px) and (max-width: 767px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        min-width: unset;
        max-width: 100%;
    }
    
    .blog .items-row > div,
    .blog .row > div,
    .items-row > div[class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile (< 576px) - 2 columns */
@media (max-width: 575px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        min-width: unset;
        max-width: 100%;
    }
    
    .blog .items-row > div,
    .blog .row > div,
    .items-row > div[class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Landscape mode - always 2 columns for better layout */
@media (max-width: 991px) and (orientation: landscape) {
    .blog .items-row > div,
    .blog .row > div,
    .items-row > div[class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR MOBILE
   ========================================================================== */

/* Mobile - single article layout (two column flex) */
@media (max-width: 768px) {
    .article-left-text,
    .article-right-text {
        flex: 1 1 100%;
    }
    
    .jlcc-block-data {
        grid-template-columns: 1fr;
    }
    
    #sp-main-body {
        padding: 30px 0;
    }
    
    .breadcrumb {
        padding: 8px 15px;
    }
}

/* ==========================================================================
   SINGLE ARTICLE VIEW - RESPONSIVE IMPROVEMENTS
   Default article template optimized for all screen sizes
   ========================================================================== */

/* Base article styling */
.com-content-article .article-info,
.com-content-article__info {
    margin-bottom: 15px;
}

.com-content-article .page-header h2,
.com-content-article .page-header h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Article images responsive */
.com-content-article img,
.item-page img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Article intro and full text */
.com-content-article .article-intro,
.com-content-article .article-fulltext,
.item-page p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   TABLET (768px - 991px) - Single Article
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991px) {
    
    /* Container adjustments */
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Article header */
    .com-content-article .page-header h2,
    .com-content-article .page-header h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    /* Article content */
    .com-content-article .article-intro,
    .com-content-article .article-fulltext {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Article images */
    .com-content-article img {
        max-width: 100%;
        height: auto;
    }
    
    /* Article flex layout - stack on tablet */
    .article-flex-wrap {
        gap: 20px;
    }
    
    .article-left-text {
        flex: 1 1 100%;
    }
    
    .article-right-text {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   MOBILE LARGE (576px - 767px) - Single Article
   ========================================================================== */
@media (min-width: 576px) and (max-width: 767px) {
    
    /* Container adjustments */
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Article header */
    .com-content-article .page-header h2,
    .com-content-article .page-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    /* Article content */
    .com-content-article .article-intro,
    .com-content-article .article-fulltext {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Article flex layout */
    .article-flex-wrap {
        gap: 15px;
        margin-top: 15px;
    }
    
    .article-left-text,
    .article-right-text {
        flex: 1 1 100%;
    }
    
    /* Article full text */
    .article-full-text {
        margin-top: 20px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   MOBILE (< 576px) - Single Article
   ========================================================================== */
@media (max-width: 575px) {
    
    /* Container adjustments */
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Main body padding */
    #sp-main-body {
        padding: 20px 0;
    }
    
    /* Article header */
    .com-content-article .page-header h2,
    .com-content-article .page-header h1 {
        font-size: 1.35rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    /* Article info block */
    .com-content-article .article-info,
    .com-content-article__info {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    /* Article content */
    .com-content-article .article-intro,
    .com-content-article .article-fulltext,
    .item-page p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Article flex layout */
    .article-flex-wrap {
        gap: 15px;
        margin-top: 15px;
    }
    
    .article-left-text,
    .article-right-text {
        flex: 1 1 100%;
    }
    
    /* Article full text */
    .article-full-text {
        margin-top: 20px;
        font-size: 0.9rem;
    }
    
    /* Article images - ensure proper sizing */
    .com-content-article img,
    .item-page img,
    .article-left-text img {
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* Social share buttons */
    .helix-social-share {
        margin: 15px 0;
    }
    
    .helix-social-share ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ==========================================================================
   VERY SMALL MOBILE (< 360px) - Single Article
   ========================================================================== */
@media (max-width: 359px) {
    
    /* Container */
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Article header */
    .com-content-article .page-header h2,
    .com-content-article .page-header h1 {
        font-size: 1.2rem;
    }
    
    /* Article content */
    .com-content-article .article-intro,
    .com-content-article .article-fulltext {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Article full text */
    .article-full-text {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   ARTICLE VIEW - LANDSCAPE MODE
   ========================================================================== */
@media (max-width: 991px) and (orientation: landscape) {
    
    /* Reduce vertical spacing in landscape */
    #sp-main-body {
        padding: 20px 0;
    }
    
    .article-flex-wrap {
        gap: 15px;
        margin-top: 15px;
    }
    
    .article-full-text {
        margin-top: 20px;
    }
}

/* ==========================================================================
   ARTICLE VIEW - TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    
    /* Make links easier to tap */
    .com-content-article a {
        padding: 2px 0;
        display: inline-block;
    }
    
    /* Remove hover effects on touch devices */
    .article-image-link:hover::before {
        opacity: 0;
    }
}