/**
 * Department Hero Banner Styles
 */

/* View wrapper */
.dept-hero-view {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.dept-hero-view .view-content {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

/* Reset default image styles in view */
.dept-hero-view img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Remove any default margins/padding from picture/img elements */
.dept-hero-banner picture,
.dept-hero-banner img {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Hero Banner Container */
.dept-hero-banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* Responsive hero image - acts as background */
.dept-hero-image,
.dept-hero-banner picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.dept-hero-banner picture img,
.dept-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Gradient overlay from bottom to top */
.dept-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, #0D2625 0%, transparent 100%);
  z-index: 1;
}

/* Content container */
.dept-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 5rem 0;
}

.dept-hero-text {
  text-align: left;
  color: #ffffff;
  max-width: 900px;
}

/* Title styling */
.dept-hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.25rem;
  margin-top: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Subtitle styling */
.dept-hero-subtitle {
  font-size: 1.35rem;
  font-weight: 300;
  font-style: normal;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 0;
  margin-bottom: 0;
  letter-spacing: 0.01em;
  line-height: 1.6;
  max-width: 800px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */

/* Large desktops */
@media (min-width: 1400px) {
  .dept-hero-banner {
    min-height: 550px;
  }

  .dept-hero-title {
    font-size: 4rem;
  }

  .dept-hero-subtitle {
    font-size: 1.5rem;
  }

  .dept-hero-content {
    padding: 6rem 0;
  }
}

/* Full HD (1920px+) */
@media (min-width: 1920px) {
  .dept-hero-banner {
    min-height: 600px;
  }

  .dept-hero-title {
    font-size: 4.5rem;
  }

  .dept-hero-subtitle {
    font-size: 1.65rem;
  }

  .dept-hero-content {
    padding: 7rem 0;
  }

  .dept-hero-text {
    max-width: 1000px;
  }
}

/* QHD (2560px+) */
@media (min-width: 2560px) {
  .dept-hero-banner {
    min-height: 700px;
  }

  .dept-hero-title {
    font-size: 5rem;
  }

  .dept-hero-subtitle {
    font-size: 1.85rem;
  }

  .dept-hero-content {
    padding: 8rem 0;
  }

  .dept-hero-text {
    max-width: 1200px;
  }

  .dept-hero-banner .container {
    max-width: 1920px;
  }
}

/* 4K UHD (3840px+) */
@media (min-width: 3840px) {
  .dept-hero-banner {
    min-height: 900px;
  }

  .dept-hero-title {
    font-size: 6.5rem;
  }

  .dept-hero-subtitle {
    font-size: 2.25rem;
  }

  .dept-hero-content {
    padding: 10rem 0;
  }

  .dept-hero-text {
    max-width: 1600px;
  }

  .dept-hero-banner .container {
    max-width: 2560px;
  }
}

/* Desktop */
@media (max-width: 1199px) {
  .dept-hero-banner {
    min-height: 400px;
  }

  .dept-hero-title {
    font-size: 3rem;
  }

  .dept-hero-subtitle {
    font-size: 1.25rem;
  }

  .dept-hero-content {
    padding: 4.5rem 0;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .dept-hero-banner {
    min-height: 380px;
  }

  .dept-hero-title {
    font-size: 2.5rem;
  }

  .dept-hero-subtitle {
    font-size: 1.15rem;
  }

  .dept-hero-content {
    padding: 4rem 0;
  }

  .dept-hero-text {
  }
}

/* Mobile - Large */
@media (max-width: 767px) {
  .dept-hero-banner {
    min-height: 350px;
  }

  .dept-hero-title {
    font-size: 2rem;
    letter-spacing: -0.01em;
  }

  .dept-hero-subtitle {
    font-size: 1.1rem;
  }

  .dept-hero-content {
    padding: 3rem 0;
  }

  .dept-hero-text {
    max-width: 100%;
  }
}

/* Mobile - Small */
@media (max-width: 575px) {
  .dept-hero-banner {
    min-height: 320px;
  }

  .dept-hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .dept-hero-subtitle {
    font-size: 1rem;
  }

  .dept-hero-content {
    padding: 2.5rem 0;
  }

  .dept-hero-text {
    border-radius: 0;
  }
}

/* Ensure proper container behavior */
.dept-hero-banner .container {
  max-width: 1140px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1400px) {
  .dept-hero-banner .container {
    max-width: 1320px;
  }
}

/* Fix for department banner section */
#dept-banner,
section.dept-banner,
.aes-dept-banner,
.bme-dept-banner,
.chems-dept-banner,
.cee-dept-banner,
.cse-dept-banner,
.ece-dept-banner,
.me-dept-banner,
.te-dept-banner,
.bae-dept-banner {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
