﻿/* =========================================================
   PROJECTS LISTING + PROJECT DETAILS
   IK EDUCATION
========================================================= */


/* =========================================================
   COMMON PROJECT HERO
========================================================= */

.projects-page-hero,
.project-view-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 45px;
    background: radial-gradient(circle at 85% 20%, rgba(8,124,196,.34), transparent 32%), radial-gradient(circle at 8% 85%, rgba(245,130,32,.14), transparent 28%), #032b43;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

    .projects-page-hero::before,
    .project-view-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
        background-size: 38px 38px;
        pointer-events: none;
    }

    .projects-page-hero::after,
    .project-view-hero::after {
        content: "";
        position: absolute;
        width: 330px;
        height: 330px;
        right: -130px;
        top: -150px;
        border: 58px solid rgba(255,255,255,.025);
        border-radius: 50%;
        pointer-events: none;
    }

.projects-page-hero-inner,
.project-view-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.projects-page-kicker,
.project-view-kicker,
.project-view-section-label {
    margin-bottom: 12px;
    color: #f58220;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.projects-page-hero h1,
.project-view-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -1.8px;
}

    .projects-page-hero h1 span {
        color: #55c7e5;
    }

.projects-page-hero p {
    max-width: 690px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 1.75;
}


/* breadcrumb */

.projects-page-breadcrumb,
.project-view-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
    color: rgba(255,255,255,.55);
    font-size: 14px;
}

    .projects-page-breadcrumb a,
    .project-view-breadcrumb a {
        color: #8edcf0;
        font-weight: 700;
    }

        .projects-page-breadcrumb a:hover,
        .project-view-breadcrumb a:hover {
            color: #fff;
        }

    .projects-page-breadcrumb span:last-child,
    .project-view-breadcrumb span:last-child {
        color: rgba(255,255,255,.78);
    }


/* =========================================================
   PROJECT LIST
========================================================= */

.projects-page-list {
    padding: 82px 0 92px;
    background: linear-gradient(rgba(8,124,196,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(8,124,196,.025) 1px, transparent 1px), #f8fbfc;
    background-size: 38px 38px;
}

.projects-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 25px;
}


/* card */

.projects-page-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dcebf0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(3,43,67,.07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .projects-page-card:hover {
        transform: translateY(-6px);
        border-color: #bcdde9;
        box-shadow: 0 20px 45px rgba(3,43,67,.12);
    }


/* image */

.projects-page-image {
    position: relative;
    display: block;
    height: 245px;
    overflow: hidden;
    background: #e8f3f7;
}

    .projects-page-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(3,43,67,.02) 45%, rgba(3,43,67,.30) 100% );
        pointer-events: none;
    }

    .projects-page-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .45s ease;
    }

.projects-page-card:hover .projects-page-image img {
    transform: scale(1.045);
}

.projects-page-number {
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 16px;
    min-width: 46px;
    height: 36px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 9px;
    background: rgba(3,43,67,.82);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}


/* placeholder */

.projects-page-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#eef8ff,#dceef5);
    color: #87b8ca;
}

    .projects-page-placeholder svg {
        width: 62px;
        height: 62px;
    }


/* card content */

.projects-page-card-body {
    padding: 25px 24px 26px;
}

.projects-page-card-label {
    margin-bottom: 9px;
    color: #f58220;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .9px;
}

.projects-page-card h2 {
    margin: 0 0 12px;
    color: #032b43;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 800;
}

    .projects-page-card h2 a {
        color: inherit;
    }

        .projects-page-card h2 a:hover {
            color: #087cc4;
        }

.projects-page-card p {
    margin: 0;
    color: #526a78;
    font-size: 15px;
    line-height: 1.75;
}

.projects-page-link {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #087cc4;
    font-size: 14px;
    font-weight: 800;
}

    .projects-page-link span {
        font-size: 18px;
        transition: transform .2s ease;
    }

    .projects-page-link:hover {
        color: #f58220;
    }

        .projects-page-link:hover span {
            transform: translateX(4px);
        }


/* empty */

