@media (max-width: 768px) {
  #nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: hidden;
    z-index: 1000;
  }
  #nav.open ul {
    display: flex;
  }
}
/* Flex row for buttons below paragraph */
.button-row {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
}
/* Responsive Banner Styles */
#banner {
  height: 400px;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FF4654;
  margin: 0 !important;
  padding: 0 !important;
}
#banner span {
  font-size: 1.5rem;
  color: #333;
  font-weight: bold;
}
@media (max-width: 768px) {
  #banner {
    height: 250px;
  }
  #banner span {
    font-size: 1.1rem;
  }
}
@media (max-width: 480px) {
  #banner {
    height: 40px;
  }
  #banner span {
    font-size: 1rem;
  }
}
html {
  font-size: 100%;
  overflow-y: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
@media (max-width: 600px) {
  #header .pull-right.flush-right p {
    font-size: 13px;
    padding: 8px 2vw;
    max-width: 98vw;
  }
}
}

body {
  font-size: 14px;
  line-height: 1.231;
  background-color: #fff; /* Add a background color if needed */
  padding: 0;
  height: 100%;
}

#banner {
  margin: 0 !important;
  padding: 0 !important;
  height: 70px; /* Keep this as per your initial banner height */
  background-color: #FF4654; /* Banner color */
  width: 100%;
}
body,
input,
select,
textarea {
  font-family: "Helvetica Neue", sans-serif;
  color: #000;
}
b,
strong {
  font-weight: bold;
}
blockquote {
  margin: 1em 40px;
}
/*hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}*/
small {
  font-size: 85%;
}
ul,
ol {
  margin: 1em 0;
  padding: 0 0 0 30px;
}
img {
  border: 0;
  vertical-align: middle;
}
form {
  margin: 0;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
label {
  cursor: pointer;
}

input,
select,
textarea {
  font-size: 70%;
  width: auto;
  margin: 0;
  vertical-align: baseline;
  vertical-align: middle;
}
.container-profile
input,
select,
textarea {
  font-size: 70%;
  width: 100%;
  height: 20px;
  margin: 0;
  vertical-align: baseline;
  *vertical-align: middle;
}
.profile-buttons input{
  width: auto;
  height: 30px;
  padding: 4px 8px;
  gap: 12px;
  font-size: 14px;
  border-radius: 5px;
  background-color: #404040;
  color: #fff;
  border: none;
  cursor: pointer;
}
.profile-buttons input:hover{
  transition: 0.8s ease;
  background-color: #808080;
}
input {
  line-height: normal;
  *overflow: visible;
}
table input {
  *overflow: auto;
}
input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
}

