/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@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
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (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 */
/* Main container */
.coolnews-container {
  margin: 30px 0;
  padding: 0;
  background-color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
}

/* 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 */
.coolnews-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* Card styling */
.coolnews-card {
  overflow: hidden;
  transition: transform 0.3s ease;
  background-color: #fff;
  height: 100%;
}

.coolnews-card:hover {
  transform: translateY(-5px);
}

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

.coolnews-card-image {
  position: relative;
  overflow: hidden;
  height: 84px; /* Zmniejszone o 30% z 120px */
}

.coolnews-card-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

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

.coolnews-card-content {
  padding: 8px 5px;
  text-align: center;
}

.coolnews-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.coolnews-card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* 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);
  }
}

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

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

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

/* 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;
}
