:root {
  --main-color: #f68642;
  --sub-color: #fdece3;
  --bg-darker: #080818;
  --text-color: #080818;
  --dark-color-main: #2f3349;
}

@font-face {
  font-family: "Zain";
  src: url("../vendor/fonts/zain.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Zain";
  src: url("../vendor/fonts/Zain-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

body {
  font-family: "Zain", Arial, sans-serif !important;
}
.bg-pattern {
  background-image: url("../img/site/websiteBg.svg");
  background-repeat: repeat;
  background-size: auto;
}
.footer-bg {
  background-image: url("../img/site/background.svg");
  /* background-image: url("../img/site/dark-bg.svg"); */
  background-repeat: repeat;
  background-size: cover;
}
.main-color {
  background-color: var(--main-color);
}
.nav-color {
  background-color: var(--main-color);
}

.sub-color {
  background-color: var(--sub-color) !important;
}
.text-color {
  color: var(--main-color) !important;
}
.bg-darker {
  background-color: var(--bg-darker) !important;
}
.text-darker {
  color: var(--text-color) !important;
}
.card-bg-lighter {
  background-color: #fdd7c1 !important;
}
.bg-div {
  background-color: #ffffff !important;
}
.scrollbar {
  /* scrollbar-width: thin; */
  scrollbar-color: var(--main-color) #fdd7c1;
  overflow-y: auto;
}
.title-underline {
  width: 300px;
  height: 3px;
  background-color: #111;
  margin: 0 auto;
  margin-bottom: 3rem !important;
  border-radius: 2px;
}
.more-button {
  background-color: #fd8e5e;
  color: white;
  font-weight: bold;
  padding: 0.5rem 2rem;
  border-radius: 1.5rem;
  border: none;
  margin-top: 2rem;
}

.more-button:hover {
  background-color: var(--bg-darker);
}
/* news tracker style */
.news-ticker {
  /* background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); */
  background: #080818;

  height: 50px;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-label {
  background: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  /* z-index: 2; */
  position: relative;
}

.news-content {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.news-scroll:hover {
  animation-play-state: paused;
}

.news-item {
  color: white;
  font-size: 16px;
  font-weight: 500;
  margin-right: 100px;
  position: relative;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.news-item::after {
  content: "●";
  color: rgba(255, 255, 255, 0.7);
  margin-left: 50px;
  font-size: 12px;
}

.news-item:last-child::after {
  display: none;
}

.news-item:hover {
  opacity: 0.8;
}

.news-scroll {
  display: flex;
  align-items: center;
  height: 100%;
  animation: scroll-right 40s linear infinite;
  white-space: nowrap;
}
@keyframes scroll-right {
  0% {
    transform: translate3d(-100%, 0, 0);
  }

  100% {
    transform: translate3d(300%, 0, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .news-scroll {
    animation: scroll-right 15s linear infinite;
  }
  .news-ticker {
    height: 45px;
  }

  .news-label {
    padding: 0 15px;
    font-size: 12px;
  }

  .news-item {
    font-size: 14px;
    margin-right: 80px;
  }
}

@media (max-width: 480px) {
  .news-ticker {
    height: 40px;
  }

  .news-label {
    padding: 0 12px;
    font-size: 11px;
  }

  .news-item {
    font-size: 13px;
    margin-right: 60px;
  }
}

.news-label {
  background-color: #f68642;
  /* orange color similar to the image */
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border-top-left-radius: 50px;
  /* creates the rounded top-left corner */
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  width: fit-content;
}

/* end news tracker */

/* hero section */
.book-cover-column {
  position: relative;
  overflow: hidden;
}

.book-cover-column:hover img {
  filter: blur(4px);
  transition: filter 0.3s;
}

.book-cover-column .book-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  /* background: rgba(0,0,0,0.5); */
  opacity: 0;
  pointer-events: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: opacity 0.3s;
  text-align: center;
  /* padding: 10px; */
}

.book-cover-column:hover .book-title-overlay {
  opacity: 1;
  pointer-events: auto;
}

.issue-section {
  background-color: var(--sub-color);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.uniform-badge {
  width: 150px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  display: inline-block;
}

/* tv programs */
.program-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.program-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(90%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.program-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.overlay-text {
  position: absolute;
  bottom: 40px;
  right: 0px;
  background-color: #f7943e;
  color: #000;
  padding: 5px 15px;
  font-weight: bold;
  border-radius: 7px 0 0 7px;
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .overlay-text {
    bottom: -100px;
  }
}
.overlay-text-top {
  position: absolute;
  top: 40px;
  left: 0px;
  background-color: #353230;
  color: #ffffff;
  padding: 5px 15px;
  font-weight: bold;
  border-radius: 0 7px 7px 0;
  font-size: 1.1rem;
}

/* progress style */
.shadow-container {
  margin-top: 50px;
  border-right: 5px solid #fd7e14;
  padding: 30px;
  border-radius: 20px;
  /* background-color: #fff; */
}

.progress-container {
  background-color: #f7b895;
  border-radius: 25px;
  height: 25px;
  margin-right: 40px;
}

.progress-bar-custom {
  background-color: #13121e;
  height: 60%;
  border-radius: 25px;
  width: 0;
  transition: width 2.5s ease-in-out;
}

.circle-percentage {
  transform: translateY(-100%);
  background: #fff;
  border: 9px solid #f7b895;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #13121e;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* animated book style start */
.book-card {
  width: 280px;
  padding: 16px;
  border-radius: 5px;
  background-color: #fdece3;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.book-card .book-card__cover {
  position: relative;
  width: 200px;
  height: 300px;
  margin: 0 auto 8px auto;
  perspective: 1000px;
}

.book-card .book-card__book {
  height: 100%;
  transform-style: preserve-3d;
  transition: all 250ms ease;
}

.book-card .book-card__book-front {
  position: absolute;
  height: 100%;
}

.book-card .book-card__book-back {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  transform: translateZ(-40px);
}

.book-card .book-card__book-side {
  position: absolute;
  top: 5px;
  bottom: 2px;
  right: -29px;
  width: 40px;
  background-size: 5px;
  background-color: #e1e1e1;
  background-image: linear-gradient(to right, #ccc 35%, #e1e1e1 35%);
  opacity: 0;
  transform: rotate3d(0, 1, 0, 90deg);
}

.book-card .book-card__img {
  width: 100%;
  height: 100%;
  background-color: #e1e1e1;
}

.book-card .book-card__title {
  font-size: 1.5em;
  margin-bottom: 8px;
}

.book-card .book-card__author {
  color: #757575;
  font-size: 1em;
}

.book-card:hover .book-card__book {
  transform: rotate3d(0, -1, 0, 30deg) translate(-15px, -30px);
}

.book-card:hover .book-card__book-back {
  box-shadow: 5px 10px 15px rgba(0, 0, 0, 0.35);
}

.book-card:hover .book-card__book-side {
  opacity: 1;
}
/* animated book style end */

/*  theme switch btn  start */
.checkbox {
  opacity: 0;
  position: absolute;
}

.checkbox-label {
  background-color: #111;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ti-moon {
  color: #f1c40f;
}

.ti-sun {
  color: #f39c12;
}

.checkbox-label .ball {
  background-color: #fff;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
  transform: translateX(24px);
}
/*  theme switch btn  end */
.btn-outline-orange {
  color: var(--main-color) !important;
  border-color: var(--main-color) !important;
  background: rgba(0, 0, 0, 0);
}
.form-control:focus {
  border-color: var(--main-color) !important;
}

/* Archive tree style */
.search-box {
  background: white;
  border-radius: 25px;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  display: flex;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 16px;
}

.tree-container {
  /* background: var(--sub-color); */
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tree-item {
  margin-bottom: 8px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.tree-item:hover {
  background: #f8f9fa;
}

.tree-header {
  padding: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.tree-header:hover {
  background: #f0f7f0;
}

.tree-header.active {
  background: #d4e4d4;
  color: #1e4029;
  font-weight: 600;
}

.tree-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}

.expand-icon {
  transition: transform 0.3s ease;
  color: #6c757d;
  font-size: 14px;
}

.expand-icon.expanded {
  transform: rotate(90deg);
}

.tree-stats {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #6c757d;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tree-children {
  padding-right: 30px;
  margin-top: 5px;
  display: none;
}

.tree-children.show {
  display: block;
}

.tree-child {
  padding: 12px 15px;
  margin-bottom: 5px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.tree-child:hover {
  background: #f0f7f0;
  transform: translateX(-3px);
}

.question-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.question-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.question-title {
  font-size: 18px;
  font-weight: 600;
  color: #f68642;
  margin-bottom: 15px;
}

.question-actions {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #6c757d;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6c757d;
  transition: color 0.2s;
}

.action-btn:hover {
  color: #f68642;
}

.badge-custom {
  background: #e8f5e9;
  color: #f68642;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
