/* =====================================
   QUALITY EDUCATION SECTION
   SCHOOL LOGO COLOR THEME
===================================== */

.quality-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 85px 0;

    background: #f7faf7;

    border-top: 3px solid var(--green);

    font-family: 'Roboto', Arial, sans-serif;
}

.quality-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 65px;
}

/* =====================================
   LEFT CONTENT
===================================== */

.quality-content {
    min-width: 0;
}

/* SECTION LABEL */

.quality-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;

    color: var(--green);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.quality-label span {
    width: 36px;
    height: 3px;

    background: var(--yellow);

    border-radius: 4px;
}

/* HEADING */

.quality-heading {
    margin: 0 0 17px;

    color: var(--navy);

    font-size: clamp(32px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.2;
}

.quality-heading span {
    color: var(--green);
}

/* INTRO */

.quality-intro {
    max-width: 530px;
    margin: 0 0 25px;

    color: var(--muted-text);

    font-size: 14px;
    line-height: 1.75;
}

/* =====================================
   FEATURE ROWS
===================================== */

.quality-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quality-feature {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: start;
    gap: 18px;
}

/* FEATURE ICON */

.quality-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--green);
}

.quality-icon svg {
    width: 43px;
    height: 43px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* FEATURE HEADING */

.quality-feature h3 {
    margin: 0 0 6px;

    color: var(--navy);

    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

/* FEATURE DESCRIPTION */

.quality-feature p {
    margin: 0;

    color: var(--muted-text);

    font-size: 13px;
    line-height: 1.6;
}

/* =====================================
   BUTTON
===================================== */

.quality-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    margin-top: 28px;
    padding: 13px 22px;

    color: #fff;

    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 3px;

    font-size: 13px;
    font-weight: 600;

    transition: .25s ease;
}

.quality-button span {
    font-size: 20px;

    transition: transform .25s ease;
}

.quality-button:hover {
    background: #06482B;
    border-color: #06482B;

    transform: translateY(-2px);
}

.quality-button:hover span {
    transform: translateX(4px);
}

/* =====================================
   RIGHT IMAGE COLLAGE
===================================== */

.quality-visual {
    position: relative;

    min-height: 370px;
    height: 370px;
}

/* COMMON IMAGE STYLE */

.quality-photo {
    position: absolute;
    overflow: hidden;

    background: var(--green-light);

    border: 5px solid #fff;

    box-shadow:
        0 8px 24px rgba(7, 91, 53, .10);

    transition: box-shadow .35s ease;
}

.quality-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .55s ease;
}

.quality-photo:hover img {
    transform: scale(1.05);
}

.quality-photo:hover {
    box-shadow:
        0 12px 28px rgba(7, 91, 53, .16);
}

/* MAIN LARGE PHOTO */

.quality-photo-main {
    top: 20px;
    right: 0;

    width: 47%;
    height: 275px;

    z-index: 2;
}

/* TOP LEFT PHOTO */

.quality-photo-top {
    top: 58px;
    left: 0;

    width: 49%;
    height: 145px;

    z-index: 1;
}

/* BOTTOM LEFT PHOTO */

.quality-photo-bottom {
    left: 8%;
    bottom: 0;

    width: 43%;
    height: 125px;

    z-index: 1;
}

/* DECORATIVE YELLOW BORDER */

.quality-outline {
    position: absolute;

    top: 8px;
    right: -12px;

    width: 48%;
    height: 285px;

    border: 2px solid var(--yellow);

    z-index: 0;
}

/* GREEN DOTTED DECORATION */

.quality-dots {
    position: absolute;

    top: 0;
    left: 48%;

    width: 42px;
    height: 42px;

    background-image:
        radial-gradient(var(--green) 1.4px,
            transparent 1.4px);

    background-size: 7px 7px;
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 1000px) {

    .quality-container {
        gap: 35px;
    }

    .quality-visual {
        height: 330px;
    }

    .quality-photo-main {
        height: 250px;
    }

    .quality-outline {
        height: 260px;
    }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 760px) {

    .quality-section {
        padding: 60px 0;
    }

    .quality-container {
        width: calc(100% - 36px);

        grid-template-columns: 1fr;

        gap: 38px;
    }

    .quality-heading {
        font-size: 34px;
    }

    .quality-features {
        gap: 18px;
    }

    .quality-feature {
        grid-template-columns: 45px 1fr;
        gap: 14px;
    }

    .quality-icon {
        width: 42px;
        height: 42px;
    }

    .quality-icon svg {
        width: 38px;
        height: 38px;
    }

    .quality-feature h3 {
        font-size: 16px;
    }

    .quality-visual {
        width: 100%;
        max-width: 520px;

        height: 350px;

        margin: 0 auto;
    }

    .quality-photo-main {
        width: 48%;
        height: 265px;
    }

    .quality-photo-top {
        top: 55px;
        height: 135px;
    }

    .quality-photo-bottom {
        height: 120px;
    }

    .quality-outline {
        height: 275px;
    }
}

/* SMALL MOBILE */

@media (max-width: 420px) {

    .quality-heading {
        font-size: 30px;
    }

    .quality-visual {
        height: 290px;
    }

    .quality-photo-main {
        height: 225px;
    }

    .quality-photo-top {
        top: 42px;
        height: 115px;
    }

    .quality-photo-bottom {
        height: 100px;
    }

    .quality-outline {
        height: 235px;
    }
}

/* =====================================
   UDISE SCHOOL CODE BADGE
===================================== */

.udise-badge {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    padding: 12px 18px;
    margin: 8px 0 20px;

    background: var(--green-light);

    border: 1px solid rgba(7, 91, 53, .18);
    border-left: 4px solid var(--green);

    border-radius: 8px;

    box-shadow:
        0 5px 18px rgba(7, 91, 53, .06);

    transition: all .3s ease;
}

.udise-badge:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(7, 91, 53, .12);

    background: #E1EFE4;
}

/* UDISE ICON */

.udise-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    color: #fff;

    background: var(--green);

    border-radius: 50%;

    font-size: 18px;
    font-weight: 700;
}

/* BADGE LABEL */

.udise-badge small {
    display: block;

    margin-bottom: 4px;

    color: var(--muted-text);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

/* UDISE NUMBER */

.udise-badge strong {
    display: block;

    color: var(--navy);

    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* =====================================
   SCHOOL INFORMATION
===================================== */

.quality-school-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    margin: 25px 0;
    padding: 18px 0;

    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.quality-school-info>div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quality-school-info strong {
    color: var(--green);

    font-size: 13px;
    font-weight: 700;
}

.quality-school-info span {
    color: var(--muted-text);

    font-size: 13px;
    line-height: 1.5;
}

/* =====================================
   RESPONSIVE UDISE & SCHOOL INFO
===================================== */

@media (max-width: 600px) {

    .udise-badge {
        padding: 10px 14px;
        gap: 10px;
    }

    .udise-badge strong {
        font-size: 18px;
    }

    .quality-school-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .quality-school-info>div {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}