/* =========================================================
   PROGRAMS PAGE - PREMIUM RESEARCH
========================================================= */

.programs-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 58px;
}

.program-stat {
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15,23,42,.055);
}

.program-stat strong {
    display: block;
    margin-bottom: 8px;
    color: #cbaf75;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.program-stat span {
    color: #64748b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}

/* =========================================================
   SECTION HEADS
========================================================= */

.programs-block-head {
    max-width: 860px;
    margin: 0 auto 34px;
    text-align: center;
}

.programs-block-head h2 {
    margin: 10px 0 14px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.2;
}

.programs-block-head p {
    max-width: 760px;
    margin: 0 auto;
    color: #64748b;
    font-size: 17px;
    line-height: 1.75;
}

/* =========================================================
   ACTIVE PROGRAMS
========================================================= */

.programs-active-block {
    margin-bottom: 66px;
}

.programs-active-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.program-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(15,23,42,.09);
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(15,23,42,.075);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.program-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #cbaf75, #d7bd7f);
}

.program-card:hover {
    transform: translateY(-8px);
    border-color: rgba(203,175,117,.38);
    box-shadow: 0 26px 60px rgba(15,23,42,.14);
}

.program-card-active {
    min-height: 300px;
}

.program-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.program-period,
.program-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}

.program-period {
    background: rgba(37,99,235,.09);
    color: #2563eb;
}

.program-status {
    background: rgba(203,175,117,.14);
    color: #b8954f;
    text-transform: uppercase;
}

.program-card h3 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.18;
}

.program-card p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.75;
}

/* =========================================================
   ARCHIVE TIMELINE
========================================================= */

.programs-archive-block {
    margin-bottom: 64px;
}

.program-timeline {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}

.program-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 145px;
    width: 2px;
    background: linear-gradient(180deg, #cbaf75, rgba(203,175,117,.15));
}

.program-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 52px;
    padding: 0 0 26px;
}

.program-timeline-item::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 139px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #cbaf75;
    box-shadow: 0 0 0 7px rgba(203,175,117,.15);
}

.program-timeline-content {
    padding: 24px 26px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15,23,42,.055);
}

.program-timeline-content h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.program-timeline-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

/* =========================================================
   PATENTS LINK BAND
========================================================= */

.programs-research-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    padding: 36px 40px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0a2540, #14395f);
    box-shadow: 0 24px 60px rgba(15,23,42,.16);
}

.programs-research-link .section-kicker {
    color: #cbaf75;
}

.programs-research-link h2 {
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.2;
}

.programs-research-link p {
    margin: 0;
    max-width: 760px;
    color: rgba(255,255,255,.82);
    line-height: 1.75;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
    .programs-stats,
    .programs-active-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .programs-research-link {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .programs-stats,
    .programs-active-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        padding: 26px;
    }

    .programs-block-head h2 {
        font-size: 28px;
    }

    .program-timeline::before {
        left: 8px;
    }

    .program-timeline-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 34px;
    }

    .program-timeline-item::before {
        left: 2px;
    }

    .programs-research-link {
        padding: 28px;
    }
}

/* ==========================================================
   HERO BACKGROUND - PROGRAME
========================================================== */

.programs-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.programs-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        url('/assets/images/backgrounds/cercetare-industriala-blueprint.webp')
        center center / cover no-repeat;

    opacity: .22;
    filter: grayscale(100%);
    pointer-events: none;
}

.programs-hero .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================
/* ==========================================================
   SUBTLE RESEARCH BACKGROUND
========================================================== */

.programs-page .section-white {
    position: relative;
    overflow: hidden;
}

.programs-page .section-white::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 700px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.15),
            rgba(255,255,255,.85) 85%,
            #fff 100%
        ),
        url('/assets/images/backgrounds/cercetare-industriala-blueprint.webp')
        center top / cover no-repeat;

    opacity: .32;
    filter: grayscale(100%) contrast(1.25);
    pointer-events: none;
}

.programs-page .section-white > .container {
    position: relative;
    z-index: 2;
}

/* =========================
   CENTER PREMIUM LAYOUT
========================= */

.programs-page .section-head,
.programs-block-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 50px auto;
}

/* titluri + subtitluri */
.programs-page .section-title,
.programs-page .section-subtitle,
.programs-block-head h2,
.programs-block-head p {
    text-align: center;
}

/* kicker centrat și mai aerisit */
.programs-page .section-kicker {
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

/* spacing între blocuri (mai premium, mai aerisit) */
.programs-active-block,
.programs-archive-block {
    margin-top: 60px;
}


/* =========================
   FULL CENTER HERO BLOCK
========================= */

.research-page .section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    max-width: 900px;
    margin: 0 auto 60px auto;
}

/* kicker */
.research-page .section-kicker {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* title */
.research-page .section-title {
    text-align: center;
    margin-bottom: 12px;
}

/* subtitle */
.research-page .section-subtitle {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.6;
}
