/* ================================
RESET + BASE
================================ */

*{
box-sizing:border-box;
}

body{
margin:0;
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
background:#f6f8fb;
color:#111;
line-height:1.5;
padding-bottom:70px;
}

a{
text-decoration:none;
color:inherit;
}

/* ================================
MASTER CONTAINER (CRITICAL)
================================ */

.container{
max-width:1100px;
margin:auto;
padding:0 16px;
}

/* ================================
TOP NAVIGATION
================================ */

.nav-bar{
background:#fff;
border-bottom:1px solid #e9edf3;
position:sticky;
top:0;
z-index:1000;
box-shadow:0 2px 10px rgba(0,0,0,0.04);
}


.nav-container{
display:flex;
align-items:center;
justify-content:space-between;
height:60px;
}

.logo{
font-weight:800;
font-size:24px;
letter-spacing:-0.5px;
background:linear-gradient(90deg,#2563eb,#9333ea);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
text-shadow:0 1px 1px rgba(0,0,0,0.05);
}

.logo:hover{
opacity:0.9;
}

.nav-links{
display:none;
gap:28px;
}

.nav-links a{
font-size:14px;
font-weight:500;
color:#333;
}

.nav-menu{
font-size:22px;
cursor:pointer;
}

/* ================================
SEARCH SECTION
================================ */

.search-wrapper{
border-bottom:1px solid #e9edf3;
padding:10px 0 18px;
background:#ffffff;
}

.search-bar{
width:100%;
}

.search-bar input{
width:100%;
padding:14px 20px;
border-radius:28px;
border:1px solid #dfe5ec;
background:#fff;
font-size:15px;
outline:none;
transition:.2s;
box-shadow:0 4px 12px rgba(0,0,0,0.04);

}

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

/* ================================
HERO SECTION
================================ */

.hero{
background:#ffffff;
padding:20px 0 30px;
border-bottom:1px solid #eef1f6;
}

.hero h1{
font-size:30px;
margin-bottom:10px;
font-weight:700;
letter-spacing:-0.5px;
}

.hero p{
font-size:16px;
color:#666;
max-width:600px;
}

/* ================================
CARDS GRID
================================ */

.cards{
display:grid;
grid-template-columns:1fr;
gap:18px;
padding:30px 0;
background:#f6f8fb;
padding-top:40px;
border-top-left-radius:24px;
border-top-right-radius:24px;
background:#f6f8fb;
padding-top:50px;
padding-bottom:40px;
}

.card{
background:#fff;
padding:22px;
border-radius:18px;
box-shadow:0 6px 18px rgba(0,0,0,.05);
transition:.2s ease;
}

.card:hover{
transform:translateY(-3px);
}

.card h3{
margin-top:0;
margin-bottom:8px;
font-size:18px;
}

.card p{
font-size:15px;
color:#666;
}

.section-title{
font-size:20px;
margin:0 0 18px 0;
font-weight:600;
margin-left:30px;
}

/* ================================
ARTICLE PAGE
================================ */

.article{
padding:40px 0;
background:#fff;
}

.article h1{
font-size:28px;
margin-bottom:10px;
}

.meta{
color:#777;
font-size:14px;
margin-bottom:20px;
}

.article h2{
margin-top:30px;
font-size:22px;
}

.article p{
font-size:16px;
color:#333;
line-height:1.7;
margin-bottom:16px;
}

/* ================================
ADS BLOCK
================================ */

.adbox{
background:#eef1f6;
padding:22px;
border-radius:16px;
margin:30px 0;
text-align:center;
color:#555;
}

/* ================================
BOTTOM MOBILE NAV
================================ */

.bottom-nav{
position:fixed;
bottom:0;
width:100%;
background:#fff;
border-top:1px solid #e9edf3;
display:flex;
justify-content:space-around;
padding:12px 0;
z-index:1000;
box-shadow:0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav a{
font-size:13px;
color:#444;
}


.top-categories{
display:flex;
gap:18px;
padding:10px 16px;
font-size:14px;
background:#fff;
border-top:1px solid #eee;
border-bottom:1px solid #eee;
overflow-x:auto;
}

.top-categories a{
text-decoration:none;
color:#444;
font-weight:500;
white-space:nowrap;
}

.top-categories a:hover{
color:#2563eb;
}
/* ================================
DESKTOP RESPONSIVE
================================ */

@media(min-width:992px){

.nav-links{
display:flex;
}

.nav-menu{
display:none;
}

.search-wrapper{
padding:30px 0 40px;
}

.search-bar{
max-width:700px;
margin:auto;
}

.hero{
padding:80px 0 40px;
}

.hero h1{
font-size:36px;
}

.cards{
grid-template-columns:repeat(3,1fr);
}

.bottom-nav{
display:none;
}

}

/* ===== HEADER ===== */

.main-header{
background:#fff;
border-bottom:1px solid #eee;
position:sticky;
top:0;
z-index:1000;
}

.nav-flex{
display:flex;
align-items:center;
justify-content:space-between;
height:60px;
}

.logo{
font-weight:800;
font-size:20px;
background:linear-gradient(90deg,#2563eb,#9333ea);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}

/* Desktop Navigation */

.desktop-nav{
display:flex;
gap:28px;
}

.desktop-nav a{
text-decoration:none;
color:#444;
font-weight:500;
font-size:15px;
}

.desktop-nav a:hover{
color:#2563eb;
}

/* Mobile Menu Icon */

.menu-icon{
display:none;
font-size:22px;
cursor:pointer;
}

/* Responsive */

@media(max-width:768px){

.desktop-nav{
display:none;
}

.menu-icon{
display:block;
}

}

/* CATEGORY PILLS */
/* CATEGORY PILLS GRID */

/* ===== PROFESSIONAL CATEGORY SECTION ===== */

.category-pills{
background:#f8fafc;
padding:25px 0 20px;
border-top:1px solid #eee;
border-bottom:1px solid #eee;
}

.pill-wrap{
display:flex;
flex-wrap:wrap;
gap:12px;
}

.pill{
text-decoration:none;
padding:8px 16px;
border-radius:30px;
background:#fff;
font-size:14px;
font-weight:500;
color:#444;
border:1px solid #e5e7eb;
box-shadow:0 2px 6px rgba(0,0,0,0.04);
transition:0.2s ease;
}

.pill:hover{
background:#2563eb;
color:#fff;
border-color:#2563eb;
}

/* ===== GLOBAL CONTENT ALIGNMENT FIX ===== */

.container{
max-width:1100px;
margin:auto;
padding:0 1px;
}

/* Hero section alignment */
.hero{
padding:40px 16px 30px;
}

/* Category section alignment */
.category-pills{
padding:20px 0;
}

.pill-wrap{
max-width:1100px;
margin:auto;
padding:0 16px;
}

/* Section titles alignment */
.section-title{
max-width:1100px;
margin:30px auto 15px;
padding:0 16px;
font-size:22px;
font-weight:600;
}

/* Cards alignment */
.cards{
max-width:1100px;
margin:auto;
padding:0 16px;
}

/* Remove extra spacing */
h1,h2,h3,p{
margin-left:0;
margin-right:0;
}


/* ===== FOOTER ===== */

.site-footer{
background:#111827;
color:#e5e7eb;
margin-top:50px;
}

.footer-grid{
display:grid;
grid-template-columns:1fr;
gap:30px;
padding:40px 16px;
}

.footer-logo{
font-size:20px;
font-weight:700;
margin-bottom:10px;
}

.footer-text{
font-size:14px;
color:#9ca3af;
}

.site-footer h4{
margin-bottom:10px;
font-size:15px;
}

.site-footer ul{
list-style:none;
padding:0;
margin:0;
}

.site-footer li{
margin-bottom:8px;
}

.site-footer a{
color:#9ca3af;
text-decoration:none;
font-size:14px;
}

.site-footer a:hover{
color:#fff;
}

.footer-bottom{
border-top:1px solid #374151;
text-align:center;
padding:14px;
font-size:13px;
color:#9ca3af;
}

/* Desktop */

@media(min-width:768px){
.footer-grid{
grid-template-columns:2fr 1fr 1fr;
}
}

/* ===== Sticky Bottom Navbar ===== */

.bottom-nav{
position:fixed;
bottom:0;
left:0;
width:100%;
background:#ffffff;
border-top:1px solid #e5e7eb;
display:flex;
justify-content:space-around;
padding:10px 0;
z-index:999;
}

.bottom-nav a{
text-decoration:none;
color:#374151;
font-size:13px;
font-weight:500;
}

/* Hide bottom nav on desktop */

@media(min-width:768px){
.bottom-nav{
display:none;
}
}

/* Prevent footer overlap */

body{
padding-bottom:70px;
}




.section{
padding:40px 0;
}

.section-title{
font-size:22px;
font-weight:700;
margin-bottom:20px;
}

.cards{
display:flex;
flex-direction:column;
gap:16px;
}

/* ===== MOBILE BOTTOM NAVBAR ===== */

.mobile-nav{
position:fixed;
bottom:0;
left:0;
right:0;
height:60px;
background:#ffffff;
border-top:1px solid #e5e7eb;
display:flex;
justify-content:space-around;
align-items:center;
z-index:9999;
}

.mobile-nav a{
text-decoration:none;
color:#444;
font-size:13px;
display:flex;
flex-direction:column;
align-items:center;
}

.mobile-nav a span{
font-size:12px;
margin-top:3px;
}

body{
padding-bottom:70px;
}

/* Hide on desktop */

@media(min-width:768px){
.mobile-nav{
display:none;
}
}

/* ===== FOOTER ===== */

.footer{
background:#0f172a;
color:#cbd5e1;
padding:50px 0 80px;
margin-top:60px;
}

.footer-grid{
display:grid;
grid-template-columns:1fr;
gap:30px;
}

.footer h3{
color:#fff;
margin-bottom:10px;
}

.footer h4{
color:#fff;
margin-bottom:10px;
}

.footer ul{
list-style:none;
padding:0;
}

.footer li{
margin-bottom:8px;
}

.footer a{
color:#cbd5e1;
text-decoration:none;
}

.footer a:hover{
color:#fff;
}

.copyright{
text-align:center;
margin-top:30px;
font-size:13px;
opacity:0.7;
}

@media(min-width:768px){
.footer-grid{
grid-template-columns:repeat(3,1fr);
}
}

/* HEADER */

.main-header{
background:#fff;
border-bottom:1px solid #eee;
position:sticky;
top:0;
z-index:999;
}

.nav-flex{
display:flex;
align-items:center;
justify-content:space-between;
padding:14px 18px;
}

/* LOGO */
.logo{
font-size:22px;
font-weight:800;
background:linear-gradient(45deg,#2563eb,#9333ea);
-webkit-background-clip:text;
color:transparent;
}

/* DESKTOP NAV */
.desktop-nav{
display:none;
gap:22px;
}

.desktop-nav a{
text-decoration:none;
color:#333;
font-weight:500;
}

/* HAMBURGER */
.menu-icon{
font-size:26px;
cursor:pointer;
padding:6px 8px;
}

/* MOBILE MENU */
.mobile-menu{
display:none;
background:#fff;
border-top:1px solid #eee;
padding:10px 18px;
}

.mobile-menu a{
display:block;
padding:12px 0;
text-decoration:none;
color:#333;
}

/* SEARCH BAR */

.search-wrapper{
background:#fff;
padding:12px 10px 18px;
}

.search-bar input{
width:100%;
padding:16px 20px;
border-radius:40px;
border:1px solid #e5e7eb;
background:#f9fafb;
box-shadow:0 4px 10px rgba(0,0,0,0.04);
outline:none;
font-size:15px;
}

/* DESKTOP */

@media(min-width:768px){

.desktop-nav{
display:flex;
}

.menu-icon{
display:none;
}

}

.hero{
padding:30px 18px;
}

.hero h1{
font-size:28px;
font-weight:700;
margin-bottom:10px;
}

.hero p{
color:#666;
margin-bottom:20px;
}

.hero-btn{
display:inline-block;
background:#2563eb;
color:#fff;
padding:12px 20px;
border-radius:30px;
text-decoration:none;
font-weight:600;
}
.section-title{
font-size:22px;
font-weight:700;
margin:30px 18px 20px;
}

.card{
background:#fff;
border-radius:18px;
padding:20px;
margin:12px 18px;
box-shadow:0 4px 12px rgba(0,0,0,0.05);
}

.card h3{
margin-bottom:6px;
}

.card p{
color:#666;
}



.ad-box{
background:#f1f5f9;
padding:40px;
text-align:center;
border-radius:14px;
margin:20px 18px;
color:#999;
}