:root {
    --ink: #082B48;
    --teal: #082B48;
    --gold: #C69A3A;
    --reg: #C69A3A;
    --mist: #FFFAF3;
    --text: #26364a
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--mist);
    color: var(--text);
    line-height: 1.65
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Fraunces', serif;
    color: var(--ink)
}

a {
    color: var(--teal)
}

.site-nav {
    background: var(--mist);
    box-shadow: 0 2px 12px rgba(10, 31, 61, .1)
}

.site-nav .navbar-brand span {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.1rem
}

.site-nav .nav-link {
    font-size: .96rem;
    font-weight: 800;
    color: var(--ink);
    padding: .5rem .55rem
}

.site-nav .nav-link:hover {
    color: var(--teal)
}

.site-nav .nav-link.active {
    color: var(--teal);
    box-shadow: inset 0 -3px 0 var(--teal)
}

.site-nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: .5rem;
    white-space: nowrap;
}

.site-nav-actions .btn-register,
.site-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.site-admin-link {
    width: 44px;
    border: 1px solid #ccdbe4;
    border-radius: 6px;
    color: var(--ink);
    font-size: 1.22rem;
    text-decoration: none;
}

.site-admin-link:hover { background: var(--mist); color: var(--teal); }
.site-nav a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* The wider labels need more room than Bootstrap's stock navbar breakpoints. */
@media (min-width: 1500px) {
    .site-nav { flex-wrap: nowrap; justify-content: flex-start; }
    .site-nav .navbar-collapse { display: flex !important; flex-basis: auto; }
    .site-nav .navbar-nav { flex-direction: row; column-gap: .2rem; white-space: nowrap; }
    .site-nav .nav-link { padding-inline: .46rem; }
    .site-nav .navbar-toggler { display: none; }
}

/* Fit the brand, menu and actions together at laptop widths. */
@media (min-width: 992px) and (max-width: 1499.98px) {
    .site-nav > .container-fluid { flex-wrap: nowrap; padding-inline: .75rem !important; }
    .site-nav .navbar-toggler { display: none; }
    .site-nav .navbar-brand { margin-right: .5rem; flex: none; }
    .site-nav .navbar-brand img { height: 36px; }
    .site-nav .navbar-brand span { font-size: .9rem; }
    .site-nav .navbar-brand small { font-size: .58rem; }
    .site-nav .navbar-collapse { display: flex !important; flex-basis: auto; min-width: 0; }
    .site-nav .navbar-nav { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .site-nav .nav-link { font-size: clamp(.68rem, 1vw, .92rem); padding: .45rem clamp(.24rem, calc(1vw - .58rem), .44rem); white-space: nowrap; }
    .site-nav-actions { gap: .3rem; }
    .site-nav-actions .btn-register { font-size: clamp(.64rem, .9vw, .82rem); padding-inline: .5rem; }
    .site-nav .site-admin-link { width: 36px; }
}

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        max-height: calc(100vh - 5rem);
        max-height: calc(100dvh - 5rem);
        overflow-y: auto;
    }
    .site-nav .navbar-nav { padding-block: .35rem; }
    .site-nav .nav-link { min-height: 44px; }
    .site-nav-actions { padding: .5rem .55rem .65rem; }
}

@media (max-width: 380px) {
    .site-nav .navbar-brand { margin-right: .3rem; }
    .site-nav .navbar-brand img { height: 40px; }
    .site-nav .navbar-brand span { font-size: .94rem; }
    .site-nav .navbar-toggler { padding-inline: .45rem; }
}

.btn-register {
    background: var(--reg);
    color: var(--ink);
    font-weight: 700;
    font-size: .85rem;
    border-radius: 6px;
    padding: .5rem 1rem
}

.btn-register:hover {
    background: #b98d30;
    color: var(--ink)
}

.hero {
    background: linear-gradient(rgba(10, 31, 61, .88), rgba(10, 31, 61, .9)), url(../images/hero/hero.jpg) center/cover;
    color: #fff;
    padding: 4.5rem 0
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 4.4rem)
}

.hero-kicker {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: .04em
}

.hero-sub {
    max-width: 760px;
    margin: 0 auto 1rem;
    opacity: .92
}

.hero-date {
    font-size: 1.25rem;
    font-weight: 700
}

.countdown {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0
}

.countdown div {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 10px;
    min-width: 88px;
    padding: .8rem .5rem
}

.countdown b {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    line-height: 1
}

.countdown span {
    font-size: .8rem;
    opacity: .85
}

.sec {
    padding: 3.5rem 0
}

.sec.alt {
    background: var(--mist)
}

