/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Grechen+Fuemen&family=Montserrat+Alternates:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
         Change favorite color:

         Default (Red): hsl(358, 80%, 49%)
         Purple: hsl(265, 80%, 49%) - Blue: hsl(220, 80%, 49%)
         Pink: hsl(330, 80%, 49%) - Green: hsl(162, 70%, 40%)
         Orange: hsl(14, 80%, 49%)

         For more colors visit: https://htmlcolorcodes.com/
         -> Choose any color 
         -> Copy the color mode (HSL)
  */
  --hue: 215;
  --first-color: hsl(var(--hue), 80%, 49%);
  --first-color-alt: hsl(var(--hue), 76%, 45%);
  --black-color: hsl(0, 0%, 1%);
  --body-color: hsl(var(--hue), 100%, 1%);
  --container-color: #092241;
  --conic-gradient: conic-gradient(from 150deg at 50% 45%,
      hsl(var(--hue), 80%, 20%) 0deg,
      hsl(var(--hue), 80%, 48%) 140deg,
      hsl(var(--hue), 80%, 20%) 360deg);


  /*========== Text ==========*/
  --white-color: hsl(0, 0%, 98%);
  --text-color: hsl(var(--hue), 2%, 66%);


  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat Alternates", sans-serif;
  --second-font: "Grechen Fuemen", cursive;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1168px) {
  :root {
    --biggest-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
textarea,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--white-color);
}

/* Certificates Section */
.certificates-section {
  padding: 4rem 2rem;
  background-color: var(--container-color);
  text-align: center;
}

.section-title {
  font-size: var(--h1-font-size);
  margin-bottom: 2rem;
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
}

.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.certificate-card {
  background-color: var(--body-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--first-color);
  transition: transform 0.3s ease;
}

.certificate-card:hover {
  transform: scale(1.5);
}

.certificate-card img {
  width: 100%;
  height: auto;
  display: block;
}

.certificate-card h3 {
  font-size: var(--normal-font-size);
  margin: 1rem 0.5rem;
}

.certificate-card p {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-bottom: 1rem;
}

.certificate-card h3 a {
  color: var(--white-color);
  text-decoration: none;
}

.certificate-card h3 a:hover {
  color: var(--first-color);
  text-decoration: underline;
}

.back-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--first-color);
  color: var(--white-color);
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 1rem;
  margin: 1rem 1rem;
  transition: background-color 0.3s, transform 0.2s;
  
  /* Remove float and center it */
  float: none; /* Remove this if present */
  display: block;
  text-align: center; /* Not necessary for block but OK */
}
