/* =========================================================
   SCIENCE PAGE
   DSN — Delfan Students Network
========================================================= */

.science-page {
    background: #0e1118;
    color: #f4f5f7;
}


/* =========================================================
   TOPBAR
========================================================= */

.science-topbar {
    position: relative;
    z-index: 50;

    width: 100%;
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5vw;

    background: rgba(14,17,24,.96);

    border-bottom: 1px solid rgba(255,255,255,.07);

    backdrop-filter: blur(18px);
}


.science-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #fff;
    text-decoration: none;

    min-width: 190px;
}


.science-brand-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.18);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 1px;
}


.science-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.science-brand-text b {
    font-size: 15px;
    letter-spacing: 2px;
}


.science-brand-text small {
    color: rgba(255,255,255,.42);
    font-size: 8px;
}


.science-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}


.science-nav a {
    position: relative;

    color: rgba(255,255,255,.55);

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition: color .25s ease;
}


.science-nav a:hover,
.science-nav a.active {
    color: #fff;
}


.science-nav a.active::after {
    content: "";

    position: absolute;

    right: 0;
    left: 0;
    bottom: -9px;

    height: 2px;

    background: #74d9ff;
}


.science-home-link {
    display: flex;
    align-items: center;
    gap: 9px;

    color: rgba(255,255,255,.55);

    text-decoration: none;

    font-size: 10px;

    transition: color .25s ease;
}


.science-home-link:hover {
    color: #fff;
}


.science-home-link span {
    font-size: 15px;
}


/* =========================================================
   HERO
========================================================= */

.science-hero {
    position: relative;

    width: 100%;
    height: 720px;

    min-height: 650px;

    overflow: hidden;

    isolation: isolate;

    background: #10131c;
}


.science-hero-image {
    position: absolute;
    inset: 0;

    z-index: -3;
}


.science-hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    display: block;

    filter:
        contrast(1.08)
        brightness(.64)
        saturate(.85);

    transition:
        transform 1.3s ease,
        filter .8s ease;
}


.science-hero:hover
.science-hero-image img {
    transform: scale(1.025);

    filter:
        contrast(1.1)
        brightness(.70)
        saturate(.9);
}


.science-hero-overlay {
    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(8,12,18,.94) 0%,
            rgba(8,12,18,.72) 30%,
            rgba(8,12,18,.18) 68%,
            rgba(8,12,18,.28) 100%
        );
}


.science-hero-overlay::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(8,12,18,.88),
            transparent 45%
        );
}


.science-hero-grid {
    position: absolute;
    inset: 0;

    z-index: -1;

    opacity: .13;

    background-image:
        linear-gradient(
            rgba(255,255,255,.15) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.15) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image:
        linear-gradient(
            90deg,
            black,
            transparent 75%
        );
}


.science-hero-content {
    position: absolute;

    z-index: 5;

    top: 50%;
    left: 16%;

    transform: translateY(-50%);

    width: min(580px, 46vw);

    text-align: left;

    color: #fff;
}


.science-kicker {
    display: block;

    margin-bottom: 25px;

    color: #74d9ff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 4px;

    direction: ltr;
}


.science-hero-content h1 {
    margin: 0 0 30px;

    font-size: clamp(95px, 12vw, 175px);

    line-height: .82;

    font-weight: 900;

    letter-spacing: -8px;

    color: #fff;

    text-shadow:
        0 5px 40px rgba(0,0,0,.55);
}


.science-hero-content h1 span {
    color: #74d9ff;
}


.science-hero-content p {
    max-width: 530px;

    margin: 0;

    color: rgba(255,255,255,.88);

    font-size: 18px;

    line-height: 2;

    text-shadow:
        0 2px 18px rgba(0,0,0,.8);
}


.science-hero-note {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 28px;

    color: #fff;

    font-size: 12px;
}


.science-hero-note span {
    width: 42px;
    height: 1px;

    background: #74d9ff;
}