textarea {
  overflow: auto;
  vertical-align: top;
  resize: vertical;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
th,
td {
  vertical-align: top;
}
th {
  text-align: left;
  font-weight: normal;
}
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset {
  margin: 0;
  padding: 0;
}
/* Typography */
a, .link {
  color: #808080;
  text-decoration: none;
  display: inline;
}
a:hover, .link:hover {
    margin-bottom: 0;
    cursor: pointer;
}
h1 {
  color: #00AEEF;
  font-weight: normal;
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
h2, .subject {
  font-size: 16px;
  color: black;
}
/* Helpers */
.centered {
  text-align: center;
}
.clear {
  clear: both;
  height: 1px;
  visibility: none;
}
.hidden {
  display: none;
}
.faded {
  color: #666;
}
/* Pagination */
#pagination {
  border: 0;
  margin: 0 0 40px 0;
  padding: 0;
}
#pagination li {
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 11px;
  list-style: none;
  display: inline;
}
#pagination li a {
  margin-right: 2px;
  display: block;
  float: left;
  padding: 3px 6px;
  text-decoration: none;
}
#pagination li a:hover {
  color: #ff0084;
}
#pagination .previousOff,
#pagination .nextOff {
  color: #666;
  display: block;
  float: left;
  font-weight: bold;
  padding: 3px 4px;
}
#pagination .next a,
#pagination .previous a {
  font-weight: bold;
}
#pagination .active {
  color: #000;
  font-weight: bold;
  margin-right: 2px;
  display: block;
  float: left;
  padding: 3px 6px;
  text-decoration: none;
}
/* Alerts & Notices */
#msg_notice {
  margin: 0;
  padding: 5px 10px 5px 36px;
  height: 16px;
  line-height: 16px;
  margin-bottom: 10px;
  border: 1px solid #0a0;
  background: url('../images/icons/ok.png') 10px 50% no-repeat #e0ffe0;
}
#msg_warning, .warning-banner {
  margin: 0;
  padding: 5px 10px 5px 36px;
  height: 16px;
  line-height: 16px;
  margin-bottom: 10px;
  border: 1px solid #f26522;
  background: url('../images/icons/alert.png') 10px 50% no-repeat #ffffdd;
}
#msg_error {
  margin: 0;
  padding: 5px 10px 5px 36px;
  height: 16px;
  line-height: 16px;
  margin-bottom: 10px;
  border: 1px solid #a00;
  background: url('../images/icons/error.png') 10px 50% no-repeat #fff0f0;
}
#msg_info { margin: 0; padding: 5px; margin-bottom: 10px; color: #3a87ad; border: 1px solid #bce8f1;  background-color: #d9edf7; }
.warning {
  background: #ffc;
  font-style: italic;
}
.warning strong {
  text-transform: uppercase;
  color: #a00;
  font-style: normal;
}
.error {
  color: #f00;
}
.error input {
  border: 1px solid #f00;
}
.button,
.button:visited {
  background: #222;
  border: none;
  display: inline-block;
  font-size: 16px;
  padding: 4px 16px 4px 16px;
  max-width: 220px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  position: relative;
  cursor: pointer;
  font-family: helvetica, arial, sans-serif;
}
.button:hover {
  background-color: #111;
  color: #fff;
}
.button:active {
  top: 1px;
  box-shadow: none;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
}
.button,
.button:visited,
.green.button,
.green.button:visited,
.blue.button,
.blue.button:visited {
  background-color: #FF4654;
  color: #fff;
}
.green.button:hover,
.blue.button:hover {
  background-color: black;
  transition:.5s ease-in-out;
  color: #fff;
}
#container {
  background: #fff;
  height:100%;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 40px;
  min-height: calc(100vh - 40px); /* 40px is the footer height */
  box-sizing: border-box;
}
#logo {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#header #logo img {
  max-height: 65px;
  max-width: 380px;
  width: auto;
  height: auto;
  vertical-align: middle;
}
.valign-helper {
    height: 100%;
    display: inline-block;
    vertical-align: middle;
}
#header p {
  width: 100%;
  max-width: 400px;
  text-align: center;
  display: block;
}
#nav {
  margin-bottom: 0;
  padding: 10px 10px;
  text-align: center;
  height: 45px;
  background: lightgrey;
  border: none;
  white-space: nowrap;
}
#nav li {
  display: inline-block;
  width: auto;
  /* Remove fixed width for proportional sizing */
}

