/* Article Title & Info Styles */
.little-page-central {
    width: 1200px !important;
    max-width: 95% !important;
}

/* Global Black Title Box Style */
.central .title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.central .title h1 {
    background: #2d2d2d;
    color: #fff;
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    gap: 8px;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
}

.central .title h1 i {
    font-size: 1.2rem;
    color: #fff;
}    max-width: 95% !important;
}
.little-container {
    width: 100% !important;
}
.little_texts .top-title {
  font-size: 2.5rem;
  line-height: 4rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  padding: 0 4rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  color: #0096ff;
  border-bottom: 2px solid #0096ff;
  display: inline-block;
  width: auto;
  margin: 0 auto 2rem;
}

.little_texts .info {
  color: #a1a1a1;
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

.little_texts .info span {
  font-size: 1.2rem;
  font-family: 'Noto Serif SC', serif;
}

.little_texts .info i {
  font-style: normal;
  margin: 0 0.3rem;
  color: #575757;
}

/* Traffic Lights */
.traffic-lights {
    display: flex;
    gap: 8px;
    padding: 1.5rem 3rem 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background-color: #ff5f56; border: 1px solid #e0443e; }
.dot.yellow { background-color: #ffbd2e; border: 1px solid #dea123; }
.dot.green { background-color: #27c93f; border: 1px solid #1aab29; }

/* Article Meta Box (Avatar & Info) */
.article-meta-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem 2rem;
    margin: 0 auto 2rem;
    background: #f9f9f9;
    border-radius: 50px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.article-meta-box .meta-avatar img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    border: 2px solid #fff;
}

.article-meta-box .meta-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.article-meta-box .meta-author {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Serif SC', serif;
}

.article-meta-box .meta-desc {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
    font-weight: 400;
}

/* Card Container */
.central .little_texts {
  background: #fff;
  padding: 1rem 0 2rem;
  border-radius: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid #eaeaea !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1rem; /* Reduced from 2rem */
  position: relative;
}

.central .little_texts:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Encrypted Card Styles */
.little_texts.encrypted {
    position: relative;
    overflow: hidden;
    background: #fff;
    align-items: stretch;
}

/* Article Header */
.article-header {
    display: flex;
    align-items: center;
    padding: 1rem 3rem;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
}

.article-header .avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #fff;
}

.article-header .meta {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.article-header .title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #333;
    font-family: 'Noto Serif SC', serif;
}

.article-header .date {
    font-size: 0.95rem;
    color: #999;
    margin: 5px 0 0 0;
    font-weight: normal;
}

/* Preview Box */
.preview-box {
    width: auto;
    margin: 0.5rem 3rem 2rem;
    background-color: #fcfcfc;
    border: 1px dashed #e0e0e0;
    border-radius: 12px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
    padding: 2rem;
    box-sizing: border-box;
}

/* Encrypted Header */
.encrypted-header {
    display: flex;
    align-items: center;
    padding: 1rem 3rem;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.encrypted-header img {
    width: 4rem !important;
    height: 4rem !important;
    border-radius: 50% !important;
    margin: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    max-height: none !important;
    border: 2px solid #fff;
}

.encrypted-info {
    text-align: left;
}

/* Encrypted Overlay */
.encrypted-overlay {
    background: repeating-linear-gradient(
        45deg,
        #f9f9f9,
        #f9f9f9 15px,
        #f0f0f0 15px,
        #f0f0f0 30px
    );
    width: auto;
    margin: 10px 3rem 30px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    border-radius: 12px;
    border: 1px dashed #e0e0e0;
}

.encrypted-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 10px;
    color: #666;
    fill: #666;
}

.encrypted-text {
    font-size: 1rem;
    font-family: 'Noto Serif SC', serif;
}

/* Button Detail */
.btn-detail {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 2rem;
    background: #0096ff;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    align-self: flex-end;
    margin-right: 3rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 150, 255, 0.3);
    width: auto !important;
    font-weight: 500;
}

.btn-detail:hover {
    background: #007acc;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 150, 255, 0.4);
    color: #fff;
}

.btn-detail i {
    margin-left: 5px;
    color: #fff !important;
}

/* Remove Italics Globally in Card */
.little_texts i { font-style: normal !important; color: inherit; }




/* Restored Content Styles for Detail Page */

.file {
  width: 90%;
  margin: 1rem auto 2rem;
  text-align: left;
  font-size: 1.2rem;
  line-height: 2.5rem;
  letter-spacing: 0.2rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 400;
}

.little_texts img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  box-shadow: 0 4px 8px 0 rgb(28 31 33 / 15%);
  border-radius: 12px;
  margin: 1.5rem 0;
  display: block; /* Ensure it behaves as a block element */
}

