* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

a {
    color: white;
    font-family: Garamond;
}
a:visited {
    color:white;
}
a:hover {
    color: #6F86FF;
}

h1{
    text-decoration: underline;
}

body {
    margin: 0;
    /* font-family: Arial, sans-serif; */
    /* background: linear-gradient(135deg, #2e7d75, #4db6ac); */
    background: linear-gradient(135deg, #1565c0, #00897b, #6a1b9a);
}

/* body:hover{
    background-color: beige;
} */

/* body:hover nav {
    background-color: beige;
} */

main{
    /* position: relative; */
    z-index: 1;
}

.off-screen-menu {
    background-color:black;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    text-align: center;
    font-size: 3rem;
    transition: .3s ease;
    z-index: 2000;
}
.off-screen-menu.active {
    right: 0;
}

nav {
    padding: 1rem;
    display: flex;
    /* background-color:#623e2a; */
    /* background: linear-gradient(135deg, #2e7d75, #4db6ac); */
    /* transition: background-color 5s ease-in; */
    position: relative;
    /* z-index: 1100; */
    background: linear-gradient(135deg, #1565c0, #00897b, #6a1b9a);
    } 

img{
    height: 80px;
}

.off-screen-menu {
    background-color:black;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    text-align: center;
    font-size: 3rem;
    transition: .3s ease;
}
.off-screen-menu.active {
    right: 0;
}

nav {
    padding: 1rem;
    display: flex;
    background-color:#218380;
    transition: background-color 5s ease-in;
}

img{
    height: 80px;
}

.ham-menu {
    height: 50px;
    width: 40px;
    margin-left: auto;
    position: relative;
}
.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: white;
    border-radius: 25px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 75%;
}
.ham-menu.active span {
    background-color: white;
    z-index: 10000;
}
.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}
.page-content{
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.page-content.shift {
    transform: translateX(-225px);
}

.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
  padding-top: 30px;
  z-index: 1;
}

.mySlides {
  display: none;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

h1{
    font-size: 45px;
    text-align: center;
    text-decoration: underline;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.2);
    transition: all 0.4s ease;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;

     opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0px 15px 35px rgba(0,0,0,0.3);
    box-shadow: 0 0 25px rgba(255,255,255,0.3);
}

.card p {
    font-size: 16px;
    line-height: 1.5;
}

.card button {
    margin-top: 15px;
    padding: 12px;
    border: none;
    background: linear-gradient(45deg, #2e7d75, #4db6ac);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

.card button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #1f5c56, #3aa89f);
}

.card-img {
    height: 160px;
    border-radius: 15px;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.Prayukti {
    background-image: url("Images/P3.JPG");
}

.St {
    background-image: url("Images/STEM\ 3.jpg");
}

.Sp {
    background-image: url("Images/SP\ 3.JPG");
}

.gk {
    background-image: url("Images/GK\ 1.jpg");
}

.pa {
    background-image: url("Images/PA\ 1.jpg");
}

.card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    border-radius: 15px;
}

.card-img {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 10px;
}

.card-img h3 {
    color: white;
    z-index: 2;
    font-size: 20px;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px;
    text-decoration: none;
    background: linear-gradient(45deg, #2e7d75, #4db6ac);
    color: white;
    border-radius: 10px;
    transition: 0.3s;
    text-align: center;
}

.btn:hover {
    transform: scale(1.05);
}

footer{
    text-align: center;
    font-weight: 500;
    font-family: Arial, Helvetica, sans-serif;
}

small{
font-size: 22px;
font-family: Garamond;
}