
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", Arial, sans-serif;
}
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(5, 18, 42, .84);
    backdrop-filter: blur(5px);
}
.admission-popup {
    position: relative;
    width: min(100%, 900px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    border: 5px solid white;
    border-radius: 20px;
    background: #fffdf2;
    box-shadow: 0 18px 55px #0007;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 42px;
    height: 42px;
    border: 3px solid white;
    border-radius: 50%;
    background: #08285f;
    color: white;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 12px #0004;
}

.close-btn:hover {
    background: #e60043;
}

.poster-area {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    background: #bcefff;
}

.poster-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.poster-area::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(221, 248, 255, .2),
        rgba(255, 255, 255, .32)
    );
}

.poster-content {
    position: relative;
}

.school-label {
    display: inline-block;
    max-width: calc(100% - 45px);
    padding: 7px 14px;
    border-radius: 30px;
    background: white;
    color: #08265f;
    font-size: 11px;
    font-weight: 900;
}

.poster-content h1 {
    margin: 10px 0 16px;
    color: #08265f;
    font-size: clamp(23px, 3.4vw, 36px);
    line-height: 1.12;
    font-weight: 1000;
    text-shadow: 0 1px 2px white;
}

.admission-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 35px;
    background: #ffda18;
    box-shadow: 0 5px 0 #e5b800;
}

.admission-title span {
    color: #09265f;
    font-size: clamp(25px, 4.3vw, 43px);
    font-weight: 1000;
    line-height: 1.05;
}

.admission-title strong {
    color: #df003f;
    font-size: clamp(31px, 5vw, 47px);
    line-height: 1.1;
}

.admission-for {
    margin: 15px 0 8px;
    color: #08265f;
    font-size: 17px;
    font-weight: 900;
}

.class-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.class-list span {
    padding: 8px 12px;
    border-radius: 14px;
    background: #ffd4e7;
    color: #08265f;
    font-size: 14px;
    font-weight: 900;
}

.class-list span:nth-child(2) {
    background: #e6d5ff;
}

.class-list span:nth-child(3) {
    background: #bceeff;
}

.class-list span:nth-child(4) {
    background: #dff5b5;
}

.date-label {
    margin: 15px auto 0;
    padding: 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .96);
    color: #d80042;
    font-size: clamp(17px, 2.6vw, 24px);
    font-weight: 1000;
}

/* Registration button panel */

.registration-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffd05d;
    border-radius: 19px;
    background: linear-gradient(110deg, #fff0bd, #fffdf1);
}

.laptop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 15px;
    background: #103878;
    color: white;
    font-size: 38px;
}

.registration-info {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.registration-info h2 {
    margin: 0 0 8px;
    color: #08265f;
    font-size: 23px;
}

.register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(100%, 400px);
    padding: 10px 16px;
    border: 2px solid white;
    border-radius: 40px;
    background: linear-gradient(100deg, #ff285a, #df003f);
    box-shadow: 0 4px 0 #a90032;
    color: white;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 1000;
    text-decoration: none;
}

.register-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: white;
    color: #df003f;
}

/* Enquiry and phone */

/* Enquiry and Contact - Responsive Center Layout */

.information-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 12px 12px;
    box-sizing: border-box;
    align-items: stretch;
}

.info-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    padding: 12px 8px;
    box-sizing: border-box;
    border: 2px solid #7bdcff;
    border-radius: 15px;
    background: #e0f7ff;
    color: #08265f;
    text-decoration: none;
}

.contact {
    border-color: #a8e67d;
    background: #edffdf;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #14539c;
    color: #fff;
    font-size: 21px;
}

.contact .info-icon {
    background: #078447;
}

.info-card > div:last-child {
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.info-card h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 900;
}

.info-card p {
    margin: 0 0 6px;
    font-size: 11px;
    line-height: 1.4;
}

.info-card b {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 22px;
    background: #14539c;
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
}

.contact b {
    background: #078447;
}

/* iPhone and small mobile screens */

@media (max-width: 480px) {
    .information-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 0 8px 10px;
        margin-left: auto;
        margin-right: auto;
    }

    .info-card {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 6px;
        padding: 10px 5px;
        border-radius: 12px;
    }

    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .info-card > div:last-child {
        width: 100%;
        text-align: center;
    }

    .info-card h3 {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .info-card p {
        font-size: 10px;
        margin-bottom: 6px;
        overflow-wrap: anywhere;
    }

    .info-card b {
        padding: 6px 8px;
        font-size: 10px;
        white-space: normal;
    }
}

