/* third.css: layout-only additions. Typography follows second.css */

.third-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.third-section{
  margin-top: 60px;
  background: transparent;
}

/* Section headings centered (unified across areas) */
.third-section > h2{
  text-align: center;
}

.third-section:first-child{
  margin-top: 30px;
}

/* Card appearance matches index's consult-card */
.third-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 28px; /* keeps shadows from visually touching the next block */
}

.third-card{
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  transition: transform .15s ease, box-shadow .15s ease;
}

.third-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

.third-thumb img{
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.third-body{
  padding: 14px 16px 16px;
  text-align: center;
}

/* Service section: full-bleed background across the viewport */
#service{
  position: relative;
  padding: 34px 0;
  background: transparent;
}
#service::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background: #FFFCDC;
  z-index: 0;
}
#service > *{
  position: relative;
  z-index: 1;
}

/* Trading catalog (1-column, left thumbnail + right text) */
.catalog-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.catalog-card{
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  padding: 14px 16px;
}

.catalog-inner{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
}

.catalog-thumb img{
  display: block;
  width: 140px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

@media screen and (max-width: 960px){
  /* Original / Service: keep card design, only reflow + add breathing room (80% width). */
  .third-cards{
    grid-template-columns: 1fr;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
  }
  .third-card{
    width: 100%;
    max-width: 360px;
  }

  /* Trading: keep thumbnails small; center text block (~80% width). */
  .catalog-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .catalog-thumb img{
    width: 120px;
    height: 90px;
  }
  .catalog-body{
    width: 80%;
    margin: 0 auto;
  }
}
