/* ============================================================
   RJMC — Principal List Page Styles (v3.0)
   Matches: Red · Off-White · Soft Teal · Deep Teal Blue
   #DB1A1A · #FFF6F6 · #8CC7C4 · #2C687B
   ============================================================ */

/* ══════════════════════════════════════════════════════
   § 1 — MINI HERO / PAGE BANNER
══════════════════════════════════════════════════════ */
.rjmc-mini-hero {
    position: relative;
    background-image: linear-gradient(145deg, rgba(22, 55, 69, .94) 0%, rgba(44, 104, 123, .86) 55%, rgba(140, 199, 196, .35) 100%), url('../images/principal-list/hero-banner.jpg'), url('../images/rjmc-banner.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 460px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Decorative geometry — matches hero in Default.aspx */
.mini-hero-geo-1,
.mini-hero-geo-2,
.mini-hero-geo-3 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.mini-hero-geo-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(219, 26, 26, .15) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    animation: floatA 9s ease-in-out infinite;
}

.mini-hero-geo-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(140, 199, 196, .18) 0%, transparent 70%);
    bottom: -60px;
    left: 5%;
    animation: floatB 12s ease-in-out infinite;
}

.mini-hero-geo-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(219, 26, 26, .1) 0%, transparent 70%);
    top: 20%;
    left: 50%;
    animation: floatA 14s ease-in-out infinite reverse;
}

.mini-hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(140, 199, 196, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 199, 196, .04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.mini-hero-diagonal {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 60%, rgba(140, 199, 196, .07) 100%);
    pointer-events: none;
}

@keyframes floatA {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-28px) scale(1.04);
    }
}

@keyframes floatB {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(6deg);
    }
}

.mini-hero-inner {
    position: relative;
    z-index: 2;
    padding: 80px 0 70px;
}

/* Breadcrumb */
.mini-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

    .mini-hero-breadcrumb a {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .5px;
        color: rgba(140, 199, 196, .8) !important;
        transition: color .25s;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

        .mini-hero-breadcrumb a:hover {
            color: var(--white) !important;
        }

    .mini-hero-breadcrumb .bc-sep {
        font-size: 10px;
        color: rgba(255, 255, 255, .25);
        display: inline-flex;
    }

    .mini-hero-breadcrumb .bc-current {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .5px;
        color: rgba(255, 255, 255, .7);
    }

/* Eyebrow */
.mini-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.mini-hero-eyebrow-line {
    display: block;
    width: 36px;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
}

.mini-hero-eyebrow-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal-light);
}

/* Title */
.mini-hero-title-row h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0;
}

    .mini-hero-title-row h1 em {
        font-style: italic;
        color: var(--teal-light);
    }

/* Tagline */
.mini-hero-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, .75);
    margin-top: 16px;
    max-width: 640px;
}

    .mini-hero-tagline .hi {
        font-family: 'Noto Sans Devanagari', sans-serif;
        color: rgba(255, 255, 255, .55);
        display: inline-block;
        margin-top: 4px;
    }

/* Inline mini-stats */
.mini-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    margin-top: 32px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
}

.mhs-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mhs-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

    .mhs-num em {
        font-size: .9rem;
        font-style: normal;
        color: var(--teal-light);
    }

.mhs-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, .5);
    margin-top: 5px;
}

.mhs-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, .15);
}

/* ══════════════════════════════════════════════════════
   § 2 — LEGACY COLLAGE SECTION
══════════════════════════════════════════════════════ */
.legacy-collage-section {
    background: var(--white);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

/* Collage */
.legacy-collage {
    position: relative;
    height: 520px;
    max-width: 540px;
}

.lc-frame {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform .5s var(--ease);
}

    .lc-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.lc-frame--main {
    width: 64%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    border: 6px solid var(--white);
}

.lc-frame--top {
    width: 46%;
    height: 44%;
    top: 6%;
    right: 0;
    z-index: 3;
    border: 5px solid var(--white);
}

.lc-frame--bottom {
    width: 50%;
    height: 40%;
    bottom: 4%;
    right: -3%;
    z-index: 3;
    border: 5px solid var(--white);
}

.lc-frame:hover {
    transform: translateY(-6px) scale(1.02);
}

/* Badge on main frame */
.lc-frame-badge {
    position: absolute;
    bottom: 22px;
    left: 22px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--white);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--shadow-red);
}

    .lc-frame-badge i {
        font-size: 14px;
        color: var(--teal-light);
    }

