*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Arial,sans-serif;
background:#f4f8fc;
color:#222;
line-height:1.7;
}

.container{
width:90%;
max-width:1200px;
margin:auto;
}

/* TOP BAR */

.topbar{
background:#0f172a;
color:#fff;
padding:8px 0;
font-size:14px;
text-align:center;
}

.topbar .container{
display:flex;
justify-content:center;
gap:20px;
flex-wrap:wrap;
}

/* HEADER */

.header{
background:#fff;
padding:15px 0;
box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.nav{
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:16px;
}

.header .container.nav{
align-items:flex-start;
}

.header .nav > nav{
flex:1 1 auto;
order:2;
display:flex;
align-items:center;
justify-content:center;
gap:4px;
flex-wrap:wrap;
row-gap:14px;
width:100%;
}

.header .nav > .logo{
order:1;
}

.header .nav > .header-cta{
order:3;
margin-top:4px;
}

.logo a{
text-decoration:none;
font-size:32px;
font-weight:700;
}

.prime{
color:#2563eb;
}

.ins{
color:#111827;
}

.uk{
color:#ef4444;
}

nav a{
text-decoration:none;
color:#222;
margin:0 12px;
font-weight:600;
}

.header-cta a{
background:#2563eb;
color:#fff;
padding:10px 20px;
border-radius:8px;
text-decoration:none;
font-weight:600;
}

/* HEADER SEARCH (shared design with style.css) */

.header-search-wrap{
position:relative;
order:5;
flex:1 1 100%;
width:100%;
max-width:820px;
margin:2px auto 0;
}

.header-search{
display:flex;
align-items:stretch;
width:100%;
background:#f8fafc;
border:2px solid #dbe4f0;
border-radius:999px;
box-shadow:0 2px 8px rgba(15,23,42,.05);
transition:border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search:focus-within{
border-color:#2563eb;
background:#fff;
box-shadow:0 8px 24px rgba(37,99,235,.18);
}

.header-search input[type="search"]{
flex:1 1 auto;
width:100%;
height:56px;
padding:0 22px 0 50px;
font-size:16px;
border:none;
background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 20px center;
outline:none;
border-radius:999px 0 0 999px;
}

.header-search input[type="search"]::placeholder{
color:#94a3b8;
}

.header-search button{
display:flex;
align-items:center;
justify-content:center;
gap:8px;
height:50px;
padding:0 30px;
border:none;
background:linear-gradient(135deg,#2563eb,#1d4ed8);
color:#fff;
font-weight:700;
font-size:15px;
border-radius:999px;
margin:3px;
cursor:pointer;
transition:background 0.2s ease, transform 0.15s ease;
}

.header-search button:active{
transform:scale(0.97);
}

.header-search button:hover{
background:#1d4ed8;
}

.search-suggestions{
list-style:none;
margin:0;
padding:0;
position:absolute;
top:calc(100% + 8px);
left:0;
right:0;
background:#fff;
border:1px solid #e2e8f0;
border-radius:14px;
box-shadow:0 12px 28px rgba(15,23,42,.16);
max-height:380px;
overflow-y:auto;
z-index:50;
display:none;
}

.search-suggestions.is-open{
display:block;
}

.search-suggestions li{
border-bottom:1px solid #eef2f7;
}

.search-suggestions li:last-child{
border-bottom:none;
}

.search-suggestions a{
display:block;
padding:12px 18px;
text-decoration:none;
color:#0f172a;
font-size:14px;
}

.search-suggestions a small{
display:block;
color:#64748b;
font-size:12px;
font-weight:400;
margin-top:2px;
}

.search-suggestions a:hover,
.search-suggestions a:focus-visible,
.search-suggestions li.is-active a{
background:#eff6ff;
}

.search-suggestions mark{
background:#dbeafe;
color:#1d4ed8;
border-radius:3px;
padding:0 1px;
}

.search-suggestions .no-results{
padding:14px 18px;
color:#64748b;
font-size:14px;
}

.search-results-banner{
background:#eff6ff;
border:1px solid #dbeafe;
border-radius:10px;
padding:14px 18px;
margin-bottom:24px;
font-size:15px;
}

.search-no-results{
background:#fff;
border:1px solid #e2e8f0;
border-radius:10px;
padding:20px;
}

@media(max-width:900px){
.header-search-wrap{
order:3;
flex:1 1 100%;
max-width:100%;
margin:10px 0 0;
}
}

/* HERO */

.blog-hero{
background:linear-gradient(135deg,#2563eb,#1d4ed8);
color:#fff;
text-align:center;
padding:130px 20px;
}

.blog-hero h1{
font-size:52px;
margin-bottom:20px;
}

.blog-hero p{
font-size:20px;
max-width:850px;
margin:auto;
}

/* SECTIONS */

.section{
padding:80px 20px;
}

.section h2{
text-align:center;
font-size:36px;
margin-bottom:40px;
}

/* ARTICLE CARDS */

.article-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:30px;
}

.article-card{
display:block;
background:#fff;
padding:30px;
border-radius:15px;
box-shadow:0 4px 15px rgba(0,0,0,0.08);
text-decoration:none;
color:#222;
transition:0.3s;
}

.article-card:hover{
transform:translateY(-5px);
}

.article-card h3{
color:#2563eb;
margin-bottom:15px;
}

.article-card p{
color:#555;
}

/* CATEGORIES */

.category-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
gap:25px;
}

.category-card{
background:#fff;
padding:30px;
border-radius:15px;
text-align:center;
box-shadow:0 4px 15px rgba(0,0,0,0.08);
}

.category-card h3{
color:#2563eb;
margin-bottom:12px;
}

/* TRUST BOX */

.trust-box{
background:#fff;
padding:50px;
border-radius:15px;
max-width:900px;
margin:auto;
text-align:center;
box-shadow:0 4px 15px rgba(0,0,0,0.08);
}

/* NEWSLETTER */

.newsletter{
background:#2563eb;
color:#fff;
text-align:center;
padding:80px 20px;
}

.newsletter h2{
margin-bottom:20px;
}

.newsletter p{
margin-bottom:20px;
}

.newsletter input{
width:100%;
max-width:650px;
padding:15px;
border:none;
border-radius:10px;
margin-bottom:15px;
}

.newsletter button{
background:#fff;
color:#2563eb;
border:none;
padding:15px 30px;
border-radius:10px;
font-weight:bold;
cursor:pointer;
}

/* FOOTER */

.footer{
background:#0f172a;
color:#fff;
padding:60px 20px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:30px;
}

.footer a{
color:#fff;
text-decoration:none;
display:block;
margin-top:8px;
}

.footer-bottom{
text-align:center;
margin-top:30px;
}

/* MOBILE */

@media(max-width:768px){

.nav{
flex-direction:column;
gap:15px;
}

.logo a{
font-size:26px;
}

.blog-hero h1{
font-size:38px;
}

.section h2{
font-size:28px;
}

}