﻿
.about-hero {
    background: linear-gradient(135deg, #451a03 0%, #78350f 50%, #9a3412 100%);
    color: #ffffff;
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .about-hero::after {
        content: "ॐ";
        position: absolute;
        right: 5%;
        bottom: -20px;
        font-size: 180px;
        opacity: 0.06;
        font-family: 'Rozha One', serif;
        pointer-events: none;
    }

.about-hero-tag {
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fde68a;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.about-hero h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.about-hero p {
    font-size: 17px;
    color: #fed7aa;
    max-width: 760px;
    margin: 0 auto;
}


:root {
    --navy: #102b4e;
    --blue: #1b527f;
    --saffron: #f29a28;
    --cream: #fffaf1;
    --ink: #1d2939;
    --red: #a53232
}

* {
    box-sizing: border-box
}

main {
    max-width: 1180px;
    margin: 24px auto;
    padding: 0 16px 40px;
    display: grid;
    grid-template-columns: 340px minmax(0,1fr);
    gap: 24px;
    align-items: start
}

.panel, .preview-panel {
    background: white;
    border: 1px solid #dfe6ef;
    border-radius: 15px;
    padding: 19px;
    box-shadow: 0 8px 26px #14243a0b
}

h2 {
    font-size: 18px;
    color: var(--navy);
    margin: 0 0 15px
}

.field {
    margin-bottom: 12px
}

label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .35px;
    color: #526174;
    margin-bottom: 5px
}

input, select, textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    font: inherit;
    font-size: 13px;
    background: #fff
}

    input:focus, textarea:focus, select:focus {
        outline: 2px solid #f6c47b;
        border-color: var(--saffron)
    }

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 15px
}

button {
    border: 0;
    border-radius: 8px;
    padding: 11px 13px;
    font-weight: 700;
    cursor: pointer
}

.primary {
    background: var(--navy);
    color: white
}

.secondary {
    background: #fff1d9;
    color: #7d4b0a;
    border: 1px solid #f0d09d
}

.hint {
    font-size: 11px;
    line-height: 1.55;
    color: #68778a;
    margin: 13px 0 0
}

.preview-panel {
    min-width: 1200px;
}

.preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px
}

    .preview-head h2 {
        margin: 0
    }

    .preview-head span {
        font-size: 12px;
        color: #66758a
    }

.cards {
    display: flex;
    justify-content: center;
    gap: 22px;
    align-items: flex-start;
    flex-wrap: wrap
}

.side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px
}

.side-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #64748b
}

.id-card {
    width: 352px;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #d7dee7;
    background: var(--cream);
    box-shadow: 0 12px 28px #102b4e20;
    color: var(--ink);
    isolation: isolate
}

.front-top {
    height: 100px;
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 12px 13px 20px;
    position: relative
}

    .front-top:after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 100%;
        height: 16px;
        background: var(--saffron);
        clip-path: polygon(0 0, 100% 0, 50% 100%);
    }

.brand-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px
}

.logo {
    width: 75px;
    height: 75px;
    border: 2px solid #ffcf7d;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffcf7d;
    font-size: 21px;
    flex-shrink: 0
}

.brand-name {
    font-size: 14px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: .25px;
    text-align: left
}

.tagline {
    font-size: 9px;
    letter-spacing: .7px;
    color: #ffdda9;
    margin-top: 6px
}

.front-photo {
    position: relative;
    width: 91px;
    height: 105px;
    margin: 20px auto 10px;
    border: 3px solid white;
    border-radius: 9px;
    background: #e8edf3;
    box-shadow: 0 3px 10px #102b4e20;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #64748b;
    font-size: 10px;
    text-align: center;
    font-weight: 800;
    z-index: 2
}

    .front-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ribbon {
    display: inline-block;
    background: var(--saffron);
    color: #35240d;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.4px;
    margin-bottom: 7px
}

.front-name {
    font-size: 19px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.1;
    padding: 0 12px;
    overflow-wrap: anywhere
}

.front-role {
    font-size: 10px;
    font-weight: 800;
    color: #a15d0b;
    letter-spacing: 1.4px;
    margin-top: 5px
}

.front-details {
    margin: 11px 18px 0;
    border-top: 1px solid #eadfcf;
    padding-top: 7px
}

