@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

/* ===== GLOBAL RESET ===== */
:root {
  --ztc-family-font1: 'Figtree', sans-serif;
  --ztc-weight-semibold: 600;
  --ztc-weight-medium: 500;
  --ztc-weight-bold: 700;
  --ztc-bg-bg-1: #FFFFFF;
  --ztc-text-text-2: #050734;
  --ztc-font-size-font-s16: 16px;
  --ztc-font-size-font-s18: 18px;
  --ztc-font-size-font-s20: 20px;
  --ztc-font-size-font-s22: 22px;
  --ztc-font-size-font-s24: 24px;
  --Main-Color: linear-gradient(70deg, #214b6f 0%, #4ca2ad 100%);
  --Paragraph-Color: #37385C;
}

/* ===== SPACES ====== */
.space16 {
  height: 16px;
}

.space24 {
  height: 24px;
}

.space28 {
  height: 28px;
}

.space-margin60 {
  margin-bottom: 60px;
}

/* ===== SPACES END ====== */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: #000;
  line-height: 1.5;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  position: relative;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo {
  padding-right: 50px;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  width: auto;
  height: 80px;
  max-width: 250px;
  object-fit: contain;
}

.navbar-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 0 3rem 0 0;
  padding: 0;
}

.navbar-links li {
  display: flex;
  align-items: center;
}

.navbar-links a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.navbar-links a:hover {
  color: #001489;
}

/* ===== NAVBAR DROPDOWN ===== */
.navbar-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* Bootstrap Dropdown Compatibility */
.nav-item.dropdown {
  position: relative;
}

.nav-link.dropdown-toggle {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
}


.nav-item.dropdown .dropdown-menu.multi-column {
  position: absolute;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 100%;
  margin-top: 15px; /* small vertical gap */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  right: auto !important;
}

.nav-item.dropdown .dropdown-menu.multi-column[data-bs-popper] {
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
}

@media (max-width: 991px) {
  .nav-item.dropdown .dropdown-menu.multi-column {
    left: 0 !important;
    transform: none !important;
    width: 100%;
    margin-top: 0;
  }
}

.nav-link.dropdown-toggle:hover,
.nav-link.dropdown-toggle:focus {
  color: #001489;
}

/* Dropdown Menu Base Styles */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  margin-top: 0.5rem;
  padding: 0.75rem 0;
  min-width: 220px;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  color: #000;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f5f5f5;
  color: #001489;
}

/* Multi-Column Dropdown for Solutions */
.dropdown-menu.multi-column {
  min-width: 700px;
  padding: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  right: auto;
}

.dropdown-menu.multi-column.show {
  transform: translateX(-50%);
}

.dropdown-menu.multi-column .dropdown-item {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.dropdown-menu.multi-column .dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(4px);
  transition: all 0.2s ease;
}