.sec-title {
    text-align: center;
    margin-bottom: .4rem
}

.sec-sub {
    text-align: center;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 1.5rem
}

.sec-title+* {
    margin-top: 1.5rem
}

.sec-sub+* {
    margin-top: 0
}

.info-card {
    background: #fff;
    border: 1px solid #dbe5ec;
    border-top: 4px solid var(--teal);
    border-radius: 8px;
    padding: 1.3rem
}

.info-card h5 {
    font-size: 1.05rem
}

.info-card p {
    margin: 0;
    font-size: .93rem
}

.meta {
    font-size: .8rem;
    color: #6b7b8d;
    display: block;
    margin-top: .5rem
}

.btn-primary-x,
.btn-gold-x,
.btn-light-x {
    font-weight: 700;
    font-size: .9rem;
    border-radius: 6px;
    padding: .6rem 1.2rem;
    border: 2px solid transparent
}

.btn-primary-x {
    background: var(--ink);
    color: #fff
}

.btn-primary-x:hover {
    background: var(--teal);
    color: #fff
}

.btn-gold-x {
    background: var(--gold);
    color: var(--ink)
}

.btn-gold-x:hover {
    background: #ffbb33;
    color: var(--ink)
}

.btn-light-x {
    border-color: #fff;
    color: #fff
}

.btn-light-x:hover {
    background: #fff;
    color: var(--ink)
}

.person {
    text-align: center
}

.person h6 {
    margin: .6rem 0 0;
    font-weight: 700
}

.person small {
    color: #6b7b8d
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: auto;
    background: var(--teal);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Fraunces', serif;
    font-size: 1.8rem
}

.role {
    text-align: center;
    color: var(--teal);
    margin: 1.5rem 0 1rem
}

.tick-list {
    list-style: none;
    padding: 0
}

.tick-list li {
    padding-left: 1.7rem;
    position: relative;
    margin-bottom: .4rem
}

.tick-list li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700
}

.welcome {
    background: #fff;
    border-left: 5px solid var(--gold);
    padding: 2rem;
    border-radius: 8px
}

.cta {
    background: linear-gradient(90deg, var(--ink), var(--teal));
    color: #fff;
    padding: 3.5rem 0
}

.cta h2 {
    color: #fff
}

.soon {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--reg)
}

.notice {
    background: #fff3e0;
    border-left: 5px solid var(--reg);
    padding: 1rem;
    border-radius: 6px
}

.qr {
    width: 180px;
    height: 180px;
    object-fit: contain;
    background: var(--mist);
    margin-bottom: .8rem
}

.step {
    background: #fff;
    border: 1px solid #dbe5ec;
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    font-weight: 700;
    color: var(--ink)
}

.step b {
    display: block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 0 auto .5rem;
    border-radius: 50%;
    background: var(--teal);
    color: #fff
}

.map {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 8px
}

.table thead {
    background: var(--ink);
    color: #fff
}

.site-footer {
    background: var(--ink);
    color: #cfdbe8;
    padding: 2.5rem 0
}

.site-footer h5 {
    color: #fff
}

.foot-links a {
    color: #cfdbe8;
    text-decoration: none
}

.foot-links a:hover {
    color: var(--gold)
}

@media(max-width:576px) {
    .countdown {
        gap: .5rem
    }

    .countdown div {
        min-width: 68px
    }

    .countdown b {
        font-size: 1.7rem
    }
}

.topbar {
    background: var(--ink);
    color: #fff;
    border-bottom: 2px solid var(--gold);
}