.detail {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    padding: 4px 0;
    border-bottom: 1px dashed #e7dfd3
}

    .detail span:first-child {
        font-size: 8px;
        letter-spacing: .4px;
        color: #6b7788;
        font-weight: 800
    }

    .detail span:last-child {
        font-weight: 800;
        text-align: right;
        overflow-wrap: anywhere
    }

.front-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    height: 31px;
    color: #ffdda9;
    display: grid;
    place-items: center;
    font-size: 8px;
    letter-spacing: .7px;
    font-weight: 800
}
.sign-stamp {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/*.front-footer:before {
        content: "";
        position: absolute;
        top: -6px;
        left: 0;
        width: 100%;
        height: 8px;
        background: var(--saffron);
        clip-path: polygon(0 100%,50% 0,100% 100%)
    }*/
.back-card {
    background: #fffdf8
}

.back-head {
    height: 100px;
    background: var(--navy);
    color: white;
    padding: 13px 15px;
    text-align: center;
    position: relative
}

.back-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

    .back-brand .logo {
        width: 37px;
        height: 37px;
        font-size: 20px
    }

    .back-brand h3 {
        font-size: 13px;
        line-height: 1.12;
        text-align: left;
        margin: 0;
        max-width: 160px
    }

.back-head p {
    margin: 6px 0 0;
    font-size: 8px;
    color: #ffdda9;
    letter-spacing: .7px
}

.back-head:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 16px;
    background: var(--saffron);
    clip-path: polygon(0 0,100% 0,50% 100%)
}

.back-body {
    padding: 21px 16px 10px
}

.back-title {
    text-align: center;
    font-size: 11px;
    color: var(--navy);
    font-weight: 900;
    letter-spacing: 1.3px;
    margin-bottom: 9px
}

.mission {
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
    color: #4d5a6b;
    margin: 0 0 11px
}

.info-block {
    border: 1px solid #e7dfd2;
    border-radius: 8px;
    padding: 8px 9px;
    margin-bottom: 8px;
    background: #fff
}

.info-label {
    font-size: 8px;
    color: #a15d0b;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 4px
}

.info-value {
    font-size: 10px;
    line-height: 1.45;
    font-weight: 700;
    overflow-wrap: anywhere
}

.contact-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 9px;
    line-height: 1.45;
    margin: 5px 0
}

.contact-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff0d6;
    color: #8a5008;
    font-size: 10px;
    font-weight: 900
}

.rules {
    margin: 9px 0 20px;
    padding: 0 0 0 14px;
    color: #5a6675;
    font-size: 8px;
    line-height: 1.5
}

.back-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    height: 31px;
    color: #ffdda9;
    display: grid;
    place-items: center;
    font-size: 8px;
    letter-spacing: .7px;
    font-weight: 800;
}

    .back-bottom small {
        font-size: 7px;
        line-height: 1.35
    }

.back-qr {
    background: white;
    padding: 3px;
    border-radius: 4px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center
}

    .back-qr img, .back-qr canvas {
        width: 28px !important;
        height: 28px !important
    }

.stamp {
   
    width: 70px;
    height: 70px;
    border: 2px solid var(--red);
    border-radius: 50%;
    outline: 1px dashed var(--red);
    outline-offset: -6px;
    transform: rotate(-12deg);
    color: var(--red);
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 6px;
    line-height: 1.25;
    font-weight: 800;
    background: #fffdf8d9;
    padding: 7px
}

    .stamp strong {
        display: block;
        font-size: 7px
    }

.sign {    
    width: 75px;
    text-align: center
}

.sign-text {
    font-family: "Brush Script MT","Segoe Script",cursive;
    font-style: italic;
    font-size: 14px;
    color: #173c71;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sign-line {
    border-top: 1px solid #7b8796;
    margin-top: 1px
}

.sign small {
    font-size: 6px;
    color: #596779;
    font-weight: 900;
    letter-spacing: .3px
}

.note {
    font-size: 11px;
    color: #6b7788;
    text-align: center;
    margin-top: 16px;
    line-height: 1.5
}

@media(max-width:850px) {
    main {
        grid-template-columns: 1fr
    }

    .preview-panel {
        order: -1
    }
}

