/* ==========================
   CouponEarth Style.css
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

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

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

img{
    max-width:100%;
}

.container{
    width:1200px;
    max-width:95%;
    margin:auto;
}

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

header{
    background:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
    position:sticky;
    top:0;
    z-index:999;
}

.nav{

    height:80px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    font-size:30px;

    font-weight:700;

    color:#2e5bff;

}

.logo i{

    margin-right:10px;

}

.menu{

    list-style:none;

    display:flex;

    gap:35px;

}

.menu a{

    color:#444;

    font-weight:500;

    transition:.3s;

}

.menu a:hover{

    color:#2e5bff;

}

.search{

    display:flex;

    align-items:center;

    overflow:hidden;

    border-radius:30px;

    background:#f1f3f8;

}

.search input{

    width:250px;

    border:none;

    outline:none;

    background:none;

    padding:14px 18px;

}

.search button{

    border:none;

    background:#2e5bff;

    color:#fff;

    width:55px;

    height:50px;

    cursor:pointer;

}

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

.hero{

    background:linear-gradient(135deg,#17326d,#2747b8);

    color:#fff;

    text-align:center;

    padding:90px 20px;

}

.hero h1{

    font-size:55px;

    font-weight:700;

}

.hero span{

    color:#7ddcff;

}

.hero p{

    margin:20px auto;

    max-width:650px;

    opacity:.9;

    font-size:18px;

}

.stats{

    display:inline-flex;

    align-items:center;

    gap:10px;

    margin-top:20px;

    background:rgba(255,255,255,.12);

    padding:14px 28px;

    border-radius:40px;

    backdrop-filter:blur(8px);

}

.stats i{

    color:#4dff88;

}

/* ================= LAYOUT ================= */

.layout{

    display:grid;

    grid-template-columns:300px 1fr;

    gap:30px;

    margin:60px auto;

}

/* ================= SIDEBAR ================= */

.sidebar{

    display:flex;

    flex-direction:column;

    gap:25px;

}

.filter-card,

.about{

    background:#fff;

    border-radius:18px;

    padding:25px;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.filter-card h3,

.about h3{

    margin-bottom:20px;

}

.filter-card label{

    display:block;

    margin:15px 0;

    cursor:pointer;

}

.filter-card input{

    margin-right:8px;

}

.about p{

    color:#666;

    font-size:15px;

}

/* ================= CONTENT ================= */

main h2{

    margin-bottom:25px;

    font-size:32px;

}

/* ================= COUPON CARD ================= */

.coupon-card{

    background:#fff;

    border-radius:18px;

    box-shadow:0 12px 35px rgba(0,0,0,.06);

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:30px;

    margin-bottom:30px;

    transition:.3s;

    border-top:5px solid #2e5bff;

}

.coupon-card:hover{

    transform:translateY(-6px);

    box-shadow:0 20px 45px rgba(0,0,0,.10);

}

.coupon-left{

    width:70%;

}

.coupon-left h3{

    font-size:28px;

    margin:12px 0;

}

.coupon-left p{

    color:#666;

}

.badge{

    display:inline-block;

    color:#fff;

    padding:6px 15px;

    border-radius:25px;

    font-size:13px;

    font-weight:600;

}

.blue{

    background:#2e5bff;

}

.green{

    background:#17c964;

}

.red{

    background:#ff5b5b;

}

.expire{

    margin-top:20px;

    color:#17c964;

    font-size:14px;

}

.coupon-right{

    text-align:center;

}

/* ================= BUTTON ================= */

.coupon-btn{

    background:linear-gradient(135deg,#2e5bff,#5f7dff);

    color:#fff;

    border:none;

    border-radius:12px;

    padding:18px 35px;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

    box-shadow:0 12px 25px rgba(46,91,255,.25);

}

.coupon-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 18px 35px rgba(46,91,255,.35);

}

/* ================= MODAL ================= */

.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.55);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.modal-box{

    width:420px;

    background:#fff;

    border-radius:20px;

    padding:40px;

    text-align:center;

    animation:popup .35s ease;

}

@keyframes popup{

    from{

        transform:scale(.8);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}

#couponCode{

    font-size:34px;

    font-weight:700;

    color:#2e5bff;

    margin:25px 0;

    letter-spacing:3px;

}

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

footer{

    background:#111827;

    color:#fff;

    padding:35px;

    text-align:center;

    margin-top:70px;

}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

.layout{

grid-template-columns:1fr;

}

.menu{

display:none;

}

.search{

display:none;

}

.hero h1{

font-size:40px;

}

.coupon-card{

flex-direction:column;

align-items:flex-start;

gap:20px;

}

.coupon-left{

width:100%;

}

.coupon-btn{

width:100%;

}

}

@media(max-width:576px){

.hero{

padding:70px 20px;

}

.hero h1{

font-size:32px;

}

.stats{

font-size:14px;

padding:10px 18px;

}

.modal-box{

width:90%;

padding:25px;

}

#couponCode{

font-size:26px;

}

}
/* Toast */

.toast{

position:fixed;

right:25px;

bottom:25px;

background:#111;

color:#fff;

padding:15px 22px;

border-radius:10px;

opacity:0;

transform:translateY(20px);

transition:.4s;

z-index:99999;

}

.toast.show{

opacity:1;

transform:translateY(0);

}