:root {
--primary-blue: #002D62;
--dark-blue: #001A3D;
--accent-gold: #AD8B55;
--light-gray: #f4f4f4;
}

body { margin: 0; font-family: 'Source Sans Pro', sans-serif; background: white; color: #333; }
.container { width: 85%; max-width: 1200px; margin: auto; }

/* Gov Branding */
.gov-banner { background: #eeeeee; font-size: 11px; padding: 5px 0; border-bottom: 1px solid #ccc; }
.gov-banner img { height: 12px; margin-right: 5px; vertical-align: middle; }

header {
background: var(--primary-blue);
color: white;
padding: 0;
height: 100px;
display: flex;
align-items: center;
border-bottom: 5px solid var(--accent-gold);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-area { display: flex; align-items: center; }
.site-logo {
height: 88px;
width: auto;
margin-right: 15px;
filter: none;
}
.logo-title { font-family: 'Merriweather', serif; font-size: 22px; }
.logo-sub { font-size: 11px; opacity: 0.8; text-transform: uppercase; }

nav ul { list-style: none; display: flex; padding: 0; }
nav ul li { margin-left: 20px; }
nav ul li a { color: white; text-decoration: none; font-weight: bold; font-size: 14px; }

/* Hero Section */
.hero {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
color: white; padding: 100px 0; text-align: center;
transition: 0.5s;
}
.hero h1 { font-size: 45px; font-family: 'Merriweather', serif; margin-bottom: 10px; }
.hero h1 span { color: var(--accent-gold); }

.search-input-wrapper { margin-top: 30px; }
.search-input-wrapper input { width: 40%; padding: 15px; border: none; font-size: 16px; border-radius: 4px 0 0 4px; }
.search-input-wrapper button { padding: 15px 30px; background: var(--accent-gold); color: white; border: none; cursor: pointer; font-weight: bold; border-radius: 0 4px 4px 0; }

/* Card Grid */
.section-heading { margin-top: 50px; border-bottom: 2px solid var(--accent-gold); display: inline-block; padding-bottom: 10px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.card { border: 1px solid #ddd; background: white; cursor: pointer; transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-content { padding: 15px; }
.card-content h3 { margin: 0; color: var(--primary-blue); }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); overflow-y: auto; }
.modal-content { background: white; margin: 5% auto; padding: 40px; width: 70%; position: relative; border-radius: 8px; }
.close-btn { position: absolute; right: 25px; top: 15px; font-size: 35px; cursor: pointer; }
/* Homepage Article Styling */
.home-article {
margin-top: 40px;
line-height: 1.8;
color: #444;
}

.home-article p {
font-size: 18px;
margin-bottom: 20px;
}

.article-images {
display: flex;
gap: 20px;
margin: 30px 0;
}

.article-images img {
flex: 1;
width: 100%;
border: 5px solid var(--light-gray);
border-radius: 4px;
}

/* Profiles Grid margin */
#profileGrid {
margin-top: 20px;
}
/* --- Global White Space Fix --- */
html, body {
max-width: 100%;
overflow-x: hidden;
margin: 0;
padding: 0;
}
/* --- Mobile Responsive Fix --- */
@media screen and (max-width: 768px) {
header {
height: auto; /* Fixed height mobile-e thakbe na */
padding: 10px 0;
flex-direction: column; /* Logo niche niche chole ashbe */
text-align: center;
}

.header-flex {
flex-direction: column;
gap: 10px;
}

.logo-area {
flex-direction: column;
align-items: center;
}

.logo-title {
font-size: 18px; /* Mobile-e font ektu choto hobe */
}

.logo-sub {
font-size: 10px;
}

nav ul {
justify-content: center;
gap: 15px;
margin-top: 10px;
}

.hero h1 {
font-size: 32px; /* Hero text ektu choto kora holo */
}
}

footer { background: #111; color: #ccc; padding: 50px 0; text-align: center; margin-top: 50px; }
.social-links a { color: white; margin: 0 10px; text-decoration: none; }