/*
Theme Name: RupeeCover
Theme URI: https://rupeecovercom
Author: RupeeCover Team
Author URI: https://rupeecovercom
Description: A professional Finance & Insurance theme for RupeeCover.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rupeecover
Tags: finance, insurance, loan, blog, two-column
*/

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0d2137;
  --navy-mid: #16355a;
  --navy-light: #1a4a7a;
  --gold: #e8b84b;
  --blue: #1a6fbf;
  --blue-light: #f0f6ff;
  --blue-border: #dce8f5;
  --text-dark: #0d2137;
  --text-mid: #2d3f52;
  --text-muted: #6b87a0;
  --text-faint: #8fa8c0;
  --bg-page: #f8fafd;
  --bg-white: #ffffff;
  --bg-alt: #f4f8ff;
  --green-wa: #25d366;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text-dark); background: var(--bg-page); font-size: 16px; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================
   HEADER
============================================ */
#site-header {
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  position: sticky; top: 0; z-index: 999;
  border-bottom: 3px solid var(--gold);
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px; background: var(--gold); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: var(--navy); flex-shrink: 0;
}
.logo-icon img { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; }
.logo-text { font-size: 22px; font-weight: 700; color: #fff; }
.logo-text span { color: var(--gold); }

/* ---- DESKTOP NAV: always horizontal ---- */
#site-nav {
  margin-left: 60px;
  display: block !important;
}
#site-nav > ul,
#site-nav > div > ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
#site-nav > ul > li,
#site-nav > div > ul > li {
  margin: 0; padding: 0;
  float: none !important;
  display: inline-block;
}
#site-nav a {
  color: #cfd8e8 !important;
  font-size: 15px; font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: inline-block;
  white-space: nowrap;
  background: none !important;
}
#site-nav a:hover,
#site-nav li.current-menu-item > a,
#site-nav li.current_page_item > a,
#site-nav li.current-menu-ancestor > a {
  color: var(--gold) !important;
  border-bottom-color: var(--gold);
}
#site-nav ul ul { display: none !important; }

/* Mobile hamburger - hidden on desktop */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* ============================================
   HERO (Home only)
