/* 
Steel Minions Website CSS
Note: All colour schemes are based on the new Steel Minions colour palette.
This palette was made by our banner designers Molly and Brad

For any questions about the CSS styling, please refer to the SOP document.
*/

/* Main Styling */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #4c9eec !important;
  background-image:
    linear-gradient(white 1px, transparent 1px),
    linear-gradient(90deg, white 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size:
    40px 40px,
    40px 40px,
    20px 20px,
    20px 20px;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0;
}

a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus {
  outline: 3px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  min-height: 44px;
  padding: 0.5rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
  border-color: #333;
}

/* Custom styling */

/*
Header, Footer and container styling
*/
.header-background {
  background: #3967b1;
  color: white;
  padding: 40px 20px 80px;
  box-shadow: 1px 15px 15px #3967b1c3;
  text-align: center;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
}

footer {
  background: linear-gradient(
    90deg,
    rgba(218, 157, 46, 1) 0%,
    rgba(237, 81, 40, 1) 100%
  );
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.containers-background {
  background: #3967b1;
  color: white;
  padding: 20px;
  text-align: center;
}

.fixed-400 {
  height: 400px;
  overflow: hidden;
}

.content-flex {
  display: flex;
  height: 100%;
}

/* LEFT SIDE */
.left-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.text-area {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
}

.button-wrapper {
  display: flex;
  justify-content: center;
}

/* RIGHT SIDE IMAGE */
.right-side {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.img-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1;
  min-width: 0;
}

/* 
Border
*/
.border-custom {
  border: 2px solid;
  border-image: linear-gradient(
      90deg,
      rgba(218, 157, 46, 1) 0%,
      rgba(237, 81, 40, 1) 100%
    )
    1;
}

.border-custom-top {
  border-top: 5px solid;
  border-image: linear-gradient(
      90deg,
      rgba(218, 157, 46, 1) 0%,
      rgba(237, 81, 40, 1) 100%
    )
    1;
}

.border-custom-bottom {
  border-bottom: 5px solid;
  border-image: linear-gradient(
      90deg,
      rgba(218, 157, 46, 1) 0%,
      rgba(237, 81, 40, 1) 100%
    )
    1;
}

.border-custom-left {
  border-left: 5px solid;
  border-image: linear-gradient(
      90deg,
      rgba(218, 157, 46, 1) 0%,
      rgba(237, 81, 40, 1) 100%
    )
    1;
}

.border-custom-right {
  border-right: 5px solid;
  border-image: linear-gradient(
      90deg,
      rgba(218, 157, 46, 1) 0%,
      rgba(237, 81, 40, 1) 100%
    )
    1;
}

/*
Button styling using steel minions colour pallent.

*/

.button-custom {
  background-color: #da9d2e;
  color: black;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 4px;
  min-width: 44px;
  min-height: 44px;
  transition: all 0.2s ease;
}

.button-custom:hover {
  background-color: #ed5128;
  color: white;
}

.button-custom:focus {
  outline: 3px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
}

/* Image styling */

@media (min-width: 768px) {
  .header-background img {
    max-width: 500px;
    height: auto;
  }
}

@media (max-width: 767px) {
  .header-background img {
    max-width: 100%;
    height: auto;
  }
}

.header-background a:focus,
footer a:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.header-background button:focus,
footer button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* Video Section */
.video-section {
  position: relative;
  height: 425px;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.overlay-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Feature Sections */
.feature-section {
  padding: 60px 20px !important;
  margin-top: 0 !important;
}

.feature-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-content {
  flex: 1;
  min-width: 0;
}

.feature-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: left;
}

.feature-title,
.feature-text {
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.feature-text {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
}

.feature-text ul li {
  margin-bottom: 0.75rem;
}

.feature-images {
  flex: 1;
  display: flex;
  gap: 15px;
  min-width: 0;
}

.feature-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  flex: 1;
}

.feature-placeholder {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-section p,
.feature-section ul {
  max-width: 65ch;
}

.placeholder-content {
  text-align: left;
}

.placeholder-content h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.placeholder-content ul {
  list-style: none;
  padding: 0;
}

.placeholder-content li {
  padding: 10px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.placeholder-content li:last-child {
  border-bottom: none;
}

.feature-carousel {
  flex: 1;
}

.feature-reverse {
  background: rgba(57, 103, 177, 0.9);
}

.feature-reverse .feature-container {
  flex-direction: row-reverse;
}

/* CTA Section */
.cta-section {
  padding: 80px 20px !important;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: bold;
}

.cta-text {
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.button-lg {
  padding: 15px 40px !important;
  font-size: 1.1rem !important;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list-clean {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-list-clean li {
  margin-bottom: 0.5rem;
  border: none !important;
  padding-bottom: 0 !important;
}

/* Contact Information Styling */
.contact-info {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.contact-item {
  padding: 20px;
  border: 2px solid;
  border-image: linear-gradient(90deg, #da9d2e, #ed5128) 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.contact-value {
  margin: 0;
  font-size: 1rem;
}

.contact-link {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  padding: 2px 8px;
  outline: 3px solid transparent;
  outline-offset: 2px;
}

.contact-link:hover {
  color: #ed5128;
  text-decoration: underline;
}

.contact-link:focus {
  outline: 3px solid #ed5128;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .feature-section {
    padding: 40px 20px !important;
  }

  .feature-container {
    flex-direction: column !important;
    gap: 30px;
  }

  .feature-title {
    font-size: 2rem;
  }

  .feature-images {
    flex-direction: column;
  }

  .feature-img {
    height: 250px;
  }

  .feature-reverse .feature-container {
    flex-direction: column;
  }

  .cta-title {
    font-size: 2rem;
  }
}

/* .carousel */
.carousel {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* .carousel-inner */
.carousel-inner {
  aspect-ratio: 1080 / 1350;
  width: 100%;
  height: auto;
  overflow: hidden;
}

/* .carousel-item */
.carousel-item {
  position: relative;
  display: flex;
}

/* Images */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-indicators {
  gap: 0.5rem;
}

.carousel-indicators button {
  min-width: 44px;
  min-height: 44px;
  padding: 0.375rem 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.carousel-indicators button:focus,
.carousel-indicators button:hover {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.carousel-indicators button.active {
  border: 2px solid rgba(255, 255, 255, 1);
}

.carousel-control-prev,
.carousel-control-next {
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 28px;
  height: 28px;
}

/* RCC Carousel */
.feature-section .row {
  min-height: 100%;
}
/* Re-Center Carousel */
.rcc-carousel {
  height: 100%;
  display: flex;
}

.rcc-carousel .carousel,
.rcc-carousel .carousel-inner,
.rcc-carousel .carousel-item,
.rcc-carousel img {
  height: 100%;
}

.rcc-carousel img {
  object-fit: cover;
  width: 100%;
}



/* Text styling */
.text-custom {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
@media (max-width: 600px) {
  .text-custom {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Even smaller screens: show only 1 line */
@media (max-width: 400px) {
  .text-custom {
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 767px) {
  .content-flex {
    flex-direction: column;
  }

  .right-side {
    flex: 1;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 40px;
  }
}

/* Card */
.card-link-wrapper {
  color: inherit;
}
.card-link-wrapper:hover {
  color: inherit;
}

.card-carousel {
  display: flex;
  justify-content: center;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.card-carousel::-webkit-scrollbar {
  display: none;
}

.card-carousel > a {
  flex: 0 0 auto;
}

.carousel-btn {
  position: absolute;
  top: 40%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 5px 10px;
  cursor: pointer;
  display: none;
}

.left-btn {
  left: -10px;
}
.right-btn {
  right: -10px;
}

@media (min-width: 768px) {
  .carousel-btn {
    display: block;
  }
}
