/* ! Config Table  */

.g-config-tbl-sidebar-btn-group{
display: flex;
    flex-direction: column;
    gap: 10px 0;
}

.g-config-tbl-activate-btn {
    background-color: #0e2b68;
    padding: 14px 12px !important;
    border: 1px solid #ccc;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    font-size: 14px;
    gap: 10px;
    cursor: pointer;
}


.g-config-tbl-activate-btn-img{
width: 40px;
}

.g-config-tbl-sidebar-btn-group{
background: #fbf8f8;
    padding: 20px 20px;
    border-radius: 10px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border: 1px solid #ccc;
    flex: 1 1 350px;
    height: fit-content;
    text-align: center;
min-width: 300px;
}


.g-config-tbl-search-box {
    margin-bottom: 20px;
    padding: 10px 16px !important;
    width: 100%;
    font-size: 16px;
    border: 1px solid #ccc;
    border-left: 4px solid #e32020;
    border-radius: 8px;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    color: #333;
}

.g-config-tbl-search-box::placeholder {
    color: #999;
    font-style: italic;
}

.g-config-tbl-search-box:focus {
    border-color: #0e2b68;
    box-shadow: 0 0 0 3px rgba(14, 43, 104, 0.15);
}
.g-config-show-toggle-btn {
    margin-top: 10px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(93deg, #830016 0%, #d70024 100%);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}
.g-config-show-toggle-btn:hover {
    background: linear-gradient(93deg, #a0001c 0%, #f0002d 100%);
    transform: translateY(-2px);
}




/* !! Recent Post */
.recent-posts-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.recent-posts-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    /* For positioning navigation buttons */
}

.recent-posts-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
}

/* Swiper Carousel Styles */
.recent-posts-carousel {
    width: 100%;
    height: 100%;
    padding-bottom: 50px;
    /* Space for pagination */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    /* Let card height be natural */
}

/* Post Card Styles */
.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure all cards in a row have the same height */
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.post-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Allow content to grow and fill space */
}

.post-card .card-category {
    display: inline-block;
    background-color: #eef2ff;
    color: #4338ca;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 12px;
    align-self: flex-start;
    /* Don't stretch the badge */
}

.post-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #111827;
    line-height: 1.4;
}

.post-card .card-description {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
    /* Limit text to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.post-card .card-footer {
    margin-top: auto;
    /* Push footer to the bottom */
    font-size: 0.85rem;
    color: #6b7280;
}

/* Carousel Navigation and Pagination */
.swiper-button-next,
.swiper-button-prev {
    color: #4338ca;
    top: 50%;
    transform: translateY(-70%);
    /* Adjust vertical alignment */
}

.swiper-button-prev {
    left: -10px;
}

.swiper-button-next {
    right: -10px;
}

.swiper-pagination-bullet-active {
    background: #4338ca;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recent-posts-section h2 {
        font-size: 2rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
        /* Hide arrows on mobile for a cleaner look */
    }
}

/* !! Recent Post */


/* --- Tooltip Container --- */
.g-tooltip-container {
  position: relative; /* Crucial for positioning the tooltip */
  display: inline-block;
  cursor: pointer;
}

/* --- The element that triggers the tooltip --- */
.g-tooltip-trigger {
  display: flex;
  align-items: center;
  gap: 8px; /* Space between the icon and text */
  color: #007bff; /* Example color */
  font-weight: bold;
}

