/**
 * @file
 * Subtheme specific CSS.
 */

 .content {
    /*margin-bottom: 24px;*/
 }

 /*--------------------------------------------------------------
  # hero image customize
 --------------------------------------------------------------*/

.region-top-header {
    display: grid; /* Makes the container a grid container */
    grid-template-columns: 1fr 1fr; /* Creates two columns of equal width */
    width: 100%;
    overflow: hidden;
}

.header .block-search-form-block .container-inline {
  display: inline-block;
  float: right;
  margin-right: 10px;
}

.header .easy-carousel--bootstrap .carousel-inner {
 height: 500px;
}

.header .easy-carousel--bootstrap .carousel-inner .carousel-item .carousel-caption {
    /* position: absolute; */
    display: block !important;
    padding-top: 50px;
}

.header h2 {
    font-family: "Raleway", sans-serif;
    color: white;
}

/*--------------------------------------------------------------
# field layout
--------------------------------------------------------------*/
.flex-container {
  display: flex;
  flex-direction: column; 
  justify-content: space-around; 
  align-items: left; 
  height: auto; 
  background-color: #f0f0f0;
  margin: 8px 0;
}

.flex-item {
  padding-left: 16px;
  margin: 4px 0;
}

.table-container {
    display: table;
    width: 100%;
    border-collapse: collapse; 
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
}

.table-row {
    display: table-row;
}

.table-cell {
    display: table-cell;
    border: 1px solid rgb(79, 77, 77);   
    padding: 4px 8px;       
    /*text-align: center;*/
}

.table-divider {
    margin: 8px 4px;
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important;
}



/*--------------------------------------------------------------
  # entity comparation
 --------------------------------------------------------------*/
.block-fia {
display: flex;
flex-direction: column;
column-gap: 8px;
justify-content: center;
min-height: 150px;
}

/*--------------------------------------------------------------
  # entity comparation
 --------------------------------------------------------------*/
.views-view-responsive-grid__item {
  border: 2px solid #00B1D7;
  border-radius: 8px;
  padding: 15px;
  margin: 15px;
}

#comparison-table thead, .views-view-table thead {
  background: #01b1d7;
  color: #fff;
}


.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
      background-color: #ebeaea;
}

/*--------------------------------------------------------------
  # Chat Button Styles
 --------------------------------------------------------------*/

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chat-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    min-width: 120px;
}

.chat-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/*--------------------------------------------------------------
  # Chatbox Styles
 --------------------------------------------------------------*/

 #chat-widget-container {
    margin: 20px 20px;
 }

.chat-widget-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 12px;
}

.message {
    margin-bottom: 16px;
}

.user-message {
    text-align: right;
}

.message-content {
    display: inline-block;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.chat-input-container {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #667eea;
}

.chat-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.chat-hint {
    color: #0071b3;
    margin-left: 36px;
}
.chat-hint-div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    width: 100%;
    margin-bottom: 48px;
}

/*--------------------------------------------------------------
  # Markdown Styling in Chat Messages
 --------------------------------------------------------------*/

.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
    font-weight: 600;
    margin: 0.8em 0 0.4em 0;
    line-height: 1.3;
}

.message-content h1 { font-size: 1.4em; }
.message-content h2 { font-size: 1.3em; }
.message-content h3 { font-size: 1.2em; }
.message-content h4 { font-size: 1.1em; }
.message-content h5 { font-size: 1.05em; }
.message-content h6 { font-size: 1em; }

.message-content ul,
.message-content ol {
    margin: 0.5em 0;
    padding-left: 1.2em;
}

.message-content li {
    margin: 0.2em 0;
    line-height: 1.4;
}

.message-content code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.bot-message .message-content code {
    background: rgba(0, 0, 0, 0.08);
}

.user-message .message-content code {
    background: rgba(255, 255, 255, 0.2);
}

.message-content pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.8em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0.5em 0;
}

.bot-message .message-content pre {
    background: rgba(0, 0, 0, 0.08);
}

.user-message .message-content pre {
    background: rgba(255, 255, 255, 0.15);
}

.message-content pre code {
    background: none;
    padding: 0;
    font-size: 0.85em;
}

.message-content blockquote {
    border-left: 3px solid #667eea;
    padding-left: 1em;
    margin: 0.5em 0;
    font-style: italic;
    color: rgba(0, 0, 0, 0.7);
}

.user-message .message-content blockquote {
    border-left-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.8);
}

.message-content a {
    color: #667eea;
    text-decoration: underline;
}

.user-message .message-content a {
    color: rgba(255, 255, 255, 0.9);
}

.message-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5em 0;
    font-size: 0.9em;
}

.message-content th,
.message-content td {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.3em 0.5em;
    text-align: left;
}

.message-content th {
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.user-message .message-content th,
.user-message .message-content td {
    border-color: rgba(255, 255, 255, 0.3);
}

.user-message .message-content th {
    background: rgba(255, 255, 255, 0.1);
}

.message-content strong {
    font-weight: 600;
}

.message-content em {
    font-style: italic;
}

.message-content p {
    margin: 0.4em 0;
    line-height: 1.4;
}

.message-content p:first-child {
    margin-top: 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for chatbox */
@media (max-width: 768px) {
    .chat-widget-container {
        width: 320px;
        height: 450px;
        bottom: 75px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .chat-widget-container {
        width: calc(100vw - 30px);
        right: 15px;
        left: 15px;
        height: 400px;
    }
}

/*--------------------------------------------------------------
  # Easy carousel customize
 --------------------------------------------------------------*/

.carousel-item img {
  width: 100%!important;
  height: auto; 
  object-fit: cover; 
  object-position: center; 
}

/* Adjust the height for mobile screens so it's not too tall */
@media (max-width: 768px) {
  .carousel-item img {
    height: 300px; 
  }
}
