﻿:root {
    --krs-gulal: #F6416C;
    --krs-dark: #B91C1C;
    --krs-color1: #00B8A9;
    --krs-color2: #FFDE7D;  /*light yellow used for bg*/
    --krs-cream: #F8F3D4;
    --saffron: #FF9933;
    --dark-saffron: #E67E00;
    --maroon: #800020;
    --cream: #FFF8E7;
    --paper: #FAF6F0;
    --ink: #2C1810;
    --binding: #8B4513;
}

body {
    font-family: "Outfit", sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #333;
}

h1, h2, h3, .brand-title {
    font-family: "Outfit", serif;
}

.brand-title {
    font-weight: 600;
    color: var(--krs-color2);
}

.brand-subtitle {
    display: block;
    font-size: 0.75em;
    color: white;
}

/* Navbar */
.navbar {
    /*background: linear-gradient(90deg, #d97706, #b91c1c);*/
    background-color: #b91c1c;
}

    .navbar .nav-link {
        color: #fff;
        opacity: .9;
    }

        .navbar .nav-link:hover {
            color: var(--krs-color2);
        }

.btn-join {
    background: var(--krs-color1);
    color: #121212;
    border: 2px solid var(--krs-color1);
    font-weight: 600;
}

    .btn-join:hover {
        filter: brightness(0.95);
        color: var(--krs-color2);
        border: 2px solid var(--krs-color2);
    }

.btn-krs {
    background: var(--krs-color1);
    color: #121212;
    border: 2px solid var(--krs-color1);
    font-weight: 600;
}

    .btn-krs:hover {
        background-color: var(--krs-dark);
        color: white;
    }

.btn-krs-inv {
    background: var(--krs-dark);
    color: white;
    border: 2px solid var(--krs-dark);
    font-weight: 600;
}

    .btn-krs-inv:hover {
        background-color: var(--krs-color1);
        color: white;
    }

.btn-krs-ol {
    color: var(--krs-color1);
    border: 2px solid var(--krs-color1);
    font-weight: 600;
}

    .btn-krs-ol:hover {
        background-color: var(--krs-color1);
        color: white;
    }

.top-scrl {
    position: sticky;
    top: 78px;
    background-color: var(--krs-color2);
    padding: 9px;
    font-weight: bold;
    color: var(--krs-dark);
    z-index: 5;
    margin-bottom: -9px;
}


/* Hero */
.hero {
    position: relative;
    min-height: 60vh;
    display: grid;
    place-items: center;
    color: var(--krs-color2);
    overflow: hidden;
    padding: 10px;
}

    .hero::before { /* Background image (replace URL below with your uploaded hero image path) */
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('/images/hero.jpg') center/cover no-repeat;
        filter: saturate(1.05) contrast(1.02);
        background-size: cover;
        background-position: top; /* Optional: centers the image */
        background-repeat: no-repeat; /* Optional: prevents image repetition */
    }

    .hero::after { /* warm→cool overlay like provided artwork */
        content: "";
        position: absolute;
        inset: 0;
        /* background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(255,222,125,.55) 50%, rgba(0,0,0,.75) 100%); */
    }

    .hero .content {
        position: relative;
        z-index: 2;
        text-align: left;
    }

    .hero .kicker {
        letter-spacing: .2em;
        text-transform: uppercase;
        color: #ffebc2;
        font-weight: 600;
    }

    .hero h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        color: #ffe2a6;
        text-shadow: 0 2px 18px rgba(0,0,0,.35);
    }

        .hero h1.hi {
            font-family: "Rozha One", serif;
        }

        .hero h1.te {
            font-family: "Ramaraja", serif;
            font-size: 5em;
        }

    .hero h3 {
        color: var(--krs-color2);
        text-shadow: 0 2px 18px rgba(0,0,0,.35);
    }

    .hero p {
        font-size: clamp(1rem, 1.5vw, 1.125rem);
        color: #e8eef6;
    }

/* Section spacing */
.section {
    padding: 4rem 0;
}

.bg-cream {
    background: var(--krs-cream);
}

/* Cards */
.krs-card {
    border: 0;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    border-radius: 1rem;
}

    .krs-card .thumb {
        height: 200px;
        background-size: cover;
        background-position: center;
    }

