/* 
 * Unified Styles
 * Combined styles for banners and categories
 */

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

@font-face {
  font-family: "FK Grotesk";
  src: url("fk_grotesk/woff2/FKGrotesk-Regular.woff2") format("woff2"),
    url("fk_grotesk/woff/FKGrotesk-Regular.woff") format("woff"),
    url("fk_grotesk/ttf/FKGrotesk-Regular.ttf") format("truetype"),
    url("fk_grotesk/otf/FKGrotesk-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "FK Grotesk", sans-serif;
  color: #333;
  line-height: 1.6;
}

.banner-wrapper {
  margin: 0 auto;
  padding: 0 !important;
}

/* ==============================
   * BANNER STYLES
   * ============================== */

.banner-container {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 0;
}

.banner-container a,
.banner-container a:link,
.banner-container a:visited {
  display: block;
  text-decoration: none;
  color: inherit;
  opacity: 1 !important;
  background-color: transparent !important;
}

.banner-container a:hover,
.banner-container a:focus,
.banner-container a:active {
  opacity: 1 !important;
  color: inherit;
  background-color: transparent !important;
  filter: none !important;
}

.banner-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
  object-fit: cover;
  opacity: 1 !important;
}

.banner-container:hover img,
.banner-container a:hover img,
.banner-container a:focus img {
  transform: scale(1.05);
  opacity: 1 !important;
  filter: none !important;
}

.banner-container a span,
.banner-container a:hover span {
  opacity: 1 !important;
}

.col-12 .banner-container img {
  height: 500px;
  object-fit: cover;
}

.col-md-6 .banner-container img {
  height: 300px;
  object-fit: cover;
}

.banner-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: white;
  text-align: left;
  background: none;
  max-width: 100%;
  border-radius: 0;
  pointer-events: none;
}

.banner-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 400;
  max-width: 60%;
}

.banner-content p {
  font-size: 28px;
  margin-bottom: 0;
  max-width: 50%;
  line-height: 1.4;
  font-style: italic;
}

.banner-content .btn {
  background-color: rgba(129, 100, 89, 0.7);
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 0;
  align-self: flex-start;
  font-weight: 400;
  width: fit-content;
  pointer-events: auto;
}

.banner-content .btn:hover {
  background-color: rgba(116, 108, 107, 0.85);
}

.banner-content .btn-banner {
  background-color: rgba(255, 255, 255, 0) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  padding: 14px 40px !important;
  font-size: 14px !important;
  text-transform: uppercase;
  font-family: "FK Grotesk", sans-serif !important;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px !important;
  align-self: flex-start;
  font-weight: 400;
  width: fit-content;
  pointer-events: auto;
  box-shadow: none !important;
  outline: none !important;
}

.banner-content .btn-banner:hover {
  background-color: rgba(255, 255, 255, 0.4) !important;
  border-color: #fff !important;
}

.footer-banners .footer-banner img {
  width: 100vw !important;
  max-width: 100%;
  height: auto;
  max-height: none;
}

.footer-banner {
  margin-bottom: 0 !important;
}

/* Adjustments for smaller banners */
.col-md-6 .banner-content h2 {
  font-size: 28px;
  max-width: 80%;
}

.col-md-6 .banner-content .btn {
  padding: 10px 20px;
}

/* ==============================
   * CATEGORY STYLES
   * ============================== */

.category-container {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 0;
}

.category-container a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-container img {
  width: 100%;
  height: 350px;
  display: block;
  transition: transform 0.4s ease;
  object-fit: cover;
}

.category-container:hover img {
  transform: scale(1.05);
}

.category-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.category-content h3 {
  color: white;
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==============================
   * RESPONSIVE STYLES
   * ============================== */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 991px) {
  .category-container img {
    height: 300px;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 768px) {
  /* Banner responsive styles */
  .col-12 .banner-container img {
    height: 400px;
  }

  .col-md-6 .banner-container img {
    height: 250px;
  }

  .banner-content {
    padding: 25px;
    background: none;
  }

  .banner-content h2 {
    font-size: 26px;
    max-width: 100%;
    margin-bottom: 10px;
  }

  .banner-content p {
    font-size: 22px;
    max-width: 70%;
    margin-bottom: 0;
  }

  .banner-content .btn {
    padding: 8px 20px;
    font-size: 14px;
  }

  .col-md-6 .banner-content h2 {
    font-size: 22px;
  }

  /* Category responsive styles */
  .category-container img {
    height: 250px;
  }

  .category-content {
    padding: 15px;
  }

  .category-content h3 {
    font-size: 18px;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 576px) {
  /* Common responsive styles */
  .banner-row {
    margin-bottom: 15px;
  }

  /* Banner responsive styles */
  .col-12 .banner-container img {
    height: 350px;
  }

  .col-md-6 .banner-container img {
    height: 200px;
  }

  .banner-content {
    padding: 20px;
    background: none;
    justify-content: space-between;
  }

  .banner-content h2 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .banner-content p {
    font-size: 18px;
    max-width: 80%;
    margin-bottom: 0;
    line-height: 1.3;
  }

  .banner-content .btn {
    padding: 6px 15px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .banner-container {
    margin-bottom: 15px;
  }

  /* Category responsive styles */
  .category-container {
    margin-bottom: 15px;
  }

  .category-container img {
    height: 200px;
  }

  .category-content {
    padding: 12px;
  }

  .category-content h3 {
    font-size: 16px;
  }
}

.banner-content-center {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  gap: 30px;
}

.banner-content-center p {
  max-width: 80% !important;
  text-align: center;
}

.banner-content-center .btn-banner {
  align-self: center !important;
}
