/* ==========================================================================
   Base reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    background: #f0f3f5;
    margin: 0;
    color: #000;
    font-family: 'Inter-Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Form elements reset
   ========================================================================== */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/* Remove default Safari styling */
input[type="search"],
input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Unified input styling */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: none !important;
    background: #fff;
    color: #292929;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.3s ease;
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

/* For all browsers */
::selection {
  background: #930000;  /* Selection background color */
  color: white;         /* Text color when selected */
}

/* For Firefox */
::-moz-selection {
  background: #930000;
  color: white;
}

/* Button styling */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.submit {
    border: none;
    padding: 10px;
    background: #000;
    color: rgb(255 255 255);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Focus states - visible for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: none;
}

/* ==========================================================================
   Accessibility - Screen Reader Text
   ========================================================================== */
/**
 * Hide text visually but keep it accessible to screen readers
 * Based on WordPress core .screen-reader-text class
 */
.screen-reader-text {
    /* Modernized: clip is deprecated, using modern clip-path approach */
    clip-path: inset(50%);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    /* Modernized: clip: auto replaced with clip-path: none */
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Search input clear button */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'/%3E%3C/svg%3E");
    cursor: pointer;
}

/* Date input fix for Safari */
input[type="date"] {
    min-height: 40px;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    -webkit-appearance: none;
    display: none;
}

/* Textarea adjustments */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================================================
   Additional global styles
   ========================================================================== */
hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

img {
    /* -ms-interpolation-mode removed: deprecated, modern browsers handle image interpolation automatically */
    border: 0;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

a {
    color: #000;
    cursor: pointer;
    text-decoration: none
}

a:hover,a:active {
    outline: 0
}
ul,ol {
    margin: 0;
    padding: 0
}

ul {
    list-style: none
}

ol {
    list-style: none
}

li>ul,li>ol {
    margin: 0
}

dt {
    font-weight: 700
}

dd {
    margin: 0 1.5em 1.5em
}

embed,iframe,object {
    max-width: 100%
}

figure {
    margin: 0
}

table {
    margin: 0 0 1.5em;
    width: 100%
}

textarea {
    width: 100%
}

h1,h2,h3,h4,h5,h6 {
    clear: both;
    /* Fix for H1UserAgentFontSizeInSection: explicit font-size prevents user agent font size calculations */
    /* Font sizes are inherited from body (14px) or set via utility classes, avoiding rem/em in sections */
}

dfn,cite,em,i {
    font-style: italic
}

blockquote {
    margin: 0 1.5em
}

address {
    margin: 0 0 1.5em
}

pre {
    background: #eee;
    font-family: "Courier 10 Pitch",courier,monospace;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em
}

code,kbd,tt,var {
    font-family: monaco,consolas,"Andale Mono","DejaVu Sans Mono",monospace
}

abbr,acronym {
    border-bottom: 1px dotted #666;
    cursor: help
}

mark,ins {
    background: #fff9c0;
    text-decoration: none
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #101010;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.sub-cat-header {
    overflow-x: auto;                 /* enable horizontal scroll if needed */
    overflow-y: hidden;               /* disable vertical scroll */
    /* -webkit-overflow-scrolling removed: deprecated, modern browsers handle smooth scrolling automatically */
    
    scrollbar-width: none;            /* Firefox */
    /* -ms-overflow-style removed: IE is deprecated, modern Edge uses scrollbar-width */
}

/* Chrome, Safari, Edge */
.sub-cat-header::-webkit-scrollbar {
    display: none;
}


/* ==========================================================================
   Responsive adjustments
   ========================================================================== */
@media (max-width: 480px) {
    input[type="date"],
    select {
        font-size: 16px; /* Prevent iOS zoom */
    }
}


/* Schema.org visibility */
[itemprop="publisher"],
[itemprop="mainEntityOfPage"] {
    display: none;
}

