/*
Theme Name: Auto
Theme URI: https://www.g-labs.com/
Author: Your Name or Company
Author URI: https://www.yourwebsite.com/
Description: KDF is a custom-built theme optimized for speed, modularity, and analytics. 
It includes custom CPT manager, page builder integration, and analytics dashboards.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kdf
Tags: custom-theme, modular, analytics, page-builder, clean, responsive
*/




/*
Theme Name: KDF
Description: Root-token driven theme, fully responsive with dark/light mode.
*/

/* ============================================================
   ROOT DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand Palette */
    --color-brand-primary: #5a9ee3;
    --color-brand-primary-hover: #3a7dc0;
    --color-brand-secondary: #e282e5;
    --color-brand-secondary-hover: #d15fd5;
    --color-brand-accent: #ff5722;
    --color-brand-accent-hover: #e64a19;
  
    /* System Feedback */
    --color-success: #198754;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #0dcaf0;
    --color-dark: #313131;
    --color-light: #f1f1f1;
    --text-position: center;
  
    /* Backgrounds */
    --color-bg: #fff;
    --color-bg-primary: var(--color-brand-primary);
    --color-bg-primary-hover: var(--color-brand-primary-hover);
    --color-bg-secondary: var(--color-brand-secondary);     
    --color-bg-secondary-hover: var(--color-brand-secondary-hover);     
    --color-bg-surface: #fdfdfd;
    --color-bg-alt: #f8f9fa;
    --color-bg-overlay: rgba(0, 0, 0, 0.8);
  
    /* Borders */
    --color-border-primary: var(--color-brand-primary);;
    --color-border-secondary: var(--color-brand-secondary);
    --color-border-dark: #1d1d1d;
    --color-border-light: #e5e7eb;

  
    /* Text */
    --color-text-primary: #212529;
    --color-text-secondary: #495057;
    --color-text-muted: #6c757d;
    --color-text-inverse: #ffffff;
    --color-text-link: var(--color-brand-primary);
    --color-text-link-hover: var(--color-brand-primary-hover);
  
    /* Typography scale */
    --font-family-base: "Inter", "Segoe UI", Roboto, sans-serif; /* body text */
    --font-family-heading: "Poppins", "Segoe UI", Roboto, sans-serif; /* headings */
  
    --font-size-base: 16px;
    --line-height-base: 1.6;

     /* Headings */
    --font-color-h1: #222222;
    --font-color-h2: #1a1a1a;
    --font-color-h3: #434343;
    --font-color-h4: #ffffff;
    --font-color-h5: #ffffff;
    --font-color-h6: #ffffff;
    --font-color-p-light: #fff;
    --font-color-p-dark: #000;

    --font-spacing-h1: 16px 0 20px;
    --font-spacing-h2: 14px 0 18px;
    --font-spacing-h3: 12px 0 16px;
    --font-spacing-h4: 10px 0 14px;
    --font-spacing-h5: 8px 0 12px;
    --font-spacing-h6: 6px 0 8px;
    
    --font-size-h1: 3rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.1rem;
    --font-size-h6: 1rem;
    
  
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
  
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  
    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
  
    /* Layout */
    --container-max: 1200px;
    --container-padding: 4rem;
  }


/* ============================================================
    DARK THEME OVERRIDES
    ============================================================ */
body.theme-dark {
    --color-bg-primary: #121212;
    --color-bg-secondary: #1e1e1e;
    --color-bg-surface: #1a1a1a;
    --color-bg-alt: #181818;
    --color-border-light: #2a2a2a;
    --color-border: #333;
    --color-border-dark: #444;
  
    --color-text-primary: #f1f1f1;
    --color-text-secondary: #d1d1d1;
    --color-text-muted: #9ca3af;
    --color-text-inverse: #000000;
    --color-text-link: #4d9fff;
    --color-text-link-hover: #9abfff;
  
    --color-heading-1: #ffffff;
    --color-heading-2: #eaeaea;
    --color-heading-3: #a5c8ff;
    --color-heading-4: #b0b0b0;
    --color-heading-5: #d6d6d6;
    --color-heading-6: #cccccc;
  
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.6);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.7);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.8);
}
  


/* ============================================================
    RESET & BASE
    ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; text-align: left;}
html, body {
    cursor: default !important;
}

a, button, [role="button"], .nav-toggle, .search-toggle {
    cursor: pointer !important;
}

input, textarea, [contenteditable="true"] {
    cursor: text !important;
}

/* Block unwanted text selection unless in inputs */
body *:not(input):not(textarea):not([contenteditable="true"]) {
    user-select: none !important;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background: var(--color-bg);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--color-text-link); text-decoration: none; }
a:hover { color: var(--color-text-link-hover); }