.event-strip {
    position: relative;
    padding-right: 2rem;
    font-size: .8125rem;
    line-height: 1.35;
}
.event-scroll { overflow: hidden; }
.event-scroll-track {
    display: flex;
    width: max-content;
    animation: event-scroll 85s linear infinite;
}
.event-scroll-track > span {
    flex: 1 0 auto;
    padding: .38rem .85rem;
    white-space: nowrap;
}
.event-scroll-track strong { color: #ffdc92; }
.event-scroll-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.event-scroll-control {
    position: absolute;
    inset: 0 0 0 auto;
    display: grid;
    width: 2rem;
    place-items: center;
    cursor: pointer;
}
.event-scroll-control > span[aria-hidden] { width: .55rem; height: .7rem; border-inline: 2px solid #ffdc92; }
.event-scroll-toggle:checked + .event-scroll-control > span[aria-hidden] {
    width: 0;
    height: 0;
    border: .35rem solid transparent;
    border-left: .55rem solid #ffdc92;
    border-right: 0;
}
.event-scroll-toggle:focus-visible + .event-scroll-control { outline: 2px solid #ffdc92; outline-offset: -3px; }
.event-scroll:hover .event-scroll-track,
.event-scroll-toggle:checked ~ .event-scroll .event-scroll-track { animation-play-state: paused; }

@keyframes event-scroll {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .event-strip { padding-right: 0; text-align: center; }
    .event-scroll-track { animation: none; width: auto; min-width: 0; }
    .event-scroll-track > span { flex: 1 1 auto; white-space: normal; }
    .event-scroll-track [aria-hidden], .event-scroll-toggle, .event-scroll-control { display: none; }
}

.site-nav .navbar-brand small {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: .68rem;
    font-weight: 500;
    color: var(--teal)
}

.site-nav .navbar-brand span {
    line-height: 1.15
}

.hero-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    margin-bottom: 1rem
}

.hero {
    display: grid;
    align-items: center;
    min-height: clamp(34rem, 72svh, 48rem);
    padding: clamp(3rem, 7vw, 6.5rem) 0;
    background: radial-gradient(ellipse at center, #082B48e8 0%, #082B48ba 36%, #082B4829 78%),
        url(../images/llrm-college.jpg) center 52% / cover;
}
.hero h1, .hero .hero-sub, .hero .hero-date, .hero small {
    color: #FFF4E2;
    text-shadow: 0 2px 10px #041729;
}
.hero .hero-sub { opacity: 1; }
.hero .hero-kicker { color: #ffe0a0; text-shadow: 0 2px 8px #041729; }
.hero .btn-light-x { background: #082B48e6; }
.hero .btn-light-x:hover, .hero .btn-light-x:focus-visible {
    background: var(--mist);
    color: #082B48;
}

@media (max-width: 575px) {
    .hero {
        min-height: 34rem;
        background-image: linear-gradient(#082B48ab, #082B48c4), url(../images/llrm-college.jpg);
    }
    .hero .hero-date { font-size: 1.05rem; }
}

section.sec:nth-of-type(even) {
    background: var(--mist)
}

section.sec:nth-of-type(odd) {
    background: #fff
}

.sec-title:after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: .6rem auto 0;
    border-radius: 2px
}

.info-card {
    padding: 0;
    overflow: hidden;
    border-top: 1px solid #dbe5ec;
    transition: transform .2s, box-shadow .2s
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(10, 31, 61, .15)
}

.info-card:has(.qr) {
    padding: 1.3rem
}

.card-txt {
    padding: 1.2rem
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block
}

.ic {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 1.2rem 0 0 1.2rem;
    border-radius: 12px;
    background: var(--teal);
    color: #fff;
    font-size: 1.5rem
}

.photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(10, 31, 61, .18)
}

.site-footer {
    padding: 3rem 0 1.5rem
}

.site-footer h6 {
    color: var(--gold);
    margin-bottom: .8rem
}

.site-footer hr {
    border-color: rgba(255, 255, 255, .2)
}

.foot-logo {
    width: 72px;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
    margin-bottom: .7rem
}

.foot-links li {
    margin-bottom: .35rem
}

.avatar {
    position: relative;
    overflow: hidden;
    width: 84px;
    height: 84px;
    border-radius: 18px;
    margin: 0;
    background: linear-gradient(135deg, var(--teal), var(--ink));
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold)
}

.avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pcard {
    height: 100%;
    background: #fff;
    border: 1px solid #dbe5ec;
    border-bottom: 4px solid var(--gold);
    border-radius: 14px;
    padding: 1.6rem 1rem 1.2rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(10, 31, 61, .07)
}

.pcard .avatar {
    margin: 0 auto 1rem
}

.pcard h6 {
    margin: 0 0 .25rem;
    font-weight: 700;
    color: var(--ink)
}

.pcard small {
    color: #6b7b8d;
    display: block;
    line-height: 1.35
}

.tier {
    margin-bottom: 2rem
}

.tier h4.role {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: 1.1rem;
    color: var(--ink);
    text-align: left;
    margin: 0 0 1rem
}

.tier h4.role:before {
    content: "";
    width: 6px;
    height: 22px;
    background: var(--gold);
    border-radius: 3px
}

.tier h4.role:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #cfdde6
}

.pline {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    background: #fff;
    border: 1px solid #dbe5ec;
    border-radius: 14px;
    padding: .9rem 1rem;
    box-shadow: 0 3px 10px rgba(10, 31, 61, .06)
}

.pline .avatar {
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    font-size: 1.2rem;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--teal)
}

.pline h6 {
    margin: 0;
    font-weight: 700;
    color: var(--ink)
}

.pline small {
    color: #6b7b8d
}

.pline.top {
    border-left: 6px solid var(--gold);
    padding: 1.2rem
}

.pline.top .avatar {
    width: 84px;
    height: 84px;
    font-size: 1.7rem;
    border-radius: 18px
}

.site-footer {
    background: linear-gradient(180deg, #082B48, #071630);
    border-top: 4px solid var(--gold);
    padding: 3.5rem 0 1.2rem
}

.site-footer h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .18)
}

