body{
  background: #F9FAFB;
}
@media(min-width: 1024px){
main#main {
    max-width: 1280px !important;
    margin: auto !important;
}
.section {
    max-width: 1280px !important;
    margin: auto !important;
}

  }


/* Features section – matches the reference design */
.ah-features {
  background: #f9fafb;
  padding: 72px 0;
  direction: rtl;
}

.ah-features__container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.ah-features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ah-features__item {
  background: #fff;
  border-radius: 8px;
  padding: 40px 20px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.ah-features__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ah-features__icon svg {
  width: 36px;
  height: 36px;
  stroke: #d1d5db;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ah-features__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #1f2937;
}

.ah-features__text {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #6b7280;
}

@media (min-width: 640px) {
  .ah-features__grid { gap: 24px; }
}

@media (min-width: 768px) {
  .ah-features__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .ah-features__grid { gap: 32px; }
  .ah-features__container { padding: 0 24px; }
}

@media (max-width: 767px) {
  .ah-features { padding: 40px 0; }
  .ah-features__item { padding: 28px 12px; }
  .ah-features__icon { width: 64px; height: 64px; }
  .ah-features__icon svg { width: 28px; height: 28px; }
}



/* Square photo banners – matches the reference design */
.ah-banners {
  direction: rtl;
  padding: 32px 0;
}

.ah-banners__container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.ah-banners__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ah-banners__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f2f2;
  aspect-ratio: 7 / 4;
  text-decoration: none;
  cursor: pointer;
}

.ah-banners__bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* dark overlay + dashed frame (shown on hover) */
.ah-banners__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ah-banners__overlay::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  pointer-events: none;
}

.ah-banners__title {
  position: relative;
  margin: 0;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  transform: translateY(6px);
  transition: transform 0.3s ease;
}

.ah-banners__item:hover .ah-banners__overlay,
.ah-banners__item:focus-visible .ah-banners__overlay {
  opacity: 1;
}

.ah-banners__item:hover .ah-banners__title,
.ah-banners__item:focus-visible .ah-banners__title {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .ah-banners__grid { gap: 32px; }
  .ah-banners__item { aspect-ratio: 3.1 / 1; }
}

@media (min-width: 1280px) {
  .ah-banners__container { padding: 0 24px; }
}

@media (max-width: 767px) {
  .ah-banners { padding: 20px 0; }
  .ah-banners__title { font-size: 14px; }
  .ah-banners__overlay::before { inset: 6px; }
  section.section-hero.relative.flex.items-center.overflow-hidden.px-4.md\:px-16 {
    min-height: 300px !important;
    width: 90%;
    margin: auto;
}
}

/* touch devices have no hover: keep the title readable */
@media (hover: none) {
  .ah-banners__overlay { opacity: 1; background: rgba(0, 0, 0, 0.45); }
  .ah-banners__title { transform: none; }
}