/* Ensure dropdown stays within viewport */
@media (max-width: 768px) {
  .dropdown-menu.multi-column {
    min-width: 90vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .dropdown-menu.multi-column.show {
    transform: translateX(-50%);
  }
}

/* Iconify Icons in Dropdowns */
.dropdown-item .iconify {
  font-size: 1.5rem;
  color: #001489;
  flex-shrink: 0;
}

.dropdown-item:hover .iconify {
  color: #001489;
}

.navbar-button {
  background-color: #00ACC1;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-button:hover {
  background-color: #333;
}

/* ===== HAMBURGER MENU ===== */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #001489;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .navbar-container {
    padding-right: 1rem;
  }

  .navbar-logo img {
    height: 40px;
    max-width: 200px;
  }

  .navbar-links,
  .navbar-button {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-links.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid #eee;
  }

  .navbar-links.active a {
    text-align: center;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 96px 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  background-image: url("../images/all-images/bg/bearing_bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}


/* ----- Hero Text ----- */
.hero-text {
  flex: 1;
}

/* Hero header */
.hero-text h1 {
  font-size: 5rem;
  font-weight: 900;
  color: #000;
  line-height: 0.98;
  letter-spacing: -0.5px;
  margin-bottom: 1.4rem;
}

/* Hero subheader */
.hero-subtext {
  font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  color: #111;
  padding: 12px 14px;
  margin-bottom: 1.8rem;
  max-width: 640px;
}

/* ----- Hero Image + Tiles ----- */
.hero-image-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 92%;
  max-width: 480px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* HERO TILES  */
.hero-tile {
  position: absolute;
  padding: 18px 22px;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
  font-family: 'Inter', sans-serif;
  min-width: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-tile.requests {
  top: -30px;
  right: -20px;
  background-color: #007C91;
  color: #224d71;
}

.hero-tile.roi {
  bottom: 40px;
  left: -10px;
  background-color: #28A745;
  color: #fff;
}

.hero-tile.roi .tile-title,
.hero-tile.roi .tile-metric,
.hero-tile.roi .tile-badge {
  color: #fff;
}

.hero-tile.impressions {
  bottom: -60px;
  right: -20px;
  background-color: #f7d547;
  color: #000;
}

.hero-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.tile-title {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 8px;
  color: #1f2937;
}

.tile-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.16);
  margin: 6px 0 12px 0;
}

.tile-metric {
  font-size: 3rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1;
}

.tile-badge {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
}


.tile-title {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 6px;
}

.tile-metric {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.tile-badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-image-container {
    order: -1;
  }

  .hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.02;
  }

  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    width: 100%;
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 60px 5%;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 22px;
  }

  .hero-tile {
    width: 120px;
    padding: 8px 10px;
    font-size: 0.75rem;
    min-width: 120px;
  }

  .hero-tile.requests {
    top: 20px;
    right: 10px;
  }

  .hero-tile.roi {
    bottom: 80px;
    left: 5px;
  }

  .hero-tile.impressions {
    bottom: 10px;
    right: 10px;
  }

  .hero-tile .tile-title {
    font-size: 0.7rem;
  }

  .hero-tile .tile-metric {
    font-size: 1.1rem;
  }

  .hero-tile .tile-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
}

/* Secondary Button Style */
.vl-btn-secondary {
  display: inline-block;
  padding: 18px 24px;
  border-radius: 8px;
  color: #000;
  background: transparent;
  border: 2px solid #000;
  font-size: 20px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s;
}

.vl-btn-secondary:hover {
  color: #fff;
  background: #000;
  transform: translateY(-5px);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #000;
  border-radius: 10px;
  color: #fff;
}

.btn-primary:hover {
  background-color: #333;
}

.btn-link {
  color: #000;
  text-decoration: underline;
}

/*=============COMMON CSS AREA STARTS ===============*/
.image-anime {
  position: relative;
  overflow: hidden;
}

.image-anime:after {
  content: "";
  position: absolute;
  width: 200%;
  height: 0%;
  left: 50%;
  top: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
}

/* ===== Utilities and components ===== */
/* Spacing utilities */
.space8 {
  height: 8px;
}

.space16 {
  height: 16px;
}

.space24 {
  height: 24px;
}

.space28 {
  height: 28px;
}

.space30 {
  height: 30px;
}

/* Section padding */
.sp1 {
  padding: 100px 0 100px;
}