/* ============================================================
    TYPOGRAPHY – HEADING SYSTEM
    ============================================================ */

/* Reset all headings for consistency */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.25;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
  }
  
  p, li, span, input, textarea {
    font-family: var(--font-family-base);
  }

  
  /* Scale + colors using tokens */
  h1 { 
    font-size: var(--font-size-h1);
    color: var(--font-color-h1);
  }
  h2 { 
    font-size: var(--font-size-h2);
    color: var(--font-color-h2);
  }
  h3 { 
    font-size: var(--font-size-h3);
    color: var(--font-color-h3);
  }
  h4 { 
    font-size: var(--font-size-h4);
    color: var(--font-color-h4);
  }
  h5 { 
    font-size: var(--font-size-h5);
    color: var(--font-color-h5);
  }
  h6 { 
    font-size: var(--font-size-h6);
    color: var(--font-color-h6);
  }
  
  /* Contextual overrides for headings inside articles/pages */
  article h1:first-child,
  section h1:first-child,
  article h2:first-child,
  section h2:first-child {
    margin-top: 0; /* remove extra top margin for the first heading */
  }
  
  /* Paragraphs below headings get consistent spacing */
  h1 + p,
  h2 + p,
  h3 + p,
  h4 + p,
  h5 + p,
  h6 + p {
    margin-top: var(--space-2);
  }
  
  /* Paragraph defaults */
  p {
    margin-top: 0;
    margin-bottom: var(--space-4);
    line-height: var(--line-height-base);
  }
  

/* ============================================================
    LAYOUT
    ============================================================ */
section { padding: var(--space-16) var(--container-padding); }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
main { min-height: 70vh; }
ul { padding: 0px 10px; margin: 20px 20px;}
ol { padding: 0px 10px; margin: 20px 20px;}
.menu .page_item {list-style-type: none;}



/* ============================================================
    GRID SYSTEM
    ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-surface, #fff);
    border: 1px solid var(--color-border, #dee2e6);
    border-radius: var(--radius-md);
    overflow: hidden; /* round corners */
    box-shadow: var(--shadow-sm);
}
    
    /* Head */
