/* Techlavate overrides for the theme in main.css. Load after main.css. */

/* ---------- Logo ---------- */
.brand-logo { width: auto !important; height: 48px !important; max-width: none; display: block; }
.footer-logo-area .brand-logo { height: 60px !important; margin-bottom: 20px; }
.mobile-header .brand-logo { height: 38px !important; }
.eyebrow-mark { width: 20px !important; height: auto !important; margin-right: 8px !important; vertical-align: middle; }
#loading-icon img { width: 48px; height: auto; }
.heading1 h5 { line-height: 24px; }

/* ---------- Header ---------- */
.header-area.homepage1 .header-elements { align-items: center; }
.main-menu ul li a.active { font-weight: 600; }
.header-area .header-btn2 span { background: var(--ztc-text-text-4); color: #fff; }
.mobile-sidebar .header-btn2 { text-align: center; }

/* ---------- Buttons ---------- */
button.header-btn1, button.header-btn2 { border: 0; }
.header-btn1 span, .header-btn2 span { vertical-align: middle; }
a:focus-visible, button:focus-visible { outline: 2px solid #4E2FDA; outline-offset: 2px; }

/* ---------- Service cards ---------- */
.service1-section-area .service-all-boxes-area {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.service1-section-area .service-all-boxes-area .service-boxarea,
.service1-section-area .service-all-boxes-area .service-boxarea.box2,
.service1-section-area .service-all-boxes-area .service-boxarea.box3,
.service1-section-area .service-all-boxes-area .service-boxarea.box4 {
  border-radius: 12px;
  padding: 36px 24px;
  height: 100%;
}
.service1-section-area .service-all-boxes-area .service-boxarea .space40 { height: 20px; }
.service1-section-area .service-all-boxes-area .service-boxarea > a { min-height: 60px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 1199px) { .service1-section-area .service-all-boxes-area { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .service1-section-area .service-all-boxes-area { grid-template-columns: 1fr; } }

.service1-section-area .service-all-boxes-area1 { display: block; }
.service1-section-area .service-all-boxes-area1 > .row { justify-content: center; row-gap: 24px; }
.service1-section-area .service-all-boxes-area1 .service-boxarea {
  height: 100%;
  margin: 0;
  border-radius: 12px;
  padding: 36px 24px;
}
.service1-section-area .service-all-boxes-area1 .service-boxarea .space40 { height: 20px; }
.service1-section-area .service-all-boxes-area1 .service-boxarea > a { min-height: 60px; display: flex; align-items: center; justify-content: center; }
.service1-section-area .service-all-boxes-area1 .service-boxarea > i,
.service1-section-area .service-all-boxes-area1 .service-boxarea > svg { font-size: 44px; color: #4E2FDA; }

/* ---------- Case study strip ---------- */
.case1-section-area { padding-top: 60px; }
.case1-section-area .cs_case_study.cs_style_1 { overflow: hidden; }
.case1-section-area .cs_case_study_thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 11, 14, .1) 30%, rgba(9, 11, 14, .85) 100%);
}
.case1-section-area .content-area p { color: #fff !important; }
@media (min-width: 992px) {
  .case1-section-area .content-area1 {
    transform: none;
    writing-mode: vertical-rl;
    rotate: 180deg;
    width: auto;
    left: 50%;
    translate: -50% 0;
    bottom: 24px;
    max-height: 340px;
  }
  .case1-section-area .content-area1 a { line-height: 26px; width: auto; }
}
@media (max-width: 991px) {
  .case1-section-area .cs_case_study_1_list .cs_case_study.cs_style_1 { min-height: 240px; }
  .case1-section-area .content-area1 { transform: none; width: auto; left: 24px; right: 24px; bottom: 24px; }
}

/* ---------- Testimonials ---------- */
.testimonial1-section-area .testimonials-slider-area.owl-carousel .owl-stage-outer { overflow: hidden !important; }
.testimonial1-section-area .testimonials-slider-area .testimonial-boxarea { overflow: hidden; background: #fff; border-color: #ddd6f7; }
.testimonial1-section-area .testimonials-slider-area .testimonial-boxarea .images img { object-position: center top; left: 0; }
.testimonial4-section-area .owl-stage { display: flex; }
.testimonial4-section-area .owl-item { display: flex; }
.testimonial4-section-area .owl-item > .testimonial-boxarea { width: 100%; }

/* ---------- Call to action band ---------- */
.cta-section-area { overflow: hidden; }
.cta-section-area .cta-header-area { background: transparent; z-index: 1; }
.cta-section-area .cta-bg1, .cta-section-area .cta-bg2 { pointer-events: none; }

/* ---------- Inner page sections ---------- */
.circle-progress-area .progresbar { text-align: center; }
.circle-progress-area .progresbar small { display: block; margin-top: 8px; }
.choose-section-area { padding-bottom: 80px; }
.search-filter-area .nice-select { float: none; width: 100%; height: 50px; line-height: 46px; border: 2px solid #e5e7eb; border-radius: 10px; }
.search-filter-area .nice-select .list { width: 100%; }
.copyright-area .pera a { color: #4E2FDA; }

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
  /* decorative stars sat on top of the headings */
  .heading2 > .star2, .heading2 > .star3 { display: none; }
  .hero1-section-area .elements1 { display: none; }
  .heading1 h5 { padding: 8px 12px; }
  /* this copy leaves its dark photo on small screens */
  .service2-section-area .images-content-area .content-area > p { color: var(--ztc-text-text-3) !important; }
}

/* ---------- Final details ---------- */
@media (min-width: 992px) {
  .service1-section-area .service-all-boxes-area1 > .row > [class*="col-"] { flex: 0 0 33.3333%; max-width: 33.3333%; width: 33.3333%; }
  .service2-section-area .images-content-area .img1 img { filter: brightness(.45) !important; }
  .service2-section-area .images-content-area .content-area > p { color: #fff !important; opacity: 1; }
}
.search-filter-area { position: relative; }
.works-inner-section-area .header-btn1[style*="background-color: white"] span { background: #4E2FDA; color: #fff; }

/* ---------- Blog cards and articles ---------- */
.post-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid #e8e6f3; border-radius: 16px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(46, 49, 146, .12); }
.post-card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #efebfd; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.post-card-category { color: #4E2FDA; font-size: 14px; font-weight: 600; }
.post-card h3 { margin: 10px 0 12px; font-size: 21px; line-height: 1.3; font-weight: 700; }
.post-card h3 a { color: #14142b; }
.post-card h3 a:hover { color: #4E2FDA; }
.post-card p { color: #5b5d73; font-size: 16px; line-height: 1.6; }
.post-card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; color: #6b6d85; font-size: 14px; }

.heading1 h1.article-title { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.15; max-width: 880px; margin: 0 auto; }
.article-body { max-width: 780px; margin: 0 auto; color: #374151; font-size: 18px; line-height: 1.8; overflow-wrap: break-word; }
.article-body > * + * { margin-top: 20px; }
.article-body h2 { margin-top: 48px; color: #14142b; font-size: 30px; line-height: 1.25; font-weight: 700; }
.article-body h3 { margin-top: 36px; color: #14142b; font-size: 23px; line-height: 1.3; font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 26px; }
.article-body ul, .article-body ul li { list-style: disc; }
.article-body ol, .article-body ol li { list-style: decimal; }
.article-body li { margin-top: 8px; }
.article-body li::marker { color: #4E2FDA; }
.article-body a { color: #4E2FDA; text-decoration: underline; }
.article-body strong { color: #14142b; font-weight: 700; }
.article-body blockquote { padding: 20px 26px; border-radius: 14px; background: #f4f1fe; color: #14142b; font-size: 20px; }
.article-body blockquote p { margin: 0; }
.article-body figure { margin: 36px 0; }
.article-body figure img { width: 100%; height: auto; border-radius: 16px; border: 1px solid #e8e6f3; }
.article-body figcaption { margin-top: 10px; color: #6b6d85; font-size: 15px; text-align: center; }
.article-body figure.table { overflow-x: auto; border: 1px solid #e8e6f3; border-radius: 14px; }
.article-body table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.article-body th { background: #f4f1fe; color: #14142b; font-weight: 700; text-align: left; }
.article-body th, .article-body td { padding: 13px 18px; border-bottom: 1px solid #e8e6f3; vertical-align: top; }
.article-body tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) {
  .article-body figure.image { overflow-x: auto; }
  .article-body figure.image img { width: 720px; max-width: none; }
  .article-body figcaption { position: sticky; left: 0; text-align: left; }
}

/* ---------- Footer bottom bar ---------- */
.footer1-section-area .copyright-area.site-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 24px 0; text-align: left; }
.site-legal p { margin: 0; font-size: 15px; line-height: 1.5; }
.footer1-section-area .site-legal ul { display: flex; gap: 24px; margin: 0; }
#reatech-credit { min-height: 28px; }
#reatech-credit a { transition: transform .2s, box-shadow .2s; }
#reatech-credit a:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 20, 43, .12); }
@media (max-width: 767px) {
  .footer1-section-area .copyright-area.site-legal { flex-direction: column; justify-content: center; text-align: center; }
}
