/* Diamond News 24 Portal Stylesheet */

/* Header Top Date Bar */
.dn-top-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--dn-border);
  font-size: 13px;
  color: #475569;
  padding: 6px 0;
}
.dn-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.dn-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dn-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dn-top-right a:hover {
  color: var(--dn-primary);
}

/* Header Branding Bar */
.dn-header-main {
  background: #ffffff;
  padding: 16px 0;
}
.dn-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.dn-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dn-logo-text {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1;
}
.dn-logo-tagline {
  font-size: 11px;
  font-weight: 700;
  color: var(--dn-red);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.dn-header-ad {
  max-width: 728px;
  width: 100%;
}

/* Navigation Bar */
.dn-navbar {
  background: var(--dn-dark-nav);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.dn-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dn-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.dn-menu::-webkit-scrollbar {
  display: none;
}
.dn-menu > li > a {
  display: block;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.dn-menu > li > a:hover,
.dn-menu > li.current-menu-item > a {
  background: var(--dn-red);
  color: #ffffff;
}

/* Breaking Ticker */
.dn-ticker {
  background: #ffffff;
  border-bottom: 1px solid var(--dn-border);
  display: flex;
  align-items: center;
  padding: 6px 0;
  overflow: hidden;
}
.dn-ticker-label {
  background: var(--dn-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 2px;
  margin-right: 12px;
  white-space: nowrap;
}
.dn-ticker-content {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
}

/* Main Layout Grid */
.dn-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 20px 0;
}
@media (min-width: 992px) {
  .dn-main-grid {
    grid-template-columns: 8fr 4fr;
  }
}

/* Lead Story & 2x2 Grid */
.dn-lead-box {
  background: #ffffff;
  border: 1px solid var(--dn-border);
  padding: 16px;
  margin-bottom: 20px;
}
.dn-lead-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-cover: cover;
  overflow: hidden;
  background: #1e293b;
  margin-bottom: 12px;
}
.dn-lead-cat {
  color: var(--dn-primary);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  display: inline-block;
}
.dn-lead-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 16px 0;
}
.dn-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--dn-border);
}
.dn-sub-item img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 8px;
}
.dn-sub-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

/* 4-Item List */
.dn-list-box {
  background: #ffffff;
  border: 1px solid var(--dn-border);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.dn-list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--dn-border);
}
.dn-list-item:last-child {
  border-bottom: none;
}
.dn-list-item img {
  width: 100px;
  height: 65px;
  object-fit: cover;
  flex-shrink: 0;
}
.dn-list-item .cat {
  color: var(--dn-primary);
  font-size: 12px;
  font-weight: 700;
}
.dn-list-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 2px 0 0 0;
}

/* Ad Banners */
.dn-ad-banner {
  border-radius: 2px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.dn-ad-seylon {
  background: linear-gradient(to right, #a30d11, #c4161c, #96090c);
  color: #ffffff;
  border: 1px solid rgba(252, 165, 165, 0.4);
}
.dn-ad-diamond-world {
  background: linear-gradient(to right, #200527, #480d4c, #1e0524);
  color: #ffffff;
  border: 1px solid rgba(253, 230, 138, 0.6);
}

/* Tabs Widget */
.dn-tabs-widget {
  background: #ffffff;
  border: 1px solid var(--dn-border);
  margin-bottom: 20px;
}
.dn-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  border-bottom: 1px solid var(--dn-border);
}
.dn-tab-btn {
  padding: 10px;
  font-weight: 700;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.dn-tab-btn.active {
  background: var(--dn-primary);
  color: #ffffff;
}

/* 4-Column Horizontal Strip */
.dn-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .dn-strip-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.dn-strip-card {
  background: #ffffff;
  border: 1px solid var(--dn-border);
  padding: 10px;
}
.dn-strip-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 8px;
}
.dn-strip-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

/* Section Header */
.dn-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--dn-primary);
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.dn-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dn-primary);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.dn-sec-title .bar {
  width: 6px;
  height: 18px;
  background: var(--dn-primary);
}

/* Single Post View (Exact Screenshot 20260922_121752.jpg Match) */
.dn-single-article {
  background: #ffffff;
  border: 1px solid var(--dn-border);
  padding: 24px;
  margin-bottom: 24px;
}
.dn-breadcrumbs {
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dn-single-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: #020617;
  margin: 0 0 16px 0;
}
.dn-author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.dn-author-bar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.dn-author-meta-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.dn-author-meta-role {
  font-size: 13px;
  color: #64748b;
  margin-left: 6px;
}
.dn-publish-row {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}
.dn-publish-row a,
.dn-publish-row button {
  color: var(--dn-primary);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

/* Action Toolbar */
.dn-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--dn-border);
  border-bottom: 1px solid var(--dn-border);
  margin-bottom: 20px;
}
.dn-tool-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  transition: opacity 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.dn-tool-btn:hover {
  opacity: 0.9;
}
.dn-btn-font {
  background: #e2e8f0;
  color: #0f172a;
}
.dn-btn-fb { background: #3b5998; }
.dn-btn-tw { background: #000000; }
.dn-btn-wa { background: #25d366; }
.dn-btn-in { background: #0077b5; }
.dn-btn-copy { background: #2563eb; }
.dn-btn-print { background: #64748b; }

/* Featured Image & Caption */
.dn-featured-wrap {
  border: 1px solid var(--dn-border);
  overflow: hidden;
  margin-bottom: 24px;
}
.dn-featured-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.dn-caption-bar {
  background: var(--dn-caption-bg);
  color: #1e293b;
  text-align: center;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  border-top: 1px solid var(--dn-border);
}

/* Body Content */
.dn-article-content {
  font-size: 18px;
  line-height: 1.85;
  color: #0f172a;
  margin-bottom: 30px;
}
.dn-article-content p {
  margin-bottom: 18px;
}

/* Related Topics */
.dn-topics-section {
  padding-top: 18px;
  border-top: 1px solid var(--dn-border);
  margin-bottom: 30px;
}
.dn-topics-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}
.dn-topics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dn-topic-pill {
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.dn-topic-pill:hover {
  border-color: var(--dn-primary);
  color: var(--dn-primary);
}

/* Footer */
.dn-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-top: 40px;
  font-size: 14px;
  margin-top: 40px;
}
.dn-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 40px;
}
@media (min-width: 768px) {
  .dn-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}
.dn-footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  border-bottom: 2px solid var(--dn-primary);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.dn-footer-bottom {
  background: #090d16;
  padding: 16px 0;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* Print Edition */
@media print {
  .dn-top-bar, .dn-navbar, .dn-ticker, .dn-toolbar, .dn-footer, .no-print, aside {
    display: none !important;
  }
  body, .dn-single-article {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
  }
  .dn-single-title {
    font-size: 26pt !important;
  }
  .dn-article-content {
    font-size: 13pt !important;
    line-height: 1.6 !important;
  }
}
