/* =============================================
     - assets/news.css
   砥 ⮫쪮  news.php
   ============================================= */

/*  ⪠  */
.an-wrap {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 30px 40px;
}

/*  ⪠: ⠪   news-layout  */
.an-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* 
    
    */

/*      */
.an-card {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  overflow: hidden;
  margin-bottom: 20px;
}

/* ⨭ -   ਭ,  १, ࠭祭   */
.an-hero-wrap {
  display: flex;
  justify-content: center;
  background: var(--white);
  overflow: hidden;
}
.an-hero-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 520px;
}

/*   */
.an-body {
  padding: 22px 28px 28px;
}

/*  誨 -  ஬ 䮭    */
.an-breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0 2px;
}
.an-breadcrumb a { color: var(--muted); }
.an-breadcrumb a:hover { color: var(--red); }
.an-breadcrumb span { color: var(--muted); }

/*  */
.an-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

/* :  + ᬮ */
.an-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.an-hits { color: #aaa; }

/*   */
.an-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}
.an-text p { margin-bottom: 1.3em; }
.an-text p:last-child { margin-bottom: 0; }
.an-text img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 1.2em 0;
  display: block;
}
.an-text h2 { font-size: 21px; font-weight: 700; margin: 1.4em 0 .5em; color: var(--navy); }
.an-text h3 { font-size: 18px; font-weight: 700; margin: 1.2em 0 .4em; }
.an-text a { color: var(--navy); text-decoration: underline; }
.an-text a:hover { color: var(--red); }
.an-text strong, .an-text b { font-weight: 700; }
.an-text ul, .an-text ol { margin: 0 0 1.2em 1.5em; }
.an-text li { margin-bottom: .5em; }
.an-text blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1.2em;
  color: var(--muted);
  font-style: italic;
  margin: 1.4em 0;
}

/*  <⠩ ⠪>  */
.an-related {
  margin-top: 0;
}

.an-related-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.an-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.an-rel-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  display: block;
  transition: box-shadow .2s;
  color: inherit;
}
.an-rel-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,.11);
  color: inherit;
}

.an-rel-img-wrap { display: block; overflow: hidden; }
.an-rel-img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: #e8e8e8;
}

.an-rel-body { padding: 9px 10px 11px; }
.an-rel-title-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.an-rel-card:hover .an-rel-title-text { color: var(--red); }
.an-rel-date { font-size: 11px; color: var(--muted); }

/* 
     -  
    */
.an-sidebar { }

.an-sidebar-inner {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /*   १ JS     */
}

.an-side-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding: 14px 14px 10px;
  flex-shrink: 0;
}

/* ᮪ - १,  ஫, 堥 ᭨ */
.an-side-list {
  overflow: hidden;
  flex: 1;
  position: relative;
}

/* 堭 ᭨ ᯨ᪠ */
.an-side-list::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}

.an-side-item {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}
.an-side-item:last-child { border-bottom: none; }

.an-side-link {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 3px;
}
.an-side-link:hover { color: var(--red); }

.an-side-date { font-size: 11px; color: var(--muted); }

.an-side-more {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.an-side-more a { font-size: 13px; color: var(--muted); }
.an-side-more a:hover { color: var(--red); }

/*   <>  */
/* २ᯮ㥬 ⨫  news.css */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(13, 31, 60, 0.35);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  z-index: 100;
  text-decoration: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--navy);
  color: var(--navy);
}

/*  ⨢  */
@media (max-width: 1100px) {
  .an-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .an-layout { grid-template-columns: 1fr; }
  /*  쭮  १ JS  㦭 -    ⥭ */
  .an-sidebar-inner {
    height: auto !important;
  }
  .an-side-list {
    height: auto !important;
    overflow: visible;
  }
  .an-side-list::after { display: none; }
  .an-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .an-wrap { padding: 10px 14px 30px; }
  .an-body { padding: 16px 16px 20px; }
  .an-title { font-size: 21px; }
  .an-text { font-size: 16px; }
  .an-related-grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-top-btn { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  .an-related-grid { grid-template-columns: 1fr 1fr; }
}