/**
* 2007-2025 PrestaShop
*
* NOTICE OF 
*
* This source file is subject to the Academic Free  (AFL 3.0)
* that is bundled with this package in the file .txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/s/afl-3.0.php
* If you did not receive a copy of the  and are unable to
* obtain it through the world-wide-web, please send an email
* to @prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @   http://opensource.org/s/afl-3.0.php  Academic Free  (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

/* Main container */
.coolnews-container {
    background: #f8f9fa;
    padding: 30px 0;
    margin: 20px 0;
}

/* Header styling */
.coolnews-header {
    text-align: center;
    margin-bottom: 30px;
}

.coolnews-header-title {
    margin: 0;
    color: #333;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.coolnews-header-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #2fb5d2;
    width: 100px;
    margin: 0 auto;
}

.coolnews-header-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.coolnews-header-title a:hover {
    color: #2fb5d2;
    text-decoration: none;
}

/* Grid layout for cards - 5 kolumn jak na sklepikaria.pl */
.coolnews-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card styling - podobne do sklepikaria.pl */
.coolnews-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
}

.coolnews-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.coolnews-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.coolnews-card-image {
    position: relative;
    overflow: hidden;
    height: 120px;
    background: #f8f9fa;
}

.coolnews-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.coolnews-card-content {
    padding: 15px 10px;
    text-align: center;
}

.coolnews-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Usunięto niepotrzebne style dla elementów, których już nie używamy */

/* Empty state */
.coolnews-empty {
  text-align: center;
  padding: 30px;
  color: #777;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .coolnews-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 991px) {
    .coolnews-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .coolnews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .coolnews-card-title {
        font-size: 13px;
        min-height: 35px;
    }

    .coolnews-card-image {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .coolnews-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .coolnews-container {
        padding: 20px 0;
    }
}

/* Styles for news detail page */
.coolnews-detail {
  margin: 30px 0;
  padding: 0;
  background-color: #fff;
}

.coolnews-detail-header {
  margin-bottom: 30px;
  text-align: center;
}

.coolnews-detail-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin: 15px 0 0;
  line-height: 1.3;
}

.coolnews-detail-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

.coolnews-detail-content-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.coolnews-detail-image {
  margin-bottom: 30px;
  text-align: center;
}

.coolnews-detail-image img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 5px;
}

.coolnews-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.coolnews-detail-content p {
  margin-bottom: 20px;
}

.coolnews-detail-navigation {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.coolnews-detail-back {
  text-align: left;
}

.coolnews-detail-back a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #2fb5d2;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.coolnews-detail-back a i {
  margin-right: 8px;
}

.coolnews-detail-back a:hover {
  background-color: #1e7f8e;
}

@media (min-width: 768px) {
  .coolnews-detail-content-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .coolnews-detail-image {
    flex: 0 0 40%;
    margin-right: 30px;
    margin-bottom: 0;
  }
  
  .coolnews-detail-content {
    flex: 1;
  }
}

/* Styles for news list page */
.coolnews-list-header {
  margin-bottom: 30px;
  text-align: center;
}

.coolnews-list-header .coolnews-list-title {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.coolnews-list-header .coolnews-list-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #2fb5d2;
}

/* News list items */
.coolnews-list {
  margin-bottom: 30px;
}

.coolnews-list-item {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 30px;
}

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

.coolnews-list-item-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.coolnews-list-image {
  flex: 0 0 250px;
  margin-right: 30px;
}

.coolnews-list-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.coolnews-list-image a:hover img {
  transform: scale(1.03);
}

.coolnews-list-content {
  flex: 1;
}

.coolnews-list-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.coolnews-list-content .coolnews-list-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 15px;
  padding: 0;
  text-align: left;
}

.coolnews-list-content .coolnews-list-title:after {
  display: none;
}

.coolnews-list-content .coolnews-list-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.coolnews-list-content .coolnews-list-title a:hover {
  color: #2fb5d2;
  text-decoration: none;
}

.coolnews-list-excerpt {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.coolnews-list-readmore {
  margin-top: 15px;
}

.coolnews-list-readmore .btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  background-color: #2fb5d2;
  border-color: #2fb5d2;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.coolnews-list-readmore .btn:hover {
  background-color: #1e7f8e;
  border-color: #1e7f8e;
}

