:root {
    --clr-primary: #043873;
    --clr-accent: #F99D1C;
    --clr-accent-hover: #4f46e5;
    --clr-light: #fff;
    --clr-muted: #64748b;
}

body {
    background-color: var(--clr-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── NAVBAR ─── */
.navbar-custom {
    background: var(--clr-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
    padding: .85rem 0;
}

.navbar-custom .navbar-brand {
    color: var(--clr-primary);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -.5px;
    text-decoration: none;
}

.navbar-custom .navbar-brand span {
    color: var(--clr-accent);
}

.navbar-custom .nav-link {
    color: #043873;
    font-weight: 500;
    font-size: .92rem;
    padding: .5rem .85rem;
    border-radius: 6px;
    transition: background .2s, color .2s;
    text-decoration: none;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #043873;
    background: rgba(255, 255, 255, .1);
}

.navbar-custom .nav-link i {
    margin-right: 5px;
    opacity: .85;
}

.navbar-custom .btn-nav-action {
    background: var(--clr-accent);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: .88rem;
    padding: .45rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s;
}

.navbar-custom .btn-nav-action:hover {
    background: #fff;
    color: var(--clr-accent);
    border: solid 1px var(--clr-accent);
}

/* SECTION */
.showcase {
    background: #fff;
}

/* TITLE */
.showcase-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0b3d6d;
}

/* highlight brush */
.highlight {
    background: url('/assets/img/yellow-long-line.svg') no-repeat;
    background-position: bottom left;
    background-size: 100% 40%;
    padding-bottom: 8px;
}

/* subtitle */
.showcase-subtitle {
    color: #6c757d;
    font-size: .95rem;
}

/* SEARCH CONTAINER */
.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    font-size: .95rem;
    transition: all .3s;
    outline: none;
}

.search-input:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s;
}

.search-clear:hover {
    color: #dc3545;
}

.search-btn {
    padding: 12px 28px;
    background: #0b3d6d;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    white-space: nowrap;
}

.search-btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

/* Responsive search */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }
}

/* FILTER SCROLL CONTAINER */
.filter-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #1565c0 #e0e0e0;
}

/* Custom scrollbar for webkit browsers */
.filter-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.filter-scroll-container::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.filter-scroll-container::-webkit-scrollbar-thumb {
    background: #1565c0;
    border-radius: 10px;
}

.filter-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #0b3d6d;
}

/* Filter wrapper */
.filter-wrapper {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 5px 0 10px;
    min-width: min-content;
}

/* FILTER BUTTON */
.filter-btn {
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    background: #0b3d6d;
    color: #fff;
    font-weight: 500;
    transition: .3s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1565c0;
    color: #fff;
}

/* PROJECT CARD LINK */
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .3s ease;
}

.project-card-link:hover {
    transform: translateY(-5px);
}

/* PROJECT CARD */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    height: 320px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    transition: box-shadow .3s;
}

.project-card-link:hover .project-card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

/* overlay */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    padding: 1.2rem;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .6) 30%, rgba(0, 0, 0, .9) 100%);
    color: #fff;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .4s ease, transform .4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-info h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-info p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    opacity: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* badge */
.badge-project {
    font-size: .7rem;
    background: #fff;
    color: #0b3d6d;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.4rem;
}

/* hover */
.project-card:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments for project cards */
@media (max-width: 991px) {
    .project-card {
        height: 280px;
    }

    .project-info {
        padding: 1rem;
    }

    .project-info h5 {
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    .project-card {
        height: 300px;
    }

    .project-info {
        padding: 1.2rem;
    }

    .project-info h5 {
        font-size: 1rem;
    }
}

/* ─── PAGINATION ─── */
.pagination-showcase {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
}

.pagination-showcase .page-item {
    display: inline-block;
}

.pagination-showcase .page-link {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    color: #0b3d6d;
    border: 1px solid #dee2e6;
    text-decoration: none;
    transition: all .2s;
    font-weight: 500;
    font-size: .9rem;
}

.pagination-showcase .page-link:hover {
    background: #0b3d6d;
    color: #fff;
    border-color: #0b3d6d;
}

.pagination-showcase .page-item.active .page-link {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(21,101,192,.35);
}

.pagination-showcase .page-item.disabled .page-link {
    color: #adb5bd;
    pointer-events: none;
    background: #f8f9fa;
    border-color: #f0f0f0;
    cursor: default;
}

/* ─── FOOTER ─── */
.footer-custom {
    background: var(--clr-primary);
    color: rgba(255, 255, 255, .5);
    padding: 1.8rem 0;
    font-size: .85rem;
    margin-top: auto;
}

.footer-custom a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color .2s;
}

.footer-custom a:hover {
    color: #fff;
}