/* =========================================================
   BATTLES OF THE BRAIN
   PLANS & FEES PAGE
   /assets/frontpage/css/planspricing.css
   ========================================================= */


/* ---------------------------------------------------------
   RESET / GENERAL
--------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    color: #14233b;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}


/* ---------------------------------------------------------
   MAIN PAGE BACKGROUND
--------------------------------------------------------- */

.plans-section {
    position: relative;
    width: 100%;
    min-height: 100vh;

    padding-top: 7rem;
    padding-bottom: 3rem;

    background-image: url('/assets/frontpage/images/i-bg.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: repeat-y;
    background-attachment: fixed;

    overflow: hidden;
}


/* Soft overlay over full background */

.plans-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(225, 247, 255, 0.48);

    z-index: 0;
    pointer-events: none;
}


/* ---------------------------------------------------------
   PAGE TITLE AREA
--------------------------------------------------------- */

.plans-bg {
    position: relative;
    width: 100%;
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px 20px 25px;

    z-index: 1;
}


/*
   Because the full page already uses i-bg.jpg,
   this additional image is optional.

   If your HTML still contains:

   <img src="/assets/frontpage/images/i-bg.jpg"
        class="bg-plans">

   this hides that duplicate image.
*/

.bg-plans {
    display: none;
}


.plans-title-main {
    margin: 0;

    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;

    font-weight: 900;
    letter-spacing: 1px;

    color: #002549;
    text-align: center;

    text-shadow:
        0 2px 12px rgba(255, 255, 255, 0.65);
}


.plans-subtitle-main {
    margin: 12px auto 0;

    max-width: 900px;

    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);

    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 1px;

    color: #002549;

    text-align: center;
}


/* ---------------------------------------------------------
   CONTENT WRAPPER
--------------------------------------------------------- */

.plans-content {
    position: relative;
    z-index: 2;

    width: 95%;
    max-width: 70rem;

    margin: 0 auto;

    padding: 20px 0 60px;
}


/* ---------------------------------------------------------
   GENERIC CARD
--------------------------------------------------------- */

.plans-card {
    width: 100%;

    margin-bottom: 32px;
    padding: 30px;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(64, 150, 205, 0.28);
    border-radius: 22px;

    box-shadow:
        0 12px 30px rgba(0, 55, 95, 0.10),
        0 3px 10px rgba(0, 55, 95, 0.05);

    backdrop-filter: blur(3px);
}


.plans-card-title {
    margin: 0 0 25px;

    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 2rem);

    line-height: 1.25;
    font-weight: 900;

    color: #002549;

    text-align: center;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   TUITION AVAILABLE FOR
--------------------------------------------------------- */

.current-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}


.product-info-box {
    padding: 28px 30px;

    text-align: center;

    border: 1px solid #c9e4f3;
    border-radius: 17px;

    background: rgba(241, 250, 255, 0.92);
}


.product-info-box h4 {
    margin: 0 0 8px;

    font-family: 'Rajdhani', sans-serif;

    font-size: 17px;
    font-weight: 700;

    letter-spacing: 1px;

    color: #557690;

    text-transform: uppercase;
}


.product-info-box h2 {
    margin: 0 0 10px;

    font-family: 'Orbitron', sans-serif;

    font-size: clamp(1.4rem, 3vw, 2.1rem);

    font-weight: 900;

    color: #145a9f;
}


.product-info-box p {
    max-width: 430px;

    margin: 0 auto;

    font-size: 16px;
    line-height: 1.6;

    color: #506779;
}


/* ---------------------------------------------------------
   PERSONAL TUITION PLANS
--------------------------------------------------------- */

.learning-plans-card {
    padding: 30px;
}


.learning-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 26px;
}


/* ---------------------------------------------------------
   INDIVIDUAL PLAN
--------------------------------------------------------- */

.learning-plan-box {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid #cae5f3;
    border-radius: 20px;

    box-shadow:
        0 7px 20px rgba(15, 86, 128, 0.07);
}


.self-learning-plan {
    border-top: 5px solid #218ed2;
}


.supportive-learning-plan {
    border-top: 5px solid #279866;
}


/* ---------------------------------------------------------
   PLAN HEADER
--------------------------------------------------------- */

.plan-heading {
    min-height: 185px;

    padding: 26px 26px 22px;

    text-align: center;
}


