*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Poppins',sans-serif;
background:#f5f7fb;
overflow-x:hidden;
}

/* HEADER */

.header{
background:linear-gradient(90deg,#ff4da6,#ff66b3);
padding:10px 0;
position:sticky;
top:0;
z-index:999;
box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.logo{
font-size:28px;
font-weight:700;
color:white !important;
text-decoration:none;
}

/* MENU */

.navbar-nav{
gap:8px;
}

.nav-link{
color:white !important;
padding:12px 15px !important;
font-weight:500;
border-radius:8px;
transition:0.3s;
}

.nav-link:hover{
background:rgba(255,255,255,0.15);
}

/* DROPDOWN */

.custom-dropdown{
position:relative;
}

.dropdown-menu-custom{
display:none;
position:absolute;
top:48px;
left:0;
background:white;
width:250px;
padding:12px;
border-radius:14px;
list-style:none;
box-shadow:0 5px 20px rgba(0,0,0,0.12);
z-index:999;
}

.dropdown-menu-custom li{
margin-bottom:8px;
}

.dropdown-menu-custom a{
display:block;
padding:10px 12px;
color:#333;
text-decoration:none;
border-radius:8px;
transition:0.3s;
}

.dropdown-menu-custom a:hover{
background:#ffe6f2;
color:#ff0080;
}

@media(min-width:992px){

.custom-dropdown:hover .dropdown-menu-custom{
display:block;
}

}

/* MOBILE MENU */

@media(max-width:991px){

.navbar-collapse{
background:white;
padding:20px;
border-radius:15px;
margin-top:15px;
}

.nav-link{
color:#333 !important;
}

.dropdown-menu-custom{
position:relative;
display:block;
width:100%;
top:0;
box-shadow:none;
background:#fff5fa;
margin-bottom:10px;
}

}

/* HERO */

.hero{
padding:80px 20px;
background:white;
text-align:center;
margin-bottom:30px;
}

.hero h1{
font-size:52px;
font-weight:700;
margin-bottom:20px;
}

.hero p{
font-size:18px;
color:#666;
max-width:750px;
margin:auto;
}

/* MAIN LAYOUT */

.main-layout{
display:flex;
gap:25px;
}

/* SIDEBAR */

.sidebar{
width:280px;
}

.sidebar-box{
background:white;
padding:20px;
border-radius:16px;
margin-bottom:25px;
box-shadow:0 2px 10px rgba(0,0,0,0.06);
}

.sidebar-box h3{
font-size:22px;
margin-bottom:15px;
font-weight:600;
}

.sidebar-box ul{
list-style:none;
padding:0;
}

.sidebar-box li{
margin-bottom:12px;
}

.sidebar-box a{
text-decoration:none;
color:#333;
transition:0.3s;
}

.sidebar-box a:hover{
color:#ff0080;
}

/* ADS */

.ad-box{
height:250px;
border:2px dashed #ccc;
display:flex;
align-items:center;
justify-content:center;
border-radius:12px;
background:#f1f1f1;
color:#999;
}

/* CONTENT */

.content{
flex:1;
}

.section-title{
font-size:38px;
font-weight:700;
margin-bottom:35px;
}

/* CARDS */

.calculator-card{
background:white;
padding:30px;
border-radius:18px;
box-shadow:0 5px 18px rgba(0,0,0,0.06);
transition:0.3s;
height:100%;
}

.calculator-card:hover{
transform:translateY(-8px);
}

.calculator-card h3{
font-size:24px;
margin-bottom:15px;
}

.calculator-card p{
color:#666;
margin-bottom:20px;
}

.btn-custom{
background:#ff4da6;
padding:12px 22px;
border-radius:10px;
color:white;
text-decoration:none;
display:inline-block;
transition:0.3s;
}

.btn-custom:hover{
background:#e60073;
color:white;
}

/* FOOTER */

.footer{
margin-top:70px;
background:linear-gradient(90deg,#ff4da6,#ff66b3);
padding:50px 20px;
color:white;
}

.footer a{
color:white;
text-decoration:none;
margin-right:18px;
}

.footer a:hover{
color:#ffe6f2;
}

/* RESPONSIVE */

@media(max-width:992px){

.main-layout{
flex-direction:column;
}

.sidebar{
width:100%;
}

.hero h1{
font-size:36px;
}

.section-title{
font-size:30px;
}

}
/*new*/

/* ===== MOBILE MENU UPGRADE ===== */

@media(max-width:991px){

.navbar-toggler{
background:rgba(255,255,255,0.15);
padding:8px 12px;
border-radius:8px;
}

.navbar-collapse{
position:fixed;
top:0;
left:-320px;
width:320px;
max-width:85%;
height:100vh;
overflow-y:auto;
background:#ff4da6;
padding:20px;
margin-top:0;
border-radius:0;
z-index:9999;
transition:.35s ease;
box-shadow:0 0 30px rgba(0,0,0,.25);
}

.navbar-collapse.show{
left:0;
}

.logo{
font-size:22px;
}

.navbar-nav{
gap:0;
}

.nav-item{
width:100%;
border-bottom:1px solid rgba(255,255,255,.15);
}

.nav-link{
color:#fff !important;
padding:14px 0 !important;
font-size:16px;
font-weight:600;
}

.dropdown-menu-custom{
display:none;
position:static;
width:100%;
background:rgba(255,255,255,.08);
padding:10px;
margin-bottom:10px;
border-radius:10px;
box-shadow:none;
}

.custom-dropdown.active .dropdown-menu-custom{
display:block;
}

.dropdown-menu-custom li{
margin-bottom:4px;
}

.dropdown-menu-custom a{
color:#fff;
padding:10px;
border-radius:8px;
}

.dropdown-menu-custom a:hover{
background:rgba(255,255,255,.15);
color:#fff;
}

.custom-dropdown > .nav-link{
display:flex;
justify-content:space-between;
align-items:center;
}

.custom-dropdown > .nav-link::after{
content:"+";
font-size:18px;
font-weight:bold;
}

.custom-dropdown.active > .nav-link::after{
content:"−";
}

}

/* Overlay */

.mobile-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.45);
opacity:0;
visibility:hidden;
transition:.3s;
z-index:9998;
}

.mobile-overlay.show{
opacity:1;
visibility:visible;
}



/* =====================================
AMAZON STYLE RESPONSIVE MENU
===================================== */

.mobile-toggle{
display:none;
background:none;
border:none;
font-size:28px;
color:#fff;
cursor:pointer;
}

.mobile-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.5);
opacity:0;
visibility:hidden;
transition:.3s;
z-index:99998;
}