.projects-page-empty {
    max-width: 650px;
    margin: auto;
    padding: 65px 25px;
    text-align: center;
    background: #fff;
    border: 1px solid #dcebf0;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(3,43,67,.06);
}

.projects-page-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eef8ff;
    color: #087cc4;
}

    .projects-page-empty-icon svg {
        width: 34px;
        height: 34px;
    }

.projects-page-empty h2 {
    margin: 0 0 8px;
    color: #032b43;
    font-size: 24px;
}

.projects-page-empty p {
    margin: 0;
    color: #526a78;
    font-size: 16px;
}


/* =========================================================
   PROJECT DETAILS HERO
========================================================= */

.project-view-hero {
    padding-bottom: 70px;
}

    .project-view-hero h1 {
        max-width: 900px;
    }

.project-view-date {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.88);
    font-size: 14px;
    font-weight: 700;
}

    .project-view-date svg {
        width: 18px;
        height: 18px;
        color: #55c7e5;
    }


/* =========================================================
   DETAILS CONTENT
========================================================= */

.project-view-section {
    padding: 75px 0 85px;
    background: #fff;
}


/* cover */

.project-view-cover {
    position: relative;
    width: 100%;
    height: min(520px, 48vw);
    min-height: 390px;
    overflow: hidden;
    margin-bottom: 55px;
    border-radius: 22px;
    background: #e8f3f7;
    box-shadow: 0 18px 45px rgba(3,43,67,.10);
}

    .project-view-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* content layout */

.project-view-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 340px;
    gap: 60px;
    align-items: start;
}

.project-view-content {
    min-width: 0;
}

    .project-view-content h2,
    .project-view-gallery-head h2 {
        margin: 0 0 24px;
        color: #032b43;
        font-size: clamp(30px,4vw,42px);
        line-height: 1.16;
        font-weight: 800;
        letter-spacing: -.7px;
    }

        .project-view-content h2 span,
        .project-view-gallery-head h2 span {
            color: #087cc4;
        }


/* database description */

.project-view-description {
    color: #405964;
    font-size: 16px;
    line-height: 1.85;
}

    .project-view-description p {
        margin: 0 0 19px;
        color: #405964;
        font-size: 16px;
        line-height: 1.85;
    }

    .project-view-description h1,
    .project-view-description h2,
    .project-view-description h3,
    .project-view-description h4 {
        margin: 30px 0 13px;
        color: #032b43;
        line-height: 1.35;
        font-weight: 800;
    }

    .project-view-description h2 {
        font-size: 27px;
    }

    .project-view-description h3 {
        font-size: 22px;
    }

    .project-view-description h4 {
        font-size: 18px;
    }

    .project-view-description ul,
    .project-view-description ol {
        margin: 15px 0 22px;
        padding-left: 22px;
    }

    .project-view-description li {
        margin-bottom: 8px;
        color: #405964;
        font-size: 16px;
        line-height: 1.75;
    }

    .project-view-description img {
        max-width: 100%;
        height: auto;
        margin: 22px 0;
        border-radius: 14px;
    }


/* =========================================================
   DETAILS SIDE CARD
========================================================= */

.project-view-info {
    position: sticky;
    top: 105px;
    padding: 27px;
    border: 1px solid #dcebf0;
    border-radius: 18px;
    background: #f8fbfc;
}

    .project-view-info h3 {
        margin: 0 0 23px;
        padding-bottom: 16px;
        border-bottom: 1px solid #dcebf0;
        color: #032b43;
        font-size: 20px;
        font-weight: 800;
    }

.project-view-info-row {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 19px;
}

.project-view-info-icon {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef8ff;
    color: #087cc4;
}

    .project-view-info-icon svg {
        width: 21px;
        height: 21px;
    }

.project-view-info-row span {
    display: block;
    margin-bottom: 3px;
    color: #718791;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.project-view-info-row strong {
    display: block;
    color: #032b43;
    font-size: 14px;
    line-height: 1.5;
}

.project-view-info-text {
    margin: 23px 0;
    padding-top: 21px;
    border-top: 1px solid #dcebf0;
    color: #526a78;
    font-size: 14px;
    line-height: 1.75;
}

.project-view-support-btn {
    width: 100%;
}


