*{
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; */
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', Verdana, sans-serif;
    border: border-box;
}

/* All list style set as none */

li{
  list-style: none;
}
a {
  text-decoration: none;
}

/* Slogan & Search bar */

.box {
  background-color: #004b66;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;  
  position: relative;
}

/* Floating Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0.7;
  animation: moveUp 5s linear infinite;
}

@keyframes moveUp {
  from {
      transform: translateY(100vh);
      opacity: 0;
  }
  to {
      transform: translateY(-10vh);
      opacity: 1;
  }
}

/* Card design  */
/* Heading of university */

.heading{
  text-align: center;
  padding: 20px 0 0;
  overflow-x: hidden;
  background-color: #307B8C;
  /* background-color: #586F8C; */
}

.heading h2{
  margin: 0;
  display: inline-block;
  padding: 10px 20px;
  background-color: #BDBFBF;
  border-radius: 25px;
}

/* This is a container in which all div is placed */
 #styleUni{
  display: flex;  
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow-x: hidden;
  padding: 30px;
  background-color: #307B8C;
  /* background-color: #074973;
  background-color: #617b9c;
  background-color: #586F8C; */
}
/* 2 div contains another div */
.div{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.div a, .cardEvent a{
  text-decoration: none;
}


/* ye university card or theory of synopsis report me animation lgaya h jo spread hoyega
  iski ye class ko direct js me use kiya h */


.ani {
  animation: tilt-in-fwd-tr 0.8s ease-out both;
}

@keyframes tilt-in-fwd-tr {
  from {
      transform: rotateY(30deg) translateY(20px);
      opacity: 0;
  }
  to {
      transform: rotateY(0deg) translateY(0);
      opacity: 1;
  }
}


/* card style  */
.cardStyle{
  padding: 20px;
  background-color: #D9D9D9;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  text-align: center;
}
/*  button style */
#styleUni button{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #BDBFBF;
  border: none;
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/*  hover effect */
#styleUni button:hover {
  background-color: #F2F2F0;
}
.cardStyle:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/*synopsis Report section */
#report{
  display: flex;
  padding: 20px;
  background-color: #E9F0F2;
  overflow: hidden;
}

.report_innerPart{
  margin: 30px;
}

.report_innerPart h1{
  font-family: cursive;
  margin-bottom: 15px;
}

.report_innerPart p, .report_innerPart h3{
  margin-bottom: 10px;
}

.report_innerPart li{
  margin-bottom: 5px;
}

/*  button design of synopsis and project report format */

.bn {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  background-color: #B7BF99;
}

.bn .bnspan {
  color: #333;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.7px;
}

.bn:hover {
  background-color: #134B42;
  animation: bnrotate 0.7s ease-in-out both;
}

.bn:hover .bnspan {
  animation: bnstorm 0.7s ease-in-out both;
  animation-delay: 0.06s;
  color: #fff;
}


@keyframes bnrotate {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  25% {
    transform: rotate(3deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-3deg) translate3d(0, 0, 0);
  }
  75% {
    transform: rotate(1deg) translate3d(0, 0, 0);
  }
  100% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
}

@keyframes bnstorm {
  0% {
    transform: translate3d(0, 0, 0) translateZ(0);
  }
  25% {
    transform: translate3d(4px, 0, 0) translateZ(0);
  }
  50% {
    transform: translate3d(-3px, 0, 0) translateZ(0);
  }
  75% {
    transform: translate3d(2px, 0, 0) translateZ(0);
  }
  100% {
    transform: translate3d(0, 0, 0) translateZ(0);
  }
}

@media (max-width:790px) {
  #report{
    display: flex;
    flex-direction: column;
  }
}
  
/* General styling for Course section */
.Courses {
  text-align: center;
}

.Courses h1{
  padding: 25px;
  font-weight: bolder;
  background-color: rgb(0, 0, 0);
  color: #fff;
}

/* General Styles */

.twoCard {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  padding: 50px;
  overflow-x: hidden;
  background-color: #9FB6BF;
}

/* ye card me animation lgaya h jo left side se spread hote hue right side opn hoyega
  iski ye class ko direct js me use kiya h */
.animate{
  animation: swing-in-left-fwd 0.7s ease-out both;
}

@keyframes swing-in-left-fwd {
  0% {
      transform: rotateY(90deg);
      transform-origin: left;
      opacity: 0;
  }
  100% {
      transform: rotateY(0);
      transform-origin: left;
      opacity: 1;
  }
}

/* ye card me animation lgaya h jo right side se spread hote hue leftt side opn hoyega
  iski ye class ko direct js me use kiya h */

.swing_right_frd{
  animation: swing-in-right-fwd 0.5s ease-out both;
}

@keyframes swing-in-right-fwd {
  0% {
      transform: rotateY(90deg);
      transform-origin: right;
      opacity: 0;
  }
  100% {
      transform: rotateY(0);
      transform-origin: right;
      opacity: 1;
  }
}

