*{
    margin: 0;
    padding: 0;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}
a{
  text-decoration: none;
}

body{
  background-color: #EEEDEB;
}

.box-1{
    /* background-color: #324759; */
    background-color: #074973;
    padding: 20px;
}
/* 
.box-2{
    background-color: #586F8C;
    background-color: #0c5786;
}


.box-3{
    background-color: #365B73;
    background-color: #1F598C;
    background-color: #14679b;
} */


.box-1, .semesterHeading, .semester{
  text-align: center;
  color: #EEEDEB;
}


.semesterHeading{
  background-color: #586F8C;
  padding: 15px;
  font-family:cursive;
}

.semester h2{
  margin-bottom: 10px;
}


.aboveMargin{
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.3);
  margin-top: 25px;
}


.semesterHeading:hover{
  background-color: #617b9c;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}


/* Container Styling */
.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 20px;
}

/* Semester Section */
.semester {
  background: rgb(100, 118, 134);
  padding: 20px;
  border-radius: 10px;
  width: 43%;
  min-width: 300px;
}

.semester h2{
  font-size: 30px;
}


/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  justify-content: center;
}

/* Card Styling */
.card {
  background: url("/images/background2.avif") no-repeat center center;
  background-size: cover;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  
}

/* Header Styling */
.subject {
  font-size: 16px;
  color: rgb(26, 0, 130);
  margin: 5px;
  margin-bottom: 10px;
}

/* Code style */
.code{
  font-size: 14px;
  margin-bottom: 6px;
  color: rgb(0, 121, 40);
}

.card ul li{
  list-style: none;
  text-decoration: none;
}

/* List Styling */
.card ul li a {
  list-style: none;
  padding: 0;
  color: orangered;
  font-weight: bold;
}

.card li {
  margin: 5px 0;
}

.card ul li a::before {
  content: "✔ "; /* You can change this to any symbol, like "✔", "➤", or "➔" */
  color: orangered; /* Change the color if needed */
  font-size: 1.2em; /* Adjust the size */
}
.card ul li a:hover, .card ul li a:hover::before{
  color: olivedrab;
  text-decoration: none;
}


/* jinme link na ho usse disable krne k liy */

.card a.disabled {
  color: gray;
  pointer-events: none; /* disables click */
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.6;
}

.card a.disabled:hover {
  color: gray;
  background-color: transparent;
}

/* ye card container 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;
  }
}


/* Responsive Design */
@media (max-width: 827px) {
  .container {
      flex-direction: column;
      align-items: center;
  }

  .semester {
      width: 90%;
  }
}

@media (max-width: 680px) {
  .box-1 h1{
    font-size: 30px;
  }

  .semesterHeading{
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .grid {
      grid-template-columns: repeat(1, 1fr);
  }

  .box-1 h1{
    font-size: 20px;
  }

  .semester h2{
    font-size: 18px;
  }
}
@media (max-width: 380px){
  .container{
    overflow: hidden;
  }

  .semester{
    min-width: 150px;
  }
}
