/* videobox.css */

/* Container: Arrange boxes side by side on desktop */
.videobox-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
  }
  
  /* Common styles for each box */
  .videobox {
    position: relative; /* new: enable absolute positioning context */
    padding-top: 60px;  /* new: create room for the icon above content */
    flex: 1;
    border: 0px solid; /* Border color will be set by specific classes below */
    border-radius: 10px; /* Use your main.css radius if needed */
    padding: 20px;
    text-align: center;
    background-color: transparent; /* No background fill */
    min-width: 200px;

    display: flex;  
    flex-direction: column;
  }
  
  /* Specific colored outlines */
  .videobox-blue {
    border-color: #bedbff; /* Blue */
    border-color: white; /* Blue */
    background-color: rgba(190, 219, 255, 0.2); 
  }
  
  .videobox-yellow {
    border-color: #ffe9be; /* Green */
    border-color: white; /* Blue */
    background-color: rgba(255, 233, 190, 0.2);
  }
  
  .videobox-pink {
    border-color: #ffbecc; /* Orange */
    border-color: white; /* Blue */
    background-color: rgba(255, 190, 204, 0.2);
  }

.videobox-blue h2 {
    color: #bedbff; /* Blue */
    /* background: rgba(190, 219, 255, 0.2); */
    padding: 5px 10px; /* Add some padding for the highlight */
    border-radius: 5px; /* Rounded corners for the highlight */
}

.videobox-yellow h2 {
    color: #ffe9be; /* Yellow */
    /* background: rgba(255, 233, 190, 0.2); */
    padding: 5px 10px; /* Add some padding for the highlight */
    border-radius: 5px; /* Rounded corners for the highlight */
}

.videobox-pink h2 {
    color: #ffbecc; /* Pink */
    /* background: rgba(255, 190, 204, 0.2); */
    padding: 5px 10px; /* Add some padding for the highlight */
    border-radius: 5px; /* Rounded corners for the highlight */
}
  /* updated icon style */
  .videobox-icon {
    width: 80px;
    height: auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 0;
  }


  /* Headline styling */
  .videobox h2 {
    font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    margin-top: -90px; /* Negative margin to move the headline up into the video area */
    font-size: 2.4rem;
    margin-bottom: 10px;
    min-height: 3em; /* new: fixed height to accommodate two lines */
    display: flex;  /* new: enable flex layout */
    align-items: center; /* new: vertically center the text */
    justify-content: center; /* new: horizontally center one-line headlines */
    position: relative; /* Ensure it's above other elements */
    z-index: 10; /* Make sure the headline appears above the video/overlay */
  }
    /* Headline styling */
    .videobox h3 {
      font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
      margin-top: -45px; /* Negative margin to move the headline up into the video area */
      font-size: 1.4rem;
      margin-bottom: 10px;
      min-height: 2em; /* new: fixed height to accommodate two lines */
      display: flex;  /* new: enable flex layout */
      align-items: center; /* new: vertically center the text */
      justify-content: center; /* new: horizontally center one-line headlines */
      position: relative; /* Ensure it's above other elements */
      z-index: 10; /* Make sure the headline appears above the video/overlay */
    }
    
  /* Paragraph styling */
  .videobox p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
  
  /* Responsive: Stack boxes on smaller screens */
  @media (max-width: 900px) {
    .videobox-container {
      flex-direction: column;
    }
  }

.videobox-video {
    width: 100%;
    aspect-ratio: 1 / 1; /* Force square format */
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0; /* Preserve rounded corners */
}

/* Container for video and overlay */
.video-container {
  position: relative;
  width: calc(100% + 40px);
  margin: -20px -20px 10px -20px;
}

/* Style for gradient overlay */
.video-overlay {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  pointer-events: none; /* Allow clicks to pass through to video */
  border-radius: 0; /* Remove all rounded corners from the overlay */
}

/* CTA button container */
.videobox-cta-container {
  margin-top: auto; /* Push to bottom of flex container */
  text-align: center;
  padding: 20px 0;
}

/* CTA button styling - based on .learn-more from main.css */
.videobox-cta {
  margin-top: 10px;
  min-width: 150px;
  display: inline-block;
  padding: 10px 15px;
  background-color: white;
  color: black;
  text-decoration: none;
  font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
  font-size: 0.9em;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

/* Regular button hover effect */
.videobox-cta:hover {
  background-color: pink;
  text-decoration: none;
}

/* Coming Soon button styles - greyed out */
.videobox-cta-greyed {
  background-color: #888;
  color: #ddd;
  cursor: default;
  opacity: 0.7;
}

/* Disable hover effect on Coming Soon buttons */
.videobox-cta-greyed:hover {
  background-color: #888;
}

/* Style for links */
a.videobox-cta {
  text-decoration: none;
}