@media (max-width: 767px) {
  .sp1 {
    padding: 50px 0 50px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .sp1 {
    padding: 50px 0 50px;
  }
}

.sp2 {
  padding: 100px 0 70px;
}

@media (max-width: 767px) {
  .sp2 {
    padding: 50px 0 20px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .sp2 {
    padding: 50px 0 20px;
  }
}

/* Image hover shine and reveal helpers */
.image-anime {
  position: relative;
  overflow: hidden;
}

.image-anime:after {
  content: "";
  position: absolute;
  width: 200%;
  height: 0%;
  left: 50%;
  top: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
}

.image-anime:hover:after {
  height: 250%;
  transition: all 600ms linear;
  background-color: transparent;
}

.reveal {
  position: relative;
  display: inline-block;
  visibility: visible;
  overflow: hidden;
}

.reveal img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform-origin: left;
  display: inline-block;
}

/* Heading style used in About section */
.heading2 h5 {
  background: linear-gradient(90deg, #2E0797 0%, #726EFC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding: 8px;
}

.heading2 h5::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  border-radius: 8px;
  background: #F1F1FF;
  height: 100%;
  width: 100%;
  transition: all 0.4s;
  z-index: -1;
}

.heading2 h5 span {
  height: 28px;
  width: 28px;
  text-align: center;
  line-height: 28px;
  display: inline-block;
  transition: all 0.4s;
  background: linear-gradient(90deg, #2E0797 0%, #726EFC 100%);
  border-radius: 50%;
  margin: 0 6px 0 0;
}

.heading2 h5 span img {
  filter: brightness(0) invert(1);
}

.heading2 h2 {
  color: #1A1A1A;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  transition: all 0.4s;
}

@media (max-width: 767px) {
  .heading2 h2 {
    font-size: 32px;
    line-height: 40px;
  }
}

.heading2 p {
  color: #666;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: -0.18px;
}


/* FRONT PAGE Buttons */
.vl-btn2 {
  position: relative;
  display: inline-block;
  padding: 18px 24px;
  border-radius: 10px;
  color: #fff;
  border: 2px solid #000000;
  text-decoration: none;
  background: #00ACC1;
  z-index: 1;
  font-size: 20px;
  line-height: 20px;
  font-weight: 700;
  transition: all 0.4s;
}

.vl-btn2:hover {
  color: #fff;
  transform: translateY(-5px);
}

.vl-btn2:hover i {
  transform: rotate(0);
  transition: all 0.4s;
}

.vl-btn2::after {
  position: absolute;
  content: "";
  height: 100%;
  width: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #726EFC 0%, #2E0797 100%);
  transition: all 0.4s;
  top: 0;
  left: 50%;
  z-index: -1;
  visibility: hidden;
  opacity: 0;
}

/*========SERVICE CSS AREA ============*/
.service1-section-area {
  padding-top: 30px;
  position: relative;
  z-index: 1;
}

.service1-section-area .service-header h5::after {
  border-radius: 8px;
  background: linear-gradient(0deg, rgba(114, 110, 252, 0.1) 0%, rgba(114, 110, 252, 0.1) 100%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.service1-boxarea {
  background-color: #ffffff;
  color: #000000;
  border-radius: 8px;
  transition: all 0.4s;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 320px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.service1-section-area .service1-boxarea {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  background: var(--ztc-bg-bg-1);
  padding: 28px;
  transition: all 0.4s;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.09);
}

.service1-section-area .service1-boxarea:hover .arrow {
  top: 16px;
  right: 16px;
  transition: all 0.6s;
}

.service1-section-area .service1-boxarea:hover .icons {
  transform: rotateY(-180deg);
  transition: all 0.4s;
}

.service1-section-area .service1-boxarea:hover a {
  color: #fff;
  transition: all 0.4s;
}

.service1-section-area .service1-boxarea:hover .arrow img.arrow-img {
  animation: spinIn 1.2s ease-out forwards;
}

.service1-section-area .service1-boxarea:hover p {
  color: #ffff;
  transition: all 0.4s;
  opacity: 80%;
}

.service1-section-area .service1-boxarea:hover h5 {
  color: #ffff;
  transition: all 0.4s;
  padding-left: 0;
}

.service1-section-area .service1-boxarea:hover h5::after {
  background: var(--ztc-bg-bg-1);
  transition: all 0.4s;
  left: 26px;
}

.service1-section-area .service1-boxarea:hover::after {
  visibility: visible;
  opacity: 1;
  transition: all 0.4s;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.service1-section-area .service1-boxarea::after {
  position: absolute;
  content: "";
  height: 100%;
  width: 10px;
  transition: all 0.4s;
  left: 50%;
  border-radius: 16px;
  background-image: url("../images/all-images/bg/bearing_bg.png");
  visibility: hidden;
  opacity: 0;
  top: 0;
  z-index: -1;
}

.service1-section-area .service1-boxarea .icons {
  height: 70px;
  width: 70px;
  text-align: center;
  line-height: 70px;
  border-radius: 50%;
  transition: all 0.4s;
  display: inline-block;
  background: var(--Main-Color, linear-gradient(90deg, #2E0797 0%, #726EFC 100%));
}

.service1-section-area .service1-boxarea .arrow {
  position: absolute;
  right: -100px;
  top: -100px;
  transition: all 0.8s ease-out 0.1s;
}

.service1-section-area .service1-boxarea img.arrow-img {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  transform: rotate(-45deg);
  transition: all 0.4s;
  /*animation: spinIn 1.2s ease-out forwards;*/
}
/* Keyframes for the compass-like spin */
@keyframes spinIn {
  0% {
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
  60% {
    transform: rotate(270deg) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: rotate(-45deg) scale(1);
    opacity: 1;
  }
}

.service1-section-area .service1-boxarea:hover .arrow a img.arrow-img {
  animation: spinHover 0.8s ease-in-out;
}

@keyframes spinHover {
  0% { transform: rotate(-45deg); }
  50% { transform: rotate(315deg); }
  100% { transform: rotate(-45deg); }
}

.service1-section-area .service1-boxarea a {
  color: var(--ztc-text-text-2);
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s22);
  font-style: normal;
  font-weight: var(--ztc-weight-semibold);
  line-height: 22px;
  display: block;
  transition: all 0.4s;
}

.service1-section-area .service1-boxarea p {
  color: var(--Paragraph-Color, #37385C);
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s18);
  font-style: normal;
  font-weight: var(--ztc-weight-medium);
  line-height: 26px;
  transition: all 0.4s;
}

.service1-section-area .service1-boxarea h5 {
  color: #2E0797;
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s16);
  font-style: normal;
  font-weight: var(--ztc-weight-semibold);
  line-height: 16px;
  padding-left: 68px;
  position: relative;
  z-index: 1;
  transition: all 0.4s;
}

.service1-section-area .service1-boxarea h5::after {
  position: absolute;
  z-index: 1;
  content: "";
  height: 2px;
  width: 60px;
  left: 0;
  top: 6px;
  transition: all 0.4s;
  background: var(--Main-Color, linear-gradient(90deg, #2E0797 0%, #726EFC 100%));
}

.wrapper {
  display: flex;
  flex: 1;
  height: 100vh;
  overflow: hidden;
}



/* --- Sidebar --- */
.sidebar {
  width: 240px;
  background-color: #ffffff;
  border-right: 1px solid #e6e6e6;
  padding: 20px;
  position: fixed;
  top: 0;
  bottom: 0;
  overflow-y: auto;
}

.sidebar h4 {
  color: #2E0797;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 30px;
}

.sidebar a {
  display: block;
  color: #37385C;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.sidebar a:hover,
.sidebar a.active {
  background: linear-gradient(90deg, #2E0797 0%, #726EFC 100%);
  color: #fff;
}

/* --- Main Content --- */
.main-content {
  margin-left: 240px;
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

/* --- Top Navbar (optional, small) --- */
.topbar {
  height: 60px;
  background: linear-gradient(90deg, #2E0797 0%, #726EFC 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  z-index: 10;
}

.topbar h5 {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 991px) {
  .sidebar {
    position: relative;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e6e6e6;
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    left: 0;
  }
}

.tile-preview {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background: #f8f9fa;
}

.tile-preview.blue {
  border-color: #007bff;
  background: #e7f3ff;
}

.tile-preview.green {
  border-color: #28a745;
  background: #e8f5e9;
}

.tile-preview.yellow {
  border-color: #ffc107;
  background: #fff8e1;
}

.tile-preview.red {
  border-color: #dc3545;
  background: #ffebee;
}

.tile-actions {
  margin-top: 10px;
}

.add-tile-btn {
  width: 100%;
  padding: 20px;
  border: 2px dashed #007bff;
  background: #f0f7ff;
  color: #007bff;
  font-weight: bold;
}

.add-tile-btn:hover {
  background: #e0efff;
}

.preview-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 30px;
  color: white;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background-image: url("../images/all-images/bg/service-bg1.png");
  padding: 80px 20px;
  width: 100%;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: #1a2b4a;
  margin-bottom: 20px;
  font-weight: 700;
  font-family: var(--ztc-family-font1);
}

.cta-content p {
  font-size: 1.2rem;
  color: #37385C;
  margin-bottom: 30px;
  font-family: var(--ztc-family-font1);
}

/*.cta-content .vl-btn2 {*/
/*  margin-top: 10px;*/
/*  background: linear-gradient(70deg, #214b6f 0%, #4ca2ad 100%);*/
/*}*/

@media (max-width: 768px) {
  .cta-section {
    padding: 60px 20px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 40px 15px;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }
}

/* ===== END CTA SECTION ===== */

/* ===== SERVICES SECTION STYLES ===== */
.services-section {
  background-color: #f8f9ff;
  padding: 80px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background-color: rgba(88, 86, 214, 0.1);
  border-radius: 50px;
  color: #5856d6;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-badge i {
  font-size: 16px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto;
}

/* Service Card Styles */
.service-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  margin-bottom: 30px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(88, 86, 214, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #5856d6 0%, #7b79e8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotate(360deg) scale(1.1);
}

.service-icon i {
  color: white;
  font-size: 32px;
}

.service-content {
  flex-grow: 1;
}

.service-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 15px;
  line-height: 1.4;
}

.service-content p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 0;
}

.service-number {
  position: absolute;
  bottom: 30px;
  right: 30px;
  font-size: 16px;
  font-weight: 700;
  color: #5856d6;
  padding: 6px 0;
  min-width: 40px;
  text-align: center;
  border-top: 3px solid #5856d6;
}

/* Responsive styles */
@media (max-width: 991px) {
  .section-title {
    font-size: 32px;
  }

  .service-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .services-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-icon i {
    font-size: 28px;
  }

  .service-content h3 {
    font-size: 20px;
  }
}

/* Spacing utilities */
.space24 {
  height: 24px;
}

.space30 {
  height: 30px;
}

.space60 {
  height: 60px;
}

/* Section padding utility */
.sp1 {
  padding: 80px 0;
}


/* ==== CONTACT US PAGE ==== */
html, body {
  height: 100%;
  margin: 0;
}

.page-body-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  flex: 1;
}

.contact-section {
  padding: 60px 0;
}

.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.form-control:focus {
  border-color: #001489;
  box-shadow: 0 0 0 0.2rem rgba(0, 20, 137, 0.15);
}

.btn-primary {
  background: linear-gradient(40deg, #214b6f 0%, #4ca2ad 100%);
  border-color: #001489;
  border-radius: 10px;
}
.btn-primary:hover {
  background: linear-gradient(40deg, #1a3a57 0%, #3b8c99 100%);
}
/* ==========================================
   FRONTEND COMPONENT STYLES
   ========================================== */

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 2rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
}

/* Logo */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo img {
    height: 150px;
    width: auto;
}

.footer-logo .bearing-text-logo {
    height: 40px;
    width: auto;
}

/* Navigation Links */
.footer-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

/* Contact Button */

/* Copyright Section */
.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 1rem 2rem 0;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #999;
    font-size: 0.875rem;
}

/* Footer Responsive Design */
@media (max-width: 991px) {
    .footer-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .footer-logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .footer-links {
        width: 100%;
        gap: 0.4rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-links {
        gap: 0.4rem;
    }

    .footer-logo img {
        height: 50px;
    }

    .footer-logo .bearing-text-logo {
        height: 30px;
    }
}

/* Technologies Section */
.technologies-section {
    background-color: #f8f9fa;
    padding: 80px 40px;
    width: 100%;
}

.technologies-container-wrapper {
    max-width: 1240px;
    margin: 0 auto;
}

.technologies-header {
    text-align: center;
    margin-bottom: 60px;
}

.technologies-header h2 {
    font-size: 2.5rem;
    color: #1a2b4a;
    margin-bottom: 20px;
    font-weight: 700;
}

.technologies-header p {
    font-size: 1.1rem;
    color: #4a4a4a;
    max-width: 700px;
    margin: 0 auto;
}

.technologies-carousel {
    position: relative;
    padding: 0 60px;
}

.technologies-slides-wrapper {
    overflow: hidden;
}

.technologies-slides {
    display: flex;
    gap: 40px;
    align-items: center;
    animation: infiniteScroll 30s linear infinite;
    width: max-content;
}

.technologies-slides:hover {
    animation-play-state: paused;
}

.technologies-slides.reverse:hover {
    animation-play-state: paused;
}

.technology-item {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 120px;
    transition: all 0.3s ease;
}

.technology-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.technology-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Infinite scroll animation - Right to Left */
@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-220px * var(--total-items)));
    }
}

/* Infinite scroll animation - Left to Right */
@keyframes infiniteScrollReverse {
    0% {
        transform: translateX(calc(-220px * var(--total-items)));
    }
    100% {
        transform: translateX(0);
    }
}

.technologies-slides.reverse {
    animation: infiniteScrollReverse 30s linear infinite;
}

.technologies-row {
    margin-bottom: 20px;
}

.technologies-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .technologies-section {
        padding: 60px 20px;
    }

    .technologies-carousel {
        padding: 0 20px;
    }

    .technologies-header h2 {
        font-size: 2rem;
    }

    .technology-item {
        flex: 0 0 140px;
    }
}

@media (max-width: 480px) {
    .technologies-section {
        padding: 40px 15px;
    }

    .technology-item {
        flex: 0 0 120px;
    }
}

/* Partners Section */
.partners-section {
    background-color: #fff;
    background-image: url("../images/all-images/bg/service-bg1.png");
    padding: 60px 40px;
    width: 100%;
}

.partners-container-wrapper {
    max-width: 1240px;
    margin: 0 auto;
}

.partners-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 60px;
}

.partners-header h1 {
    font-size: 3rem;
    color: #1a2b4a;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.partners-header p {
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.6;
    max-width: 800px;
}

.partners-carousel {
    position: relative;
    padding: 0 60px;
}

.partners-slides-wrapper {
    overflow: hidden;
}

.partners-slides {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.partner-card {
    flex: 0 0 calc(20% - 24px);
    background-color: white;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.partner-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 2px solid #5ec5c0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background-color: #5ec5c0;
    color: white;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-button svg {
    width: 24px;
    height: 24px;
    stroke: #5ec5c0;
}

.carousel-button:hover svg {
    stroke: white;
}

@media (max-width: 1200px) {
    .partner-card {
        flex: 0 0 calc(25% - 22.5px);
    }
}

@media (max-width: 1024px) {
    .partner-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 40px 20px;
    }

    .partners-carousel {
        padding: 0 50px;
    }

    .partners-header h1 {
        font-size: 2rem;
    }

    .partner-card {
        flex: 0 0 calc(50% - 15px);
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .partners-section {
        padding: 30px 15px;
    }

    .partners-carousel {
        padding: 0 45px;
    }

    .partner-card {
        flex: 0 0 calc(50% - 15px);
    }
}

/* Solutions Portfolio Section */
.solution-portfolio-section {
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* CSS Grid for 5 columns */
.solutions-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

/* Link wrapper */
.solution-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* Horizontal card layout */
.solution-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.solution-card:hover,
.solution-link:hover .solution-card {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #007bff;
}

.solution-link:hover {
    cursor: pointer;
}

/* Icon styling */
.solution-icon-wrapper {
    flex-shrink: 0;
}

.solution-icon {
    width: 36px;
    height: 36px;
    font-size: 36px;
    color: #000000;
    display: block;
}

.solution-icon-default {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
}

/* Title styling - centered between icon and card end */
.solution-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    text-align: center;
}

/* Responsive - Tablet: 3 columns */
@media (max-width: 991px) {
    .solutions-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .solution-card {
        padding: 1.125rem 1.375rem;
    }

    .solution-icon,
    .solution-icon-default {
        width: 38px;
        height: 38px;
    }

    .solution-title {
        font-size: 0.95rem;
    }
}

/* Responsive - Mobile: 2 columns */
@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }

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

    .solution-card {
        padding: 1rem 1.25rem;
    }

    .solution-icon,
    .solution-icon-default {
        width: 36px;
        height: 36px;
    }

    .solution-title {
        font-size: 0.9rem;
    }
}

/* Responsive - Extra Small: Can stay 2 or go to 1 */
@media (max-width: 576px) {
    .solution-card {
        padding: 0.875rem 1rem;
        gap: 0.625rem;
    }

    .solution-icon,
    .solution-icon-default {
        width: 32px;
        height: 32px;
    }

    .solution-icon-default {
        font-size: 16px;
    }

    .solution-title {
        font-size: 0.85rem;
    }
}

/* Solutions Page Styles */
.solutions-header {
    padding: 80px 0 40px;
    background-color: #fff;
    background-image: url("../images/all-images/bg/bearing_bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

.solutions-header h1,
.solutions-header .lead,
.solutions-header p,
.solutions-header .text-muted {
    color: #fff !important;
}

.solutions-grid-section {
    padding: 60px 0 80px;
}

.solution-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.solution-card-link:hover {
    color: inherit;
}

.solution-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #00ACC1;
}

.solution-card-image {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    max-width: 200px;
    max-height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    margin: 0 auto;
    border-radius: 8px;
    position: relative;
}

.solution-card-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

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

.solution-card-body {
    padding: 1.5rem;
}

.solution-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.solution-card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.solution-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
}

.solution-card-link-text {
    color: #00ACC1;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.solution-card:hover .solution-card-link-text {
    color: #007C91;
}

.solution-card:hover .solution-card-link-text i {
    transform: translateX(5px);
}

.solution-card-link-text i {
    transition: transform 0.3s ease;
}

.no-solutions {
    padding: 60px 20px;
}

/* Responsive adjustments for solutions page */
@media (max-width: 768px) {
    .solutions-header {
        padding: 60px 0 30px;
    }

    .solutions-header h1 {
        font-size: 2rem;
    }

    .solutions-grid-section {
        padding: 40px 0 60px;
    }

    .solution-card-image {
        width: 180px;
        height: 180px;
        min-width: 180px;
        min-height: 180px;
        max-width: 180px;
        max-height: 180px;
    }

    .solution-card-body {
        padding: 1.25rem;
    }

    .solution-card-title {
        font-size: 1.1rem;
    }
}

/* Page Layout Styles */
html, body {
    height: 100%;
    margin: 0;
}

.page-body-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper {
    flex: 1;
}

.page-hero {
    margin-top: 0;
}

.featured-image {
    position: relative;
    max-height: 500px;
    overflow: hidden;
}

.featured-image img {
    object-fit: cover;
    height: 500px;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 60px 0 40px;
}

.hero-overlay .page-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-content {
    padding: 80px 0;
}

.container-fluid .markdown-content {
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container-fluid .markdown-content {
        padding: 0 20px;
    }

    .page-hero {
        margin-top: 0;
    }

    .featured-image img {
        height: 300px;
    }

    .hero-overlay .page-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .markdown-content {
        font-size: 1rem;
    }

    .markdown-content h1 {
        font-size: 1.75rem;
    }

    .markdown-content h2 {
        font-size: 1.5rem;
    }

    .markdown-content h3 {
        font-size: 1.25rem;
    }

    .page-content {
        padding: 40px 0;
    }
}

.page-title {
    font-size: 2.5rem;
    color: #1a2b4a;
    font-weight: 700;
}

.markdown-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.markdown-content h1 {
    font-size: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1a2b4a;
    font-weight: 700;
}

.markdown-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #1a2b4a;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #5ec5c0;
}

.markdown-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2a3f5f;
    font-weight: 600;
}

.markdown-content h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2a3f5f;
    font-weight: 600;
}

