/** video-section **/

.video-section {
  position: relative;
  overflow: hidden; /* Keep this to contain absolute elements like bg-layer */
  padding: 145px 0px;
  background-color: #0E1136; /* Add a fallback background color */
}

/* Optional: If you have a background image apply it here */
/* .video-section {
  background-image: url('path/to/your/background-image.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
} */

.video-section .bg-layer:before {
  position: absolute;
  content: '';
  /* Use rgba for background color with opacity */
  background: rgba(14, 17, 54, 0.6); /* #0E1136 with 60% opacity */
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  z-index: 1; /* Ensure overlay is behind content */
}

.video-section .inner-box {
  position: relative; /* Needed for z-index stacking context */
  display: block;
  max-width: 1090px;
  margin-left: auto;  /* Center the box on larger screens */
  margin-right: auto; /* Center the box on larger screens */
  padding: 0 15px; /* Add some horizontal padding for smaller screens */
  box-sizing: border-box;
  z-index: 2; /* Ensure content is above overlay */
}

/* --- Button Base Styles --- */
.video-section .inner-box .video-btn {
  position: absolute;
  top: 50%; /* Position relative to vertical center */
  transform: translateY(-50%); /* Adjust vertically */
  right: 200px; /* Position on the right */
  /* Remove fixed dimensions here if they cause issues, let 'a' define size */
  z-index: 3; /* Ensure button is above other content */
}

.video-section .inner-box .video-btn a {
  position: relative; /* Keep if needed for other pseudo-elements or children */
  display: inline-flex; /* CHANGE: Use inline-flex to make it a flex container */
  align-items: center;  /* ADD: Vertically center flex items (the icon) */
  justify-content: center; /* ADD: Horizontally center flex items (the icon) */
  width: 100px;
  height: 100px;
  /* line-height: 100px; <-- REMOVE this, flexbox handles centering now */
  font-size: 40px; /* This sets the size of the icon */
  color: #fff;
  /* text-align: center; <-- REMOVE this, flexbox handles centering now */
  border-radius: 50%;
  background: var(--theme-color);
  transition: background-color 0.3s ease;
  text-decoration: none; /* Good practice for linked buttons */
}

.video-section .inner-box .video-btn a:hover {
  background: #darker-theme-color; /* Replace with actual darker shade */
}

/* --- Heading --- */
.video-section .inner-box h2 {
  display: block;
  font-size: 64px;
  line-height: 1.2; /* Use relative line-height */
  color: #fff;
  font-weight: 700;
  margin-bottom: 30px; /* Reduce margin slightly */
  max-width: 70%; /* Prevent text from overlapping button on large screens */
}

/* --- Decorative Elements --- */
.video-section .inner-box .shape {
  position: absolute;
  right: 400px; /* Adjust as needed */
  bottom: 0px;
  width: 278px;
  height: 139px;
  background-repeat: no-repeat;
  z-index: 1; /* Below content but above overlay */
  /* background-image: url('path/to/shape.png'); Add your image */
}

.video-section .image-layer {
  position: absolute;
  right: 60px;
  bottom: 0px;
  z-index: 1;
  /* Add image dimensions or content */
}

/* --- Alternate Style --- */
.video-section.alternat-2 {
  overflow: visible;
  padding: 0; /* Adjust padding if needed for this style */
}

.video-section.alternat-2 .bg-layer {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left center;
}
.video-section.alternat-2 .bg-layer:before {
    display: none; /* Hide the overlay if the background image is primary */
}
.video-section.alternat-2 .inner-box {
    padding: 100px 15px; /* Add padding back if needed */
}


.rtl .video-section .inner-box .video-btn {
  right: inherit;
  left: 0px;
}

.rtl .video-section .inner-box .shape {
  right: inherit;
  left: 400px;
}

.rtl .video-section .image-layer {
  right: inherit;
  left: 60px;
}

.rtl .video-section .inner-box h2 {
    max-width: 100%; /* Reset max-width */
    padding-right: 130px; /* Add padding to prevent overlap with button on left */
}