@media(max-width:600px) {
    main {
        padding: 0 9px 25px;
        margin-top: 12px
    }

    .cards {
        gap: 18px
    }

    .id-card {
        width: 270px;
        height: 428px
    }
}

@page {
    size: A4 portrait;
    margin: 10mm
}

@media print {
    body {
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact
    }

    header, .form-panel, .preview-head, .side-label, .note {
        display: none !important
    }

    main {
        display: block;
        max-width: none;
        margin: 0;
        padding: 0
    }

    .preview-panel {
        border: 0;
        box-shadow: none;
        padding: 0
    }

    .cards {
        display: flex;
        gap: 10mm;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: nowrap;
        padding-top: 20mm
    }

    .side {
        gap: 0
    }

    .id-card {
        width: 54mm;
        height: 85.6mm;
        border-radius: 2mm;
        box-shadow: none;
        flex-shrink: 0;
        break-inside: avoid
    }

    .front-top {
        height: 22mm;
        padding: 2mm 2mm 4mm
    }

        .front-top:after {
            height: 4mm
        }

    .logo {
        width: 7.5mm;
        height: 7.5mm;
        font-size: 12pt
    }

    .brand-name {
        font-size: 7pt
    }

    .tagline {
        font-size: 4.5pt;
        margin-top: 1mm
    }

    .front-photo {
        width: 18mm;
        height: 21mm;
        margin: 0 auto 1mm;
        border-width: .6mm
    }

    .ribbon {
        font-size: 4.5pt;
        padding: 1mm 3mm;
        margin-bottom: 1mm
    }

    .front-name {
        font-size: 10pt;
        padding: 0 2mm
    }

    .front-role {
        font-size: 5pt;
        margin-top: 1mm
    }

    .front-details {
        margin: 2mm 3mm 0;
        padding-top: 1mm
    }

    .detail {
        font-size: 5pt;
        padding: .7mm 0
    }

        .detail span:first-child {
            font-size: 4pt
        }

    .front-footer {
        height: 6mm;
        font-size: 4pt
    }

        .front-footer:before {
            top: -1.2mm;
            height: 1.5mm
        }

    .back-head {
        height: 18mm;
        padding: 2mm
    }

    .back-brand .logo {
        width: 7mm;
        height: 7mm;
        font-size: 11pt
    }

    .back-brand h3 {
        font-size: 6.5pt
    }

    .back-head p {
        font-size: 4pt;
        margin-top: 1mm
    }

    .back-head:after {
        bottom: -2mm;
        height: 3mm
    }

    .back-body {
        padding: 4mm 3mm 2mm
    }

    .back-title {
        font-size: 5.5pt;
        margin-bottom: 1.5mm
    }

    .mission {
        font-size: 5pt;
        margin-bottom: 2mm
    }

    .info-block {
        padding: 1.5mm 1.5mm;
        margin-bottom: 1.5mm;
        border-radius: 1mm
    }

    .info-label {
        font-size: 4pt;
        margin-bottom: .7mm
    }

    .info-value {
        font-size: 5pt
    }

    .contact-row {
        font-size: 4.5pt;
        gap: 1mm;
        margin: 1mm 0
    }

    .contact-icon {
        width: 3mm;
        height: 3mm;
        flex-basis: 3mm;
        font-size: 5pt
    }

    .rules {
        font-size: 4pt;
        line-height: 1.4;
        margin-top: 1.5mm;
        padding-left: 2.5mm
    }

    .back-bottom {
        height: 8mm;
        padding: 1mm 2mm
    }

        .back-bottom small {
            font-size: 3.5pt
        }

    .back-qr {
        width: 6mm;
        height: 6mm;
        padding: .4mm
    }

        .back-qr img, .back-qr canvas {
            width: 5mm !important;
            height: 5mm !important
        }

    .stamp {
        width: 11mm;
        height: 11mm;
        right: 2mm;
        bottom: 10mm;
        font-size: 3pt;
        padding: 1mm
    }

        .stamp strong {
            font-size: 3.5pt
        }

    .sign {
        left: 2.5mm;
        bottom: 10.5mm;
        width: 19mm
    }

    .sign-text {
        font-size: 8pt
    }

    .sign small {
        font-size: 3pt
    }
}