/* ==========================================================================
   Hero Section Container
   ========================================================================== */
.pu-about-hero {
    position: relative;
    width: 100%;
    min-height: 850px;
    padding-top: 185px;
    padding-bottom: 0;
    background-color: #FDFCFC;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hero Content Area */
.pu-about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Pill Badge: "About the university" */
.pu-about-hero-badge-wrap {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.pu-about-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    background: #FFFFFF;
    border: 1px solid rgba(86, 65, 224, 0.22);
    border-radius: 999px;
    box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.08), 0px 0px 7px 0px rgba(86, 65, 224, 0.2) inset;
    font-family: var(--font-figtree, 'Figtree', sans-serif);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy, #0F0445);
    letter-spacing: -0.01em;
}

/* Hero Heading */
.pu-about-hero-title {
    font-family: var(--font-display, 'Polymath Display', 'Figtree', sans-serif);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: var(--navy, #0F0445);
    margin: 0 0 18px 0;
    text-align: center;
}

/* Hero Description */
.pu-about-hero-desc {
    font-family: var(--font-figtree, 'Figtree', sans-serif);
    font-size: 17.5px;
    font-weight: 400;
    line-height: 1.58;
    color: var(--text-secondary, #5B5B5B);
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
}

/* ==========================================================================
   Hero 3-Image Showcase Layout
   ========================================================================== */
.pu-about-hero-media-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 45px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    perspective: 1200px;
}

.pu-about-hero-cards {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    max-width: 960px;
    margin-bottom: 0; /* Center card touches the bottom line */
    transform-style: preserve-3d;
}

.pu-about-hero-card {
    position: relative;
    width: 335px;
    height: 468px;
    border-radius: 28px;
    overflow: hidden;
    border: 2.2px solid #000000;
    box-sizing: border-box;
    background-color: #E8E8EE;
    flex-shrink: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pu-about-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
    user-select: none;
    -webkit-user-drag: none;
}

/* Left Card: 3D Perspective rotation (rotateY + rotateZ + translateY) */
.pu-about-hero-card-left {
    z-index: 1;
    transform-origin: center bottom;
    transform: perspective(1000px) rotateY(14deg) rotateZ(-8deg) translateY(65px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* Center Card: Elevated in 3D Z-space, stands taller, overlaps side cards */
.pu-about-hero-card-center {
    z-index: 3;
    transform-origin: center bottom;
    transform: translateZ(15px) translateY(0);
    margin: 0 -125px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

/* Right Card: 3D Perspective rotation (opposite rotateY + rotateZ + translateY) */
.pu-about-hero-card-right {
    z-index: 1;
    transform-origin: center bottom;
    transform: perspective(1000px) rotateY(-14deg) rotateZ(8deg) translateY(65px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Bottom Gradient Overlay
   ========================================================================== */
.pu-about-hero-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0.9) 95%, #FFFFFF 100%);
    pointer-events: none;
    z-index: 4;
}

/* ==========================================================================
   Hero Section Responsive Breakpoints (Grouped Section-Wise)
   ========================================================================== */

/* Laptops & Standard Desktops (992px - 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .pu-about-hero {
        min-height: 800px;
        padding-top: 120px;
    }
    .pu-about-hero-title {
        font-size: 52px;
    }
    .pu-about-hero-desc {
        font-size: 17px;
        max-width: 700px;
    }
    .pu-about-hero-card {
        width: 290px;
        height: 410px;
        border-radius: 24px;
    }
    .pu-about-hero-card-center {
        margin: 0 -110px;
        transform: translateZ(15px) translateY(0);
    }
    .pu-about-hero-card-left {
        transform: perspective(1000px) rotateY(14deg) rotateZ(-8deg) translateY(55px);
        transform-origin: center bottom;
    }
    .pu-about-hero-card-right {
        transform: perspective(1000px) rotateY(-14deg) rotateZ(8deg) translateY(55px);
        transform-origin: center bottom;
    }
    .pu-about-hero-cards {
        margin-bottom: 0;
    }
    .pu-about-hero-bottom-overlay {
        height: 170px;
    }
}

/* Tablets (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .pu-about-hero {
        min-height: 720px;
        padding-top: 100px;
    }
    .pu-about-hero-title {
        font-size: 44px;
        margin-bottom: 16px;
    }
    .pu-about-hero-desc {
        font-size: 16px;
        line-height: 1.55;
        max-width: 620px;
    }
    .pu-about-hero-media-wrap {
        margin-top: 35px;
    }
    .pu-about-hero-card {
        width: 230px;
        height: 325px;
        border-radius: 20px;
    }
    .pu-about-hero-card-center {
        margin: 0 -85px;
        transform: translateZ(12px) translateY(0);
    }
    .pu-about-hero-card-left {
        transform: perspective(800px) rotateY(13deg) rotateZ(-7.5deg) translateY(42px);
        transform-origin: center bottom;
    }
    .pu-about-hero-card-right {
        transform: perspective(800px) rotateY(-13deg) rotateZ(7.5deg) translateY(42px);
        transform-origin: center bottom;
    }
    .pu-about-hero-cards {
        margin-bottom: 0;
    }
    .pu-about-hero-bottom-overlay {
        height: 130px;
    }
}

/* Mobile Screens (<= 767.98px) */
@media (max-width: 767.98px) {
    .pu-about-hero {
        min-height: auto;
        padding-top: 130px;
        padding-bottom: 0;
        background-position: center top;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .pu-about-hero-content {
        padding: 0 20px;
    }

    .pu-about-hero-badge-wrap {
        margin-bottom: 18px;
    }

    .pu-about-hero-badge {
        font-size: 13.5px;
        padding: 6px 18px;
    }

    /* Heading 4-line wrapping matching mobile design */
    .pu-about-hero-title {
        font-size: 31px;
        line-height: 1.12;
        letter-spacing: -0.025em;
        margin: 0 auto 16px;
        max-width: 320px;
    }

    .pu-about-hero-desc {
        font-size: 15px;
        line-height: 1.48;
        max-width: 340px;
        padding: 0;
    }

    .pu-about-hero-media-wrap {
        margin-top: 36px;
    }

    .pu-about-hero-cards {
        max-width: 100%;
        padding: 0 5px;
        margin-bottom: 0;
    }

    .pu-about-hero-card {
        width: 140px;
        height: 198px;
        border-radius: 16px;
        border-width: 1.5px;
    }

    .pu-about-hero-card-left {
        transform: perspective(600px) rotateY(12deg) rotateZ(-7deg) translateY(26px);
        transform-origin: center bottom;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .pu-about-hero-card-center {
        margin: 0 -52px;
        transform: translateZ(10px) translateY(0);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    }

    .pu-about-hero-card-right {
        transform: perspective(600px) rotateY(-12deg) rotateZ(7deg) translateY(26px);
        transform-origin: center bottom;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .pu-about-hero-bottom-overlay {
        height: 90px;
    }
}

/* Small Phones (<= 380px) */
@media (max-width: 380px) {
    .pu-about-hero {
        padding-top: 115px;
    }

    .pu-about-hero-title {
        font-size: 33px;
        max-width: 290px;
    }

    .pu-about-hero-desc {
        font-size: 14px;
        max-width: 300px;
    }

    .pu-about-hero-card {
        width: 118px;
        height: 168px;
        border-radius: 14px;
    }

    .pu-about-hero-card-left {
        transform: perspective(500px) rotateY(11deg) rotateZ(-6.5deg) translateY(20px);
        transform-origin: center bottom;
    }

    .pu-about-hero-card-center {
        margin: 0 -44px;
        transform: translateZ(8px) translateY(0);
    }

    .pu-about-hero-card-right {
        transform: perspective(500px) rotateY(-11deg) rotateZ(6.5deg) translateY(20px);
        transform-origin: center bottom;
    }

    .pu-about-hero-bottom-overlay {
        height: 70px;
    }
}