/* ==========================================================================
   Font Definitions
   ========================================================================== */
   @font-face {
    font-family: 'Sen';
    src: url('../fonts/Sen/Sen-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900; /* This specifies the range of weights available */
    font-style: normal;
}

/* ==========================================================================
   Global Styles
   ========================================================================== */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Sen', sans-serif;
  background-color: #151616;
  color: #D6D5C9;
}

p {
  color: #D6D5C9;
}

label {
  color: #D6D5C9;
}

html, body { overflow-x: hidden; }

img, video { max-width: 100%; height: auto; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
  font-weight: 900; /* Extra Bold */
  font-size: 2.5em; /* Large size for main headings */
  line-height: 1.2;
}

h2 {
  font-weight: 700; /* Bold */
  font-size: 2em; /* Slightly smaller than h1 */
  line-height: 1.3;
}

h3 {
  font-weight: 600; /* Semi-Bold */
  font-size: 1.75em; /* Smaller than h2 */
  line-height: 1.4;
}

h4 {
  font-weight: 500; /* Medium */
  font-size: 1.5em; /* Smaller than h3 */
  line-height: 1.5;
}

h5 {
  font-weight: 400; /* Regular */
  font-size: 1.25em; /* Smaller than h4 */
  line-height: 1.6;
}

h6 {
  font-weight: 300; /* Light */
  font-size: 1em; /* Smallest heading */
  line-height: 1.6;
}

p {
  font-weight: 400; /* Regular */
  font-size: 1em; /* Standard size for body text */
  line-height: 1.6;
}

small, .small-text {
  font-weight: 300; /* Light */
  font-size: 0.875em; /* Smaller text for captions or less important info */
  line-height: 1.4;
}

strong {
  font-weight: 700; /* Bold */
}

em {
  font-weight: 400; /* Regular */
  font-style: italic;
}

blockquote {
  font-weight: 400; /* Regular */
  font-size: 1.25em; /* Slightly larger for emphasis */
  line-height: 1.6;
  font-style: italic;
  margin: 1em 0;
  padding-left: 1em;
  border-left: 4px solid currentColor;
}

label {
  font-weight: 600; /* Semi-Bold */
  font-size: 1em;
}

button, input, select, textarea {
  font-weight: 500; /* Medium */
  font-size: 1em;
  line-height: 1.5;
}

a {
  font-weight: 500; /* Medium */
  font-size: 1em;
  line-height: 1.5;
  text-decoration: none;
}

ul, ol {
  font-weight: 400; /* Regular */
  font-size: 1em;
  line-height: 1.6;
}

code, pre {
  font-weight: 400; /* Regular */
  font-family: 'Courier New', Courier, monospace; /* Monospace for code */
}

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"],
input[type="password"],
textarea {
    font-weight: 400; /* Regular */
    font-size: 1em;
    line-height: 1.5;
}


/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer {
  background-color: #1a1b1b;
  color: #D6D5C9;
  width: 100%;
  height: auto;
  padding: 10px 0;
  font-size: 12px;
  text-align: center;
}

.footer .container {
  max-width: 100%;
}

@media (max-width: 767px) {
  .footer .btn {
      display: block;
      margin: 5px auto;
  }
}

/* ==========================================================================
   Main Content Styles
   ========================================================================== */
.main-content {
  flex: 1;
}

/* ==========================================================================
   Navbar Styles
   ========================================================================== */
.navbar {
    background-color: #1a1b1b;
    color: #D6D5C9;
    position: relative;
}

.navbar-brand {
  color: #5BA5B2;
}

.navbar-brand:hover {
    color: #237B8A; 
}
.navbar-brand:focus,
.navbar-brand:active {
    color: #5BA5B2; 
}

.nav-link {
    color: #D6D5C9;
}
.nav-link:hover {
    color: #237B8A; 
}
.nav-link:focus,
.nav-link:active {
    color: #5BA5B2; 
}

.navbar-nav .nav-link {
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #D6D5C9;
}
.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #5BA5B2;
  z-index: -1;
  transition: top 0.4s ease;
}
.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-item.active .nav-link::before {
  top: 0;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: #1a1b1b;
}

@media (min-width: 992px){
  .navbar{ display:flex; align-items:center; }
  .navbar-brand{
    margin-left: 12px;
    position:static; transform:none;
    margin-right:1rem;
    padding:0 !important;
  }
  .navbar-toggler{ margin-left:auto; margin-right:0; position:static; }
}