thead {
    background: var(--color-brand-primary, #0f2d57);
    color: var(--color-text-inverse, #fff);
}
    
thead th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--color-brand-primary-hover, #174d82);
    white-space: nowrap;
}
    
    /* Body */
tbody tr {
    border-bottom: 1px solid var(--color-border, #dee2e6);
    transition: background 0.2s ease;
}
    
tbody tr:hover {
    background: var(--color-bg-primary, #f8f9fa);
}
    
td {
    padding: var(--space-3) var(--space-4);
    font-size: 0.95rem;
    color: var(--color-text-primary, #212529);
    vertical-align: middle;
}
    
    tbody tr:last-child {
    border-bottom: none;
    }
    
    /* Zebra striping (optional) */
    tbody tr:nth-child(even) {
    background: var(--color-bg-alt, #fafafa);
    }
    
    /* Responsive tweaks */
    @media (max-width: 768px) {
    thead {
        display: none; /* hide header */
    }
    
    table, tbody, tr, td {
        display: block;
        width: 100%;
    }
    
    tr {
        margin-bottom: var(--space-4);
        border: 1px solid var(--color-border, #dee2e6);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
        background: var(--color-bg-surface, #fff);
    }
    
    td {
        text-align: right;
        padding: var(--space-3) var(--space-4);
        position: relative;
    }
    
    td::before {
        content: attr(data-label); /* ✅ use data-label attr for context */
        position: absolute;
        left: var(--space-3);
        font-weight: 600;
        text-align: left;
        color: var(--color-text-muted, #6c757d);
    }
    }
.grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* gap: var(--space-4); */
}

.grid--cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
      
  /* ============================================================
     BUTTONS
     ============================================================ */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all .2s ease;
}
  
.btn-primary {
    background: var(--color-bg-primary);
    color: var(--font-color-p-light);
    border: 2px solid var(--color-border-primary);
}
.btn-primary:hover {
    background: var(--color-bg-primary-hover);
    color: var(--font-color-p-light);
    border: 2px solid var(--color-border-primary);


}

.btn-outline {
    background: none;
    color: var(--font-color-p-dark);
    border: 2px solid var(--color-border-secondary);
}
.btn-outline:hover {
    background: var(--color-bg-secondary);
    color: var(--font-color-p-dark);
    border: 2px solid var(--color-border-secondary);
}

  
.btn-accent {
    background: var(--color-brand-accent);
    color: var(--color-text-inverse);
    border: 2px solid var(--color-brand-accent);
}
.btn-accent:hover {
    background: var(--color-brand-accent-hover);
} 
  
  /* Button sizes */
  .btn-sm { padding: var(--space-2) var(--space-3); font-size: 0.875rem; }
  .btn-lg { padding: var(--space-4) var(--space-6); font-size: 1.125rem; }
  


/* ============================================================
    CARDS
    ============================================================ */
  .card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
  }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .card img { width: 100%; }
  .card-body { padding: var(--space-4); }
  .card-title { font-size: 1.25rem; margin-bottom: var(--space-2); color: var(--color-heading-2); }
  .card-text { color: var(--color-text-secondary); }
  



/* ============================================================
    FORMS
    ============================================================ */
  input, textarea, select {
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    width: 100%;
  }
  input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
  }

  .field-type {
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none;    /* Firefox */
    appearance: none;         /* Standard */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 30px 6px 10px; /* right padding for arrow space */
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 8px;
  }
  .form-radio-input {
    width: 40px !important; 
  }
  .form-field{
    display: flex;
    flex-direction: column;
  }


    /* === FORM INPUTS === */

    
 /* === Base Form Reset === */
/* Base styling for select */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* For browsers supporting custom select rendering */
    appearance: base-select;
    
    width: 100%;
    padding: 0.6rem 2.4rem 0.6rem 0.9rem;
    font-size: 1rem;
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
    
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
  }
  
  /* Hover / focus styles */
  .form-select:hover {
    border-color: var(--color-brand-primary-hover);
  }
  .form-select:focus {
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 3px rgba( var(--color-brand-primary-rgb, 15,45,87), 0.2 );
    outline: none;
  }
  
  /* Rotate arrow icon when open (for browsers supporting :open & ::picker-icon) */
  .form-select:open::picker-icon {
    rotate: 180deg;
  }
  
  /* Styling the dropdown picker (when open) */
  .form-select::picker(select) {
    border: none;
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    padding: var(--space-2);
  }
  
  /* Style individual options inside the picker (supported browsers) */
  .form-select::picker(select) option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    transition: background .2s ease, color .2s ease;
  }
  
  /* Rounded top & bottom of options list */
  .form-select::picker(select) option:first-of-type {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .form-select::picker(select) option:last-of-type {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .form-select::picker(select) option:not(option:last-of-type) {
    border-bottom: none;
  }
  
  /* Hover/focus styles on options */
  .form-select::picker(select) option:hover,
  .form-select::picker(select) option:focus {
    background: var(--color-brand-primary);
    color: var(--color-text-inverse);
  }
  
  /* Fallback styling for classic browsers (option styling limited) */
  .form-select option {
    padding: var(--space-2);
  }
  .form-select option:hover {
    background: var(--color-brand-primary);
    color: var(--color-text-inverse);
  }
  
  
  /* ============================================================
     HEADER & NAV
     ============================================================ */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
  }
  #nav-wrapper { display: flex; align-items: center; justify-content: space-between; }
  .site-logo img { height: 36px; }
  .nav-links { display: flex; gap: var(--space-6); list-style: none; margin-top: var(--space-5);}
  .nav-links a { color: var(--color-text-primary); font-weight: 500; transition: color .3s ease;  }
  .nav-links a:hover { color: var(--color-brand-primary-hover);  }
  

  /* Current page */
  .site-nav .current-menu-item > a {
    color: var(--color-brand-primary);
    position: relative;
  }
  .site-nav .current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--color-brand-primary);
  }
  
  /* Logo */
  .site-logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text-primary);
  }
  .site-logo img {
    height: 36px;
    width: auto;
  }
  
  /* Navigation container */
  .site-nav {
    display: flex;
    align-items: center;
  }
  .site-nav .nav-links { gap: var(--space-6); }
  
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    padding: 6px;
    cursor: pointer;
  }
  .nav-toggle span {
    height: 1px;
    background: var(--color-text-primary);
    border-radius: 20px;
    margin: 2px 0;
    border: 1px solid black;
    transition: .3s;
  }
  .nav-toggle span:nth-child(2) {
    border: 1px solid black;
  }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }
  
  /* Mobile Menu */
  .mobile-menu {
    position: fixed; inset: 0;
    background: var(--color-bg-overlay);
    height: 100vh;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
  }
  .mobile-menu[aria-hidden="false"] { display: flex; }
  
  .mobile-panel {
    width: min(44em, 100%);
    background: var(--color-bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
  }
  .mobile-links {
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
  }
  .mobile-links a {
    display: block;
    padding: var(--space-3) 0;
    color: var(--color-text-primary);
    font-size: 1.05rem;
    transition: color .3s ease;
  }
  .mobile-links a:hover {
    color: var(--color-brand-primary);
  }
  










  

  /* ============================================================
     FOOTER
     ============================================================ */
.site-footer {
        background: var(--color-bg-primary);
        color: var(--font-color-p-light);
        padding: var(--space-12) var(--space-4) var(--space-4);
        font-size: 0.95rem;
}
      
.site-footer a {
    color: var(--font-color-p-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-footer a:hover {
    color: var(--color-brand-primary-hover);
}
.menu ul {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    justify-content: flex-start;
}
      /* Inner container */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
      
      /* Top grid (brand, nav, contact) */
.footer-top {
    margin-bottom: var(--space-10);
}
.footer-top .grid {
    align-items: start;
}

/* Brand */
.footer-brand .footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}
.footer-brand .footer-desc {
    font-size: 0.95rem;
    opacity: 0.85;
}

      /* Section titles */
      .footer-links h4,
      .footer-contact h4 {
        margin-bottom: var(--space-3);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-text);
      }
      
      /* Menu & contact list */
      .footer-menu,
      .footer-contact ul {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        list-style: none;
        padding: 0;
        margin: 0;
      }
      
      .footer-contact li i {
        margin-right: var(--space-2);
        color: var(--color-brand-accent);
      }
      
      /* Bottom bar */
      .footer-bottom {
        border-top: 1px solid var(--color-border);
        padding-top: var(--space-3);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: var(--space-3);
        font-size: 0.85rem;
        opacity: 0.9;
      }
      
      .footer-extra {
        display: flex;
        align-items: center;
        gap: var(--space-4);
      }
      
      /* Scroll to top */
      .scroll-top {
        background: var(--color-text);
        color: var(--color-brand-primary);
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .scroll-top:hover {
        background: var(--color-brand-primary-hover);
        color: var(--color-text);
      }
    
    
    


/* ============================================================
    SINGLE, ARCHIVE
    ============================================================ */


  /* ===============================
Single archive page
   =============================== */

/* Archive Grid */
.cpt-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: var(--space-5);
  }
  .cpt-archive-item {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
  }
  .cpt-archive-item img {
    width: 100%;
    height: auto;
    display: block;
  }
  .archive-content {
    padding: var(--space-4);
  }
  .archive-title {
    margin: 0 0 var(--space-2);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-heading-2);
  }
  .archive-excerpt {
    color: var(--color-text-secondary);
  }
  
  /* Single Post */
  .single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
  }
  .single-header {
    margin-bottom: var(--space-5);
  }
  .single-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-heading-2);
  }
  .single-meta {
    font-size: 14px;
    color: var(--color-text-secondary);
    display: flex;
    gap: var(--space-3);
  }
  .post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-12);
  }
  