.card {
  width: 300px;
  height: 220px;
  background: linear-gradient(135deg, #ffffff, #f3f3f3);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  text-align: center;
}

.card:hover {
  transform: scale(0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.course-lang {
  padding: 14px;
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  border-radius: 20px 20px 0 0;
  width: 100%;
}

.fLineColor { background-color: #007bff; } /* Blue */
.sLineColor { background-color: #28a745; } /* Green */
.tLineColor { background-color: #ff6600; } /* Orange */
.forLineColor { background-color: #dc3545; } /* Red */

.course-img {
  width: 90%;
  height: 140px;
  object-fit: contain;
  border-bottom: 3px solid rgba(0, 0, 0, 0.1);
  display: block;
  margin: auto;
}

/* Hover effect for button */
.course-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, #CA763A, #134B42); /* Gradient from left to right */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.card:hover .course-button {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}


/* responsive screen size for smaller screen */
/* Media queries for responsiveness of University section */

@media (max-width: 1030px) {
  #styleUni {
      display: flex;
      flex-direction: column;
  }
  .div{
    gap: 30px;
  }
  .cardStyle button {
      font-size: 14px;
  }
}


/* For small screens (below 600px) */
@media (max-width: 600px) {

  /* university card */
  .div {
      display: flex; /* 1 card per row */
      flex-direction: column;
  }

}
/* For courses */

@media (max-width: 1130px) {
  .twoCard {  
   gap: 40px;
  }
}

@media (max-width: 700px) {
.card{
  max-width: 250px;
} 
}








.slogan-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 60px;
  box-sizing: border-box;
  gap: 40px;
  flex-wrap: nowrap;
  background: transparent; 
}

.slogan-content {
  flex: 1;
  z-index: 2;
  color: white;
}

.slogan-image h1 {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(45deg, #ff98c8, #f0df97);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideIn 1.5s ease-in-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slogan-image p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #fff;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 10px;
  margin-top: 20px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  animation: fadeIn 1.2s ease-in-out;
  box-sizing: border-box;
  position: relative;
  z-index: 15; 
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 10px;
  border-radius: 50px;
  background: transparent;
  color: white;
  min-width: 0;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-box button {
  background: #ff98c8;
  border: none;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: #ff70b8;
}

.image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.image-container img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  display: block;
  box-sizing: border-box;
}

@media (max-width: 980px) {

  .slogan-image h1 {
    font-size: 1.6rem;
  }

  .slogan-image p {
    font-size: 0.9rem;
  }

  .search-box input {
    font-size: 0.85rem;
  }

  .search-box button {
    font-size: 0.85rem;
  }

  .image-container img {
    max-width: 100%;
  }
}




@media (max-width: 750px) {
  .slogan-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 20px;
    background: transparent;
    text-align: center;
  }

  .slogan-image h1 {
    font-size: 1.4rem;
    line-height: 1.6rem;
    margin: 0;
    max-width: 95%;
  }

  .slogan-image p {
    font-size: 1rem;
    line-height: 1.4rem;
    margin: 0;
    max-width: 95%;
  }

  .search-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .search-box input {
    font-size: 0.9rem;
    padding: 8px 12px;
    width: 70%;
    min-width: 200px;
    max-width: 90%;
  }

  .search-box button {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .image-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .image-container img {
    width: 90%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    display: block;
  }
}

/* 👇 Additional fixes for super small devices (≤600px) */
@media (max-width: 600px) {
  .slogan-image h1 {
    font-size: 1.2rem;
    line-height: 1.4rem;
  }

  .slogan-image p {
    font-size: 0.85rem;
    line-height: 1.2rem;
  }

  .search-box input {
    width: 85%;
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .search-box button {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .image-container img {
    width: 95%;
    max-width: 250px;
  }
}


@media (max-width: 380px) {
  .slogan-image h1 {
    font-size: 1rem;
    line-height: 1.3rem;
  }

  .slogan-image p {
    font-size: 0.75rem;
    line-height: 1.1rem;
  }

  .search-box input {
    width: 60%;
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .search-box button {
    font-size: 0.8rem;
    padding: 6px 10px;
  }


  .image-container img {
    width: 90%;
    max-width: 200px;
  }

  .slogan-image {
    padding: 10px 5px;
  }
}


@media (max-width: 350px) {
  .search-box {
    position: relative;
    width: 100%;
  }

  .search-box input {
    width: 100%;
    padding-right: 80px; /* Button ke width ke liye jagah chhodo */
    font-size: 0.75rem;
    height: 36px; /* jo height tum use kar rahe ho, same rakh sakte ho */
    box-sizing: border-box;
  }

  .search-box button {
    position: absolute;
    right: 4px; /* input ke andar right side */
    top: 50%;
    transform: translateY(-50%); /* vertically center align */
    height: 28px; /* button ki height set karo input se thodi chhoti ya same */
    padding: 6px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
  }
}
