/* Global Box Sizing */
* {
    box-sizing: border-box;
}

/* Section Title */
.section-title {
  max-width: 75%;
  margin: 2rem auto;
  padding-left: 0;
  box-sizing: border-box;
}

.section-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #003366;
  margin: 0;
  margin-bottom: 1.5rem;
}

.section-title .server-count {
  font-size: 16px;
  color: #555;
  font-weight: normal;
  display: block;
  margin-top: 5px;
}

/* Filter Divider */
.filter-divider {
  border-top: 1px solid #ccc;
  margin: 25px 0 15px;
}

main.container {
  display: flex;
  gap: 2rem;
  max-width: 75%;
  margin: 2rem auto;
}

/* Filter Sidebar */
.filter-sidebar {
  flex: 0 0 320px;
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 20px;
  align-self: flex-start;
  height: auto;
}

.filter-sidebar h2 {
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  color: #004ecb;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group p {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group p i {
  color: #004ecb;
}

/* Dynamic Button Grid */
.filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
}

.filter-options button {
  height: 32px;
  font-size: 13px;
  border: 1px solid #ccc;
  background-color: #e9edf2;
  color: #222;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.filter-options button:hover {
  background-color: #d8e4f5;
  color: #004ecb;
  border-color: #004ecb;
}

.filter-options button.active {
  background-color: rgba(0, 112, 192, 0.2);
  color: #004ecb;
  font-weight: bold;
  border-color: #004ecb;
}

/* Filter Submit Button */
.filter-sidebar .filter-submit {
  margin-top: 30px;
  text-align: center;
}

.filter-sidebar .filter-submit button {
  background-color: #0070c0;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
}

.filter-sidebar .filter-submit button:hover {
  background-color: #005fa3;
}

/* Filter Toggle Button */
.filter-toggle-btn {
    display: none !important;
    width: 100%;
    padding: 10px;
    background-color: #0070c0;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.filter-toggle-btn:hover {
    background-color: #005fa3;
}

.filter-toggle-btn.active {
    background-color: #004ecb;
}

/* Mobile Filter Header */
.filter-header-mobile {
    /* Only specialized styles needed for mobile */
}

.filter-header-mobile-title {
    /* Style reused from previous h2 but for a div */
    font-size: 16px;
    font-weight: bold;
    color: #004ecb;
    margin-bottom: 5px;
}

