/* ========================================
   CERTIFICATE SECTION - NEW CLASSES
   ======================================== */

/* Certificate Reference Section */
.cert-reference-section {
  display: flex; /* Use Flexbox for side-by-side layout */
  justify-content: space-between; /* Space between image and text */
  align-items: center; /* Align items vertically in the center */
  gap: 0.5vw; /* Add space between columns */
  padding: 13vh 5vw; /* Add padding for spacing */
  background-color: #f8f9fa; /* Light background color */
}

/* Left Section: Image */
.cert-image-section {
  flex: 1; /* Take half the space */
  text-align: center;
}

.cert-image-section img {
  max-width: 80%; /* Ensure image scales to fit */
  height: auto;
  width: 80%;
  border-radius: 1vw; /* Rounded corners */
}

/* Right Section: Text */
.cert-text-section {
  flex: 1.75; /* Take half the space */
  text-align: left; /* Align text to the left for English */
  color: #333; /* Text color */
}

.cert-text-section h2 {
  font-size: 2.5vw; /* Responsive font size */
  font-weight: bold;
  margin-bottom: 2vh;
  color: #065287; /* Primary color for heading */
}

.cert-text-section p {
  font-size: 1.1vw; /* Adjust font size for readability */
  line-height: 1.8; /* Add line spacing */
  max-width: 100%;
  margin: 0 auto;
}

/* Certificate Popular Courses */
.cert-popular-courses {
  text-align: center;
  margin: 5vh 0;
}

.cert-popular-courses h2 {
  font-size: 2.5vw;
  margin-bottom: 2vh;
  position: relative;
  text-align: center;
}

.cert-popular-courses h2::after {
  content: "";
  display: block;
  width: 5vw;
  height: 0.4vh;
  background: #fff;
  margin: 1vh auto 0;
}

/* Certificate Padding Container */
.cert-padding-con {
  padding-left: 1vw;
  padding-right: 1vw;
}

/* Certificate Grid Container */
.cert-conference-grid {
  display: flex; /* Align items in a single row */
  justify-content: space-between; /* Space items evenly */
  align-items: stretch; /* Make items the same height */
  gap: 0.5vw; /* Add space between cards */
  width: 100%; /* Ensure full width for the container */
  flex-wrap: nowrap; /* Prevent wrapping to the next row */
  overflow: hidden; /* Prevent unwanted scrolling */
  margin-left: -0.5vw; /* Adjust for gap */
}

/* Certificate Conference Card */
.cert-conference-card {
  flex: 0 0 19%; /* Each card takes 19% of the row width to fit 5 cards */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.3s ease-in-out;
}

.cert-conference-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Slight hover effect */
}

/* Certificate Image Container */
.cert-conference-image-container {
  height: 200px; /* Fixed height for the image */
  position: relative; /* For hover effect */
  overflow: hidden; /* Hide overflow */
}

.cert-conference-image {
  width: 100%; /* Image spans the full width of the card */
  height: 100%;
  object-fit: cover; /* Ensures the image fits neatly */
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out; /* Smooth transition for hover */
}

.cert-conference-image-container:hover .cert-conference-image {
  transform: scale(1.05); /* Slight zoom effect */
  filter: brightness(0.8) drop-shadow(0 0 10px skyblue); /* Hover effect with sky blue color */
}

/* Certificate Conference Title */
.cert-conference-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 10px 0;
  color: #333;
}

.cert-conference-link {
  text-decoration: none; /* Remove underline from links */
  color: inherit; /* Keep the text color the same as the parent */
}

.cert-conference-link:hover .cert-conference-title {
  text-decoration: none; /* Optional: Add underline effect on hover */
}

/* ========================================
   MOBILE RESPONSIVE STYLES FOR CERTIFICATE SECTION
   ======================================== */