/** RESPONSIVE-CSS **/

/* --- Large Desktops --- */
@media only screen and (max-width: 1200px) {
  .video-section .image-layer {
    display: none;
  }
  .video-section .inner-box h2 {
    max-width: 65%;
    font-size: 54px;
  }
  .video-section .inner-box .video-btn {
    right: 30px; /* Bring button slightly inwards */
  }
  .video-section .inner-box .shape {
      right: 250px; /* Adjust shape */
  }
  .rtl .video-section .inner-box h2 {
      padding-right: 0;
      padding-left: 130px; /* Adjust padding for RTL */
  }
   .rtl .video-section .inner-box .shape {
      left: 250px; /* Adjust shape for RTL */
  }
}

/* --- Desktops & Tablets --- */
@media only screen and (max-width: 991px) {
  .video-section {
    padding: 100px 0px; /* Reduce padding */
  }

  .video-section .inner-box {
      max-width: 95%; /* Allow box to be wider */
      padding: 0 20px; /* Adjust padding */
      display: flex; /* Use flexbox for alignment */
      flex-direction: column; /* Stack items vertically */
      align-items: center; /* Center items horizontally */
      text-align: center; /* Center text within the box */
  }

  .video-section .inner-box h2 {
    max-width: 100%; /* Allow heading to take full width */
    font-size: 48px;
    margin-bottom: 40px; /* Space below heading */
    order: 1; /* Ensure heading comes before button */
  }

  .video-section .inner-box h2 br {
    display: none; /* Hide manual line breaks */
  }

  .video-section .inner-box .video-btn {
    position: relative; /* Change to relative positioning */
    top: auto;         /* Reset absolute positioning */
    right: auto;       /* Reset absolute positioning */
    transform: none;   /* Reset transform */
    margin-top: 0;    /* Remove top margin if any */
    margin-bottom: 30px; /* Add space below button */
    order: 2; /* Ensure button comes after heading */
  }

  /* Ensure the 'a' tag doesn't have leftover absolute styles */
  .video-section .inner-box .video-btn a {
    /* No specific changes needed here unless overriding base styles */
  }

  .video-section .inner-box .shape {
    display: none; /* Hide shape earlier */
  }
   .rtl .video-section .inner-box h2 {
      padding-left: 0; /* Reset RTL padding */
  }
}


/* --- Mobile Devices --- */
@media only screen and (max-width: 767px) {
  .video-section {
    padding: 80px 0px 60px 0px; /* Further reduce padding */
    min-height: auto; /* Remove fixed/min height, let content define it */
    /* display: flex properties are inherited from 991px if needed, but potentially not necessary now */
    display: block; /* Revert to block if flexbox isn't needed for centering the section itself */
  }

  .video-section .inner-box {
    /* Flex properties from 991px should still center content */
    /* align-items: center; */
    /* text-align: center; */
    padding: 0 15px; /* Standard mobile padding */
  }

  .video-section .inner-box h2 {
    font-size: 36px; /* Smaller font size for mobile */
    line-height: 1.3; /* Adjust line height */
    margin-bottom: 30px; /* Adjust spacing */
  }

  .video-section .inner-box .video-btn {
     margin-bottom: 20px; /* Adjust spacing */
     /* Ensure it's centered via flexbox on inner-box or text-align */
  }

   .video-section .inner-box .video-btn a {
     width: 80px; /* Slightly smaller button */
     height: 80px;
     line-height: 80px;
     font-size: 30px;
   }

  /* .video-section .inner-box .shape is already display: none */
}

/* --- Smaller Mobile Devices --- */
@media only screen and (max-width: 599px) {
    .video-section .inner-box h2 {
        font-size: 30px; /* Even smaller font size */
    }
     .video-section .inner-box .video-btn a {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 26px;
   }
}

/* @media only screen and (max-width: 499px){ } */
/* Add specific styles for very small screens if needed */