
/*
Theme Name: TRN News Base
Theme URI: https://example.com/
Author: TRN
Description: Lightweight base theme for Top Real News with core newsroom pages autogeneration.
Version: 1.0.0
Text Domain: trn-news
*/

:root {
  --trn-bg: #020617;
  --trn-header-bg: #020617;
  --trn-accent: #2563eb;
  --trn-text: #e5e7eb;
  --trn-muted: #9ca3af;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: var(--trn-text);
}

a {
  color: var(--trn-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.trn-site-header {
  background: var(--trn-header-bg);
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

.trn-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trn-site-title a {
  color: #f9fafb;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.trn-primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.trn-primary-nav a {
  color: var(--trn-text);
  font-size: 0.9rem;
}

.trn-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.trn-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr);
  gap: 2.5rem;
}

.trn-hero-card,
.trn-article-card {
  background: #030816;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.3);
}

.trn-hero-card img,
.trn-article-card img {
  display: block;
  width: 100%;
  height: auto;
}

.trn-hero-body,
.trn-article-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.trn-badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(37,99,235,0.15);
  color: #bfdbfe;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
}

.trn-hero-title a,
.trn-article-title a {
  color: #e5e7eb;
}

.trn-hero-title {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.trn-hero-excerpt,
.trn-article-excerpt {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--trn-muted);
}

.trn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--trn-muted);
}

.trn-sidebar .widget {
  background: #030816;
  border-radius: 18px;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(148,163,184,0.25);
  margin-bottom: 1.5rem;
}

.trn-sidebar .widget-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #cbd5f5;
}

.trn-site-footer {
  border-top: 1px solid rgba(148,163,184,0.32);
  padding: 1.8rem 1rem 2rem;
  font-size: 0.8rem;
  color: var(--trn-muted);
  background: #020617;
}

.trn-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trn-footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.trn-footer-nav a {
  color: var(--trn-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .trn-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trn-primary-nav ul {
    display: none;
  }
}


.trn-badge-breaking {
  background: #dc2626;
  color: #ffffff;
  margin-right: 6px;
}


.trn-dateline{margin:0.75rem 0 1rem;font-size:0.85rem;color:#6b7280;}
.trn-dateline-location{font-weight:600;letter-spacing:0.08em;}

.trn-photo-block {
  margin: 1rem 0 1.25rem;
}
.trn-photo-block .trn-article-featured img {
  display: block;
  width: 100%;
  height: auto;
}
.trn-photo-caption {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}
.trn-photo-caption-text {
  font-style: italic;
}
.trn-photo-credit {
  font-weight: 500;
}



/* Global light body for easier reading */
body {
  background-color: #f3f4f6;
  color: #111827;
}

/* Main content area on white for contrast */
.trn-main-col,
.trn-page,
.trn-article,
.trn-article-body,
.trn-card,
.trn-page-contact .trn-contact-main {
  background-color: #ffffff;
  color: #111827;
}

/* Article titles & headings */
.entry-title,
.trn-page-title,
.trn-section-title {
  color: #0f172a;
}

/* Contact page layout */
.trn-page-contact .trn-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.trn-page-contact .trn-contact-main {
  border-radius: 10px;
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.trn-page-contact .trn-contact-title {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  color: #0b1120;
}
.trn-page-contact .trn-contact-intro {
  margin: 0 0 1.25rem;
  color: #4b5563;
  font-size: 0.95rem;
}
.trn-page-contact .trn-contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.trn-page-contact .trn-contact-card {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  font-size: 0.92rem;
}
.trn-page-contact .trn-contact-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #f9fafb;
}
.trn-page-contact .trn-contact-card a {
  color: #bfdbfe;
  text-decoration: none;
}
.trn-page-contact .trn-contact-card a:hover {
  text-decoration: underline;
}
.trn-page-contact .trn-contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Contact form styling */
.trn-page-contact .trn-contact-form {
  margin-top: 0.75rem;
}
.trn-page-contact .trn-contact-form .trn-form-row {
  margin-bottom: 0.9rem;
}
.trn-page-contact .trn-contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #111827;
}
.trn-page-contact .trn-contact-form input[type="text"],
.trn-page-contact .trn-contact-form input[type="email"],
.trn-page-contact .trn-contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111827;
  background-color: #ffffff;
}
.trn-page-contact .trn-contact-form textarea {
  resize: vertical;
  min-height: 140px;
}
.trn-page-contact .trn-contact-form input[type="text"]:focus,
.trn-page-contact .trn-contact-form input[type="email"]:focus,
.trn-page-contact .trn-contact-form textarea:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}
.trn-page-contact .trn-contact-success {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #ecfdf3;
  border: 1px solid #16a34a;
  color: #166534;
  font-size: 0.9rem;
}
.trn-page-contact .trn-contact-error {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #dc2626;
  color: #b91c1c;
  font-size: 0.9rem;
}
.trn-page-contact .trn-contact-error ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}

/* Buttons */
.trn-button.trn-button-primary {
  background: #1d4ed8;
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.trn-button.trn-button-primary:hover {
  background: #1e40af;
}

/* Footer social alignment + icons */
.trn-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.trn-footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.trn-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: #ffffff;
}
.trn-social-svg {
  width: 16px;
  height: 16px;
  display: inline-block;
  fill: currentColor;
}
.trn-social-facebook {
  background: #1877f2;
}
.trn-social-facebook:hover {
  background: #1453aa;
}
.trn-social-x {
  background: #000000;
}
.trn-social-x:hover {
  background: #020617;
}

@media (max-width: 960px) {
  .trn-page-contact .trn-contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .trn-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
