/* ==========================================================================
   Kishoreganj University — About / Vision / Mission  (kiu.ac.bd/about)

   Scoped entirely under .kiu-about so nothing leaks into other pages.
   main.css sets `html { font-size: 10px }`, so 1rem = 10px sitewide —
   every size below is declared in explicit px. Do not reintroduce rem here.
   ========================================================================== */

.kiu-about {
    /* Palette — mirrors home.css so the two pages read as one site. */

    /* Rhythm */
    --kiu-section-y: 104px;

    /* Top clearance for the fixed navbar + hanging badge logo. */
    --kiu-nav-clear: 190px; /* ~40px under the hanging badge — see components/page-hero.css */

    font-family: var(--rs-ff-body, "Inter", sans-serif);
    color: var(--kiu-body);
    background: var(--kiu-white);
}

.kiu-about *,
.kiu-about *::before,
.kiu-about *::after {
    box-sizing: border-box;
}

/* Headings take their colour from a token, so dark sections flip them to white
   by redefining --kiu-heading rather than fighting this selector's specificity
   from a single-class rule. Same trap main.css sets on the home page. */
.kiu-about h1,
.kiu-about h2,
.kiu-about h3 {
    font-family: var(--rs-ff-body, "Inter", sans-serif);
    color: var(--kiu-heading, var(--kiu-ink));
    margin: 0;
    letter-spacing: -.02em;
}

.kiu-about-hero,
.kiu-about-facts,
.kiu-about-contact {
    --kiu-heading: var(--kiu-white);
}

/* Zero-specificity, for the same reason as the link reset below: as a plain
   `.kiu-about p` rule (0,1,1) this outranked every single-class paragraph rule
   in this file (0,1,0), so `.kiu-about-intro__para`'s margin-top — and every
   other paragraph gap on the page — was silently dropped and the copy ran
   together. `:where()` keeps it beating main.css's global `p` rule while
   losing to anything more specific here. */
:where(.kiu-about) p {
    margin: 0;
}

.kiu-about a {
    text-decoration: none;
}

/* Zero-specificity reset for Bootstrap's blue link colour — as a plain
   `.kiu-about a` rule it would outrank every single-class button rule and drag
   white button labels back to the grey body colour. */
:where(.kiu-about a) {
    color: inherit;
}

.kiu-about .kiu-section {
    padding-block: var(--kiu-section-y);
}

/* --------------------------------------------------------------------------
   Shared elements
   -------------------------------------------------------------------------- */

.kiu-about .kiu-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--kiu-navy);
}

.kiu-about .kiu-eyebrow--accent {
    color: var(--kiu-accent);
}

.kiu-about .kiu-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
}

.kiu-about .kiu-section__title {
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
}

.kiu-about .kiu-section__lead {
    max-width: 56ch;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--kiu-body);
}

.kiu-about .kiu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: var(--kiu-radius-pill);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--kiu-dur) var(--kiu-ease-out), color var(--kiu-dur) var(--kiu-ease-out),
                border-color var(--kiu-dur) var(--kiu-ease-out), transform var(--kiu-dur) var(--kiu-ease-out);
}

.kiu-about .kiu-btn--accent {
    background: var(--kiu-accent);
    color: var(--kiu-navy-darker);
}

.kiu-about .kiu-btn--accent:hover {
    background: var(--kiu-accent-soft);
    transform: translateY(var(--kiu-lift));
}

.kiu-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .72);
}

.kiu-breadcrumb a:hover {
    color: var(--kiu-accent-soft);
}

.kiu-breadcrumb [aria-current="page"] {
    color: var(--kiu-accent);
}

/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */

/* Clearance for the fixed navbar. The badge logo hangs BELOW the 76px
   mainbar — 100px tall from the top of the bar (92px at =1340px), under a
   34px topbar — so hero content has to start below 134px or it collides with
   the crest. Topbar is hidden below 700px, leaving just the 76px bar. */
.kiu-about-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 420px;
    padding-block: var(--kiu-nav-clear) 84px;
    overflow: hidden;
    isolation: isolate;
}

.kiu-about-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(var(--kiu-scale-hover));
}

.kiu-about-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        100deg,
        rgba(13, 31, 60, .93) 0%,
        rgba(18, 41, 77, .84) 48%,
        rgba(27, 58, 107, .62) 100%
    );
}

.kiu-about-hero__content {
    max-width: 720px;
}

