*{box-sizing:border-box}

body{
margin:0;
font-family:'Poppins',sans-serif;
background:#f4f7fb;
color:#222;
line-height: 1.6;
}

header{
background:linear-gradient(135deg,#0f2027,#203a43,#2c5364);
color:white;
padding:40px 20px;
text-align:center;
}

header h1{
margin:0;
font-size:2.8rem;
font-weight: 700;
}

header p{
margin-top:10px;
opacity:.9;
font-size: 1.1rem;
}

nav {
background: #fff;
padding: 15px 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
text-align: center;
}

nav a {
margin: 0 15px;
text-decoration: none;
color: #333;
font-weight: 500;
transition: color 0.3s;
}

nav a:hover {
color: #2563eb;
}

#counter{
margin-top:12px;
font-size:.9rem;
background: rgba(255,255,255,0.1);
display: inline-block;
padding: 4px 12px;
border-radius: 20px;
}

.search-bar{
max-width:600px;
margin:40px auto 20px auto;
padding:0 20px;
}

.search-bar input{
width:100%;
padding:14px 20px;
border-radius:30px;
border:1px solid #ddd;
font-size:16px;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
outline: none;
transition: border-color 0.3s;
}

.search-bar input:focus {
border-color: #2563eb;
}

.filter-buttons{
text-align:center;
margin:20px 0 30px 0;
}

.filter-buttons button{
margin:5px;
padding:10px 20px;
border:1px solid #2563eb;
border-radius:25px;
background:transparent;
color:#2563eb;
cursor:pointer;
font-size:14px;
font-weight: 500;
transition: all 0.3s;
}

.filter-buttons button:hover, .filter-buttons button.active{
background:#2563eb;
color:white;
}

.container{
max-width:1400px;
margin:auto;
padding:0 30px 50px 30px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:30px;
}

.card{
background:white;
border-radius:20px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,.05);
transition:.3s;
border: 1px solid #eee;
}

.card:hover{
transform:translateY(-8px);
box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.card img{
width:100%;
height:220px;
object-fit:cover;
}

.card-content{
padding:22px;
}

.card h3{
margin:0 0 12px 0;
font-size:1.3rem;
font-weight: 600;
}

.card-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 15px;
}

.card button{
padding:10px 18px;
border:none;
border-radius:10px;
background:#2563eb;
color:white;
cursor:pointer;
font-size:14px;
font-weight: 500;
transition: background 0.3s;
}

.card button:hover {
background: #1e40af;
}

.favorite{
cursor:pointer;
font-size:22px;
color:#ccc;
transition: color 0.3s;
}

.favorite.active{
color:#ef4444;
}

.modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.7);
display:none;
align-items:center;
justify-content:center;
padding:20px;
z-index: 2000;
}

.modal-content{
background:white;
border-radius:20px;
padding:40px;
max-width:650px;
width:100%;
max-height:85vh;
overflow:auto;
position: relative;
}

.modal-content h2{
margin-top:0;
color: #111;
font-size: 1.8rem;
}

.modal-content p {
white-space: pre-line;
color: #444;
font-size: 1.05rem;
}

.close-btn{
margin-top:25px;
padding:12px 24px;
border:none;
background:#2563eb;
color:white;
border-radius:10px;
cursor:pointer;
font-size: 16px;
font-weight: 500;
}

footer{
background: #1f2937;
color: #9ca3af;
text-align:center;
padding:50px 20px;
font-size:14px;
}

footer a {
color: #fff;
text-decoration: none;
margin: 0 10px;
}

footer a:hover {
text-decoration: underline;
}

.policy-links {
margin-bottom: 20px;
}

@media(max-width:600px){
header h1{font-size:2rem}
.container { padding: 0 15px; }
}