============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  padding: 70px 40px; text-align: center; position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(232,184,75,0.07);
}
.hero-badge {
  display: inline-block; background: rgba(232,184,75,0.15);
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 13px; font-weight: 600; padding: 5px 18px;
  border-radius: 20px; margin-bottom: 20px; letter-spacing: 0.4px;
}
.hero-section h1 { font-size: 40px; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 16px; }
.hero-section h1 span { color: var(--gold); }
.hero-section p { color: #a0b4cc; font-size: 16px; max-width: 540px; margin: 0 auto 30px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--gold); color: var(--navy); font-weight: 700; padding: 13px 30px; border-radius: var(--radius-sm); font-size: 15px; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); font-weight: 600; padding: 13px 30px; border-radius: var(--radius-sm); font-size: 15px; transition: all 0.2s; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================
   TRUST STRIP
============================================ */
.trust-strip {
  background: #f4f8ff; border-top: 1px solid var(--blue-border); border-bottom: 1px solid var(--blue-border);
  display: flex; justify-content: center; gap: 40px; padding: 16px 40px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #3a5070; font-weight: 500; }
.trust-icon { width: 22px; height: 22px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--navy); font-weight: 700; }

/* ============================================
   SECTIONS
============================================ */
.site-section { padding: 52px 40px; }
.site-section.bg-alt { background: var(--bg-page); }
.site-section.bg-white { background: var(--bg-white); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 12px; }
.section-title { font-size: 26px; font-weight: 700; color: var(--text-dark); }
.section-title span { color: var(--gold); }
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
.view-all-btn {
  font-size: 14px; color: var(--blue); font-weight: 600;
  border: 1.5px solid var(--blue); padding: 7px 18px;
  border-radius: 6px; white-space: nowrap; transition: all 0.2s;
}
.view-all-btn:hover { background: var(--blue); color: #fff; }

/* ============================================
   POST GRID (Home 2x3)
============================================ */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; width: 100%; }

.post-card {
  background: var(--bg-white); border: 1px solid var(--blue-border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s; display: block;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(13,33,55,0.13); }

.post-thumb {
  height: 150px; position: relative;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center; font-size: 36px;
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.post-thumb.loan-thumb { background: linear-gradient(135deg, var(--navy-mid), #0f8c5a); }

.post-cat-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 700; padding: 3px 11px;
  border-radius: 20px; z-index: 1;
}
.post-body { padding: 16px 18px; }
.post-meta-small { font-size: 11px; color: var(--text-faint); margin-bottom: 7px; }
.post-card-title { font-size: 15px; font-weight: 600; color: var(--text-dark); line-height: 1.45; margin-bottom: 8px; }
.post-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ============================================
   PAGE LAYOUT (Single / Category)
============================================ */
.page-layout {
  display: grid !important; grid-template-columns: 1fr 280px !important;
  gap: 28px; max-width: 1200px; margin: 0 auto; padding: 32px 40px;
  align-items: start;
}
.page-main { min-width: 0; }

/* ============================================
   BREADCRUMB
============================================ */
.breadcrumb-bar { background: var(--bg-white); border-bottom: 1px solid var(--blue-border); padding: 10px 40px; font-size: 13px; color: var(--text-muted); }
.breadcrumb-bar a { color: var(--blue); }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar span { margin: 0 6px; }

/* ============================================
   SINGLE POST
============================================ */
.single-post-wrap { background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--blue-border); overflow: hidden; }

.post-featured-img {
  width: 100%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 90px; position: relative;
}
.post-featured-img img { width: 100%; height: auto; object-fit: contain; position: relative; display: block; }
.post-featured-img .post-cat-tag { font-size: 12px; padding: 5px 14px; }

.post-content-area { padding: 34px 38px; }
.single-post-title { font-size: 30px; font-weight: 800; color: var(--text-dark); line-height: 1.3; margin-bottom: 18px; }

.post-meta-row { display: flex; align-items: center; gap: 22px; padding-bottom: 20px; border-bottom: 1px solid #edf2f8; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.meta-item strong { color: var(--text-dark); font-weight: 600; }

.post-entry { padding: 26px 0; color: var(--text-mid); line-height: 1.85; }
.post-entry h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin: 30px 0 13px; }
.post-entry h3 { font-size: 18px; font-weight: 600; color: var(--text-dark); margin: 22px 0 10px; }
.post-entry p { margin-bottom: 18px; }
.post-entry ul, .post-entry ol { margin: 12px 0 18px 22px; }
.post-entry li { margin-bottom: 9px; }
.post-entry img { border-radius: var(--radius-sm); margin: 18px 0; width: 100% !important; max-width: 100% !important; height: auto !important; display: block; }
.post-entry blockquote { background: var(--bg-alt); border-left: 4px solid var(--blue); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; font-style: italic; color: #1a3a5a; }
.post-entry table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.post-entry table th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; font-size: 14px; }
.post-entry table td { padding: 10px 14px; border-bottom: 1px solid var(--blue-border); font-size: 14px; }
.post-entry table tr:nth-child(even) td { background: var(--bg-alt); }

.post-tags-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid #edf2f8; }
.post-tag-pill { background: var(--blue-light); color: var(--blue); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; border: 1px solid #c8ddf5; }

/* AUTHOR BOX */
.author-box {
  margin: 0 38px 34px;
  background: var(--bg-alt); border: 1px solid var(--blue-border);
  border-radius: var(--radius-md); padding: 24px;
  display: flex; gap: 20px; align-items: flex-start;
}
.author-avatar {
  width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: var(--gold);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.author-role-badge {
  display: inline-block; font-size: 12px; color: var(--gold); font-weight: 600;
  background: rgba(232,184,75,0.1); border: 1px solid rgba(232,184,75,0.3);
  padding: 2px 11px; border-radius: 20px; margin-bottom: 9px;
}
.author-info p { font-size: 13px; color: #5a7a95; line-height: 1.6; }

/* ============================================
   CATEGORY PAGE
============================================ */
.category-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 36px 40px; border-bottom: 3px solid var(--gold);
}
.category-hero h1 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.category-hero h1 span { color: var(--gold); }
.category-hero p { color: #a0b4cc; font-size: 14px; }

.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ============================================
   SIDEBAR
============================================ */
.sidebar-sticky { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 22px; }

.sidebar-widget { background: var(--bg-white); border: 1px solid var(--blue-border); border-radius: var(--radius-md); overflow: hidden; }
.widget-header {
  background: var(--navy); padding: 13px 18px;
  font-size: 14px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 2px solid var(--gold);
}

.widget-search-body { padding: 16px; }
.search-row { display: flex; }
.search-row input {
  flex: 1; border: 1.5px solid var(--blue-border); border-right: none;
  border-radius: 8px 0 0 8px; padding: 10px 14px;
  font-size: 14px; color: var(--text-dark); outline: none; font-family: inherit;
  background: var(--bg-white);
}
.search-row input:focus { border-color: var(--blue); }
.search-row button {
  background: var(--gold); border: 1.5px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 10px 16px; cursor: pointer;
  font-size: 15px; color: var(--navy); font-weight: 700;
}
.search-row button:hover { background: #d4a53a; }
.search-results-list { margin-top: 12px; }
.search-result-item { padding: 9px 0; border-bottom: 1px solid #edf2f8; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item .s-cat { font-size: 11px; color: var(--gold); font-weight: 700; margin-bottom: 2px; }
.search-result-item a { font-size: 13px; color: var(--text-dark); font-weight: 500; line-height: 1.4; display: block; }
.search-result-item a:hover { color: var(--blue); }
.no-results { font-size: 13px; color: var(--text-faint); padding: 8px 0; }

.latest-post-item {
  display: flex; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid #edf2f8; align-items: flex-start;
  transition: background 0.15s;
}
.latest-post-item:last-child { border-bottom: none; }
.latest-post-item:hover { background: var(--bg-alt); }
.lp-thumb {
  width: 58px; height: 54px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; overflow: hidden;
}
.lp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lp-thumb.loan-thumb { background: linear-gradient(135deg, var(--navy-mid), #0f8c5a); }
.lp-info .lp-title { font-size: 13px; font-weight: 600; color: var(--text-dark); line-height: 1.4; margin-bottom: 4px; }
.lp-info .lp-date { font-size: 11px; color: var(--text-faint); }

.wa-widget-body { padding: 22px 18px; text-align: center; }
.wa-emoji { font-size: 38px; margin-bottom: 10px; }
.wa-widget-body h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 7px; }
.wa-widget-body p { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.55; }
.wa-join-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green-wa); color: #fff; font-weight: 700;
  font-size: 14px; padding: 12px 20px; border-radius: 8px;
  transition: background 0.2s; cursor: pointer;
}
.wa-join-btn:hover { background: #1da851; color: #fff; }

/* ============================================
   PAGINATION
============================================ */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 30px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--blue-border); color: var(--text-dark);
  transition: all 0.2s;
}
.pagination a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================
   FOOTER
============================================ */
#site-footer { background: var(--navy); color: #a0b4cc; padding: 52px 40px 22px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }

.footer-brand .footer-logo { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 13px; display: block; }
.footer-brand .footer-logo span { color: var(--gold); }
.footer-brand p { font-size: 13px; line-height: 1.65; color: #7a95ae; margin-bottom: 15px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge { background: rgba(232,184,75,0.12); border: 1px solid rgba(232,184,75,0.28); color: var(--gold); font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }

.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.footer-col p { font-size: 13px; color: #7a95ae; line-height: 1.65; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: #7a95ae; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12px; color: #546880; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
  #site-header { padding: 12px 20px; }
  #site-nav { display: none !important; margin-left: 0; }
  #site-nav.open { display: block !important; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); padding: 10px 20px 16px; border-top: 1px solid rgba(255,255,255,0.1); z-index: 998; }
  #site-nav.open ul { flex-direction: column !important; gap: 0; }
  #site-nav.open ul li a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-toggle { display: block; }
  .hero-section { padding: 44px 20px; }
  .hero-section h1 { font-size: 28px; }
  .site-section { padding: 36px 20px; }
  .page-layout { display: grid !important; grid-template-columns: 1fr !important; padding: 16px !important; }
  .page-main { width: 100% !important; min-width: 0 !important; order: 1; }
  aside { width: 100% !important; order: 2; }
  .sidebar-sticky { position: static !important; }
  .post-grid, .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { gap: 20px; padding: 14px 20px; }
  .breadcrumb-bar { padding: 10px 20px; }
  .post-content-area { padding: 16px !important; }
  .author-box { margin: 0 16px 24px; flex-direction: column; }
  .category-hero { padding: 28px 20px; }
  .single-post-title { font-size: 22px; }
}

@media (max-width: 540px) {
  .post-meta-row { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 24px; }
  .single-post-title { font-size: 20px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .page-layout { padding: 12px !important; }
  .post-content-area { padding: 12px !important; }
  .author-box { margin: 0 12px 20px; }
}
  #site-nav.open { display: block !important; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); padding: 10px 20px 16px; border-top: 1px solid rgba(255,255,255,0.1); z-index: 998; }
  #site-nav.open ul { flex-direction: column !important; gap: 0; }
  #site-nav.open ul li a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-toggle { display: block; }
  .hero-section { padding: 44px 20px; }
  .hero-section h1 { font-size: 28px; }
  .site-section { padding: 36px 20px; }
  .page-layout { grid-template-columns: 1fr; padding: 20px; }
  .sidebar-sticky { position: static; }
  .post-grid, .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { gap: 20px; padding: 14px 20px; }
  .breadcrumb-bar { padding: 10px 20px; }
  .post-content-area { padding: 22px 20px; }
  .author-box { margin: 0 20px 24px; flex-direction: column; }
  .category-hero { padding: 28px 20px; }
}

@media (max-width: 380px) {
  .post-meta-row { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 24px; }
  .single-post-title { font-size: 22px; }
  .hero-btns { flex-direction: column; align-items: center; }
}