.foot-logo {
    width: 64px;
    height: 64px;
    margin: 0
}

.foot-links {
    columns: 2;
    column-gap: 1.5rem
}

.foot-links li {
    margin-bottom: .5rem;
    break-inside: avoid
}

.foot-links a:before {
    content: "\203A";
    color: var(--gold);
    margin-right: .5rem
}

.foot-contact li {
    display: flex;
    gap: .8rem;
    margin-bottom: .8rem;
    align-items: flex-start
}

.foot-contact i {
    color: var(--gold);
    font-size: 1.1rem;
    line-height: 1.4
}

.foot-contact a {
    color: #cfdbe8;
    text-decoration: none
}

.foot-contact a:hover {
    color: var(--gold)
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .18)
}

/* Shared public registration and enquiry forms. */
.site-form {
    padding: clamp(1.15rem, 3vw, 2.25rem);
    scroll-margin-top: 7rem;
}

.site-form h2 {
    margin-bottom: 1rem;
}

.site-form .form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
}

.site-form label {
    display: block;
    margin: .7rem 0;
    font-weight: 600;
}

.site-form input:not([type=checkbox]),
.site-form select,
.site-form textarea {
    display: block;
    width: 100%;
    margin-top: .35rem;
    padding: .65rem .75rem;
    border: 1px solid #aab8cc;
    border-radius: .5rem;
    color: #10223e;
    background: #fff;
}

.site-form :is(input, select, textarea, button):focus-visible {
    outline: 2px solid #1e62ab;
    outline-offset: 2px;
}

.site-form fieldset {
    border-top: 1px solid #dce4ef;
    margin-top: 1rem;
    padding-top: .5rem;
}

.site-form legend {
    font-size: 1rem;
    font-weight: 700;
}

.site-form [hidden] {
    display: none;
}

.site-form .table-wrap {
    overflow-x: auto;
}

.site-form table {
    width: 100%;
}

.site-form :is(th, td) {
    padding: .65rem;
    border-bottom: 1px solid #dce4ef;
}

@media (max-width: 620px) {
    .site-form .form-fields {
        grid-template-columns: 1fr;
    }
}

.welcome-layout .photo {
    display: block;
    width: 100%;
    height: auto;
}
.welcome-layout .welcome {
    padding: clamp(1.15rem, 2.5vw, 2rem);
    border-radius: 12px;
}

/* Show the complete workshop photos in equally sized frames. */
.home-workshops .card-img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #edf0f2;
}

/* Explore Meerut keeps the three itineraries readable at narrow widths. */
.meerut-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: end;
    min-height: clamp(15rem, 35vw, 24rem);
    overflow: hidden;
    border-radius: 1rem;
    background: var(--ink);
}
.meerut-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.meerut-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(15deg, #082b48 4%, #082b48af 38%, transparent 80%);
}
.meerut-banner-copy { padding: clamp(1.25rem, 4.5vw, 3rem); }
.meerut-banner h2 {
    margin-bottom: .85rem;
    color: #fff4e2;
    font-size: clamp(2rem, 5vw, 4rem);
}
.meerut-card {
    padding: clamp(1rem, 2.5vw, 1.65rem);
    border: 1px solid #e5d8bf;
    border-radius: .9rem;
    background: #fffdfa;
}
.meerut-card h3 { font-size: clamp(1.2rem, 2.2vw, 1.65rem); margin-bottom: .85rem; }
.meerut-stops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.15rem; }
.meerut-stops > div { padding: .7rem .85rem; border-left: 2px solid var(--gold); background: var(--mist); }
.meerut-stops dd { margin: .25rem 0 0; }
@media (max-width: 575px) { .meerut-stops { grid-template-columns: 1fr; } }

/* Larger portraits on the homepage committee cards. */
.home-committee .avatar {
    width: min(100%, 9.5rem);
    height: auto;
    aspect-ratio: 1;
}
.home-committee .avatar img { object-position: center 32%; }
.home-committee img[src$="dr-shubham-dadoo.jpeg"] {
    transform: scale(1.45);
    transform-origin: center 38%;
}
