.bg-light {
  background-color: #EFEBE4 !important;
}

#request-head {
  position: relative;
  padding-top: 140px; /* keep content visible */
  transition: padding-top 0.3s ease-out;
}

body:has(.header-banner.hide) #request-head {
  padding-top: 100px;
}

.glossary-detail {
  padding-top: 200px;
  transition: padding-top 0.3s ease-out;
}

body:has(.header-banner.hide) .glossary-detail {
  padding-top: 160px;
}

#glossary {
  padding-top: 0;
}

.single-glossary #apply-content .content a {
  font-weight: 700;
  color: #F4482B;
}

.glossary-box {
  width: 1002px;
  max-width: 100%;
  margin: 0 auto;
  height: auto;
}

.row.request-submit-mail {
  width: 962px;
  margin: 0 auto;
}

#glossary .glossary-content {
  padding: 0;
}

#glossary .alphabet {
  max-width: 1200px;
  padding-top: 60px;
  position: sticky;
  top: 60px;
  background: #EFEBE4;
  z-index: 99999;
}

@media screen and (min-width: 1024px) {
  body:has(#navigation.scrolled) #glossary .alphabet {
    top: 20px;
  }
}
#glossary > .container {
  max-width: 1200px;
}

#glossary .glossary-content .letter-area .letter h2 a {
  padding-top: 64px;
}

#glossary .glossary-content .letter-area .letter-subject .letter-subject-content {
  margin-top: 40px;
}

/* Desktop default */
#request-head .container {
  background-image: url(../../img/glossary-desktop-bg.png);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  width: 100%;
  min-width: 100%;
  min-height: 70vh;
  margin: 0;
  display: flex;
  justify-content: flex-start; /* text left */
  align-items: center; /* vertical middle */
}

/* Tablet (max 1023px) */
@media (max-width: 1023px) {
  #request-head .container {
    background-image: url(../../img/glossary-tablet-bg.png);
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    min-height: 768px !important;
    text-align: center;
  }
}
/* Mobile (max 768px) */
@media (max-width: 767px) {
  #request-head .container {
    background-image: url(../../img/glossary-mobile-bg.png);
    justify-content: center;
    align-items: flex-start;
    padding-top: 32px;
    min-height: 534px !important;
  }
}
@media (max-width: 1023px) {
  .request-head {
    text-align: center !important;
  }
}
#request-head img {
  display: none;
}

/* Make column full width on large screens */
.webinars-image {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center; /* vertical inside column */
  align-items: flex-start; /* text aligned left */
  height: auto; /* lets content size naturally */
  padding: 0 20px; /* optional horizontal padding */
}

/* H4 styling */
.webinars-image h4 {
  color: #EFEBE4;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 56px;
  text-align: left;
  margin: 0;
}

/* P styling */
.webinars-image p {
  color: #F8F8F8;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-align: left;
  margin: 0;
}

.alphabet a {
  color: var(--Text-Primary, #261A28) !important;
  font-family: var(--Font-Family-Sans-Serif, Figtree);
  font-size: var(--Font-Font-Size-XL, 24px) !important;
  font-style: normal;
  font-weight: var(--Font-Weight-Semi-Bold, 600);
  line-height: var(--Font-Line-Height-2XL, 32px); /* 133.333% */
  letter-spacing: var(--Font-Letter-Spacing-M, 0.2px) !important;
}

#glossary .alphabet ul {
  gap: 40px;
}

/* When the link is active (clicked) */
.alphabet a:active,
.alphabet a:focus {
  color: #F4482B !important;
}

/* Optional: when hovering */
.alphabet a:hover {
  color: #F4482B !important;
}

.alphabet {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #F4482B #FAFAFA;
  overflow-x: auto;
}

/* Chrome, Edge, Safari */
.alphabet::-webkit-scrollbar {
  height: 8px; /* horizontal scrollbar height */
}

/* Hide all scrollbar buttons (left/right/up/down arrows) */
.alphabet::-webkit-scrollbar-button,
.alphabet::-webkit-scrollbar-button:horizontal:decrement,
.alphabet::-webkit-scrollbar-button:horizontal:increment,
.alphabet::-webkit-scrollbar-button:vertical:decrement,
.alphabet::-webkit-scrollbar-button:vertical:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.m-0 a {
  font-family: "Red Hat Display", sans-serif;
  font-size: 64px !important;
  line-height: 80px !important;
  font-weight: 400 !important;
  color: #474048 !important;
}

.letter-subject h4,
.letter-subject p,
.letter-subject a {
  color: #261A28 !important;
}

.letter-subject h4 {
  color: #261A28 !important;
  font-family: var(--Font-Family-Sans-Serif, Figtree) !important;
  font-size: var(--Font-Font-Size-XL, 24px) !important;
  font-style: normal !important;
  font-weight: var(--Font-Weight-Semi-Bold, 600) !important;
  line-height: var(--Font-Line-Height-2XL, 32px) !important; /* 133.333% */
  letter-spacing: var(--Font-Letter-Spacing-M, 0.2px) !important;
}

.letter-subject p {
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 22px !important;
}

.letter-subject a {
  font-weight: 500 !important;
  font-size: 16px !important;
  line-height: 20px !important;
  transition: unset;
  transition: all 0.3s ease-in-out;
  gap: 8px;
}

.letter-subject a:hover {
  color: #F4482B !important;
}

