
  :root {
    --bg: #f8fafc; /* Light Gray */
    --card-bg: #ffffff; /* White */
    --text-main: #1d2b4a; /* Dark Slate */
    --text-muted: #64748b; /* Medium Gray */
    --accent: #3b82f6; /* Soft Blue */
}



header {
    text-align: left;
    padding:78px 15px 10px 15px;
    margin-bottom: 4rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}



#custom-website-d{
    text-align: center;
}

#custom-website{
    padding: 20px 40px;
}
#searchInput {
    padding: 0.7rem 2rem;
    width: 100%;
    max-width: 350px;
    border: 1px solid #e2e8f0;
    /* border-radius: 50px; */
    /* font-size: 1rem; */
    outline: none;
    transition: 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

#searchInput:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.grid-container {
    display: grid;
    /* Clean, auto-filling grid */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Base Card Style */
.card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    /* border: 1px solid #edf2f7; */
    border: 1px solid #005bb0;
    position: relative; /* Context for absolute photo */
    overflow: hidden; /* Contains the image */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

/* Define the Background Image Element */
.card-bg-image {
    position: absolute;
    bottom: -10px; /* Slight offset for depth */
    right: -10px;
    width: 60%; /* Keeps the photo accent-sized */
    height: 60%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9; /* Initial almost-invisible opacity for minimalism */
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1; /* Sits behind text */

    /* The Mask: It blends the image softly into the white card */
    -webkit-mask-image: linear-gradient(to top left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
    mask-image: linear-gradient(to top left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
}

/* Hover Interaction */
.card:hover {
    /* transform: translateY(-8px); */
    border-color: #e2e8f0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.02);
}

/* Photo reveal on hover */
.card:hover .card-bg-image {
    opacity: 0.50; /* Subtle reveal, still highly minimal */
    transform: scale(1.05); /* Slight movement */
}

/* Ensure Text sits above the image */
.card h3, .card p {
    position: relative;
    z-index: 2;
}

.card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.card p {
    margin: 0;
    font-size: 0.95rem;
    /* line-height: 1.6; */
    color: var(--text-muted);
    font-weight: 400;
}

/* Simple responsiveness */
@media (max-width: 600px) {

   
    .grid-container { grid-template-columns: 1fr; }
}