/* =========================================================
   GALLERY
========================================================= */

.project-view-gallery-section {
    padding: 82px 0 90px;
    background: linear-gradient(rgba(8,124,196,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(8,124,196,.025) 1px, transparent 1px), #f7fbfc;
    background-size: 38px 38px;
}

.project-view-gallery-head {
    display: grid;
    grid-template-columns: minmax(0,1fr) 420px;
    gap: 50px;
    align-items: end;
    margin-bottom: 32px;
}

    .project-view-gallery-head h2 {
        margin-bottom: 0;
    }

    .project-view-gallery-head > p {
        margin: 0;
        color: #526a78;
        font-size: 16px;
        line-height: 1.75;
    }


/* gallery grid */

.project-view-gallery {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    grid-auto-rows: 250px;
    gap: 16px;
}

.project-view-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #dcecf3;
}

    .project-view-gallery-item.featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .project-view-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s ease;
    }

    .project-view-gallery-item:hover img {
        transform: scale(1.05);
    }

.project-view-gallery-overlay {
    position: absolute;
    inset: 0;
    padding: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    background: linear-gradient( 180deg, transparent 45%, rgba(3,43,67,.80) );
    opacity: 0;
    transition: opacity .25s ease;
}

.project-view-gallery-item:hover
.project-view-gallery-overlay {
    opacity: 1;
}

.project-view-gallery-overlay span {
    font-size: 14px;
    font-weight: 800;
}

.project-view-gallery-overlay b {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(5px);
    font-size: 17px;
}


/* =========================================================
   DETAILS BOTTOM
========================================================= */

.project-view-bottom {
    padding: 75px 0 85px;
    background: #fff;
}

.project-view-bottom-card {
    position: relative;
    overflow: hidden;
    padding: 38px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    border-radius: 20px;
    background: radial-gradient(circle at 90% 20%, rgba(8,124,196,.35), transparent 35%), #032b43;
}

    .project-view-bottom-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
        background-size: 38px 38px;
    }

    .project-view-bottom-card > * {
        position: relative;
        z-index: 2;
    }

    .project-view-bottom-card > div > span {
        display: block;
        margin-bottom: 8px;
        color: #f58220;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .project-view-bottom-card h2 {
        margin: 0;
        color: #fff;
        font-size: 29px;
        line-height: 1.25;
        font-weight: 800;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .projects-page-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .project-view-layout {
        grid-template-columns: minmax(0,1fr) 300px;
        gap: 35px;
    }

    .project-view-gallery-head {
        grid-template-columns: 1fr 340px;
        gap: 30px;
    }
}


@media (max-width: 900px) {

    .project-view-layout {
        grid-template-columns: 1fr;
    }

    .project-view-info {
        position: static;
    }

    .project-view-gallery-head {
        grid-template-columns: 1fr;
        gap: 15px;
    }

        .project-view-gallery-head > p {
            max-width: 700px;
        }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .projects-page-hero,
    .project-view-hero {
        padding: 45px 0 50px;
    }

    .projects-page-kicker,
    .project-view-kicker,
    .project-view-section-label {
        font-size: 12px;
    }

    .projects-page-hero h1,
    .project-view-hero h1 {
        font-size: 37px;
        line-height: 1.09;
        letter-spacing: -1px;
    }

    .projects-page-hero p {
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.7;
    }

    .projects-page-breadcrumb,
    .project-view-breadcrumb {
        margin-top: 20px;
        font-size: 13px;
    }


    /* listing */

    .projects-page-list {
        padding: 55px 0 65px;
    }

    .projects-page-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .projects-page-card:hover {
        transform: none;
    }

    .projects-page-image {
        height: 230px;
    }

    .projects-page-card-body {
        padding: 22px 20px 23px;
    }

    .projects-page-card h2 {
        font-size: 20px;
    }

    .projects-page-card p {
        font-size: 15px;
    }


    /* detail */

    .project-view-section {
        padding: 50px 0 60px;
    }

    .project-view-cover {
        height: 300px;
        min-height: 0;
        margin-bottom: 40px;
        border-radius: 16px;
    }

    .project-view-content h2,
    .project-view-gallery-head h2 {
        font-size: 30px;
    }

    .project-view-description,
    .project-view-description p,
    .project-view-description li {
        font-size: 15px;
        line-height: 1.8;
    }

    .project-view-info {
        padding: 23px 20px;
    }


    /* gallery */

    .project-view-gallery-section {
        padding: 55px 0 65px;
    }

    .project-view-gallery-head > p {
        font-size: 15px;
    }

    .project-view-gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
        grid-auto-rows: 190px;
        gap: 10px;
    }

    .project-view-gallery-item.featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .project-view-gallery-overlay {
        opacity: 1;
        padding: 13px;
    }


    /* bottom */

    .project-view-bottom {
        padding: 55px 0 65px;
    }

    .project-view-bottom-card {
        padding: 28px 22px;
        display: block;
    }

        .project-view-bottom-card h2 {
            font-size: 25px;
        }

        .project-view-bottom-card .btn {
            width: 100%;
            margin-top: 22px;
        }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .projects-page-hero h1,
    .project-view-hero h1 {
        font-size: 32px;
    }

    .projects-page-image {
        height: 210px;
    }

    .project-view-cover {
        height: 235px;
    }

    .project-view-date {
        font-size: 12px;
    }

    .project-view-gallery {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: 235px;
    }

    .project-view-gallery-item.featured {
        grid-column: auto;
        grid-row: auto;
    }

    .project-view-gallery-overlay {
        opacity: 1;
    }
}
/* =========================================================
   PROJECT GALLERY LIGHTBOX
========================================================= */