@media (max-width: 767px) {
  .coolnews-list-item-inner {
    flex-direction: column;
  }
  
  .coolnews-list-image {
    flex: 0 0 auto;
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

/* Stare style dla kompatybilności */
.coolnews-detail .coolnews-date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 20px;
}

.coolnews-detail .coolnews-image {
  margin-bottom: 20px;
  text-align: center;
}

.coolnews-detail .coolnews-image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.coolnews-detail .coolnews-content {
  line-height: 1.6;
  margin-bottom: 30px;
}

.coolnews-detail .coolnews-back {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* Styles for pagination */
.coolnews-pagination {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coolnews-pagination nav {
  margin-bottom: 15px;
}

.coolnews-pagination .pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.25rem;
  margin-bottom: 0;
  justify-content: center;
}

.coolnews-pagination .page-item {
  margin: 0 3px;
}

.coolnews-pagination .page-item:first-child {
  margin-left: 0;
}

.coolnews-pagination .page-item:last-child {
  margin-right: 0;
}

.coolnews-pagination .page-link {
  position: relative;
  display: block;
  padding: 0.6rem 0.9rem;
  line-height: 1.25;
  color: #2fb5d2;
  background-color: #fff;
  border: 1px solid #ddd;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.coolnews-pagination .page-link:hover {
  background-color: #f8f9fa;
  border-color: #ddd;
  color: #1e7f8e;
}

.coolnews-pagination .page-item.active .page-link {
  z-index: 1;
  color: #fff;
  background-color: #2fb5d2;
  border-color: #2fb5d2;
}

.coolnews-pagination .page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  cursor: auto;
  background-color: #fff;
  border-color: #ddd;
}

.coolnews-pagination-info {
  color: #6c757d;
  font-size: 0.9em;
  text-align: center;
  margin-top: 10px;
}

.coolnews-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.coolnews-slider {
    overflow: hidden;
    width: 100%;
}

.coolnews-track {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.coolnews-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    max-width: 350px;
}

.coolnews-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.coolnews-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.coolnews-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.coolnews-item:hover .coolnews-image img {
    transform: scale(1.05);
}

.coolnews-content {
    padding: 20px;
}

.coolnews-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.coolnews-item-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.coolnews-item-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}

.coolnews-read-more {
    background: #007cba;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.coolnews-read-more:hover {
    background: #005a87;
    text-decoration: none;
}

/* Poziomy ticker newsów */
.coolnews-ticker-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    margin: 20px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 50px;
    font-family: Arial, sans-serif;
}

.coolnews-ticker-header {
    background: #007cba;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 140px;
}

.coolnews-ticker-title {
    display: block;
}

.coolnews-ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: white;
    height: 50px;
}

.coolnews-ticker {
    display: flex;
    animation: scroll-left 60s linear infinite;
    height: 100%;
    align-items: center;
}

.coolnews-ticker-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 50px;
    flex-shrink: 0;
}

.coolnews-ticker-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.coolnews-ticker-link:hover {
    color: #007cba;
    text-decoration: none;
}

.coolnews-ticker-date {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 10px;
    font-weight: bold;
}

.coolnews-ticker-text {
    font-size: 14px;
    font-weight: normal;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Zatrzymanie animacji przy hover */
.coolnews-ticker-container:hover .coolnews-ticker {
    animation-play-state: paused;
}

/* Responsywność */
@media (max-width: 768px) {
    .coolnews-ticker-container {
        flex-direction: column;
        min-height: auto;
    }

    .coolnews-ticker-header {
        width: 100%;
        text-align: center;
        padding: 10px;
        min-width: auto;
    }

    .coolnews-ticker-wrapper {
        width: 100%;
        height: 40px;
    }

    .coolnews-ticker-text {
        font-size: 13px;
    }

    .coolnews-ticker-date {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .coolnews-ticker-wrapper {
        height: 35px;
    }

    .coolnews-ticker-text {
        font-size: 12px;
    }

    .coolnews-ticker-date {
        font-size: 9px;
        padding: 2px 4px;
        margin-right: 8px;
    }
}