.markdown-content p {
    margin-bottom: 1.5rem;
}

.markdown-content a {
    color: #5ec5c0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.markdown-content a:hover {
    border-bottom-color: #5ec5c0;
}

.markdown-content code {
    background-color: #f8f9fa;
    color: #e83e8c;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Menlo', monospace;
}

.markdown-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.markdown-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 4px solid #5ec5c0;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #6c757d;
    font-style: italic;
}

.markdown-content ul, .markdown-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.markdown-content table th,
.markdown-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.markdown-content table th {
    background-color: #5ec5c0;
    color: white;
    font-weight: 600;
}

.markdown-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.markdown-content hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 3rem 0;
}

.markdown-content input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* MyST Admonitions */
.markdown-content .admonition {
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    border-left: 4px solid;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
}

.markdown-content .admonition-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.markdown-content .admonition-title::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.markdown-content .admonition.note,
.markdown-content .admonition.hint {
    border-left-color: #5ec5c0;
    background-color: #e8f5f4;
}

.markdown-content .admonition.note .admonition-title,
.markdown-content .admonition.hint .admonition-title {
    color: #2c7873;
}

.markdown-content .admonition.note .admonition-title::before,
.markdown-content .admonition.hint .admonition-title::before {
    content: "\f05a";
    color: #5ec5c0;
}

