* {
    margin: 0;
    padding: 0;
}

.courses-offered {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 50px);
    display: flex;
    flex-direction: column;
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
}

.courses-offered h2 {
    font-size: clamp(32px, 5vw, 49px);
    line-height: 1.2;
    text-align: center;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.course-cards .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    border: 1px solid #C4C6CE;
    text-align: center;
    border-radius: 8px;
}

.course-cards .card img {
    width: 40px;
    height: 40px;
}

.courses-offered .card h3 {
    font-size: 24px;
    line-height: 30px;
    font-weight: bold;
}

.courses-offered .card p{
    font-size: 16px;
    line-height: 24px;
    color: #44474D;
    max-width: 600px;
}

.courses-offered .card a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #44474D;
    font-size: 16px;
    line-height: 24px;
    padding: 8px 16px;
    border: 1px solid #C4C6CE;
    border-radius: 4px;
    background-color: #F9F9F9;
}

.courses-offered a .arrow-icon {
    width: 22px;
    height: 22px;
}

/*subject section*/
.subject {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 50px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(30px, 5vw, 50px);
    color: #FFFFFF;
    background-color: #0B1F3A;
}

.subject h2 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    text-align: center;
}

.subject h3 {
    font-size: clamp(22px, 4vw, 27px);
    line-height: 1.2;
}

.subject p {
    font-size: 16px;
    line-height: 24px;
}

.subject-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%; /* Updated for scaling */
    max-width: 1000px;
}

.subject-card .card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px clamp(20px, 4vw, 40px);
    border-radius: 8px;
}

.arts {
    background-color: #23354D;
}
.science {
    background-color: #B71502;
}

.subject-card .card ol{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 20px;
}

/* coaching section */

.coaching {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 50px);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
    gap: 33px;
    border-top: 1px solid #C4C6CE;
    border-bottom: 1px solid #C4C6CE;
}

.coaching h2 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    color: #000000;
    text-align: center;
}

.coaching > p {
    font-size: 16px;
    line-height: 25px;
    color: #3F4551;
    max-width: 750px;
    text-align: center;
}

.coaching .card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%; /* Updated for scaling */
    max-width: 1200px;
}

.coaching .card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
    background-color: #0D2444;
    border-radius: 8px;
}

.coaching .card h3 {
    font-size: clamp(22px, 4vw, 26px);
    line-height: 30px;
}

.coaching .card > p {
    font-size: 16px;
    line-height: 24px;
    color: #D9E3F4;
    max-width: 100%; /* Removed rigid 300px constraint */
}

.coaching ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 20px;
}

.coaching ul p {
    font-size: 16px;
    line-height: 24px;
    color: #C4C6CE;
}

/* ==============================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE) 
============================================================== */

@media (max-width: 1023px) {
    /* Tablet adjustments */
    .coaching .card-container {
        grid-template-columns: repeat(2, 1fr); /* Drop coaching to 2 columns */
    }
}

@media (max-width: 767px) {
    /* Mobile stacking */
    .course-cards {
        grid-template-columns: 1fr;
    }

    .subject-card {
        grid-template-columns: 1fr;
    }

    .coaching .card-container {
        grid-template-columns: 1fr;
    }
}