/* Decorative elements */
.lc-decor--ring {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 110px;
    height: 110px;
    border: 2px dashed rgba(140, 199, 196, .4);
    border-radius: 50%;
    z-index: 1;
    animation: spin 30s linear infinite;
}

.lc-decor--dots {
    position: absolute;
    bottom: -20px;
    left: 35%;
    width: 130px;
    height: 130px;
    background-image: radial-gradient(circle, var(--teal) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: .35;
    z-index: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Legacy text */
.legacy-text {
    padding-left: 30px;
}

.legacy-para {
    font-size: 15px;
    line-height: 1.82;
    color: var(--text-body);
    margin-bottom: 16px;
}

    .legacy-para strong {
        color: var(--deep);
        font-weight: 600;
    }

/* Highlight items */
.legacy-highlights {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lh-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

    .lh-item:hover {
        transform: translateX(4px);
        border-color: var(--teal);
        box-shadow: var(--shadow-sm);
    }

.lh-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: var(--red-ghost);
    border: 1px solid rgba(219, 26, 26, .15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 20px;
}

.lh-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.lh-content p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════
   § 3 — PRINCIPAL TIMELINE (Roll of Honour)
══════════════════════════════════════════════════════ */
.principal-section {
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

    .principal-section::before {
        content: '';
        position: absolute;
        top: 80px;
        right: -100px;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(140, 199, 196, .12) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .principal-section::after {
        content: '';
        position: absolute;
        bottom: 60px;
        left: -120px;
        width: 280px;
        height: 280px;
        background: radial-gradient(circle, rgba(219, 26, 26, .08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

.sec-subtext {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 14px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Timeline */
.principal-timeline {
    position: relative;
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 20px 0;
}

/* Vertical center line */
.pt-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(180deg, rgba(140, 199, 196, .15) 0%, var(--teal) 15%, var(--deep) 50%, var(--red) 85%, rgba(219, 26, 26, .15) 100%);
    border-radius: 3px;
    z-index: 1;
}

/* Card */
.pt-card {
    position: relative;
    width: 50%;
    padding: 18px 0;
    z-index: 2;
}

.pt-card--left {
    left: 0;
    padding-right: 54px;
}

.pt-card--right {
    left: 50%;
    padding-left: 54px;
}

.pt-card-inner {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 26px 28px;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
}

    .pt-card-inner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--teal), var(--deep));
        border-radius: var(--radius-md) 0 0 var(--radius-md);
        transition: all var(--transition);
    }

    .pt-card-inner:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--teal);
    }

        .pt-card-inner:hover::before {
            width: 6px;
            background: linear-gradient(180deg, var(--red), var(--deep));
        }

/* Connecting arrow (left card → line) */
.pt-card--left .pt-card-inner::after,
.pt-card--right .pt-card-inner::after {
    content: '';
    position: absolute;
    top: 32px;
    width: 28px;
    height: 2px;
    background: var(--gray-200);
}

.pt-card--left .pt-card-inner::after {
    right: -28px;
}

.pt-card--right .pt-card-inner::after {
    left: -28px;
}

/* Marker (number circle on the timeline) */
.pt-marker {
    position: absolute;
    top: 22px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--deep) 0%, var(--deep-dark) 100%);
    color: var(--white);
    border: 4px solid var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(44, 104, 123, .25);
    z-index: 3;
}

.pt-card--left .pt-marker {
    right: -78px;
}

.pt-card--right .pt-marker {
    left: -78px;
}

.pt-marker--current {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    box-shadow: 0 6px 22px rgba(219, 26, 26, .4);
}

.pt-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--red);
    animation: pulseRing 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Body content inside card */