#nav li a {
  display: inline-block;
  min-width: 120px;      
  max-width: 220px;      
  width: auto;           
  padding: 0 18px;       
  height: 40px;          
  line-height: 40px;   
  text-align: center;
  margin-left: 10px;
  color: #333;
  border-radius: 20px;
  background-position: 10px 50%;
  background-repeat: no-repeat;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rtl #nav li a {
  background-position: right center;
  background-position: calc(100% - 10px) center;
  padding-left: 10px;
  padding-right: 32px;
  margin-right: 10px;
  margin-left: 0;
}
#nav li a.active,
#nav li a:hover {
  background-color: #404040;
  color: whitesmoke;
}
#nav li a.active {
  transition: .8s ease-in-out;
}
#nav li a:hover {
  background-color: #4d4d4d;
  color: whitesmoke;
}
#nav li a.home {
  /*background-image: url('../images/icons/home.png');*/
}
#nav li a.kb {
  background-image: url('../images/icons/kb.png');
}
#nav li a.new {
  /*background-image: url('../images/icons/new.png');*/
}
#nav li a.status {
  /*background-image: url('../images/icons/status.png');*/
}
#nav li a.tickets {
  background-image: url('../images/icons/tix.png');
}
#content {
  padding: 0 0;
  background-color: #F4F3F1;
  margin: 0 auto;
}
#footer {
  position: static;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 56px;
  min-height: 40px;
  text-align: center;
  font-size: 13px;
  color: #c8c8c8!important;
  background-color: #404040;
  z-index: 100;
  margin-top: auto;
  box-sizing: border-box;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  #footer {
    font-size: 12px;
    padding: 12px 0;
    height: 48px;
    min-height: 36px;
  }
}
@media (max-width: 600px) {
  #footer {
    font-size: 13px;
    padding: 10px 0;
    height: 40px;
    min-height: 32px;
  }
}
@media (max-width: 400px) {
  #footer {
    font-size: 14px;
    padding: 8px 0;
    height: 32px;
    min-height: 28px;
  }
}
.front-page-button {
  display: block;
  margin: 0 auto;
  text-align: center;
}
.main-content {
  margin:3rem;
  width: 565px;
}
#landing_page #new_ticket {
  margin-top: 40px;
  background: url('../images/new_ticket_icon.png') top left no-repeat;
}
#landing_page #new_ticket,
#landing_page #check_status {
  width: 295px;
  padding-left: 75px;
}
#landing_page #check_status {
  margin-top: 40px;
  background: url('../images/check_status_icon.png') top left no-repeat;
}
#landing_page h1, #landing_page h2, #landing_page h3 {
    margin-bottom: 10px;
}
/* Landing page FAQ not yet implemented. */
#faq {
  clear: both;
  margin: 0;
  padding: 5px;
}
#faq ol {
  font-size: 15px;
  margin-left: 0;
  padding-left: 0;
  border-top: 1px solid #ddd;
}
#faq ol li {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #999;
}
#faq ol li a {
  display: block;
  padding: 5px 0;
  height: auto !important;
  overflow: hidden;
  margin: 0;
  border-bottom: 1px solid #ddd;
  line-height: 16px;
  padding-left: 24px;
  background: url('../images/icons/page.png') 0 50% no-repeat;
}
#faq ol li a:hover {
  background-color: #e9f5ff;
}
#faq .article-meta {
  padding: 5px;
  background: #fafafa;
}
#kb {
  margin: 2px 0;
  padding: 5px;
  overflow: hidden;
}
#kb > li {
  padding: 10px;
  height: auto !important;
  overflow: hidden;
  margin: 0;
  background: url(../images/kb_category_bg.png) bottom left repeat-x;
  border-bottom: 1px solid #ddd;
  display: block;
}
#kb > li h4 span {
  color: #666;
}
#kb > li h4 a {
  font-size: 14px;
}
#kb > li > i {
  display: block;
  width: 32px;
  height: 32px;
  float: left;
  margin-right: 6px;
  background: url(../images/kb_large_folder.png) top left no-repeat;
}
.featured-category {
    margin-top: 10px;
    width: 49.7%;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: top;
}
.category-name {
    display: inline-block;
    font-weight: 400;
    font-size: 120%;
}
.featured-category i {
    color: rgba(0,174,239, 0.8);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    display: inline-block;
    vertical-align: middle;
}
.article-headline {
    margin-left: 34px;
}
.rtl .article-headline {
    margin-left: 0;
    margin-right: 34px;
}
.article-teaser {
    font-size: 90%;
    line-height: 1.5em;
    height: 3em;
    overflow: hidden;
}
.article-title {
    font-weight: 500;
}
.faq-content .article-title {
    font-size: 17pt;
    margin-top: 15px;
}
#kb-search {
  padding: 10px 0;
  overflow: hidden;
}
#kb-search div {
  clear: both;
  overflow: hidden;
  padding-top: 5px;
}
#kb-search #query {
  margin: 0;
  display: inline-block;
  float: left;
  width: 200px;
  margin-right: 5px;
}
#kb-search #cid {
  margin: 0;
  display: inline-block;
  float: left;
  width: 200px;
  margin-right: 5px;
  position: relative;
  top: 2px;
}
#kb-search #topic-id {
  margin: 0;
  display: inline-block;
  float: left;
  width: 410px;
}
#kb-search #searchSubmit {
  margin: 0;
  display: inline-block;
  float: left;
  position: relative;
  top: 2px;
}
#kb-search #breadcrumbs {
  color: #333;
  margin-bottom: 15px;
}
#kb-search #breadcrumbs #breadcrumbs a {
  color: #555;
}
#ticketForm div.clear,
#clientLogin div.clear {
  clear: both;
  padding: 3px 0;
  overflow: hidden;
}
#ticketForm div label,
#clientLogin div label {
  display: block;
}
label.required, span.required {
  font-weight: 300;
}
#ticketForm div label.required,
#clientLogin div label.required {
  text-align: left;
}
#ticketForm div input,
#clientLogin div input,
#ticketForm div textarea,
#clientLogin div textarea {
  width: 100%;
  border: 1px solid #aaa;
  background: #fff;
  display: block;
}
#ticketForm div input[type=file],
#clientLogin div input[type=file] {
  border: 0;
}
#ticketForm div select,
#clientLogin div select {
  display: block;
  float: left;
}
#ticketForm div select, input {
    border: 1px solid #cccccc !important;
    border-radius: 10px !important;
    font-size: .8rem;
    color: #222 !important;
    min-height: 25px;
    margin-bottom: 1.1rem;
    width: 100%;
}

