/*
Theme Name: Astra Child - Billpayment Dark
Template: astra
Version: 1.0
*/

:root {
  --nf-bg: #0d0d0d;
  --nf-text: #f2f2f2;
  --nf-text-secondary: #9a9a9a;
  --nf-border: #262626;
  --nf-orange: #f6821f;
}

html body.wp-theme-astra {
  background-color: var(--nf-bg) !important;
  color: var(--nf-text) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html body.wp-theme-astra #masthead,
html body.wp-theme-astra .site-header,
html body.wp-theme-astra .ast-header-break-point,
html body.wp-theme-astra .main-header-bar {
  background-color: #000 !important;
  border-bottom: 1px solid var(--nf-border) !important;
}
html body.wp-theme-astra .site-header a,
html body.wp-theme-astra .main-navigation a,
html body.wp-theme-astra .site-title a,
html body.wp-theme-astra .site-title,
html body.wp-theme-astra .ast-masthead-custom-menu-items a {
  color: #e6e6e6 !important;
}
html body.wp-theme-astra .site-header a:hover {
  color: var(--nf-orange) !important;
}

/* Site logo: constrain size, add light backdrop so dark logo text stays
   legible on the black header, and hide the now-redundant text title */
html body.wp-theme-astra .site-title {
  display: none !important;
}
html body.wp-theme-astra .ast-site-identity {
  padding: 12px 0 !important;
}
html body.wp-theme-astra .custom-logo-link {
  background: #f2f2f2;
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex !important;
  align-items: center;
}
html body.wp-theme-astra .custom-logo {
  max-height: 44px !important;
  width: auto !important;
  height: auto !important;
}

html body.wp-theme-astra .ast-separate-container .ast-article-single,
html body.wp-theme-astra .ast-separate-container .site-content,
html body.wp-theme-astra .site-content,
html body.wp-theme-astra #content,
html body.wp-theme-astra .ast-container,
html body.wp-theme-astra .ast-separate-container {
  background: transparent !important;
  box-shadow: none !important;
}

html body.wp-theme-astra footer,
html body.wp-theme-astra .site-footer,
html body.wp-theme-astra #colophon,
html body.wp-theme-astra .site-below-footer-wrap {
  background-color: #000 !important;
  border-top: 1px solid var(--nf-border) !important;
  color: var(--nf-text-secondary) !important;
}
html body.wp-theme-astra .site-footer a { color: #cfcfcf !important; }

/* Remove Astra's default "Powered by" copyright bar (replaced by nf-custom-footer) */
html body.wp-theme-astra .ast-footer-copyright {
  display: none !important;
}

.nf-custom-footer {
  background-color: #000 !important;
  border-top: 1px solid var(--nf-border);
}
.nf-footer-inner {
  padding: 40px 24px !important;
  max-width: 1200px;
}
.nf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 28px;
}
.nf-footer-links a {
  color: #e6e6e6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nf-footer-links a:hover {
  color: var(--nf-orange);
}
.nf-footer-disclaimer {
  border-top: 1px solid var(--nf-border);
  padding-top: 24px;
  margin-bottom: 20px;
  max-width: 900px;
}
.nf-footer-disclaimer-title {
  color: #e6e6e6;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 10px;
}
.nf-footer-disclaimer p {
  color: var(--nf-text-secondary);
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0 0 10px;
}
.nf-footer-disclaimer strong {
  color: #b9b9b9;
}
.nf-footer-copyright-line {
  color: #6f6f6f;
  font-size: 12px;
  margin: 0;
}

html body.wp-theme-astra article.ast-article-post,
html body.wp-theme-astra article.ast-article-single,
html body.wp-theme-astra .nf-featured,
html body.wp-theme-astra .nf-card,
html body.wp-theme-astra .nf-post {
  background: transparent !important;
  box-shadow: none !important;
}

/* Hide the Google Auto Ads slot that gets placed directly under the header
   (creates a large empty gap above post content when the slot has no fill) */
#masthead + .google-auto-placed {
  display: none !important;
}