/* Extra-small phones */

@media (max-width: 350px) {
    .information-row {
        gap: 5px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .info-card {
        padding: 8px 3px;
    }

    .info-card h3 {
        font-size: 12px;
    }

    .info-card p {
        font-size: 9px;
    }

    .info-card b {
        padding: 5px 6px;
        font-size: 9px;
    }
}

.contact {
    border-color: #a8e67d;
    background: #edffdf;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #14539c;
    color: white;
    font-size: 25px;
}

.contact .info-icon {
    background: #078447;
}

.info-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 1000;
}

.info-card p {
    margin: 0 0 7px;
    font-size: 12px;
    line-height: 1.4;
}

.info-card b {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 22px;
    background: #14539c;
    color: white;
    font-size: 11px;
}

.contact b {
    background: #078447;
    font-size: 14px;
}

.popup-footer {
    background: #08265f;
    color: white;
    text-align: center;
    font-weight: 900;
}

/* Small screens */

@media (max-width: 600px) {
    .popup-overlay {
        padding: 7px;
    }

    .admission-popup {
        max-height: calc(100dvh - 14px);
        border-width: 3px;
        border-radius: 14px;
    }

    .poster-content h1 {
        margin: 9px 0 13px;
        font-size: clamp(20px, 5.8vw, 29px);
    }

    .admission-title {
        padding: 9px 15px;
    }

    .admission-title span {
        font-size: clamp(22px, 6.8vw, 32px);
    }

    .admission-title strong {
        font-size: clamp(28px, 8vw, 39px);
    }

    .admission-for {
        margin-top: 12px;
        font-size: 14px;
    }

    .class-list {
        gap: 5px;
    }

    .class-list span {
        padding: 7px 8px;
        font-size: 12px;
    }

    .date-label {
        margin-top: 12px;
        padding: 8px 5px;
        font-size: 16px;
    }

    .registration-box {
        gap: 8px;
    }

    .laptop-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 25px;
    }

    .registration-info h2 {
        font-size: 15px;
    }

    .register-btn {
        gap: 6px;
        padding: 8px 5px;
        font-size: 18px;
    }

    .register-btn span {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }

    .information-row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 0 8px 9px;
    }

    .info-card {
        padding: 8px;
        gap: 9px;
    }

    .info-icon {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }

    .info-card h3 {
        font-size: 14px;
    }

    .info-card p {
        font-size: 11px;
    }

    .close-btn {
        top: 7px;
        right: 7px;
        width: 34px;
        height: 34px;
        font-size: 25px;
    }
}

/* Compact popup size */
.admission-popup {
    width: min(100%, 680px);
    max-height: 88vh;
    overflow-y: auto;
    border-width: 4px;
    border-radius: 16px;
}

.poster-area {
    padding: 12px 12px 9px;
}

.poster-content h1 {
    font-size: clamp(20px, 2.5vw, 27px);
    margin: 7px 0 11px;
}

.admission-title {
    padding: 7px 20px;
}

.admission-title span {
    font-size: clamp(23px, 3vw, 32px);
}

.admission-title strong {
    font-size: clamp(28px, 3.5vw, 36px);
}

.admission-for {
    margin: 10px 0 6px;
    font-size: 14px;
}

.class-list span {
    padding: 6px 9px;
    font-size: 12px;
}

.date-label {
    margin-top: 10px;
    padding: 8px;
    font-size: 18px;
}

.registration-box {
    margin: 8px;
    padding: 9px;
}

.laptop-icon {
    width: 48px;
    height: 48px;
    font-size: 28px;
}

.registration-info h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.register-btn {
    max-width: 310px;
    padding: 8px 12px;
    font-size: 22px;
}

.register-btn span {
    width: 25px;
    height: 25px;
}

.information-row {
    gap: 8px;
    padding: 0 8px 8px;
}

.info-card {
    padding: 8px;
    gap: 8px;
}

.info-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.info-card h3 {
    font-size: 13px;
}

.info-card p {
    font-size: 10px;
}

.info-card b {
    font-size: 10px;
    padding: 5px 7px;
}

.popup-footer {
    padding: 9px;
    font-size: 11px;
}

@media (max-width: 600px) {
    .admission-popup {
        width: 100%;
        max-height: 88dvh;
    }

    .poster-area {
        min-height: 250px;
    }

    .information-row {
        grid-template-columns: 1fr;
    }
}
