/* ==========================================================================
   Page-Specific Styles: KB17 Projects Overview
   Scope: body.page-kb17-projects
   ========================================================================== */

body.page-kb17-projects {
    --theme-color: #0088cb;
    --title-color: #231f20;
    --body-color: #7B7E86;
    --smoke-color: #FAF9F6;
    --smoke-color2: #F5F7FA;
    --smoke-color3: #F5F5F6;
    --smoke-color4: #F5F7FA;
    --smoke-color5: #F0F2F4;
    --black-color: #1F2528;
    --gray-color: #303030;
    --white-color: #ffffff;
    --light-color: #DDDDDC;

    background-color: var(--smoke-color);
    color: var(--body-color);
}

/* 1. Hero Banner */
.kb17-projects-hero {
    position: relative;
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.95)), url('../../../assets/img/KB17/kb19-page-banner-2.jpg') no-repeat center center / cover;
    padding: 120px 0;
    border-bottom: 3px solid var(--theme-color);
    background-color: #474747;
}

.kb17-projects-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 136, 203, 0.15) 0%, transparent 85%);
    z-index: 1;
}

.kb17-projects-hero-title {
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 850;
    color: var(--white-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.kb17-projects-hero-subtitle {
    font-size: 1.3rem;
    color: var(--theme-color);
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.kb17-projects-breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.kb17-projects-breadcrumbs li {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kb17-projects-breadcrumbs li+li::before {
    content: '/';
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.kb17-projects-breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.kb17-projects-breadcrumbs a:hover {
    color: var(--theme-color);
}

/* 2. Main content wrapper */
.kb17-projects-main-wrapper {
    background-color: var(--smoke-color);
    padding: 80px 0 100px;
}

/* Intro Header */
.kb17-projects-section-title {
    font-family: 'Jost', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 850;
    color: var(--title-color);
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.kb17-projects-lead {
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--body-color);
}

/* 3. Projects Grid */
.kb17-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.kb17-project-card {
    background-size: cover;
    background-position: center;
    height: 280px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--light-color);
}

.kb17-project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.75) 100%);
    transition: background 0.4s ease;
    z-index: 1;
}

.kb17-project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--theme-color);
}

.kb17-project-card:hover::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.kb17-project-card .card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    color: var(--white-color);
    padding: 30px 25px;
    text-align: center;
}

.kb17-project-card .card-content h3 {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--white-color);
}

.kb17-project-card .card-content p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px !important;
}

.kb17-project-card .btn-view {
    border: 2px solid var(--white-color);
    padding: 7px 22px;
    border-radius: 30px;
    color: var(--white-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.kb17-project-card .btn-view:hover {
    background: var(--white-color);
    color: var(--theme-color);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .kb17-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .kb17-projects-grid {
        grid-template-columns: 1fr;
    }
}