/* =========================== */
/* COMMON PAGE STYLES         */
/* =========================== */

/* Universal Hero Section */
.page-hero {
  position: relative;
  padding-top: 80px;
  height: 400px;
  background-color: var(--shadow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../img/page-hero-bg.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color),
    var(--tertiary-color)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 0 30px;
  text-align: center;
}

.page-title {
  font-size: 4rem;
  font-weight: 300;
  color: var(--light-color);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 6px;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 10px var(--shadow-light);
}

.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 100px;
  height: 4px;
  background-color: var(--primary-color);
  transition: width 0.5s ease;
}

.page-title:hover::after {
  width: 140px;
}

.page-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--secondary-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Global container style */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Section styling */
.section {
  padding: 100px 0;
  position: relative;
}

.section-light {
  background-color: var(--light-color);
}

.section-dark {
  background-color: var(--shadow-color);
  color: var(--light-color);
}

.section-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title {
  font-size: 3.2rem;
  font-weight: 300;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.4s ease;
}

.section-title:hover::after {
  width: 120px;
}

.section-subtitle {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--light-color);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--shadow-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-light);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Divider styling */
.divider {
  height: 6px;
  width: 100%;
  margin: 0;
}

.divider-gradient-right {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color),
    var(--tertiary-color)
  );
}

.divider-gradient-left {
  background: linear-gradient(
    to left,
    var(--primary-color),
    var(--secondary-color),
    var(--tertiary-color)
  );
}

/* Responsive styles */
@media (max-width: 1200px) {
  .page-hero {
    height: 450px;
  }

  .page-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .section {
    padding: 80px 0;
  }

  .page-hero {
    height: 400px;
  }

  .page-title {
    font-size: 3.5rem;
    letter-spacing: 4px;
  }

  .page-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .page-hero {
    height: 350px;
    padding-top: 70px;
  }

  .page-title {
    font-size: 3rem;
    letter-spacing: 3px;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.4rem;
  }

  .btn {
    padding: 14px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 50px 0;
  }

  .page-hero {
    height: 300px;
  }

  .page-title {
    font-size: 2.4rem;
    letter-spacing: 2px;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 375px) {
  .page-hero {
    height: 270px;
  }

  .page-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .page-subtitle {
    font-size: 0.9rem;
  }
}
