/* General Styles */
body {
  background-color: #111;
  color: #fff;
  font-family: 'Arial', sans-serif;
  margin: 0;
}

/* Header Styles */
header {
  background-color: #222;
  padding: 20px;
  border-bottom: 2px solid #555;
}

header .hcontainer {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Wrap items on smaller screens */
}

header h1 a {
  color: #fff;
  text-decoration: none;
  font-size: 2rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Wrap items on smaller screens */
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li.active a {
  color: #d2b266;
}

/* Container and Section Styles */
.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 80px 20px 20px; /* Add top padding to account for fixed header */
}

.section-container {
  background-color: #222;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 1200px;
}

.section-container h1,
.section-container h2 {
  margin: 20px 0; /* Ensure proper spacing for headers */
  text-align: center;
}

/* Card Styles */
.card {
  background-color: #333;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user {
  width: 100px; /* Adjust size for image icon */
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: transparent; /* Remove background color for image */
}

.user img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the image covers the area */
  border-radius: 50%;
}

.text {
  font-size: 14px;
  margin-top: 5px;
}

.date {
  font-size: 14px;
  color: #f4f3f3;
  font-weight: 300;
  text-align: right;
}

/* Certificates Section Styles */
.certificate-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

.certificate-tile {
  flex-basis: 250px;
  width: calc(20% - 20px);
  margin: 10px;
  box-sizing: border-box;
  background: #ff6d00;
  box-shadow: 0 0 15px #c43c00;
  text-align: center;
  position: relative;
}

.certificate-tile:hover {
  transform: scale(1.1);
  z-index: 9;
}

.tile-details {
  position: relative;
}

.tile-image {
  width: 100%;
}

.tile-text {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: 0;
  padding: 5px;
  background: #ff6d00;
  z-index: -1;
  font-weight: 700;
}

.certificate-tile:hover .tile-text {
  z-index: 1;
  opacity: 0.8;
}

.arrow {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

* {
  margin: 0;
  padding: 0;
  outline: none;
}

/* Style for .clr div text */
.section-container .clr {
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: #2e2d2d;
  padding: 5px;
}

.section-container .clr h1 {
  text-decoration: underline; /* Add underline to text in .clr div */
}

/* Responsive Styles */
@media (max-width: 768px) {
  header .hcontainer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .section-container {
    padding: 15px;
  }

  .card {
    padding: 15px;
  }

  .user {
    width: 80px;
    height: 80px;
  }

  .user img {
    width: 80px;
    height: 80px;
  }

  .certificate-tile {
    flex-basis: 100%;
    width: calc(100% - 20px);
    margin: 10px;
  }

  .arrow {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  header h1 a {
    font-size: 1.5rem;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  .section-container h1,
  .section-container h2 {
    font-size: 1.5rem; /* Adjust header sizes for small screens */
  }

  .card {
    padding: 10px;
  }

  .user {
    width: 60px;
    height: 60px;
  }

  .user img {
    width: 60px;
    height: 60px;
  }

  .certificate-tile {
    flex-basis: 100%;
    width: calc(100% - 20px);
    margin: 10px;
  }

  .arrow {
    font-size: 18px;
  }
}
