/*
Theme Name: Fintaxit
Theme URI: https://fintaxit.com
Author: Fintaxit Team
Author URI: https://fintaxit.com
Description: Custom WordPress theme for Fintaxit — a finance, tax, GST and IT news & insights portal. Includes homepage sections for featured posts, category highlights, latest posts, and a sidebar with latest updates, popular posts, newsletter subscription and social links.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fintaxit
Tags: news, blog, finance, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   0. CSS VARIABLES / DESIGN TOKENS
========================================================= */
:root{
  --navy: #0f3a5f;
  --navy-dark: #0b2c49;
  --navy-darker: #081f34;
  --teal: #14a89a;
  --teal-dark: #0f8578;
  --teal-light: #e5f6f4;
  --orange: #f5821f;
  --text-dark: #1f2937;
  --text-body: #4b5563;
  --text-muted: #7b8794;
  --bg-page: #eef4f8;
  --bg-card: #ffffff;
  --border: #e3e9ef;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 10px rgba(15,58,95,0.06);
  --shadow-hover: 0 8px 20px rgba(15,58,95,0.12);
  --maxw: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* =========================================================
   1. RESET / BASE
========================================================= */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
html,body{max-width:100%;overflow-x:hidden;}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text-dark);
  background:var(--bg-page);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block;}
