
:root {
  /* Primary - Golden Yellow (from logo) */
  --primary: #f7c52d;
  --primary-dark: #e5b526;
  --primary-darker: #d4a520;
  --primary-light: #f9d04a;
  --primary-lighter: #fbdc6c;
  --primary-pale: #fef6d8;
  --primary-glow: rgba(247, 197, 45, 0.4);
  
  /* Secondary - Navy Blue (from logo) */
  --navy: #1e3a6e;
  --navy-light: #2a4a85;
  --navy-lighter: #3a5a9a;
  --navy-dark: #152a52;
  --navy-pale: #e8edf5;
  
  /* Neutral Colors */
  --dark: #1a1a2e;
  --dark-light: #2d2d44;
  --gray: #5c5c70;
  --gray-light: #9999a8;
  --gray-lighter: #e2e2e8;
  --gray-pale: #f5f5f7;
  --white: #ffffff;
  
  /* Semantic Colors */
  --success: #22c55e;
  --warning: #f7c52d;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-gold: 0 4px 14px -3px rgba(247, 197, 45, 0.35);
  --shadow-gold-lg: 0 10px 30px -5px rgba(247, 197, 45, 0.3);
  --shadow-navy: 0 4px 14px -3px rgba(30, 58, 110, 0.25);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(180deg, var(--primary-pale) 0%, #fffef9 30%, var(--white) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  color: var(--navy);
}

h1 {
  font-size: 1.875rem;
  color: var(--navy);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

h2, .subject {
  font-size: 1.25rem;
  color: var(--navy);
}

h3 {
  font-size: 1.125rem;
  color: var(--navy);
}

a, .link {
  color: var(--navy);
  text-decoration: none;
  transition: all var(--transition);
}

a:hover, .link:hover {
  color: var(--navy-light);
}

/* ============================================================================
   MAIN CONTAINER
   ============================================================================ */
#container {
  background: var(--white);
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

@media (min-width: 768px) {
  #container {
    margin: 2rem auto;
    border-radius: var(--radius-2xl);
  }
}

#content {
  padding: 2.5rem;
  min-height: 400px;
  background: var(--white);
}

/* ============================================================================
   HEADER - Golden Yellow Background
   ============================================================================ */
#header {
  position: relative;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#logo {
  display: flex;
  align-items: center;
}

#header #logo img {
  max-height: 60px;
  max-width: 300px;
  width: auto;
  height: auto;
  transition: transform var(--transition);
}

#header #logo img:hover {
  transform: scale(1.02);
}

/* ============================================================================
   NAVIGATION - Navy Blue
   ============================================================================ */
div#nav-wrapper {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(30, 58, 110, 0.3);
}

div#nav-wrapper .nav {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

div#nav-wrapper li {
  padding: 0;
  margin: 0;
}

div#nav-wrapper a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  transition: all var(--transition);
  position: relative;
  border-bottom: 3px solid transparent;
}

div#nav-wrapper a:hover,
div#nav-wrapper a.active {
  color: var(--white) !important;
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--primary);
}

.navbar a {
  color: var(--white) !important;
}

ul.nav.pull-right { float: right; }
ul.nav.pull-left { float: left; }
ul.nav { margin-top: 0; }

/* ============================================================================
   HERO/SEARCH SECTION - Golden Yellow
   ============================================================================ */
