﻿/* Standard template content */
.xl-text {
  font-size: 75px;
}

.btn-outline-secondary {
  color: var(--bs-secondary);
}

.btn-outline-secondary:hover {
  color: #fff;
}

.header .decoration-star {
  top: 80px;
  left: -200px;
  width: 500px;
  opacity: 0.7;
}

.header .decoration-star-2 {
  top: 80px;
  right: -200px;
  width: 500px;
  opacity: 0.7;
}

.navbar {
  transition: all 0.5s ease-in-out;
}

.navbar-sticky {
  background: #fff;
  opacity: 0.96;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.details .decoration-star {
  left: -200px;
  width: 500px;
}

.details-2 .decoration-star {
  right: -200px;
  width: 500px;
}

.contact .decoration-star {
  left: -300px;
  width: 600px;
}

.to-top-btn {
  position: fixed;
  z-index: 20;
  bottom: 95px;
  right: 20px;
  opacity: 0;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  outline: none;
  background-color: #44434a;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.to-top-btn:hover {
  background-color: #1d1d21;
}

.to-top-btn img {
  margin-bottom: 0.25rem;
  width: 18px;
}

.show {
  opacity: 1;
}

@media (max-width: 992px) {
  .xl-text {
    font-size: 50px;
  }
  .navbar .btn-outline-secondary {
    margin-top: 20px;
  }
  .header {
    margin-top: 0px !important;
    text-align: center;
  }
  .header .decoration-star {
    left: -100px;
    width: 250px;
  }
  .header .decoration-star-2 {
    right: -100px;
    width: 250px;
  }
  .header .image-container {
    margin-top: 30px;
  }
  .services .col-md-4 {
    border-bottom: 1px #ccc solid;
    margin: 10px 0;
  }
  .details-2 {
    margin-top: 20px !important;
  }
  .details-2 .decoration-star {
    top: 300px;
  }
}
/* Specifics for main hero header */
.header {
  position: relative;
  padding-top: 4rem;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../../img/bg/hero-section-banner.webp") center center no-repeat;
  background-size: cover;
  opacity: 0.65;
  z-index: -1;
}

.header > * {
  position: relative;
  z-index: 1;
}

.header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* Specifics for why shoose use section */
.why-choose-us .row {
  min-height: 600px;
}

.why-choose-us .image-column {
  display: flex;
  align-items: flex-end;
}

.why-choose-us .image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.why-choose-us .image-wrapper img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 991px) {
  .why-choose-us .row {
    min-height: auto;
  }
  .why-choose-us .image-column {
    min-height: 400px;
  }
  .why-choose-us .image-wrapper img {
    position: static;
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/*Specifics for feedback section*/
@media (max-width: 767px) {
  .feedback-row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .feedback-item {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .feedback-item img {
    display: block;
    margin: 0 auto;
  }
}
/* For making images less than 100% of container */
.img-smaller {
  max-width: 80%;
  margin: 0 auto;
  display: block;
}

/* Specifics for a small, partially transparent logo */
.logo-small-partially-transparent {
  width: 200px;
  opacity: 0.4;
}

/* Specifics for book a 15-min chat msbookings iframe */
#modal2-15minchat .modal-dialog {
  max-height: calc(100vh - 2rem);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#modal2-15minchat .modal-content {
  max-height: calc(100vh - 4rem);
  min-height: 80vh;
}

#modal2-15minchat iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* Specifics for the cookie banner and cookies page */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(245, 245, 245, 0.95);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#cookieBanner p {
  margin: 0 10px 0 0;
}

.cookie-text {
  flex: 1;
  margin-right: 1rem;
}

.cookie-buttons {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  #cookieBanner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .cookie-text {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  .cookie-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }
  .cookie-buttons a {
    flex: 1;
    text-align: center;
  }
}
.hidden {
  display: none;
}

/* Specifics for custom responsive table */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.responsive-table th, .responsive-table td {
  padding: 0;
  border: none;
  box-sizing: border-box;
  background-color: #f5f5f5;
}

.responsive-table td > span {
  display: block;
  padding: 10px;
}

.responsive-table th {
  background-color: #e0e0e0;
  text-align: left;
  padding: 10px;
}

.responsive-table thead {
  display: table-header-group;
}

@media (max-width: 600px) {
  .responsive-table thead {
    display: none;
  }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td {
    display: block;
    width: 100%;
    background-color: #f5f5f5;
  }
  .responsive-table tr {
    background-color: white;
    margin-bottom: 0;
  }
  .responsive-table tr:not(:last-child)::after {
    content: "";
    display: block;
    height: 20px;
    background-color: white;
  }
  .responsive-table td:before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    background-color: #e0e0e0;
    padding: 10px;
  }
}
/* Specifics for solutions cards */
.solution-image {
  max-height: 250px;
  width: auto;
  object-fit: contain;
}

.image-wrapper {
  height: 300px;
}

/* Font colour override for blog entries */
.text-dark-custom, .text-dark-custom * {
  color: #212529 !important;
}

/* To ensure correct alignment of logos in partner footer */
.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Header and footer controls */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
  opacity: 1;
}

.navbar-sticky {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0.96;
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
  background-color: #343a40;
}

/* Remove extra margin at the top of the main content */
.main-content {
  margin-top: 0;
}

/* Specifics for the console terminal component */
.terminal-container {
  background-color: #000;
  color: #0f0;
  padding: 0px;
  margin: 0px;
  height: 400px;
  overflow-y: auto;
  font-family: monospace;
}

.terminal-content {
  white-space: pre-wrap;
}

.robot-image {
  height: 120px;
  width: auto;
}

/* Specifics for the upload button component */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

.d-none {
  display: none;
}

/* Root landing page styles */
.root-landing-container {
  position: relative;
  overflow: visible;
  background-color: transparent;
  width: 100%;
}

.root-landing-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1200px;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
  filter: sepia(100%) saturate(200%) hue-rotate(320deg) brightness(0.7) contrast(1.2);
}

.root-landing-content {
  position: relative;
  z-index: 1;
}

.root-landing-card {
  background-color: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.subdomain-input-group {
  max-width: 500px;
  margin: 0 auto;
}

.subdomain-suffix {
  background-color: #e9ecef;
  color: #6c757d;
  font-weight: 500;
}
