* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
  }

  .body-margin {
    margin: 0 150px;
  }
  
  :root {
    --bg-color:linear-gradient(to left, #850101, #000);
    --main-color2: rgb(231, 226, 226);
    --text: white;
    --shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    --exra-color: rgb(185, 185, 185);
    --bg-color2: white;
    --text-color2: black;
    --main-color: #7D0000;
    --primary_color: white;
    --button: rgb(139, 8, 8);
    --secondry: rgb(219, 87, 10);
    --head: "Poppins", sans-serif;
  }
  
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.8rem;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  }
  
  .header.sticky {
    background: var(--text);
  }
  
  .logo {
    position: relative;
    font-size: 2.5rem;
    color: var(--text);
    font-weight: 600;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  }
  
  .navbar {
    position: relative;
  
  }
  
  .navbar a {
    font-size: 1.2rem;
    color: black;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-left: 3.5rem;
    transition: .3s;
  }
  
  
  
  .navbar a:hover,
  .navbar a.active {
    color: rgb(104, 101, 101);
  }
  
  .navbar a.active:hover {
    color: var(--text);
  }
  
  #menu-icon {
    position: relative;
    font-size: 2.6rem;
    color: black;
    cursor: pointer;
    display: none;
  }
  
  .logo .animate,
  .navbar .animate,
  #menu-icon .animate {
    animation: showRight 1s ease forwards;
    animation-delay: calc(0.3s * var(--i));
  }
  
  
  .logo .animate,
  .navbar .animate,
  #menu-icon .animate {
    animation: showRight 4s ease forwards;
    animation-delay: calc(0.3s * var(--i));
  }
  
  @media (max-width: 768px) {
    .header {
      background: white;
    }
    
    #menu-icon {
      display: block;
    }
    
    .navbar {
      position: absolute;
      top: 100%;
      left: -100%;
      width: 100%;
      padding: 1rem 4%;
      background: white;
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
      z-index: 1;
      transition: 0.25s ease;
      transition-delay: 0.25s;
    }
    
    .navbar.active {
      left: 0;
      transition-delay: 0s;
    }
    
    .navbar .active-nav {
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: white;
      border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
      z-index: -1;
      transition: 0.25s ease;
      transition-delay: 0s;
    }
    
    .navbar.active .active-nav {
      left: 0;
      transition-delay: 0.25s;
    }
    
    .navbar a {
      display: block;
      font-size: 1.2rem;
      margin: 3rem 0;
      transform: translateX(-20rem);
      transition: 0.25s ease;
      transition-delay: 0s;
    }
    
    .navbar.active a {
      transform: translateX(0);
      transition-delay: 0.25s;
    }
  }

  div.landing {
    background-image: url(../assets/paul-esch-laurent-6MeMUw5KDss-unsplash.jpg);
    background-size: cover;
    background-position: center;
    height: 78vh;
    width: 100%;
    position: relative;
    text-align: center;
    color: var(--primary_color);
  }
  
  div.backdrop {
    height: 78vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  h1.landh1 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 45px;
    font-weight: bolder;
    position: relative;
    top: 230px;
  }
  
  p.landp {
    font-size: 18px;
    margin-top: 40px;
    color: rgb(182, 178, 178);
    font-weight: lighter;
    font-style: italic;
    position: relative;
    top: 270px;
  }

  ::selection {
    color: #fff;
    background: var(--button);
  }
  
  .wrapper {
    margin-left: 100px;
    position: relative;
    top: 120px;
    margin-left: 160px;
  
  
  }
  
  .wrapper nav {
    display: flex;
    justify-content: center;
  }
  
  .wrapper .items {
    display: flex;
    max-width: 720px;
    width: 100%;
    justify-content: space-between;
  }
  
  .items span {
    padding: 7px 25px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    color: var(--secondry);
    border-radius: 50px;
    border: 2px solid var(--secondry);
    transition: all 0.3s ease;
  }
  
  .items span.active,
  .items span:hover {
    color: #fff;
    background: var(--secondry);
  }
  
  .gallery {
    display: flex;
    position: relative;
    top: 50px;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  
  }
  
  img.imgga {
    width: 400px;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
    /* margin-bottom: -130px; */
  
  }
  
  .gallery .image span {
    display: flex;
    width: 100%;
    overflow: hidden;
  }
  
  .gallery .image img {
    width: 100%;
    vertical-align: middle;
    transition: all 0.3s ease;
  }
  
  .gallery .image:hover img {
    transform: scale(1.1);
  }
  
  .gallery .image.hide {
    display: none;
  }
  
  .gallery .image.show {
    animation: animate 0.4s ease;
  }
  
  @keyframes animate {
    0% {
      transform: scale(0.5);
    }
  
    100% {
      transform: scale(1);
    }
  }

  .preview-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    max-width: 700px;
    width: 100%;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    padding: 0 5px 5px 5px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
  }
  
  .preview-box.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.3s ease;
  }
  
  .preview-box .details {
    padding: 13px 15px 13px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .details .title {
    display: flex;
    font-size: 18px;
    font-weight: 400;
  }
  
  .details .title p {
    font-weight: 500;
    margin-left: 5px;
  }
  
  .details .icon {
    color: #007bff;
    font-style: 22px;
    cursor: pointer;
  }
  
  .preview-box .image-box {
    width: 100%;
    display: flex;
  }
  
  .image-box img {
    width: 100%;
    border-radius: 0 0 3px 3px;
  }
  
  .shadow {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    display: none;
    background: rgba(0, 0, 0, 0.4);
  }
  
  .shadow.show {
    display: block;
  }
  
  @media (max-width: 1000px) {
    .gallery .image {
      width: calc(100% / 3);
    }
  }
  
  @media (max-width: 800px) {
    .gallery .image {
      width: calc(100% / 2);
    }
  }
  
  @media (max-width: 700px) {
    .wrapper nav .items {
      max-width: 600px;
    }
  
    nav .items span {
      padding: 7px 15px;
    }
  }
  
  @media (max-width: 600px) {
    .wrapper {
      margin: 30px auto;
    }
  
    .wrapper nav .items {
      flex-wrap: wrap;
      justify-content: center;
    }
  
    nav .items span {
      margin: 5px;
    }
  
    .gallery .image {
      width: 100%;
    }
  }

  div.events {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 8%;
  }
  
  .gallery2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    position: relative;
    top: 300px;
  }
  
  
  img.galimg{
    width: 100%;
    height: 400px;
    object-fit: cover;
  }
  
  
  div.section{
    position: relative;
    top: 260px;
  
  
  }
  
  p.eventp{
    text-align: center;
    font-style: italic;
    font-size: 17px;
    color: rgb(170, 160, 160);
  
  }
  
  h1.eventh1{
    text-align: center;
    color: var(--button);
  }

  footer {
    width: 100%;
    position: relative; /* change from absolute to relative */
    background: linear-gradient(to left, #850101, #000);
    color: #fff;
    padding: 100px 0 30px;
    border-top-left-radius: 125px;
    font-size: 13px;
    line-height: 20px;
    margin-top: 25rem;
  }
  
  .row {
    width: 85%;
    max-width: 1200px; /* Limit maximum width */
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }

  #log{
    margin-top:-5% ;
  }
  
  .col {
    flex-basis: 25%;
    padding: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .col:nth-child(2), .col:nth-child(3) {
    flex-basis: 15%;
  }
  
  .logo {
    width: 80px;
    margin-top: 20px; /* Adjust margin for smaller screens */
  }
  
  .col h3 {
    margin-bottom: 20px;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .email-id {
    border-bottom: 1px solid #ccc;
    margin: 10px 0;
  }

  #hr{
    border: 0;
    border-bottom: 2px solid #ccc;
    margin: 20px auto;
    margin-left: 5px;
  }
  
  ul li {
    margin-bottom: 12px;
  }
  
  ul li a {
    text-decoration: none;
    color: #ccc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  form {
    margin-bottom: 30px; /* Adjust margin for smaller screens */
  }
  
  form input {
    width: 100%;
    background: transparent;
    color: #ccc;
    border: 0;
    outline: none;
  }
  
  hr {
    width: 90%;
    border: 0;
    border-bottom: 1px solid #ccc;
    margin: 20px auto;
  }
  
  .copyright {
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .underline {
    width: 100%;
    height: 5px;
    background: #767676;
    border-radius: 3px;
    position: absolute;
    top: 25px;
    left: 0;
    overflow: hidden;
  }
  
  .underline span {
    width: 15px;
    height: 100%;
    background: #fff;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 10px;
    animation: moving 2s linear infinite;
  }
  
  @keyframes moving {
    0% {
        left: -20px;
    }
    100% {
        left: 100%;
    }
  }
  
  @media (max-width: 900px) {
    .row {
        justify-content: center;
    }
  }
  
  @media (max-width: 700px) {
    .col {
        flex-basis: 45%; /* Adjust column width for smaller screens */
        text-align: center;
    }
  }
  
  @media (max-width: 500px) {
    .col {
        flex-basis: 100%; /* Full width for smallest screens */
        margin-bottom: 30px;
    }
  
    .logo {
        width: 60px;
    }
  
    .underline {
        top: 20px;
    }
    #col2{
        margin-left: -10%;
    }
    #col1{
        margin-left: 30%;
    }
  }