.search-area-wrapper {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.search-area-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.search-area-wrapper .search-area {
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

h3.search-header {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

p.search-tag-line {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--navy);
  opacity: 0.85;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

form.search-form {
  margin: 0 auto;
  text-align: center;
  max-width: 700px;
}

form.search-form input.search-term {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 1rem 1.5rem;
  width: calc(100% - 140px);
  max-width: 500px;
  border: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

form.search-form input.search-term:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 58, 110, 0.2), var(--shadow-lg);
}

input.search-btn {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input.search-btn:hover {
  background: var(--navy-light);
}

/* ============================================================================
   CARDS - Clean with Navy/Yellow Accents
   ============================================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-lighter);
  box-shadow: var(--shadow);
  transition: all var(--transition-slow);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold-lg);
  border-color: var(--primary);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-body {
  padding: 2rem 1.5rem;
  border: none;
  background: transparent;
  text-align: center;
}

.card-icon {
  font-size: 3rem;
  color: var(--navy);
  margin-bottom: 1rem;
  display: block;
}

h5.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

p.card-text {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

a.card-link {
  display: inline-block;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--primary);
  transition: all var(--transition);
}

a.card-link:hover {
  color: var(--navy-light);
  border-bottom-color: var(--navy);
}

.card.new-ticket {
  padding: 2.5rem;
  border: 2px dashed var(--primary);
  background: linear-gradient(135deg, var(--primary-pale) 0%, var(--white) 100%);
  text-align: center;
}

.card.new-ticket:hover {
  border-style: solid;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-pale) 100%);
}

/* ============================================================================
   FEATURED SECTIONS
   ============================================================================ */
.featured-block {
  padding: 4rem 2rem;
  background: var(--white);
}

h3.featured-header,
h4.popular-header {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

p.featured-tag-line {
  font-size: 1rem;
  color: var(--gray);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.featured-block a {
  color: var(--navy);
}

.featured-block a:hover {
  color: var(--navy-light);
}

/* ============================================================================
   CTA SECTION - Yellow Dashed Box
   ============================================================================ */
.cta-section,
.widget-top {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-pale) 0%, #fffef5 100%);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.cta-box h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--gray);
  margin: 0;
}

/* ============================================================================
   BUTTONS - Navy with Yellow Hover
   ============================================================================ */
.button,
.button:visited,
a.btn.btn-primary,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

a.btn.btn-primary,
.green.button,
.green.button:visited {
  background: var(--navy);
  color: var(--white) !important;
  box-shadow: var(--shadow-navy);
}

a.btn.btn-primary:hover,
.green.button:hover {
  background: var(--primary);
  color: var(--navy) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
}

.blue.button,
.blue.button:visited {
  background: var(--primary);
  color: var(--navy) !important;
}

.blue.button:hover {
  background: var(--primary-dark);
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy) !important;
  background: var(--white);
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.action-button:hover {
  color: var(--navy) !important;
  border-color: var(--primary);
  background: var(--primary-pale);
}

/* ============================================================================
   WIDGET SECTIONS
   ============================================================================ */
.widget-top h4 {
  padding: 0.75rem 0;
  color: var(--navy);
}

.widget-top ul {
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

.widget-top ul li {
  list-style: none;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  margin-bottom: 0.25rem;
  border-left: 3px solid transparent;
}

.widget-top ul li:hover {
  background: var(--primary-pale);
  border-left-color: var(--primary);
}

.widget-top ul li a {
  color: var(--navy);
  display: block;
}

.widget-top ul li a:hover {
  color: var(--navy-light);
}

.widget-top p {
  text-align: center;
  color: var(--gray);
}

.qns {
  padding-bottom: 1rem;
}

.qns a {
  font-size: 1.1rem;
  color: var(--navy);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
}

.qns a:hover {
  color: var(--navy-light);
}

/* ============================================================================
   BREADCRUMBS
   ============================================================================ */
div#breadcrumbs {
  background: var(--navy-pale);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--navy);
}

div#breadcrumbs a {
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  color: var(--navy);
}

div#breadcrumbs a:hover {
  color: var(--navy-light);
}

/* ============================================================================
   FORMS
   ============================================================================ */
#ticketForm,
#clientLogin {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

#clientLogin {
  padding: 2rem;
  border: 1px solid var(--gray-lighter);
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-pale) 100%);
}

#ticketForm div input,
#clientLogin div input,
#ticketForm div textarea,
#clientLogin div textarea,
#ticketForm div select,
#clientLogin div select {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-lighter);
  border-radius: var(--radius);
  background: var(--white);
  transition: all var(--transition);
  width: 100%;
}

#ticketForm div input:focus,
#clientLogin div input:focus,
#ticketForm div textarea:focus,
#clientLogin div textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--navy-pale);
}

label.required,
span.required {
  font-weight: 600;
  color: var(--navy);
}

/* ============================================================================
   TABLES
   ============================================================================ */
#ticketTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-lighter);
}

#ticketTable caption {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border: none;
}

#ticketTable th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--navy);
  background: var(--primary-pale);
  border: none;
  border-bottom: 2px solid var(--primary);
}

#ticketTable td {
  padding: 1rem 1.5rem;
  border: none;
  border-bottom: 1px solid var(--gray-lighter);
  transition: background var(--transition);
}

#ticketTable tr:hover td {
  background: rgba(247, 197, 45, 0.08);
}

#ticketTable tr:last-child td {
  border-bottom: none;
}

#ticketTable tr.alt td {
  background: rgba(247, 197, 45, 0.03);
}

.infoTable {
  background: var(--primary-pale);
  border-radius: var(--radius);
}

.infoTable th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--navy);
  font-weight: 600;
}

table.custom-data {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

table.custom-data th {
  background-color: var(--primary-pale);
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--navy);
}

table .headline,
table.custom-data .headline {
  border-bottom: 3px solid var(--primary);
  font-weight: 700;
  background-color: var(--white);
  color: var(--navy);
}

/* ============================================================================
   TICKET THREAD
   ============================================================================ */
#ticketThread {
  position: relative;
  z-index: 0;
  padding-bottom: 2rem;
}

#ticketThread::before {
  border-left: 2px dashed var(--primary);
  position: absolute;
  margin-left: 74px;
  z-index: -1;
  content: "";
  top: 0;
  bottom: 0;
}