.pt-tenure-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--deep);
    background: var(--deep-pale);
    border: 1px solid rgba(44, 104, 123, .18);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    margin-bottom: 12px;
    letter-spacing: .3px;
}

    .pt-tenure-pill i {
        color: var(--red);
        font-size: 13px;
    }

.pt-tenure-pill--current {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    border-color: var(--red);
    box-shadow: 0 4px 14px rgba(219, 26, 26, .3);
}

    .pt-tenure-pill--current i {
        color: var(--white);
    }

.pt-tenure-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

    .pt-tenure-stack .pt-tenure-pill {
        margin-bottom: 0;
    }

.pt-name-en {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    margin: 0 0 4px;
}

.pt-name-hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.pt-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--teal-deeper);
    background: var(--teal-pale);
    border: 1px solid rgba(140, 199, 196, .35);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

.pt-role-tag--current {
    color: var(--white);
    background: linear-gradient(135deg, var(--deep), var(--deep-dark));
    border-color: var(--deep);
}

    .pt-role-tag--current i {
        color: var(--teal-light);
        font-size: 10px;
    }

/* Highlight current card */
.pt-card--current .pt-card-inner {
    background: linear-gradient(135deg, var(--white) 0%, var(--red-ghost) 100%);
    border-color: rgba(219, 26, 26, .25);
    box-shadow: 0 12px 36px rgba(219, 26, 26, .12);
}

    .pt-card--current .pt-card-inner::before {
        background: linear-gradient(180deg, var(--red), var(--red-dark));
        width: 6px;
    }

.pt-card--current .pt-name-en {
    color: var(--red-deeper);
}

/* ══════════════════════════════════════════════════════
   § 4 — RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .rjmc-mini-hero {
        background-attachment: scroll;
        min-height: 380px;
    }

    .mini-hero-inner {
        padding: 64px 0 56px;
    }

    /* Collage */
    .legacy-collage-section {
        padding: 72px 0;
    }

    .legacy-collage {
        height: 440px;
        margin: 0 auto 40px;
    }

    .legacy-text {
        padding-left: 0;
    }

    /* Timeline → single column on left */
    .pt-line {
        left: 28px;
    }

    .pt-card,
    .pt-card--left,
    .pt-card--right {
        width: 100%;
        left: 0;
        padding-left: 70px;
        padding-right: 0;
    }

        .pt-card--left .pt-marker,
        .pt-card--right .pt-marker {
            left: 4px;
            right: auto;
        }

        .pt-card--left .pt-card-inner::after,
        .pt-card--right .pt-card-inner::after {
            left: -22px;
            right: auto;
            width: 22px;
        }
}

@media (max-width: 767px) {
    .principal-section {
        padding: 64px 0;
    }

    .mini-hero-inner {
        padding: 52px 0 44px;
    }

    .mini-hero-tagline {
        font-size: 14.5px;
    }

    .mini-hero-stats {
        gap: 18px;
        padding: 14px 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mhs-num {
        font-size: 1.4rem;
    }

    .legacy-collage {
        height: 380px;
        max-width: 100%;
    }

    .legacy-highlights {
        gap: 14px;
    }

    .pt-card-inner {
        padding: 22px 22px 22px 24px;
    }

    .pt-name-en {
        font-size: 1.2rem;
    }

    .pt-marker {
        width: 40px;
        height: 40px;
        font-size: 15px;
        top: 26px;
    }
}

@media (max-width: 575px) {
    .legacy-collage {
        height: 320px;
    }

    .lc-frame--main {
        width: 70%;
    }

    .lc-frame--top {
        width: 50%;
        height: 42%;
    }

    .lc-frame--bottom {
        width: 54%;
        height: 38%;
    }

    .mini-hero-stats {
        gap: 12px;
        padding: 12px 16px;
    }

    .mhs-divider {
        display: none;
    }

    .pt-card,
    .pt-card--left,
    .pt-card--right {
        padding-left: 56px;
    }

        .pt-card--left .pt-marker,
        .pt-card--right .pt-marker {
            left: 0;
        }
}
