/* Security Tools Slider Styles - Center Aligned Version */
.security-tools-slider {
  max-width: 960px;
  margin: 0 auto;
  padding: 0px;
}

/* Kategória Slider - Center Aligned Carousel */
.category-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.category-slider {
  width: 812px; /* Fix szélesség asztali nézeten */
  overflow: hidden;
  position: relative;
}

.category-buttons {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
  /* Padding eltávolítva - a pozicionálást a transform kezeli */
}

/* Asztali nézeten minden gomb fix szélesség */
@media (min-width: 769px) {
  .category-btn {
    width: 245px;
    flex-shrink: 0;
    margin-right: 16px;
    opacity: 0.6;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .category-btn.active {
    opacity: 1;
    transform: scale(1);
  }
  
  .category-btn:hover {
    opacity: 0.8;
  }
  
}

.eszkozok-bekezdes-desktop {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.4;    
}

.category-btn {
  background: none;
  border: 1px solid #666;
  color: #666;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}

.category-btn:last-child {
  margin-right: 0;
}

.category-btn:hover {
  border-color: #000B8C;
  color: #000B8C;
}

.category-btn.active {
  background: #000B8C;
  color: white;
  border-color: #585DFF;
}

.nav-arrow {
  background: none;
  border: none;
  color: #000B8C;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 15px;
  font-size: 24px;
  font-weight: bold;
  width: 44px;
  height: 44px;
}

.nav-arrow:hover {
  background: rgba(0, 11, 140, 0.1);
}

.nav-arrow:disabled {
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Eszközök Desktop Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.tools-grid.fade-out {
  opacity: 0;
}

.tool-card {
  background: white;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.tool-icon {
  height: 144px;
  width: auto;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.tool-title {
  background: none;
  border: 1px solid #000B8C;
  color: #000B8C;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  width: 100%;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.tool-title:hover,
.tool-title:focus {
  background: #000B8C;
  border-color:#585DFF;
  color: white;
  outline: none;
}

.tool-description {
  color: #555;
  line-height: 1.6;
  font-size: 14px;
}

/* Mobile Tabs */
.tools-tabs {
  display: none;
}

.tab-headers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 0;
  max-width:100%;
}

.tab-header {
  background: none;
  border: none;
  border-bottom: 0;
  padding: 20px 10px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.tab-header.active {
  background: white;
}

.tab-header-title {
  display: none;
}

.tab-content {
  max-width:100%;
}

.tab-content-item {
  background: white;
  padding: 20px;
  border-radius: 0;
  text-align: center;
}

.tab-content-item .tool-title {
  margin-bottom: 15px;
}

.tab-content-item .tool-description {
  margin-bottom: 0;
}

.tab-icon-img {
  height: 96px;
  width: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Tablet nézet */
@media all and (min-width: 768px) and (max-width: 980px) {
  .category-btn {
    font-size: 14px;
  }
  
  .category-slider {
    width: 100%;
    max-width: 812px;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .security-tools-slider {
    padding: 15px;
  }
  
  .tab-icon-img {
    height: 94px;
  }

  .nav-arrow {
    display: none;
  }

  .category-slider-wrapper {
    margin-bottom: 10px;
  }

  .category-slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .category-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    min-width: max-content;
    width: auto;
    margin-bottom:10px;
    transform: none !important;
  }

  .category-btn {
    padding: 10px 16px;
    font-size: 15px;
    flex-shrink: 0;
    width: auto;
    margin-right: 10px;
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  .tools-grid {
    display: none;
  }

  .tools-tabs {
    display: block;
  }
}

@media (max-width: 480px) {
  .tab-headers {
    gap: 0;
  }

  .tab-header {
    padding: 10px;
  }

  .tab-icon-img {
    height: 64px;
    width: auto !important;
    object-fit: contain;
    object-position: center;
    display: block;
    padding:0px;
  }

  .category-buttons {
    display: flex;
    gap: 8px;
  }

  .category-btn {
    padding: 8px 14px;
    font-size: 15px;
    flex-shrink: 0;
  }
}

/* Smooth scrollbar for category slider on mobile */
.category-slider::-webkit-scrollbar {
  height: 4px;
}

.category-slider::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.category-slider::-webkit-scrollbar-thumb {
  background: #000B8C;
  border-radius: 2px;
}

.category-slider::-webkit-scrollbar-thumb:hover {
  background: #000A75;
}