/* ===================
INDEX PAGE
=================== */

.index__page {
  height: auto !important;
  position: relative;
  z-index: 1;
  background: url(../images/bg/bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.index__page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right,
      rgba(255, 255, 255, 1) 20%,
      rgba(255, 255, 255, 0.7) 100%);
  z-index: -1;
  /* opacity: 0.3; */
}

.sub__heading {
  font-size: var(--fs-caption);
}

.sub__heading-1 {
  font-size: var(--fs-lead);
}

.sign-text {
  float: right;
  padding: 10px 0 0 0;
  font-size: 16px;
  text-align: right;
  margin: 40px 0 0 0;
  margin: 12px 0 0 0;
}

.text-reflect {
  padding: 10px 0 0 0;
  color: #515151;
  font-size: 20px;
  line-height: 30px;
  position: relative;
  display: block;
  font-weight: 600;
}

.text-reflect:before {
  content: "Valliappan Kannappan";
  top: 38px;
  transform: scale(1, -1);
  backface-visibility: visible;
  z-index: 1;
  color: rgb(192 0 0 / 47%);
  position: absolute;
  background: linear-gradient(0deg, rgb(0 0 0 / 47%) 5%, transparent 65%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.sign-text i {
  color: #0077b5;
  padding: 5px;
  font-size: 23px;
}

.card-img-top {
  max-height: 201px;
  min-height: 200px;
  object-fit: fill;
}

.featured__date {
  font-size: var(--fs-small);
  background: rgba(var(--primary-color-rgb), 0.1);
  padding: 3px 5px;
  border-radius: 5px;
  margin-bottom: 10px;
  display: inline-block;
}

/* ===================
INNER PAGE
=================== */

.inner__head {
  text-align: center;
  color: var(--primary-color);
  background: rgba(var(--secondary-color-rgb), 0.4);
  padding: 1rem 0;
}

.inner__head h2 {
  margin-bottom: 0;
}

.inner__page {
  padding: 30px 0;
}

.useful__links h5 {
  font-size: 17px !important;
  margin-bottom: 0;
}

/* ===================
QUOTES PAGE
=================== */

.quotes__info {
  display: block;
  box-shadow: 0px 2px 15px rgb(0 0 0 / 10%);
  padding: 20px;
  text-align: end;
}

.quotes__info img {
  width: 100px;
}

.quotes__text {
  margin: 0;
  font-size: 18px;
  text-align: start;
}

.quotes__profile__info {
  text-align: end;
  font-size: 18px;
}

.quotes__profile__info span {
  display: block;
  font-style: italic;
  font-size: 15px;
  font-weight: normal;
}

/* ===================
GAME PAGE
=================== */
.portrait-content {
  display: none;
}

@media only screen and (min-device-width: 0px) and (max-device-width: 815px) and (orientation: portrait) {
  .portrait-content {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    background: #fff;
    width: 100%;
    height: 100%;
    z-index: 99999999;
    overflow: hidden;
  }

  .portrait-content img {
    width: 200px;
    margin-top: 4em;
  }

  .portrait-content p {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 600;
  }
}

@media screen and (max-width: 900px) and (orientation: landscape) {
  .portrait-content {
    display: none;
  }
}

/* ===================
PUZZLE  PAGE
=================== */

label.error {
  color: #f00;
}

.form-honeypot {
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  opacity: 0;
  z-index: -1;
}

p.wrong {
  display: none;
}

p.wrong.shake {
  display: block;
}

p.wrong.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(1px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-2px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(2px, 0, 0);
  }
}

.image {
  width: 75% !important;
}

/* ===================
ACADEMIC  PAGE
=================== */
.chiral__box {
  box-shadow: 0px 2px 15px rgb(0 0 0 / 10%);
  background: #fff;
  padding: 1.5rem;
}

.quotes {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.quotes img {
  width: 100px;
}

.quotes img.link {
  width: 20px;
}

.quotes h3 {
  text-align: start;
}

/* ===================
CONTACT  PAGE
=================== */
.icon {
  height: 60px;
  width: 60px;
  border-radius: 50px;
  border: 1px solid #4e4b4b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon i {
  color: #323232;
}

/* ===================
SITE MAP
=================== */

.site-map ul {
  padding-left: 1rem;
}

.site-map i {
  color: #616161;
}

.site-map li {
  padding: 0.2rem 0.4rem;
  margin: 0;
  position: relative;
  list-style-type: disc;
  line-height: 23px;
}

.site-map li::marker {
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\f471";
}

/* =====================
    SECTION: Services Tab
    ====================== */
[data-bs-theme="dark"] .services__tab .toc {
  background: rgba(var(--secondary-color-rgb), 0.25);
}

.services__tab {
  & .toc {
    background: #fff;
    padding: 1rem;
    top: var(--menu-height);
  }

  & .nav .nav-link {
    text-align: start;
    color: var(--bs-body-color);
    background: rgba(var(--secondary-color-rgb), 0.5);


    & .bi {
      display: inline-block;
    }

    &.active {
      color: var(--bs-light);
      background: var(--primary-color);
    }

    &:not(.active):hover {
      background: rgba(var(--primary-color-rgb), 0.05);

      & .bi {
        transform: translateX(3px);
      }
    }

    &:not(:last-of-type) {
      border-bottom: 1px solid rgba(var(--secondary-color-rgb), 0.15);
    }
  }

  .services__cta {
    display: grid;
    grid-template-areas: "stacked";
    place-items: center;
    text-align: center;
    color: var(--bs-light);
    position: relative;
    z-index: 1;

    &>* {
      grid-area: stacked;
    }

    & .scta__bg {
      position: relative;
      z-index: -1;
    }

    & .scta__bg::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(var(--secondary-color-rgb), 0.5);
    }

    & .bi {
      font-size: var(--fs-large-banner);
    }

    & .bi::before {
      background: var(--primary-color);
      padding: 1rem;
      border-radius: 50%;
      box-shadow: 0 0 0 1rem rgba(var(--primary-color-rgb), 0.25);
    }
  }

  & .heading,
  & .subheading {
    font-family: var(--heading-font);
    font-weight: 900;
    color: var(--bs-dark-text-emphasis);
    margin-bottom: 0.25rem;
  }

  & .heading {
    font-size: var(--fs-sub-title);
  }

  & .subheading {
    font-size: var(--fs-lead);
  }

  & .accordion-button {
    background: var(--primary-color) !important;
    color: var(--bs-light) !important;
    box-shadow: inset 0 8px 16px rgb(0 0 0 / 15%) !important;
    margin-bottom: 2px;
  }

  & .accordion-button::after {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  }
}

/* ===================
 NEWS
=================== */

.new-newsbox li {
  border-bottom: 1px solid #bdbdbd;
  padding-bottom: 10px;
  margin: 0 0 1.5rem;
}

.new-newsbox li a {
  display: block;
}

.services__tab .accordion-item {
  background: rgba(var(--secondary-color-rgb), 0.2) !important;
  border: 0;
}

/* ===================
 IFRAME VIDEO
=================== */

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #000;
  border-radius: 0;
  margin: 0 auto;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


#scrollToTop {
  display: none;
  /* Hidden by default */
  position: fixed;
  bottom: 56px;
  right: 5px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #1b1a1a;
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 7px;
  font-size: 15px;
}

#scrollToTop:hover {
  background-color: #555;
  /* Add a dark-grey background on hover */
}

/* ===================
 HEADER
=================== */