@media (max-width: 475px) {
  .cert-reference-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5vw;
    padding: 9vh 5vw;
    background-color: #f8f9fa;
    flex-direction: column;
  }

  .cert-image-section {
    flex: 1; /* Take half the space */
    text-align: center;
  }

  .cert-image-section img {
    max-width: 80%; /* Ensure image scales to fit */
    height: auto;
    width: 80%;
    border-radius: 1vw; /* Rounded corners */
  }

  .cert-text-section {
    flex: 1.75; /* Take half the space */
    text-align: left; /* Align text to the left for English */
    color: #333; /* Text color */
  }

  .cert-text-section h2 {
    font-size: 5.8vw; /* Responsive font size */
    font-weight: bold;
    margin-bottom: 2vh;
    color: #065287; /* Primary color for heading */
  }

  .cert-text-section p {
    font-size: 4.4vw;
    line-height: 1.8;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 2vh;
  }

  .cert-popular-courses {
    text-align: center;
    margin: 5vh 0;
  }

  .cert-popular-courses h2 {
    font-size: 5.8vw;
    margin-bottom: 2vh;
    position: relative;
    margin-left: 4vw;
  }

  .cert-popular-courses h2::after {
    content: "";
    display: block;
    width: 5vw;
    height: 0.4vh;
    background: #fff;
    margin: 1vh auto 0;
  }

  .cert-padding-con {
    padding-left: 1vw;
    padding-right: 1vw;
  }

  .cert-conference-grid {
    display: flex;
    justify-content: flex-start;
    gap: 1.5vw;
    width: 100%;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-right: 0.5vw;
    flex-direction: column;
    align-items: center;
    margin-top: -26px;
    text-align: center;
  }

  .cert-conference-card {
    flex: 0 0 19%; /* Each card takes 19% of the row width to fit 5 cards */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s ease-in-out;
  }

  .cert-conference-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Slight hover effect */
  }

  .cert-conference-image-container {
    height: 200px; /* Fixed height for the image */
    position: relative; /* For hover effect */
    overflow: hidden; /* Hide overflow */
  }

  .cert-conference-image {
    width: 399px;
    height: 198px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    margin-left: 0px;
    padding-top: 16px;
  }

  .cert-conference-image-container:hover .cert-conference-image {
    transform: scale(1.05); /* Slight zoom effect */
    filter: brightness(0.8) drop-shadow(0 0 10px skyblue); /* Hover effect with sky blue color */
  }

  .cert-conference-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
    text-align: center;
  }

  .cert-conference-link {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Keep the text color the same as the parent */
  }

  .cert-conference-link:hover .cert-conference-title {
    text-decoration: none; /* Optional: Add underline effect on hover */
  }
}

