/* company-news-static.css */
* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      font-family: var(--font);
      color: #334155;
      background-color: #ffffff;
      line-height: 1.6;
    }
    
    a {
      text-decoration: none;
      color: inherit;
    }/* Page Content Body */
    .detail-body {
      max-width: var(--content-width);
      margin: 4rem auto;
      padding: 0 1.5rem;
      min-height: 50vh;
    }
    .sv-page-title {
      font-weight: 800;
      text-align: center;
      color: var(--dark, #0f172a);
      margin: 0 0 2rem;
    }

    /* Category Tab controls */
    .sv-cat-tabs {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-bottom: 3rem;
    }
    .sv-cat-tab {
      background: #f1f5f9;
      color: #475569;
      border: 1px solid #e2e8f0;
      padding: 0.6rem 1.25rem;
      font-size: 0.92rem;
      font-weight: 600;
      border-radius: 30px;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.2s;
    }
    .sv-cat-tab:hover {
      background: #e2e8f0;
      color: #1e293b;
    }
    .sv-cat-tab.active {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
    }

    /* Empty state */
    .empty-state {
      text-align: center;
      padding: 5rem 2rem;
      background: #f8fafc;
      border-radius: 12px;
      border: 1px dashed #cbd5e1;
      color: #64748b;
      max-width: 600px;
      margin: 0 auto;
    }
    .empty-state .material-icons {
      font-size: 4rem;
      margin-bottom: 1rem;
      color: #cbd5e1;
    }
    .empty-state p {
      font-size: 1.1rem;
      font-weight: 600;
    }

    /* Grid Layout - 2 / 3 columns for news list */
    .news-grid {
      display: grid;
      gap: 2rem;
      grid-template-columns: repeat(3, 1fr);
    }
    .news-grid.cols-2 {
      grid-template-columns: repeat(2, 1fr);
      max-width: 860px;
      margin: 0 auto;
    }
    
    /* Layout - List layout (horizontal alignment) */
    .news-grid.list {
      grid-template-columns: 1fr;
      max-width: 800px;
      margin: 0 auto;
      gap: 1.5rem;
    }
    .news-grid.list .news-card {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 1.5rem;
    }
    .news-grid.list .news-card-img {
      width: 240px;
      height: 160px;
      aspect-ratio: unset;
      flex-shrink: 0;
      margin: 1rem 0 1rem 1rem;
      border-radius: 8px;
    }
    .news-grid.list .news-card-body {
      padding: 1.25rem 1.25rem 1.25rem 0;
    }
    
    .news-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.03);
      cursor: pointer;
      transition: transform 0.25s, box-shadow 0.25s;
      display: flex;
      flex-direction: column;
    }
    .news-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    }
    .news-card-img {
      width: 100%;
      aspect-ratio: 16/10;
      position: relative;
      background: #cbd5e1;
      overflow: hidden;
    }
    .news-card-img img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: #f8fafc;
    }
    .news-no-img {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #cbd5e1;
    }
    .news-no-img .material-icons {
      font-size: 3rem;
      color: #94a3b8;
    }
    .news-card-body {
      padding: 1.25rem;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .news-date {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 0.5rem;
    }
    .news-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 0.5rem;
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 2.8rem;
    }
    .news-excerpt {
      font-size: 0.88rem;
      color: #64748b;
      margin-bottom: 1.25rem;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      flex: 1;
    }
    .news-read-more {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--primary);
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }

    /* ── Single News Detail Styles ── */
    .news-single {
      max-width: 800px;
      margin: 0 auto;
    }
    .news-img-carousel {
      position: relative;
      margin-bottom: 2.5rem;
    }
    .carousel-main {
      position: relative;
      width: 100%;
      height: 450px;
      border-radius: 12px;
      overflow: hidden;
      background: #0f172a;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }
    .carousel-img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }
    .carousel-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(15, 23, 42, 0.4);
      backdrop-filter: blur(4px);
      border: none;
      color: #ffffff;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 5;
    }
    .carousel-nav.prev { left: 1rem; }
    .carousel-nav.next { right: 1rem; }
    .carousel-nav .material-icons { font-size: 1.8rem; }
    
    .carousel-counter {
      text-align: center;
      font-size: 0.88rem;
      font-weight: 600;
      color: #64748b;
      margin-top: 0.75rem;
    }
    .carousel-thumbs {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 1rem;
      overflow-x: auto;
      padding-bottom: 0.5rem;
    }
    .carousel-thumbs img {
      width: 80px;
      height: 60px;
      object-fit: contain;
      background: #f8fafc;
      border-radius: 6px;
      cursor: pointer;
      opacity: 0.5;
      border: 2px solid transparent;
    }
    .carousel-thumbs img.active {
      opacity: 1;
      border-color: var(--primary);
    }

    .news-content {
      font-size: 1.12rem;
      line-height: 1.9;
      color: #334155;
      margin-bottom: 2.5rem;
      white-space: pre-line;
      text-align: justify;
      overflow-wrap: break-word;
      word-break: break-word;
    }
    .news-content-date {
      display: flex;
      gap: 1.5rem;
      font-size: 0.88rem;
      color: #64748b;
      font-weight: 600;
      padding: 1rem 0;
      border-top: 1px solid #e2e8f0;
      border-bottom: 1px solid #e2e8f0;
      margin-bottom: 2.5rem;
    }
    .nc-meta-item {
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }
    .nc-meta-item .material-icons {
      font-size: 1.1rem;
    }

    /* Attachment Download Button */
    .news-attachment {
      margin-bottom: 3.5rem;
    }
    .attachment-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1.5rem;
      background: var(--primary);
      color: #ffffff;
      font-weight: 600;
      border-radius: 6px;
      font-size: 0.92rem;
      transition: opacity 0.2s;
    }
    .attachment-btn:hover {
      opacity: 0.9;
    }

    /* Video Embed grid */
    .news-videos {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .news-video-wrap {
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(0,0,0,0.05);
      background: #000000;
    }
    .news-video-el {
      width: 100%;
      aspect-ratio: 16/9;
      display: block;
    }
    .news-yt-wrap {
      position: relative;
      padding-bottom: 56.25%;
      height: 0;
    }
    .news-yt-wrap iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    /* Scroll top button */
    .scroll-top-btn {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      z-index: 200;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: none;
      background: var(--primary);
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 16px rgba(0,0,0,.2);
      transition: opacity 0.2s, transform 0.2s;
      opacity: 0;
      pointer-events: none;
    }
    .scroll-top-btn.visible {
      opacity: 1;
      pointer-events: all;
    }

    /* Responsive */
    @media (max-width: 900px) {
      .news-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .news-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 768px) {
      .navbar-links {
        display: none;
      }
      .navbar-hamburger {
        display: block;
      }
      .news-grid.list .news-card {
        flex-direction: column;
        align-items: flex-start;
      }
      .news-grid.list .news-card-img {
        width: 100%;
        margin: 0;
        border-radius: 8px 8px 0 0;
      }
      .carousel-main {
        height: 350px;
      }
      .news-videos {
        grid-template-columns: 1fr;
      }
    }
    @media (max-width: 550px) {
      .news-grid, .news-grid.cols-3, .news-grid.cols-2 {
        grid-template-columns: 1fr;
      }
    }