.markdown-content .admonition.tip,
.markdown-content .admonition.important {
    border-left-color: #28a745;
    background-color: #e8f5e9;
}

.markdown-content .admonition.tip .admonition-title,
.markdown-content .admonition.important .admonition-title {
    color: #1e7e34;
}

.markdown-content .admonition.tip .admonition-title::before,
.markdown-content .admonition.important .admonition-title::before {
    content: "\f0eb";
    color: #28a745;
}

.markdown-content .admonition.warning,
.markdown-content .admonition.caution,
.markdown-content .admonition.attention {
    border-left-color: #ffc107;
    background-color: #fff8e1;
}

.markdown-content .admonition.warning .admonition-title,
.markdown-content .admonition.caution .admonition-title,
.markdown-content .admonition.attention .admonition-title {
    color: #856404;
}

.markdown-content .admonition.warning .admonition-title::before,
.markdown-content .admonition.caution .admonition-title::before,
.markdown-content .admonition.attention .admonition-title::before {
    content: "\f071";
    color: #ffc107;
}

.markdown-content .admonition.danger,
.markdown-content .admonition.error {
    border-left-color: #dc3545;
    background-color: #f8d7da;
}

.markdown-content .admonition.danger .admonition-title,
.markdown-content .admonition.error .admonition-title {
    color: #721c24;
}

