*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: "Segoe UI", sans-serif;
}

body{
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 60%, #f3f7ff 100%);
  color:#111827;
  overflow-x:hidden;
}

/* ================= NAVBAR ================= */
.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 50px;
  position:sticky;
  top:0;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom:1px solid #e5e7eb;
  z-index:10;
}

.logo{
  font-weight:700;
  font-size:20px;
  color:#2563eb;
}

nav a{
  margin:0 14px;
  text-decoration:none;
  color:#374151;
  font-weight:500;
  transition:0.2s;
}

nav a:hover{
  color:#2563eb;
}

.btn{
  background:#2563eb;
  color:white;
  padding:8px 14px;
  border-radius:8px;
  cursor:pointer;
}

/* ================= HERO ================= */
.hero{
  text-align:center;
  padding:80px 20px;
}

.hero h1{
  font-size:42px;
  color:#111827;
}

.hero p{
  color:#6b7280;
  margin-top:10px;
}

/* stats */
.stats{
  display:flex;
  justify-content:center;
  gap:25px;
  margin:25px 0;
  color:#6b7280;
  font-weight:500;
}

/* ================= SEARCH ================= */
.search{
  margin-top:25px;
}

.search input{
  width:340px;
  padding:14px;
  border-radius:10px;
  border:1px solid #d1d5db;
  outline:none;
  background:white;
}

.search input:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,0.15);
}

.search button{
  padding:14px 18px;
  border:none;
  background:#2563eb;
  color:white;
  border-radius:10px;
  cursor:pointer;
}

/* ================= LIVE SEARCH RESULTS ================= */

.search{
  margin-top:25px;
  position:relative;
  display:inline-block;
}

#searchResults{

display:none;
position:absolute;
top:100%;
left:0;
right:0;
background:#fff;
border:1px solid #e5e7eb;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,.12);
margin-top:8px;
overflow:hidden;
z-index:999;
text-align:left;

}

#searchResults a{

display:block;
padding:15px 18px;
text-decoration:none;
color:#111827;
border-bottom:1px solid #f1f5f9;
transition:.25s;

}

#searchResults a:last-child{

border-bottom:none;

}

#searchResults a:hover{

background:#f8fbff;

}

#searchResults strong{

display:block;
font-size:15px;

}

#searchResults small{

display:block;
margin-top:4px;
font-size:13px;
color:#6b7280;

}

.no-result{

padding:16px;
color:#6b7280;

}

/* ================= CARDS ================= */
.cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  padding:60px;
}

.card{
  background:white;
  border:1px solid #e5e7eb;
  padding:25px;
  border-radius:18px;
  transition:0.3s;
  box-shadow:0 10px 30px rgba(0,0,0,0.04);
  text-decoration:none;
  color:#111827;
}

.card:hover{
  transform:translateY(-8px);
  border-color:#2563eb;
  box-shadow:0 15px 40px rgba(37,99,235,0.15);
}

.flag{
  font-size:30px;
}

.card h2{
  margin-top:10px;
}

.card p{
  font-size:14px;
  color:#6b7280;
  margin:10px 0;
}

.card ul{
  list-style:none;
  font-size:13px;
  color:#6b7280;
}

.card button{
  margin-top:15px;
  padding:10px 14px;
  border:none;
  background:#2563eb;
  color:white;
  border-radius:8px;
  cursor:pointer;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){
  .cards{grid-template-columns:repeat(2,1fr);}
  .stats{flex-direction:column;}
}

@media(max-width:500px){
  .cards{grid-template-columns:1fr;}
  .search input{width:100%;}
  .navbar{flex-direction:column; gap:10px;}
}

.top-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.flag img{
  width:26px;
  height:18px;
  object-fit:cover;
  border-radius:3px;
  display:block;
}

.footer{
  background:#f9fafb;
  border-top:1px solid #e5e7eb;
  margin-top:60px;
  padding:40px 20px 20px 20px;
}

.footer-container{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  max-width:1200px;
  margin:auto;
}

.footer-box h3{
  color:#2563eb;
  margin-bottom:10px;
}

.footer-box h4{
  margin-bottom:10px;
  color:#111827;
}

.footer-box p{
  color:#6b7280;
  font-size:14px;
  line-height:1.6;
}

.footer-box a{
  display:block;
  color:#6b7280;
  text-decoration:none;
  margin:5px 0;
  font-size:14px;
}

.footer-box a:hover{
  color:#2563eb;
}

