.video-grid.front-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1em 2em;
}

ul.video-list {
  display: flexbox;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

li.video {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  width: 33.333333333%;
  width: -webkit-calc(100% / 3);
  width: calc(100% / 3);
  border: solid 0.2em transparent;

  & a {
    outline: none;
  }

  &:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.15s;
  }

  & figure {
    display: block;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    & img {
      display: block;
      max-width: 100%;
      height: auto;
      opacity: 0;
      transform: scale(0.5);
      transition: all 0.2s;
    }

    & figcaption {
      position: absolute;
      bottom: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      font-size: 1.4rem;
      font-weight: 600;
      padding: 1rem;
      transform: translateY(0);
      opacity: 1;
      transition: all 0.2s;
    }
  }

  &:hover {
    & figure {
      & img {
        opacity: 1;
        transform: scale(1);
      }

      & figcaption {
        opacity: 0;
        transform: translateY(50%);
      }
    }
  }

  &:hover:before {
    background-color: rgba(0, 0, 0, 0.3);
  }
}

@media screen and (max-width: 800px) {
  li.video {
    width: 50%;
    width: -webkit-calc(100% / 2);
    width: calc(100% / 2);
  }
}

@media screen and (max-width: 640px) {
  li.video {
    width: 100%;
  }
}

/**
 * Pen styles
 */
html {
  box-sizing: border-box;
  height: 100%;
  overflow-y: scroll;
  font-size: 62.5%;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #444;
  font-family:
    'Open Sans',
    Arial,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen-Sans,
    Ubuntu,
    Cantarell,
    'Helvetica Neue',
    sans-serif;
  font-size: 1.8rem;
  line-height: 1.2;
}

main {
  padding: 2rem 0;
}

article {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1em 2em;
}

/* travel packages css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700;800&display=swap');
/* Reset default styles for ul and li */
ul,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Main container styles */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Adjust the gap between cards */
  padding: 20px; /* Add padding around the container */
}

/* Individual card styles */
.card-1 {
  position: relative;
  width: 400px; /* Adjust card width as needed */
  height: 500px; /* Adjust card height as needed */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.card-1:hover {
  transform: translateY(-5px);
}

img {
  width: 100%;
  height: 70%; /* Adjust image height within the card */
  object-fit: cover;
  border-radius: 4px 4px 0 0; /* Rounded corners for top of image */
}

.intro {
  position: absolute;
  height: 80px;
  width: 400px;
  bottom: 0;
  overflow: hidden;
  padding: 10px;
  color: #fff;
  background-color: rgba(27, 27, 27, 0.5);
  transition: 0.4s ease-in-out;
}

.text-h1 {
  margin-bottom: 10px;
  font-size: 16px;
  text-transform: uppercase;
}

.text-p {
  font-size: 16px;
  opacity: 0; /* Initially hide description */
  transition: opacity 0.3s ease-in-out;
  text-align: justify;
  padding-right: 15px;
}

.card-1:hover .intro {
  height: 280px;
  bottom: 0;
  background-color: #000;
}

.card-1:hover .text-p {
  opacity: 1; /* Show description on hover */
}

/* Media query for responsiveness */
@media (max-width: 768px) {
  .card-1 {
    width: 90%; /* Adjust card width on smaller screens */
    max-width: 300px; /* Set maximum width for smaller screens */
  }
  .text-p {
    text-align: justify;
    margin-right: 100px;
  }
}

/* privacy policy css */

.container-00 {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: black;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}
h1,
h2,
h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333;
}
ul {
  list-style: none;
  padding-left: 0;
}
ul li {
  margin-bottom: 10px;
}
.contact-info {
  margin-top: 30px;
}
.contact-info a {
  color: #007bff;
  text-decoration: none;
}
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 18px;
  }
}

/* Recommended Places */

.tabs {
  display: flex;
  align-content: center;
  padding: 0 0px;
  border-bottom: 1px solid #eeff00;
  position: relative;
  max-width: 1080px;
  margin: auto;
}

.tab {
  flex: 1;
  padding: 15px 20px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover,
.tab.active {
  color: #eeff00;
}

.tab.active {
  border-bottom: 3px solid #eeff00;
}

.tab-content {
  padding: 20px;
}

.content {
  margin: auto;
  display: none;
  padding: 0 150px;
  padding-top: 20px;
}

.content.active {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
    padding: 0; /* Remove padding on mobile view */
    border-bottom: none;
  }

  .tab {
    border-bottom: 1px solid #444;
  }

  .tab.active {
    border-bottom: none;
    border-right: 3px solid #eeff00;
  }
  .content {
    padding: 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tabs {
    padding: 0 10px; /* Reduced padding for tablet view */
  }

  .tab {
    padding: 12px 15px; /* Adjust padding for tablet view */
  }

  .tab-content {
    padding: 15px; /* Adjust content padding for tablet view */
  }
  .content {
    padding: 0;
  }
}

.video-grid.recommended-page {
  margin: 0 auto;
  padding: 1em 2em;
}

ul.video-list-1 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

li.video-1 {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  width: 25%;
  width: -webkit-calc(100% / 3);
  width: calc(100% / 3);
  border: solid 0.2em transparent;

  & a {
    outline: none;
  }

  &:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.15s;
  }

  & figure {
    display: block;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    & img {
      display: block;
      max-width: 100%;
      height: auto;
      opacity: 0;
      transform: scale(0.5);
      transition: all 0.2s;
    }

    & figcaption {
      position: absolute;
      bottom: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      font-size: 1.4rem;
      font-weight: 600;
      padding: 1rem;
      transform: translateY(0);
      opacity: 1;
      transition: all 0.2s;
    }
  }

  &:hover {
    & figure {
      & img {
        opacity: 1;
        transform: scale(1);
      }

      & figcaption {
        opacity: 0;
        transform: translateY(50%);
      }
    }
  }

  &:hover:before {
    background-color: rgba(0, 0, 0, 0.3);
  }
}

@media screen and (max-width: 1400px) {
  li.video-1 {
    width: 25%;
    width: -webkit-calc(100% / 4);
    width: calc(100% / 4);
  }
}

@media screen and (max-width: 800px) {
  li.video-1 {
    width: 50%;
    width: -webkit-calc(100% / 2);
    width: calc(100% / 2);
  }
}

@media screen and (max-width: 640px) {
  li.video-1 {
    width: 100%;
  }
}
