/* General reset */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* - Mobile: 375px
- Desktop: 1440px */

/* custom properties */
:root{
  --clr-red: hsl(0, 78%, 62%);
  --clr-cyan: hsl(180, 62%, 55%);
  --clr-orange: hsl(34, 97%, 64%);
  --clr-blue: hsl(212, 86%, 64%);

  --grey-500: hsl(234, 12%, 34%);
  --grey-400: hsl(212, 6%, 44%);
  --clr-white: hsl(0, 0%, 100%);

  --fs-body: 15px;

  --ff:"Poppins", sans-serif;
}

body{
  font-family: var(--ff);
  font-size: var(--fs-body);
}


/* desktop design */
.wrapper{
  padding: 3rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

header {
  max-width: 54ch;
  color: var(--grey-400);
  text-align: center;
}

.first_heading {
  font-weight: 200;
  margin-top: 0;
  align-self: center;
}

.second_heading {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--grey-500);
}

.heading_para {
  margin-top: 1.2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  grid-template-rows: repeat(4, auto); /* 4 rows */
  gap: 1.5rem; /* Space between grid items */

  margin-top: 1rem;
}

.Supervisor {
  grid-column: 1 / 2; /* First column */
  grid-row: 1 / 5;    /* Spans all rows to appear vertically on the left */
  align-self: center; /* Centers content vertically within the grid area */
}

.Team-Builder {
  grid-column: 2 / 3; /* Second column */
  grid-row: 2 / 3;    /* Positioned in the middle (second row) */
  justify-self: center; /* Centers horizontally */
}

.Karma {
  grid-column: 2 / 3; /* Second column */
  grid-row: 3 / 4;    /* Positioned below Team-Builder (third row) */
  justify-self: center; /* Centers horizontally */
}

.Calculator {
  grid-column: 3 / 4; /* Third column */
  grid-row: 1 / 5;    /* Spans all rows to appear vertically on the right */
  align-self: center; /* Centers content vertically within the grid area */
}

.Supervisor,
.Team-Builder,
.Karma,
.Calculator {
  min-height: 220px;
  max-width: 360px;
  padding: 2rem;
  color: var(--grey-400);

  background-color: var(--clr-white);


  box-shadow: 0px 3px 6px 2px rgba(0, 0, 0, 0.3);
  border-radius: 5px;

  display: flex;
  flex-direction: column;

}

.Supervisor > img,
.Team-Builder > img,
.Karma > img,
.Calculator > img {
  aspect-ratio: 1;
  width: 50px;
  margin-top: auto;
  align-self: flex-end

}

  .Supervisor {
    border-top: 4px solid var(--clr-cyan) !important;
  }
  .Team-Builder {
    border-top: 4px solid var(--clr-red) !important;
  }
  .Karma {
    border-top: 4px solid var(--clr-orange) !important;
  }
  .Calculator {
    border-top: 4px solid var(--clr-blue) !important;

  }



/* mobile design */
@media screen and (max-width: 375px) {

  body{
    padding-top: 2rem;
  }
  
  .wrapper{
    padding: 2rem;
  }

  header {
    min-width: 32ch;

  }

  .first_heading {
    
    font-size:1.5rem;
    
    
  }

  .second_heading {
    
    font-size:1.5rem;

  }

  .cards{
    display: flex;
    flex-direction: column;

    gap: 2rem;

  }


  .Supervisor,
  .Team-Builder,
  .Karma,
  .Calculator {
    height: 200px;
    padding: 2rem;
    color: var(--grey-400);
    /* font-size: 12px; */


    box-shadow: 0px 3px 6px 2px rgba(0, 0, 0, 0.3);
    border-radius: 5px;

    display: flex;
    flex-direction: column;

  }

  .Team-Builder{
    margin-left:0;
  }
  .Karma {
    margin-left: 0;
  }



}