/* Mobile off-canvas menu */
html body.wp-theme-astra #ast-mobile-header {
  background-color: #000 !important;
  border-bottom: 1px solid var(--nf-border) !important;
}
html body.wp-theme-astra .ast-mobile-header-wrap .menu-toggle,
html body.wp-theme-astra .ast-mobile-header-wrap .ast-mobile-svg {
  color: #fff !important;
}
html body.wp-theme-astra .ast-mobile-header-content {
  position: fixed !important;
  top: var(--nf-mobile-header-h, 96px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: calc(100vh - var(--nf-mobile-header-h, 96px)) !important;
  height: calc(100dvh - var(--nf-mobile-header-h, 96px)) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  z-index: 999 !important;
  background-color: #121212 !important;
  background-image: linear-gradient(180deg, rgba(246,130,31,0.10), rgba(246,130,31,0) 140px) !important;
  border-top: 2px solid var(--nf-orange) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
  padding: 0 !important;
  margin: 0 !important;
}
html body.wp-theme-astra .ast-mobile-header-content .main-header-menu,
html body.wp-theme-astra .ast-mobile-header-content ul,
html body.wp-theme-astra .ast-mobile-header-content li,
html body.wp-theme-astra .ast-mobile-header-content li.menu-item,
html body.wp-theme-astra .ast-mobile-header-content li.current-menu-item,
html body.wp-theme-astra .ast-mobile-header-content li.current_page_item {
  background: transparent !important;
  background-color: transparent !important;
}
html body.wp-theme-astra .ast-mobile-header-content .menu-item {
  border-bottom: 1px solid var(--nf-border) !important;
}
html body.wp-theme-astra .ast-mobile-header-content li.current-menu-item {
  border-left: 3px solid var(--nf-orange) !important;
}
html body.wp-theme-astra .ast-mobile-header-content a.menu-link {
  background: transparent !important;
  color: #fff !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  padding: 20px 24px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.15s ease, padding-left 0.15s ease;
}
html body.wp-theme-astra .ast-mobile-header-content a.menu-link:active {
  background-color: rgba(246,130,31,0.12) !important;
  padding-left: 30px !important;
}
html body.wp-theme-astra .ast-mobile-header-content li.current-menu-item a.menu-link {
  color: var(--nf-orange) !important;
}
html body.wp-theme-astra .ast-mobile-header-content a.menu-link::after {
  content: "\203A";
  color: var(--nf-orange);
  font-size: 26px;
  font-weight: 700;
  margin-left: 8px;
  line-height: 1;
}

.nf-mobile-search {
  display: flex !important;
  gap: 10px;
  padding: 24px;
  border-bottom: 1px solid var(--nf-border);
}
.nf-mobile-search-input {
  flex: 1;
  background: #1e1e1e !important;
  border: 1px solid #3a3a3a !important;
  border-radius: 999px;
  padding: 13px 18px;
  color: #fff !important;
  font-size: 16px;
  min-width: 0;
}
.nf-mobile-search-input::placeholder { color: #888; }
.nf-mobile-search-btn {
  background: var(--nf-orange) !important;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.nf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.nf-page-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}
.nf-subtitle {
  color: var(--nf-text-secondary);
  font-size: 17px;
  margin: 0 0 48px;
}

.nf-featured {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--nf-border);
}
.nf-featured-text { flex: 1 1 50%; }
.nf-featured-image { flex: 1 1 45%; }
.nf-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--nf-orange);
  padding: 6px;
  box-sizing: border-box;
}
.nf-featured .nf-title a { font-size: 30px; }

.nf-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nf-date {
  color: var(--nf-text-secondary);
}
.nf-meta-sep {
  color: var(--nf-text-secondary);
}
.nf-category {
  color: var(--nf-orange) !important;
  text-decoration: none;
}
.nf-category:hover { text-decoration: underline; }

.nf-title a {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  text-decoration: none;
}
.nf-title a:hover { color: var(--nf-orange); }

