/*
  RajPay Public Site
  Same brand palette as the admin panel (navy/saffron/sand) but styled
  for reading: a serif display face for headlines (Noto Serif, which
  also covers Devanagari reasonably) and a clean sans (Hind - designed
  for Devanagari + Latin together, appropriate for a bilingual portal)
  for body copy and UI chrome.
*/

:root {
    --rp-navy: #17304F;
    --rp-navy-dark: #0F2138;
    --rp-saffron: #E0922E;
    --rp-sand: #F6F5F1;
    --rp-ink: #24303F;
    --rp-line: #E4E1D8;
    --rp-muted: #6B7280;
}

body {
    background: #fff;
    color: var(--rp-ink);
    font-family: 'Hind', -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

h1, h2, h3, .site-headline {
    font-family: 'Noto Serif', Georgia, serif;
    color: var(--rp-navy);
}

a { color: var(--rp-navy); }

.site-btn-primary {
    background: var(--rp-navy);
    border-color: var(--rp-navy);
    color: #fff;
}
.site-btn-primary:hover { background: var(--rp-navy-dark); color: #fff; }

/* ---------------- Header ---------------- */
.site-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 14px;
    flex-wrap: wrap;
    gap: 14px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.site-logo-img {
    height: 50px; /* Adjust as needed */
    width: auto;
    display: block;
}

.site-logo-mark {
    width: 40px; height: 40px;
    background: var(--rp-saffron);
    color: var(--rp-navy-dark);
    border-radius: 8px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Hind', sans-serif;
}

.site-logo-text {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--rp-navy);
    line-height: 1.1;
}
.site-logo-text small {
    display: block;
    font-family: 'Hind', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--rp-muted);
}

.site-search { display: flex; gap: 6px; width: 320px; max-width: 100%; }

.site-nav { background: var(--rp-navy); }
.site-nav-inner { display: flex; gap: 4px; overflow-x: auto; }
.site-nav-inner a {
    display: block;
    padding: 12px 16px;
    color: #DCE4EE;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.site-nav-inner a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.site-nav-highlight { background: var(--rp-saffron); color: var(--rp-navy-dark) !important; font-weight: 600 !important; }
.site-nav-highlight:hover { background: #c77f22 !important; color: var(--rp-navy-dark) !important; }

/* ---------------- Content ---------------- */
.site-main { padding: 32px 0 56px; min-height: 60vh; }

.hero-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--rp-sand);
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    color: #fff;
}
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card .hero-overlay {
    position: relative; z-index: 2;
    background: linear-gradient(to top, rgba(15,33,56,0.92), rgba(15,33,56,0.15) 70%);
    width: 100%; padding: 28px;
}
.hero-card .hero-overlay h1 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.hero-card .hero-meta { color: #C7D0DC; font-size: 13px; }

.section-title {
    font-size: 20px;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rp-line);
    display: flex; align-items: center; justify-content: space-between;
}
.section-title a { font-size: 13px; font-family: 'Hind', sans-serif; font-weight: 500; }

