/* News Detail Page Styles (externalized) */

.news-detail-header {
  background: linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%);
  color: var(--text-dark);
  border-radius: 14px;
  padding: 26px 24px;
  position: relative;
  overflow: visible;
  margin-bottom: 18px;
  box-shadow: 0 20px 40px rgba(11,22,45,0.10);
  border: 1px solid rgba(2,6,23,0.12);
}
.news-detail-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background-image:
    repeating-linear-gradient(0deg, rgba(2,6,23,0.03) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(2,6,23,0.02) 0 1px, transparent 1px 36px);
  pointer-events: none;
}
.news-detail-header::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-26px;
  transform:translateX(-50%);
  width:86%;
  height:44px;
  pointer-events:none;
  background: radial-gradient(closest-side, rgba(25,87,171,0.18), rgba(25,87,171,0));
  filter: blur(12px);
  opacity:.6;
}
.header-glass {
  position: relative; z-index: 2;
  background: rgba(248,250,252,0.85);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border: 1px solid rgba(2,6,23,0.10);
  border-radius: 16px; padding: 16px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
}
.news-hero-content { position: relative; z-index: 2; }
.news-title { font-size: 2.15rem; font-weight: 800; margin-bottom: 12px; line-height: 1.28; letter-spacing: 0.3px; color: var(--text-dark); }
.news-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; font-size: 0.95rem; }
.news-meta-item { display: inline-flex; align-items: center; gap: 6px; opacity: 0.95; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); padding: 6px 10px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,0.12); }