#ticketForm div div.captchaRow,
#clientLogin div div.captchaRow {
  line-height: 31px;
}
#ticketForm div div.captchaRow input,
#clientLogin div div.captchaRow input {
  position: relative;
  top: 6px;
}
#ticketForm > table {
    table-layout: fixed;
}
#ticketForm > table td {
    width: 160px;
}
#ticketForm > table td + td {
    width: auto;
}
#ticketForm td textarea,
#clientLogin td textarea,
#ticketForm div textarea,
#clientLogin div textarea {
  width: 600px;
}
#ticketForm td em,
#clientLogin td em,
#ticketForm div em,
#clientLogin div em {
  color: #777;
}
#ticketForm td .captcha,
#clientLogin td .captcha,
#ticketForm div .captcha,
#clientLogin div .captcha {
  width: 88px;
  height: 31px;
  background: #000;
  display: block;
  float: left;
  margin-right: 20px;
}
#ticketForm td label.inline,
#clientLogin td label.inline,
#ticketForm div label.inline,
#clientLogin div label.inline {
  width: auto;
  padding: 0 10px;
}
#ticketForm div.error input,
#clientLogin div.error input {
  border: 1px solid #a00;
}
#ticketForm div.error label,
#clientLogin div.error label {
  color: #a00;
}
#ticketTable th {
  padding-left: 3px;
  font-weight: normal;
  text-align: left;
}
#ticketTable th.required,
#ticketTable td.required {
  font-weight: bold;
  text-align: left;
}
#clientLogin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  max-width: 350px;
}
.rtl #clientLogin {
    background-position: 5% 50%;
}
#clientLogin .instructions {
    display:table-cell;
    padding-left: 2em;
    padding-right:90px;
}
.rtl #clientLogin .instructions {
    padding-left: 0;
    padding-right:0;
    padding-right: 2em;
    padding-left:90px;
}
#clientLogin p {
  clear: both;
}
#clientLogin strong {
  font-size: 11px;
  color: #d00;
  display: block;
}
#clientLogin #email,
#clientLogin #ticketno {
  margin-right: 0;
}
#clientLogin input[type=text],
#clientLogin input[type=password] {
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 15px;
}
#clientLogin input[type=submit] {
    background: #404040;
    color: #fff!important;
    border: none;
    border-radius: 4px;
    padding: 8px 28px;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: none;
    width: auto;
}
#clientLogin input[type=submit]:hover{
    background: #808080;
    transition: .3s ease;
}

.btn-custom {
    background-color: #FF4654;
    color: #fff;
  }

  .btn-custom:hover {
    background-color: #e03c48;
  }
#reply {
  margin-top: 5px;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #ccc;
}
#reply h2 {
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px dotted rgba(0,0,0,0.1);
}
#reply > table {
  width: auto;
}
#reply table td {
  vertical-align: top;
}
#reply textarea {
  width: 628px !important;
}
#reply input[type=text],
#reply #response_options textarea {
  border: 1px solid #aaa;
  background: #fff;
}
/* Ticket icons */
.Icon {
  width: auto;
  padding-left: 20px;
  background-position: top left;
  background-repeat: no-repeat;
  color: #006699;
  text-decoration: none;
}
.Icon.Ticket {
  background-image: url('../images/icons/ticket.gif');
}
.Icon.webTicket {
  background-image: url('../images/icons/ticket_source_web.gif');
}
.Icon.emailTicket {
  background-image: url('../images/icons/ticket_source_email.gif');
}
.Icon.phoneTicket {
  background-image: url('../images/icons/ticket_source_phone.gif');
}
.Icon.otherTicket, .Icon.apiTicket  {
  background-image: url('../images/icons/ticket_source_other.gif');
}