/* Divider title */
.divider-title {
    position: relative;
    padding-bottom: .75rem;
    margin-bottom: 1.5rem;
}

    .divider-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 72px;
        height: 4px;
        background: var(--krs-gold);
        border-radius: 2px;
    }

/* CTA band */
.cta-band {
    background: linear-gradient(90deg, #1a2430, #0f1a26);
    color: #fff;
    border-radius: 1.25rem;
}

/* Footer */
footer {
    background: var(--krs-color1);
    color: var(--krs-cream);
}

    footer a {
        color: #d4e2ff;
        text-decoration: none;
    }

        footer a:hover {
            color: #ffffff;
        }

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe8a3, var(--krs-gold));
    display: inline-grid;
    place-items: center;
    color: #121212;
    font-weight: 800;
}

/* Minor tweaks */
.small-muted {
    color: #6b7480;
}


/***********************************/
.leader-card {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease;
    background: linear-gradient(to right, white 0%, #FFFFFB 50%, white 100%);
    /* background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,250,250,0.96)); */
    box-shadow: 0 6px 20px rgba(20,20,40,0.08);
}

    .leader-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(20,20,40,0.12);
    }


.spl {
    color: #666;
    font-size: 1.2em;
}

.leader-avatar {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 9px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-top: -25px; /* overlap */
}

.leader-role {
    color: var(--krs-color1);
    font-size: 1.2rem;
    font-weight: 400;
}

.leader-name, .uniq-inits-head {
    color: teal;
    font-weight: 700;
    letter-spacing: .2px;
    /*text-shadow: 2px 2px rgba(150,150,150,.3);*/
}

.card-body {
    padding-top: 1.25rem;
}

.social a {
    text-decoration: none;
    opacity: .9;
}

.shf H2 {
    color: var(--krs-dark);
    font-family: "Roboto", "Outfit", sans-serif;
    font-size: 2.75em;
    font-weight: bold;
}

.sbg {
    background: linear-gradient(to right, #fdfcfb, var(--krs-cream));
}

#events {
    background: linear-gradient(to right, #fdfcfb, var(--krs-cream));
    padding: 60px 20px;
}

/************************ scholarship section *********************/
#scholarship {
    /* background: linear-gradient(to right, #fdfcfb, #e2d1c3);  */
    /* background: linear-gradient(to right, #fdfcfb, var(--krs-cream)); */
    padding: 60px 20px;
}

    #scholarship h2 {
        text-align: center;
        font-size: 2.5em;
        color: var(--krs-dark);
        margin-bottom: 10px;
        font-weight: bold;
    }

    #scholarship .ss-head {
        font-size: 1.72em;
        color: var(--krs-dark);
        margin-top: 15px;
    }


@media screen and (max-width: 450px) {
    .mnl {
        /* display in next line in mobile view */
        display: block;
    }

    .hero .kicker {
        letter-spacing: .15em;
        font-size: .92em;
    }

    .hero h1 {
        font-size: clamp(1.85rem, 5vw, 3.5rem);
    }
        .hero h1.te {
            font-size: 2.7em;
        }

    .hero .h3, h3 {
        font-size: 1.02em;
    }
    .hero h3 .pn {
        display: block;
        text-align: right;
    }

    .shf H2, #scholarship h2 {
        font-size: 1.8em;
    }

    .spl {
        font-size: 0.75em;
    }

    #scholarship .spl {
        font-size: 0.94em;
    }

    #events h2 {
        font-size: 1.42em;
    }

    #footer .small {
        font-size: 0.7em;
    }
}

/* ============================================================
   Member portal (login / OTP / PIN / registration / dashboard)
   Mobile-first: single column by default, widened by the
   Bootstrap col-* classes on the pages themselves.
   ============================================================ */

.portal-wrap {
    background: var(--paper);
    padding: 2rem 0 3rem;
    min-height: 60vh;
}

.portal-card {
    background: #fff;
    border: 1px solid #E5D8C8;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

@media (min-width: 768px) {
    .portal-card {
        padding: 2rem;
    }
}

.portal-card-warn {
    background: #FFF6DC;
    border-color: var(--saffron);
}

.portal-heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.portal-subheading {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 .25rem;
}

.portal-sub {
    color: #6E625B;
    margin: .5rem 0 0;
}

.portal-label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink);
    margin: 1.25rem 0 .5rem;
}

