/*
Theme Name: BanglarBhumi
Theme URI: https://banglaarbhumi.in
Author: BanglarBhumi Team
Description: Official informational theme for BanglarBhumi - West Bengal Land Records Portal Guide
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: banglaarbhumi
Tags: government, land-records, informational, two-columns
*/

:root {
  --color-primary:   #1B4332;
  --color-secondary: #40916C;
  --color-accent:    #D4A017;
  --color-accent-lt: #F9E08A;
  --color-bg:        #F7F4EF;
  --color-bg-dark:   #0D2818;
  --color-surface:   #FFFFFF;
  --color-border:    #D6CCBC;
  --color-text:      #1A1A1A;
  --color-muted:     #5A6B60;
  --font-display: 'Tiro Bangla', 'Noto Serif Bengali', Georgia, serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --transition: 0.25s ease;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); color: var(--color-primary); line-height: 1.25; margin-bottom: .5em; }
h1 { font-size: clamp(2rem,5vw,3rem); }
h2 { font-size: clamp(1.5rem,3vw,2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.1em; }

.container { max-width: var(--max-width); margin-inline: auto; padding-inline: 1.5rem; }
.screen-reader-text { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }

/* TOP BAR */
.top-bar { background: var(--color-bg-dark); color: #adc5b8; font-size: .78rem; letter-spacing: .04em; padding: .45rem 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top-bar a { color: #adc5b8; }
.top-bar a:hover { color: var(--color-accent-lt); }
.top-bar-notice { display: flex; align-items: center; gap: .5rem; }
.top-bar-notice .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.top-bar-links { display: flex; gap: 1.25rem; }

/* HEADER */
.site-header { background: var(--color-surface); border-bottom: 3px solid var(--color-primary); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: .9rem; }
.site-branding { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.logo-emblem { width: 52px; height: 52px; border-radius: 50%; background: var(--color-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 3px solid var(--color-accent); }
.logo-emblem svg { width: 28px; height: 28px; fill: #fff; }
.logo-text .name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--color-primary); display: block; }
.logo-text .tagline { font-size: .72rem; color: var(--color-muted); letter-spacing: .06em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a { color: var(--color-text); font-size: .9rem; font-weight: 500; padding: .5rem .85rem; border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); }
.main-nav a:hover, .main-nav .current-menu-item a { background: var(--color-primary); color: #fff; }
.main-nav .btn-nav { background: var(--color-accent); color: var(--color-bg-dark) !important; font-weight: 700; padding: .5rem 1.1rem; }
.main-nav .btn-nav:hover { background: var(--color-primary); color: #fff !important; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; background: none; border: none; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); border-radius: 2px; transition: all var(--transition); }

/* HERO */
.hero { background: var(--color-primary); background-image: radial-gradient(ellipse at 70% 50%, #2d6a4f, transparent 60%), radial-gradient(ellipse at 10% 80%, #0d2818, transparent 50%); color: #fff; padding: 4.5rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::before { content:''; position: absolute; inset:0; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(212,160,23,.2); border: 1px solid rgba(212,160,23,.5); color: var(--color-accent-lt); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .85rem; border-radius: 100px; margin-bottom: 1rem; }
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero h1 span { color: var(--color-accent); }
.hero-desc { color: #9ec9b3; font-size: 1.05rem; margin-bottom: 2rem; max-width: 520px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-search-card { background: rgba(255,255,255,.07); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); padding: 1.8rem; }
.hero-search-card h3 { color: #fff; font-size: 1rem; margin-bottom: 1.2rem; }
.search-form { display: flex; flex-direction: column; gap: .75rem; }
.search-form select, .search-form input { width: 100%; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-sm); background: rgba(255,255,255,.15); color: #fff; font-family: var(--font-body); font-size: .9rem; outline: none; transition: border-color var(--transition), background var(--transition); }
.search-form select:focus, .search-form input:focus { border-color: var(--color-accent); background: rgba(255,255,255,.22); }
.search-form select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A017' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }
.search-form select option { background: #1a3d2b; color: #fff; }
.search-form input::placeholder { color: rgba(255,255,255,.65); }
.search-form select:invalid, .search-form select option[value=""] { color: rgba(255,255,255,.65); }
.search-form .btn-search { background: var(--color-accent); color: var(--color-bg-dark); font-weight: 700; font-size: .95rem; padding: .75rem; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition); }
.search-form .btn-search:hover { background: #e6b020; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-weight: 600; font-size: .92rem; padding: .7rem 1.5rem; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--color-accent); color: var(--color-bg-dark); border-color: var(--color-accent); }
.btn-primary:hover { background: #c49015; border-color: #c49015; color: var(--color-bg-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.btn-green { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-green:hover { background: #0d2818; border-color: #0d2818; color: #fff; }

/* QUICK LINKS */
.quick-links { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 1.2rem 0; }
.quick-links .container { display: flex; gap: 1rem; overflow-x: auto; scrollbar-width: none; }
.quick-links .container::-webkit-scrollbar { display: none; }
.quick-link-item { display: flex; align-items: center; gap: .5rem; white-space: nowrap; background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-primary); font-size: .85rem; font-weight: 600; padding: .5rem 1rem; border-radius: 100px; text-decoration: none; flex-shrink: 0; transition: all var(--transition); }
.quick-link-item:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.quick-link-item svg { width: 15px; height: 15px; }

/* SECTIONS */
.section { padding: 4rem 0; }
.section-alt { background: var(--color-surface); }
.section-dark { background: var(--color-bg-dark); color: #9ec9b3; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow { display: inline-block; color: var(--color-accent); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; }
.section-header h2 { color: var(--color-primary); margin-bottom: .5rem; }
.section-header p { color: var(--color-muted); max-width: 560px; margin-inline: auto; }
.section-dark .section-header h2 { color: #fff; }
.divider { width: 60px; height: 4px; background: linear-gradient(to right, var(--color-accent), var(--color-secondary)); border-radius: 2px; margin: .75rem auto 0; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem 1.5rem; transition: all var(--transition); position: relative; overflow: hidden; }
.service-card::before { content:''; position: absolute; top:0; left:0; width:100%; height:3px; background: linear-gradient(to right, var(--color-accent), var(--color-secondary)); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: #e8f5ee; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.service-icon svg { width: 26px; height: 26px; stroke: var(--color-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.service-card p { font-size: .85rem; color: var(--color-muted); margin: 0; }
.service-card .card-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .9rem; font-size: .82rem; font-weight: 700; color: var(--color-secondary); }
.service-card .card-link:hover { color: var(--color-accent); }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2rem; }
.step-item { text-align: center; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--color-primary); color: #fff; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; border: 3px solid var(--color-accent); }
.step-item h4 { margin-bottom: .4rem; }
.step-item p { font-size: .85rem; color: var(--color-muted); margin: 0; }

/* TABLE */
.links-table { width: 100%; border-collapse: separate; border-spacing: 0 .6rem; }
.links-table thead th { background: var(--color-primary); color: #fff; padding: .75rem 1.25rem; text-align: left; font-size: .85rem; font-weight: 600; }
.links-table thead th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.links-table thead th:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.links-table tbody tr { background: var(--color-surface); box-shadow: var(--shadow-sm); transition: all var(--transition); }
.links-table tbody tr:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.links-table tbody td { padding: .9rem 1.25rem; font-size: .9rem; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.links-table tbody td:first-child { border-left: 1px solid var(--color-border); border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-weight: 600; color: var(--color-primary); }
.links-table tbody td:last-child { border-right: 1px solid var(--color-border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--color-muted); font-size: .83rem; }
.table-link { display: inline-flex; align-items: center; gap: .3rem; background: var(--color-primary); color: #fff !important; padding: .3rem .75rem; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600; transition: background var(--transition); }
.table-link:hover { background: var(--color-secondary); color: #fff; }

/* NOTICE */
.notice-bar { background: linear-gradient(135deg,#fffbea,#fff8db); border: 1px solid #e6c84a; border-left: 4px solid var(--color-accent); border-radius: var(--radius-sm); padding: 1rem 1.25rem; display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 2rem; }
.notice-bar svg { width: 20px; height: 20px; stroke: #b8860b; flex-shrink: 0; margin-top: .1rem; fill: none; stroke-width: 2; }
.notice-bar p { margin: 0; font-size: .87rem; color: #6b5c00; }

/* LAYOUT */
.content-area { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.main-content { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.widget-title { background: var(--color-primary); color: #fff; font-family: var(--font-display); font-size: 1rem; padding: .75rem 1.25rem; margin: 0; }
.widget-body { padding: 1.25rem; }
.widget-body ul { display: flex; flex-direction: column; gap: .5rem; }
.widget-body ul li a { display: flex; align-items: center; gap: .5rem; font-size: .87rem; color: var(--color-text); padding: .4rem 0; border-bottom: 1px dashed var(--color-border); }
.widget-body ul li:last-child a { border-bottom: none; }
.widget-body ul li a:hover { color: var(--color-primary); }
.widget-body ul li a::before { content:'›'; color: var(--color-accent); font-weight: 700; font-size: 1.1rem; }
.contact-widget p { font-size: .85rem; color: var(--color-muted); margin-bottom: .5rem; display: flex; gap: .5rem; align-items: flex-start; }
.contact-widget strong { color: var(--color-primary); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--color-primary); gap: 1rem; }
.faq-question svg { flex-shrink: 0; width: 18px; height: 18px; stroke: var(--color-secondary); transition: transform var(--transition); fill: none; stroke-width: 2; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; padding: 0 1.25rem; font-size: .9rem; color: var(--color-muted); }
.faq-item.open .faq-answer { max-height: 400px; padding: .5rem 1.25rem 1.1rem; }

/* STATS */
.stats-bar { background: var(--color-primary); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--color-accent); line-height: 1; margin-bottom: .3rem; }
.stat-label { font-size: .8rem; color: #9ec9b3; letter-spacing: .06em; text-transform: uppercase; }

/* BREADCRUMB */
.breadcrumb { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: .6rem 0; }
.breadcrumb-inner { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--color-muted); }
.breadcrumb-inner a { color: var(--color-secondary); }
.breadcrumb-inner .sep { color: var(--color-border); }
.breadcrumb-inner .current { color: var(--color-text); font-weight: 500; }

/* POSTS */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-thumb { height: 180px; background: var(--color-primary); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-card-body { padding: 1.25rem; }
.post-cat { display: inline-block; background: #e8f5ee; color: var(--color-primary); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 100px; margin-bottom: .65rem; }
.post-card-body h3 { font-size: 1rem; margin-bottom: .5rem; }
.post-card-body h3 a { color: var(--color-primary); }
.post-card-body h3 a:hover { color: var(--color-secondary); }
.post-meta { font-size: .78rem; color: var(--color-muted); display: flex; gap: 1rem; }

/* ENTRY */
.entry-content { font-size: .97rem; line-height: 1.8; }
.entry-content h2,.entry-content h3 { margin-top: 2em; margin-bottom: .75em; }
.entry-content ul,.entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote { border-left: 4px solid var(--color-accent); padding: 1rem 1.5rem; background: #fffbea; margin: 1.5em 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.entry-content th,.entry-content td { padding: .6rem .9rem; border: 1px solid var(--color-border); font-size: .9rem; }
.entry-content th { background: var(--color-primary); color: #fff; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: .5rem; padding: 2rem 0; }
.pagination a,.pagination span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-size: .9rem; font-weight: 600; color: var(--color-text); transition: all var(--transition); }
.pagination a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* FOOTER */
.site-footer { background: var(--color-bg-dark); color: #7aaa8f; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-brand { display: flex; flex-direction: column; gap: .75rem; }
.footer-logo { display: flex; align-items: center; gap: .75rem; }
.footer-logo .emblem { width: 44px; height: 44px; border-radius: 50%; background: var(--color-secondary); display: flex; align-items: center; justify-content: center; border: 2px solid var(--color-accent); }
.footer-logo .emblem svg { width: 22px; height: 22px; fill: #fff; }
.footer-logo .fname { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.footer-desc { font-size: .84rem; line-height: 1.65; }
.footer-disclaimer { font-size: .75rem; color: #556e60; border-top: 1px solid rgba(255,255,255,.06); padding-top: .75rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { color: #7aaa8f; font-size: .87rem; display: flex; align-items: center; gap: .4rem; transition: color var(--transition); }
.footer-col ul a::before { content:'→'; font-size: .8rem; opacity: .6; }
.footer-col ul a:hover { color: var(--color-accent-lt); }
.footer-contact-item { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; margin-bottom: .75rem; }
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--color-accent); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: .15rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.25rem 0; font-size: .8rem; }
.footer-bottom p { color: #556e60; }
.footer-bottom a { color: #7aaa8f; }
.footer-bottom a:hover { color: var(--color-accent-lt); }
.footer-bottom-links { display: flex; gap: 1.25rem; }

/* BACK TO TOP */
.back-to-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; background: var(--color-primary); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(10px); transition: all var(--transition); box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 200; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--color-secondary); }
.back-to-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-search-card { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-area { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; width: 100%; background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 1rem 0; order: 3; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .65rem 1rem; border-radius: 0; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .hero { padding: 2.5rem 0 2rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* WP CORE */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption-text { font-size: .82rem; color: var(--color-muted); text-align: center; margin-top: .4rem; }
.sticky { border-left: 4px solid var(--color-accent); padding-left: 1rem; }
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.comment-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .3rem; color: var(--color-primary); }
.comment-form input,.comment-form textarea { width: 100%; padding: .7rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .9rem; color: var(--color-text); background: var(--color-bg); margin-bottom: 1rem; }
.comment-form input:focus,.comment-form textarea:focus { outline: none; border-color: var(--color-secondary); }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .submit { background: var(--color-primary); color: #fff; border: none; padding: .7rem 1.75rem; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .95rem; font-weight: 600; cursor: pointer; transition: background var(--transition); }
.comment-form .submit:hover { background: var(--color-secondary); }
.comment-list { list-style: none; margin-bottom: 2rem; }
.comment { padding: 1.25rem; background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border); margin-bottom: 1rem; }
.comment-meta { font-size: .8rem; color: var(--color-muted); margin-bottom: .5rem; }
.comment-author b { color: var(--color-primary); }
.search-form-wp { display: flex; gap: .5rem; }
.search-form-wp input[type="search"] { flex: 1; padding: .6rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .9rem; }
.search-form-wp button { background: var(--color-primary); color: #fff; border: none; padding: .6rem 1.2rem; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-body); font-weight: 600; }
.search-form-wp button:hover { background: var(--color-secondary); }
.error-404 { text-align: center; padding: 6rem 0; }
.error-404 .code { font-family: var(--font-display); font-size: 8rem; color: var(--color-primary); opacity: .15; line-height: 1; }

/* ========================================
   HOMEPAGE CONTENT COMPONENTS
======================================== */

/* Eyebrow inline (inside content blocks) */
.eyebrow-inline {
  display: inline-block;
  color: var(--color-accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

/* Info block — wraps each major content section */
.info-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 2rem;
  position: relative;
}
.info-block h2 { margin-top: .25rem; margin-bottom: 1rem; }
.info-block h3 { margin-top: 1.5rem; margin-bottom: .75rem; color: var(--color-secondary); font-size: 1.1rem; }
.info-block p  { color: var(--color-muted); margin-bottom: 1rem; }

/* Info table (portal details) */
.info-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.info-table th, .info-table td {
  padding: .65rem 1rem;
  font-size: .88rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.info-table th {
  width: 36%;
  background: #f0f7f4;
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}
.info-table td { color: var(--color-muted); }
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* Feature chips */
.feature-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chip {
  background: #e8f5ee;
  border: 1px solid #b7e0c9;
  color: var(--color-primary);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 100px;
}

/* Check list */
.check-list { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.check-item { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; color: var(--color-text); }
.check-icon {
  width: 20px; height: 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* Access cards */
.access-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.access-card {
  display: flex;
  gap: .85rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}
.access-num {
  width: 32px; height: 32px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.access-card strong { display: block; color: var(--color-primary); margin-bottom: .3rem; }
.access-card p { font-size: .84rem; color: var(--color-muted); margin: 0; }

/* Steps list (inline, inside info-block) */
.steps-list { display: flex; flex-direction: column; gap: .85rem; margin-top: 1rem; }
.steps-list.compact { gap: .6rem; }
.step-row { display: flex; gap: .9rem; align-items: flex-start; }
.step-badge {
  width: 28px; height: 28px;
  background: var(--color-primary);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: .15rem;
  border: 2px solid var(--color-accent);
}
.step-body strong { display: block; color: var(--color-primary); font-size: .92rem; margin-bottom: .2rem; }
.step-body p { font-size: .88rem; color: var(--color-muted); margin: 0; }

/* Two-col explainer cards */
.two-col-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.explainer-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.explainer-card.accent-gold { border-top: 3px solid var(--color-accent); }
.explainer-card.accent-green { border-top: 3px solid var(--color-secondary); }
.explainer-icon {
  width: 44px; height: 44px;
  background: #e8f5ee;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem;
}
.explainer-icon svg { width: 22px; height: 22px; stroke: var(--color-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.explainer-card h3 { font-size: .95rem; margin: 0 0 .5rem; }
.explainer-card p { font-size: .85rem; color: var(--color-muted); margin: 0; }

/* Method tabs (two side-by-side blocks) */
.method-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1rem; }
.method-block {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.method-block h3 { font-size: .95rem; margin-bottom: .85rem; color: var(--color-secondary); }

/* Tips grid */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.tip-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
}
.tip-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tip-emoji { font-size: 1.8rem; margin-bottom: .75rem; }
.tip-card h4 { color: var(--color-primary); margin-bottom: .4rem; font-size: .95rem; }
.tip-card p  { font-size: .85rem; color: var(--color-muted); margin: 0; }

/* Contact grid */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-secondary); }
.contact-emoji { font-size: 1.75rem; margin-bottom: .6rem; }
.contact-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); margin-bottom: .35rem; }
.contact-value { font-size: .88rem; color: var(--color-primary); font-weight: 600; }

/* App banner */
.app-banner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: center;
}
.app-banner-text h2 { margin-top: .35rem; }
.app-banner-text p  { color: var(--color-muted); margin-bottom: 1.1rem; }

/* Phone mockup */
.phone-mockup {
  background: var(--color-bg-dark);
  border-radius: 28px;
  padding: 1.25rem;
  border: 3px solid var(--color-secondary);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  max-width: 240px;
  margin: 0 auto;
}
.phone-screen {
  background: #0d2818;
  border-radius: 16px;
  overflow: hidden;
}
.phone-header {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: .95rem;
  text-align: center;
  padding: .75rem;
  font-weight: 700;
  border-bottom: 2px solid var(--color-accent);
}
.phone-item {
  padding: .7rem 1rem;
  color: #9ec9b3;
  font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}
.phone-item:last-child { border-bottom: none; }
.phone-item:hover { background: rgba(255,255,255,.04); color: #fff; }

/* ── Responsive overrides ── */
@media (max-width: 900px) {
  .two-col-explainer { grid-template-columns: 1fr; }
  .method-tabs        { grid-template-columns: 1fr; }
  .app-banner         { grid-template-columns: 1fr; }
  .app-banner-visual  { display: none; }
  .access-cards       { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .info-block  { padding: 1.25rem; }
  .tips-grid   { grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: repeat(2,1fr); }
}

/* ========================================
   FULL-WIDTH HOMEPAGE (no sidebar)
======================================== */
.fp-content { width: 100%; }
.fp-full    { width: 100%; max-width: 100%; }

/* ========================================
   OFFICIAL SERVICE BUTTONS
======================================== */
.ob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ob-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}
.ob-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .2s ease;
}
.ob-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.ob-btn:hover::before { background: rgba(0,0,0,.08); }
.ob-btn:active { transform: translateY(0); }

/* Colour variants */
.ob-blue  { background: #1A56A4; }
.ob-green { background: #1B7A3E; }
.ob-gold  { background: #A07C0A; }
.ob-slate { background: #3D4A5C; }
.ob-red   { background: #B03020; }
.ob-teal  { background: #0E7490; }

.ob-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.ob-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.ob-label {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1.2;
}
.ob-sub {
  color: rgba(255,255,255,.72);
  font-size: .75rem;
  margin-top: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ob-arrow {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  flex-shrink: 0;
  transition: color .2s ease, transform .2s ease;
}
.ob-btn:hover .ob-arrow { color: #fff; transform: translate(2px,-2px); }

.ob-disclaimer {
  text-align: center;
  font-size: .82rem;
  color: var(--color-muted);
  padding: .75rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

/* Responsive */
@media (max-width: 900px) {
  .ob-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ob-grid { grid-template-columns: 1fr; }
  .ob-btn  { padding: .9rem 1rem; }
  .ob-label{ font-size: .88rem; }
}

/* ========================================
   CONTACT CARDS — TOP OF PAGE
======================================== */
.contact-top { padding: 2rem 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.contact-top .contact-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}
.contact-emoji { font-size: 1.75rem; margin-bottom: .5rem; }
.contact-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .35rem;
}
.contact-value {
  font-size: .85rem;
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

/* ========================================
   PORTAL INTRO BLOCK (full width, no sidebar)
======================================== */
.about-portal-block {
  max-width: 820px;
  margin: 0 auto;
}
.about-portal-block h2 { margin-top: .3rem; }
.about-portal-block p  { color: var(--color-muted); line-height: 1.85; margin-bottom: 1.1rem; }

/* ========================================
   GLOBAL MOBILE OVERFLOW FIXES
======================================== */
/* Prevent ANY element from breaking out of viewport */
html, body { overflow-x: hidden; max-width: 100%; }

* { box-sizing: border-box; }

/* Containers never exceed viewport */
.container { padding-inline: clamp(.75rem, 4vw, 1.5rem); }

/* Quick links — prevent overflow on mobile */
.quick-links .container {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .25rem;
}

/* Tables — horizontal scroll on mobile */
.links-table, .info-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.links-table tbody td,
.links-table thead th,
.info-table th,
.info-table td {
  white-space: normal;
  min-width: 120px;
}

/* Service buttons — single column on small phones */
@media (max-width: 480px) {
  .ob-grid { grid-template-columns: 1fr; gap: .75rem; }
  .ob-btn  { padding: .85rem 1rem; }
  .ob-icon { width: 36px; height: 36px; font-size: 1.3rem; }
  .ob-label { font-size: .85rem; }
  .ob-sub   { display: none; }
}

/* Contact cards — 2 col on mobile */
@media (max-width: 900px) {
  .contact-top .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .contact-top .contact-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .contact-card { padding: 1rem .75rem; }
  .contact-emoji { font-size: 1.4rem; }
  .contact-value { font-size: .78rem; }
}

/* Portal intro — full width, nothing to stack */

/* Steps — prevent overflow */
.step-row { flex-wrap: nowrap; }
.step-body { min-width: 0; flex: 1; }
.step-body p { word-break: break-word; }

/* Hero grid on mobile */
@media (max-width: 640px) {
  .hero { padding: 2rem 0 1.75rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-desc { font-size: .92rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-search-card { padding: 1.25rem; }
  .search-form select,
  .search-form input { font-size: .85rem; padding: .6rem .85rem; }
}

/* Stats bar — 3 col then 2 col */
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat-num   { font-size: 1.6rem; }
}
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Info blocks — full width on mobile */
@media (max-width: 600px) {
  .info-block { padding: 1.1rem; }
  .two-col-explainer { grid-template-columns: 1fr; }
  .method-tabs        { grid-template-columns: 1fr; }
  .access-cards       { grid-template-columns: 1fr; }
  .tips-grid          { grid-template-columns: 1fr; }
}

/* Footer grid — 2 col then 1 col */
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}