/* --- The Tooltip Itself --- */
.g-tooltip {
  /* Initially hidden */
  visibility: hidden;
  opacity: 0;

  /* Tooltip Appearance */
  background-color: #2c3e50; /* A slightly softer black */
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: normal;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */


  /* Tooltip Positioning */
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position above the trigger */
  left: 50%;
  transform: translateX(-50%); /* Horizontally center the tooltip */
  white-space: nowrap; /* Prevents the text from wrapping */


  /* Fade-in Animation */
  transition: opacity 0.3s ease;

  /* Arrow pointing down */
  &::after {
    content: "";
    position: absolute;
    top: 100%; /* Position at the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
  }
}

/* --- Show the tooltip on hover --- */
.g-tooltip-container:hover .g-tooltip {
  visibility: visible;
  opacity: 1;
}

.category-wise-product-tbl-section{
    padding: 50px 3%;
}
.category-wise-product-tbl-cover{
    width:100%;
}


/* ============================================
CRITICAL BODY FIX - MUST BE ABSOLUTE FIRST
============================================ */

/* Force body to allow sticky - HIGHEST PRIORITY */
body {
 overflow: visible !important;
 overflow-x: hidden !important;
 overflow-y: visible !important;
}

html {
overflow-x: hidden !important;
}

.g-new-product-pricing-table-wrapper-title{
 text-align: center;
 font-size: 30px !important;
 font-family: var(--table-sections-main-font-family) !important;
 margin-bottom: 30px;
 }

/* Show More/Less Button Styling */
.filter-show-more-btn {
          width: 100%;
          background: white;
          border: 2px dashed #00234a;
          padding: 12px 18px;
          border-radius: 8px;
          font-size: 14px;
          font-weight: 600;
          color: #00234a;
          cursor: pointer;
          transition: all 0.3s ease;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 8px;
 margin-top: 10px;
}

.filter-show-more-btn:hover {
 background: #f0f7ff;
 border-color: #001a38;
 transform: translateY(-2px);
}

.show-more-icon {
 transition: transform 0.3s ease;
 font-size: 12px;
}

.filter-show-more-btn:hover .show-more-icon {
 transform: translateY(2px);
}

/* Location buttons container - NO SCROLL by default */
.location-buttons-container {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 max-height: none;
 overflow: visible;
 transition: all 0.3s ease;
}

/* When expanded, add scroll ONLY to location container */
.location-buttons-container.expanded {
 max-height: 280px;
 overflow-y: auto;
 overflow-x: hidden;
 padding-right: 8px;
 border: 1px solid #e0e0e0;
 border-radius: 8px;
 padding: 10px;
 background: #fafafa;
}

/* Custom scrollbar for location container ONLY */
.location-buttons-container.expanded::-webkit-scrollbar {
 width: 8px;
}

.location-buttons-container.expanded::-webkit-scrollbar-track {
 background: #f1f1f1;
 border-radius: 4px;
}

.location-buttons-container.expanded::-webkit-scrollbar-thumb {
 background: #00234a;
 border-radius: 4px;
}

.location-buttons-container.expanded::-webkit-scrollbar-thumb:hover {
 background: #001a38;
}

/* Make location filter buttons consistent */
.filter-location-btn {
 background: #ffffff;
 border: 2px solid #00234a;
 padding: 10px 18px;
 border-radius: 8px;
 font-size: 14px;
 font-weight: 500;
 color: #000000;
 cursor: pointer;
 transition: all 0.3s ease;
 white-space: nowrap;
 flex-shrink: 0;
}

.filter-location-btn:hover {
 background: #e8e8e8;
 transform: translateY(-2px);
}

.filter-location-btn.active {
 background: #00234a;
 color: white;
 border-color: #00234a;
}

/* Smooth transition for showing/hiding locations */
.location-item {
 transition: all 0.3s ease;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
 .filter-show-more-btn {
  padding: 10px 16px;
  font-size: 13px;
 }

 .location-buttons-container {
  gap: 8px;
 }

 .location-buttons-container.expanded {
  max-height: 250px;
  padding: 8px;
 }

 .filter-location-btn {
  font-size: 13px;
  padding: 9px 16px;
 }
}

@media (max-width: 480px) {
 .filter-show-more-btn {
  font-size: 12px;
  padding: 9px 14px;
 }

 .location-buttons-container.expanded {
  max-height: 200px;
 }

 .filter-location-btn {
  font-size: 12px;
  padding: 8px 14px;
 }
}

/* Location Search Bar Styling */
.location-search-wrapper {
 position: relative;
 width: 100%;
 margin-bottom: 12px;
}

.location-search-input {
 width: 100%;
 padding: 11px 40px 11px 15px;
 border: 1px solid #ddd;
 border-radius: 6px;
 font-size: 14px;
 color: #333;
 background: white;
 transition: all 0.3s ease;
 outline: none;
}

.location-search-input:focus {
 border-color: #00234a;
 box-shadow: 0 0 0 2px rgba(0, 35, 74, 0.1);
}

.location-search-input::placeholder {
 color: #aaa;
 font-size: 14px;
}

.location-search-icon {
 position: absolute;
 right: 15px;
 top: 50%;
 transform: translateY(-50%);
 color: #999;
 font-size: 14px;
 pointer-events: none;
}

/* Show More/Less Button Styling */
.filter-show-more-btn {
 width: 100%;
 background: white;
 border: 2px dashed #00234a;
 padding: 12px 18px;
 border-radius: 8px;
 font-size: 14px;
 font-weight: 600;
 color: #00234a;
 cursor: pointer;
 transition: all 0.3s ease;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 margin-top: 10px;
}

.filter-show-more-btn:hover {
 background: #f0f7ff;
 border-color: #001a38;
 transform: translateY(-2px);
}

.show-more-icon {
 transition: transform 0.3s ease;
 font-size: 12px;
}

.filter-show-more-btn:hover .show-more-icon {
 transform: translateY(2px);
}

/* Location buttons container - NO SCROLL by default */
.location-buttons-container {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 max-height: none;
 overflow: visible;
 transition: all 0.3s ease;
}

/* When expanded, add scroll ONLY to location container */
.location-buttons-container.expanded {
 max-height: 280px;
 overflow-y: auto;
 overflow-x: hidden;
 padding-right: 8px;
 border: 1px solid #e0e0e0;
 border-radius: 8px;
 padding: 10px;
 background: #fafafa;
}

/* Custom scrollbar for location container ONLY */
.location-buttons-container.expanded::-webkit-scrollbar {
 width: 8px;
}

.location-buttons-container.expanded::-webkit-scrollbar-track {
 background: #f1f1f1;
 border-radius: 4px;
}

.location-buttons-container.expanded::-webkit-scrollbar-thumb {
 background: #00234a;
 border-radius: 4px;
}

.location-buttons-container.expanded::-webkit-scrollbar-thumb:hover {
 background: #001a38;
}

/* Make location filter buttons consistent */
.filter-location-btn {
 background: #ffffff;
 border: 2px solid #00234a;
 padding: 10px 18px;
 border-radius: 8px;
 font-size: 14px;
 font-weight: 500;
 color: #000000;
 cursor: pointer;
 transition: all 0.3s ease;
 white-space: nowrap;
 flex-shrink: 0;
}

.filter-location-btn:hover {
 background: #e8e8e8;
 transform: translateY(-2px);
}

.filter-location-btn.active {
 background: #00234a;
 color: white;
 border-color: #00234a;
}

/* Smooth transition for showing/hiding locations */
.location-item {
 transition: all 0.3s ease;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
 .location-search-input {
  padding: 10px 35px 10px 12px;
  font-size: 13px;
 }

 .location-search-input::placeholder {
  font-size: 12px;
 }

 .location-search-icon {
  font-size: 13px;
  right: 12px;
 }

 .filter-show-more-btn {
  padding: 10px 16px;
  font-size: 13px;
 }

 .location-buttons-container {
  gap: 8px;
 }

 .location-buttons-container.expanded {
  max-height: 250px;
  padding: 8px;
 }

 .filter-location-btn {
  font-size: 13px;
  padding: 9px 16px;
 }
}

@media (max-width: 480px) {
 .location-search-input {
  padding: 9px 32px 9px 10px;
  font-size: 12px;
 }

 .location-search-icon {
  font-size: 12px;
 }

 .filter-show-more-btn {
  font-size: 12px;
  padding: 9px 14px;
 }

 .location-buttons-container.expanded {
  max-height: 200px;
 }

 .filter-location-btn {
  font-size: 12px;
  padding: 8px 14px;
 }
}

/* Remove overflow from all parent containers */
.primary-section,
.g-new-product-pricing-table-container,
.container,
.table-city,
.g-new-product-pricing-table-wrapper,
section {
 overflow: visible !important;
}

/* ============================================
STICKY FILTER LAYOUT - GUARANTEED WORKING
============================================ */

.filter-and-cards-flex-container {
 display: flex !important;
 gap: 30px !important;
 flex-direction: row !important; /* වම් පැත්තේ සිට පටන් ගන්න */
    justify-content: flex-start !important;
 position: relative !important;
 overflow: visible !important;
}


.filter-sticky-sidebar {
 position: -webkit-sticky !important;
 position: sticky !important;
 top: 100px !important;
 align-self: flex-start !important;
 width: 280px !important;
 flex-shrink: 0 !important;
 max-height: calc(100vh - 120px) !important;
 overflow-y: auto !important;
 overflow-x: hidden !important;
 z-index: 99 !important;

 /* Performance optimization */
 will-change: transform;
 transform: translateZ(0);
 backface-visibility: hidden;
}


.server-tables-main-content {
 flex: 1 !important;
 min-width: 0 !important;
 width: 100%;
}

/* Custom Scrollbar */
.filter-sticky-sidebar::-webkit-scrollbar {
 width: 8px;
}

.filter-sticky-sidebar::-webkit-scrollbar-track {
 background: #f1f1f1;
 border-radius: 4px;
}

.filter-sticky-sidebar::-webkit-scrollbar-thumb {
 background: #00234a;
 border-radius: 4px;
}

.filter-sticky-sidebar::-webkit-scrollbar-thumb:hover {
 background: #001a38;
}

/* ============================================
FILTER SECTION STYLING
============================================ */

.server-filter-section {
 background: #eaf2fd;
 padding: 30px;
 border-radius: 12px;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
 margin-bottom: 40px;
 border: 1px solid black;
 height: calc(100vh - 250px);
}

.filter-container {
 width: 100%;
}

.filter-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 30px;
 padding-bottom: 20px;
 border-bottom: 2px solid #00234a;
}

.filter-title {
 font-size: 23px;
 font-weight: 700;
 color: #1a1a1a;
 margin: 0;
}

.filter-reset-btn {
 background: #c12107;
 color: white;
 border: none;
 padding: 10px 15px;
 border-radius: 6px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.3s ease;
}

.filter-reset-btn:hover {
 background: #9a1805;
 transform: translateY(-2px);
}

.filter-group {
 margin-bottom: 25px;
 padding: 10px;
 background: white;
 border-radius: 15px;
}

.filter-group-title {
 font-size: 16px;
 font-weight: 600;
 color: #333;
 margin-bottom: 12px;
}

.filter-buttons-group {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
}

.filter-location-btn,
.filter-processor-btn,
.filter-core-btn,
.filter-brand-btn {
 background: #ffffff;
 border: 2px solid #00234a;
 padding: 10px 18px;
 border-radius: 8px;
 font-size: 14px;
 font-weight: 500;
 color: #000000;
 cursor: pointer;
 transition: all 0.3s ease;
}

.filter-location-btn:hover,
.filter-processor-btn:hover,
.filter-core-btn:hover,
.filter-brand-btn:hover {
 background: #e8e8e8;
 transform: translateY(-2px);
}

.filter-location-btn.active,
.filter-processor-btn.active,
.filter-core-btn.active,
.filter-brand-btn.active {
 background: #00234a;
 color: white;
 border-color: #00234a;
}

/* Price Range Slider */
.price-range-container {
 position: relative;
 padding: 40px 20px 20px;
}

.price-range-track {
 position: relative;
 width: 100%;
 height: 6px;
 background: #e0e0e0;
 border-radius: 3px;
}

.range-track-active {
 position: absolute;
 height: 100%;
 background: #00234a;
 border-radius: 3px;
}

.price-range-input {
 position: absolute;
 width: 100%;
 height: 6px;
 top: 40px;
 left: 0;
 pointer-events: none;
 -webkit-appearance: none;
 background: transparent;
}

.price-range-input::-webkit-slider-thumb {
 -webkit-appearance: none;
 appearance: none;
 width: 20px;
 height: 20px;
 border-radius: 50%;
 background: #00234a;
 cursor: pointer;
 pointer-events: auto;
 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-range-input::-moz-range-thumb {
 width: 20px;
 height: 20px;
 border-radius: 50%;
 background: #00234a;
 cursor: pointer;
 pointer-events: auto;
 border: none;
 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-bubble {
 position: absolute;
 top: 0;
 background: #a70c0c;
 color: white;
 padding: 6px 12px;
 border-radius: 6px;
 font-size: 14px;
 font-weight: 600;
 transform: translateX(-50%);
 white-space: nowrap;
}

/* ============================================
SERVER CARDS SECTION
============================================ */

.server-table-container {
 margin-bottom: 50px;
 width: 100%;
}

.server-location-title {
 font-size: 28px;
 font-weight: 700;
 color: #1a1a1a;
 margin-bottom: 30px;
 padding-bottom: 15px;
 border-bottom: 3px solid #00234a;
}

.server-cards-grid {
 display: flex;
 flex-direction: column;
 gap: 20px;
}

/* ============================================
HORIZONTAL CARD ITEM - BRAND BASED
============================================ */

.server-card-item {
 background: white;
 border-radius: 8px;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 overflow: hidden;
 transition: all 0.3s ease;
 border: 1px solid #e0e0e0;
 display: flex;
 flex-direction: row;
 min-height: 140px;
}

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

/* Left Sidebar - BRAND BASED with LOGO */
.server-card-sidebar {
 width: 80px;
 display: flex;
 align-items: center;
 justify-content: center;
 flex-shrink: 0;
 position: relative;
}

/* Intel Brand - Blue Background */
.server-card-item.brand-intel .server-card-sidebar {
 background: linear-gradient(135deg, #4cb8ff 0%, #0071c5 40%, #003f8c 100%);
}

/* AMD Brand - Green Background */
.server-card-item.brand-amd .server-card-sidebar {
 background: linear-gradient(135deg, #00c27a 0%, #009a66 40%, #121212 100%);
}

/* Ampere Brand - Green Background */
.server-card-item.brand-ampere .server-card-sidebar {
 background: linear-gradient(135deg, #00b140 0%, #008c32 100%);
}

/* Default/Other Brands - Gray */
.server-card-item.brand-other .server-card-sidebar {
 background: linear-gradient(135deg, #bfbfbf 0%, #3e3838 50%, #000000 100%);
}

/* Brand Logo Container */
.server-brand-logo {
 width: 100%;
 height: 100%;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 10px;
}

.server-brand-logo svg {
 display: block;
}

.server-brand-logo img {
 max-width: 55px;
 max-height: 55px;
 object-fit: contain;
 filter: brightness(0) invert(1);
}

/* Text fallback */
.server-brand-text {
 color: white;
 font-weight: 700;
 font-size: 16px;
 text-transform: uppercase;
 letter-spacing: 1px;
 writing-mode: vertical-rl;
 text-orientation: mixed;
}

/* Main Content Area */
.server-card-content {
 flex: 1;
 display: flex;
 flex-direction: row;
 padding: 20px;
 gap: 15px;
 align-items: center;
}

/* Price Section - Left side, LARGE */
.server-price-section {
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 min-width: 180px;
 padding-right: 10px;
 border-right: 1px solid #e0e0e0;
}

.server-price-large {
 font-size: 45px;
 font-weight: 800;
 line-height: 1;
}

/* Price color matches brand */
.server-card-item.brand-intel .server-price-large {
 color: #0071c5;
}

.server-card-item.brand-amd .server-price-large {
 color: #047750;
}

.server-card-item.brand-ampere .server-price-large {
 color: #00b140;
}

.server-card-item.brand-other .server-price-large {
 color: #616161;
}

.server-price-subtext {
 font-size: 11px;
 color: #666;
 margin-top: 5px;
 line-height: 1.4;
}

.server-location-name {
 display: flex;
 font-size: 12px;
 color: #999;
 margin-top: 5px;
 margin-left: 5px;
 justify-content: center;
 align-items: center;
 gap: 5px;
}
.flag-icon {
 width: 30px;
 height: 20px;
 object-fit: cover;
 /* border-radius: 50%; */
 vertical-align: middle;
 border-radius: 5px;
}

/* Processor Name Section */
.server-processor-section {
 flex: 1;
 display: flex;
 flex-direction: column;
 gap: 8px;
 min-width: 200px;
 max-width: 200px;
}

.server-cpu-badge {
 display: inline-block;
 color: white;
 padding: 4px 12px;
 border-radius: 12px;
 font-size: 10px;
 font-weight: 700;
 text-transform: uppercase;
 width: fit-content;
}

/* Badge colors match brand */
.server-card-item.brand-intel .server-cpu-badge {
 background: #979797;
}

.server-card-item.brand-amd .server-cpu-badge {
 background: #979797;
}

.server-card-item.brand-ampere .server-cpu-badge {
 background: #00b140;
}

.server-card-item.brand-other .server-cpu-badge {
 background: #616161;
}

.server-processor-name {
 font-size: 16px;
 font-weight: 700;
 color: #1a1a1a;
 margin: 0;
 line-height: 1.3;
}

/* Specs HORIZONTAL Grid */
.server-specs-horizontal {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 20px;
 flex: 2;
 padding: 0 20px;
}

@media (max-width: 1440px) {
 .server-specs-horizontal {
  display: grid
;
 grid-template-columns: repeat(2, 1fr);
 gap: 13px !important;
 flex: 2;
 }
}

.server-spec-column {
 display: flex;
 flex-direction: column;
 gap: 5px;
 text-align: center;
}

.spec-heading {
 font-size: 12px;
 font-weight: 700;
 color: #666;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.spec-detail {
 font-size: 15px;
 font-weight: 700;
 color: #333;
}

.spec-subtext {
 font-size: 10px;
 color: #999;
 margin-top: 2px;
}

/* Buy Button Section - Right side */
.server-buy-section {
 display: flex;
 align-items: center;
 padding-left: 0px;
}

.server-buy-btn {
 color: white;
 border: none;
 padding: 12px 24px;
 border-radius: 6px;
 font-size: 13px;
 font-weight: 700;
 cursor: pointer;
 transition: all 0.3s ease;
 text-transform: uppercase;
 letter-spacing: 1px;
 white-space: nowrap;
}

/* Button colors match brand */
.server-card-item.brand-intel .server-buy-btn {
 background: #0071c5;
}

.server-card-item.brand-intel .server-buy-btn:hover {
 background: #0054a6;
 transform: translateY(-2px);
 box-shadow: 0 4px 12px rgba(0, 113, 197, 0.4);
}

.server-card-item.brand-amd .server-buy-btn {
 background: #047750;
}

.server-card-item.brand-amd .server-buy-btn:hover {
 background: #036040;
 transform: translateY(-2px);
 box-shadow: 0 4px 12px rgba(4, 119, 80, 0.4);
}

.server-card-item.brand-ampere .server-buy-btn {
 background: #00b140;
}

.server-card-item.brand-ampere .server-buy-btn:hover {
 background: #008c32;
 transform: translateY(-2px);
 box-shadow: 0 4px 12px rgba(0, 177, 64, 0.4);
}

.server-card-item.brand-other .server-buy-btn {
 background: #616161;
}

.server-card-item.brand-other .server-buy-btn:hover {
 background: #424242;
 transform: translateY(-2px);
 box-shadow: 0 4px 12px rgba(97, 97, 97, 0.4);
}

/* ============================================
NO RESULTS
============================================ */

.no-results {
 text-align: center;
 padding: 60px 20px;
 background: #f9f9f9;
 border-radius: 12px;
 margin-top: 30px;
}

.no-results-content {
 max-width: 400px;
 margin: 0 auto;
}

.no-results-text {
 font-size: 18px;
 color: #666;
 margin-bottom: 20px;
}

.reset-filters-btn {
 background: #00234a;
 color: white;
 border: none;
 padding: 12px 30px;
 border-radius: 8px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.3s ease;
}

.reset-filters-btn:hover {
 background: #001a38;
 transform: translateY(-2px);
}

/* ============================================
RESPONSIVE DESIGN
============================================ */

/* Extra Large Screens */
@media (min-width: 1400px) {
 .filter-sticky-sidebar {
  width: 300px !important;
  top: 150px !important;
 }

 .filter-and-cards-flex-container {
  gap: 40px !important;
 }
}

@media (min-width: 1536PX) {
 .filter-sticky-sidebar {
  width: 240px ;
 
 }
}
/* Large Screens - Maintain Sticky */
@media (max-width: 1399px) and (min-width: 1200px) {
 .filter-sticky-sidebar {
  width: 280px !important;
  top: 100px !important;
 }

 .server-specs-horizontal {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
 }

 .server-price-large {
  font-size: 42px;
 }
}

/* Medium-Large Screens - Stack Vertically */
@media (max-width: 1284px) and (min-width: 992px) {
 .filter-and-cards-flex-container {
  flex-direction: column !important;
 }

 .filter-sticky-sidebar {
  position: static !important;
  width: 94% !important;
  max-height: none !important;
  margin-bottom: 30px;
 }

 .server-specs-horizontal {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
 }

 .server-card-content {
  gap: 15px;
 }

 .server-price-section {
  min-width: 150px;
 }

 .server-price-large {
  font-size: 40px;
 }
}

/* Tablet Screens */
@media (max-width: 991px) and (min-width: 768px) {
 .filter-and-cards-flex-container {
  flex-direction: column !important;
 }

 .filter-sticky-sidebar {
  position: static !important;
  width: 92% !important;
  max-height: none !important;
  margin-bottom: 30px;
 }

 .server-tables-main-content {
  margin: auto;
  margin-left: auto;
 }

 .server-card-item {
  flex-direction: column;
 }

 .server-card-sidebar {
  width: 100%;
  height: 70px;
 }

 .server-brand-text {
  writing-mode: horizontal-tb;
 }

 .server-card-content {
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
 }

 .server-price-section {
  border-right: none;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
  padding-right: 0;
  align-items: center;
  text-align: center;
  min-width: 100%;
 }

 .server-specs-horizontal {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 0;
 }

 .server-processor-section {
  align-items: center;
  text-align: center;
  max-width: 100%;
 }

 .server-buy-section {
  padding-left: 0;
  justify-content: center;
 }

 .server-buy-btn {
  width: 100%;
 }

 .filter-buttons-group {
  gap: 8px;
 }

 .filter-location-btn,
 .filter-processor-btn,
 .filter-core-btn,
 .filter-brand-btn {
  font-size: 13px;
  padding: 9px 16px;
 }
}

/* Mobile Screens */
@media (max-width: 767px) {
 .filter-and-cards-flex-container {
  flex-direction: column !important;
 }

 .filter-sticky-sidebar {
  position: static !important;
  width: 80% !important;
  max-height: none !important;
  margin-bottom: 20px;
 }



 .filter-title {
  font-size: 20px;
 }

 .filter-header {
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
 }

 .filter-reset-btn {
  width: 100%;
 }

 .filter-buttons-group {
  flex-direction: column;
  gap: 8px;
 }

 .filter-location-btn,
 .filter-processor-btn,
 .filter-core-btn,
 .filter-brand-btn {
  width: 100%;
  text-align: center;
 }

 .server-card-item {
  flex-direction: column;
 }

 .server-card-sidebar {
  width: 100%;
  height: 60px;
 }

 .server-brand-text {
  writing-mode: horizontal-tb;
  font-size: 14px;
 }

 .server-card-content {
  flex-direction: column;
  align-items: stretch;
  padding: 15px;
  gap: 12px;
 }

 .server-price-section {
  border-right: none;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 12px;
  padding-right: 0;
  align-items: center;
  text-align: center;
  min-width: 100%;
 }

 .server-price-large {
  font-size: 36px;
 }

 .server-processor-section {
  align-items: center;
  text-align: center;
  max-width: 100%;
  min-width: 100%;
 }


 .server-buy-section {
  padding-left: 0;
  justify-content: center;
 }

 .server-buy-btn {
  width: 100%;
 }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
 .filter-group-title {
  font-size: 14px;
 }

 .filter-location-btn,
 .filter-processor-btn,
 .filter-core-btn,
 .filter-brand-btn {
  font-size: 12px;
  padding: 8px 14px;
 }

 .server-location-title {
  font-size: 22px;
 }

 .server-price-large {
  font-size: 32px;
 }

 .server-processor-name {
  font-size: 14px;
 }

 .spec-heading {
  font-size: 11px;
 }

 .spec-detail {
  font-size: 13px;
 }

 .server-cpu-badge {
  font-size: 9px;
  padding: 3px 10px;
 }
}

.server-gpu-info {
 font-size: 12px;
 font-weight: 500;
 color: #c38700;
}


g-side-by-side-panel-container {
flex-direction: row-reverse;
 gap: 30px;
 justify-content: center;
}

@media screen and (max-width:1100px) {
 .g-side-by-side-panel-container {
  flex-wrap: wrap;
 }

 .g-side-by-side-panel-container {
  flex-direction: column-reverse;

 }


}

.category-wise-product-tbl-section{
 padding: 20px;
}

/* Configurable Bandwidth Badge */
.bandwidth-configurable-badge {
 display: inline-block;
 margin-left: 5px;
 color: #ff6b00;
 font-size: 14px;
 animation: pulse 2s infinite;
}

@keyframes pulse {
 0%, 100% { opacity: 1; }
 50% { opacity: 0.6; }
}

.bandwidth-configurable-badge i {
 vertical-align: middle;
}

/* Location Search Box */
.location-search-wrapper {
    margin-bottom: 10px;
}

.location-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.location-search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

/* Grid Layout (2 Columns) - UPDATED TO REMOVE SCROLL */
.location-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* තීරු 2ක් */
    gap: 10px;
    margin-bottom: 10px;
    
    /* Scroll Removed Here */
    max-height: none !important; 
    overflow-y: visible !important;
    overflow-x: hidden;
    padding-right: 0; 
    transition: all 0.3s ease; 
}

/* Scrollbar Styling Removed for this container as it's no longer scrolling */

/* Button එක click කල විට සම්පුර්ණ ලිස්ට් එක පෙන්වීමට */
.location-grid-container.expanded-view {
    max-height: none; 
    overflow-y: visible;
}

/* Location Buttons */
.filter-location-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 5px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-location-btn:hover {
    background: #f4f4f4;
    border-color: #ccc;
}

.filter-location-btn.active {
    background-color: #00234a; /* Active color */
    color: #ffffff;
    border-color: #00234a;
}

/* Show All Button (Dashed Border style) */
.filter-show-more-btn {
    width: 100%;
    background: #fff;
    border: 1px dashed #999;
    color: #555;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    transition: 0.3s;
    margin-top: 5px;
}

.filter-show-more-btn:hover {
    background: #f9f9f9;
    color: #000;
    border-color: #666;
}



    /* //////* Loading Overlay Styles */
    .page-loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.98);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .page-loading-overlay.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        /* Spinner Container */
        .loading-spinner-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        /* Spinner Animation */
        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #00234a;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        /* Loading Text */
        .loading-text {
            font-size: 18px;
            font-weight: 600;
            color: #00234a;
            text-align: center;
        }

        /* Loading Dots Animation */
        .loading-dots {
            display: inline-block;
        }

        .loading-dots span {
            animation: blink 1.4s infinite;
            animation-fill-mode: both;
        }

        .loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes blink {
            0%, 80%, 100% {
                opacity: 0;
            }
            40% {
                opacity: 1;
            }
        }

        /* Progress Bar Style */
        .loading-progress-bar {
            width: 200px;
            height: 4px;
            background: #e0e0e0;
            border-radius: 2px;
            overflow: hidden;
            margin-top: 10px;
        }

        .loading-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #00234a, #0071c5);
            width: 0%;
            animation: progress 2s ease-in-out infinite;
        }

        @keyframes progress {
            0% { width: 0%; }
            50% { width: 70%; }
            100% { width: 100%; }
        }

        /* Logo Animation */
        .loading-logo {
            font-size: 32px;
            font-weight: 800;
            color: #00234a;
            margin-bottom: 10px;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