.footer-bottom{
  text-align:center;
  margin-top:30px;
  font-size:13px;
  color:#9ca3af;
}

/* responsive */
@media(max-width:900px){
  .footer-container{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:500px){
  .footer-container{
    grid-template-columns:1fr;
  }
}

.footer-links{
    margin-bottom:15px;
}

.footer-links a{
    color:#6b7280;
    text-decoration:none;
    margin:0 8px;
    font-size:14px;
    transition:.3s;
}

.footer-links a:hover{
    color:#2563eb;
}

.footer-links span{
    color:#9ca3af;
}

.footer-bottom{
    text-align:center;
    border-top:1px solid #e5e7eb;
    margin-top:30px;
    padding-top:20px;
}

.footer-bottom p{
    margin:6px 0;
    color:#6b7280;
    font-size:14px;
}

.card button:hover,
.search button:hover,
.btn:hover{
    background:#1d4ed8;
}

/* ==========================================================
   COUNTRY HUB COMPONENTS
   Reusable Across All Country Pages
========================================================== */

.section-header{
    max-width:900px;
    margin:70px auto 25px;
    text-align:center;
    padding:0 20px;
}

.section-header h2{
    font-size:34px;
    font-weight:700;
    color:#111827;
    margin-bottom:12px;
    line-height:1.3;
}

.section-header p{
    font-size:16px;
    color:#6b7280;
    line-height:1.8;
    max-width:760px;
    margin:auto;
}

.category-tabs{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
    margin:35px auto 45px;
    padding:0 20px;
}

.category-tabs a{
    display:inline-block;
    padding:11px 18px;
    border-radius:999px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    color:#374151;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.3s;
}

.category-tabs a:hover{
    background:#2563eb;
    color:#ffffff;
    border-color:#2563eb;
}

.category-tabs a.active{
    background:#2563eb;
    color:#ffffff;
    border-color:#2563eb;
}

.category-tabs span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 20px;
    border-radius:999px;
    background:#fff;
    border:1px solid #e5e7eb;
    color:#374151;
    font-weight:600;
    cursor:default;
    transition:all .3s ease;
}

.category-tabs span:hover{
    transform:translateY(-2px);
}

.category-tabs span.active{
    background:#2563eb;
    color:#fff;
    border-color:#2563eb;
}

/*==================================================
 GOOGLE STYLE COUNTRY SEARCH
==================================================*/

.search{
display:flex;
justify-content:center;
margin-top:35px;
}

.search-wrapper{
position:relative;
width:100%;
max-width:700px;
}

.search input{

width:100%;
height:58px;

padding:0 150px 0 24px;

font-size:17px;
font-weight:500;

border:1px solid #dcdcdc;
border-radius:50px;

outline:none;
background:#fff;

transition:.25s;

box-shadow:0 2px 8px rgba(0,0,0,.06);

}

.search input:focus{

border-color:#4285F4;

box-shadow:
0 0 0 4px rgba(66,133,244,.15),
0 6px 22px rgba(0,0,0,.10);

}

.search button{

position:absolute;

right:7px;
top:7px;

height:44px;
padding:0 24px;

border:none;

border-radius:40px;

cursor:pointer;

font-size:15px;
font-weight:600;

background:#4285F4;
color:#fff;

transition:.25s;

}

.search button:hover{

transform:translateY(-1px);

background:#2d73e0;

}

.country-suggestions{

position:absolute;

top:66px;
left:0;

width:100%;

background:#fff;

border-radius:18px;

box-shadow:
0 12px 35px rgba(0,0,0,.12);

overflow:hidden;

display:none;

z-index:999;

border:1px solid #ececec;

max-height:320px;

overflow-y:auto;

}

.country-item{

display:flex;

align-items:center;

gap:14px;

padding:14px 20px;

cursor:pointer;

transition:.18s;

font-size:16px;

}

.country-item:hover{

background:#f5f9ff;

}

.country-item.active{

background:#eef5ff;

}

.country-flag{

font-size:24px;

width:32px;

text-align:center;

}

.country-name{

font-weight:600;

color:#222;

}

.country-url{

margin-left:auto;

font-size:13px;

color:#777;

}

.no-result{

padding:18px;

text-align:center;

color:#777;

font-size:15px;

}

@media(max-width:768px){

.search-wrapper{

max-width:100%;

}

.search input{

height:54px;

padding:0 120px 0 18px;

font-size:15px;

}

.search button{

height:40px;

padding:0 18px;

font-size:14px;

}

.country-item{

padding:12px 16px;

}

}