.cpt-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .cpt-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .cpt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
  }
  .cpt-card__thumb img {
    width: 100%;
    display: block;
  }
  .cpt-card__body {
    padding: 1rem 1.2rem;
  }
  .cpt-card__title {
    font-size: 1.2rem;
    margin: 0 0 .5rem;
  }
  .cpt-card__excerpt {
    color: #555;
    font-size: .95rem;
    margin-bottom: .8rem;
  }
  .cpt-card__link {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
  }
  .cpt-card__link:hover {
    text-decoration: underline;
  }
  
  /* Single Page */
  .cpt-single__title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .cpt-single__thumb img {
    margin-bottom: 1.5rem;
    border-radius: 10px;
  }
  .cpt-single__content {
    font-size: 1.05rem;
    line-height: 1.7;
  }




  
  /* ===============================
   ERROR PAGE (404 etc.)
   =============================== */
.error-404 {
    text-align: center;
    padding: var(--space-16) var(--space-4);
    background: var(--color-bg);
    color: var(--color-text-primary);
  }
  .error-inner {
    max-width: 720px;
    margin: 0 auto;
  }
  .error-title {
    font-size: 3rem;
    margin-bottom: var(--space-2);
    font-weight: 700;
    color: var(--color-heading-1);
  }
  .error-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    color: var(--color-text-muted);
  }
  .error-actions {
    margin-bottom: var(--space-8);
  }
  .error-actions .btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    margin: 5px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background .3s ease, color .3s ease;
  }
  
  /* Search form */
  .error-search-form { margin-top: var(--space-5); }
  .error-search-form .search-field {
    padding: var(--space-3);
    width: 60%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-right: 10px;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
  }
  

  
  
  /* ============================================================
     RESPONSIVE QUERIES
     ============================================================ */
  @media (max-width: 1024px) {
    section { padding: var(--space-16) var(--space-6); }
    .nav-links { display: none; }
    .nav-toggle { display: flex;  z-index: 999; margin-right: 16px; }

  
  }
  @media (max-width: 768px) {
    section { padding: var(--space-16) var(--space-4); }
    h1 { font-size: 2.25rem; }
  }
  @media (max-width: 480px) {
    section { padding: var(--space-16) var(--space-3); }
    .container { padding: 0 var(--space-3); }
    h1 { font-size: 1.75rem; }
  }
  