﻿.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.company-logo {
    max-width: 100%;
    padding-inline-end: 1rem;
    margin-bottom: -2rem;
    transition: transform 0.3s ease; /* Added transition for hover */
}

.company-logo:hover {
    transform: scale(1.07); /* Changed to 7% size increase on hover */
}

.home-content-box {
    padding-inline-start: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border: 0.125rem solid var(--color-header);
    border-radius: 1.5rem;
    width: 70%;
    margin-bottom : 1rem;
}

.home-content-box p {
    font-size: 1.38rem;
    text-align: left;
    line-height: 1.6;
    color: var(--color-header);
    text-shadow: 0px 0px 5px var(--shadow-color);
    margin: 0;
}

.video-header {
    width:90%;
    color: var(--color-header); /* Color for video header */
    font-family: var(--font-heading);
    font-size: 3.3rem;
    margin-bottom: 1rem; /* Reduced margin-bottom */
    text-transform: uppercase;
    text-shadow: 0px 0px 10px var(--shadow-color);
}

.youtube-container {
    position: relative;
    width: 75%; /* 25% bigger (104 * 1.25 = 130) */
    padding-bottom: 40%; /* 16:9 aspect ratio (height / width * 100) for 130% width */
    height: 0;
    overflow: hidden;
    border-radius: 1.5rem; /* Curved corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem; /* Space below the video */
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 15px; /* Curved corners */
}

/* --- Styles for Tablets (e.g., iPads) --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .video-header {
        width: 70%; /* Prevents overflow on smaller tablets */
        font-size: 3rem; /* A medium size for tablets */
        text-align: center; /* Ensures the text is centered if it wraps */
    }

    .home-content-box p {
        font-size: 1.4rem; /* Adjust paragraph font size for tablets */
        line-height: 2.8rem; /* Adjust line height for better readability */
    }
    .youtube-container {
        width: 80%; /* Make the video container wider */
        padding-bottom: 45%; /* Adjust aspect ratio for the new width */
        border-radius: 1rem; /* Slightly less curved corners */
    }
}

@media (max-width: 700px) {
  .company-logo {
    margin-bottom: 1rem;
    width: 100%; /* Make the logo larger on mobile */
  }

  .home-content-box {
    width: 80%; /* Use more of the screen width */
    padding: 1rem;
    border-radius: 1rem; /* Slightly less curved corners */
  }

  .home-content-box p {
      font-size: 0.8rem; /* Slightly reduce font size for readability */
      line-height: 1.6rem; /* Adjust line height for better spacing */
  }

  .video-header {
    width: 90%; /* Use full width on mobile */
    font-size: 2rem; /* Make the header smaller to prevent wrapping */
    margin-bottom: 1rem;
  }

  .youtube-container {
    width: 90%; /* Make the video container wider */
    padding-bottom: 50.625%; /* Adjust aspect ratio for the new width */
    border-radius: 1rem; /* Slightly less curved corners */
  }
}