.Icon.attachment {
  background-image: url('../images/icons/attachment.gif');
}
.Icon.file {
  background-image: url('../images/icons/attachment.gif');
}
.Icon.refresh {
  background-image: url('../images/icons/refresh.gif');
}
.Icon.thread {
  font-weight: bold;
  font-size: 1em;
  background-image: url('../images/icons/thread.gif?1319556657');
}
#ticketTable {
  border: 1px solid #aaa;
  border-left: none;
  border-bottom: none;
}
#ticketTable caption {
  padding: 5px;
  text-align: left;
  color: #000;
  border-bottom: none;
  font-weight: bold;
}
#ticketTable th {
  height: 24px;
  line-height: 24px;
  background: #e1f2ff;
  border: none!important;
  border-right: none;
  border-top: none;
  font-size: 14px;
  padding: 8px 8px 8px;
}
#ticketTable th a {
  color: #000;
}
#ticketTable td {
  padding: 8px 8px 8px ;
  border: .1px solid #aaa;
  border-right: none;
  border-top: none;
}
#ticketTable tr.alt td {
  background: #f9f9f9;
}
i.refresh {
  color: #0a0;
  font-size: 80%;
  vertical-align: middle;
}
.states small {
    font-size: 70%;
}
.active.state {
    font-weight: bold;
}
.search.well {
    padding: 3rem;
    max-width: 100%;
    margin: 0 21% 0 21%;
}
.search.well input{
  max-width: 500px;
}
.infoTable {
  background: #F4FAFF;
}
.infoTable th {
  text-align: left;
  padding: 3px 8px;
}
.action-button {
  background-clip: padding-box;
  color: #fff !important;
  display: inline-block;
  cursor: pointer;
  font-size: 11px;
  overflow: hidden;
  background-color: #404040;
  padding: 0 5px;
  text-decoration: none;
  line-height:18px;
  margin-left:5px;
}
.action-button span,
.action-button a {
  color: #777 !important;
  display: inline-block;
  float: left;
}
.action-button a {
  color: #777;
  text-decoration: none;
}
table.padded tr > td,
table.padded tr > th {
  height: 20px;
  padding-bottom: 5px;
}

.external-auth + .external-auth {
    margin-top: 4px;
}

a.external-sign-in {
    text-decoration: none;
}
.external-auth-box {
    vertical-align: middle;
    border-radius: 4px;
    border: 1px solid #777;
}
.external-auth-icon {
    display: inline-block;
    color: #333;
    width: 30px;
    padding: 5px 10px;
    border-right: 1px solid #ddd;
}
.external-auth-name {
    color: #333;
    width: 100px;
    padding: 5px 10px;
    line-height:30px;
    font-size: 11pt;
}
img.sign-in-image {
    border: none;
    max-height: 40px;
    max-width: 200px;
    width: auto;
    height: auto;
}
.login-box {
    width:40%;
    display:table-cell;
    box-shadow: 12px 0 15px -15px rgba(0,0,0,0.4);
    padding:15px;
}
.rtl .login-box {
    box-shadow: -12px 0 15px -15px rgba(0,0,0,0.4);
}
.flush-right {
    text-align: right;
}
.flush-left {
    text-align: left;
}
.sidebar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    height: 30vw;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 24px; /* space between sidebar items */
}
.rtl .sidebar {
    margin-left: 0;
    margin-right: 20px;
}
.sidebar .content {
    padding: 10px; border: 1px solid #C8DDFA; background: #F7FBFE;
}
.sidebar .content:empty {
    display: none;
}

