/* Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Quicksand:wght@300..700&display=swap');
@import url("https://fonts.googleapis.com/css?family=Montserrat:300,400,700,800");

/* Design */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: #ecf9ff;
}

body {
  color: #272727;
  font-family: 'Quicksand', serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  padding: 1rem;
}

.header-container {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  max-width: 1100px;
  margin: 25px auto;
  padding: 0 20px;
}

.back-icon {
  grid-column: 1;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

.back-icon svg {
  width: 24px;
  height: 24px;
}

.header-title {
  grid-column: 2;
  text-align: center;
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  font-family: "Montserrat", helvetica, arial, sans-serif;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.main{
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  font-family: "Montserrat", helvetica, arial, sans-serif;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1;
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.btn {
  color: #ffffff;
  padding: 0.8rem;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  font-weight: 400;
  display: block;
  width: 100%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Base card styles */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 1rem 0.5rem;
}

.cards_item {
  display: flex;
  width: 100%;
  padding: 0.5rem 0.25rem;
}


.logo{
height: 75px;
}

.card {
  background: linear-gradient(to bottom right, #7C103C, #561029);
  border-radius: 0.5rem;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.card_image_container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.card_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.card_image:hover {
  transform: scale(1.05);
}

.card_content {
  padding: 1rem;
  color: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card_title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: capitalize;
  margin: 0;
}

.card_text {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.card_content a {
  text-decoration: none;
  display: block;
  width: 100%;
}

.card_btn {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  width: 100%;
  color: white;
  padding: 0.8rem;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  font-weight: 400;
  display: block;
  cursor: pointer;
  border: 1px solid white;
  background: transparent;
}

.card_btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Responsive Breakpoints */
@media screen and (min-width: 991px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 431px) and (max-width: 990px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 430px) {
  .cards {
    grid-template-columns: 1fr;
    padding: 0.5rem 0.25rem;
  }
  
  .cards_item {
    padding: 0.25rem 0.125rem;
  }
  
  .card_content {
    padding: 0.8rem;
  }
  
  .card_title {
    font-size: 1rem;
  }
  
  .card_text {
    font-size: 0.8rem;
  }
}

/* Ensure no grid/flex interference */
@media screen and (max-width: 990px) {
  .cards,
  .cards_item,
  .card {
    display: block !important;
    float: none !important;
  }
}

@media (max-width: 430px) {
  .header-container {
    grid-template-columns: 40px 1fr 40px;
    margin: 15px auto;
    padding: 0 10px;
  }

  .back-icon svg {
    width: 20px;
    height: 20px;
  }

  .header-title {
    font-size: 18px;
  }
}