@media (max-width: 991.98px){
  .navbar{
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    row-gap: 6px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .navbar-brand{
    display:block;
    width:100%;
    text-align:center;
    margin:0 !important;
    padding:0 !important;
    position:static;
    transform:none;
  }

  .navbar-toggler{
    justify-self: center;
    align-self: center;
    margin: 0 auto;
    position: static;
    z-index: 2;
  }

  .navbar .navbar-collapse{
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
/* ==========================================================================
   Button Styles
   ========================================================================== */
.offset {
    -webkit-box-shadow: 0.25em 0.25em 0 0 var(--color), inset 0.2em 0.2em 0 0 var(--color);
            box-shadow: 0.25em 0.25em 0 0 var(--color), inset 0.2em 0.2em 0 0 var(--color);
            color: #fff;
}
.offset:hover, .offset:focus {
    -webkit-box-shadow: 0 0 0 0 var(--hover), inset 6em 3.5em 0 0 var(--hover);
            box-shadow: 0 0 0 0 var(--hover), inset 6em 3.5em 0 0 var(--hover);
}
.offset {
    --color: #5f2f40;
    --hover: rgb(71, 27, 42);
}

.offset-danger {
    -webkit-box-shadow: 0.25em 0.25em 0 0 var(--color), inset 0.2em 0.2em 0 0 var(--color);
            box-shadow: 0.25em 0.25em 0 0 var(--color), inset 0.2em 0.2em 0 0 var(--color);
            color: #fff;
}
.offset-danger:hover, .offset-danger:focus {
    -webkit-box-shadow: 0 0 0 0 var(--hover), inset 6em 3.5em 0 0 var(--hover);
            box-shadow: 0 0 0 0 var(--hover), inset 6em 3.5em 0 0 var(--hover);
}
.offset-danger {
    --color: #5f2f2f;
    --hover: rgb(71, 27, 27);
}

.btn-center {
    justify-content: center;
    align-items: center;
    display: inline-flex;
}

/* ==========================================================================
   Image Styles
   ========================================================================== */
.fixed-height-img {
  height: 300px;
  object-fit: cover;
}

.img-border {
  border: solid 1px;
  border-color: #237B8A;
}

/* ==========================================================================
   Text Highlight and Borders
   ========================================================================== */
.txt-hl-100 {
  background-color: #237B8A;
  width: 100%;
}

.border-lefty {
  border-left: 10px solid #237B8A;
  padding-left: 1rem;
} 

/* ==========================================================================
   Logo Styles
   ========================================================================== */
   .logo-text {
    font-size: 1.4rem; 
    color: #d6e2e4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none; 
    transition: color 0.3s ease-in-out;
  }
  
  @media (max-width: 1200px){ .logo-text{ font-size: 1.15rem; } }
  @media (max-width: 992px) { .logo-text{ font-size: 1.15rem; } }
  @media (max-width: 768px) { .logo-text{ font-size: 1.15rem; } }
  @media (max-width: 576px) { .logo-text{ font-size: 1.15rem; } }
  @media (max-width: 380px) { .logo-text{ font-size: 0.45rem; } }

.logo-text:hover {
    color: #84898a;
}


/* ==========================================================================
   Jumbotron Styles
   ========================================================================== */
.jumbotron {
  position: relative;
  background-image: url("../img/conc.jpg");
  background-size: cover;
  height: 100vh;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}
.jumbotron::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
}
.jumbotron h1,
.jumbotron p {
  z-index: 1;
  display: block;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Gallery Styles
   ========================================================================== */
.gallery-image {
  position: relative;
  overflow: hidden;
  padding-bottom: 100%;
}

.gallery-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Carousel Styles
   ========================================================================== */
.carousel-item .img-fluid {
  height: 550px;
  object-fit: cover;
}

/* ==========================================================================
   Background Video Section
   ========================================================================== */
.background-section {
  position: relative;
  width: 100%;
  /* Viewport-safe height: use dvh with svh fallback via @supports below */
  height: 100dvh;     /* fallback will be added below */
  min-height: 520px;
  overflow: hidden;
}

/* svh override when supported (accounts for mobile UI chrome) */
@supports (height: 100svh) {
  .background-section { height: 100svh; }
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Text Container Styles
   ========================================================================== */
.text-container {
  color: #fff;
  width: 100%;
}
.text-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.text-container h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.text-container p {
  font-size: 1.7rem;
  line-height: 1.3;
  max-width: 1100px;
  margin: 0;
}

/* ==========================================================================
   Content Container Styles
   ========================================================================== */
.content-container {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-30%, -50%);
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 20px;
  height: auto;
  justify-content: center;
  flex-direction: column;
}

/* =========================
   Logo Positioning (updated)
   ========================= */
.logo-container {
  position: absolute;
  bottom: 80px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  z-index: 2;
}
.logo,
.logo_sentralt,
.logo_bvn {
  display: block;
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
}

.logo,
.logo_sentralt {
  position: static;
  bottom: auto;
  right: auto;
}

#certified .col-md-4.d-flex { 
  align-items: center;
}

.sentralt2 {
  display: block;
  max-width: 65%;
  width: auto;
  height: auto !important;
  margin-top: 0;
  align-self: center;
}

.partner-logo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.cert-logos img { display:block; height:auto; }

:root{
  --cert-h: clamp(140px, 18vw, 220px);
  --bvn-scale: 0.94;
}

.cert-logos { flex-direction: row; }

@media (min-width: 768px) {
  .cert-logos { flex-direction: column; }
}

@media (max-width: 767.98px){
  :root{ --cert-h: clamp(90px, 24vw, 130px); }
}

.cert-logos img{ display:block; height:auto; max-height:none; }
.cert-logos .sentralt2{ height: var(--cert-h) !important; width:auto; }
.cert-logos .bvn2{ height: calc(var(--cert-h) * var(--bvn-scale)); width:auto; }

@media (max-width: 360px) {
  :root { --cert-h: 90px; }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1500px) {
  .text-container p {
    font-size: 0.95rem;
  }
}

@media (max-width: 1200px) {
  .text-container p {
    font-size: 0.95rem;
  }
}

@media (max-width: 992px) {
  .text-container p {
    font-size: 0.90rem;
  }
  .content-container {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    width: 90%;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.35);
  }
  .text-container p {
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 1100px;
    margin: 0;
    text-align: center;
  }
  .sentralt2 {
    max-width: 75%;
  }
  .logo,
  .logo_sentralt,
  .logo_bvn {
    max-width: 200px;
    max-height: 200px;
  }
}

@media (max-width: 767px) {
  .content-container {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    width: 90%;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.35);
  }
  .text-container p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 1100px;
    margin: 0;
    text-align: center;
  }
  .sentralt2 {
    max-width: 45%;
  }
  .logo,
  .logo_sentralt,
  .logo_bvn {
    max-width: 150px;
    max-height: 150px;
  }
}