/* Fix for icons/images within content that shouldn't be stretched */
.little_texts .icon, .little_texts svg.icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: inline-block;
    vertical-align: middle;
}

/* Specific fix for the end-of-article icon */
.line .icon {
    width: 200px !important;
    height: 200px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    display: block;
}

/* Fix for user uploaded images that are small/icons (optional heuristic) */
.little_texts img[width][height] {
    width: auto !important; /* Respect original width if attribute exists */
    max-width: 100%;
}

.little_texts img:hover {
  cursor: url(../cur/hover.cur), pointer;
}

.little_texts .little_icon {
    width: 1em !important;
    height: 1em !important;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.little_texts h1,
.little_texts h2,
.little_texts h3 {
  position: relative;
  padding: 0.5rem 1rem;
  padding-left: 1.5rem;
  box-sizing: border-box;
  border-radius: .35rem;
  margin: 0.8rem 0;
  font-size: 1.5rem;
  line-height: 1.5em;
  font-weight: 700;
}

.little_texts h1 { background: #e5edff; color: #007bff; }
.little_texts h2 { background: #f3e7ff; color: #7f00ff; }
.little_texts h3 { background: #ffe7ec; color: #ff0035; }

.little_texts h1::before,
.little_texts h2::before,
.little_texts h3::before {
  content: "";
  position: absolute;
  background: #ffffff;
  width: 4px;
  height: 70%;
  border-radius: 10rem;
  top: 50%;
  left: .95rem;
  transform: translate(-50%, -50%);
}

.little_texts h4,
.little_texts h5,
.little_texts h6 {
  font-size: 1.5rem;
  line-height: 1.5em;
  color: #373737;
  font-weight: 700;
  margin: 0.8rem 0;
}

.little_texts h4 { border-bottom: 1px solid #bfbfbf; }
.little_texts h5 { border-bottom: 1px dashed #bfbfbf; }

.little_texts b { font-weight: 700; }
.little_texts s { color: #ff9191; }
.little_texts i { font-style: normal; color: #575757; }

.little_texts iframe {
  width: 100%;
  height: 350px;
  border-radius: 25px;
  border: 2px solid #d9d9d9d1;
  box-shadow: 2px 1px 15px rgb(36 37 38 / 44%);
  margin: 20px 0;
}

.little_texts code {
  padding: 0.2rem 0.3rem;
  border-radius: 0.4rem;
  font-size: 1rem;
  color: #ff5916;
  background-color: rgb(255 241 221);
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  margin: 0 .3rem;
}

.little_texts quote {
  display: block;
  width: 100% !important;
  padding: 1rem;
  border-left: 4px solid #fd7e14;
  border-radius: .35rem;
  color: #fd7e14 !important;
  background-color: rgba(253, 126, 20, .1) !important;
  box-sizing: border-box;
  font-weight: 700;
  line-height: 1.5em;
}

.little_texts hr {
  height: 5px;
  border: none;
  border-top: 4px dotted #ffa1a7;
  text-align: center;
  width: 75%;
  margin: 35px auto;
}

.little_texts video {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0px 6px 20px rgb(122 122 122 / 35%);
}

.line {
  padding: 1rem 0 1rem;
  border-top: 1px solid #e3e3e3;
  width: 90%;
  text-align: center;
  font-weight: 300;
  letter-spacing: 2px;
  color: #b5b5b5;
  margin: 0 auto;
}

.line-top {
  margin: 2rem auto;
  border-top: 1px solid #e3e3e3;
  width: 90%;
}
