@charset "utf-8";

.p-hero {
  background-color: var(--color-corp-base);
  color: var(--color-text-body);
}
.p-hero--with-bg {
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  background-color: var(--color-bg-body, #0e1521);
  padding: 120px 0 100px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.p-hero--with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 21, 33, 0.5);
  z-index: 0;
}
.p-hero--with-bg .l-container {
  position: relative;
  z-index: 1;
  width: 100%;
}
.p-hero__sub {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--color-highlight);
}
.p-hero__title {
  font-size: 2.8rem;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.p-hero__desc {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  opacity: 0.9;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 768px) {
  .p-hero--with-bg {
    padding: 100px 0 80px;
    min-height: auto;
  }
  .p-hero__title {
    font-size: 2rem;
  }
}

.p-concept-card {
  background: #ffffff;
  color: var(--color-light-text, #111827);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 32px 24px;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.p-concept-card:hover {
  transform: translateY(-4px);
}
.p-concept-card--problem {
  border-top: 3px solid var(--color-action, #d3381c);
}
.p-concept-card--problem:hover {
  box-shadow: 0 8px 24px rgba(211, 56, 28, 0.1);
}
.p-concept-card--solution {
  border-top: 3px solid var(--color-highlight, #83ccd2);
}
.p-concept-card--solution:hover {
  box-shadow: 0 8px 24px rgba(131, 204, 210, 0.15);
}
.p-concept-card__title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--color-light-text, #111827);
}
.p-concept-card__subtitle {
  color: var(--color-corp-base, #1c305c);
}
.p-concept-card__img {
  width: 100%;
  margin-top: 0;
  margin-bottom: 4px;
  border-radius: 4px;
  overflow: hidden;
}
.p-concept-card__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 120 / 63;
  object-fit: cover;
  display: block;
}
.p-concept-card__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-light-text-muted, #4b5563);
  margin-top: 10px;
}

/* --- News --- */
.p-news-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.p-news-section__title {
  margin-bottom: 0;
}
.p-news-section__link {
  font-size: 0.9rem;
}
.p-news-list {
  display: flex;
  flex-direction: column;
}
.p-news-list__item {
  display: flex;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 4px;
}
.p-news-list__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.p-news-list__date {
  flex-shrink: 0;
  width: 120px;
  color: var(--color-highlight);
  font-size: 0.95rem;
  font-weight: bold;
}
.p-news-list__title {
  flex-grow: 1;
  font-size: 1.05rem;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-news-list__btn {
  flex-shrink: 0;
}
.p-news-list__btn .c-btn {
  padding: 8px 20px;
  font-size: 0.85rem;
}
@media screen and (max-width: 768px) {
  .p-news-list__item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
  }
  .p-news-list__date {
    width: 100%;
    margin-bottom: -5px;
  }
  .p-news-list__title {
    width: 100%;
    white-space: normal;
    margin-bottom: 10px;
  }
  .p-news-list__btn {
    margin-left: auto;
  }
}

.p-news-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.p-news-controls__search {
  min-width: 250px;
}

.c-card--news {
  display: flex;
  flex-direction: column;
}
.c-card--news__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}
.c-card--news__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 10px;
}
.c-card--news__date {
  font-size: 0.9rem;
  white-space: nowrap;
}
.c-card--news__tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.c-card--news__external {
  margin-top: auto;
  padding-top: 15px;
}
.c-card--news__external-text {
  font-size: 0.8rem;
}

.p-news-detail {
  max-width: 800px;
  margin: 0 auto;
}
.p-news-detail__header {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
}
.p-news-detail__date {
  font-size: 1rem;
  color: var(--color-highlight);
  margin-bottom: 10px;
}
.p-news-detail__title {
  font-size: 2.2rem;
  line-height: 1.4;
  color: #fff;
}
.p-news-detail__thumb {
  margin-bottom: 40px;
}
.p-news-detail__thumb img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}
@media screen and (max-width: 768px) {
  .p-news-detail__title {
    font-size: 1.6rem;
  }
}