.sidebar section .header {
    font-weight: bold;
    margin-bottom: 0.3em;
}
.sidebar section + section {
    margin-top: 15px;
}
.search-form {
    padding-top: 12px;
}
.searchbar .search,
.search-form .search {
    display: inline-block;
    width: 400px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px 10px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.searchbar .search {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.bleed {
    margin: 0 !important;
    padding: 0 !important;
}
.row {
}
.span4 {
    display: inline-block;
    width: 29.5%;
    margin: 0 1%;
    vertical-align: top;
}
.span8 {
    display: inline-block;
    width: 66.0%;
    margin: 0 1%;
    vertical-align: top;
}
.truncate {
    display: inline-block;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
.image-hover a.action-button:hover,
.image-hover a.action-button {
    color: initial !important;
    text-decoration: none;
}
table.custom-data {
    margin-top: 10px;
}
table.custom-data th {
    width: 25%;
}
table.custom-data th {
    background-color: #F4FAFF;
    padding: 3px 8px;
}
table .headline,
table.custom-data .headline {
    border-bottom: 2px solid #ddd;
    border-bottom: 2px solid rgba(0,0,0,0.15);
    font-weight: bold;
    background-color: white;
}
#ticketInfo h1 {
    padding-bottom: 10px;
    margin-bottom: 5px;
    border-bottom: 2px dotted rgba(0, 0, 0, 0.15);
}
#ticketInfo h1 small {
    font-weight: normal;
}
.thread-entry {
    margin-bottom: 15px;
}
.thread-entry.avatar {
    margin-left: 60px;
}
.thread-entry.response.avatar {
    margin-right: 60px;
    margin-left: 0;
}
.thread-entry > .avatar {
    margin-left: -60px;
    display:inline-block;
    width:48px;
    height:auto;
    border-radius: 5px;
}
.thread-entry.response > .avatar {
    margin-left: initial;
    margin-right: -60px;
}
img.avatar {
    border-radius: inherit;
}
.avatar > img.avatar {
    width: 100%;
    height: auto;
}
.thread-entry .header {
    padding: 8px 0.9em;
    border: 1px solid #ccc;
    border-color: rgba(0,0,0,0.2);
    border-radius: 5px 5px 0 0;
}
.thread-entry.avatar .header:before {
  position: absolute;
  top: 7px;
  right: -8px;
  content: '';
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #b0b0b0;
  display: inline-block;
}
.thread-entry.avatar .header:after {
  position: absolute;
  top: 7px;
  right: -8px;
  content: '';
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  display: inline-block;
  margin-top: 1px;
}

.thread-entry.avatar .header {
    position: relative;
}

.thread-entry.response .header {
    background:#dddddd;
}
.thread-entry.avatar.response .header:after {
    border-left: 7px solid #dddddd;
    margin-right: 1px;
}

.thread-entry.message .header {
    background:#C3D9FF;
}
.thread-entry.avatar.message .header:before {
    top: 7px;
    left: -8px;
    right: initial;
    border-left: none;
    border-right: 8px solid #CCC;
}
.thread-entry.avatar.message .header:before {
    border-right-color: #9cadcc;
}
.thread-entry.avatar.message .header:after {
    top: 7px;
    left: -8px;
    right: initial;
    border-left: none;
    border-right: 7px solid #c3d9ff;
    margin-left: 1px;
}

.thread-entry .header .title {
    max-width: 500px;
    vertical-align: bottom;
    display: inline-block;
    margin-left: 15px;
}

.thread-entry .thread-body {
    border: 1px solid #ddd;
    border-top: none;
    border-bottom:2px solid #aaa;
    border-radius: 0 0 5px 5px;
}
.thread-body .attachments {
  background-color: #f4faff;
  margin: 0 -0.9em;
  position: relative;
  top: 0.9em;
  padding: 0.3em 0.9em;
  border-top: 1px dotted #ccc;
  border-top-color: rgba(0,0,0,0.2);
  border-radius: 0 0 6px 6px;
}
.thread-body .attachments .filesize {
  margin-left: 0.5em;
}
.thread-body .attachments a,
.thread-body .attachments a:hover {
  text-decoration: none;
}
.thread-body .attachment-info {
    margin-right: 10px;
    display: inline-block;
    width: 48%;
}
.thread-body .attachment-info .filename {
  max-width: 80%;
  max-width: calc(100% - 70px);
}
.label {
  font-size: 11px;
  padding: 1px 4px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  font-weight: bold;
  line-height: 14px;
  color: #ffffff;
  vertical-align: baseline;
  white-space: nowrap;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #999999;
}
.label-bare {
  background-color: transparent;
  background-color: rgba(0,0,0,0);
  border: 1px solid #999999;
  color: #999999;
  text-shadow: none;
}
.thread-event {
    padding: 0px 2px 15px;
    margin-left: 60px;
}
.type-icon {
    border-radius: 8px;
    background-color: #f4f4f4;
    padding: 4px 6px;
    margin-right: 5px;
    text-align: center;
    display: inline-block;
    font-size: 1.1em;
    border: 1px solid #eee;
    vertical-align: top;
}
.type-icon.dark {
    border-color: #666;
    background-color: #949494;
}
.thread-event img.avatar {
    vertical-align: middle;
    border-radius: 3px;
    width: auto;
    max-height: 24px;
    margin: -3px 3px 0;
}
.thread-event .description {
    margin-left: -30px;
    padding-top: 6px;
    padding-left: 30px;
    display: inline-block;
    width: 642px;
    width: calc(100% - 95px);
    line-height: 1.4em;
}
.thread-event .type-icon {
  position:relative;
}
.thread-event .type-icon::after {
  content: "";
  border: 16px solid white;
  position: absolute;
  top: -3px;
  bottom: 0;
  left: -3px;
  right: 0;
  z-index: -1;
}
.thread-entry::after {
  content: "";
  border-bottom: 2px solid white;
  display: block;
}
.thread-entry::before {
  content: "";
  display: block;
  border-top: 2px solid white;
}
#ticketThread::before {
  border-left: 2px dotted #ddd;
  border-bottom-color: rgba(0,0,0,0.1);
  position: absolute;
  margin-left: 74px;
  z-index: -1;
  content: "";
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
}
#ticketThread {
  z-index: 0;
  position: relative;
  border-bottom: 2px solid #ddd;
  border-bottom-color: rgba(0,0,0,0.1);
}
.ticket-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: left;
    min-height: 80vh;
    padding: 0 2vw;
}
.left-panel .ticket-header {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 0.5em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.left-panel .ticket-header span {
    color: #FF4654;
    text-shadow: 0 10px 8px rgba(0,0,0,0.10);
}
.left-panel .ticket-desc {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    z-index: 2;
}
.ticket-form-panel {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 32px 32px 24px 32px;
    max-width: 420px;
    width: 100%;
    height: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.ticket-form-panel .form-header {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
.ticket-form-panel select,
.ticket-form-panel input,
.ticket-form-panel textarea {
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 8px 12px;
    margin-bottom: 12px;
    width: 95%;
    font-size: 1rem;
}
.ticket-form-panel .buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}
#ticket-btn[type="submit"] {
    background: #FF4654;
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 10px 32px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
#ticket-btn[type="submit"]:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}
#ticket-btn[type="reset"] {
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 22px;
    padding: 10px 32px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
#ticket-btn[type="reset"]:hover {
    background: #333;
    color: #fff;
}
#ticket-btn[type="button"] {
    background: #FF4654;
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 10px 32px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
#ticket-btn[type="button"]:hover {
    background: #333;
    color: #fff;
}

