/*
Theme Name: RabinsXP v2
Theme URI: https://www.rabinsxp.com
Template: rabinsxp-v1.5
Version: 2.2.0
Description: Ultimate pixel-perfect light theme clone of ffonts.net. Features clean category sidebar, prominent top header search bar, glassmorphism hero banner, and card grid indexing.
Author: Rabins Sharma Lamichhane
Author URI: https://www.rabinsxp.com
Text Domain: rabinsxp
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

/* =========================================================
   TOKENS & VARIABLES (EXACT FFONTS.NET COLOR PALETTE)
   ========================================================= */
:root {
  color-scheme: light only;
  --ff-red: #c0392b;
  --ff-red-dark: #a93226;
  --ff-red-light: #e74c3c;
  --ff-accent: #f97316; /* Bright orange for primary accents */
  --ff-dark: #1a1a2e;
  --ff-dark2: #16213e;
  --ff-accent2: #0f3460;
  --ff-white: #ffffff;
  --ff-gray-50: #f8f9fa;
  --ff-gray-100: #f1f3f5;
  --ff-gray-200: #e9ecef;
  --ff-gray-300: #dee2e6;
  --ff-gray-400: #ced4da;
  --ff-gray-500: #adb5bd;
  --ff-gray-600: #868e96;
  --ff-gray-700: #495057;
  --ff-gray-800: #343a40;
  --ff-gray-900: #212529;
  
  --ff-gradient: linear-gradient(135deg, #c0392b 0%, #e94560 50%, #0f3460 100%);
  --ff-gradient-soft: linear-gradient(135deg, rgba(192,57,43,0.08) 0%, rgba(233,69,96,0.05) 50%, rgba(15,52,96,0.08) 100%);
  --ff-gradient-hero: linear-gradient(135deg, #4a1616 0%, #5a1e1e 40%, #3d1212 100%);
  
  --ff-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --ff-shadow: 0 4px 12px rgba(0,0,0,0.08);
  --ff-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  
  --ff-radius-sm: 6px;
  --ff-radius: 12px;
  --ff-radius-lg: 20px;
  
  --ff-font: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-max-width: 1320px;
  --ff-header-height: 68px;
  --ff-sidebar-width: 310px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-font);
  color: var(--ff-gray-800);
  background: #f3f4f6 !important; /* Page background matching ffonts.net */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--ff-red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--ff-dark);
}

/* =========================================================
   HEADER STYLING
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #26272b; /* Premium dark background matching your old theme topbar */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: var(--ff-header-height);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: white;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--ff-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 0.95rem;
}

.logo span {
  color: var(--ff-red-light);
}

/* Search bar */
.search-bar {
  flex: 1;
  max-width: 340px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar svg {
  color: rgba(255, 255, 255, 0.6) !important;
}

.search-bar input[type="text"] {
  width: 100%;
  padding: 9px 90px 9px 42px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transition: all 0.3s ease;
  outline: none;
}

.search-bar input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-bar input[type="text"]:focus {
  border-color: var(--ff-red-light);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.search-bar .search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ff-red);
  color: white;
  border: none;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.2px;
}

.search-bar .search-btn:hover {
  background: var(--ff-red-dark);
}

.search-btn-icon {
  display: none;
}

/* Top menu */
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s;
  white-space: nowrap;
}

.header-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.header-nav .btn-signin {
  background: #4a1616;
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
}

.header-nav .btn-signin:hover {
  background: #6a2121;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* =========================================================
   MAIN WRAPPER & COLUMN LAYOUT
   ========================================================= */
.site-main {
  flex: 1;
  max-width: var(--ff-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 32px;
  width: 100%;
}

.sidebar {
  width: var(--ff-sidebar-width);
  flex-shrink: 0;
  padding: 24px 0;
  border-right: 1px solid var(--ff-gray-200);
  background: transparent;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 24px 0;
}

/* =========================================================
   SIDEBAR ELEMENTS
   ========================================================= */
.sidebar-section {
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid var(--ff-gray-200);
  border-radius: var(--ff-radius);
  padding: 20px;
  box-shadow: var(--ff-shadow-sm);
}

.sidebar-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ff-gray-600);
  margin-bottom: 14px;
  font-weight: 800;
  border-bottom: 1px solid var(--ff-gray-100);
  padding-bottom: 8px;
}

/* Category lists */
.style-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.style-list li:last-child {
  margin-bottom: 0;
}

.style-list li a {
  display: block;
  padding: 6px 0;
  font-size: 0.8rem;
  color: var(--ff-gray-700);
  font-weight: 600;
  transition: color 0.2s;
  flex: 1;
}

.style-list li a:hover {
  color: var(--ff-red);
}

