/* ---- "Read more" for Consulting Services detalis page ------- */
/* Styling for the Read More link added via JS */

:root {
  --default-font:
    "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  --heading-font: "Kanit", sans-serif;
  --nav-font: "Kanit", sans-serif;
}

/* Global Colors  */
:root {
  --dark-gray: #dad9d9;
  /* dark gray */
  --dark-blue: #0e1d2c;
  /* dark blue */
  --light-gray: #ecebeb;
  /* Light gray */
  --blue-color: #106eea;
  /* Light Blue */

  --default-color: #0e1d2c;
  --default-color2: #ffffff;
  --heading-color: #0e1d2c;
  --accent-color: #f4c15a;
  --accent-color2: #d99611;
  --surface-color: #777474;
  --contrast-color: #290505;
}

.light-background {
  --dark-gray: #1c253b;
  --surface-color: #28334b;
}

.dark-background {
  --dark-gray: #00040d;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #0f172a;
  --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# Global
--------------------------------------------------------------*/
/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------  deem any img when hover on  */
img:hover {
  filter: brightness(60%) sepia(20%);
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carousel>div {
  scroll-snap-align: start;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  /* background-color: var(--dark-gray); */
  font-family: var(--default-font);

}

*/ a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--blue-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  /* text-align: center; */
  /* padding-left: 40px; */
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  /* Matches the width of the H2 */
  height: 4px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
}

/* ************************************************************************ */
/* This to hide constant from service-details.html but from card.js  */

#content-repository {
  display: none;
}

/*  read more full page */
#service {
  min-height: 100vh;
  flex-direction: row;
  background-color: var(--light-gray);

}

/* cards page from top to bottom all space */
.article-card {
  display: block;
  background: var(--dark-gray);
  justify-content: center;
  align-items: center;
  margin: auto;
  max-width: 900px;
  border-left: 1px solid var(--light-gray);
  border-right: 1px solid var(--light-gray);
  padding: 0px 15px 80px 15px;
  margin-top: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ----- button to return back to Consulting Services */
.back-to-service {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 930px;
  margin: 0 auto;
  padding-bottom: 5px;
  background-color: var(--dark-gray);
}

/* ------------------------------------------- */
.btn-back-to-services {
  display: inline-flex;
  align-items: center;
  margin: 15px 0px 5px 25px;
  padding: 5px 20px;
  background-color: var(--blue-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-back-to-services:hover {
  background-color: var(--dark-blue);
  color: var(--accent-color);
  font-weight: 300;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(16, 110, 234, 0.3);
}

/* ___________new bar at the page bottom______________________ */

/* --- Navigation Bar Container --- */

.nav-button-bar {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 15px 15px 15px 15px;
  border-top: 1px solid #eee;
  /* ---- */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 900px;
  margin: 0 auto;
  height: 30px;
  background-color: var(--dark-gray);
  border-left: 1px solid var(--light-gray);
  border-right: 1px solid var(--light-gray);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-item-wrapper:nth-child(1) {
  justify-content: flex-start;
}

/* Previous */
.nav-item-wrapper:nth-child(2) {
  justify-content: center;
}

/* Contact */
.nav-item-wrapper:nth-child(3) {
  justify-content: flex-end;
}

/* Next/End */

/* --- Common Button Styles --- */
.btn-nav-outline,
.btn-nav-primary,
.btn-nav-contact {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
}

/* Previous (@ left) button */
.btn-nav-outline {
  border: 1px solid #ddd;
  color: #ffffff !important;
  background: #505050;
}

.btn-nav-outline:hover {
  background: #007bff;
  font-weight: 200;
}

/* Contact (Center button) */
.btn-nav-contact {
  color: var(--accent-color);
  background-color: var(--dark-blue);
}

.btn-nav-contact:hover {
  background-color: var(--dark-gray);
  color: var(--blue-color);
}

/* Next ( @ right button) */
.btn-nav-primary {
  background: #007bff;
  color: #fff !important;
}

.btn-nav-primary:hover {
  background: #505050;
  font-weight: 200;
}

/*  when no more pages to brows */
.end-badge {
  font-size: 1.1rem;
  color: #595959;
  font-style: italic;
}

.article-card .dropcap::first-letter {
  font-size: 18px;
  /* Makes the letter larger, adjust as needed */
  font-weight: bold;
  /* Makes the letter bold */
  color: var(--heading-color);
  /* Optional: adds color */
  /* you need to add class="dropcap" to the paragraph  */
}

.ptop {
  padding-left: 20px;
}

.article-card h4 {
  margin-bottom: 0px;
  margin-top: 0px;
}

/* Makeing bullet point before h4 */
.article-card h4::before {
  display: list-item;
  content: "\2022";
  /* Unicode for a bullet point (•) */
  color: var(--blue-color);
  /* Choose your desired color */
  display: inline-block;
  /* Aligns well with the text */
  width: 1em;
  /* Adjust spacing */
  margin-right: 0px;
  /* Space between the bullet and text */
  /* Further styling for size and position */
  font-size: 24px;
  /* Makes the bullet slightly larger than the text */
  vertical-align: middle;
  /* Vertically aligns the bullet */
}

.article-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
  line-height: 1.2;
  padding-top: 20px;
}

.article-subtitle {
  font-size: 22px;
  font-weight: 600;
  padding-left: 20px;
  margin-bottom: 10px;
}

.article-body ul {
  list-style: none;
  padding: 0px;
  margin-top: 0px;
}

.article-body li {
  padding: 20px;
  background: var(--light-gray);
  border: 1px solid #b7b7b9;
  margin-bottom: 20px;
  border-radius: 10px;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

@media (hover: hover) {
  .article-body li:hover {
    /* Lifts the card up by 8 pixels */
    transform: translateY(-8px);

    /* Makes the shadow larger and softer */
    box-shadow: 0 12px 20px rgba(45, 44, 44, 0.3);

    /* Optional: Lighten the background slightly */
    background-color: #d9d7d7;

    border: 1px solid rgba(128, 126, 126, 0.3);
    /* Subtle scale increase */
    transform: scale(1.02) translateY(-5px);
  }
}

/* ----------------------------------------- */
.article-body li p {
  /* background-color: #0d58ba; */
  padding-left: 20px;
  margin-top: 5px;
  margin-bottom: 0px;
}

.article-body li strong {
  display: block;
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 5px;
  background-color: #007bff;
}

@media (max-width: 768px) {
  .article-card {
    /* padding: 20px 10px; */
    padding: 0px 15px 100px 15px;
    /* width: 80%; */
  }

  .article-title {
    font-size: 1.8rem;
  }

  .btn-back-to-services {
    justify-content: center;
  }
}

/* --- Mobile View (The Fix) --- */
@media (max-width: 576px) {
  .nav-button-bar {
    flex-direction: column !important;
    /* Forces vertical stacking */
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 450px;
    margin: 0 auto;
    height: auto;
  }

  .nav-item-wrapper {
    width: 100%;
    justify-content: center !important;
    /* Centers the button inside the wrapper */
  }

  .btn-nav-outline,
  .btn-nav-primary,
  .btn-nav-contact {
    width: 100%;
    /* Buttons take full width of mobile screen */
    max-width: 320px;
    /* Limits width on larger mobile screens */
  }

  /* Make Contact Me stand out on mobile */
  .btn-nav-contact {
    background: var(--dark-blue);
    color: var(--accent-color);
    /* Stronger border for visibility */
    order: 2;
    /* Optional: adjust order if you want Contact at the bottom */
  }
}