/* HEADER STYLES */
.page-header {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    background-color: #f8f9fa;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Slightly zoomed for effect */
    transform: scale(1.05);
}

/* SHINE EFFECT */
.header-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    animation: shineMove 6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shineMove {
    0% {
        left: -100%;
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    40% {
        left: 200%;
        opacity: 0;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

/* GRADIENT OVERLAY: More transparent at top to show image */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reduced opacity at top (0.4) to show more background */
    background: linear-gradient(to bottom, rgba(240, 240, 240, 0.4) 0%, rgba(255, 255, 255, 0.85) 60%, #ffffff 100%);
    z-index: 3;
}

.header-content {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 40px;
}

.header-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    margin-bottom: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    /* Gradient Text */
    background: linear-gradient(to right, #143450 0%, #00a8cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #143450;
    margin-bottom: 20px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.breadcrumb-item a,
.breadcrumb-item.active {
    color: #143450;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* GALLERY SECTION */
.gallery-section {
    background-color: #ffffff;
    padding: 20px 0 100px;
    min-height: 600px;
}

/* CREATIVE FILTER NAV */
.filter-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
}

.filter-container {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    background: rgba(20, 52, 80, 0.03);
    padding: 6px;
    /* Reduced padding */
    border-radius: 50px;
    /* Glassmorphism feel */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 52, 80, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.filter-link {
    position: relative;
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 10px 20px;
    /* Reduced size */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    /* Reduced font size */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.filter-text {
    position: relative;
    z-index: 2;
}

.filter-dot {
    width: 5px;
    /* Smaller dot */
    height: 5px;
    background: #143450;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.filter-link:hover {
    color: #143450;
    background: rgba(255, 255, 255, 0.5);
}

.filter-link.active {
    color: #ffffff;
    background: #143450;
    box-shadow: 0 4px 15px rgba(20, 52, 80, 0.25);
}

.filter-link.active .filter-dot {
    background: #ffffff;
    opacity: 1;
    transform: scale(1);
}

/* GALLERY CARD */
.gallery-card {
    display: block;
    background: white;
    border-radius: 16px;
    /* Added Border Radius */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: all 0.5s ease;
    text-decoration: none;
    height: 100%;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.img-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.2, 1);
    filter: grayscale(10%);
}

.gallery-card:hover .img-wrapper img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 52, 80, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .img-overlay {
    opacity: 1;
}

.view-text {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    border: 1px solid white;
    padding: 10px 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    border-radius: 30px;
    /* Rounded button */
}

.gallery-card:hover .view-text {
    transform: translateY(0);
}

.card-body {
    padding: 20px 20px;
    /* Added horizontal padding */
    text-align: left;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.gallery-card:hover .card-body {
    border-bottom-color: #143450;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    /* Bolder */
    margin-bottom: 5px;

    /* Text Gradient: High Contrast - Dark Blue to Bright Cyan/Blue */
    background: linear-gradient(to right, #143450 0%, #00a8cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #143450;
    /* Fallback */
}

.card-cat {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .filter-container {
        border-radius: 12px;
        padding: 6px;
        width: 100%;
        justify-content: center;
    }

    .filter-link {
        padding: 10px 16px;
        font-size: 0.75rem;
        width: 48%;
        justify-content: center;
    }

    .filter-dot {
        display: none;
    }
}