body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.inter {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-style: normal;
}

.k2d {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.section.portfolio {
  .portfolio-feature:nth-child(even) {
    @media (min-width: 1024px) {
      flex-direction: row-reverse;
    }
  }
}

.text-dark {
  color: #000000E5 !important;
}

.text-gray {
  color: #999999 !important;
}

.text-dark-gray {
  color: #555555 !important;
}

.text-lightgray {
  color:#BBBBBB !important;
}

.text-footer {
  color: #E0E0E0 !important;
}

.text-footer-link {
  color: #FFFFFF !important;
}

.text-footer-link:hover {
  color: #CB0000 !important;
}

.border-footer {
  border-color: #333333 !important;
}

html {
  overflow-x: clip;
}

/* Desktop header layout: logo spans top + main menu rows */
.rack-header-desktop {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto auto;
}

.rack-header-logo {
  grid-row: 1 / span 2;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.rack-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-decoration: none;
}

.rack-logo-img {
  max-height: 74px;
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.rack-header-top {
  grid-column: 2;
  grid-row: 1;
}

.rack-header-main {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.rack-logo-link-mobile {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
}

.rack-logo-link-mobile img {
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 1400px) {
  .rack-header-desktop {
    grid-template-columns: 260px 1fr;
  }
  .rack-logo-img {
    max-height: 86px;
  }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .rack-header-desktop {
    grid-template-columns: 200px 1fr;
  }
  .rack-logo-img {
    max-height: 68px;
  }
}

.headerSection {
  position: relative;
  z-index: 1040;
  background: #fff;
}

/* Full-bleed headers/heroes: never use 100vw + negative margin (causes left-shift) */
.page-header,
.testimonials-hero {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  transform: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  display: flow-root; /* block Bootstrap .row gy negative-margin collapse into header */
}

.page-header {
  background: linear-gradient(135deg, #CB0000 0%, #9A0000 100%);
  color: #fff;
}

.testimonials-hero {
  background: linear-gradient(135deg, #6A4C93 0%, #4A2C6B 100%);
  color: #fff;
}

/* Homepage refresh */
.rack-home-hero {
  /* Full-bleed without 100vw/calc (avoids left-shift when scrollbar is present) */
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  display: flow-root; /* block Bootstrap .row gy negative-margin collapse into header */
  overflow: hidden;
  background: #9F0101;
}

.rack-hero-title {
  font-weight: 700;
  color: #FFFFFF !important;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  line-height: 1.08;
}

.rack-hero-subtitle {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: #FFFFFF !important;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .rack-hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }
}

.rack-hero-media {
  position: relative;
  border-radius: 5px;
  background: transparent !important;
  padding: 5px !important;
  box-shadow: none !important;
  border: none !important;
}

.rack-hero-media picture {
  display: block;
  width: 100%;
}

.rack-hero-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent;
}

/* Hero button styles for red background */
.rack-home-hero .rack-hero-btn-primary {
  background: #ffffff !important;
  color: #CB0000 !important;
  border: none !important;
}

.rack-home-hero .rack-hero-btn-primary:hover {
  background: #f8f8f8 !important;
  color: #9A0000 !important;
}

.rack-home-hero .rack-hero-btn-secondary {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

.rack-home-hero .rack-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
  border: 2px solid; color: #ffffff !important;
}

.rack-home-highlights {
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.rack-highlight-card {
  border-radius: 14px;
  background: rgba(203,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 1.25rem 1.15rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rack-highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}

.rack-highlight-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rack-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(203,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rack-highlight-icon img {
  max-height: 26px;
  width: auto;
  display: block;
}

.rack-home-section.py-6 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 575.98px) {
  .rack-home-section.py-6 {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }
}

.rack-media-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.home-cards {
  background-color: #00000008 !important;
  width: 20rem !important;
  height: 13rem !important;
}

/* New hero cards styling */
.hero-cards-wrapper {
  background: linear-gradient(135deg, #CB0000 0%, #9A0000 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: none;
  margin-left: 0;
  transform: none;
}

.hero-cards-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  background-size: 150% 150%;
  z-index: 0;
}

.hero-cards-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0) 85%, rgba(255, 255, 255, 0.1) 100%);
  background-size: 200% 200%;
  z-index: 0;
}

.hero-cards-wrapper .row {
  position: relative;
  z-index: 1;
}

.hero-card {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  height: 280px;
  padding: 1rem;
  margin: 0.5rem;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
}

.hero-card > div {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  text-align: center;
}

.hero-card-content h4 {
  color: #000000E5 !important;
  margin-top: 0;
  margin-bottom: 0.5rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-card-icon {
  width: 100%;
  height: 70px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-icon img {
  max-height: 50px;
  width: auto;
  margin: 0 auto;
}

.hero-card-content p {
  color: #37474F;
  font-size: 0.9rem;
  line-height: 1.4;
}

.about-margin {
  margin: 120px 0;
}

.margin-lr-150 {
  margin: 150px 0;
}

.padding-10-18 {
  padding: 10px 18px;
}

.sla-para-heading {
  padding: 12px 24px;
}

.padding-all-32 {
  padding: 32px;
}

.bg-bright {
  background-color: #ffffffe5 !important;
}

.bg-darkblue {
  background-color:#131d2a !important;
}

.bg-footer {
  background-color: #0a0a0a !important;
}

.dark-border {
  border: 1px solid #00000033 !important;
}

.gray-border {
  border: 1px solid #0000001A !important;
}

.gray-bottom-border {
  border-bottom: 1px solid #0000001A !important;
}

.red-border {
  border-color: #CB0000 !important;
}

.w-40 {
  width: 40% !important;
}

.w-servicebx {
  width: 53px !important;
}

.w-20 {
  width: 20% !important;
}

.red-bottom-border {
  border-bottom: 1px solid #CB0000 !important;
}

.insight-bg {
  background: #9A0000;
}
.pink-bg {
  background-color: #cb00000d !important;
}

.blue-bg {
  background-color: #0018cb0d !important;
}

.purple-bg {
  background-color: #c400cb0d !important;
} 

.lightblue-bg {
  background-color: #00cbbf0d !important;
} 

.brightblue-bg {
  background-color: #0064cb0d !important;
} 

.yellow-bg {
  background-color: #cbc4000d !important;
} 

.brightpink-bg {
  background-color: #cb00730d !important;
} 

.green-bg {
  background-color: #30cb000d !important;
} 

.lightgreen-bg {
  background-color: #73cb000d !important;
}

.gold-bg {
  background-color: #c9cb000d !important;
} 

.midred-bg {
  background-color: #cb005b0d !important;
} 

.text-bright {
  color: #FFFFFFE5 !important;
}

.text-red {
  color: #CD0000 !important;
}

.bg-red {
  background-color: #CB0000 !important;
}

/* Button styling for red background pages */
.red-bg .bg-red {
  background-color: #FFFFFF !important;
  color: #CB0000 !important;
  border: 1px solid #CB0000 !important;
}

.red-bg .bg-bright {
  background-color: #CB0000 !important;
  color: #FFFFFF !important;
  border: 1px solid #FFFFFF !important;
}

.footer-width {
  width: 16rem !important;
}

.footer-col-heading {
  font-weight: 700 !important;
}

.footer-follow-icon {
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

.rack-footer-logo {
  min-width: 200px;
  max-width: 280px;
}

.lines {
  width: 24px !important;
  height: 3px !important;
}

.flag-icon {
  width: 22px;
  height: 14px;
  object-fit: cover;
  display: inline-block;
}

.w-sm-serviceBx {
  width: 30px;
}

.from-top-7 {
  top: 2px !important;
}

.bg-gray {
  background-color: #00000005 !important;
}

.cta-bg {
  background-color: #CB00001A !important;
}

.cta-bg-decoration {
  pointer-events: none;
}

.insite-width {
  width: 1120px !important;
}

.rotate {
  transform: rotate(45deg) translate(5px);
}

.-rotate {
  transform: rotate(-45deg) translate(5px);
}

.myGrid {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.w-half {
  width: 100% !important;
}

@media (min-width: 576px) {
  .w-half {
    width: 50% !important;
  }
}

@media (min-width: 992px) {
  .w-half {
    width: 25% !important;
  }
}

@media (min-width: 992px) {
  .w-half-lg {
    width: 50% !important;
  }
}

@media (min-width: 992px) {
  .dropCenter:hover > .dropdown-menu {
    display: block;
  }
  .dropcenter:hover > .dropdown-menu {
    display: block;
  }

  .dropdown-toggle::after,
  .dropdown-toggle::before {
    display: none !important;
  }

  .dropdown-item:hover {
    background-color: #cb000008 !important;
    h3 {
      color: #cb0000 !important;
    }
  }

  .topHover:hover {
    background-color: #cb00000d;
    .topMakeHover {
      color: #cb0000;
    }
  }

  .langDrop::after {
    display: block !important;
  }

  .dropstart {
    .dropdown-menu {
      right: 0 !important;
    }
  }
}

.langDropItem {
  text-decoration: none;
}

.langDropItem:hover {
  color: #cb0000;
}

.otherHero {
  width: 100%;
  text-align: center;
}

.breadcrumb-item {
  padding: 0 !important;
}

.breadcrumb-item::before {
  color: #00000080 !important;
  padding: 0 3px !important;
}

.active {
  color: #cb0000 !important;
  border-color: #cb0000 !important;
  border-width: 2px;
}

.sla_box {
  width: 400px;
}

.backupCard {
  width: 50%;
}

.baasCard {
  width: 50%;
}

.baasBoard {
  width: 40%;
}

@media (max-width: 576px) {
  .baasBoard {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .baasCard {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .backupCard {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .sla_box {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .otherHero {
    max-width: 50%;
    text-align: left;
  }
}

@media (min-width: 992px) {
  .about {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .myGrid {
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1300px) {
  .mainSection {
    max-width: 1300px;
    margin: 0 auto;
  }
  /* Full-bleed pages: drop .mainSection cap; Bootstrap .container still constrains content */
  .mainSection:has(.rack-home-hero),
  .mainSection:has(.page-header),
  .mainSection:has(.testimonials-hero),
  .mainSection:has(.hero-cards-wrapper) {
    max-width: none;
    width: 100%;
  }
  .headerSection {
    margin: 0 auto;
  }
  .topSection {
    display: flex;
    justify-content: center;
  }
  .topSection section {
    max-width: 1300px;
  }
  .footerSection section {
    max-width: 1300px;
  }

  .footerSection{
    margin: 100px auto 0 auto !important;
    display: flex;
    justify-content: center;
    color:#999;
  }

  .footerSection a {
    color:#CCC;
  }
  .footerSection a:hover {
    color:#FFF;
  }

  /* Apply max-width to all menu group layouts */
  .network-page,
  .storage-page,
  .public-cloud-page,
  .backup-page,
  .baas-page {
    max-width: 1300px;
    margin: 0 auto;
  }
}

.section.portfolio {
  .portfolio-feature:nth-child(even) {
    @media (min-width: 1200px) {
      flex-direction: row-reverse;
    }
  }
}

/* Mobile navigation styling */
@media (max-width: 991.98px) {
  .mobile-header-right {
    display: flex;
    align-items: center;
  }
  
  .mobile-language-selector {
    margin-right: 1rem;
  }
  
  .mobile-menu-toggle {
    color: inherit;
    font-weight: 500;
    text-decoration: none;
  }
  
  .mobile-menu-toggle:hover {
    color: #cb0000;
    text-decoration: none;
  }
  
  #mainMenu {
    background-color: white;
    margin-bottom: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eee;
  }
  
  #mainMenu .collapse {
    background-color: #fff;
    border-radius: 0;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #eee;
  }
  
  #mainMenu .btn-outline-secondary {
    border-color: #cb0000;
    color: #cb0000;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #mainMenu .btn-outline-secondary:after {
    content: "+";
    font-size: 16px;
    line-height: 1;
  }
  
  #mainMenu .mobile-submenu-toggle {
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    padding-right: 20px;
  }
  
  /* Add subtle arrow indicator for expandable items */
  #mainMenu .mobile-submenu-toggle:after {
    content: "›";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transition: transform 0.2s ease;
    font-size: 20px;
    color: #777;
  }
  
  /* Rotate arrow when submenu is expanded */
  #mainMenu .mobile-submenu-toggle[aria-expanded="true"]:after {
    transform: translateY(-50%) rotate(-90deg);
    color: #cb0000;
  }
  
  #mainMenu .mobile-submenu-toggle:hover {
    color: #cb0000;
  }
  
  #mainMenu li {
    margin-bottom: 0.75rem;
  }
  
  #mainMenu li:last-child {
    margin-bottom: 0;
  }
  
  #mainMenu a:hover h3 {
    color: #cb0000;
  }
  
  #mainMenu a:hover .text-dark-gray {
    color: #333 !important;
  }
  
  /* Fix for blue h3 elements in mobile menu */
  #mainMenu a h3 {
    color: #000 !important;
  }
  
  #mainMenu a {
    text-decoration: none;
  }
}

/* Desktop main menu styling */
.topHover {
  transition: color 0.2s ease;
}

.topHover:hover {
  color: #cb0000 !important;
}

.topHover .dropdown-toggle {
  color: inherit;
}

.topMakeHover {
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Common CTA Section Styles */
.cta-section {
  background: #f8f9fa;
  padding: 5rem 0;
  margin-top: 4rem;
}

.cta-card {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cta-card h3 {
  color: #CB0000;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.cta-card p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

/* Common Button Styles */
.btn-primary {
  background-color: #CB0000;
  color: #FFFFFF;
  border: 1px solid #CB0000;
}

.btn-primary:hover {
  background-color: #9A0000;
  border-color: #9A0000;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(203, 0, 0, 0.3);
}

.btn-outline-secondary {
  background-color: transparent;
  color: #CB0000;
  border: 1px solid #CB0000;
}

.btn-outline-secondary:hover {
  background-color: #CB0000;
  color: #FFFFFF;
  border-color: #CB0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(203, 0, 0, 0.3);
}