.cat-count {
  font-size: 0.7rem;
  color: var(--ff-gray-600);
  background: var(--ff-gray-100);
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 700;
}

/* =========================================================
   HERO BANNER (HOMEPAGE)
   ========================================================= */
.hero-section {
  background: var(--ff-gradient-hero);
  padding: 56px 40px 64px;
  color: white;
  position: relative;
  overflow: hidden;
  margin: -24px 0 32px 0;
  border-radius: var(--ff-radius-lg);
  box-shadow: 0 10px 30px rgba(74, 22, 22, 0.15);
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  position: relative;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

/* Stats bar */
.home-stats-bar {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid var(--ff-gray-200);
  border-radius: var(--ff-radius);
  margin-top: -16px;
  margin-bottom: 32px;
  box-shadow: var(--ff-shadow-sm);
  position: relative;
  z-index: 10;
}

.home-stat-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ff-dark);
  letter-spacing: -0.5px;
}

.home-stat-label {
  font-size: 0.65rem;
  color: var(--ff-gray-600);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-top: 2px;
}

/* =========================================================
   POST GRID & CARDS
   ========================================================= */
.font-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.font-card {
  background: var(--ff-white);
  border: 1px solid var(--ff-gray-200);
  border-radius: var(--ff-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ff-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.font-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--ff-gray-300);
}

/* Preview image box */
.font-card-preview {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ff-gray-100);
}

.font-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.font-card:hover .font-card-preview img {
  transform: scale(1.04);
}

/* Preview badges */
.font-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26, 26, 46, 0.85);
  color: white;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.font-card-badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ff-red);
  color: white;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Body */
.font-card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.font-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ff-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.font-card-title a {
  color: inherit;
}

.font-card-title a:hover {
  color: var(--ff-red);
}

.font-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--ff-gray-600);
  margin-top: auto;
  font-weight: 600;
}

.fc-downloads {
  color: var(--ff-red);
  font-weight: 700;
}

/* Action buttons */
.font-card-actions {
  padding: 12px 18px;
  background: var(--ff-gray-50);
  border-top: 1px solid var(--ff-gray-100);
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-preview {
  flex: 1;
  background: var(--ff-red);
  color: white !important;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s;
}

.btn-preview:hover {
  background: var(--ff-red-dark);
}

.btn-dl {
  padding: 8px 14px;
  background: white;
  border: 1.5px solid var(--ff-gray-300);
  color: var(--ff-gray-700) !important;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
}

.btn-dl:hover {
  background: var(--ff-gray-100);
  border-color: var(--ff-gray-400);
  color: var(--ff-dark) !important;
}

/* =========================================================
   PAGINATION STYLING
   ========================================================= */
.rx-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 32px 0 10px;
}

.rx-pagination a,
.rx-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: white;
  border: 1px solid var(--ff-gray-200);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ff-gray-700);
  transition: all 0.2s;
}

.rx-pagination a:hover,
.rx-pagination .current {
  background: var(--ff-red);
  color: white;
  border-color: var(--ff-red);
}

/* =========================================================
   SINGLE POST CONTENT LAYOUT
   ========================================================= */
.rx-article {
  background: white;
}

/* Category Badge in posts */
.rx-category-badge {
  display: inline-block;
  background: rgba(192, 57, 43, 0.08);
  color: var(--ff-red);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(192, 57, 43, 0.15);
  margin-bottom: 6px;
}

.rx-category-badge:hover {
  background: var(--ff-red);
  color: white;
}

.rx-entry-content h2,
.rx-entry-content h3,
.rx-entry-content h4 {
  color: var(--ff-dark);
  margin: 2.2rem 0 1rem;
}

.rx-entry-content h2 { font-size: 1.45rem; border-bottom: 1px solid var(--ff-gray-200); padding-bottom: 6px; }
.rx-entry-content h3 { font-size: 1.2rem; }

.rx-entry-content p {
  margin-bottom: 1.25rem;
}

.rx-entry-content a {
  color: var(--ff-red);
  text-decoration: underline;
  text-decoration-color: rgba(192,57,43,0.3);
  text-underline-offset: 3px;
  font-weight: 600;
}

.rx-entry-content a:hover {
  color: var(--ff-red-dark);
}

.rx-entry-content ul,
.rx-entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.rx-entry-content ul { list-style: disc; }
.rx-entry-content ol { list-style: decimal; }
.rx-entry-content li { margin-bottom: 0.4rem; }

.rx-entry-content blockquote {
  border-left: 4px solid var(--ff-red);
  background: var(--ff-gray-50);
  padding: 1.2rem 1.5rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--ff-gray-700);
}

.rx-entry-content code {
  font-size: 0.85em;
  background: var(--ff-gray-100);
  border: 1px solid var(--ff-gray-200);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--ff-red);
}