.science-hero-info {
    position: absolute;

    right: 6%;
    bottom: 36px;

    display: flex;
    flex-direction: column;
    gap: 5px;

    direction: ltr;

    text-shadow:
        0 2px 15px rgba(0,0,0,.8);
}


.science-hero-info span {
    color: #74d9ff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 3px;
}


.science-hero-info strong {
    font-size: 25px;

    font-weight: 800;

    letter-spacing: 2px;
}


.science-hero-info small {
    color: rgba(255,255,255,.58);

    font-size: 9px;

    letter-spacing: 2px;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.science-ted-section,
.science-projects-section,
.science-articles-section {
    padding: 110px 7vw;
}


.science-ted-section {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(116,217,255,.055),
            transparent 30%
        ),
        #0d1017;
}


.science-projects-section {
    background: #10131c;
}


.science-articles-section {
    background:
        linear-gradient(
            180deg,
            #0d1017,
            #0a0d13
        );
}


.science-section-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 40px;

    margin-bottom: 55px;
}


.science-section-kicker {
    display: block;

    margin-bottom: 12px;

    color: #74d9ff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 3px;

    direction: ltr;
}


.science-section-heading h2 {
    margin: 0;

    color: #fff;

    font-size: clamp(42px, 5vw, 72px);

    line-height: 1;

    font-weight: 900;

    letter-spacing: -3px;
}


.science-section-heading p {
    max-width: 580px;

    margin: 20px 0 0;

    color: rgba(255,255,255,.50);

    font-size: 14px;

    line-height: 2;
}


.science-section-meta {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 6px;
}


.science-section-meta span {
    color: rgba(255,255,255,.16);

    font-size: 58px;

    font-weight: 900;

    line-height: .8;
}


.science-section-meta small {
    color: rgba(255,255,255,.35);

    font-size: 8px;

    letter-spacing: 2px;

    direction: ltr;
}


/* =========================================================
   TED INTRO
========================================================= */

.science-ted-intro {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(280px, .6fr);

    gap: 70px;

    padding: 42px 0;

    margin-bottom: 55px;

    border-top:
        1px solid rgba(255,255,255,.08);

    border-bottom:
        1px solid rgba(255,255,255,.08);
}


.science-ted-intro-main {
    position: relative;

    padding-right: 28px;
}


.science-red-line {
    position: absolute;

    right: 0;
    top: 5px;

    width: 3px;
    height: 80px;

    background: #74d9ff;
}


.science-ted-intro-main h3 {
    margin: 0 0 18px;

    color: #fff;

    font-size: 29px;

    line-height: 1.5;

    font-weight: 800;
}


.science-ted-intro-main p {
    max-width: 700px;

    margin: 0;

    color: rgba(255,255,255,.52);

    font-size: 14px;

    line-height: 2.1;
}


.science-ted-info {
    display: flex;

    flex-direction: column;

    gap: 28px;

    border-right:
        1px solid rgba(255,255,255,.08);

    padding-right: 35px;
}


.science-ted-info div {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.science-ted-info span {
    color: #74d9ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 2px;

    direction: ltr;
}


.science-ted-info strong {
    color: rgba(255,255,255,.8);

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================================
   TED CARDS
========================================================= */

.science-ted-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 26px;
}


.science-ted-card {
    position: relative;

    overflow: hidden;

    min-height: 430px;

    background: #141821;

    border:
        1px solid rgba(255,255,255,.07);

    transition:
        transform .35s ease,
        border-color .35s ease;
}


.science-ted-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(116,217,255,.38);
}


.science-ted-media {
    position: relative;

    height: 290px;

    overflow: hidden;

    background: #080b10;
}


.science-ted-media video,
.science-ted-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .7s ease;
}


.science-ted-card:hover
.science-ted-media video,
.science-ted-card:hover
.science-ted-media img {
    transform: scale(1.035);
}


.science-ted-media::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.68),
            transparent 60%
        );

    pointer-events: none;
}


