/* Shared layout helpers for consistent widths across pages */

:root {
  --page-max-width: 1240px;
  --page-pad: 16px;
  --page-pad-sm: 24px;
  --page-pad-lg: 32px;
}

.page-container {
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

@media (min-width: 640px) {
  .page-container {
    padding-left: var(--page-pad-sm);
    padding-right: var(--page-pad-sm);
  }
}

@media (min-width: 1024px) {
  .page-container {
    padding-left: var(--page-pad-lg);
    padding-right: var(--page-pad-lg);
  }
}

/* Make existing Tailwind containers consistent across pages without rewriting markup */
.max-w-7xl {
  max-width: var(--page-max-width) !important;
}

/* Custom Hero Section (Pure CSS without Tailwind) */
.custom-hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fb 100%);
  overflow: hidden;
  font-family: 'Poppins', 'Roboto', sans-serif;
}

.custom-hero-bg-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background-color: #f0f7f9;
  border-bottom-left-radius: 200px;
  z-index: 0;
}

.custom-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.custom-hero-left {
  width: 55%;
  box-sizing: border-box;
}

.custom-hero-title {
  margin: 0 0 30px 0;
  font-family: 'Poppins', 'Roboto', sans-serif;
  letter-spacing: -1px;
}

.custom-hero-title .hl-1 {
  font-size: 64px;
  font-weight: 700;
  color: #18a999;
  line-height: 1.1;
  display: block;
}

.custom-hero-title .hl-2 {
  font-size: 72px;
  font-weight: 800;
  color: #111111;
  line-height: 1.1;
  display: block;
}

.custom-hero-title .hl-3 {
  font-size: 72px;
  font-weight: 800;
  color: #111111;
  line-height: 1.1;
  position: relative;
  display: inline-block;
}

.custom-brush-underline {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 15px;
  z-index: -1;
  object-fit: fill;
  transform: rotate(-1.5deg);
}

.custom-hero-desc {
  font-size: 18px;
  color: #555555;
  margin-top: 30px;
  margin-bottom: 40px;
  width: 80%;
  line-height: 1.6;
  font-weight: 400;
}

.custom-hero-actions {
  display: flex;
  align-items: center;
}

.btn-primary-custom {
  display: inline-block;
  background-color: #18a999;
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 10px 20px rgba(24, 169, 153, 0.2);
}

.btn-primary-custom:hover {
  background-color: #148f81;
  transform: translateY(-2px);
}

.btn-secondary-custom {
  display: flex;
  align-items: center;
  color: #18a999;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  margin-left: 30px;
  transition: color 0.3s ease;
}

.btn-secondary-custom i {
  font-size: 28px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.btn-secondary-custom:hover {
  color: #148f81;
}

.btn-secondary-custom:hover i {
  transform: scale(1.1);
}

.btn-secondary-custom span {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.custom-hero-right {
  width: 45%;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.custom-hero-img {
  width: 170%;
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.15));
  margin-right: -35%;
  margin-top: -116px;
}

.custom-hero-triangle {
  position: absolute;
  bottom: -50px;
  left: 15%;
  z-index: 20;
}

@media (max-width: 992px) {
  .custom-hero-section {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .custom-hero-container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .custom-hero-left,
  .custom-hero-right {
    width: 100%;
    padding-right: 0;
  }

  .custom-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
  }

  .custom-hero-desc {
    width: 100%;
  }

  .custom-hero-title .hl-1 {
    font-size: 42px;
  }

  .custom-hero-title .hl-2,
  .custom-hero-title .hl-3 {
    font-size: 48px;
  }

  .custom-hero-img {
    width: 100%;
    margin-right: 0;
    margin-top: 0;
  }
}

/* --- ht.html Custom Hero & Animations --- */
.bg-blob {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, #f0f7fb 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element-delay {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