.mobile-overlay.active{
opacity:1;
visibility:visible;
}

.mobile-menu{
position:fixed;
top:0;
left:-320px;
width:300px;
height:100vh;
background:#fff;
overflow-y:auto;
transition:.3s;
z-index:99999;
box-shadow:0 0 20px rgba(0,0,0,.25);
padding:15px;
}

.mobile-menu.active{
left:0;
}

.mobile-menu-header{
font-size:22px;
font-weight:700;
padding:15px;
border-bottom:1px solid #eee;
margin-bottom:10px;
}

.mobile-category{
border-bottom:1px solid #eee;
}

.mobile-parent{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px;
font-weight:600;
color:#333;
text-decoration:none;
cursor:pointer;
}

.mobile-parent:hover{
background:#f8f8f8;
}

.mobile-submenu{
display:none;
padding-left:15px;
padding-bottom:10px;
}

.mobile-submenu.show{
display:block;
}

.mobile-submenu a{
display:block;
padding:10px;
text-decoration:none;
color:#555;
border-radius:6px;
}

.mobile-submenu a:hover{
background:#ffe6f2;
color:#ff0080;
}

/* DESKTOP MENU WRAP */

@media(min-width:992px){

.navbar-nav{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:5px;
max-width:100%;
}

.nav-item{
margin:2px;
}

.dropdown-menu-custom{
display:none;
position:absolute;
top:100%;
left:0;
background:#fff;
min-width:280px;
max-width:350px;
max-height:500px;
overflow-y:auto;
padding:12px;
border-radius:14px;
list-style:none;
box-shadow:0 8px 25px rgba(0,0,0,.15);
z-index:99999;
}

.custom-dropdown:hover .dropdown-menu-custom{
display:block;
}

}

/* MOBILE */

@media(max-width:991px){

.navbar-collapse{
display:none !important;
}

.mobile-toggle{
display:block;
}

.logo{
font-size:22px;
}

.hero h1{
font-size:32px;
}

.section-title{
font-size:28px;
}

.main-layout{
flex-direction:column;
}

.sidebar{
width:100%;
}

}