.science-ted-play {
    position: absolute;

    z-index: 4;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(255,255,255,.65);

    border-radius: 50%;

    background: rgba(0,0,0,.35);

    backdrop-filter: blur(8px);

    color: #fff;

    font-size: 20px;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}


.science-ted-card:hover
.science-ted-play {
    transform:
        translate(-50%, -50%)
        scale(1.08);

    background:
        rgba(116,217,255,.18);
}


.science-ted-label {
    position: absolute;

    z-index: 5;

    right: 20px;
    top: 20px;

    padding: 7px 10px;

    background: #74d9ff;

    color: #071018;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 2px;

    direction: ltr;
}


.science-ted-info-card {
    padding: 25px 27px;
}


.science-ted-info-card h3 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 21px;

    line-height: 1.6;
}


.science-ted-info-card p {
    margin: 0;

    color: rgba(255,255,255,.47);

    font-size: 12px;

    line-height: 1.9;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


.science-ted-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 16px;

    margin-top: 18px;

    color: rgba(255,255,255,.38);

    font-size: 9px;
}


/* =========================================================
   PROJECTS
========================================================= */

.science-projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


.science-project-card {
    position: relative;

    min-height: 390px;

    overflow: hidden;

    background: #151922;

    border:
        1px solid rgba(255,255,255,.07);

    transition:
        transform .35s ease,
        border-color .35s ease;
}


.science-project-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(116,217,255,.3);
}


.science-project-image {
    height: 225px;

    overflow: hidden;

    background: #090c11;
}


.science-project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .6s ease;
}


.science-project-card:hover
.science-project-image img {
    transform: scale(1.05);
}


.science-project-content {
    padding: 22px;
}


.science-project-number {
    color: #74d9ff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    direction: ltr;
}


.science-project-content h3 {
    margin: 12px 0 9px;

    color: #fff;

    font-size: 19px;

    line-height: 1.5;
}


.science-project-content p {
    margin: 0;

    color: rgba(255,255,255,.45);

    font-size: 11px;

    line-height: 1.9;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   ARTICLES
========================================================= */

.science-articles-list {
    display: flex;

    flex-direction: column;

    border-top:
        1px solid rgba(255,255,255,.08);
}


.science-article-card {
    display: grid;

    grid-template-columns:
        90px
        minmax(0, 1fr)
        220px;

    align-items: center;

    gap: 30px;

    padding: 30px 0;

    border-bottom:
        1px solid rgba(255,255,255,.08);

    transition:
        padding .3s ease,
        background .3s ease;
}


.science-article-card:hover {
    padding-right: 18px;
    padding-left: 18px;

    background:
        rgba(255,255,255,.018);
}


.science-article-number {
    color: rgba(255,255,255,.15);

    font-size: 34px;

    font-weight: 900;
}


.science-article-main h3 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 20px;

    line-height: 1.5;
}


.science-article-main p {
    margin: 0;

    color: rgba(255,255,255,.45);

    font-size: 12px;

    line-height: 1.9;

    max-width: 700px;
}


.science-article-image {
    height: 125px;

    overflow: hidden;

    background: #11151d;
}


.science-article-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* =========================================================
   VIDEO MODAL
========================================================= */

.science-video-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;
}


.science-video-modal.active {
    display: flex;
}


.science-video-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(2,5,9,.88);

    backdrop-filter: blur(16px);
}


.science-video-dialog {
    position: relative;

    z-index: 2;

    width: min(1050px, 94vw);

    max-height: 92vh;

    overflow-y: auto;

    background: #11151d;

    border:
        1px solid rgba(255,255,255,.1);

    box-shadow:
        0 30px 100px rgba(0,0,0,.6);
}


.science-video-close {
    position: absolute;

    z-index: 10;

    top: 15px;
    left: 15px;

    width: 42px;
    height: 42px;

    border:
        1px solid rgba(255,255,255,.2);

    border-radius: 50%;

    background: rgba(0,0,0,.5);

    color: #fff;

    font-size: 27px;

    cursor: pointer;
}


