/*====================================================
                GOOGLE FONT
====================================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


/*====================================================
                GLOBAL STYLES
====================================================*/

body{

    font-family:'Poppins',sans-serif;

    color:#555;

    background:#ffffff;

    overflow-x:hidden;

}

.section-padding{

    padding:90px 0;

}

.section-tag{

    display:inline-block;

    background:#eaf3ff;

    color:#0d6efd;

    padding:10px 22px;

    border-radius:50px;

    font-size:15px;

    font-weight:600;

    margin-bottom:18px;

}

.section-heading{

    margin-bottom:60px;

}

.section-heading h2{

    font-size:42px;

    font-weight:700;

    color:#111827;

    margin-bottom:20px;

}

.section-heading p{

    font-size:17px;

    color:#666;

    max-width:760px;

    margin:auto;

    line-height:1.8;

}


/*====================================================
                HERO SECTION
====================================================*/

.calculator-hero{

    background:linear-gradient(135deg,#f6fbff,#eef6ff);

    padding:90px 0;

    overflow:hidden;

    padding:140px 100px 0;


}

.hero-content .hero-tag{

    display:inline-block;

    background:#dcebff;

    color:#0d6efd;

    padding:10px 22px;

    border-radius:50px;

    font-weight:600;

    font-size:15px;

    margin-top:50px;

    margin-bottom:22px;

}

.hero-content h1{

    font-size:54px;

    font-weight:800;

    line-height:1.15;

    color:#111827;

    margin-bottom:20px;

}

.hero-content h1 span{

    color:#0d6efd;

}

.hero-content h3{

    color:#0d6efd;

    font-size:24px;

    font-weight:600;

    line-height:1.7;

    margin-bottom:25px;

}

.hero-content p{

    font-size:17px;

    line-height:1.9;

    margin-bottom:18px;

    color:#555;

}



/*====================================================
                BUTTONS
====================================================*/

.hero-buttons{

    margin-top:35px;

}

.btn-primary-custom{

    background:#0d6efd;

    color:#ffffff;

    text-decoration:none;

    padding:14px 34px;

    border-radius:50px;

    display:inline-block;

    font-weight:600;

    transition:.35s;

}

.btn-primary-custom:hover{

    background:#084fc7;

    color:#ffffff;

    transform:translateY(-3px);

}



/*====================================================
                HERO IMAGE
====================================================*/

.hero-image-wrapper{

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

    min-height:520px;

}

.hero-circle{

    width:550px;

    height:550px;

    background:#d9eaff;

    border-radius:50%;

    position:absolute;

}

.hero-image-wrapper img{

    position:relative;

    width:500px;

    height:500px;

    object-fit:cover;

    border-radius:50%;

    border:8px solid rgba(255,255,255,.85);

    box-shadow:0 20px 45px rgba(0,0,0,.15);

    z-index:2;

}



/*====================================================
                ABOUT CALCULATORS
====================================================*/

.calculator-about{

    background:#ffffff;

    padding:120px 100px 80px;

}

.calculator-about .container{

    max-width:1400px;

}

.about-content{

    width:100%;

    text-align:left;

}

.about-content .section-tag{

    display:block;

    width:max-content;

    margin:0 auto 18px;

}

.about-content h2{

    font-size:40px;

    font-weight:700;

    color:#111827;

    text-align:center;

    margin-bottom:55px;

}

.about-content p{

    font-size:18px;

    line-height:1.9;

    color:#555;

    margin-bottom:55px;

}

.about-content p:last-child{

    margin-bottom:0;

}

/*====================================================
            CALCULATOR SECTION
====================================================*/

.calculator-list{

    background:#f8fbff;

    padding:140px 100px 80px;

}

.calculator-card{

    background:#ffffff;

    padding:35px 30px;

    border-radius:22px;

    height:100%;

    text-align:center;

    border:1px solid #edf2f7;

    box-shadow:0 12px 30px rgba(0,0,0,.05);

    transition:.35s;

}

.calculator-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 40px rgba(13,110,253,.12);

}

.calculator-icon{

    width:85px;

    height:85px;

    background:#eaf3ff;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    margin:0 auto 25px;

}

.calculator-icon i{

    color:#0d6efd;

    font-size:34px;

}

.calculator-card h4{

    font-size:23px;

    font-weight:700;

    color:#111827;

    margin-bottom:18px;

}

.calculator-card p{

    font-size:16px;

    line-height:1.8;

    color:#666;

    margin-bottom:28px;

}

/*====================================================
        CALCULATOR HORIZONTAL SLIDER
====================================================*/

.calculator-slider{
    position:relative;
    display:flex;
    align-items:center;
    gap:15px;
    width:100%;
}

.calculator-slider-track{
    display:flex;
    flex-wrap:nowrap;
    gap:24px;
    overflow:hidden;
    width:100%;
    scroll-behavior:smooth;
}

/* Exactly 3 cards visible */
.calculator-slider-track > .col-lg-4{
    flex:0 0 calc((100% - 48px) / 3);
    max-width:calc((100% - 48px) / 3);
}

/* Arrow buttons */

.calculator-arrow{
    width:45px;
    height:45px;
    min-width:45px;
    border:none;
    border-radius:50%;
    background:#0d6efd;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:5;
    transition:.3s;
}

.calculator-arrow:hover{
    background:#0957c7;
    transform:scale(1.05);
}

.calculator-arrow i{
    font-size:18px;
}

/*====================================================
                FINAL CTA SECTION
====================================================*/

.calculator-cta{

    background:#ffffff;

    padding:140px 100px 80px;

}

