/* Header Section */
.header-section {
    background-image: url('../assets/backgrounds/qualifications-bg.png'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    height: 400px; /* Adjust the height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--red); /* Text color set to var(--red) */
    text-align: center;
     margin-top:-10px;
    z-index:-16;
}

/* Centered Heading */
.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Overlay */
.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: -1; /* Place the overlay behind the text */
}
/* Section Heading */
.section-heading {
    font-family: var(--font-main-heading); /* Font-family set to var(--font-main-heading) */
    font-size: 4rem; /* Adjust font size as needed */
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0;
}


/* Max-width: 2560px */
@media (max-width: 2560px) {
    .header-section {
        height: 500px; /* Adjust height for large screens */
    }

    .section-heading {
        font-size: 7rem; /* Larger font for bigger screens */
    }
}

/* Max-width: 1024px */
@media (max-width: 1024px) {
    .header-section {
        height: 360px; /* Adjust height for tablets and smaller screens */
    }

    .section-heading {
        font-size: 4rem; /* Slightly smaller font for tablets */
    }
}

/* Max-width: 768px */
@media (max-width: 768px) {
    .header-section {
        height: 300px; /* Adjust height for smaller tablets */
    }

    .section-heading {
        font-size: 4rem; /* Smaller font for tablets */
    }
}

/* Min-width: 425px and max-width: 690px */
@media (min-width: 425px) and (max-width: 690px) {
    .header-section {
        height: 250px; /* Adjust height for smaller devices */
    }

    .section-heading {
        font-size: 2.3rem; /* Font size for small devices */
    }
}

/* Min-width: 315px and max-width: 430px */
@media (min-width: 315px) and (max-width: 430px) {
    .header-section {
        height: 200px; /* Adjust height for smaller screens */
    }

    .section-heading {
        font-size: 2.2rem; /* Font size for very small devices */
    }
}
/* ---------------- Qualifications Section ----------------- */
.qualification-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.qualification-left {
  flex: 1;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--purple);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.qualification-right {
  flex: 1;
  text-align: left;
}

.qualification-heading {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 20px;
}

.qualification-right p {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
}



/* ---------------- Responsive Styles ----------------- */

/* Large Screens */
@media (max-width: 2560px) {
  .qualification-heading {
    font-size: 3.5rem;
  }
}

/* Tablets and Small Desktops */
@media (max-width: 1024px) {
  .qualification-section {
  
    text-align: left;
  }

  .qualification-right {
    text-align: left;
  }

  .qualification-heading {
    font-size: 3rem;
  }

  .image-wrapper {
    max-width: 400px;
  }
}

/* Tablets and Large Mobiles */
@media (max-width: 768px) {
  .qualification-heading {
    font-size: 2.5rem;
  }

  .qualification-right p {
    font-size: 0.95rem;
  }

  .image-wrapper {
    max-width: 350px;
  }
}

/* ------------------------------------ */
/* Small Tablets & Mobiles (425px to 690px) */
/* ------------------------------------ */
@media (min-width: 425px) and (max-width: 690px) {
  .qualification-section {
    flex-direction: column; /* Make layout column */
    text-align: center; /* Center text */
  }

  .qualification-heading {
    font-size: 2.2rem;
  }

  .qualification-right {
    text-align: center; /* Center content in text */
  }

  .qualification-right p {
    font-size: 0.9rem;
  }

  .image-wrapper {
    max-width: 320px;
    margin: 0 auto; /* Center image */
  }
}

/* ------------------------------------ */
/* Small Mobiles (315px to 430px) */
/* ------------------------------------ */
@media (min-width: 315px) and (max-width: 430px) {
  .qualification-section {
    flex-direction: column; /* Stack */
    text-align: center;
  }

  .qualification-heading {
    font-size: 2rem;
  }

  .qualification-right {
    text-align: center;
  }

  .qualification-right p {
    font-size: 0.85rem;
  }

  .image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .download-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/*----------------------------------Qualification Card Section --------------------------------*/
.section {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            padding: 20px;
            margin-bottom:10vw;
        }
        .row {
            display: flex;
            justify-content: center;
            gap: 40px;
            width: 100%;
        }
        .card {
            position: relative;
            width: 250px;
            height: 350px;
            border-radius: 15px;
            border:1px solid var(--dark-grey);
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            background: white;
            transition: transform 0.3s ease-in-out;
        }
        .card:hover {
            transform: scale(1.05);
        }
        .card img {
            width: 100%;
            height: 60%;
            object-fit: cover;
        }
        .card-content {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 40%;
            background: white;
            text-align: center;
            padding: 15px;
            transition: height 0.3s ease-in-out;
            overflow: hidden;
            
        }
        .card-content h3 {
            margin-bottom: 10px;
            font-family:var(--font-heading);
        }
        .card-content p {
            display: none;
            font-size: 12px;
            color: var(--dark-grey);
            margin-top: 10px;
             font-family:var(--font-primary);
        }
        .divider {
            width: 60%;
            height: 1px;
            background: var(--light-grey);
            margin: 0 auto 10px;
        }
     .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            font-size: 14px;
            opacity: 1;
            transition: opacity 0.3s ease-in-out;
        }
        .card-footer div {
            font-weight: normal;
            color:var(--dark-grey);
        }
        .card-footer .arrow {
            font-size: 18px;
        }
        .card:hover .card-content {
            height: 80%;
        }
        .card:hover .card-content p {
            display: block;
        }
        
             @media (max-width: 1024px) {
            .row {
                gap: 15px;
            }
            .card {
                width: 220px;
                height: 320px;
            }
        }
        
        @media (max-width: 768px) {
            .row {
                gap: 10px;
            }
            .card {
                width: 200px;
                height: 310px;
            }
        }
        
        @media (min-width: 425px) and (max-width: 690px) {
          .row {
                flex-direction: column;
                align-items: center;
            }
            .card {
                width: 150px;
                height: auto;
            }
        }
        
        @media (min-width: 315px) and (max-width: 430px) {
            .row {
                flex-direction: column;
                align-items: center;
            }
            .card {
                width: 60%;
                height: auto;
            }
        }