.markdown-content .admonition.danger .admonition-title::before,
.markdown-content .admonition.error .admonition-title::before {
    content: "\f06a";
    color: #dc3545;
}

.markdown-content dl {
    margin: 1.5rem 0;
}

.markdown-content dt {
    font-weight: 600;
    margin-top: 1rem;
    color: #1a2b4a;
}

.markdown-content dd {
    margin-left: 2rem;
    margin-bottom: 0.5rem;
    color: #4a4a4a;
}

/* Mermaid Diagrams */
.markdown-content .mermaid-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    overflow-x: auto;
}

.markdown-content .mermaid {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

/* Ensure Mermaid diagrams are responsive */
.markdown-content .mermaid svg {
    max-width: 100%;
    height: auto;
}

/* ===== MyST Grid and Card Equal Heights ===== */
/* Ensure all cards in a MyST grid row have equal heights */
.markdown-content .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

.markdown-content .row > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 1rem;
}

.markdown-content .row > [class*="col-"] > .card,
.markdown-content .row > div > .card {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 100% !important;
}

.markdown-content .row .card .card-body {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.markdown-content .row .card .card-body p:last-child {
    margin-bottom: 0;
}

/* Additional styling for MyST cards */
.markdown-content .card {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.markdown-content .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.markdown-content .card .card-body {
    padding: 1.25rem;
}

.markdown-content .card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

/* ===== END MyST Grid and Card Styles ===== */
