/* ================================================================
   principal.css  —  LNMS College Principal's Message Page
   Follows the same design system as principals_list.css / alumni.css:
     · CSS variables (blue / green tokens)
     · Poppins + Playfair Display + DM Sans + Noto Sans Devanagari
     · AOS-compatible fade-up pattern
     · Mini-hero identical in structure to principals_list.aspx
   ================================================================ */

/* ── Font imports ─────────────────────────────────────────────── */
@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* ── Design tokens (shared across the whole site) ─────────────── */
:root {
    --blue: #1E3A8A;
    --blue-dark: #162d6e;
    --blue-mid: #2a4fa8;
    --blue-light: #dbeafe;
    --green: #22C55E;
    --green-dark: #16a34a;
    --green-light: #dcfce7;
    --bg: #F8FAFC;
    --card: #ffffff;
    --text: #0F172A;
    --text-muted: #475569;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 10px rgba(15,23,42,.08);
    --shadow-md: 0 6px 24px rgba(15,23,42,.12);
    --shadow-lg: 0 16px 48px rgba(15,23,42,.18);
    --shadow-blue: 0 8px 28px rgba(30,58,138,.28);
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-pill: 50px;
    --t: 0.3s ease;
    --font: 'Poppins','Noto Sans Devanagari',sans-serif;
    --font-hindi: 'Noto Sans Devanagari','Poppins',sans-serif;
}

/* ================================================================
   1. MINI HERO SECTION
      Identical in structure to .pl-mini-hero (principals_list.css)
      Prefixed with  pm-mini-hero__  to avoid conflicts
   ================================================================ */

.pm-mini-hero {
    position: relative;
    width: 100%;
    height: 320px;
    min-height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1E3A8A 55%, #2a4fa8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
}

/* ── Noise overlay ────────────────────────────────────────────── */
.pm-mini-hero__overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

/* ── Decorative rings ─────────────────────────────────────────── */
.pm-mini-hero__ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.pm-mini-hero__ring--lg {
    top: -90px;
    right: -90px;
    width: 340px;
    height: 340px;
    border: 64px solid rgba(30, 58, 138, 0.22);
}

.pm-mini-hero__ring--sm {
    bottom: -55px;
    left: -55px;
    width: 210px;
    height: 210px;
    border: 42px solid rgba(34, 197, 94, 0.10);
}

/* ── Animated grid lines ──────────────────────────────────────── */
.pm-mini-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: pmGridDrift 18s linear infinite;
}

@keyframes pmGridDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 48px 48px;
    }
}

/* ── Content block ────────────────────────────────────────────── */
.pm-mini-hero__body {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.pm-mini-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(12px);
    animation: pmFadeUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}

.pm-mini-hero__bc-link {
    font-size: .78rem;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

    .pm-mini-hero__bc-link:hover {
        color: var(--green);
        text-decoration: none;
    }

.pm-mini-hero__bc-sep {
    color: rgba(255,255,255,.25);
    font-size: .78rem;
}

.pm-mini-hero__bc-current {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.80);
}

/* ── Eyebrow badge ────────────────────────────────────────────── */
.pm-mini-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34,197,94,.15);
    border: 1px solid rgba(34,197,94,.45);
    color: var(--green);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(14px);
    animation: pmFadeUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.25s forwards;
}

.pm-mini-hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pmPulse 2s ease-in-out infinite;
}

/* ── Heading ──────────────────────────────────────────────────── */
.pm-mini-hero__heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: pmFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.42s forwards;
}

    .pm-mini-hero__heading em {
        font-style: normal;
        color: var(--green);
        position: relative;
    }

        .pm-mini-hero__heading em::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -3px;
            width: 100%;
            height: 3px;
            background: var(--green);
            border-radius: 2px;
            transform-origin: left;
            transform: scaleX(0);
            animation: pmUnderline 0.55s cubic-bezier(0.22,1,0.36,1) 1.1s forwards;
        }

/* ── Sub text ─────────────────────────────────────────────────── */
.pm-mini-hero__sub {
    color: rgba(255,255,255,.62);
    font-size: clamp(.85rem, 1.6vw, 1rem);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.65;
    margin: 0;
    opacity: 0;
    transform: translateY(16px);
    animation: pmFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.58s forwards;
}

/* ── Keyframes ────────────────────────────────────────────────── */
@keyframes pmFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pmUnderline {
    to {
        transform: scaleX(1);
    }
}

@keyframes pmPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.8);
    }
}

/* ── Mini hero responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .pm-mini-hero {
        height: 260px;
        min-height: 220px;
    }

    .pm-mini-hero__ring--lg {
        width: 200px;
        height: 200px;
        border-width: 40px;
        top: -60px;
        right: -60px;
    }
}

@media (max-width: 480px) {
    .pm-mini-hero {
        height: 230px;
    }

    .pm-mini-hero__sub {
        display: none;
    }
}

/* ================================================================
   2. AOS ANIMATION SUPPORT
      Mirrors the pattern used in Default.aspx & principals_list
   ================================================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

    [data-aos].aos-animate {
        opacity: 1;
        transform: translateY(0);
    }

/* ================================================================
   3. MESSAGE SECTION SHELL
   ================================================================ */
.pm-message-area {
    background: var(--bg);
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}

    /* Subtle dot-grid texture */
    .pm-message-area::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, rgba(30,58,138,.06) 1px, transparent 1px);
        background-size: 28px 28px;
        pointer-events: none;
        z-index: 0;
    }

    .pm-message-area .container {
        position: relative;
        z-index: 1;
    }