.self-learning-plan .plan-heading {
    background:
        linear-gradient(
            180deg,
            rgba(226, 246, 255, 0.95),
            rgba(250, 254, 255, 0.98)
        );
}


.supportive-learning-plan .plan-heading {
    background:
        linear-gradient(
            180deg,
            rgba(230, 250, 239, 0.95),
            rgba(251, 255, 253, 0.98)
        );
}


.plan-heading h2 {
    margin: 0 0 7px;

    font-family: 'Orbitron', sans-serif;

    font-size: clamp(1.4rem, 2.3vw, 1.9rem);

    font-weight: 900;

    line-height: 1.25;

    color: #164e8b;
}


.supportive-learning-plan .plan-heading h2 {
    color: #23784f;
}


.plan-heading h4 {
    margin: 0 0 12px;

    font-family: 'Rajdhani', sans-serif;

    font-size: 19px;
    font-weight: 700;

    color: #627587;
}


.plan-heading p {
    max-width: 430px;

    margin: 0 auto;

    font-size: 15.5px;
    line-height: 1.55;

    color: #4f6577;
}


/* ---------------------------------------------------------
   PLAN DETAILS
--------------------------------------------------------- */

.plan-information-grid {
    display: grid;
    grid-template-columns: 1fr;

    gap: 20px;

    padding: 22px 24px 26px;
}


.plan-feature-section,
.plan-bestfor-section {
    padding: 20px;

    border-radius: 15px;
}


.plan-feature-section {
    background: #f7fbfe;

    border: 1px solid #dcecf5;
}


.plan-bestfor-section {
    background: #f8fcff;

    border: 1px solid #d8eaf5;
}


.supportive-learning-plan .plan-feature-section,
.supportive-learning-plan .plan-bestfor-section {
    background: #f8fdf9;

    border-color: #d8edde;
}


.plan-feature-section h3,
.plan-bestfor-section h3 {
    margin: 0 0 16px;

    font-family: 'Rajdhani', sans-serif;

    font-size: 23px;
    line-height: 1.2;

    font-weight: 700;

    color: #145ca5;
}


.supportive-learning-plan .plan-feature-section h3,
.supportive-learning-plan .plan-bestfor-section h3 {
    color: #28784f;
}


.plan-feature-section ul,
.plan-bestfor-section ul {
    margin: 0;

    padding: 0;

    list-style: none;
}


.plan-feature-section li,
.plan-bestfor-section li {
    position: relative;

    margin-bottom: 11px;

    padding-left: 25px;

    font-size: 15px;
    line-height: 1.55;

    color: #425b6e;
}


.plan-feature-section li:last-child,
.plan-bestfor-section li:last-child {
    margin-bottom: 0;
}


/* Check marks */

.plan-feature-section li::before,
.plan-bestfor-section li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 0;

    font-size: 16px;

    font-weight: 800;

    color: #16955f;
}


.plan-bestfor-section li::before {
    color: #2587d3;
}


.supportive-learning-plan .plan-bestfor-section li::before {
    color: #278e5d;
}


/* ---------------------------------------------------------
   IMPORTANT NOTE
--------------------------------------------------------- */

.plan-important-note {
    margin-top: 20px;

    padding: 16px 18px;

    border-radius: 12px;

    background: #fff8e7;

    border: 1px solid #f0d58d;

    font-size: 14.5px;
    line-height: 1.6;

    color: #635329;
}


.plan-important-note strong {
    color: #9d6800;
}


/* ---------------------------------------------------------
   TUITION FEE
--------------------------------------------------------- */

.pricing-card {
    padding-bottom: 32px;
}


.self-learning-pricing {
    border-top: 4px solid #218ed2;
}


.supportive-learning-pricing {
    border-top: 4px solid #279866;
}


.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}


.pricing-box {
    overflow: hidden;

    border-radius: 17px;

    border: 1px solid #cae3f1;

    background: #ffffff;
}


.pricing-box h3 {
    margin: 0;

    padding: 17px 20px;

    text-align: center;

    font-family: 'Rajdhani', sans-serif;

    font-size: 22px;
    font-weight: 700;

    color: #ffffff;

    background: #1766b3;
}


.supportive-learning-pricing .pricing-box h3 {
    background: #278259;
}


.pricing-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 58px;

    padding: 13px 22px;

    border-bottom: 1px solid #e2edf3;

    font-size: 16px;
}