.nf-excerpt {
  color: var(--nf-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 12px 0 18px;
}

.nf-authors { display: flex; align-items: center; gap: 8px; }
.nf-avatar { border-radius: 50%; width: 28px; height: 28px; border: 2px solid var(--nf-bg); }
.nf-author-name { color: #cfcfcf; font-size: 13px; }
.nf-author-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nf-author-link:hover .nf-author-name { color: var(--nf-orange); }

.nf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  row-gap: 0;
}
.nf-card {
  padding: 40px 0;
  border-bottom: 1px solid var(--nf-border);
}

.nf-loadmore { text-align: center; margin-top: 56px; }
.nf-loadmore a {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  color: #e6e6e6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nf-loadmore a:hover { border-color: var(--nf-orange); color: var(--nf-orange); }

/* Author / archive headers */
.nf-author-header {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nf-author-avatar-lg {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.nf-author-header h1 { margin-bottom: 6px; }
.nf-author-header .nf-subtitle { margin-bottom: 0; }
.nf-author-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Single post */
html body.wp-theme-astra.single-post .ast-container {
  max-width: 1200px !important;
}
.nf-single-header {
  max-width: 780px;
  margin: 0 auto;
}
.nf-category-badge {
  display: inline-block;
  background: var(--nf-orange);
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.nf-single-title {
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 28px;
}
.nf-single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--nf-border);
}
.nf-single-meta .nf-avatar { width: 40px; height: 40px; }
.nf-single-meta-text { display: flex; flex-direction: column; gap: 4px; }
.nf-single-meta-text .nf-author-name { color: #fff; font-size: 14px; font-weight: 600; }
.nf-single-meta-text .nf-meta { margin-bottom: 0; }

.nf-single-image {
  max-width: 780px;
  margin: 40px auto 0;
}
.nf-single-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.nf-single-content {
  max-width: 780px;
  margin: 48px auto 0;
  color: #dcdcdc;
  font-size: 18px;
  line-height: 1.8;
}
.nf-single-content p { margin: 0 0 24px; }
.nf-single-content h2,
.nf-single-content h3,
.nf-single-content h4 {
  color: #fff;
  font-weight: 700;
  margin: 40px 0 20px;
  line-height: 1.35;
}
.nf-single-content h2 { font-size: 28px; }
.nf-single-content h3 { font-size: 22px; }
.nf-single-content a { color: var(--nf-orange); }
.nf-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 8px 0;
}
.nf-single-content blockquote {
  border-left: 3px solid var(--nf-orange);
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  color: #f2f2f2;
  font-style: italic;
}
.nf-single-content ul,
.nf-single-content ol { margin: 0 0 24px; padding-left: 24px; }
.nf-single-content li { margin-bottom: 10px; }
.nf-single-content pre,
.nf-single-content code {
  background: #1a1a1a;
  border: 1px solid var(--nf-border);
  border-radius: 4px;
  color: #e6e6e6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.nf-single-content code { padding: 2px 6px; font-size: 0.9em; }
.nf-single-content pre { padding: 16px; overflow-x: auto; }
.nf-single-content pre code { border: none; padding: 0; }

.nf-tags {
  max-width: 780px;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nf-tag {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 13px;
  background: #1a1a1a;
  border: 1px solid var(--nf-border);
  border-radius: 999px;
  padding: 6px 14px;
}
.nf-tag:hover { color: var(--nf-orange); border-color: var(--nf-orange); }

.nf-share {
  max-width: 780px;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nf-share-label {
  color: var(--nf-text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nf-share-link {
  color: #e6e6e6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  padding: 6px 16px;
}
.nf-share-link:hover { border-color: var(--nf-orange); color: var(--nf-orange); }

/* Easy Table of Contents plugin (auto-injected into post content) */
html body.wp-theme-astra [class*="ez-toc-container"] {
  background: #141414 !important;
  border: 1px solid var(--nf-border) !important;
  color: #dcdcdc !important;
}
html body.wp-theme-astra .ez-toc-title {
  color: #fff !important;
}
html body.wp-theme-astra .ez-toc-list a {
  color: var(--nf-orange) !important;
}

/* Simple Author Box plugin (auto-injected into post content) */
html body.wp-theme-astra .saboxplugin-wrap,
html body.wp-theme-astra .saboxplugin-tab,
html body.wp-theme-astra .saboxplugin-gravatar,
html body.wp-theme-astra .saboxplugin-desc,
html body.wp-theme-astra .saboxplugin-socials {
  background: transparent !important;
  background-color: transparent !important;
}
html body.wp-theme-astra .saboxplugin-wrap {
  border-top: 1px solid var(--nf-border) !important;
  border-bottom: none !important;
  padding-top: 32px !important;
  margin: 16px auto 0 !important;
  max-width: 780px;
}
html body.wp-theme-astra .saboxplugin-authorname,
html body.wp-theme-astra .saboxplugin-authorname a {
  color: #fff !important;
  font-weight: 700 !important;
}
html body.wp-theme-astra .saboxplugin-desc,
html body.wp-theme-astra .saboxplugin-desc p {
  color: var(--nf-text-secondary) !important;
}
html body.wp-theme-astra .saboxplugin-icon-grey {
  color: #cfcfcf !important;
}
html body.wp-theme-astra .sab-profile-edit,
html body.wp-theme-astra .sab-edit-settings {
  display: none !important;
}

.nf-comments {
  max-width: 780px;
  margin: 56px auto 0;
  color: #dcdcdc;
}
html body.wp-theme-astra .nf-comments #comments,
html body.wp-theme-astra .nf-comments .comments-area,
html body.wp-theme-astra .nf-comments #respond,
html body.wp-theme-astra .nf-comments .comment-respond {
  background: transparent !important;
}
html body.wp-theme-astra .nf-comments .comment-reply-title,
html body.wp-theme-astra .nf-comments .comments-title {
  color: #fff !important;
}
html body.wp-theme-astra .nf-comments textarea,
html body.wp-theme-astra .nf-comments input[type="text"],
html body.wp-theme-astra .nf-comments input[type="email"],
html body.wp-theme-astra .nf-comments input[type="url"] {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
  color: #fff !important;
}
html body.wp-theme-astra .nf-comments label {
  color: var(--nf-text-secondary) !important;
}
html body.wp-theme-astra .nf-comments .form-submit input,
html body.wp-theme-astra .nf-comments #submit {
  background: var(--nf-orange) !important;
  color: #fff !important;
  border: none !important;
}
html body.wp-theme-astra .nf-comments a {
  color: var(--nf-orange) !important;
}

.nf-related {
  border-top: 1px solid var(--nf-border);
  margin-top: 24px;
}
.nf-related-title {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 40px;
}

@media (max-width: 782px) {
  .nf-featured { flex-direction: column; }
  .nf-grid { grid-template-columns: 1fr; }
  .nf-page-header h1 { font-size: 30px; }
  .nf-single-title { font-size: 28px; }
  .nf-author-header { align-items: flex-start; }

  .nf-container {
    padding: 28px 16px 60px;
  }
  .nf-single-content {
    font-size: 16px;
  }
  .nf-single-image {
    margin-top: 24px;
  }
  .nf-single-meta {
    padding-bottom: 24px;
  }
}
