:root {
    --navy: #001f3f;
    --orange: #ff4500;
    --light-blue: #f1f8ff;
    --white: #ffffff;
    --black: #1a1a1a;
    --border: #d6e4f0;
}

body { margin: 0; font-family: 'Inter', sans-serif; background: var(--white); }

/* --- Search Bar --- */
.search-header { display: flex; justify-content: center; margin: 60px 0; }
.search-pill-wrapper { position: relative; width: 100%; max-width: 600px; }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--orange); }

#blogSearch {
    width: 100%; padding: 15px 15px 15px 50px;
    border: 2px solid var(--border); border-radius: 50px;
    font-size: 1rem; outline: none; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

#blogSearch:focus { border-color: var(--navy); box-shadow: 0 5px 20px rgba(0, 31, 63, 0.1); }

/* --- Grid & Cards --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding: 0 5%; }

.blog-card {
    background: var(--light-blue); border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column; border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.blog-card:hover { transform: translateY(-8px); background: var(--white); border-color: var(--orange); }
.card-img img { width: 100%; height: 180px; object-fit: cover; }
.card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-title { color: var(--navy); font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.author { font-size: 13px; color: #666; margin-bottom: 5px; }
.meta { font-size: 12px; color: #999; margin-bottom: 20px; }

/* --- Rounded Pill Buttons --- */
.btn-pill-small {
    align-self: flex-start; background: var(--orange); color: white;
    padding: 7px 18px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; text-decoration: none; border-radius: 30px;
    transition: 0.3s; margin-top: auto;
}

.btn-pill-small:hover { background: var(--navy); transform: scale(1.05); }

/* --- Modal & Blur --- */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 31, 63, 0.9); backdrop-filter: blur(10px);
    justify-content: center; align-items: center;
}

.modal-container { position: relative; width: 90%; max-width: 900px; background: white; border-radius: 15px; overflow: hidden; }
.slides-wrapper img { width: 100%; display: none; }
.close-btn { position: absolute; top: 20px; right: 30px; font-size: 40px; color: var(--orange); cursor: pointer; z-index: 10001; }

.nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--orange); color: white; border: none; padding: 15px;
    cursor: pointer; font-weight: bold; transition: 0.3s;
}

.nav-btn:hover { background: var(--navy); }
.next-btn { right: 0; }
.prev-btn { left: 0; }
.counter { position: absolute; bottom: 15px; width: 100%; text-align: center; color: #333; font-weight: 700; }