.kiu-about-hero__title {
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 700;
    line-height: 1.1;
}

.kiu-about-hero__lead {
    max-width: 60ch;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .84);
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.kiu-about-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 64px;
    align-items: center;
}

.kiu-about-intro__para {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.kiu-about-intro__figure {
    margin: 0;
}

.kiu-about-intro__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--kiu-radius-lg);
    box-shadow: var(--kiu-shadow);
}

.kiu-about-intro__figure figcaption {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--kiu-muted);
}

/* --------------------------------------------------------------------------
   At-a-glance facts
   -------------------------------------------------------------------------- */

.kiu-about-facts {
    padding-block: 64px;
    background: linear-gradient(135deg, var(--kiu-navy-deep) 0%, var(--kiu-navy) 100%);
}

.kiu-about-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.kiu-about-fact {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid rgba(0, 163, 147, .45);
}

.kiu-about-fact__value {
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 700;
    line-height: 1;
    color: var(--kiu-accent);
}

.kiu-about-fact__label {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .78);
}

/* --------------------------------------------------------------------------
   Vision
   -------------------------------------------------------------------------- */

.kiu-about-vision {
    background: var(--kiu-surface);
}

.kiu-about-vision__grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: center;
}

.kiu-about-vision__figure {
    margin: 0;
}

.kiu-about-vision__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--kiu-radius-lg);
    box-shadow: var(--kiu-shadow);
}

.kiu-about-vision__statement {
    position: relative;
    margin: 26px 0 0;
    padding: 4px 0 4px 26px;
    border-left: 2px solid var(--kiu-border);
    font-size: clamp(19px, 2.1vw, 24px);
    font-weight: 600;
    line-height: 1.5;
    color: var(--kiu-ink);
}

.kiu-about-vision__body {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Mission
   -------------------------------------------------------------------------- */

.kiu-about-mission__head {
    max-width: 720px;
    margin-bottom: 52px;
}

.kiu-about-mission__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.kiu-about-mission__card {
    padding: 34px 32px;
    border: 1px solid var(--kiu-border);
    border-radius: var(--kiu-radius);
    background: var(--kiu-white);
    box-shadow: var(--kiu-shadow);
    transition: transform var(--kiu-dur) var(--kiu-ease-out), box-shadow var(--kiu-dur) var(--kiu-ease-out), border-color var(--kiu-dur) var(--kiu-ease-out);
}

.kiu-about-mission__card:hover {
    transform: translateY(var(--kiu-lift-lg));
    border-color: rgba(0, 163, 147, .5);
    box-shadow: var(--kiu-shadow-hover);
}

.kiu-about-mission__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: var(--kiu-radius);
    background: var(--kiu-surface-alt);
    font-size: 24px;
    color: var(--kiu-navy);
}

.kiu-about-mission__card:hover .kiu-about-mission__icon {
    background: var(--kiu-navy);
    color: var(--kiu-accent);
}

.kiu-about-mission__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.kiu-about-mission__body {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Values
   -------------------------------------------------------------------------- */

.kiu-about-values {
    background: var(--kiu-surface);
}

.kiu-about-values__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 48px;
}

.kiu-about-value {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 26px 0;
    border-bottom: 1px solid var(--kiu-border);
}

.kiu-about-value__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--kiu-white);
    box-shadow: var(--kiu-shadow);
    font-size: 21px;
    color: var(--kiu-accent);
}

.kiu-about-value__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.kiu-about-value__body {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Milestones
   -------------------------------------------------------------------------- */

.kiu-about-timeline__list {
    position: relative;
    margin: 0;
    padding: 0 0 0 26px;
    list-style: none;
    border-left: 2px solid var(--kiu-border);
}

.kiu-about-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 42px;
}

.kiu-about-timeline__item:last-child {
    padding-bottom: 0;
}

/* The node sits on the list's left rule, hence the -34px offset. */
.kiu-about-timeline__item::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -34px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--kiu-accent);
    border-radius: 50%;
    background: var(--kiu-white);
}

.kiu-about-timeline__year {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--kiu-navy);
}

.kiu-about-timeline__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.kiu-about-timeline__body {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Contact band
   -------------------------------------------------------------------------- */

.kiu-about-contact {
    padding-block: 72px;
    background: linear-gradient(135deg, var(--kiu-navy-darker) 0%, var(--kiu-navy) 100%);
}

.kiu-about-contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 44px;
    align-items: center;
}