/* Rounded shell that owns the border, so inputs inside stay borderless */
.portal-field {
    background: var(--paper);
    border: 1px solid #E5D8C8;
    border-radius: 14px;
    padding: 0 .875rem;
}

.portal-input {
    background: transparent;
    border: 0;
    outline: none;
    min-height: 50px;
    font-size: 1rem;
    color: var(--ink);
    width: 100%;
}

.portal-prefix {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
}

.portal-divider {
    width: 1px;
    height: 28px;
    background: #E5D8C8;
    margin: 0 .75rem;
}

/* OTP and PIN: one wide field, letter-spaced so it reads as a code */
.portal-code-input {
    display: block;
    width: 100%;
    background: var(--paper);
    border: 1px solid #E5D8C8;
    border-radius: 14px;
    min-height: 56px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .6em;
    text-indent: .6em;
    text-align: center;
    color: var(--ink);
    outline: none;
}

.portal-code-input:focus,
.portal-input:focus {
    border-color: var(--krs-color1);
}

.portal-status {
    font-size: .82rem;
    color: #6E625B;
    margin: .6rem 0 0;
    min-height: 1.2rem;
}

    .portal-status.is-error {
        color: var(--krs-dark);
    }

.portal-btn {
    background: var(--krs-color1);
    color: #121212;
    font-weight: 600;
    border: 2px solid var(--krs-color1);
    border-radius: 14px;
    min-height: 52px;
    margin-top: 1.25rem;
}

    .portal-btn:hover {
        filter: brightness(.95);
        color: #121212;
    }

.portal-btn-secondary {
    background: transparent;
    color: var(--krs-dark);
    font-weight: 600;
    border: 1px solid var(--krs-dark);
    border-radius: 14px;
    min-height: 48px;
}

    .portal-btn-secondary:hover {
        background: var(--krs-dark);
        color: #fff;
    }

.portal-note {
    font-size: .78rem;
    color: #6E625B;
    text-align: center;
    margin: 1rem 0 0;
}

.portal-help {
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    color: var(--krs-dark);
    margin: 1.5rem 0 0;
}

.portal-link {
    color: var(--krs-dark);
    font-weight: 600;
    text-decoration: underline;
}

.portal-debug {
    background: #FFF6DC;
    border: 1px solid var(--saffron);
    border-radius: 12px;
    padding: .75rem .875rem;
    margin-top: 1.25rem;
}

.portal-debug-tag {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #8A6100;
}

.portal-debug-code {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .35em;
    color: var(--ink);
}

/* Dashboard */
.portal-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--krs-color1);
    color: #121212;
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.portal-greeting {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
}

.portal-muted {
    font-size: .8rem;
    color: #6E625B;
}

.portal-value {
    font-size: .98rem;
    font-weight: 600;
    color: var(--ink);
    word-break: break-word;
}

.portal-rule {
    border-color: #E5D8C8;
    opacity: 1;
    margin: .75rem 0 0;
}

.portal-chip {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink);
}

.portal-chip-cream {
    background: var(--krs-cream);
    border: 1px solid #E5D8C8;
}

.portal-chip-teal {
    background: var(--krs-color1);
}

/* ============================================================
   Member directory
   The grid itself is Bootstrap columns; these rules only style
   the card. Cards stretch to the tallest in the row so a member
   with a long address does not stagger the grid.
   ============================================================ */

.member-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #E5D8C8;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .member-card:hover,
    .member-card:focus-visible {
        border-color: var(--krs-color1);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
        transform: translateY(-2px);
        outline: none;
    }

/* Touch devices report no hover; the lift would otherwise stick after a tap. */
@media (hover: none) {
    .member-card:hover {
        transform: none;
    }
}

.member-card-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.member-card-body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1 1 auto;
    min-width: 0;
}

.member-card-name {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    word-break: break-word;
}

.member-card-meta {
    font-size: .8rem;
    color: #6E625B;
    word-break: break-word;
}

.member-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.member-card-arrow {
    color: var(--krs-dark);
    flex: 0 0 auto;
}

.member-modal {
    border: 1px solid #E5D8C8;
    border-radius: 24px;
    background: #fff;
}