.news-hero { background: linear-gradient(120deg, #0ea5e9 0%, #1e3a8a 55%, #0b1f52 100%); color: #fff; padding: 120px 0 80px; position: relative; overflow: hidden; border-top: 2px solid rgba(255,255,255,0.35); border-bottom: 2px solid rgba(255,255,255,0.35); box-shadow: 0 20px 40px rgba(30,58,138,0.25); }
.news-hero::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" viewBox=\"0 0 60 60\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"none\" fill-rule=\"evenodd\"%3E%3Cg fill=\"%23ffffff\" fill-opacity=\"0.05\"%3E%3Ccircle cx=\"30\" cy=\"30\" r=\"2\"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat, radial-gradient(1000px 300px at 50% 0%, rgba(255,255,255,0.18), transparent 60%); }
.news-hero::after { content:""; position:absolute; inset:0; pointer-events:none; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 44px), repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 44px); mix-blend-mode: screen; opacity:.5; }
.news-hero h1 { font-weight: 800; letter-spacing: .4px; background: linear-gradient(90deg, #ffffff 0%, #e0f2fe 50%, #cfe8ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 2px 2px 8px rgba(0,0,0,0.35); }
.news-hero p.lead { color: rgba(255,255,255,0.9); }

.news-content-section { padding: 20px 0; }
.news-image-container { margin-bottom: 50px; text-align: center; }
.news-main-image { width: 100%; max-width: 800px; height: auto; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.news-content-grid { display: grid; grid-template-columns: 1fr; gap: 50px; margin-bottom: 50px; }
.news-article { background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.news-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-dark); }
.news-content h1, .news-content h2, .news-content h3, .news-content h4, .news-content h5, .news-content h6 { color: var(--text-dark); margin-top: 30px; margin-bottom: 15px; font-weight: 600; }
.news-content h2 { font-size: 1.8rem; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; }
.news-content h3 { font-size: 1.5rem; color: var(--primary-color); }
.news-content p { margin-bottom: 12px; }
.news-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.news-content blockquote { background: #f8f9fa; border-left: 4px solid var(--primary-color); padding: 20px; margin: 30px 0; font-style: italic; border-radius: 0 8px 8px 0; }
.news-content ul, .news-content ol { padding-left: 30px; margin-bottom: 20px; }
.news-content li { margin-bottom: 8px; }

.news-sidebar { background: #f8f9fa; padding: 40px; border-radius: 15px; height: fit-content; position: sticky; top: 100px; }
.news-info-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.news-info-item:last-child { border-bottom: none; }
.news-info-label { font-weight: 600; color: var(--text-dark); }
.news-info-value { color: var(--text-light); text-align: right; }

.category-box { background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; box-shadow: 0 8px 18px rgba(0,0,0,0.08); border: 1px solid var(--border-color); display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.category-chip { background: rgba(99,102,241,0.08); color: var(--primary-color); padding: 6px 12px; border-radius: 999px; font-size: 0.9rem; text-decoration: none; border: 1px solid rgba(99,102,241,0.25); transition: all 0.25s ease; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.category-chip:hover { background: rgba(99,102,241,0.14); transform: translateY(-1px); }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.news-tag { background: var(--primary-color); color: #fff; padding: 4px 10px; border-radius: 14px; font-size: 0.8rem; text-decoration: none; transition: all 0.3s ease; }
.news-tag:hover { background: #1e3a8a; color: #fff; transform: translateY(-2px); }

.news-gallery-section { padding: 10px 0 10px; }
.news-gallery-section .carousel { border-radius: 15px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.news-gallery-section .carousel-item img { width: 100%; height: 520px; object-fit: cover; transform: scale(1); transition: transform 0.8s ease, filter 0.8s ease; }
.news-gallery-section .carousel-item.active img { transform: scale(1.02); filter: contrast(1.02) saturate(1.05); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 15px; }
.gallery-thumb { width: 100%; height: 90px; border-radius: 8px; object-fit: cover; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.gallery-thumb:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.gallery-thumb.active { outline: 2px solid var(--primary-color); }
.inline-gallery { margin: 12px 0; }
.inline-gallery .inline-gallery-img { width: 100%; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); cursor: pointer; }

.share-section { background: #fff; padding: 22px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); margin-top: 20px; }
.share-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.share-btn { flex: 1; min-width: 120px; padding: 12px 20px; border-radius: 8px; text-decoration: none; color: #fff; text-align: center; font-weight: 500; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.share-btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: #6c757d; }

.navigation-section { position: relative; background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 18px; border-radius: 16px; box-shadow: 0 12px 24px rgba(0,0,0,0.08); margin: 16px 0; border: 1px solid rgba(99,102,241,0.12); overflow: hidden; }
.navigation-section::before { content:""; position:absolute; top:-120px; left:50%; width:1000px; height:1000px; transform:translateX(-50%); background: radial-gradient(closest-corner at 50% 0, rgba(99,102,241,0.12), rgba(99,102,241,0) 60%); filter: blur(18px); opacity:.8; animation: gradientMove 18s ease-in-out infinite; }
.navigation-section .nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; text-decoration: none; color: var(--text-dark); transition: transform .25s ease, box-shadow .25s ease, background .25s ease; border: 1px solid rgba(25,87,171,0.14); background: linear-gradient(180deg, #ffffff, #f7f9ff); box-shadow: 0 8px 18px rgba(0,0,0,0.06); overflow: hidden; }
.navigation-section .nav-item::after { content:""; position:absolute; inset:0; border-radius: 16px; pointer-events:none; box-shadow: inset 0 0 0 1px rgba(99,102,241,0.14); }
.navigation-section .nav-item:hover { background: linear-gradient(180deg, rgba(25,87,171,0.18), rgba(25,87,171,0.28)); color: #fff; transform: translateY(-4px); box-shadow: 0 20px 32px rgba(25,87,171,0.18); }
.navigation-section .nav-icon { width: 44px; height: 44px; background: var(--primary-color); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 44px; box-shadow: 0 8px 16px rgba(25,87,171,0.22); transition: transform .25s ease, background .25s ease, color .25s ease; }
.navigation-section .nav-item:hover .nav-icon { background: #fff; color: var(--primary-color); }
.navigation-section .nav-item.prev:hover .nav-icon { transform: translateX(-4px); }
.navigation-section .nav-item.next:hover .nav-icon { transform: translateX(4px); }
.navigation-section .nav-content { flex: 1; min-width: 0; }
.navigation-section .nav-content h6 { margin: 0 0 4px; font-weight: 600; letter-spacing:.1px; }
.navigation-section .nav-content p { margin: 0; color: var(--text-light); font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navigation-section .nav-item:hover .nav-content p { color: rgba(255,255,255,0.85); }

.related-news { position: relative; background: linear-gradient(180deg,#f7f9ff 0%, #ffffff 100%); padding: 40px 0 56px; overflow: hidden; }
.related-news::before { content:""; position:absolute; top:-120px; left:50%; width:1200px; height:1200px; transform:translateX(-50%); background: radial-gradient(closest-corner at 50% 0, rgba(99,102,241,0.12), rgba(99,102,241,0) 60%); filter: blur(18px); opacity:.8; animation: gradientMove 16s ease-in-out infinite; }
.related-news::after { content:""; position:absolute; bottom:-100px; right:-140px; width:720px; height:720px; background: conic-gradient(from 180deg, rgba(25,87,171,0.18), rgba(25,87,171,0)); filter: blur(16px); opacity:.6; animation: gradientMove 20s linear infinite; }
.related-news h2 { font-weight: 800; letter-spacing:.3px; background: linear-gradient(90deg, #1e3a8a, var(--primary-color)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.related-news .lead { color: var(--text-light); }
.news-card-small { position: relative; background: #ffffff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.08); transition: transform .28s ease, box-shadow .28s ease; border: 1px solid rgba(25,87,171,0.1); height: 100%; transform-style: preserve-3d; }
.news-card-small::before { content:""; position:absolute; inset:0; border-radius: 20px; pointer-events:none; box-shadow: inset 0 0 0 1px rgba(99,102,241,0.12); }
.news-card-small::after { content:""; position:absolute; top:-50%; left:-20%; width:60%; height:200%; background: linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0), rgba(255,255,255,0.22)); transform: rotate(20deg); animation: shine 12s linear infinite; opacity:.35; }
.news-card-small:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 24px 40px rgba(0,0,0,0.14); }
.news-card-small .news-image { height: 180px; position: relative; overflow: hidden; }

.navigation-section .row.g-3 { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
.related-news .row.g-4 { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
.related-news .text-center.mb-5 { margin-bottom: 1rem !important; }
.news-card-small .product-content { padding: 14px !important; }
.news-card-small .news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.news-card-small:hover .news-image img { transform: scale(1.08); filter: contrast(1.03) saturate(1.05); }
.news-card-small .btn-outline-primary { border-radius: 999px; padding: 6px 14px; border-color: rgba(25,87,171,0.25); color: var(--primary-color); transition: all .25s ease; box-shadow: 0 4px 12px rgba(25,87,171,0.12); }
.news-card-small .btn-outline-primary:hover { background: linear-gradient(90deg, #1e3a8a, var(--primary-color)); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(25,87,171,0.25); }

@keyframes gradientMove { 0% { transform: translateX(-50%) translateY(0) scale(1); } 50% { transform: translateX(-50%) translateY(12px) scale(1.03); } 100% { transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes shine { 0% { transform: rotate(20deg) translateX(0); } 100% { transform: rotate(20deg) translateX(140%); } }

.breadcrumb { background: none; padding: 20px 0; margin-bottom: 0; }
.breadcrumb-item a { color: var(--text-light); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--primary-color); }
.breadcrumb-item.active { color: var(--text-dark); }

@media (max-width: 768px) {
  .news-detail-header { padding: 14px 16px; margin-bottom: 10px; }
  .header-glass { padding: 12px; border-radius: 10px; }
  .news-title { font-size: 1.6rem; margin-bottom: 8px; line-height: 1.25; }
  .news-meta { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 8px; padding-bottom: 4px; }
  .news-meta::-webkit-scrollbar { display: none; }
  .news-meta-item { padding: 6px 9px; font-size: 0.85rem; }
  .news-tags { display: none; }
  .news-content-grid { grid-template-columns: 1fr; gap: 30px; }
  .news-sidebar { position: static; top: auto; }
  .news-article { padding: 25px; }
  .share-buttons { flex-direction: column; }
  .share-btn { min-width: auto; }
  .navigation-section { padding: 18px; }
  .navigation-section .nav-item { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; padding: 16px 14px; gap: 12px; }
  .navigation-section .nav-content { text-align: left; }
  .navigation-section .nav-item.next .nav-content { text-align: right; }
  .navigation-section .nav-icon { margin-bottom: 0; margin-right: 12px; }
  .navigation-section .nav-item.next .nav-icon { margin-right: 0; margin-left: 12px; }
}