.thread-entry {
  margin-bottom: 1.5rem;
}

.thread-entry .header {
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--gray-pale);
}

.thread-entry.response .header {
  background: linear-gradient(135deg, var(--navy-pale), var(--white));
  border-color: var(--navy-pale);
}

.thread-entry.message .header {
  background: linear-gradient(135deg, var(--primary-pale), #fffef5);
  border-color: var(--primary);
}

.thread-entry .thread-body {
  border: 1px solid var(--gray-lighter);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 1.25rem;
  background: var(--white);
}

.thread-entry.message .thread-body {
  border-color: var(--primary);
}

.thread-body .attachments {
  background-color: var(--primary-pale);
  margin: 1rem -1.25rem -1.25rem;
  padding: 1rem 1.25rem;
  border-top: 1px dashed var(--primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.thread-event {
  padding: 0.5rem 0 1rem;
  margin-left: 60px;
}

.type-icon {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-pale), var(--white));
  padding: 0.5rem 0.75rem;
  margin-right: 0.5rem;
  border: 1px solid var(--primary);
  color: var(--navy);
}

/* ============================================================================
   REPLY SECTION
   ============================================================================ */
#reply {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

#reply h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary);
  color: var(--navy);
}

#reply textarea {
  width: 100% !important;
  min-height: 150px;
  border: 2px solid var(--gray-lighter);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: var(--font-sans);
  transition: all var(--transition);
}

#reply textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--navy-pale);
}

/* ============================================================================
   ALERTS & NOTICES
   ============================================================================ */
#msg_notice {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  border-left: 4px solid var(--success);
  color: #166534;
}

#msg_warning,
.warning-banner {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-pale), #fffef5);
  border-left: 4px solid var(--primary);
  color: #854d0e;
}

#msg_error {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fee2e2, #fef2f2);
  border-left: 4px solid var(--error);
  color: #991b1b;
}

#msg_info {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-pale), #f0f4fa);
  border-left: 4px solid var(--navy);
  color: var(--navy);
}

.error { color: var(--error); }

.warning {
  background: var(--primary-pale);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

/* ============================================================================
   LABELS & BADGES
   ============================================================================ */
.label {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  color: var(--white);
  background: var(--navy);
  text-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-bare {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */
.sidebar {
  margin-bottom: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .sidebar {
    width: 260px;
    margin-left: 2rem;
  }
}

.sidebar .content {
  padding: 1.5rem;
  border: 1px solid var(--primary);
  background: linear-gradient(180deg, var(--primary-pale), var(--white));
  border-radius: var(--radius-xl);
}

.sidebar section .header {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.sidebar section + section {
  margin-top: 1.5rem;
}

/* ============================================================================
   KNOWLEDGE BASE
   ============================================================================ */
#kb {
  margin: 0;
  padding: 0;
}

#kb > li {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  display: block;
  border-left: 4px solid transparent;
}

#kb > li:hover {
  border-color: var(--gray-lighter);
  border-left-color: var(--primary);
  box-shadow: var(--shadow-gold);
}

#kb > li h4 a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

#kb > li h4 a:hover {
  color: var(--navy-light);
}

.featured-category {
  margin-top: 1rem;
  width: 100%;
  display: inline-block;
  box-sizing: border-box;
  vertical-align: top;
}

@media (min-width: 768px) {
  .featured-category { width: 49%; }
}

.category-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
}

.featured-category i {
  color: var(--primary-dark);
}

.article-title {
  font-weight: 600;
  color: var(--navy);
}

.article-teaser {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================================================
   FAQ
   ============================================================================ */
#faq ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--gray-lighter);
}

#faq ol li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#faq ol li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-lighter);
  color: var(--navy);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

#faq ol li a:hover {
  background: var(--primary-pale);
  border-left-color: var(--primary);
  padding-left: 1.25rem;
}

/* ============================================================================
   FOOTER - Navy Blue
   ============================================================================ */
#footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 2rem;
}

#footer a {
  color: var(--primary);
  transition: color var(--transition);
}

#footer a:hover {
  color: var(--primary-light);
}

#footer p {
  margin: 0.5rem 0;
}

#footer #poweredBy {
  display: inline-block;
  margin: 1rem auto 0;
  opacity: 0.6;
  transition: opacity var(--transition);
}

#footer #poweredBy:hover {
  opacity: 1;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */
#pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

#pagination li { display: inline-block; }

#pagination li a,
#pagination .active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all var(--transition);
}

#pagination li a {
  background: var(--white);
  border: 1px solid var(--gray-lighter);
  color: var(--navy);
}

#pagination li a:hover {
  background: var(--primary-pale);
  border-color: var(--primary);
  color: var(--navy);
}