.letter-subject a:hover svg path {
  transition: all 0.3s ease-in-out;
}

.letter-subject a:hover svg path {
  stroke: #F4482B;
}

.glossary-arrow:after {
  all: unset;
}

/*** Rojbin Glossary Inner ***/
.go-back {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #261A28 !important;
  text-decoration: none; /* optional */
  display: inline-flex; /* keeps icon aligned with text */
  align-items: center; /* vertically center icon */
  gap: 8px; /* space between icon and text */
  transition: all 0.3s ease-in-out;
}

.go-back:hover {
  color: #F4482B !important;
}

.go-back svg path {
  transition: all 0.3s ease-in-out;
}

.go-back:hover svg path {
  stroke: #F4482B !important;
}

/* Use ::before to inject a new icon (example: left arrow) */
.go-back i::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url(../../img/button-icon-left.png) no-repeat center center;
  background-size: contain;
}

/* General text color */
#apply-content .content,
#apply-content .content h1,
#apply-content .content h2,
#apply-content .content h3,
#apply-content .content p {
  color: #261A28 !important;
}

#apply-content .container .content {
  max-width: 1200px !important;
}

/* H1 styling */
#apply-content .content h1 {
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  text-align: left;
  margin: 0 0 16px 0;
}

/* H2 styling with left border */
#apply-content .content h2 {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  text-align: left;
  padding: 12px 20px;
  margin: 16px 0;
}

#apply-content {
  padding-top: 0 !important;
}

/* H3 styling */
#apply-content .content h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  text-align: left;
  margin: 12px 0;
}

/* Paragraph styling */
#apply-content .content p {
  font-weight: 400;
  font-size: 20px !important;
  line-height: 28px;
  text-align: left;
  margin: 12px 0 !important;
}

/* Ordered list items */
#apply-content .content li {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-align: left;
  margin: 12px 0 !important;
  list-style: disc !important;
  list-style-position: outside !important;
  padding-left: 0 !important;
}

#apply-content .container .content ul, #apply-content .container .content ol {
  padding-left: 20px;
}

#apply-content .content li:before {
  all: unset !important;
}

/* Links inside content */
#apply-content .content a {
  color: #261A28;
  text-decoration: underline;
}

#apply-content .container .content li {
  color: #261A28 !important;
}

/* TABLET */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  #request-head {
    padding-top: 100px;
  }
  body:has(.header-banner.hide) #request-head {
    padding-top: 60px;
  }
  .request-head {
    width: 100% !important;
    align-items: center !important;
  }
  .webinars-image h4 {
    color: var(--Text-System, #FFF);
    text-align: center;
    font-family: var(--Font-Family-Display, "Red Hat Display");
    font-size: var(--Font-Font-Size-4XL, 32px);
    font-style: normal;
    font-weight: var(--Font-Font-Weight-Regular, 400);
    line-height: var(--Font-Line-Height-4XL, 40px); /* 125% */
    letter-spacing: var(--Font-Letter-Spacing-L, 0.5px);
    margin: 60px 0 10px 0 !important;
    padding: 0 !important;
  }
  .webinars-image p {
    color: var(--Text-Secondary, #F8F8F8);
    text-align: center;
    /* Type/Paragraphs/Paragraph-M */
    font-family: var(--Font-Family-Sans-Serif, Figtree);
    font-size: var(--Font-Font-Size-S, 14px);
    font-style: normal;
    font-weight: var(--Font-Font-Weight-Regular, 400);
    line-height: var(--Font-Line-Height-L, 22px); /* 157.143% */
    letter-spacing: var(--Font-Letter-Spacing-S, 0);
    margin: 0 !important;
    padding: 0 !important;
  }
  #glossary {
    padding: 44px !important;
  }
  .letter-subject-content {
    width: 50% !important;
  }
}
/* MOBILE */
@media screen and (max-width: 767px) {
  #request-head {
    padding-top: 100px;
  }
  body:has(.header-banner.hide) #request-head {
    padding-top: 60px;
  }
  .request-head {
    width: 100% !important;
    align-items: center !important;
  }
  .webinars-image h4 {
    color: var(--Text-System, #FFF) !important;
    text-align: center !important;
    /* Type/Special Headings/Display-S */
    font-family: var(--Font-Family-Display, "Red Hat Display") !important;
    font-size: var(--Font-Font-Size-4XL, 28px) !important;
    font-style: normal !important;
    font-weight: var(--Font-Font-Weight-Regular, 400) !important;
    line-height: var(--Font-Line-Height-4XL, 32px) !important; /* 114.286% */
    letter-spacing: var(--Font-Letter-Spacing-L, 0.5px) !important;
    margin: 50px 0 8px 0 !important;
    padding: 0 !important;
  }
  .webinars-image p {
    color: var(--Text-Secondary, #F8F8F8) !important;
    text-align: center !important;
    /* Type/Paragraphs/Paragraph-L */
    font-family: var(--Font-Family-Sans-Serif, Figtree) !important;
    font-size: var(--Font-Font-Size-L, 16px) !important;
    font-style: normal !important;
    font-weight: var(--Font-Font-Weight-Regular, 400) !important;
    line-height: var(--Font-Line-Height-XL, 22px) !important; /* 137.5% */
    letter-spacing: var(--Font-Letter-Spacing-S, 0) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
/* GLOSSARY INNER */
.single-glossary {
  background: #EFEBE4;
}

.single-glossary section {
  background: none;
}