@media (max-width: 1024px) {
    .ticket-container {
        flex-direction: column;
        min-height: unset;
        padding: 0 12px;
    }
    .ticket-form-panel {
        max-width: 95vw;
        padding: 20px 10px;
        margin: 0;
    }
    .left-panel .ticket-header {
        font-size: 2.2rem;
    }
    .form-header {
        font-size: 16px;
    }
}
@media (max-width: 900px) {
    .ticket-container {
        flex-direction: column;
        min-height: unset;
        padding: 0 8px;
    }
    .left-panel, .right-panel {
        min-height: unset;
        padding: 24px 0;
    }
    .ticket-form-panel {
        max-width: 100%;
        padding: 18px 8px;
        margin: 0;
    }
    .left-panel .ticket-header {
        font-size: 2rem;
    }
    /* Responsive header styles */
    #header {
        height: 56px;
        padding: 0 8px;
    }
    #header #logo img {
        max-height: 40px;
        max-width: 180px;
    }
    #header p {
        max-width: 90vw;
        font-size: 14px;
        padding: 4px 0;
    }
}
@media (max-width: 600px) {
    .ticket-form-panel {
        padding: 10px 2px;
        border-radius: 0;
        box-shadow: none;
    }
    .ticket-header {
        font-size: 18px;
    }
    .form-header {
        font-size: 15px;
    }
    #header {
        height: 44px;
        padding: 0 4px;
    }
    #header #logo img {
        max-height: 28px;
        max-width: 120px;
    }
    #header p {
        font-size: 12px;
        padding: 2px 0;
        max-width: 98vw;
    }
}
@media (max-width: 425px) {
    .ticket-container {
        flex-direction: column;
        min-height: unset;
        padding: 0 4px;
    }
    .left-panel, .right-panel {
        min-height: unset;
        padding: 16px 0;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        align-items: center;
    }
    .left-panel .ticket-header {
        font-size: 1.4rem;
        text-align: center;
        word-break: break-word;
    }
    .left-panel .ticket-desc {
        font-size: 1rem;
        text-align: center;
        word-break: break-word;
    }
    .ticket-form-panel {
        max-width: 100%;
        padding: 12px 4px;
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    }
    .ticket-form-panel .form-header {
        font-size: 1rem;
    }
    .ticket-form-panel input,
    .ticket-form-panel select,
    .ticket-form-panel textarea {
        font-size: 1rem;
        padding: 7px 8px;
    }
    .ticket-form-panel .buttons {
        flex-direction: column;
        gap: 8px;
    }
    #ticket-btn[type="submit"],
    #ticket-btn[type="reset"],
    #ticket-btn[type="button"] {
        padding: 10px 0;
        font-size: 1rem;
        width: 100%;
    }
}
@media (max-width: 400px) {
    .ticket-container {
        flex-direction: column;
        min-height: unset;
        padding: 0 2px;
    }
    .left-panel, .right-panel {
        min-height: unset;
        padding: 12px 0;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        align-items: center;
    }
    .left-panel .ticket-header {
        font-size: 1.2rem;
        text-align: center;
        word-break: break-word;
    }
    .left-panel .ticket-desc {
        font-size: 0.95rem;
        text-align: center;
        word-break: break-word;
    }
    .ticket-form-panel {
        max-width: 100%;
        padding: 8px 2px;
        margin: 0;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    }
    .ticket-form-panel .form-header {
        font-size: 0.95rem;
    }
    .ticket-form-panel input,
    .ticket-form-panel select,
    .ticket-form-panel textarea {
        font-size: 0.95rem;
        padding: 6px 8px;
    }
    .ticket-form-panel .buttons {
        flex-direction: column;
        gap: 6px;
    }
    #ticket-btn[type="submit"],
    #ticket-btn[type="reset"],
    #ticket-btn[type="button"] {
        padding: 8px 0;
        font-size: 0.95rem;
        width: 100%;
    }
}
/* Frosted glass blur effect for ticket container */
.container-fluid.ticket-container {
    background: url('images/bg-ticket-form.png') no-repeat center center;
    background-size: cover;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(16px);
    padding: 32px 0;
    background-color: rgba(255,255,255,0.15) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
/* Index Page */
@media (max-width: 1024px) {
    #landing_page .row {
      flex-direction: column;
      margin: 0;
      padding: 0;
    }
    #landing_page .col-md-9,
    #landing_page .col-md-6 {
      max-width: 100%;
      flex: 0 0 100%;
      padding: 0 !important;
      margin: 0 !important;
    }
    .card {
      margin-bottom: 16px;
    }
    .featured-category {
      margin-bottom: 16px;
    }
  }
  @media (max-width: 600px) {
    .card-body.thread-body {
      padding: 10px 2px;
    }
    h1.h3, h1.h4 {
      font-size: 1.2rem;
    }
    .input-group .form-control {
      font-size: 0.9rem;
    }
    .btn {
      font-size: 0.9rem;
      padding: 6px 12px;
    }
    .featured-category .card-header {
      font-size: 1rem;
    }
    .featured-category .article-title {
      font-size: 0.95rem;
    }
  }