@media (max-width: 576px) {
  .content-container {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    width: 90%;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.35);
  }
  .text-container p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 1100px;
    margin: 0;
    text-align: center;
  }
  .sentralt2 {
    max-width: 45%;
  }
  .logo,
  .logo_sentralt,
  .logo_bvn {
    max-width: 150px;
    max-height: 150px;
  }
}

@media (min-width: 993px) {
  .logo,
  .logo_bvn {
    margin-right: 25px;
  }
}

@media (min-width: 993px) and (max-width: 1360px) {
  .logo-container {
    gap: 8px;
  }
  .logo,
  .logo_sentralt,
  .logo_bvn {
    max-width: 160px;
    max-height: 160px;
  }
  .logo,
  .logo_bvn {
    margin-right: 12px;
  }
}

@media (min-width: 993px) and (max-width: 1180px) {
  .logo,
  .logo_sentralt,
  .logo_bvn {
    max-width: 150px;
    max-height: 150px;
  }
}



/* ==========================================================================
   Certification Text Styles
   ========================================================================== */
.text-certified {
  margin-top: 3%; 
  font-size: 1.2rem;
}

/* ==========================================================================
   Review Card Styles
   ========================================================================== */
   .review-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(145deg, #1a1b1b, #1e1f1f); /* Subtle gradient */
    border: 1px solid #5BA5B2;
    border-radius: 4px; /* Slightly rounded corners for a softer look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    padding: 1rem; /* Padding for better content spacing */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
  }
  
  .review-card:hover {
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
  }
  
  .review-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .review-text {
    font-size: 0.9rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.6; /* Improved readability */
  }
  
  @media (max-width: 768px) {
    .review-text {
      font-size: 0.8rem;
    }
  }
  
  @media (max-width: 576px) {
    .review-text {
      font-size: 0.8rem;
    }
  }

