/*
Custom CSS for TemplateMo 561 Purple Buzz

https://templatemo.com/tm-561-purple-buzz

*/


.navbar-light .navbar-nav .nav-link {
  color: #fff;
}

.bg-primary {
  background-color: #5D0207 !important;
}

.objective-outer {
  min-height: 100vh;
  margin: 5%;
}



/* === BASE HEADING === */

h1 {
  position: relative;
  padding: 0;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: 40px;
  color: #080808;
  -webkit-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
}

h1 span {
  display: block;
  font-size: 0.5em;
  line-height: 1.3;
}

h1 em {
  font-style: normal;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
.seven {
  margin-top: 2em;
}

.seven h1 {
  text-align: center;
  font-size: 30px;
  font-weight: 300;
  color: #222;
  letter-spacing: 1px;
  text-transform: uppercase;

  display: grid;
  grid-template-columns: .1fr max-content .1fr;
  grid-template-rows: 27px 0;
  grid-gap: 20px;
  align-items: center;
}

.seven h1:after,
.seven h1:before {
  content: " ";
  display: block;
  border-bottom: 1px solid #c50000;
  border-top: 1px solid #c50000;
  height: 5px;
  background-color: #f8f8f8;
}
@media (max-width: 768px) {
  .seven h1 {
    font-size: 6vw;
    grid-template-columns: 0.5fr max-content 0.5fr;
    grid-gap: 10px;
  }
}

@media (max-width: 480px) {
  .seven h1 {
  font-weight: 700;
        font-size: 3.5vw;
        grid-template-columns: 0.3fr max-content 0.3fr;
        grid-gap: 6px;
  }
}
/* -------------------------------- */
/* === HEADING STYLE #1 === */
.one h1 {
  /* text-align: center; */
  /* text-transform: uppercase; */
  padding-bottom: 5px;
  color: #d08b1d;
  font-style: italic;
}

.one h1:before {
  width: 28px;
  height: 5px;
  display: block;
  content: "";
  position: absolute;
  bottom: 3px;
  left: 10%;
  margin-left: -14px;
  background-color: #b80000;
}

.one h1:after {
  width: 100px;
  height: 1px;
  display: block;
  content: "";
  position: relative;
  margin-top: 25px;
  left: 10%;
  margin-left: -50px;
  background-color: #b80000;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  h1 {
    font-size: 28px;
    /* text-align: center; */
  }

  .one h1:before {
    width: 20px;
    height: 4px;
    margin-left: -10px;
  }

  .one h1:after {
    width: 70px;
    margin-left: -35px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 22px;
    /* text-align: center; */
  }

  .one h1:before {
    width: 29px;
    height: 4px;
    margin-left: -6px;
  }

  .one h1:after {
    width: 65px;
    margin-left: -25px;
  }
}


h4 {
  font-weight: 700;
  color: #7c0000;
  margin-bottom: 10px;
}

h4::after {
  content: "";
  display: inline-block;
  width: 50px;
  height: 2px;
  background-color: #7c0000;
  margin-left: 10px;
  vertical-align: middle;
}

.faculty-img {
  width: 100%;
  max-width: 120px;
  height: auto;
  border-radius: 5px;
}

.faculty-card {
  margin-bottom: 25px;
}

.donor-wrapper {
  position: relative;
  display: inline-block;
}

.donor-img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

.donor-wrapper {
  position: relative;
  display: inline-block;
}

.bg-block-maroon {
  position: absolute;
  width: 120px;
  height: 120px;
  background-color: #800000;
  bottom: -20px;
  left: -20px;
  z-index: 1;
  border-bottom-left-radius: 10px;
}

.bg-block-yellow {
  position: absolute;
  width: 120px;
  height: 120px;
  background-color: #FFD700;
  top: -20px;
  right: -20px;
  z-index: 1;
  border-top-right-radius: 10px;
}

.donor-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 576px) {

  .donor-text,
  .donor-img {
    text-align: center;
  }
}

.bg-light strong {
  font-weight: bolder;
  font-size: 1em;
}

.bg-secondary {
  background-color: #d08b1d !important;

}

.light-300 {
  font-family: emoji !important;
  font-style: italic;
}

/* ------------------------------------- */
.card-box {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
}

