/*
Theme Name: Serah Siew Portfolio Featured In
Theme URI: https://example.com/
Author: OpenAI Codex
Description: Custom WordPress theme for Serah Siew with home, work, about, news, and contact pages.
Version: 1.69
Text Domain: serah-siew-portfolio
*/

html {
  scroll-behavior: smooth;
}

body {
  background: #f7f7f5;
  color: #111111;
  font-family: "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.serah-page-content {
  min-height: 100vh;
}

.serah-portfolio-card,
.serah-news-page article,
.serah-entry-content > figure,
.serah-entry-content > .wp-block-image,
.serah-portfolio-detail-content > figure,
.serah-portfolio-detail-content > .wp-block-image {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.serah-hero-slider {
  border-radius: 0;
}

.serah-hero-slider__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 56vw, 420px);
  background: #ececea;
}

.serah-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.serah-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.serah-hero-slider__dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 220px;
}

.serah-hero-slider__dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.serah-hero-slider__dot.is-active {
  background: #ffffff;
  transform: scale(1.08);
}

.serah-hero-slider__dot:hover,
.serah-hero-slider__dot:focus-visible {
  background: #ffffff;
}

body.admin-bar .serah-site-nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .serah-site-nav {
    top: 46px;
  }
}

@media screen and (max-width: 767px) {
  .serah-hero-slider__viewport {
    aspect-ratio: 16 / 9;
    min-height: clamp(150px, 44vw, 210px);
  }

  .serah-hero-slider__dots {
    right: 14px;
    bottom: 14px;
    gap: 8px;
    max-width: 180px;
  }

  .serah-hero-slider__dot {
    width: 12px;
    height: 12px;
  }
}

.serah-news-page .news-title,
.serah-news-page .featured-news h2,
.serah-news-page .side-news h2,
.serah-news-page .side-news h3,
.serah-news-page .news-card h2,
.serah-news-page .news-card h3 {
  font-size: 20px !important;
  line-height: 1.14 !important;
  margin-top: 0 !important;
}