.p-entry-content {
  line-height: 1.8;
  font-size: 1.05rem;
}
.p-entry-content p {
  margin-bottom: 1.5em;
}
.p-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 30px 0;
}
.p-entry-content h2,
.p-entry-content h3 {
  font-family: var(--font-heading);
  color: var(--color-highlight);
  margin: 50px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(131, 204, 210, 0.2);
}
.p-entry-content a {
  color: var(--color-highlight);
  text-decoration: underline;
}
.p-entry-content a:hover {
  text-decoration: none;
  opacity: 0.8;
}
.p-entry-content ul,
.p-entry-content ol {
  margin: 20px 0 20px 20px;
}
.p-entry-content li {
  margin-bottom: 0.5em;
}

.p-news-asset {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
}
.p-news-asset__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p-news-asset__title {
  font-size: 1.1rem;
  margin: 0;
}
.p-news-asset__icon {
  margin-right: 8px;
}
.p-news-asset__btn {
  padding: 8px 15px;
  font-size: 0.8rem;
}
.p-pdf-viewer {
  position: relative;
  padding-top: 141.4%;
  width: 100%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #333;
}
.p-pdf-viewer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Rental Detail & Form --- */
.p-rental-detail {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 992px) {
  .p-rental-detail {
    flex-direction: row;
  }
}
.p-rental-detail__img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.p-rental-detail__img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-color: var(--color-light-border-light, #e5e7eb);
}
.p-rental-detail__info {
  flex: 1;
}
.p-rental-detail__specs {
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 30px;
  background-color: var(--color-light-bg, #ffffff);
  border: 1px solid var(--color-light-border-light, #e5e7eb);
  color: var(--color-light-text, #111827);
}
.p-rental-detail__spec-row {
  display: flex;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--color-light-border-light, #e5e7eb);
}
.p-rental-detail__spec-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.p-rental-detail__spec-label {
  width: 120px;
  font-weight: bold;
  opacity: 0.7;
}

.p-rental-calc {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--color-highlight);
  background-color: var(--color-light-bg, #ffffff);
  border-color: var(--color-light-border-light, #e5e7eb);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.p-rental-calc__group {
  margin-bottom: 20px;
}
.p-rental-calc__label {
  font-weight: bold;
  opacity: 0.8;
  margin-bottom: 5px;
  display: block;
}
.p-rental-calc__input-wrap {
  display: flex;
  gap: 15px;
  align-items: center;
}
.p-rental-calc__input-wrap input {
  flex: 1;
}
.p-rental-calc__result {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  border-top-color: var(--color-light-border-light, #e5e7eb);
}
.p-rental-calc__price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-highlight);
  line-height: 1.2;
}
.p-rental-calc__status {
  font-size: 0.95rem;
  margin-bottom: 20px;
  min-height: 1.5em;
}

/* --- Upgrade Diagnostic Wizard --- */
.p-upgrade-card {
  border-top: 4px solid var(--color-highlight, #83ccd2);
}
.p-upgrade-card--software {
  border-top: 4px solid var(--color-functional, #005243);
}
.p-upgrade-card--condition {
  border-top: 4px solid var(--color-action, #d3381c);
}

.p-upgrade-trigger {
  background-color: rgba(131, 204, 210, 0.05);
  border: 2px dashed var(--color-highlight, #83ccd2);
  cursor: pointer;
  transition: background-color 0.3s;
}
.p-upgrade-trigger:hover {
  background-color: rgba(131, 204, 210, 0.15);
}
.p-upgrade-group-title {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 4px;
  margin: 20px 0 15px;
  font-weight: bold;
  border-left: 3px solid var(--color-highlight, #83ccd2);
  font-size: 0.95rem;
  color: var(--color-text-body);
}

@keyframes flashHighlight {
  0% {
    background-color: var(--color-primary, #65318e);
    color: #fff;
  }
  100% {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text-body);
  }
}
.is-flash {
  animation: flashHighlight 1.5s ease-out;
}