.top-curve {
  height: 120px;
  background: linear-gradient(to right, #000000, #ffa726);
  border-bottom-left-radius: 50% 40%;
  border-bottom-right-radius: 50% 40%;
  position: relative;
}

.top-curve h6 {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #c8ef24;
  font-weight: bold;
  font-size: 16px;
}

.top-curve h6 span {
  color: #fff;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  border: 5px solid white;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.info-section {
  margin-top: 60px;
  padding: 20px 20px 30px;
  text-align: center;
}

.info-section h5 {
  margin-top: 10px;
  font-weight: 700;
  font-size: 1em !important;
}

.info-section p {
  margin: 0;
  color: #6c757d;
}

.info-section hr {
  margin: 20px auto;
  width: 80%;
  color: #ccc;
}

.info-section .label {
  font-weight: bold;
  color: #ffa726;
}

.caption-box {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 0.50rem;
  font-style: italic;
}

.img-border {
  border: 2px solid green;
  padding: 3px;
}

.project-label {
  font-weight: 700;
}

/* .flex-fill {
  font-style: italic;
} */

.patent-card {
  font-style: italic;
  text-align: justify;
}



@media (max-width: 576px) {
  .caption-box {
    width: 100% !important;
  }

  .list-group {
    width: 100% !important;
  }

  .research-topics {
    margin-left: 0% !important;
  }

  .modelling-simulation {
    margin-top: 0% !important;
  }
}

.image-carousel {
  margin-top: 5%;
  margin-bottom: 3%;
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
  width: 100%;
  border: 3px solid #6266ea;
}


.main-text h1 {
  font-size: 3.5em !important;
  text-align: center;
  color: #6266ea;
  font-family: Playfair;
}

.card-text {
  font-family: initial;
  font-style: italic;
  /* font-weight: 600; */
  font-size: 1.2em;
}

.text-card {
  font-family: initial;
  font-style: italic;
  /* font-weight: 600; */
  font-size: 1.2em;
}

.card-box {
  border: 2px solid rgba(136, 84, 84, 0.125) !important;
  margin-bottom: 0px;
}

.two {
  margin-top: 5%;
}

.space-between {
  margin-top: 5%;
}

/* .notice-ribbon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.notice-box {
  background-color: #d63031;
  color: white;
  font-style: italic;
  font-family: -webkit-body;
  font-size: 1.7em;
  padding: 10px 13px;
  border-radius: 5px 0 0 5px;
  flex: 1 1 auto;
  min-width: 0;
  word-wrap: break-word;
}

.notice-arrow {
  width: 0;
  height: 0;
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
  border-left: 30px solid #d63031;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .notice-ribbon {
    flex-direction: column;
    align-items: stretch;
  }

  .notice-arrow {
    transform: rotate(90deg);
    align-self: flex-end;
    margin-top: -10px;
  }
} */

.t1-details strong {
  font-size: 1.8em;
  font-family: 'bootstrap-icons';
  font-style: italic;
  margin-bottom: 2em;
}


.objective-outer h2 {
  font-family: 'bootstrap-icons';
  font-weight: 600;
  font-size: 30px;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  line-height: 1.7em;
  box-shadow: 0 2px 10px 0 #cac9c9;
  text-align: center;
  user-select: none;
  cursor: pointer;
  border-left: 20px solid #ff5f00;
  border-right: 20px solid #ff5f00;
  border-radius: 5px 55px 5px 55px;
  margin: 20px auto;
  max-width: 100%;
  word-wrap: break-word;
}

/* ✅ Responsive adjustments */
@media (max-width: 768px) {
  .objective-outer h2 {
    font-size: 24px;
    padding: 10px 15px;
    border-left: 10px solid #ff5f00;
    border-right: 10px solid #ff5f00;
    border-radius: 5px 30px 5px 30px;
  }
}

@media (max-width: 480px) {
  .objective-outer h2 {
    font-size: 20px;
    padding: 8px 12px;
    border-left: 6px solid #ff5f00;
    border-right: 6px solid #ff5f00;
    border-radius: 5px 20px 5px 20px;
  }
}

/* Animation Keyframes */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* p, li, h2, h4 {
      font-family:'bootstrap-icons';
      font-size: 1.1rem;
    } */

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}
/* ---------------------------------------------------------------------- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initial hidden state */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Triggered class */
.scroll-animate.visible {
  animation: fadeUp 0.8s forwards;
}
/* --------------------------------------------------------------- */

.sticky-note {
  position: relative;
  background-color: #fff176;
  width: 90%;
  max-width: 350px;
  padding: 50px 30px 30px;
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
  transform: rotate(-1.5deg);
  font-family: Georgia, serif;
  overflow: hidden;
}

.sticky-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0px, transparent 23px, rgba(0, 0, 0, 0.07) 24px);
  z-index: 0;
}

.note-content {
  position: relative;
  z-index: 1;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #000;
}

.pin {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 2.2rem;
  /* Bigger size */
  color: crimson;
  transform: rotate(35deg);
  /* Tilt downward-right */
}
/* Animation Keyframes */
@keyframes zoomInSticky {
  0% {
    transform: scale(0.9) rotate(-1.5deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(-1.5deg);
    opacity: 1;
  }
}

/* Animation Class */
.sticky-note {
  animation: zoomInSticky 0.8s ease-in-out;
}

@media (min-width: 576px) {
  .note-content {
    font-size: 1.2rem;
  }
}
/* --------------------------------------------------------------------------------------------------- */
 /* Mobile (below 768px) styling */
 .table-text {
    text-align: center !important;
    background-color: #000 !important;
}
thead, tbody, tfoot, tr, td, th {
    border-color: inherit;
    border-style: solid;
    border-width: 2px;
    
}
    @media (max-width: 768px) {
      .data-table thead {
        display: none;
      }

      .data-table,
      .data-table tbody,
      .data-table tr,
      .data-table td {
        display: block;
        width: 100%;
      }

      .data-table tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        padding: 0.75rem;
        background-color: #f8f9fa;
      }

      .data-table td {
        font-size: .9em;
        padding: 0.5rem 0.75rem 0.5rem 50%;
        position: relative;
        text-align: left;
        border: none;
      }

      .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        top: 0.5rem;
        width: 45%;
        font-weight: bold;
        color: #333;
        white-space: nowrap;
      }
    }

    /* -------------------------------------------- */
     .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
  }

  .in-view {
    opacity: 1;
    transform: translateY(0);
  }