@media (min-width: 476px) and (max-width: 480px) {
  .cert-reference-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5vw;
    padding: 9vh 5vw;
    background-color: #f8f9fa;
    flex-direction: column;
  }

  .cert-image-section {
    flex: 1; /* Take half the space */
    text-align: center;
  }

  .cert-image-section img {
    max-width: 80%; /* Ensure image scales to fit */
    height: auto;
    width: 80%;
    border-radius: 1vw; /* Rounded corners */
  }

  .cert-text-section {
    flex: 1.75; /* Take half the space */
    text-align: left; /* Align text to the left for English */
    color: #333; /* Text color */
  }

  .cert-text-section h2 {
    font-size: 3.5vw; /* Responsive font size */
    font-weight: bold;
    margin-bottom: 2vh;
    color: #065287; /* Primary color for heading */
  }

  .cert-text-section p {
    font-size: 2.6vw;
    line-height: 1.8;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 2vh;
  }

  .cert-popular-courses {
    text-align: center;
    margin: 5vh 0;
  }

  .cert-popular-courses h2 {
    font-size: 3.5vw;
    margin-bottom: 2vh;
    position: relative;
  }

  .cert-popular-courses h2::after {
    content: "";
    display: block;
    width: 5vw;
    height: 0.4vh;
    background: #fff;
    margin: 1vh auto 0;
  }

  .cert-padding-con {
    padding-left: 1vw;
    padding-right: 1vw;
  }

  .cert-conference-grid {
    display: flex;
    justify-content: flex-start;
    gap: 0.5vw;
    width: 100%;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-right: -0.5vw;
    flex-direction: column;
    align-items: center;
  }

  .cert-conference-card {
    flex: 0 0 19%; /* Each card takes 19% of the row width to fit 5 cards */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s ease-in-out;
  }

  .cert-conference-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Slight hover effect */
  }

  .cert-conference-image-container {
    height: 200px; /* Fixed height for the image */
    position: relative; /* For hover effect */
    overflow: hidden; /* Hide overflow */
  }

  .cert-conference-image {
    width: 100%; /* Image spans the full width of the card */
    height: 100%;
    object-fit: cover; /* Ensures the image fits neatly */
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out; /* Smooth transition for hover */
  }

  .cert-conference-image-container:hover .cert-conference-image {
    transform: scale(1.05); /* Slight zoom effect */
    filter: brightness(0.8) drop-shadow(0 0 10px skyblue); /* Hover effect with sky blue color */
  }

  .cert-conference-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
  }

  .cert-conference-link {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Keep the text color the same as the parent */
  }

  .cert-conference-link:hover .cert-conference-title {
    text-decoration: none; /* Optional: Add underline effect on hover */
  }
}

@media (min-width: 481px) and (max-width: 992px) {
  .cert-reference-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5vw;
    padding: 9vh 5vw;
    background-color: #f8f9fa;
    flex-direction: column;
  }

  .cert-image-section {
    flex: 1; /* Take half the space */
    text-align: center;
  }

  .cert-image-section img {
    max-width: 80%; /* Ensure image scales to fit */
    height: auto;
    width: 80%;
    border-radius: 1vw; /* Rounded corners */
  }

  .cert-text-section {
    flex: 1.75; /* Take half the space */
    text-align: left; /* Align text to the left for English */
    color: #333; /* Text color */
  }

  .cert-text-section h2 {
    font-size: 3.5vw; /* Responsive font size */
    font-weight: bold;
    margin-bottom: 2vh;
    color: #065287; /* Primary color for heading */
  }

  .cert-text-section p {
    font-size: 2.6vw;
    line-height: 1.8;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 2vh;
  }

  .cert-popular-courses {
    text-align: center;
    margin: 5vh 0;
  }

  .cert-popular-courses h2 {
    font-size: 3.5vw;
    margin-bottom: 2vh;
    position: relative;
  }

  .cert-popular-courses h2::after {
    content: "";
    display: block;
    width: 5vw;
    height: 0.4vh;
    background: #fff;
    margin: 1vh auto 0;
  }

  .cert-padding-con {
    padding-left: 1vw;
    padding-right: 1vw;
  }

  .cert-conference-grid {
    display: flex;
    justify-content: flex-start;
    gap: 0.5vw;
    width: 100%;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-right: -0.5vw;
    flex-direction: column;
    align-items: center;
  }

  .cert-conference-card {
    flex: 0 0 19%; /* Each card takes 19% of the row width to fit 5 cards */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s ease-in-out;
  }

  .cert-conference-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Slight hover effect */
  }

  .cert-conference-image-container {
    height: 200px; /* Fixed height for the image */
    position: relative; /* For hover effect */
    overflow: hidden; /* Hide overflow */
  }

  .cert-conference-image {
    width: 250px;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  }

  .cert-conference-image-container:hover .cert-conference-image {
    transform: scale(1.05); /* Slight zoom effect */
    filter: brightness(0.8) drop-shadow(0 0 10px skyblue); /* Hover effect with sky blue color */
  }

  .cert-conference-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
  }

  .cert-conference-link {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Keep the text color the same as the parent */
  }

  .cert-conference-link:hover .cert-conference-title {
    text-decoration: none; /* Optional: Add underline effect on hover */
  }
}