svg{max-width:100%;}
a{color:inherit;text-decoration:none;transition:color .15s ease;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4{margin:0 0 .5em;color:var(--navy);font-weight:700;line-height:1.25;overflow-wrap:break-word;word-break:break-word;}
p{margin:0 0 1em;overflow-wrap:break-word;word-break:break-word;}
button,input{font-family:inherit;}
.screen-reader-text{position:absolute;left:-9999px;}

/* Flex/grid children default to min-width:auto, which lets long
   headlines, fixed-size images, etc. force their track wider than
   the viewport instead of shrinking/wrapping. This is the #1 cause
   of "content wider than the page" bugs on mobile, so every grid/
   flex container item in the theme gets min-width:0 as a safety net. */
.site-main-grid > *,
.posts-grid > *,
.category-cards > *,
.footer-grid > *,
.header-row > *,
.nav-menu > *,
.tax-calc > *,
.post-card > *,
.pc-body > *,
.fp-content > *,
.sidebar > *,
.footer-col > *,
.tax-calc-form > *,
.tax-calc-result > *{
  min-width:0;
}

.container{max-width:var(--maxw);margin:0 auto;padding:0 20px;}

.site-main-grid{
  max-width:var(--maxw);
  margin:28px auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:1fr 320px;
  gap:28px;
  align-items:start;
}

/* =========================================================
   2. TOP UTILITY BAR
========================================================= */
.top-bar{
  background:var(--navy-darker);
  color:#cfe3ee;
  font-size:12.5px;
}
.top-bar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:8px;
  padding-bottom:8px;
}
.top-bar a{color:#fff;display:inline-flex;align-items:center;gap:6px;font-weight:500;}
.top-bar a svg{width:12px;height:12px;flex-shrink:0;}
.top-bar a:hover{color:var(--teal);}
.top-bar-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.top-bar .top-bar-btn{
  font-weight:600;font-size:12px;line-height:1.4;
  padding:4px 13px;border-radius:20px;
  border:1px solid rgba(255,255,255,.4);color:#fff;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.top-bar .top-bar-btn:hover{background:#fff;border-color:#fff;color:var(--navy);}
.top-bar .top-bar-subscribe{background:var(--teal);border-color:var(--teal);}
.top-bar .top-bar-subscribe:hover{background:#fff;border-color:#fff;color:var(--navy);}

/* =========================================================
   3. SITE HEADER
========================================================= */
.site-header{
  background:#fff;
  border-bottom:1px solid var(--border);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 20px;
  max-width:var(--maxw);
  margin:0 auto;
}
.site-branding{display:flex;flex-direction:column;line-height:1;}
.site-branding a{display:flex;flex-direction:column;}
.site-title{
  font-size:30px;
  font-weight:800;
  letter-spacing:-.5px;
  background:linear-gradient(90deg,var(--navy) 35%,var(--teal) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.site-tagline{
  font-size:10px;
  letter-spacing:3px;
  color:var(--navy);
  font-weight:600;
  margin-top:2px;
}
.custom-logo{max-height:56px;width:auto;}

.header-search{flex:0 1 380px;}
.header-search form{
  display:flex;
  border:1.5px solid var(--navy);
  border-radius:6px;
  overflow:hidden;
}
.header-search input[type="search"]{
  flex:1;
  border:0;
  outline:0;
  padding:10px 14px;
  font-size:14px;
  color:var(--text-dark);
}
.header-search button{
  background:var(--navy);
  border:0;
  color:#fff;
  width:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.header-search button:hover{background:var(--teal);}
.header-search svg{width:16px;height:16px;}

/* =========================================================
   4. PRIMARY NAVIGATION
========================================================= */
.main-navigation{
  background:#fff;
  border-bottom:1px solid var(--border);
}
.main-navigation .container{display:flex;align-items:center;}
.nav-menu{display:flex;gap:8px;}
.nav-menu li a{
  display:inline-block;
  padding:14px 16px;
  font-weight:600;
  font-size:14.5px;
  color:var(--navy);
  border-bottom:2.5px solid transparent;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a,
.nav-menu li.current-menu-parent a{
  color:var(--teal);
  border-bottom-color:var(--teal);
}
.menu-toggle{
  display:none;
  align-items:center;justify-content:center;
  background:var(--navy);
  color:#fff;
  border:0;
  width:42px;height:42px;
  flex-shrink:0;
  border-radius:8px;
  cursor:pointer;
}
.menu-toggle svg{width:19px;height:19px;flex-shrink:0;}
.menu-toggle:hover{background:var(--teal);}

/* Dropdown sub-menus (e.g. Income Tax > Articles / News / Circulars / Notification) */
.nav-menu li{position:relative;}
.nav-menu li.menu-item-has-children > a{padding-right:22px;position:relative;}
.nav-menu li.menu-item-has-children > a::after{
  content:"";
  position:absolute;right:6px;top:50%;
  width:6px;height:6px;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:translateY(-70%) rotate(45deg);
}
.nav-menu .sub-menu{
  display:none;
  position:absolute;top:100%;left:0;
  background:#fff;
  min-width:200px;
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:var(--shadow-hover);
  padding:6px;
  z-index:60;
}
.nav-menu li.menu-item-has-children:hover > .sub-menu,
.nav-menu li.menu-item-has-children:focus-within > .sub-menu{display:block;}
.nav-menu .sub-menu li a{
  display:block;padding:10px 12px;border-radius:6px;
  border-bottom:0;font-size:13.5px;color:var(--text-dark);font-weight:500;
}
.nav-menu .sub-menu li a:hover{background:var(--teal-light);color:var(--teal-dark);}
@media (max-width:782px){
  .nav-menu .sub-menu{
    display:block;position:static;box-shadow:none;border:0;
    border-left:2px solid var(--teal-light);margin:0 0 4px 16px;padding:0;
  }
  .nav-menu li.menu-item-has-children > a::after{display:none;}
}

/* Category / sub-category filter tabs */
.subcat-tabs{
  display:flex;flex-wrap:wrap;gap:8px;
  margin:-6px 0 22px;
}
.subcat-tab{
  padding:8px 16px;
  border:1.5px solid var(--border);
  border-radius:20px;
  font-size:13px;font-weight:600;
  color:var(--navy);
  background:#fff;
}
.subcat-tab:hover{border-color:var(--teal);color:var(--teal);}
.subcat-tab.is-active{background:var(--navy);border-color:var(--navy);color:#fff;}

/* =========================================================
   5. FEATURED / HERO POST
========================================================= */
.featured-post{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:1fr 1fr;
}
.featured-post .fp-media{position:relative;min-height:260px;}
.featured-post .fp-media img{width:100%;height:100%;object-fit:cover;min-height:260px;}
.fp-badge{
  position:absolute;top:14px;left:14px;
  background:var(--teal);
  color:#fff;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  padding:5px 12px;
  border-radius:4px;
  text-transform:uppercase;
}
.fp-content{padding:28px 30px;display:flex;flex-direction:column;justify-content:center;}
.fp-cat{
  color:var(--teal);
  font-weight:700;
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  margin-bottom:8px;
  display:inline-block;
}
.fp-content h1,.fp-content h2{
  font-size:26px;
  margin-bottom:12px;
}
.fp-content h1 a,.fp-content h2 a{color:var(--navy);}
.fp-content h1 a:hover,.fp-content h2 a:hover{color:var(--teal);}
.fp-excerpt{color:var(--text-body);font-size:14.5px;margin-bottom:16px;}
.fp-meta{
  display:flex;flex-wrap:wrap;row-gap:6px;gap:6px 16px;align-items:center;
  font-size:12.5px;color:var(--text-muted);margin-bottom:18px;
}
.fp-meta span{display:inline-flex;align-items:center;gap:6px;}
.fp-meta svg{width:14px;height:14px;flex-shrink:0;}
.btn-primary{
  display:inline-flex;align-items:center;gap:7px;
  background:var(--navy);
  color:#fff !important;
  font-weight:600;
  font-size:13.5px;
  padding:9px 18px;
  border-radius:6px;
  width:max-content;
  white-space:nowrap;
  border:0;cursor:pointer;
}
.btn-primary svg{width:14px;height:14px;flex-shrink:0;}
.btn-primary:hover{background:var(--teal);}

/* =========================================================
   6. CATEGORY QUICK CARDS
========================================================= */
.category-cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:20px;
}
.cat-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px 20px;
  box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover);}
.cat-icon{
  width:46px;height:46px;border-radius:50%;
  background:var(--navy);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:14px;
}
.cat-icon svg{width:22px;height:22px;fill:#fff;}
.cat-card h3{font-size:16px;margin-bottom:6px;}
.cat-card p{font-size:13px;color:var(--text-muted);margin-bottom:12px;}
.cat-card a.cat-link{color:var(--teal);font-weight:600;font-size:13.5px;}
.cat-card a.cat-link:hover{color:var(--navy);}

/* =========================================================
   7. SECTION HEADINGS
========================================================= */
.section-heading{
  display:flex;align-items:center;justify-content:space-between;
  margin:34px 0 16px;
}
.section-heading h2{
  font-size:19px;margin:0;display:flex;align-items:center;gap:8px;
}
.section-heading h2 svg{width:19px;height:19px;fill:var(--navy);}
.section-heading a{color:var(--teal);font-weight:600;font-size:13.5px;}
.section-heading a:hover{color:var(--navy);}

/* =========================================================
   8. POST CARDS GRID (Latest Posts / Archives)
========================================================= */
.posts-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.post-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease;
  display:flex;flex-direction:column;
}
.post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover);}
.post-card .pc-media{aspect-ratio:16/10;overflow:hidden;background:#dbe6ee;}
.post-card .pc-media img{width:100%;height:100%;object-fit:cover;}
.post-card .pc-body{padding:16px 18px 20px;flex:1;display:flex;flex-direction:column;}
.pc-cat{
  color:var(--teal);font-size:11px;font-weight:700;
  letter-spacing:1px;text-transform:uppercase;margin-bottom:6px;
}
.post-card h3{font-size:16.5px;margin-bottom:8px;}
.post-card h3 a{color:var(--navy);}
.post-card h3 a:hover{color:var(--teal);}
.pc-meta{
  display:flex;flex-wrap:wrap;gap:4px 14px;font-size:11.5px;color:var(--text-muted);margin-bottom:10px;
}
.pc-meta span{display:inline-flex;align-items:center;gap:5px;}
.pc-meta svg{width:12px;height:12px;flex-shrink:0;}
.pc-excerpt{font-size:13.3px;color:var(--text-body);margin-bottom:0;}

/* Single column list (archives on smaller widths) */
.posts-list .post-card{flex-direction:row;}
.posts-list .post-card .pc-media{width:220px;aspect-ratio:auto;flex-shrink:0;}
.posts-list .post-card .pc-body{padding:18px 20px;}

/* =========================================================
   9. SIDEBAR
========================================================= */
.sidebar{display:flex;flex-direction:column;gap:20px;}
.widget{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}
.widget-title{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:14px;
}
.widget-title h3{
  font-size:15.5px;margin:0;display:flex;align-items:center;gap:8px;
}
.widget-title h3 svg{width:17px;height:17px;}
.widget-title a{font-size:12px;color:var(--teal);font-weight:600;}

/* Latest Updates list */
.updates-list li{
  display:flex;gap:12px;align-items:flex-start;
  padding:10px 0;
  border-bottom:1px solid var(--border);
}
.updates-list li:last-child{border-bottom:0;padding-bottom:0;}
.updates-list li:first-child{padding-top:0;}
.update-date{
  text-align:center;color:var(--teal);font-weight:700;
  font-size:17px;line-height:1;min-width:34px;
}
.update-date span{
  display:block;font-size:10px;color:var(--text-muted);
  font-weight:600;letter-spacing:.5px;margin-top:3px;
}
.updates-list a{font-size:13px;color:var(--text-dark);font-weight:500;}
.updates-list a:hover{color:var(--teal);}

/* Popular posts */
.popular-list li{
  display:flex;gap:12px;align-items:flex-start;
  padding:10px 0;border-bottom:1px solid var(--border);
}
.popular-list li:last-child{border-bottom:0;padding-bottom:0;}
.popular-list li:first-child{padding-top:0;}
.pop-num{
  width:26px;height:26px;border-radius:50%;
  background:var(--navy);color:#fff;font-size:12.5px;font-weight:700;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.popular-list a{font-size:13.3px;color:var(--text-dark);font-weight:500;}
.popular-list a:hover{color:var(--teal);}

/* Newsletter widget */
.widget-newsletter p{font-size:13px;color:var(--text-body);}
.widget-newsletter input[type="email"]{
  width:100%;padding:11px 14px;border:1px solid var(--border);
  border-radius:6px;margin-bottom:10px;font-size:13.5px;
}
.widget-newsletter button{
  width:100%;background:var(--navy);color:#fff;border:0;
  padding:12px;border-radius:6px;font-weight:600;cursor:pointer;font-size:14px;
}
.widget-newsletter button:hover{background:var(--teal);}
.newsletter-note{font-size:11.5px;color:var(--text-muted);margin-top:8px;margin-bottom:0;}

/* Social icons (shared: sidebar + footer) */
.social-icons{display:flex;gap:10px;}
.social-icons a{
  width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;
}
.social-icons a svg{width:16px;height:16px;fill:#fff;}
.social-icons .sc-linkedin{background:#0a66c2;}
.social-icons .sc-twitter{background:#1da1f2;}
.social-icons .sc-facebook{background:#1877f2;}
.social-icons .sc-youtube{background:#ff0000;}
.social-icons a:hover{opacity:.85;}

/* =========================================================
   10. GENERIC PAGE / SINGLE POST CONTENT
========================================================= */
.page-content-wrap,.single-post-wrap{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  padding:34px 38px;box-shadow:var(--shadow);
}
.page-content-wrap h1,.single-post-wrap h1{font-size:28px;margin-bottom:18px;}
.single-post-wrap .entry-meta{
  display:flex;flex-wrap:wrap;gap:6px 16px;color:var(--text-muted);font-size:13px;margin-bottom:20px;
  border-bottom:1px solid var(--border);padding-bottom:16px;
}
.single-post-wrap .entry-meta span{display:inline-flex;align-items:center;gap:6px;}
.single-post-wrap .entry-meta svg{width:13px;height:13px;flex-shrink:0;}
.post-views{white-space:nowrap;}
.single-post-wrap .entry-thumbnail{margin-bottom:22px;border-radius:var(--radius);overflow:hidden;}
.entry-content{font-size:15.5px;color:var(--text-body);}
.entry-content h2{font-size:22px;margin-top:1.4em;}
.entry-content h3{font-size:18px;margin-top:1.2em;}
.entry-content a{color:var(--teal);text-decoration:underline;}
.entry-content blockquote{
  border-left:4px solid var(--teal);margin:20px 0;padding:6px 20px;
  background:var(--teal-light);color:var(--navy);font-style:italic;
}
.entry-content img{border-radius:var(--radius-sm);margin:16px 0;}
.entry-tags{margin-top:26px;padding-top:20px;border-top:1px solid var(--border);}
.entry-tags a{
  display:inline-block;background:var(--teal-light);color:var(--teal-dark);
  font-size:12px;font-weight:600;padding:6px 12px;border-radius:20px;margin:0 6px 6px 0;
}

/* Archive / category header */
.archive-header{
  background:var(--navy);color:#fff;border-radius:var(--radius);
  padding:26px 30px;margin-bottom:22px;
}
.archive-header h1{color:#fff;font-size:24px;margin-bottom:6px;}
.archive-header p{color:#cfe3ee;margin:0;font-size:13.5px;}

/* Pagination */
.pagination{display:flex;gap:8px;justify-content:center;margin:34px 0 10px;}
.pagination a,.pagination span{
  padding:9px 15px;border:1px solid var(--border);border-radius:6px;
  font-size:13.5px;color:var(--navy);font-weight:600;background:#fff;
}
.pagination .current{background:var(--navy);color:#fff;border-color:var(--navy);}
.pagination a:hover{background:var(--teal-light);}

/* Comments */
.comments-area{margin-top:30px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:30px;}
.comment-list{margin-top:16px;}
.comment-list li{padding:14px 0;border-bottom:1px solid var(--border);}
.comment-respond input,.comment-respond textarea{
  width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:6px;margin-bottom:12px;
}
.comment-respond .submit{
  background:var(--navy);color:#fff;border:0;padding:11px 22px;border-radius:6px;font-weight:600;cursor:pointer;
}

/* Contact form */
.contact-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;}
.contact-form-grid .full{grid-column:1/-1;}
.contact-form-grid label{display:block;font-size:13px;font-weight:600;color:var(--navy);margin-bottom:6px;}
.contact-form-grid input,.contact-form-grid textarea{
  width:100%;padding:11px 14px;border:1px solid var(--border);border-radius:6px;font-size:14px;
}
.contact-info-box{
  background:var(--teal-light);border-radius:var(--radius);padding:22px;margin-top:24px;
  color:var(--navy);font-size:14px;
}

/* 404 */
.error-404{text-align:center;padding:60px 20px;}
.error-404 h1{font-size:70px;color:var(--teal);}

/* =========================================================
   12b. TAX CALCULATOR
========================================================= */
.tax-calc{display:grid;grid-template-columns:1fr 1fr;gap:0;}
.tax-calc-form,.tax-calc-result{padding:30px;}
.tax-calc-form{border-right:1px solid var(--border);}
.tax-calc-field{margin-bottom:18px;}
.tax-calc-field label{
  display:block;font-size:13px;font-weight:600;color:var(--navy);margin-bottom:6px;
}
.tax-calc-field input[type="number"],
.tax-calc-field select{
  width:100%;padding:11px 14px;border:1px solid var(--border);
  border-radius:6px;font-size:14.5px;color:var(--text-dark);background:#fff;
}
.tax-calc-field .hint{font-size:11.5px;color:var(--text-muted);margin-top:4px;}
.tax-calc-toggle{
  display:flex;gap:0;border:1.5px solid var(--navy);border-radius:8px;overflow:hidden;margin-bottom:20px;
}
.tax-calc-toggle button{
  flex:1;padding:11px;border:0;background:#fff;color:var(--navy);
  font-weight:700;font-size:13.5px;cursor:pointer;
}
.tax-calc-toggle button.is-active{background:var(--navy);color:#fff;}
.tax-calc-checkbox{display:flex;align-items:center;gap:8px;margin-bottom:18px;}
.tax-calc-checkbox input{width:16px;height:16px;}
.tax-calc-checkbox label{margin:0;font-size:13.5px;color:var(--text-body);font-weight:500;}
.tax-calc-section-title{
  font-size:12.5px;font-weight:800;color:var(--teal-dark);
  text-transform:uppercase;letter-spacing:.6px;
  margin:22px 0 10px;padding-top:16px;
  border-top:1px dashed var(--border);
}
.tax-calc-section-title.is-first{margin-top:0;padding-top:0;border-top:0;}
.tax-calc-subsection{
  font-size:12px;font-weight:600;color:var(--navy);
  margin:4px 0 10px;
}
.tax-calc-old-fields{display:none;border-top:1px dashed var(--border);padding-top:16px;margin-top:4px;}
.tax-calc-old-fields .tax-calc-section-title{border-top:0;padding-top:0;margin-top:0;}
.tax-calc-old-fields.is-visible{display:block;}
#tax-calc-btn{width:100%;margin-top:6px;justify-content:center;}

.tax-calc-result{background:var(--bg-page);}
.tax-calc-result h3{font-size:14px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);margin-bottom:4px;}
.tax-calc-headline{font-size:34px;font-weight:800;color:var(--navy);margin-bottom:4px;}
.tax-calc-headline.is-zero{color:var(--teal);}
.tax-calc-sub{font-size:13px;color:var(--text-muted);margin-bottom:20px;}
.tax-calc-rows{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;margin-bottom:18px;}
.tax-calc-row{
  display:flex;justify-content:space-between;font-size:13.5px;
  padding:8px 0;border-bottom:1px solid var(--border);
}
.tax-calc-row:last-child{border-bottom:0;}
.tax-calc-row span:first-child{color:var(--text-body);}
.tax-calc-row span:last-child{font-weight:600;color:var(--navy);}
.tax-calc-row.total span:last-child{color:var(--teal-dark);font-size:15px;}
.tax-calc-compare{
  background:var(--teal-light);border-radius:var(--radius);padding:14px 18px;
  font-size:13px;color:var(--navy);
}
.tax-calc-compare strong{color:var(--teal-dark);}
.tax-calc-disclaimer{font-size:11.5px;color:var(--text-muted);margin-top:16px;}
@media (max-width:782px){
  .tax-calc{grid-template-columns:1fr;}
  .tax-calc-form{border-right:0;border-bottom:1px solid var(--border);}
}

/* Top-level calculator tabs (Income Tax Calculator / EMI Calculator) —
   centered segmented/pill control, styled as the page's visual opener
   now that the banner header has been removed. */
.calc-page-tabs-wrap{
  display:flex;justify-content:center;
  margin:4px 0 24px;
}
.calc-page-tabs{
  display:inline-flex;gap:6px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:50px;
  padding:7px;
  box-shadow:var(--shadow);
  max-width:100%;
}
.calc-page-tab{
  display:inline-flex;align-items:center;gap:9px;
  padding:13px 24px;
  border:0;
  border-radius:50px;
  background:transparent;
  color:var(--navy);
  font-weight:700;
  font-size:14.5px;
  cursor:pointer;
  white-space:nowrap;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease;
}
.calc-page-tab-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:50%;
  background:var(--teal-light);color:var(--teal-dark);
  flex-shrink:0;
}
.calc-page-tab-icon svg{width:13px;height:13px;fill:currentColor;}
.calc-page-tab:hover{color:var(--teal);}
.calc-page-tab.is-active{
  background:linear-gradient(90deg,var(--navy),var(--teal));
  color:#fff;
  box-shadow:0 6px 16px rgba(15,58,95,0.25);
}
.calc-page-tab.is-active .calc-page-tab-icon{background:rgba(255,255,255,.22);color:#fff;}
@media (max-width:480px){
  .calc-page-tabs{flex-direction:column;border-radius:16px;width:100%;}
  .calc-page-tab{justify-content:center;border-radius:12px;}
}

.calc-panel{margin-bottom:0;position:relative;}
.calc-panel::before{
  content:"";
  display:block;height:4px;width:100%;
  background:linear-gradient(90deg,var(--navy),var(--teal));
}
.tax-calc-result{position:relative;}
.tax-calc-result h3{display:block;}

/* EMI principal vs interest split bar */
.emi-split{margin-bottom:18px;}
.emi-split-bar{
  height:14px;width:100%;border-radius:8px;overflow:hidden;
  background:var(--teal);display:flex;
}
.emi-split-principal{display:block;height:100%;background:var(--navy);}
.emi-split-legend{
  display:flex;justify-content:space-between;
  font-size:12px;color:var(--text-body);margin-top:8px;
}
.emi-split-legend .dot{
  display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px;
}
.dot-principal{background:var(--navy);}
.dot-interest{background:var(--teal);}

/* =========================================================
   11. FOOTER
========================================================= */
.site-footer{background:var(--navy-darker);color:#b9cddc;margin-top:50px;}
.footer-grid{
  max-width:var(--maxw);margin:0 auto;padding:50px 20px 30px;
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1.1fr;gap:30px;
}
.footer-col h4{color:#fff;font-size:15px;margin-bottom:16px;}
.footer-about .site-title{-webkit-text-fill-color:#fff;background:none;font-size:24px;}
.footer-about .site-tagline{color:#8fb3ca;}
.footer-about p{font-size:13px;color:#9db8c9;margin-top:14px;line-height:1.7;}
.footer-col ul li{margin-bottom:10px;}
.footer-col ul li a{font-size:13.5px;color:#b9cddc;}
.footer-col ul li a:hover{color:var(--teal);}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);
  text-align:center;padding:18px 20px;font-size:12.5px;color:#7f9cb0;
}

/* =========================================================
   12. RESPONSIVE
========================================================= */
@media (max-width:1024px){
  .site-main-grid{grid-template-columns:1fr;}
  .category-cards{grid-template-columns:repeat(2,1fr);}
  .posts-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:782px){
  /* Keep every row (top bar, header, nav, main content, footer) on the
     same horizontal padding so content lines up with the header/logo
     above it instead of drifting left/right of it. */
  .container,
  .site-main-grid,
  .footer-grid{padding-left:16px;padding-right:16px;}

  .featured-post{grid-template-columns:1fr;}
  .header-row{flex-wrap:wrap;row-gap:12px;padding:14px 16px;}
  .header-search{order:3;flex:1 1 100%;}
  .menu-toggle{display:flex;order:2;margin-left:auto;}
  .nav-menu{
    display:none;flex-direction:column;width:100%;
    position:absolute;left:0;top:100%;background:#fff;
    border-bottom:1px solid var(--border);z-index:50;
    box-shadow:var(--shadow-hover);
  }
  .nav-menu.is-open{display:flex;}
  /* The toggle now lives in the header row, so collapse this bar to
     just an (invisible until opened) anchor for the dropdown. */
  .main-navigation{border-bottom:0;}
  .main-navigation .container{position:relative;padding:0;}
  .category-cards{grid-template-columns:1fr;}
  .posts-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .contact-form-grid{grid-template-columns:1fr;}
  .posts-list .post-card{flex-direction:column;}
  .posts-list .post-card .pc-media{width:100%;aspect-ratio:16/10;}
  .tax-calc-field.contact-form-grid,
  .contact-form-grid{grid-template-columns:1fr;}
}

/* Small phones (iPhone SE and similar ~375px and under) */
@media (max-width:480px){
  .top-bar{font-size:11px;}
  .top-bar .container{
    flex-wrap:wrap;row-gap:4px;padding-top:7px;padding-bottom:7px;
  }
  .top-bar-msg{flex:1 1 auto;min-width:0;}
  .top-bar-actions{margin-left:auto;}
  .top-bar .top-bar-btn{padding:3px 11px;font-size:11.5px;}

  .header-row{padding:12px 16px;gap:10px;}
  .site-title{font-size:24px;}
  .site-tagline{font-size:9px;letter-spacing:2px;}
  .custom-logo{max-height:44px;}

  .menu-toggle{width:38px;height:38px;}
  .menu-toggle svg{width:17px;height:17px;}

  .fp-content{padding:20px;}
  .fp-content h1,.fp-content h2{font-size:21px;}
  .fp-excerpt{font-size:13.5px;}
  .fp-media,.fp-media img{min-height:200px;}

  .cat-card{padding:18px 16px;}
  .section-heading h2{font-size:17px;}
  .section-heading{margin:26px 0 14px;}

  .page-content-wrap,.single-post-wrap{padding:22px 18px;}
  .calc-page-tab{padding:11px 16px;font-size:13px;}
  .tax-calc-form,.tax-calc-result{padding:20px;}
}

/* Tax calculator: fields shown only in Old Regime (HRA / LTA) */
.tax-calc-old-only{display:none;}
.tax-calc-old-only.is-visible{display:block;}
.tax-calc-year-field{padding-bottom:6px;margin-bottom:18px;border-bottom:1px dashed var(--border);}


/* =========================================================
   LANGUAGE SWITCH (top bar) — EN | हिं
========================================================= */
.lang-switch{
  display:inline-flex;align-items:center;
  border:1px solid rgba(255,255,255,.4);border-radius:20px;overflow:hidden;
}
.top-bar .lang-switch-item{
  padding:4px 11px;font-size:12px;font-weight:600;line-height:1.4;color:#fff;
}
.top-bar .lang-switch-item:hover{background:rgba(255,255,255,.15);color:#fff;}
.top-bar .lang-switch-item.is-current{background:#fff;color:var(--navy);}

/* =========================================================
   NEWSLETTER FORM FEEDBACK
========================================================= */
.nl-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.newsletter-msg{font-size:12.5px;line-height:1.5;margin:10px 0 0;}
.newsletter-msg:empty{display:none;}
.newsletter-msg.is-success{color:#0f7a56;background:#e6f6ef;border-radius:6px;padding:8px 10px;}
.newsletter-msg.is-error{color:#a12a2a;background:#fdeaea;border-radius:6px;padding:8px 10px;}
.widget-newsletter button[disabled]{opacity:.6;cursor:wait;}
.newsletter-note a{text-decoration:underline;}

/* Banner shown after confirming / unsubscribing */
.fintaxit-notice{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#e6f6ef;color:#0f5c43;border-bottom:1px solid #bfe6d4;
  padding:10px 20px;font-size:14px;font-weight:500;
}
.fintaxit-notice.is-error{background:#fdeaea;color:#8a2323;border-bottom-color:#f3c4c4;}
.fintaxit-notice-close{background:none;border:0;font-size:22px;line-height:1;cursor:pointer;color:inherit;}

/* =========================================================
   HINDI (Devanagari) TYPOGRAPHY
   Wide letter-spacing breaks Devanagari conjuncts, so it is switched off.
========================================================= */
:root:lang(hi){--font:'Noto Sans Devanagari','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;}
:lang(hi) body{line-height:1.7;}
:lang(hi) .pc-cat,
:lang(hi) .fp-cat,
:lang(hi) .fp-badge,
:lang(hi) .site-tagline,
:lang(hi) .tax-calc-section-title,
:lang(hi) .tax-calc-result h3{letter-spacing:0;text-transform:none;}