.pricing-row:last-child {
    border-bottom: 0;
}


.pricing-row:nth-child(odd) {
    background: #f9fcfe;
}


.pricing-row span {
    color: #52687a;

    font-weight: 500;
}


.pricing-row strong {
    font-family: 'Rajdhani', sans-serif;

    font-size: 20px;
    font-weight: 700;

    color: #145ca5;
}


.supportive-learning-pricing .pricing-row strong {
    color: #23784f;
}


/* Annual fee highlight */

.pricing-row:last-child {
    background: #edf8ff;
}


.supportive-learning-pricing .pricing-row:last-child {
    background: #edf9f2;
}


.pricing-row:last-child span,
.pricing-row:last-child strong {
    font-weight: 700;
}


/* ---------------------------------------------------------
   AVAILABLE TUITION SUBJECTS
--------------------------------------------------------- */

.subject-info-card {
    text-align: center;
}


.subject-info-content {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    max-width: 850px;

    margin: 0 auto;
}


.subject-box {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 85px;

    padding: 20px;

    background: #f3fbff;

    border: 1px solid #cae5f3;

    border-radius: 15px;
}


.subject-box h3 {
    margin: 0;

    font-family: 'Rajdhani', sans-serif;

    font-size: 23px;

    font-weight: 700;

    color: #145ba6;
}


.subject-note {
    margin: 19px 0 0;

    font-size: 15.5px;

    color: #607687;
}


/* ---------------------------------------------------------
   SUPPORT INFORMATION
--------------------------------------------------------- */

.plans-support-box {
    margin-top: 34px;

    padding: 28px 30px;

    text-align: center;

    border: 1px solid #badbe9;

    border-radius: 19px;

    background: rgba(255, 255, 255, 0.91);

    box-shadow:
        0 6px 18px rgba(33, 101, 142, 0.06);
}


.plans-support-box h3 {
    margin: 0 0 12px;

    font-family: 'Orbitron', sans-serif;

    font-size: 25px;

    font-weight: 900;

    color: #155da8;
}


.plans-support-box p {
    margin: 7px 0;

    font-size: 15.5px;
    line-height: 1.55;

    color: #4f6779;
}


.plans-support-box strong {
    color: #164f85;
}


/* ---------------------------------------------------------
   RESPONSIVE - TABLET
--------------------------------------------------------- */

@media (max-width: 980px) {

    .plans-content {
        width: 94%;
        max-width: 900px;
    }

    .learning-plan-grid {
        grid-template-columns: 1fr;
    }

    .learning-plan-box {
        width: 100%;
        max-width: 720px;

        margin: 0 auto;
    }

}


/* ---------------------------------------------------------
   RESPONSIVE - SMALL TABLET
--------------------------------------------------------- */

@media (max-width: 760px) {

    .plans-section {
        padding-top: 6.5rem;
        background-attachment: scroll;
    }

    .plans-bg {
        min-height: 190px;
        padding: 25px 16px;
    }

    .plans-card {
        padding: 22px 18px;

        border-radius: 18px;
    }

    .current-products-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .subject-info-content {
        grid-template-columns: 1fr;
    }

    .product-info-box {
        padding: 23px 20px;
    }

    .plan-heading {
        min-height: auto;
    }

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 520px) {

    .plans-section {
        padding-top: 6rem;
    }

    .plans-content {
        width: calc(100% - 20px);

        padding-bottom: 40px;
    }

    .plans-bg {
        min-height: 170px;

        padding: 20px 15px;
    }

    .plans-title-main {
        font-size: 28px;
    }

    .plans-subtitle-main {
        margin-top: 10px;

        font-size: 15px;
    }

    .plans-card-title {
        font-size: 20px;
    }

    .plan-heading {
        padding: 22px 17px;
    }

    .plan-heading h2 {
        font-size: 21px;
    }

    .plan-information-grid {
        padding: 16px;
    }

    .plan-feature-section,
    .plan-bestfor-section {
        padding: 17px 15px;
    }

    .plan-feature-section li,
    .plan-bestfor-section li {
        padding-left: 23px;

        font-size: 14.5px;
    }

    .pricing-row {
        padding: 12px 16px;
    }

    .pricing-row strong {
        font-size: 18px;
    }

    .plans-support-box {
        padding: 24px 17px;
    }

}