#pagination .active {
  background: var(--navy);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-navy);
}

/* ============================================================================
   SEARCH BAR
   ============================================================================ */
.searchbar .search,
.search-form .search {
  width: 100%;
  max-width: 500px;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--gray-lighter);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.searchbar .search:focus,
.search-form .search:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--navy-pale);
}

/* ============================================================================
   EXTERNAL AUTH
   ============================================================================ */
.external-auth-box {
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--gray-lighter);
  overflow: hidden;
  transition: all var(--transition);
}

.external-auth-box:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.external-auth-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  padding: 0.75rem;
  background: var(--navy-pale);
  border-right: 1px solid var(--gray-lighter);
}

.external-auth-name {
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--navy);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.centered { text-align: center; }
.hidden { display: none; }
.clear { clear: both; }
.faded { color: var(--gray); font-size: 0.85rem; }
.truncate {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flush-right { text-align: right; }
.flush-left { text-align: left; }

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1%;
}

.span4 { width: 100%; padding: 0 1%; }
.span8 { width: 100%; padding: 0 1%; }

@media (min-width: 768px) {
  .span4 { width: 33.333%; }
  .span8 { width: 66.666%; }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media screen and (max-width: 768px) {
  body { font-size: 14px; }
  
  #header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  #header #logo img { max-height: 50px; }
  
  div#nav-wrapper .nav { flex-direction: column; }
  
  div#nav-wrapper a {
    padding: 0.875rem 1rem;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .search-area-wrapper { padding: 2.5rem 0; }
  
  form.search-form input.search-term {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
  }
  
  input.search-btn {
    width: 100%;
    border-radius: var(--radius-lg);
  }
  
  #content { padding: 1.5rem; }
  .featured-block { padding: 2.5rem 1rem; }
  
  .sidebar {
    width: 100%;
    margin-left: 0;
  }
  
  #ticketTable {
    display: block;
    overflow-x: auto;
  }
  
  .thread-entry.avatar {
    margin-left: 0;
    margin-right: 0;
  }
  
  .thread-entry > .avatar { display: none; }
  #ticketThread::before { display: none; }
  .thread-event { margin-left: 0; }
  
  .cta-box {
    flex-direction: column;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h3.search-header { font-size: 1.5rem; }
  .card { margin-bottom: 1rem; }
  .card.new-ticket { padding: 1.5rem; }
  #reply textarea { min-height: 120px; }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, #kb > li, .thread-entry {
  animation: fadeIn 0.4s ease-out;
}

/* Scrollbar - Navy themed */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-pale);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--navy-light), var(--navy));
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-pale);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--navy), var(--navy-dark));
}

/* Focus & Selection */
*:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

::selection {
  background: var(--primary);
  color: var(--navy);
}

/* Print */
@media print {
  body { background: white; }
  #container { box-shadow: none; max-width: 100%; }
  .search-area-wrapper, div#nav-wrapper, #footer, .action-button { display: none; }
}
/* Overlay */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    -webkit-transform: translate3d(0,0,0);
}

#loading {
    border:1px solid #2a67ac;
    padding: 10px 10px 10px 60px;
    width: 300px;
    height: 100px;
    background: rgb( 255, 255, 255) url('../images/FhHRx-Spinner.gif') 10px 50% no-repeat;
    position: fixed;
    display: none;
    z-index: 3000;
}

#loading h4 { margin: 3px 0 0 0; padding: 0; color: #d80; }

.pull-right {
    float: right;
}

.non-local-image {
    display: inline-block;
    border: 3px dashed #eee;
    border-radius: 5px;
}

.non-local-image:after {
    background: url(../logo.php) center center no-repeat;
    background-size: cover;
    content: "";
    z-index: -1;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.3;
}

div.section-break {
    margin-top: 1em;
    margin-bottom: 0.5em;
    padding-top: 0.8em !important;
    border-top: 1px solid #ccc;
}

input.dp {
    width: 10em;
}

/* Custom css for datepicker */
.ui-datepicker-trigger {
    display:inline-block;
    border:0;
    padding:0;
    margin-left:2px;
    position:relative;
    top:-2px;
    width:16px;
    height:16px;
    background:inherit;
}

.draft-saved {
    background-color: black;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px 6px;
    border-radius: 3px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    line-height: 14px;
    position: absolute;
    top: 3em;
    right: 0.5em;
}

.delete-draft:hover {
    background-color: #fc9f41 !important;
}

.notice_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #0a0; background: url('../assets/default/images/icons/ok.png') 10px 50% no-repeat #e0ffe0; }

.warning_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #f26522; background: url('../assets/default/images/icons/alert.png') 10px 50% no-repeat #ffffdd; }

.error_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #a00; background: url('../assets/default/images/icons/error.png') 10px 50% no-repeat #fff0f0; }
