﻿/* ================= JUPSOFT FOOTER (FINAL PRODUCTION CSS) ================= */

.jp-footer {
    background: linear-gradient(135deg, #020a1a, #0b2c6f);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    padding: 55px 0 0;
    overflow: hidden;
}

/* ================= LAYOUT ================= */

.jp-footer-inner {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;
    align-items: start;
    position: relative;
}

/* ================= SALES TEAM (DESKTOP ONLY) ================= */

.jp-footer-contacts {
    justify-self: start;
    padding-left: 20px;
}

.jp-contact-card {
    background-color: #f4b400;
    padding: 26px;
    border-radius: 18px;
    width: 360px;
    min-height: 190px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

    .jp-contact-card h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .jp-contact-card .phone {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 6px;
    }

/* ================= COMMON COLUMNS ================= */

.jp-footer-col h3,
.jp-footer-right h3 {
    font-size: 17px;
    margin-bottom: 14px;
    position: relative;
}

    .jp-footer-col h3::after,
    .jp-footer-right h3::after {
        content: "";
        width: 36px;
        height: 2px;
        background: #f4b400;
        display: block;
        margin-top: 6px;
    }

.jp-footer-col ul,
.jp-footer-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jp-footer-col li,
.jp-footer-right li {
    margin-bottom: 9px;
    font-size: 14.5px;
}

    .jp-footer-col li::before,
    .jp-footer-right li::before {
        content: "» ";
        color: #fff;
    }

/* ================= ADMIN + SOCIAL ================= */

.admin-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .admin-social::before {
        content: "» ";
    }

.admin-text {
    font-size: 14.5px;
    white-space: nowrap;
}

.inline-social {
    display: flex;
    gap: 12px;
    margin-left: 10px;
}

/* ================= SOCIAL ICONS ================= */

.jp-social span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: 0.3s;
}

    .jp-social span:hover {
        background: #f4b400;
        color: #000;
    }

/* ================= TRIANGLES (DESKTOP ONLY) ================= */

.shape {
    position: absolute;
    opacity: 0.95;
    pointer-events: none;
    z-index: 1;
}

    .shape.blue {
        border-left: 220px solid transparent;
        border-bottom: 420px solid #1b8cff;
        right: -50px;
        top: -120px;
    }

    .shape.cyan {
        border-right: 200px solid transparent;
        border-top: 360px solid #4fd1c5;
        right: -20px;
        top: 120px;
    }

    .shape.yellow {
        border-left: 180px solid transparent;
        border-top: 300px solid #f4b400;
        right: -40px;
        bottom: -100px;
    }
    /* ================= LEFT SIDE TRIANGLES ================= */

    .shape.left {
        right: auto;
        left: -50px;
        transform: scaleX(-1); /* 🔥 mirror effect */
    }

    /* BLUE */
    .shape.blue.left {
        border-left: 220px solid transparent;
        border-bottom: 420px solid #1b8cff;
        top: -120px;
    }

    /* CYAN */
    .shape.cyan.left {
        border-right: 200px solid transparent;
        border-top: 360px solid #4fd1c5;
        top: 120px;
    }

    /* YELLOW */
    .shape.yellow.left {
        border-left: 180px solid transparent;
        border-top: 300px solid #f4b400;
        bottom: -100px;
    }


/* ================= FOOTER BOTTOM ================= */

.jp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.18);
    margin-top: 40px;
    padding: 14px 0;
    position: relative;
    z-index: 5;
}

.jp-footer-bottom-inner {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: #d1d5db;
    position: relative;
    z-index: 6;
}

    .jp-footer-bottom-inner b {
        color: #f4b400;
    }

    .jp-footer-bottom-inner span:last-child {
        background: rgba(0,0,0,0.25);
        padding: 4px 10px;
        border-radius: 6px;
    }



/* =====================================================
   📱 MOBILE RESPONSIVE (FINAL & CLEAN)
   ===================================================== */
