/* =====================================================
   RightWay Legal — Main Stylesheet
   Palette: Deep Navy + Dark Navy + Chocolate + White
   ===================================================== */
:root {
    --navy: #0F1E3D;
    --navy-dark: #081228;
    --navy-soft: #1B2C52;
    --choco: #5B3A29;
    --choco-dark: #3E2418;
    --choco-soft: #7A5240;
    --accent: #B08A5B;
    /* subtle warm gold accent */
    --bg: #FFFFFF;
    --bg-off: #F7F8FA;
    --bg-soft: #EFF1F5;
    --text: #14203A;
    --text-muted: #5C6B85;
    --border: #E3E7EE;
    --card: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(15, 30, 61, .06), 0 2px 8px rgba(15, 30, 61, .04);
    --shadow-md: 0 4px 16px rgba(15, 30, 61, .08);
    --radius: 12px;
    --radius-lg: 18px;
    --container: 1200px;
    --transition: all .22s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Devanagari', 'Mukta', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--choco);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

:focus-visible {
    outline: 2px solid var(--choco);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    min-height: 60vh;
    padding: 30px 0 60px;
}

/* ================= HEADER ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}

.brand-name {
    font-weight: 700;
    font-size: 20px;
    color: var(--navy);
    letter-spacing: -.3px;
}

.main-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.main-nav a:hover {
    background: var(--bg-soft);
    color: var(--navy);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-soft);
}

.hamburger {
    display: none;
}

.search-bar {
    display: none;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-off);
}

.search-bar.open {
    display: block;
}

.search-bar form {
    display: flex;
    gap: 10px;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
}

.search-bar button {
    padding: 12px 22px;
    background: var(--navy);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
}

.search-bar button:hover {
    background: var(--navy-dark);
}
.saved-icon { width: 17px; height: 17px; display: inline-block; vertical-align: middle; margin-right: 5px; }
.search-suggestions { position:absolute; z-index:90; top:calc(100% + 6px); left:0; right:76px; max-height:min(60vh,420px); overflow-y:auto; border:1px solid var(--border); border-radius:10px; background:var(--card); box-shadow:var(--shadow-md); }
.search-suggestions[hidden] { display:none; }
.search-suggestion { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:11px 14px; color:var(--text); border-bottom:1px solid var(--border); }
.search-suggestion:last-child { border-bottom:0; }
.search-suggestion:hover, .search-suggestion:focus-visible { background:var(--bg-soft); color:var(--navy); }
.search-suggestion span { min-width:0; overflow-wrap:anywhere; }
.search-suggestion small, .search-suggestion-empty { color:var(--text-muted); }
.search-suggestion-empty { margin:0; padding:14px; }

/* ================= HERO ================= */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    padding: 70px 0 80px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 40px;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -.5px;
}

.hero p.sub {
    font-size: clamp(15px, 1.6vw, 18px);
    opacity: .92;
    margin-bottom: 32px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

.hero-search input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-size: 16px;
    background: transparent;
    color: var(--text);
}

.hero-search input:focus {
    outline: none;
}

.hero-search button {
    padding: 14px 28px;
    background: var(--choco);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
}

.hero-search button:hover {
    background: var(--choco-dark);
}

.example-searches {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.example-searches a {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13.5px;
    border: 1px solid rgba(255, 255, 255, .2);
}

.example-searches a:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

/* ================= VISITOR COUNTER ================= */
.visitor-counter {
    background: var(--bg-off);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.visitor-counter .vc-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.visitor-counter .vc-icon {
    font-size: 32px;
}

.visitor-counter h3 {
    font-size: 17px;
    color: var(--navy);
    font-weight: 700;
}

.visitor-counter .vc-total {
    font-size: 26px;
    font-weight: 800;
    color: var(--choco);
}

.visitor-counter .vc-stats {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.vc-stat {
    text-align: center;
}

.vc-stat .num {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}

.vc-stat .lbl {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ================= SECTION ================= */
.section {
    margin: 50px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 34px;
}

.section-head h2 {
    font-size: clamp(22px, 3vw, 32px);
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -.4px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 15.5px;
}

/* ================= CATEGORY GRID ================= */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cats {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.cat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 22px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-card:hover {
    border-color: var(--choco);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cat-card .cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--navy);
}

.cat-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}

.cat-card p {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.cat-card .arrow {
    color: var(--choco);
    font-weight: 700;
    align-self: flex-end;
}

/* ================= CONTENT CARDS ================= */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-img {
    aspect-ratio: 16/9;
    background: var(--bg-soft);
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card .badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-soft);
    color: var(--choco);
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    align-self: flex-start;
}

.card h3 {
    font-size: 17px;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.4;
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.card .meta {
    display: flex;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

.card .btn-read {
    color: var(--choco);
    font-weight: 600;
    font-size: 14px;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--navy-dark);
    color: #fff;
}

.btn-choco {
    background: var(--choco);
    color: #fff;
}

.btn-choco:hover {
    background: var(--choco-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--navy);
    color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

/* ================= ARTICLE ================= */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-top: 30px;
}

.article-body {
    font-size: 17px;
    line-height: 1.85;
}

.article-body h2 {
    font-size: 24px;
    color: var(--navy);
    margin: 32px 0 12px;
}

.article-body h3 {
    font-size: 20px;
    color: var(--navy);
    margin: 24px 0 10px;
}

.article-body p {
    margin-bottom: 16px;
    color: var(--text);
}

.article-body ul,
.article-body ol {
    margin: 0 0 18px 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.article-hero-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 16/8;
    background: var(--bg-soft);
}

.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.breadcrumb {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--choco);
}

.breadcrumb span {
    margin: 0 6px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13.5px;
    padding: 12px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.important-note {
    background: #FFF7ED;
    border-left: 4px solid var(--choco);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 22px 0;
    font-size: 15px;
}

.notice-demo {
    background: #FEF3C7;
    border-left: 4px solid #B45309;
    padding: 12px 18px;
    border-radius: 8px;
    margin: 18px 0;
    font-size: 14px;
    color: #78350F;
    font-weight: 600;
}

.notice-info {
    background: var(--bg-soft);
    border-left: 4px solid var(--navy);
    padding: 12px 18px;
    border-radius: 8px;
    margin: 18px 0;
    font-size: 14px;
}

.share-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.share-bar button,
.share-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--bg-soft);
    font-size: 13.5px;
    color: var(--navy);
    font-weight: 500;
}

.share-bar button:hover,
.share-bar a:hover {
    background: var(--navy);
    color: #fff;
}

/* ================= SIDEBAR ================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.widget h3 {
    font-size: 16px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget ul li a {
    font-size: 14px;
    color: var(--text);
    display: block;
    line-height: 1.5;
}

.widget ul li a:hover {
    color: var(--choco);
}

.widget ul li .date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

/* ================= FILTERS ================= */
.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: 16px;
    background: var(--bg-off);
    border-radius: var(--radius);
}

.filters select,
.filters input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14.5px;
    background: var(--bg);
    color: var(--text);
    min-width: 180px;
}

