﻿
section{
  margin-top: 60px;
  margin-bottom: 60px;
}
main{
  overflow-X: hidden;
  width: 90%;
  margin: auto;
  margin-top: 150px;
  flex:1;
}
main .head-page {
  font-size: 3.5rem;
  font-weight: 600;
  margin-top: 30px;
  position: relative;
  width: fit-content;
  color: var(--secondary-color);
  margin: auto;
  text-align: center;
}
    

main .sub-title {
  font-size: 3rem;
  font-weight: 600;
  margin-top: 30px;
  position: relative;
  width: fit-content;
  color: var(--secondary-color);
}
    main .description-page {
        text-align: left;
        max-width: 1100px;
        margin: 10px auto 0;
        padding: 0 10px;
    }
    main p {
        padding: 0px 10px;
        margin-top: 20px;
        font-size: 18px;
        margin-left: 30px;
        margin-right: 20px;
    }


.course-description {
    max-width: 800px;
    padding: 0px 10px;
    margin-top: 20px;
    font-size: 18px;
    margin: auto;
}

.careers-frame {
    padding: 20px border-radius: 18px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .careers-frame {
        padding: 24px;
    }
}
main .sub-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 90%;
  height: 4px;
  background: linear-gradient(to right, var(--accent-color), var(--primary-color));
  border-radius: 2px;
}
main h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 90%;
  height: 4px;
  background: linear-gradient(to right, var(--accent-color), var(--primary-color));
  border-radius: 2px;
}

.grid-system {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 330px));
  gap: 40px 20px;
  width: 100%;
  justify-content: center;
  overflow-y: hidden;
  padding-bottom: 20px;
}

.box {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  min-height:420px;
  max-height:420px
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.box-content {
  padding: 15px;
}

.box-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--main, #B9CF25);
  margin-bottom: 10px;
  min-height: 45px ;
}

.box-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.duration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.duration p {
  color: var(--text-color);
  font-weight: 500;
}

.duration span {
  font-weight: 700;
  color: var(--primary-color, #002147);
}






@media (max-width:400px) {
  main{
    width: 95%;
  }
    main h1 {
        font-size: 2rem;
    }
    
    .box img {
        height: 130px;
    }

    

    .box-content h2 {
        font-size: .9rem;
        margin-bottom: 7px;
    }

    .box-content p {
        font-size: 0.8rem;
        margin-bottom: 11px;
    }

    .grid-system {
        grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
        gap: 20px 20px;
        justify-content: center;
    }
    main .head-page {
      font-size: 2.5rem;
    }
    main .sub-title {
      font-size: 2rem;
    }
    main p {
    font-size: 16px;
  }
}