/* Webinars + blog hub ("/zoho-webinar") — measurements from the Framer desktop layout at 1440px. */

.learn-webinar { background: var(--white); }

/* ---------- Hero ---------- */
.wb-hero { background: var(--white); padding: 150px 75px 100px; text-align: center; }
.wb-hero h1 { max-width: 800px; margin-inline: auto; font-family: var(--font-gilroy); font-weight: 700; font-size: 56px; line-height: 90px; color: #000; }
.wb-hero h1 img { display: inline-block; width: 112px; height: 48px; margin: 0 4px; vertical-align: -9px; border-radius: 6px; }
.wb-hero-sub { max-width: 800px; margin: 20px auto 0; font-family: var(--font-gilroy); font-weight: 500; font-size: 20px; line-height: 25px; color: #2e2e2e; }
.wb-hero-media { width: min(1200px, 100%); margin: 100px auto 0; }
.wb-hero-media img { width: 100%; aspect-ratio: 1200 / 546; }

/* ---------- Featured webinars ---------- */
.wb-list { background: var(--white); padding: 75px 0; }
.wb-container { width: min(1224px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wb-title { font-family: var(--font-gilroy); font-weight: 700; font-size: 52px; line-height: 75px; color: #000; text-align: center; }

.wb-filters { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 75px; }
.wb-field { display: flex; flex-direction: column; gap: 12px; width: 272px; }
.wb-field--search { width: 362px; }
.wb-field > span:first-child { font-family: var(--font-gilroy); font-weight: 500; font-size: 20px; line-height: 24px; color: #000; }
.wb-select, .wb-search { position: relative; display: flex; align-items: center; height: 40px; border-radius: 10px; background: rgba(187, 187, 187, .15); box-shadow: inset 0 0 0 1px rgba(136, 136, 136, .1); transition: box-shadow .2s ease; }
.wb-select:focus-within, .wb-search:focus-within { box-shadow: inset 0 0 0 1px #09f; }
.wb-select select { width: 100%; height: 100%; padding: 0 36px 0 12px; border: 0; background: transparent; -webkit-appearance: none; appearance: none; font-family: var(--font-gilroy); font-weight: 600; font-size: 16px; line-height: 19.2px; color: #5e5e5e; cursor: pointer; }
.wb-select select:focus { outline: none; }
.wb-select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.5l4 4 4-4' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.wb-search { padding: 0 12px; gap: 8px; }
.wb-search::before { content: ""; flex: none; width: 16px; height: 16px; background: #999; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M7 2.5a5 5 0 0 1 4.13 7.82l2.03 2.03a.75.75 0 0 1-1.06 1.06l-2-2A5 5 0 1 1 7 2.5Zm-3.5 5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0Z'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M7 2.5a5 5 0 0 1 4.13 7.82l2.03 2.03a.75.75 0 0 1-1.06 1.06l-2-2A5 5 0 1 1 7 2.5Zm-3.5 5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0Z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.wb-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0; font-family: var(--font-gilroy); font-weight: 600; font-size: 16px; line-height: 19.2px; color: #222; }
.wb-search input::placeholder { color: #5e5e5e; opacity: 1; }
.wb-search input:focus { outline: none; }
.wb-search input::-webkit-search-cancel-button { cursor: pointer; }

.wb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin-top: 75px; }
.wb-card[hidden] { display: none; }
.wb-card a { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 10px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px #d4d4d4; transition: box-shadow .2s ease, transform .2s ease; }
.wb-card a:hover { box-shadow: inset 0 0 0 1px #b5b5b5, 0 10px 30px rgba(0, 0, 0, .06); }
.wb-card img { width: 100%; aspect-ratio: 371 / 251; border-radius: 8px; }
.wb-card-body { display: flex; flex-direction: column; flex: 1; gap: 16px; padding: 10px; }
.wb-card-cat { position: relative; font-family: var(--font-gilroy); font-weight: 700; font-size: 16px; line-height: 24px; color: rgb(6, 160, 207); }
.wb-card-cat::before { content: ""; position: absolute; left: -20px; top: 0; width: 2px; height: 30px; background: rgb(6, 13, 207); }
.wb-card-title { display: flex; flex-direction: column; justify-content: center; height: 62px; margin-bottom: 10px; font-family: var(--font-gilroy); font-weight: 500; font-size: 20px; line-height: 24px; color: #000; }
.wb-card-date { margin-top: auto; font-family: var(--font-gilroy); font-weight: 500; font-size: 16px; line-height: 24px; color: rgb(128, 128, 128); }

.wb-more { display: flex; justify-content: center; margin-top: 60px; }
.wb-more[hidden] { display: none; }
.wb-more-btn { display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 40px; border-radius: 10px; background: #444; color: #fff; font-family: var(--font-inter); font-weight: 600; font-size: 14px; line-height: 16.8px; transition: background-color .2s ease; }
.wb-more-btn:hover { background: #222; }

/* ---------- Blog ---------- */
.wb-blog { position: relative; overflow: hidden; background: var(--white); padding: 50px 75px 100px; text-align: center; }
.wb-blog .wb-blog-bg { position: absolute; left: -1px; top: -201px; width: 1440px; height: 1241px; pointer-events: none; background: url("/assets/images/aboutus/aboutus-hero-pattern.webp") 0 0 / 1000px auto repeat; }
.wb-blog-inner { position: relative; }
.wb-blog-title { max-width: 800px; margin-inline: auto; font-family: var(--font-gilroy); font-weight: 700; font-size: 56px; line-height: 90px; color: #000; }
.wb-blog-grid { display: grid; grid-template-columns: repeat(2, 520px); justify-content: center; gap: 20px; margin-top: 40px; padding: 20px; text-align: left; }
.wb-post { display: flex; flex-direction: column; gap: 20px; height: 100%; overflow: hidden; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px #c7c7c7; transition: box-shadow .2s ease; }
.wb-post:hover { box-shadow: inset 0 0 0 1px #9a9a9a, 0 10px 30px rgba(0, 0, 0, .06); }
.wb-post > img { width: 100%; aspect-ratio: 1; border-radius: 0; }
.wb-post-body { display: flex; flex-direction: column; gap: 30px; padding: 0 20px 20px; }
.wb-post-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-family: var(--font-gilroy); font-weight: 500; font-size: 20px; line-height: 27px; letter-spacing: -0.6px; color: #333; }
.wb-post-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-gilroy); font-size: 14px; letter-spacing: -0.6px; color: #5e5e5e; }
.wb-post-author { display: inline-flex; align-items: center; gap: 17px; font-weight: 500; line-height: 30px; }
.wb-post-author img { flex: none; width: 32px; height: 32px; border-radius: 50%; }
.wb-post-date { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; line-height: 25px; }
.wb-post-date svg { width: 16px; height: 16px; flex: none; }

/* ---------- Tablet + phone (Framer reference at 900px) ---------- */
@media (max-width: 1199px) {
  .wb-hero { padding: 150px 75px 55px; }
  .wb-hero h1 { font-size: 42px; line-height: 75px; }
  .wb-hero .wb-hero-sub { max-width: 525px; font-size: 18px; }
  .wb-hero-media { margin-top: 50px; }

  .wb-container { width: 85%; }
  .wb-title { font-size: 42px; }
  .wb-filters { margin-top: 20px; }
  .wb-field--search { width: 271px; }
  .wb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
  .wb-card img { aspect-ratio: auto; height: 251px; }

  .wb-blog { padding-inline: 50px; }
  .wb-blog-title { font-size: 42px; line-height: 75px; }
  .wb-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; padding: 20px; }
}

/* ---------- Phone (Framer reference at 390px) ---------- */
@media (max-width: 809px) {
  .wb-hero { padding: 120px 20px 25px; }
  .wb-hero h1 { font-size: 28px; line-height: 55px; }
  .wb-hero h1 img { width: 60px; height: 26px; margin: 0 17px 0 -7px; vertical-align: middle; }
  .wb-hero-sub { font-weight: 400; font-size: 16px; line-height: 20px; }
  .wb-hero .wb-hero-sub { max-width: 298px; font-size: 16px; }
  .wb-hero-media { margin-top: 34px; }

  .wb-container { width: calc(100% - 40px); }
  .wb-title { font-size: 28px; line-height: 30px; }
  .wb-filters { gap: 12px; margin-top: 40px; }
  .wb-field { width: 138px; }
  .wb-field--search { flex: 1; width: auto; min-width: 0; }
  .wb-field > span:first-child { font-size: 16px; line-height: 19.2px; }
  .wb-grid { grid-template-columns: minmax(0, 1fr); margin-top: 41px; }

  .wb-blog { padding: 75px 20px 70px; }
  .wb-blog-title { font-size: 28px; line-height: 35px; }
  .wb-blog-grid { grid-template-columns: minmax(0, 1fr); margin-top: 54px; padding: 0 20px; }
}