/* ================= PAGINATION ================= */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--bg-off);
    color: var(--navy);
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: var(--navy);
    color: #fff;
}

.pagination .active {
    background: var(--navy);
    color: #fff;
}

/* ================= FORM ================= */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(15, 30, 61, .08);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.alert {
    padding: 13px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14.5px;
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* ================= FOOTER ================= */
.site-footer {
    background: var(--navy-dark);
    color: #C7D2E0;
    margin-top: 60px;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 19px;
    margin: 10px 0 6px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 14px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-col .tagline {
    color: var(--accent);
    font-style: italic;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    color: #C7D2E0;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-logo {
    height: 42px;
    margin-bottom: 8px;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 22px 20px;
    font-size: 13px;
    color: #A5B1C4;
    line-height: 1.7;
    text-align: center;
}

.footer-bottom {
    background: #05091A;
    padding: 16px 0;
    font-size: 13px;
    color: #8393AC;
    text-align: center;
}

/* ================= UTIL ================= */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* Consistent polish shared by the existing page layouts. */
.site-main { overflow-wrap: anywhere; }
.card { box-shadow: var(--shadow-sm); }
.card:hover { border-color: var(--border); }
.card .btn-read { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.btn, .share-bar button, .share-bar a { min-height: 42px; }
.form-group input, .form-group textarea, .form-group select,
.filters input, .filters select { border-radius: 9px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav-icon { width: 16px; height: 16px; display: inline-flex; flex: 0 0 16px; }
.nav-icon svg, .icon-btn svg, .back-to-top svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg { width: 21px; height: 21px; }
.site-logo { flex: 0 0 42px; }
.article-body { max-width: 75ch; overflow-wrap: anywhere; }
.article-body img, .article-hero-img img { max-width: 100%; }
.reading-progress { position: sticky; top: 74px; height: 3px; background: var(--bg-soft); z-index: 5; margin-bottom: 18px; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--choco); transition: width .08s linear; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: #fff; background: var(--navy); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.meta { flex-wrap: wrap; }
table { max-width: 100%; }
.saved-page { padding-top: 20px; padding-bottom: 48px; }
.saved-page h1 { color: var(--navy); margin: 10px 0 4px; font-size: clamp(24px, 3vw, 32px); }
.saved-intro { color: var(--text-muted); margin-bottom: 24px; }
.saved-blog-card .card-body { gap: 12px; }
.saved-blog-title { font-size: 18px; line-height: 1.45; color: var(--navy); }
.saved-blog-date { color: var(--text-muted); font-size: 14px; }
.saved-blog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.bookmark-action { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; min-height: 42px; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px; }
.bookmark-action.saved { color: var(--choco); border-color: var(--choco); }
.bookmark-action-icon { width: 18px; height: 18px; }

.content-page { padding-block: 12px 42px; }
.content-search { margin: 0 0 24px; }
.content-search input { flex: 1 1 260px; min-width: 0; }
.complaint-guide-card h2 { margin: 10px 0 12px; color: var(--navy); font-size: 20px; line-height: 1.45; }
.complaint-guide-card details { margin-top: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.complaint-guide-card summary { color: var(--text); font-weight: 650; cursor: pointer; }
.complaint-guide-copy { padding: 10px 0 0; color: var(--text-muted); line-height: 1.8; overflow-wrap: anywhere; }
.complaint-guide-card .btn { margin-top: 14px; }

@media (max-width: 1100px) {
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; max-height: calc(100vh - 74px); overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--border); padding: 14px 20px; box-shadow: var(--shadow-md); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: flex; padding: 10px 12px; }
  .hamburger { display: inline-flex; }
}