/* Sort Bar */
.sort-bar {
  display: block;
  margin-bottom: 0.5rem;
  background: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.sort-options {
  width: 100%;
}

.sort-form {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.sort-actions,
.sort-orders {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-bar .sort-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.sort-bar .sort-option,
.sort-bar .sort-order {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.sort-bar .sort-option:hover,
.sort-bar .sort-order:hover {
  color: #0070c0;
}

.sort-bar .sort-option.active,
.sort-bar .sort-order.active {
  color: #0070c0;
  font-weight: bold;
}

.sort-bar .sort-divider {
  color: #ccc;
}

/* Pagination Bar */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  background: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.pagination-results {
  font-size: 14px;
  color: #333;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-nav button {
  font-size: 14px;
  color: #333;
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pagination-nav button:hover:not(.disabled) {
  color: #0070c0;
}

.pagination-nav button.disabled {
  color: #ccc;
  cursor: not-allowed;
}

.pagination-nav .pagination-divider {
  color: #ccc;
}

/* Product List */
.product-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-boxes {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.spec-box {
  background-color: #f0f0f0;
  color: #333;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ccc;
}

.product-card {
  display: flex;
  gap: 1.5rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  align-items: flex-start;
}

.product-card img {
  max-width: 100px;
  height: auto;
  border: 1px solid #eee;
  padding: 5px;
  border-radius: 4px;
}

.product-content {
  flex: 1;
}

.product-content h3 {
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 0.5rem;
  color: #003366;
}

.product-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.5rem 0;
  font-size: 14px;
}

.product-content li {
  margin-bottom: 0.25rem;
}

.product-tags {
  margin-top: 6px;
}

.product-tags span {
  display: inline-block;
  background: #e1ecf7;
  color: #003366;
  font-size: 12px;
  padding: 3px 6px;
  margin-right: 5px;
  border-radius: 4px;
}

/* Price Block */
.product-price {
  text-align: right;
  min-width: 160px;
}

.product-price .price {
  font-size: 18px;
  font-weight: bold;
  color: #0070c0;
}

.product-price .setup,
.product-price .contract {
  font-size: 13px;
  color: #555;
  margin-top: 3px;
}

.product-price .btn {
  display: inline-block;
  margin-top: 10px;
  background: #0070c0;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

.product-price .btn:hover {
  background: #005fa3;
}

/* Product Card Container */
.product-card-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    border: 1px solid #ddd;
    overflow: visible;
    background-color: #fff;
}

/* Modify existing .product-card to remove borders as container has them */
.product-card {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding-bottom: 0.5rem;
}

/* Details Buttons */
.details-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Dropdown Toggle */
.details-toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #555;
    padding: 8px 0;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: color 0.2s ease;
}

.details-toggle-btn:hover,
.details-toggle-btn:focus,
.details-toggle-btn.active {
    color: #0070c0;
    font-weight: bold;
    background-color: transparent;
}

.details-toggle-btn:hover span.btn-text {
    text-decoration: underline;
}

/* Details Table */
.product-details {
    border-top: 1px solid #eee;
    background-color: #fff;
    padding: 15px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #333;
}

.details-table th {
    text-align: left;
    padding: 8px;
    border-bottom: 2px solid #ddd;
    color: #003366;
    font-size: 15px;
}

.details-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.details-table tr:last-child td {
    border-bottom: none;
}

.details-table td:first-child {
    font-weight: bold;
    width: 40%;
    color: #555;
}

.details-table td:last-child {
    font-weight: normal;
    color: #000;
}

.details-table .section-header {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #003366;
    padding: 6px 8px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.details-table .explanation {
    font-style: italic;
    color: #666;
    font-size: 12px;
}

/* Responsive Layout (Tablet/Laptop) */
@media (min-width: 901px) and (max-width: 1400px) {
    main.container,
    .content-wrapper,
    .section-title,
    .content-section {
        max-width: 90%;
    }
}

/* Responsive Layout (Mobile) */
/* Content Sections */

.content-section {
    max-width: 75%;
    margin: 4rem auto;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.content-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 3rem 0;
}

.content-section h2 {
    color: #003366;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.content-section h3 {
    color: #004ecb;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 18px;
}

.content-section p {
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    font-size: 18px;
    color: #003366;
}

/* Use Case Table */
.use-case-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.use-case-table th, .use-case-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.use-case-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #003366;
}

.use-case-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Static Product Cards */
.static-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.static-product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.static-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.static-product-card h4 {
    color: #003366;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 18px;
}

.static-product-card .price {
    font-size: 22px;
    font-weight: bold;
    color: #0070c0;
    margin: 1rem 0;
}

.static-product-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.static-product-card li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.static-product-card li:last-child {
    border-bottom: none;
}

.static-product-card .btn {
    background: #0070c0;
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: block;
}

.static-product-card .btn:hover {
    background: #005fa3;
}

/* Image Styling */
.content-img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 1rem 0;
    box-shadow: none;
    border: none;
}

.img-float-right {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
    max-width: 250px;
}

.img-float-left {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
    max-width: 250px;
}

/* Spacer Section */
.section-spacer {
    width: 100%;
    margin: 4rem 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-align: center;
    background-color: #fff;
    padding: 3rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.spacer-content {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FAQ Accordion */
.faq-section {
    max-width: 100%;
    margin: 2rem 0 3rem 0;
}

.faq-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 2rem;
    font-weight: normal;
}

.faq-accordion-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 0 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.faq-question {
    background-color: transparent;
    color: #333;
    cursor: pointer;
    padding: 15px 0;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    font-weight: normal;
    transition: color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:focus {
    outline: none;
    background-color: transparent;
    color: #333;
}

.faq-question:hover, .faq-question.active {
    color: #0070c0;
    background-color: transparent;
}

.faq-question i {
    color: #555;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    color: #0070c0;
}

.faq-answer {
    padding: 0 0 15px 0;
    display: none;
    background-color: transparent;
    overflow: hidden;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    gap: 3rem;
    max-width: 75%;
    margin: 4rem auto;
    position: relative;
    align-items: flex-start;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    align-self: flex-start;
}

.toc-sidebar .sidebar-heading {
    font-size: 18px;
    color: #004ecb;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.toc-sidebar h3 {
    font-size: 18px;
    color: #004ecb;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.toc-sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-sidebar li {
    margin-bottom: 10px;
}

.toc-sidebar a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    display: block;
    transition: color 0.2s;
}

.toc-sidebar a:hover {
    color: #0070c0;
    font-weight: bold;
}

/* Main Content Area */
.main-content-text {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-content-text h2 {
    color: #003366;
    font-size: 24px;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.main-content-text h3 {
    color: #004ecb;
    font-size: 18px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.main-content-text p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.disclaimer-text {
    font-size: 0.75em;
    font-style: italic;
    color: #666;
    margin-top: 2rem;
}

@media (max-width: 900px) {
  main.container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    margin: 1rem auto;
  }

  /* Sidebar Mobile Adjustments */
  .filter-sidebar {
    width: 100%;
    flex: 0 0 auto;
    position: static !important;
    padding: 10px;
    margin-bottom: 1rem;
    min-height: auto;
  }

  /* Toggle Button Visibility */
  .filter-toggle-btn {
    display: flex !important;
  }

  /* Filter Content Visibility */
  .filter-content-wrapper {
    display: none;
    margin-top: 0;
    margin-bottom: 0;
  }

  .filter-content-wrapper.active {
    display: block !important;
    margin-top: 10px;
  }

  .filter-header-mobile {
      display: flex;
      flex-direction: column;
      gap: 5px;
  }

  .filter-header-mobile h2 {
      margin-bottom: 5px;
      border-bottom: none;
      font-size: 16px;
  }

  .filter-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .product-card img {
      display: none;
  }

  .product-content {
      width: 100%;
      text-align: center;
      margin-top: 5px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
  }

  .product-content h3 {
      width: 100%;
      margin-bottom: 10px;
  }

  /* Mobile Product Card Layout */
  .spec-boxes {
      width: 50%;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-content: flex-start;
      justify-content: center;
      gap: 5px;
      margin-bottom: 10px;
      padding-right: 5px;
  }

  .product-tags {
      width: 50%;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-content: flex-start;
      justify-content: center;
      gap: 5px;
      margin-bottom: 10px;
      padding-left: 5px;
  }

  .spec-box,
  .product-tags span {
      font-size: 11px;
      padding: 4px 6px;
      width: 100%;
      max-width: 100%;
      justify-content: center;
      display: flex;
      margin-right: 0;
      box-sizing: border-box;
  }

  /* Details Button Layout */
  .details-buttons {
      width: 100%;
      justify-content: center;
      margin-top: 5px;
  }

  .details-buttons {
      justify-content: center;
  }

  .product-price {
    text-align: center;
    margin-top: 1rem;
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 10px;
  }

  .sort-bar {
      display: none;
  }

  .pagination-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 5px;
  }

  .pagination-nav {
    width: 100%;
    justify-content: center;
  }

  .pagination-results {
    width: 100%;
  }

  /* Content Wrapper Adjustments */
  .content-wrapper {
      flex-direction: column;
      max-width: 100%;
      margin: 2rem auto;
      padding-left: 15px;
      padding-right: 15px;
  }

  /* Text Wrapping */
  .main-content-text {
      width: 100%;
      max-width: 100%;
      overflow-wrap: break-word;
      word-wrap: break-word;
      hyphens: auto;
      padding: 0.5rem; /* Reduced padding for mobile */
  }

  .toc-sidebar {
      display: none;
  }

  .section-title {
      max-width: 100%;
      margin: 1.5rem auto;
      padding-left: 15px;
      padding-right: 15px;
  }

  .content-section {
      max-width: 100%;
      padding: 1.5rem;
  }

  .img-float-right, .img-float-left {
      float: none;
      display: block;
      margin: 1rem auto;
      max-width: 80%;
  }

  .use-case-table {
      display: block;
      overflow-x: auto;
      width: 100%;
  }
}

/* Checklist Style */
ul.checklist {
    list-style: none;
    padding-left: 0;
}

ul.checklist li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

ul.checklist li::before {
    content: "\f00c"; /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #28a745; /* Green */
    position: absolute;
    left: 0;
    top: 2px;
}

/* Tooltip Styles */
.hvp-tooltip-icon {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 5px;
    color: #666;
}

.hvp-tooltip-content {
    visibility: hidden;
    width: 250px;
    background-color: #fff;
    color: #333;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: auto;
    right: -20px;
    margin-left: 0;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.9em;
    font-weight: normal;
    line-height: 1.4;
    border: 1px solid #eee;
}

.hvp-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 25px;
    left: auto;
    margin-left: 0;
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.hvp-tooltip-icon:hover .hvp-tooltip-content {
    visibility: visible;
    opacity: 1;
}