/* animation */
.accesslink-animated {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.accesslink-animated.visible {
  opacity: 1;
  transform: translateY(0);
}

  .login-animated, .login-title-animated {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.login-animated.visible, .login-title-animated.visible {
  opacity: 1;
  transform: translateY(0);
}
.login-message-animated {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.login-message-animated.visible {
  opacity: 1;
  transform: translateY(0);
}
.landing-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    gap: 40px;
    /* Fade-in animation for the whole landing page */
    animation: fadeInUp 1s ease;
  }
  .landing-left {
    flex: 1;
    max-width: 540px;
    /* Slide-in left for text */
    animation: slideInLeft 1.1s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .landing-title {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 18px;
  }
  .landing-title .highlight {
    color: #f76c6c;
    font-weight: 500;
  }
  .landing-desc {
    font-size: 1.08rem;
    margin-bottom: 32px;
    color: #222;
  }
  .landing-buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 12px;
  }
  .landing-btn {
    background: #f76c6c;
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 10px 32px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    outline: none;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: btnPopIn 0.7s 0.7s forwards;
  }
  .landing-btn:hover {
    background: #e05555;
    color: #fff;
    text-decoration: none;
  }
  .landing-img {
    flex: 1;
    min-width: 320px;
    max-width: 440px;
    text-align: center;
    /* Slide-in right for image */
    animation: slideInRight 1.1s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .landing-img img {
    max-width: 100%;
    height: auto;
  }
  .landing-img img:hover {
transform: scale(1.05);
    transition: transform 0.3s ease;
    transform: translateY(-10px);
  }
  @media (max-width: 900px) {
    .landing-flex {
      flex-direction: column;
      gap: 32px;
      min-height: unset;
      padding: 32px 0;
    }
    .landing-img {
      max-width: 320px;
    }
  }

  /* Keyframes */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: none;}
  }
  @keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px);}
    to { opacity: 1; transform: none;}
  }
  @keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px);}
    to { opacity: 1; transform: none;}
  }
  @keyframes btnPopIn {
    to { opacity: 1; transform: none;}
  }
  /* Animation keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: none;}
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px);}
    to { opacity: 1; transform: none;}
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px);}
    to { opacity: 1; transform: none;}
}
@keyframes btnPopIn {
    to { opacity: 1; transform: none;}
}

/* Apply animations */
.container-fluid.ticket-container {
    background: url('images/bg-ticket-form.png') no-repeat center center;
    background-size: cover;
    position: relative;
    z-index: 1;
    /* animation removed from background container */
}
.left-panel {
    animation: slideInLeft 1s cubic-bezier(0.23, 1, 0.32, 1);
}
.right-panel {
    animation: slideInRight 1s cubic-bezier(0.23, 1, 0.32, 1);
}
.ticket-form-panel .buttons input {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: btnPopIn 0.7s 0.7s forwards;
}
.ticket-form-panel .buttons input:nth-child(2) {
    animation-delay: 0.9s;
}
.ticket-form-panel .buttons input:nth-child(3) {
    animation-delay: 1.1s;
}