* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: darkblue;
  padding: 1rem 2rem;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  margin-right: 0.5rem;
  color: #ff6600;
}

.logo h1 {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar li {
  position: relative; 
}

.navbar a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.3rem 0.5rem;
}

.navbar a:hover {
  color: #ff6600;
}

/* Dropdown styles */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: darkblue;
  padding: 0.5rem 0;
  border-radius: 5px;
  z-index: 1;
  min-width: 140px;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.navbar li:hover > .dropdown {
  display: flex;
  flex-direction: column;
}

.dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.dropdown li {
  padding: 0;
}

.dropdown a {
  color: white;
  display: block;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.dropdown a:hover {
  color: white;
  background-color: #ff6600;
}
/* @media (max-width: 768px) {
            .header {
                flex-direction: column;
                padding: 1rem;
            }
            .navbar ul {
                flex-direction: column;
                gap: 0.5rem;
                margin-top: 1rem;
            }
             */
/* ----body---- */

.imagemain{
    max-width:1350px;
    height:auto;
    position: relative;
    top:50px;
    left:85px;
    border-radius: 25px;
    box-shadow: 8px 12px 10px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1) contrast(0.9) saturate(1.2);
}

/* --------past events------- */
.heading1{
  font-family: Arial, sans-serif;
  color: #003049;
  text-align: center;
  font-weight: bold;
  position: relative;
  top:100px;
  /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4); */
}

.block1{
    width:100%;
    height:650px;
    border: 1px solid rgb(255, 255, 255);
    display: flex;
    justify-content:space-evenly;
    position: relative;
    top:150px;
    flex-wrap: wrap;
    gap: -10px -30px;
}

.pic1{
    width:350px;
    height:390px;
    border: 2px solid black;
    box-shadow: 10px 10px 20px -5px rgba(0, 0, 0, 0.25);
    background-image: url("idea_day.jpg");
    background-size: 400px 220px;
    background-repeat: no-repeat;
    text-align: end;
    position: relative;
    left:25px;
}

.past{
  font-family: Arial, sans-serif;
  font-size: large;
  font-weight: bold;
  text-justify: auto;
  color: rgb(0, 0, 0);
  text-align: start;
  position: relative;
  top:-30px;
  left:0px;
}

.more{
  font-family: Arial, sans-serif;
  font-size: 14;
  font-weight: bold;
  text-justify: auto;
  color: #ff6600;
  text-align: start;
  position: relative;
  top:-20px;
  left:0px;
}

.line{
  width: 300px;
  color: #ff6600;
  position: relative;
  left:19px;
}

.day{
  font-family: Arial, sans-serif;
  font-size: large;
  font-weight: bold;
  text-justify: auto;
  color: rgb(0, 0, 0);
  text-align: start;
  position: relative;
  top:10px;
  left:3px;
}
.pic2{
     width:350px;
    height:390px;
    border: 2px solid black;
    box-shadow: 10px 10px 20px -5px rgba(0, 0, 0, 0.25);
    background-image: url("iv.jpg");
    background-size: 400px 220px;
    background-repeat: no-repeat;
    text-align: end;
}

.pic3{
     width:350px;
    height:390px;
    border: 2px solid black;
    box-shadow: 10px 10px 20px -5px rgba(0, 0, 0, 0.25);
    background-image: url("6d.jpg");
    background-size: 400px 220px;
    background-repeat: no-repeat;
    text-align: end;
    position: relative;
    left:-25px;
}

.theory{
  font-family: Arial, sans-serif;
  font-size: 14;
  line-height: 1.4;
  padding: 5px;
  text-align: justify;
  color: rgb(0, 0, 0);
  position: relative;
  top:260px;
  left:1px;
}