.rx-entry-content pre {
  background: var(--ff-dark);
  color: var(--ff-white);
  padding: 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.825rem;
}

.rx-entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.rx-entry-content img {
  border-radius: 8px;
  border: 1px solid var(--ff-gray-200);
  margin: 1.5rem auto;
}

/* Premium Table Styling */
.rx-entry-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.rx-entry-content th,
.rx-entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--ff-gray-200);
  text-align: left;
}

.rx-entry-content th {
  background: var(--ff-gray-50);
  font-weight: 700;
  color: var(--ff-dark);
}

.rx-entry-content tr:nth-child(even) td {
  background: rgba(248, 249, 250, 0.5); /* Lighter gray for striping */
}

.rx-entry-content tr:hover td {
  background: var(--ff-gray-100);
}

/* Force inline formatting in old posts to inherit theme styles */
.rx-entry-content span {
  color: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
  background-color: transparent !important;
  line-height: inherit !important;
}

/* Tag buttons */
.rx-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: white;
  border: 1px solid var(--ff-gray-300);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ff-gray-700);
  transition: all 0.2s;
}

.rx-tags a:hover {
  background: var(--ff-red);
  color: white;
  border-color: var(--ff-red);
}

/* Comment inputs */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--ff-gray-300);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  background: var(--ff-gray-50);
  color: var(--ff-gray-900);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  margin-top: 6px;
  margin-bottom: 16px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  border-color: var(--ff-red);
  background: white;
}

.comment-form input[type="submit"] {
  background: var(--ff-red);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 24px;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  transition: background 0.2s;
}

.comment-form input[type="submit"]:hover {
  background: var(--ff-red-dark);
}

/* =========================================================
   FOOTER STYLING (site-footer)
   ========================================================= */
.site-footer {
  background: var(--ff-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-copy {
  margin-top: 14px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading,
.footer-nav .widget-title,
.footer-nav h2,
.footer-nav h3,
.footer-nav h4 {
  font-size: 0.72rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-nav a,
.footer-nav ul li a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6) !important;
  transition: color 0.2s;
  align-self: flex-start;
}

.footer-nav a:hover,
.footer-nav ul li a:hover {
  color: white !important;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav .textwidget {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
#rx-back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--ff-red);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 500;
}

#rx-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#rx-back-top:hover {
  background: var(--ff-red-dark);
  transform: translateY(-2px);
}

/* =========================================================
   READING PROGRESS BAR
   ========================================================= */
#rx-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ff-accent);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES (COLLAPSE / MOBILE TOGGLES)
   ========================================================= */
@media (max-width: 1024px) {
  .font-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .site-main {
    flex-direction: column;
    padding: 0 16px;
    gap: 16px;
  }
  
  /* Mobile Sidebar Toggles */
  .sidebar {
    position: fixed;
    top: var(--ff-header-height);
    left: 0;
    bottom: 0;
    width: 280px;
    background: white;
    z-index: 1000;
    border-right: 1px solid var(--ff-gray-200);
    padding: 20px;
    transform: translateX(-280px);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  }
  
  /* Mobile Overlay */
  #rx-overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 990;
    backdrop-filter: blur(2px);
  }
  
  .hamburger {
    display: flex;
  }
  
  .header-nav {
    display: none; /* Hide on mobile - hamburger handles access */
  }
  
  .search-bar {
    max-width: 240px;
  }
  
  .content {
    padding: 16px 0;
  }
  
  .hero-section {
    padding: 40px 20px;
    margin: -16px 0 24px 0;
  }
  
  .hero-h1 {
    font-size: 1.6rem;
  }
  
  .home-stats-bar {
    gap: 20px;
    padding: 14px 16px;
  }
  
  .home-stat-num {
    font-size: 1.05rem;
  }
  
  .home-stat-label {
    font-size: 0.58rem;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .font-grid {
    grid-template-columns: 1fr;
  }
  
  .search-bar {
    max-width: 170px;
  }
  
  .search-bar input[type="text"] {
    padding: 8px 45px 8px 32px;
    font-size: 0.8rem;
  }
  
  .search-bar svg {
    left: 10px !important;
  }
  
  .search-btn-text {
    display: none;
  }
  
  .search-btn-icon {
    display: block;
  }
  
  .search-bar .search-btn {
    padding: 5px 10px;
    right: 3px;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    border-radius: 6px;
  }
  
  .site-header {
    padding: 0 8px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PARENT THEME OVERRIDES (SAFE RESET METHOD)
   ========================================================= */
#wrapper,
#header,
#footer,
#page,
#nav-topbar,
#nav-header,
.main,
.main-inner,
.container,
.container-inner,
.pad {
  all: unset !important;
  display: contents !important;
}