.science-video-player {
    width: 100%;

    aspect-ratio: 16 / 9;

    background: #05070a;
}


.science-video-player video,
.science-video-player iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}


.science-video-details {
    padding: 30px 34px 35px;
}


.science-video-type {
    color: #74d9ff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 3px;
}


.science-video-details h2 {
    margin: 10px 0 12px;

    color: #fff;

    font-size: 27px;

    line-height: 1.5;
}


.science-video-details p {
    margin: 0;

    color: rgba(255,255,255,.55);

    font-size: 13px;

    line-height: 2;
}


.science-video-meta {
    display: flex;

    gap: 20px;

    margin-top: 20px;

    color: rgba(255,255,255,.4);

    font-size: 10px;
}


.science-youtube-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 25px;

    padding: 12px 18px;

    border:
        1px solid rgba(255,255,255,.13);

    color: #fff;

    text-decoration: none;

    font-size: 11px;

    transition:
        border-color .25s ease,
        background .25s ease;
}


.science-youtube-link:hover {
    border-color: #74d9ff;

    background:
        rgba(116,217,255,.08);
}


.science-youtube-link span {
    font-size: 15px;
}


/* =========================================================
   LOADING / EMPTY
========================================================= */

.science-loading {
    grid-column: 1 / -1;

    padding: 70px 20px;

    text-align: center;

    color: rgba(255,255,255,.35);

    font-size: 12px;
}


.science-empty {
    grid-column: 1 / -1;

    padding: 70px 20px;

    text-align: center;

    color: rgba(255,255,255,.35);
}


/* =========================================================
   FOOTER
========================================================= */

.science-footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 28px 7vw;

    border-top:
        1px solid rgba(255,255,255,.07);

    background: #090c12;

    color: rgba(255,255,255,.3);

    font-size: 10px;
}


.science-footer a {
    color: rgba(255,255,255,.5);

    text-decoration: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .science-nav {
        gap: 16px;
    }

    .science-nav a {
        font-size: 10px;
    }

    .science-projects-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 800px) {

    .science-topbar {
        height: 72px;

        padding: 0 25px;
    }


    .science-nav {
        display: none;
    }


    .science-home-link {
        display: none;
    }


    .science-hero-content {
        left: 40px;
        right: 40px;

        width: auto;
    }


    .science-ted-intro {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .science-ted-info {
        border-right: 0;

        border-top:
            1px solid rgba(255,255,255,.08);

        padding:
            25px 0 0;
    }


    .science-ted-grid {
        grid-template-columns: 1fr;
    }


    .science-projects-grid {
        grid-template-columns: 1fr;
    }


    .science-article-card {
        grid-template-columns:
            55px
            1fr;
    }


    .science-article-image {
        display: none;
    }

}


@media (max-width: 520px) {

    .science-ted-section,
    .science-projects-section,
    .science-articles-section {
        padding: 75px 24px;
    }


    .science-hero {
        height: 650px;
        min-height: 600px;
    }


    .science-hero-content {
        left: 24px;
        right: 24px;

        top: auto;
        bottom: 100px;

        transform: none;
    }


    .science-hero-content h1 {
        font-size: 82px;

        letter-spacing: -5px;
    }


    .science-hero-content p {
        font-size: 14px;
    }


    .science-hero-info {
        right: 24px;
        bottom: 28px;
    }


    .science-section-heading {
        align-items: flex-start;
    }


    .science-section-meta {
        display: none;
    }


    .science-section-heading h2 {
        font-size: 42px;
    }


    .science-ted-card {
        min-height: 0;
    }


    .science-ted-media {
        height: 230px;
    }


    .science-video-modal {
        padding: 10px;
    }


    .science-video-details {
        padding: 25px 20px;
    }


    .science-video-details h2 {
        font-size: 21px;
    }


    .science-footer {
        flex-direction: column;

        gap: 15px;
    }

}