.heading2{
  font-family: Arial, sans-serif;
  color:#003049;
  text-align: center;
  font-weight: bold;
  position: relative;
  top:-45px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.filters {
  position: relative;
  top:-5px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.search{
  padding: 10px;
  border: 2px solid #0056b3;
  border-radius: 5px;
  width:200px;
  border-radius: 4px;
  position: relative;
  left:-40px;
}

.date{
  padding: 10px;
  border: 2px solid #0056b3;
  border-radius: 5px;
  width:150px;
  position: relative;
  left:-20px;
}

.date2{
  padding: 10px;
  border: 2px solid #0056b3;
  border-radius: 5px;
  width:150px;
}

.Category{
  padding: 10px;
  border: 2px solid #0056b3;
  border-radius: 5px;
  width:150px;
  position: relative;
  left:20px;
}

.button{
  padding: 10px;
  border: 2px solid #0056b3;
  border-radius: 5px;
  background-color: #0056b3;
  color: white;
  border: none;
  cursor: pointer;
  width:150px;
  position: relative;
  left:40px;
}

.button:hover {
  background-color: #003d80;
  box-shadow: 0 4px 10px rgba(0, 61, 128, 0.5);
}

.block2{
  width:100%;
  height:800px;
  border: 1px solid rgb(255, 255, 255);
  border-bottom: #003d80;
  display: flex;
  justify-content:space-evenly;
  flex-wrap: wrap;
  position: relative;
  top:50px;
}

.image1{
    width:305px;
    height: 350px;
    border: 2px solid black;
    position: relative;
    left:45px;
}

.box{
  width:150;
  height: 30px;
  background-color: #0056b3;
  position: relative;
  top:-15px;
  left:75px;
}

.dateE{
  font-family: Arial, sans-serif;
  /* font-weight: bold; */
  color:white;
  position: relative;
  top:6px;
  left:20px;
}

.name{
  font-family: Arial, sans-serif;
  font-size: large;
  font-weight: bold;
  text-justify: auto;
  color: rgb(0, 0, 0);
  text-align: center;
  position: relative;
  top:-5px;
  left:5px;
}

.register{
  font-family: Arial, sans-serif;
  font-size: 14;
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width:100px;
  height: 35px;
  position: relative;
  left:105px;
  top:0px;
}

.register:hover {
  background-color:orangered;
  box-shadow: 0 4px 10px rgba(187, 99, 5, 0.5);
}

.p{
  position:relative;
  top:-25px;
  left:10px;
}
.venu{
  position:relative;
  top:450px;
  left:10px;
  z-index: 1;
  
}
.image2{
    width:305px;
    height: 350px;
    border: 2px solid black;
    position: relative;
    left:15px;
}

.image3{
    width:305px;
    height: 350px;
    border: 2px solid black;
    position: relative;
    left:-15px;
}

.image4{
    width:305px;
    height: 350px;
    border: 2px solid black;
    position: relative;
    left:-45px;
}

.image5{
    width:305px;
    height: 350px;
    border: 2px solid black;
    position: relative;
    left:45px;
}

.image6{
    width:305px;
    height: 350px;
    border: 2px solid black;
    position: relative;
    left:15px;
}

.image7{
    width:305px;
    height: 350px;
    border: 2px solid black;
    position: relative;
    left:-15px;
}

.image8{
    width:305px;
    height: 350px;
    border: 2px solid black;
    position: relative;
    left:-45px;
}

@media(max-width: 1200px) {
  .imagemain {
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
  }
  .block1 {
    height: auto;
    padding: 20px 0;
    gap: 30px;
  }
  .pic1, .pic2, .pic3 {
    position: static;
    margin: 0 auto;
  }
  
  .block2 {
    height: auto;
    padding: 20px 0;
    gap: 30px;
  }
  
  .image1, .image2, .image3, .image4, 
  .image5, .image6, .image7, .image8 {
    position: static;
    margin: 20px auto;
  }
  
  .box {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .register {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }
  
  .logo {
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .dropdown {
    position: static;
    display: none;
    width: 100%;
  }
  
  .navbar li:hover > .dropdown {
    display: none;
  }
  
  .navbar li:focus-within > .dropdown {
    display: flex;
  }
  
  .filters {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .search, .date, .date2, .Category, .button {
    position: static;
    width: 80%;
    max-width: 300px;
    margin: 5px 0;
  }
  
  .heading1, .heading2 {
    top: 50px;
  }
  
  .theory {
    top: 250px;
  }
  .container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .heading2 {
    margin-bottom: 70px;
  }
  .pic3 {
    margin-left: 175px;
  }
  .block2 {
    margin-bottom: 200px;
  }
  footer {
    margin-bottom: 0px;
    padding: 1rem 0;
  }
  .heading1 {
    margin-top: 200px;
  }
  .imagemain {
    height: 400px;
  }
  .block1 {
    margin-top: none;
  }
}

footer{
  width: 100%;
  background-color: darkblue;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    align-items: flex-start;
  }

  .logo {
    margin-bottom: 1rem;
  }

  .navbar ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}