/* =========================== */
/* COMMON PAGE STYLES         */
/* =========================== */

/* Universal Hero Section */
.page-hero {
  position: relative;
  padding-top: 80px;
  height: 50vh;
  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: 1400px;
  padding: 0;
  text-align: start;
}

.page-title {
  font-size: 2rem;
  font-weight: 300;
  color: var(--light-color);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 10px var(--shadow-light);
}

.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.5s ease;
}

.page-title:hover::after {
  width: 120px;
}

.page-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--secondary-light);
  width: 100%;
  margin: 0 auto;
  line-height: 1.6;
}

/* Global container style */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* 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: 2rem;
  font-weight: 300;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.4s ease;
}

.section-title:hover::after {
  width: 100px;
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  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: 400px;
  }

  .page-title {
    font-size: 1.875rem;
  }

  .page-subtitle {
    font-size: 1.0625rem;
  }
}

@media (max-width: 992px) {
  .section {
    padding: 60px 0;
  }

  .page-hero {
    height: 350px;
  }
  
  .hero-content {
      width: 90% !important;
  }

  .page-title {
    font-size: 1.75rem;
    letter-spacing: 0.06em;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.9375rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }

  .page-hero {
    height: 300px;
    padding-top: 70px;
  }

  .page-title {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
  }

  .page-subtitle {
    font-size: 0.9375rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.875rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9375rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }

  .page-hero {
    height: 280px;
  }

  .page-title {
    font-size: 1.35rem;
    letter-spacing: 0.04em;
  }

  .page-subtitle {
    font-size: 0.875rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .section-subtitle {
    font-size: 0.8125rem;
  }

  .btn {
    padding: 11px 24px;
    font-size: 0.875rem;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 0;
  }

  .page-hero {
    height: 260px;
  }

  .page-title {
    font-size: 1.25rem;
    letter-spacing: 0.03em;
  }

  .page-subtitle {
    font-size: 0.8125rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.8125rem;
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 400px) {
  .page-hero {
    height: 240px;
  }

  .page-title {
    font-size: 1.125rem;
  }

  .page-subtitle {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.125rem;
  }
}