@media (max-width: 768px) {
    /* ❌ Hide Sales Team */
    .jp-footer-contacts {
        display: none;
    }

    /* Layout center */
    .jp-footer-inner {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
        justify-items: center;
    }

    .jp-footer-col,
    .jp-footer-right {
        justify-self: center;
        text-align: center;
    }

        /* Head underline fit text */
        .jp-footer-col h3,
        .jp-footer-right h3 {
            display: inline-block;
        }

            .jp-footer-col h3::after,
            .jp-footer-right h3::after {
                width: 100%;
                margin: 6px auto 0;
            }

    /* Admin looks like other links */
    .admin-social {
        flex-direction: column;
        gap: 4px;
        margin: 0;
    }

        .admin-social::before {
            display: none;
        }

    .admin-text {
        margin: 0;
        padding: 0;
    }

    /* Social icons center below admin */
    .inline-social {
        justify-content: center;
        margin: 6px 0 0;
    }

    /* Bottom bar center */
    .jp-footer-bottom-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        font-size: 12.5px;
    }

    /* Hide triangles on mobile */
    .shape {
        display: none;
    }
}
/* ================= SCHOOL NAME TOP ================= */

.jp-footer-school {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #f4b400;
    letter-spacing: 0.5px;
    margin-bottom: 35px;
}

/* ================= FOOTER BOTTOM CENTER ================= */

.jp-footer-bottom-inner.center {
    justify-content: center;
    text-align: center;
    font-size: 14px;
}

    .jp-footer-bottom-inner.center b {
        color: #f4b400;
        font-weight: 600;
    }

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .jp-footer-school {
        font-size: 20px;
        padding: 0 15px;
        margin-bottom: 25px;
    }

    .jp-footer-bottom-inner.center {
        font-size: 13px;
    }
}
/* =====================================================
   📱 MOBILE TRIANGLE BACKGROUND ENABLE (FOOTER)
   ===================================================== */

@media (max-width: 768px) {

    /* Shapes ko wapas dikhao */
    .shape {
        display: block;
        opacity: 0.55; /* 👈 mobile ke liye soft */
        filter: blur(1px); /* 👈 background feel */
    }

        /* TOP BLUE TRIANGLE */
        .shape.blue {
            border-left: 140px solid transparent;
            border-bottom: 260px solid #1b8cff;
            right: -80px;
            top: -60px;
        }

        /* MIDDLE CYAN TRIANGLE */
        .shape.cyan {
            border-right: 120px solid transparent;
            border-top: 220px solid #4fd1c5;
            right: -70px;
            top: 120px;
        }

        /* BOTTOM YELLOW TRIANGLE */
        .shape.yellow {
            border-left: 120px solid transparent;
            border-top: 200px solid #f4b400;
            right: -90px;
            bottom: -80px;
        }

    /* Footer content hamesha upar rahe */
    .jp-footer-inner,
    .jp-footer-bottom {
        position: relative;
        z-index: 5;
    }
}
/* ================= FOOTER LINK HOVER EFFECT (IMPROVED) ================= */

.jp-footer a {
    color: #f4b400; /* default yellow */
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

    /* underline hidden initially */
    .jp-footer a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 2px;
        background: #ffffff;
        transition: width 0.35s ease-in-out;
    }

    /* hover effect */
    .jp-footer a:hover {
        color: #ffffff; /* white on hover */
    }

        /* underline appear on hover */
        .jp-footer a:hover::after {
            width: 100%;
        }
@media (max-width: 768px) {

    .shape.left {
        left: -90px;
        right: auto;
        transform: scaleX(-1);
        opacity: 0.45;
        filter: blur(1px);
    }

    .shape.blue.left {
        border-left: 140px solid transparent;
        border-bottom: 260px solid #1b8cff;
        top: -60px;
    }

    .shape.cyan.left {
        border-right: 120px solid transparent;
        border-top: 220px solid #4fd1c5;
        top: 120px;
    }

    .shape.yellow.left {
        border-left: 120px solid transparent;
        border-top: 200px solid #f4b400;
        bottom: -80px;
    }
}

.bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.content-layer {
    position: relative;
    z-index: 5;
}