/* ==========================================================================
   Gallery Card Styles
   ========================================================================== */
   .gallery-card {
    position: relative;
    padding: 0;
    height: 300px; /* Fixed height for consistency */
    border: 1px solid #5BA5B2; /* Add 1px solid border */
    border-radius: 4px; /* Rounded corners for a softer look */
    overflow: hidden; /* Ensure contents don't spill over the rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
  }
  .gallery-card:hover {
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
  }
  .gallery-card-body {
    background-color: #fff; /* Ensure the body has a background */
    position: relative;
    height: 100%;
  }
  .gallery-background-cover {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 100%;
  }
  .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    transform: translateY(75%);
    background-color: rgba(0, 0, 0, 0.75);
  }
  .gallery-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem; /* Add padding for better spacing */
    text-align: center; /* Center align text */
  }
  .gallery-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem; /* Add margin bottom for spacing */
  }

/* ==========================================================================
 Contact Us Styles
 ========================================================================== */
.main-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(80vh - 60px);
  padding: 20px;
}

.contact-card {
  background-color: #1a1b1b;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
  padding: 20px;
  max-width: 800px;
  width: 100%;
}

.contact-card h2,
.contact-card p,
.contact-card ul,
.contact-card form,
.contact-card h5,
.contact-card label {
  color: #d6d5c9;
}

.btn-outline-primary {
  color: #5BA5B2;
  border-color: #5BA5B2;
}

.btn-outline-primary:hover {
  background-color: #5BA5B2;
  color: #fff;
}

.btn-outline-primary.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.border-lefty {
  border-left: 8px solid #5BA5B2;
  padding-left: 0.5rem;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #5BA5B2;
  color: #5BA5B2;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 2px;
}

.social-button:hover {
  background-color: #5BA5B2;
  color: #1a1b1b;
}

/* ==========================================================================
    Carousel Fix
   ========================================================================== */

#galleryCarousel .carousel-inner .carousel-item {
  transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

#galleryCarousel .carousel-inner .carousel-item-next,
#galleryCarousel .carousel-inner .carousel-item-prev,
#galleryCarousel .carousel-inner .active {
  display: block;
  opacity: 1;
}

.carousel-item-next.carousel-item-left,
.carousel-item-prev.carousel-item-right {
  transform: translateX(0);
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  transform: translateX(0);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5); /* Background color for better visibility */
  border-radius: 10%;
  padding: 10px;
  margin: 10px;
}

/* ==========================================================================
    Pre loader
   ========================================================================== */

.sk-cube-grid {
  width: 40px;
  height: 40px;
  margin: 100px auto;
}

.sk-cube-grid .sk-cube {
  width: 33%;
  height: 33%;
  background-color: #5BA5B2;
  float: left;
  -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
          animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out; 
}
.sk-cube-grid .sk-cube1 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }
.sk-cube-grid .sk-cube2 {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s; }
.sk-cube-grid .sk-cube3 {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s; }
.sk-cube-grid .sk-cube4 {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s; }
.sk-cube-grid .sk-cube5 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }
.sk-cube-grid .sk-cube6 {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s; }
.sk-cube-grid .sk-cube7 {
  -webkit-animation-delay: 0s;
          animation-delay: 0s; }
.sk-cube-grid .sk-cube8 {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s; }
.sk-cube-grid .sk-cube9 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }

@-webkit-keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
            transform: scale3D(1, 1, 1);
  } 35% {
    -webkit-transform: scale3D(0, 0, 1);
            transform: scale3D(0, 0, 1); 
  }
}

@keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
            transform: scale3D(1, 1, 1);
  } 35% {
    -webkit-transform: scale3D(0, 0, 1);
            transform: scale3D(0, 0, 1);
  } 
}

.spinner-wrapper {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #1a1b1b;
z-index: 999999;
}

/* ==========================================================================
   Miscellaneous Styles
   ========================================================================== */
.grecaptcha-badge { 
  visibility: hidden !important;
}