.kiu-about-contact__title {
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 700;
    line-height: 1.2;
}

.kiu-about-contact__lead {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .76);
}

.kiu-about-contact__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kiu-about-contact__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .84);
}

.kiu-about-contact__list i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 18px;
    color: var(--kiu-accent);
}

.kiu-about-contact__list a:hover {
    color: var(--kiu-accent-soft);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1340px) {
    .kiu-about {
        --kiu-nav-clear: 178px;
    }
}

@media (max-width: 700px) {
    .kiu-about {
        --kiu-nav-clear: 108px;
    }
}

@media (max-width: 1199px) {

    .kiu-about {
        --kiu-section-y: 84px;
    }

    .kiu-about-intro__grid,
    .kiu-about-vision__grid {
        gap: 44px;
    }

    .kiu-about-values__grid {
        gap: 18px 36px;
    }

    .kiu-about-contact__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    /* The button drops to its own row and left-aligns under the two columns. */
    .kiu-about-contact .kiu-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 991px) {

    .kiu-about {
        --kiu-section-y: 72px;
    }

    .kiu-about-hero {
        min-height: 340px;
        padding-block: var(--kiu-nav-clear) 64px;
    }

    .kiu-about-intro__grid,
    .kiu-about-vision__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    /* Image first on the vision block reads as decoration below the copy. */
    .kiu-about-vision__figure {
        order: 2;
    }

    .kiu-about-facts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .kiu-about-mission__grid,
    .kiu-about-values__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {

    .kiu-about {
        --kiu-section-y: 58px;
    }

    .kiu-about-hero {
        min-height: 0;
        padding-block: var(--kiu-nav-clear) 52px;
    }

    /* Headline sizes are set with clamp() whose lower bound was tuned for a
       desktop viewport; at phone widths the vw term bottoms out and the text
       arrives at full size against a 1.1 line-height, which is what made this
       page read as a wall. Ease the size, open the leading, widen the gaps. */
    .kiu-about-hero__title {
        font-size: 30px;
        line-height: 1.22;
    }

    .kiu-about-hero__lead {
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.8;
    }

    .kiu-about .kiu-section__title {
        font-size: 26px;
        line-height: 1.3;
    }

    .kiu-about .kiu-eyebrow {
        margin-bottom: 12px;
    }

    .kiu-about-intro__para {
        margin-top: 18px;
        font-size: 15.5px;
        line-height: 1.85;
    }

    .kiu-about-intro__grid,
    .kiu-about-vision__grid {
        gap: 36px;
    }

    .kiu-about-vision__statement {
        margin-top: 22px;
        padding-left: 20px;
        line-height: 1.6;
    }

    .kiu-about-vision__body {
        margin-top: 18px;
        font-size: 15.5px;
        line-height: 1.85;
    }

    /* The copy was running close to the viewport edge; Bootstrap's 12px
       gutter is too tight for a full-measure paragraph. */
    .kiu-about .container {
        padding-inline: 20px;
    }

    .kiu-about-facts {
        padding-block: 48px;
    }

    .kiu-about-mission__card {
        padding: 28px 24px;
    }

    .kiu-about-timeline__item {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-bottom: 34px;
    }

    .kiu-about-contact {
        padding-block: 56px;
    }

    .kiu-about-contact__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
}

@media (max-width: 479px) {

    /* Deliberately stays 2x2 rather than collapsing to one column. Four full
       -width rows of a 46px numeral turned this band into most of a phone
       screen for four short facts; side by side it is one glanceable block.
       The value clamp below is what makes two fit at 360px. */
    .kiu-about-facts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .kiu-about-fact {
        padding-left: 14px;
    }

    .kiu-about-fact__value {
        /* The base rule's 3.6vw floor is 32px, which is wider than half a
           360px screen once the rule and gap are taken off. */
        font-size: clamp(26px, 8vw, 34px);
    }

    .kiu-about-fact__label {
        margin-top: 8px;
        font-size: 12.5px;
        line-height: 1.45;
    }

    .kiu-about-value {
        gap: 16px;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .kiu-about .kiu-btn,
    .kiu-about-mission__card {
        transition: none;
    }

    .kiu-about .kiu-btn--accent:hover,
    .kiu-about-mission__card:hover {
        transform: none;
    }
}