body.gallery-modal-open {
    overflow: hidden;
}

.project-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 90px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}

    .project-gallery-modal.show {
        visibility: visible;
        opacity: 1;
    }


/* BACKDROP */

.project-gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 29, .94);
    backdrop-filter: blur(7px);
}


/* CONTENT */

.project-gallery-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .project-gallery-modal-content img {
        display: block;
        max-width: 100%;
        max-height: calc(100vh - 130px);
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 25px 80px rgba(0,0,0,.42);
        opacity: 1;
        transition: opacity .15s ease, transform .15s ease;
    }

        .project-gallery-modal-content img.changing {
            opacity: .25;
            transform: scale(.985);
        }


/* CLOSE */

.project-gallery-close {
    position: absolute;
    z-index: 5;
    top: 20px;
    right: 25px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

    .project-gallery-close:hover {
        background: #f58220;
        transform: rotate(90deg);
    }


/* PREVIOUS / NEXT */

.project-gallery-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, border-color .2s ease;
}

    .project-gallery-nav:hover {
        border-color: #f58220;
        background: #f58220;
    }

    .project-gallery-nav svg {
        width: 25px;
        height: 25px;
    }

.project-gallery-prev {
    left: 24px;
}

.project-gallery-next {
    right: 24px;
}


/* COUNTER */

.project-gallery-counter {
    position: absolute;
    left: 50%;
    bottom: 3px;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.90);
    font-size: 13px;
    font-weight: 700;
    transform: translateX(-50%);
}


/* GALLERY ITEMS */

.project-gallery-popup-item {
    cursor: zoom-in;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .project-gallery-modal {
        padding: 60px 70px;
    }

    .project-gallery-prev {
        left: 15px;
    }

    .project-gallery-next {
        right: 15px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .project-gallery-modal {
        padding: 65px 12px 70px;
    }

    .project-gallery-modal-content img {
        max-height: calc(100vh - 150px);
        border-radius: 6px;
    }

    .project-gallery-close {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 29px;
    }

    .project-gallery-nav {
        top: auto;
        bottom: 14px;
        width: 44px;
        height: 44px;
        transform: none;
        background: rgba(255,255,255,.12);
    }

    .project-gallery-prev {
        left: 15px;
    }

    .project-gallery-next {
        right: 15px;
    }

    .project-gallery-nav svg {
        width: 22px;
        height: 22px;
    }

    .project-gallery-counter {
        bottom: 21px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .project-gallery-modal {
        padding-left: 8px;
        padding-right: 8px;
    }

    .project-gallery-counter {
        font-size: 12px;
    }
}