/* ================================================================
   4. SECTION TITLE BLOCK
   ================================================================ */

/* Eyebrow pill — identical to .pl-eyebrow */
.pm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-light);
    padding: 5px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 14px;
}

.pm-section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 14px;
}

.pm-section-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(.92rem, 1.6vw, 1.05rem);
    font-weight: 400;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* ================================================================
   5. PRINCIPAL CARD
   ================================================================ */
.pm-card {
    display: flex;
    gap: 44px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px 40px 40px 48px; /* extra left pad for accent strip */
    position: relative;
    overflow: hidden;
    max-width: 1060px;
    margin: 0 auto;
    transition: box-shadow var(--t), border-color var(--t);
}

    .pm-card:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--blue-light);
    }

/* ── Left colour accent strip ─────────────────────────────────── */
.pm-card__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--blue) 0%, var(--green) 100%);
    border-radius: var(--r-lg) 0 0 var(--r-lg);
    transition: width var(--t);
}

.pm-card:hover .pm-card__accent {
    width: 7px;
}

/* ================================================================
   6. PHOTO COLUMN
   ================================================================ */
.pm-card__photo-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 200px;
}

/* ── Photo wrapper ────────────────────────────────────────────── */
.pm-card__img-wrap {
    position: relative;
    width: 200px;
    height: 250px;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    border: 3px solid var(--blue-light);
}

.pm-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
}

.pm-card:hover .pm-card__img {
    transform: scale(1.05);
}

/* Subtle shine overlay on hover */
.pm-card__img-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,.08) 0%, transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t);
}

.pm-card:hover .pm-card__img-shine {
    opacity: 1;
}

/* ── Name badge below photo ───────────────────────────────────── */
.pm-card__name-badge {
    width: 200px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
    border-radius: var(--r-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    box-shadow: var(--shadow-blue);
}

.pm-card__badge-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
}

.pm-card__badge-name {
    font-family: var(--font);
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: block;
}

.pm-card__badge-title {
    font-family: var(--font-hindi);
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255,255,255,.80);
    display: block;
    margin-top: 2px;
}

.pm-card__badge-college {
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 400;
    color: var(--green);
    display: block;
    margin-top: 4px;
    letter-spacing: .03em;
}

/* ================================================================
   7. MESSAGE / CONTENT COLUMN
   ================================================================ */
.pm-card__content-col {
    flex: 1;
    min-width: 0;
}

/* ── Opening quote mark ───────────────────────────────────────── */
.pm-card__quote-mark {
    font-family: Georgia, serif;
    font-size: 80px;
    line-height: 0.55;
    color: var(--blue-light);
    display: block;
    margin-bottom: 14px;
    user-select: none;
}

/* ── Paragraphs ───────────────────────────────────────────────── */
.pm-card__content-col p {
    font-family: var(--font-hindi);
    font-size: 15.5px;
    line-height: 2.0;
    color: var(--text);
    margin-bottom: 18px;
    text-align: justify;
    hyphens: auto;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* College name highlight */
.pm-card__college-name {
    font-weight: 700;
    color: var(--blue);
}

/* Blessings line */
.pm-card__blessings {
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
    margin-top: 24px;
    margin-bottom: 0 !important;
}

/* ── Signature block ──────────────────────────────────────────── */
.pm-card__signature {
    margin-top: 28px;
    text-align: right;
}

.pm-card__sig-line {
    height: 1px;
    background: linear-gradient(to left, var(--blue-light), transparent);
    margin-bottom: 16px;
    border-radius: 1px;
}

.pm-card__signature p {
    margin: 0 !important;
    font-family: var(--font-hindi) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    text-align: right !important;
    color: var(--blue) !important;
}

/* ================================================================
   8. RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .pm-card {
        gap: 32px;
        padding: 32px 28px 32px 36px;
    }

    .pm-card__photo-col {
        width: 170px;
    }

    .pm-card__img-wrap {
        width: 170px;
        height: 215px;
    }

    .pm-card__name-badge {
        width: 170px;
    }
}

@media (max-width: 767px) {
    .pm-message-area {
        padding: 60px 0 70px;
    }

    .pm-card {
        flex-direction: column;
        align-items: center;
        padding: 28px 22px 32px;
        gap: 24px;
        text-align: center;
    }

    /* On mobile, accent strip runs along the top */
    .pm-card__accent {
        width: 100%;
        height: 5px;
        top: 0;
        bottom: auto;
        left: 0;
        right: 0;
        border-radius: var(--r-lg) var(--r-lg) 0 0;
    }

    .pm-card:hover .pm-card__accent {
        width: 100%;
        height: 7px;
    }

    .pm-card__photo-col {
        width: 180px;
    }

    .pm-card__img-wrap {
        width: 180px;
        height: 225px;
    }

    .pm-card__name-badge {
        width: 180px;
    }

    .pm-card__quote-mark {
        text-align: left;
    }

    .pm-card__content-col p {
        text-align: left;
    }

    .pm-card__signature p {
        text-align: center !important;
    }

    .pm-card__signature {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pm-card {
        padding: 24px 16px 28px;
    }

    .pm-card__content-col p {
        font-size: 14.5px;
        line-height: 1.95;
    }

    .pm-section-sub {
        display: none;
    }
}
