/**
 * Luthour Rich Text Default Styles
 * Based on Figma Design Specification
 * For shadow-dom rich text content rendering
 * Note: These styles do NOT apply to elements inside .com-data-slot
 */

/* ==================== Reset & Base ==================== */
:host {
  font-family: var(--globalFont);
  font-size: 16px;
  line-height: 1.5;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-headFont {
  font-family: var(--headFont);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==================== Headings ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #000000;
  margin-bottom: 32px;
}

/* Title style - 48px fixed */
.title {
  font-size: 48px;
  line-height: 40px;
  font-weight: 700;
  margin-bottom: 40px;
}

/* Heading1 - 36px */
h1 {
  font-size: 36px;
  line-height: 36px;
  margin-bottom: 32px;
}

/* Heading2 - 32px */
h2 {
  font-size: 32px;
  line-height: 32px;
  margin-bottom: 32px;
}

/* Heading3 - 24px */
h3 {
  font-size: 24px;
  line-height: 24px;
  margin-bottom: 28px;
}

/* Heading4 - 24px */
h4 {
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 28px;
}

/* Heading5 - 20px */
h5 {
  font-size: 20px;
  line-height: 24px;
  margin-bottom: 32px;
}

/* Heading6 - 18px */
h6 {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 32px;
}

/* ==================== Paragraph ==================== */
p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  margin-bottom: 16px;
  color: #000000;
}

p:last-child {
  margin-bottom: 0;
}

/* ==================== Links ==================== */
a {
  color: rgb(var(--secondaryColor-01));
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

a:active {
  opacity: 0.6;
}

/* ==================== Lists ==================== */
ul, ol {
  margin-bottom: 32px;
  padding-left: 40px;
}

ul li, ol li {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 8px;
  color: #000000;
}

ul li:last-child,
ol li:last-child {
  margin-bottom: 0;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

/* Nested lists */
ul ul, ol ol, ul ol, ol ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* ==================== Images ==================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin-bottom: 32px;
}

.swiper-slide img {
  margin-bottom: 0;
}

figure {
  margin-bottom: 32px;
}

figure img {
  margin-bottom: 0;
}

figcaption {
  font-size: 14px;
  line-height: 20px;
  color: #888888;
  margin-top: 8px;
  text-align: center;
}

/* ==================== Blockquote ==================== */
blockquote {
  background: #1D3B47;
  border-radius: 0;
  padding: 44px 70px;
  margin: 32px 0;
  position: relative;
  color: #ffffff;
}

blockquote p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 48px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.3);
  font-family: Georgia, serif;
}

/* Paragraph reference number style */
blockquote.reference-number {
  background: transparent;
  border-left: 4px solid #7938D3;
  padding: 16px 24px;
  color: #000000;
}

blockquote.reference-number p {
  color: #000000;
}

blockquote.reference-number::before {
  display: none;
}

/* ==================== Text Formatting ==================== */
strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

u {
  text-decoration: underline;
}

s, del {
  text-decoration: line-through;
}

code {
  font-family: 'Courier New', Courier, monospace;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
}

pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* ==================== Indentation ==================== */
.indent-left {
  margin-left: 40px;
}

.indent-right {
  margin-right: 40px;
}

/* ==================== Tables ==================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  border: 1px solid #cccccc;
  border-radius: 0;
  overflow: hidden;
}

thead {
  background: #fafafa;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #cccccc;
}

th {
  font-weight: 700;
  font-size: 16px;
  color: #000000;
}

td {
  font-size: 16px;
  color: #000000;
}

/* ==================== Horizontal Rule ==================== */
hr {
  border: none;
  border-top: 2px solid #cccccc;
  margin: 32px 0;
}

/* ==================== Date/Meta Information ==================== */
.meta-date, .date {
  font-size: 16px;
  line-height: 19px;
  color: #888888;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ==================== Utility Classes ==================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

/* ==================== Responsive Adjustments ==================== */
@media screen and (max-width: 768px) {
  .title {
    font-size: 36px;
    line-height: 38px;
  }

  h1 {
    font-size: 28px;
    line-height: 32px;
  }

  h2 {
    font-size: 24px;
    line-height: 28px;
  }

  h3 {
    font-size: 20px;
    line-height: 24px;
  }

  h4 {
    font-size: 18px;
    line-height: 22px;
  }

  h5 {
    font-size: 16px;
    line-height: 20px;
  }

  h6 {
    font-size: 16px;
    line-height: 20px;
  }

  blockquote {
    padding: 24px 32px;
  }

  ul, ol {
    padding-left: 24px;
  }

  .indent-left {
    margin-left: 24px;
  }

  .indent-right {
    margin-right: 24px;
  }
}

@media screen and (max-width: 480px) {
  .title {
    font-size: 28px;
    line-height: 32px;
  }

  h1 {
    font-size: 24px;
    line-height: 28px;
  }

  h2 {
    font-size: 20px;
    line-height: 24px;
  }

  blockquote {
    padding: 16px 20px;
  }

  blockquote::before {
    font-size: 32px;
    top: 16px;
    right: 16px;
  }
}

/* ==================== Exception: .com-data-slot ==================== */
/* Reset all styles for elements inside .com-data-slot */
.com-data-slot *,
.com-data-slot *::before,
.com-data-slot *::after {
  all: revert;
}