.article-card { display: block; text-decoration: none; color: inherit; margin-bottom: 22px; }
.article-card .thumb { border-radius: 10px; overflow: hidden; background: var(--rp-sand); aspect-ratio: 16/10; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card .thumb .placeholder-icon { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#B9C1CC; font-size: 34px; }
.article-card .cat-badge {
    display: inline-block; margin-top: 10px;
    font-size: 11px; text-transform: uppercase; letter-spacing: .4px;
    color: var(--rp-navy); background: var(--rp-sand);
    padding: 3px 9px; border-radius: 20px; font-weight: 600;
}
.article-card h3 { font-size: 17px; margin: 8px 0 4px; line-height: 1.35; }
.article-card .excerpt { color: var(--rp-muted); font-size: 14px; }
.article-card .meta { color: #9CA3AF; font-size: 12.5px; margin-top: 6px; }

/* ---------------- Article detail ---------------- */
.breadcrumb-bar { font-size: 13px; color: var(--rp-muted); margin-bottom: 16px; }
.breadcrumb-bar a { color: var(--rp-muted); text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }

.article-title { font-size: 34px; line-height: 1.25; margin-bottom: 6px; }
.article-title-hindi { font-size: 20px; color: var(--rp-muted); font-family: 'Hind', sans-serif; margin-bottom: 16px; }
.article-meta-row { display: flex; gap: 16px; flex-wrap: wrap; color: var(--rp-muted); font-size: 14px; margin-bottom: 22px; }
.article-featured-image { width: 100%; border-radius: 12px; margin-bottom: 24px; }

.article-body { font-size: 17px; line-height: 1.8; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body h2, .article-body h3 { margin-top: 28px; }

.tag-pill {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    background: var(--rp-sand); color: var(--rp-navy); font-size: 12.5px;
    text-decoration: none; margin: 0 6px 6px 0;
}

.share-row { display: flex; gap: 8px; margin: 26px 0; }
.share-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font-size: 15px;
}
.share-facebook { background: #1877F2; }
.share-twitter { background: #000; }
.share-whatsapp { background: #25D366; }

/* ---------------- Comments ---------------- */
.comment-block { border-top: 1px solid var(--rp-line); padding-top: 24px; margin-top: 8px; }
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--rp-line); }
.comment-item.reply { margin-left: 32px; }
.comment-author { font-weight: 600; font-size: 14.5px; }
.comment-date { color: #9CA3AF; font-size: 12px; margin-left: 8px; }
.comment-text { margin-top: 4px; font-size: 14.5px; }
.comment-reply-link { font-size: 12.5px; color: var(--rp-navy); cursor: pointer; }

/* ---------------- Continuous scroll ("keep reading") ---------------- */
.scroll-sentinel { height: 1px; }
.feed-loading { text-align: center; padding: 28px 0; color: var(--rp-muted); font-size: 14px; }
.feed-loading .spinner-border { margin-right: 8px; vertical-align: -2px; color: var(--rp-navy); }
.feed-end { text-align: center; padding: 28px 0; margin-top: 12px; border-top: 1px solid var(--rp-line); color: #9CA3AF; font-size: 13.5px; }
.article-feed-item { border-top: 2px solid var(--rp-line); margin-top: 44px; padding-top: 34px; }
.feed-view-comments { display: inline-block; margin-top: 4px; font-size: 13.5px; }

/* ---------------- Ads ---------------- */
.ad-slot { margin: 24px 0; text-align: center; }

/* ---------------- Calculators & static pages ---------------- */
.static-page h1 { margin-bottom: 6px; }
.static-page .updated-date { color: var(--rp-muted); font-size: 13px; margin-bottom: 24px; }
.static-page h2 { margin-top: 30px; font-size: 20px; }
.static-page ul { padding-left: 20px; }

.calc-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.calc-tool-card { display: block; background: #fff; border: 1px solid var(--rp-line); border-radius: 12px; padding: 20px; text-decoration: none; color: inherit; height: 100%; transition: box-shadow .15s ease, transform .15s ease; }
.calc-tool-card:hover { box-shadow: 0 8px 24px rgba(15,33,56,0.10); transform: translateY(-2px); }
.calc-tool-card .calc-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--rp-sand); color: var(--rp-navy); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.calc-tool-card h3 { font-size: 16px; margin-bottom: 4px; color: var(--rp-navy); }
.calc-tool-card p { font-size: 13.5px; color: var(--rp-muted); margin-bottom: 0; }

.calc-section { background: #fff; border: 1px solid var(--rp-line); border-radius: 12px; padding: 22px 24px; margin-bottom: 20px; }
.calc-section h2 { margin-top: 0; font-size: 18px; color: var(--rp-navy); border-bottom: 1px solid var(--rp-line); padding-bottom: 12px; margin-bottom: 18px; }
.calc-field-label { font-size: 13.5px; font-weight: 500; margin-bottom: 4px; display: block; }
.calc-result-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.calc-result-table th, .calc-result-table td { padding: 10px 12px; border-bottom: 1px solid var(--rp-line); text-align: left; font-size: 14.5px; }
.calc-result-table th { background: var(--rp-sand); color: var(--rp-navy); font-weight: 600; }
.calc-highlight-box { background: var(--rp-sand); border-left: 4px solid var(--rp-saffron); padding: 14px 18px; border-radius: 8px; margin-top: 16px; font-size: 14.5px; }
.calc-note { font-size: 12.5px; color: var(--rp-muted); margin-top: 8px; }

/* Used by any page with a honeypot anti-spam field (comment form, contact form) */
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }
.ad-slot-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: #9CA3AF; margin-bottom: 6px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--rp-navy-dark); color: #B9C4D2; margin-top: 40px; }
.site-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; padding: 36px 0 20px; }
.site-footer h6 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.site-footer a { color: #B9C4D2; text-decoration: none; font-size: 14px; line-height: 2; }
.site-footer a:hover { color: #fff; }
.site-footer-tagline { font-size: 13px; margin-top: 8px; color: #8896A8; }
.site-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 0; text-align: center; font-size: 12.5px; color: #7C8AA0; }

@media (max-width: 767px) {
    .site-footer-grid { grid-template-columns: 1fr; }
    .article-title { font-size: 26px; }
}