.serah-news-page .news-meta {
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.serah-news-page .news-text,
.serah-news-page .featured-news p,
.serah-news-page .side-news p,
.serah-news-page .news-card p {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

@media screen and (max-width: 767px) {
  .serah-news-page .news-title,
  .serah-news-page .featured-news h2,
  .serah-news-page .side-news h2,
  .serah-news-page .side-news h3,
  .serah-news-page .news-card h2,
  .serah-news-page .news-card h3 {
    font-size: 17px !important;
    line-height: 1.14 !important;
  }

  .serah-news-page .news-meta {
    font-size: 11px !important;
  }

  .serah-news-page .news-text,
  .serah-news-page .featured-news p,
  .serah-news-page .side-news p,
  .serah-news-page .news-card p {
    font-size: 13px !important;
    line-height: 1.58 !important;
  }
}

.serah-entry-content > * + * {
  margin-top: 1.4rem;
}

.serah-entry-content img,
.serah-entry-content figure,
.serah-entry-content .wp-block-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.serah-entry-content figcaption,
.serah-entry-content .wp-element-caption {
  margin-top: 0.75rem;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

@keyframes serahFadeSwapA {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.serah-swap-frame {
  position: relative;
  overflow: hidden;
}

.serah-swap-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.serah-swap-image--a {
  opacity: 1;
}

.serah-swap-image--b {
  opacity: 0;
}

.serah-portfolio-card:hover .serah-swap-image--a,
.serah-portfolio-card:focus-within .serah-swap-image--a,
.serah-portfolio-card:active .serah-swap-image--a,
.serah-portfolio-card.is-touch-preview .serah-swap-image--a {
  opacity: 0;
}

.serah-portfolio-card:hover .serah-swap-image--b,
.serah-portfolio-card:focus-within .serah-swap-image--b,
.serah-portfolio-card:active .serah-swap-image--b,
.serah-portfolio-card.is-touch-preview .serah-swap-image--b {
  opacity: 1;
}

@keyframes serahClientsMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.serah-clients-marquee,
.serah-featured-marquee {
  overflow: hidden;
  position: relative;
}

.serah-clients-track,
.serah-featured-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  animation: serahClientsMarquee 28s linear infinite;
}

.serah-clients-marquee:hover .serah-clients-track,
.serah-featured-marquee:hover .serah-featured-track {
  animation-play-state: paused;
}

.serah-featured-logo,
.serah-client-logo {
  display: block;
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.serah-featured-logo {
  height: 34px;
}

.serah-client-logo {
  height: 52px;
}

@media screen and (min-width: 768px) {
  .serah-featured-logo {
    height: 44px;
  }

  .serah-client-logo {
    height: 64px;
  }
}

.serah-search summary::-webkit-details-marker {
  display: none;
}

.serah-search[open] summary {
  color: #c40000;
}

.news-title {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 500;
  color: #5a5a5a;
  text-align: left;
  letter-spacing: -0.01em;
  margin: 0 !important;
}

.featured-news h2,
.side-news h2,
.side-news h3,
.news-card h2,
.news-card h3 {
  font-family: "Inter", sans-serif;
  font-size: 24px !important;
  line-height: 1.18 !important;
  font-weight: 500 !important;
  color: #5a5a5a !important;
  margin: 0 !important;
}

.news-meta {
  font-size: 13px;
  color: #9a9a9a;
}

.news-text {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: #6b6b6b;
  text-align: justify;
}

.featured-news p,
.side-news p,
.news-card p {
  font-family: "Inter", sans-serif;
  font-size: 16px !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
  color: #6b6b6b !important;
}

.work-card-title,
.portfolio-title {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
  color: #5a5a5a;
}

.about-section-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.about-section-list {
  font-size: 16px;
  line-height: 1.72;
}

.about-year {
  font-weight: 700;
}

.about-profile-title {
  font-family: "Inter", sans-serif;
  font-size: 41px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: #4a4a4a;
  margin-bottom: 12px;
}

.profile-content,
.profile-content p {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  color: #6b6b6b;
}

.profile-content strong {
  font-weight: 500;
  color: #4a4a4a;
}

.serah-portfolio-detail-content p {
  margin: 0 0 1.5rem;
}

.serah-portfolio-detail-content p:last-child {
  margin-bottom: 0;
}

.serah-portfolio-detail-content .wp-block-columns {
  display: block;
  gap: 0;
}

.serah-portfolio-detail-content .wp-block-column {
  flex-basis: 100% !important;
  margin: 0 0 2rem !important;
}

.serah-portfolio-detail-content .wp-block-column:last-child {
  margin-bottom: 0 !important;
}

.serah-portfolio-detail-content figure {
  margin: 0 0 2rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.serah-portfolio-detail-content .wp-block-image,
.serah-portfolio-detail-content figure.wp-block-image,
.serah-portfolio-detail-content .wp-caption,
.serah-portfolio-detail-content .aligncenter,
.serah-portfolio-detail-content .alignleft,
.serah-portfolio-detail-content .alignright {
  float: none !important;
  clear: both;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.serah-portfolio-detail-content img {
  display: block;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.serah-portfolio-detail-content figure img,
.serah-portfolio-detail-content .wp-block-image img,
.serah-portfolio-detail-content .wp-caption img {
  margin-left: auto;
  margin-right: auto;
}

.serah-portfolio-detail-content figcaption,
.serah-portfolio-detail-content .wp-caption-text,
.serah-portfolio-detail-content .blocks-gallery-caption {
  text-align: center;
}

.serah-portfolio-detail-content .wp-block-gallery,
.serah-portfolio-detail-content .blocks-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media screen and (max-width: 767px) {
  .news-title,
  .featured-news h2,
  .side-news h2,
  .side-news h3,
  .news-card h2,
  .news-card h3 {
    font-size: 18px !important;
    line-height: 1.18 !important;
  }

  .work-card-title,
  .portfolio-title {
    font-size: 18px;
    line-height: 1.32;
  }

  .about-profile-title {
    font-size: 34px;
    line-height: 1.12;
  }

  .profile-content,
  .profile-content p,
  .news-text,
  .featured-news p,
  .side-news p,
  .news-card p {
    font-size: 15px !important;
    line-height: 1.78 !important;
  }

}
