/* General styles */
.k3e-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.k3e-section {
  padding: 50px 0;
}

.k3e-section-title {
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: 700;
}

.k3e-section-content {
  margin-bottom: 30px;
}

/* Card styles */
.k3e-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.k3e-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.k3e-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

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

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

.k3e-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.k3e-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.k3e-card-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.k3e-card-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 15px;
}

.k3e-card-footer {
  margin-top: auto;
  padding-top: 15px;
}

/* Modal system */
.k3e-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.k3e-modal.active {
  display: block;
  opacity: 1;
}

.k3e-modal-container {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  background-color: #111;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  color: #fff;
}

.k3e-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.k3e-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.k3e-modal-close span {
  display: block;
  line-height: 1;
}

.k3e-modal-content {
  position: relative;
  min-height: 200px;
}

.k3e-modal-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(17, 17, 17, 0.8);
  z-index: 5;
}

.k3e-modal-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: k3e-spin 1s linear infinite;
}

@keyframes k3e-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Article styles */
.k3e-article {
  padding: 30px;
}

.k3e-article-header {
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.k3e-article-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 15px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.k3e-article-subtitle {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 15px;
  color: rgba(255, 255, 255, 0.8);
}

.k3e-article-tags {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 10px 15px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 4px;
}

.k3e-article-version {
  font-size: 14px;
  font-weight: 600;
  color: #64B5F6;
  margin: 0 0 15px;
  display: inline-block;
  background: rgba(33, 150, 243, 0.2);
  padding: 5px 10px;
  border-radius: 4px;
}

.k3e-article-status {
  margin: 0 0 15px;
}

.k3e-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.k3e-status-planning {
  background-color: rgba(33, 150, 243, 0.2);
  color: #90CAF9;
}

.k3e-status-in-progress {
  background-color: rgba(255, 152, 0, 0.2);
  color: #FFCC80;
}

.k3e-status-completed {
  background-color: rgba(76, 175, 80, 0.2);
  color: #A5D6A7;
}

.k3e-status-on-hold {
  background-color: rgba(121, 85, 72, 0.2);
  color: #BCAAA4;
}

.k3e-status-cancelled {
  background-color: rgba(244, 67, 54, 0.2);
  color: #EF9A9A;
}

/* Improved article content layout */
.k3e-article-content {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.k3e-article-text {
  flex: 1 1 400px;
  padding: 0 15px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.k3e-article-text p {
  margin-bottom: 15px;
}

.k3e-article-text a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.k3e-article-text a:hover {
  color: #444444;
  text-decoration: underline;
}

.k3e-article-media {
  flex: 1 1 400px;
  max-width: 600px;
  padding: 0 15px;
  margin-bottom: 30px;
  position: relative;
}

/* Enhanced Button styles */
.k3e-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: #ffffff;
  color: #000000;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  margin: 5px;
}

.k3e-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.6), 
    rgba(255, 255, 255, 0));
  transition: left 0.7s ease;
  z-index: -1;
}

.k3e-button:hover {
  background-color: #f8f8f8;
  color: #000000;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.k3e-button:hover::before {
  left: 100%;
}

.k3e-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.k3e-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  transform: scaleX(0.4);
  opacity: 0;
  transition: all 0.3s ease;
}

.k3e-button:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.k3e-article-buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Carousel styles */
.k3e-carousel {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  background-color: #000;
  width: 100%;
  max-width: 600px;
}

.k3e-carousel .carousel-inner {
  border-radius: 8px;
}

.k3e-carousel .carousel-item {
  background-color: #000;
  text-align: center;
  overflow: hidden;
}

.k3e-carousel .carousel-item img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 500px;
  margin: 0 auto;
}

.k3e-carousel .carousel-control-prev,
.k3e-carousel .carousel-control-next {
  width: 8%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.k3e-carousel:hover .carousel-control-prev,
.k3e-carousel:hover .carousel-control-next {
  opacity: 0.8;
}

.k3e-carousel .carousel-control-prev-icon,
.k3e-carousel .carousel-control-next-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  background-size: 20px 20px;
  background-position: center;
}

.k3e-carousel .carousel-indicators {
  margin-bottom: 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.k3e-carousel .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
}

.k3e-carousel .carousel-indicators li.active {
  background-color: #fff;
  width: 12px;
  height: 12px;
}

/* Fix min-height styling */
.k3e-carousel .carousel-item[style*="min-height"] {
  min-height: auto !important;
}

.k3e-featured-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Body class when modal is open */
body.k3e-modal-open {
  overflow: hidden;
}

/* Error message */
.k3e-error {
  color: #EF9A9A;
  padding: 15px;
  background-color: rgba(244, 67, 54, 0.1);
  border-radius: 4px;
  margin: 20px 0;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Responsive styles */
@media (max-width: 991px) {
  .k3e-article-content {
    flex-direction: column-reverse;
  }
  
  .k3e-article-media {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0 auto 30px;
  }
  
  .k3e-carousel {
    max-width: 100%;
  }
  
  .k3e-carousel .carousel-item img {
    max-height: 400px;
  }
}

@media (min-width: 992px) {
  .k3e-article-content {
    flex-wrap: nowrap;
  }
}

@media (max-width: 767px) {
  .k3e-modal-container {
    margin: 20px;
  }
  
  .k3e-article {
    padding: 20px;
  }
  
  .k3e-article-title {
    font-size: 24px;
  }
  
  .k3e-article-subtitle {
    font-size: 18px;
  }
  
  .k3e-carousel .carousel-item img {
    max-height: 300px;
  }
  
  .k3e-button {
    padding: 10px 20px;
    font-size: 12px;
  }
}

.sections-nav-info{
    display: flex;
  gap: 10px;
}