.cta-box{

    background:linear-gradient(135deg,#0d6efd,#3f8cff);

    border-radius:30px;

    padding:60px;

    color:#ffffff;

    overflow:hidden;

    position:relative;

    box-shadow:0 20px 45px rgba(13,110,253,.25);

}

.cta-box .section-tag{

    background:rgba(255,255,255,.18);

    color:#ffffff;

}

.cta-box h2{

    font-size:42px;

    font-weight:700;

    line-height:1.3;

    color:#ffffff;

    margin-bottom:20px;

}

.cta-box p{

    font-size:17px;

    line-height:1.9;

    color:rgba(255,255,255,.95);

    margin-bottom:25px;

}



/*====================================================
                CTA BUTTONS
====================================================*/

.cta-buttons{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

    margin-top:30px;

}

.cta-buttons .btn-primary-custom{

    background:#ffffff;

    color:#0d6efd;

    border:none;

    padding:14px 34px;

    border-radius:50px;

    font-weight:600;

}

.cta-buttons .btn-primary-custom:hover{

    background:#f1f5ff;

    color:#0d6efd;

    transform:translateY(-3px);

}



/*====================================================
                CTA IMAGE
====================================================*/

.cta-image{

    display:flex;

    justify-content:center;

    align-items:center;

}

.cta-image img{

    width:100%;

    max-width:500px;

    border-radius:25px;

    box-shadow:0 18px 40px rgba(0,0,0,.20);

}



/*====================================================
                FOOTER
====================================================*/

.footer{

    background:#0f172a;

    color:#d1d5db;

    padding:45px 0;

}

.footer h4{

    color:#ffffff;

    font-size:24px;

    font-weight:700;

    margin-bottom:15px;

}

.footer p{

    margin:0;

    line-height:1.8;

    font-size:15px;

}



/*====================================================
            IMAGE HOVER EFFECTS
====================================================*/

.hero-image-wrapper img,

.about-image img,

.cta-image img{

    transition:transform .4s ease,
               box-shadow .4s ease;

}

.hero-image-wrapper img:hover,

.about-image img:hover,

.cta-image img:hover{

    transform:scale(1.03);

    box-shadow:0 20px 45px rgba(0,0,0,.18);

}



/*====================================================
                LINKS
====================================================*/

a{

    transition:.3s ease;

}

a:hover{

    text-decoration:none;

}



/*====================================================
                RESPONSIVE
====================================================*/

@media(max-width:991px){

.hero-content{

    text-align:center;

}

.hero-image-wrapper{

    margin-top:50px;

    min-height:380px;

}

.hero-circle{

    width:380px;

    height:380px;

}

.hero-image-wrapper img{

    width:330px;

    height:330px;

}

.about-content{

    margin-top:25px;

    text-align:center;

}

.calculator-card{

    padding:30px 24px;

}

.calculator-icon{

    width:75px;

    height:75px;

}

.calculator-icon i{

    font-size:30px;

}

.cta-box{

    text-align:center;

    padding:45px 35px;

}

.cta-buttons{

    justify-content:center;

}

.cta-image{

    margin-top:40px;

}

.footer{

    text-align:center;

}

.footer .text-lg-end{

    text-align:center !important;

    margin-top:20px;

}

}



@media(max-width:576px){

.section-padding{

    padding:70px 0;

}

.section-heading h2{

    font-size:30px;

}

.hero-content h1{

    font-size:38px;

}

.hero-content h3{

    font-size:20px;

}

.hero-content p,

.about-content p{

    font-size:15px;

}

/*====================================================
        MOBILE HERO IMAGE
====================================================*/

.hero-image-wrapper{
    min-height:220px;
    margin-top:25px;
    padding:0;
}

.hero-circle{
    width:220px;
    height:220px;
}

.hero-image-wrapper img{
    width:190px;
    height:190px;
    object-fit:cover;
    border-radius:50%;
    border:6px solid rgba(255,255,255,.9);
}

.btn-primary-custom{

    width:100%;

    text-align:center;

}

.calculator-card{

    padding:28px 22px;

}

.calculator-card h4{

    font-size:21px;

}

.calculator-card p{

    font-size:15px;

}

.cta-box{

    padding:35px 25px;

}

.cta-box h2{

    font-size:30px;

}

.cta-box p{

    font-size:15px;

}

.cta-buttons .btn-primary-custom{

    width:100%;

}

.about-image img,

.cta-image img{

    border-radius:20px;

}

}

/*====================================================
        MOBILE CALCULATOR SLIDER FIX
        ONLY FOR MOBILE VIEW
====================================================*/

@media (max-width: 576px){

    /* Show ONLY ONE calculator card at a time */
    .calculator-slider-track{
        width:100%;
        overflow:hidden;
        display:flex;
        flex-wrap:nowrap;
        gap:20px;
        scroll-behavior:smooth;
        scroll-snap-type:x mandatory;
    }

    /* Each calculator takes the complete mobile width */
    .calculator-slider-track > .col-lg-4{
        flex:0 0 100%;
        max-width:100%;
        width:100%;
        min-width:100%;
        scroll-snap-align:start;
    }

    /* Keep the card properly inside the mobile screen */
    .calculator-card{
        width:100%;
        max-width:100%;
        box-sizing:border-box;
    }

    /* Keep arrows usable on mobile */
    .calculator-slider{
        width:100%;
        display:flex;
        align-items:center;
        gap:10px;
    }

    .calculator-arrow{
        width:42px;
        height:42px;
        min-width:42px;
        flex:0 0 42px;
    }

    .calculator-arrow i{
        font-size:16px;
    }

}