/* =========================================================
   SMARTTOOLS PRO — TOOLS PAGE
   Premium, clean category separation
   Functionality untouched
========================================================= */

*{box-sizing:border-box}

body{
    margin:0;
    font-family:Arial,"Noto Sans Bengali",sans-serif;
    background:#f8fafc;
    color:#0f172a;
}

.container{
    width:min(1180px,92%);
    margin-inline:auto;
}

.tools-banner{
    padding:54px 0;
    background:linear-gradient(135deg,#0f172a,#1d4ed8);
    color:#fff;
    text-align:center;
}

.tools-banner h1{margin:0 0 12px;font-size:36px}
.tools-banner p{margin:0;color:#dbeafe;font-size:17px}

.tools-section{
    padding:42px 0 46px;
    background:#f8fafc;
}

.section-heading {
    display: flex !important;
    flex-direction: column !important; /* এটি লেখাদুটিকে ওপর-নিচে নিয়ে আসবে */
    align-items: center !important;    /* এটি দুটাকেই একদম মাঝখানে (Center) লক করবে */
    text-align: center !important;
    margin: 0 auto 30px;
    width: 100%;
}

.section-heading h2 {
    margin: 0 0 8px 0 !important;
    font-size: 28px;
    line-height: 1.3;
}

.section-heading p {
    margin: 0 !important;
    color: #64748b;
}


.tool-category-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}

.tool-category-card,
.tool-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:14px;
    text-decoration:none;
    color:inherit;
    box-shadow:0 4px 14px rgba(15,23,42,.06);
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.tool-category-card{
    padding:22px;
}

.tool-category-card:hover,
.tool-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 24px rgba(15,23,42,.11);
    border-color:#93c5fd;
}

.tool-category-icon,
.tool-icon{
    font-size:32px;
    margin-bottom:10px;
}

.tool-category-card h3,
.tool-card h3{
    margin:0 0 7px;
}

.tool-category-card p,
.tool-card p{
    margin:0;
    color:#64748b;
    font-size:14px;
}

.tool-category-card span,
.tool-card span{
    display:inline-block;
    margin-top:14px;
    color:#2563eb;
    font-weight:700;
    font-size:14px;
}

/* =========================================================
   EACH TOOL CATEGORY = INDEPENDENT FULL-WIDTH SECTION
   ========================================================= */

.tool-list-section{
    position:relative;
    display:block;
    width:100%;
    margin:0 !important;
    padding:58px 0 62px !important;
    border-top:1px solid #dbe5f0;
    clear:both;
    isolation:isolate;
    overflow:visible;
}

/* Explicit backgrounds — no nth-of-type dependency */
#image-tools{background:#ffffff}
#pdf-tools{background:#f1f7ff}
#calculator-tools{background:#ffffff}
#document-tools{background:#f1f7ff}
#qr-tools{background:#ffffff}
#converter-tools{background:#f1f7ff}
#date-time-tools{background:#ffffff}
#more-tools{background:#f1f7ff}

.tool-list-section .container{
    position:relative;
    display:block;
    width:min(1180px,92%);
    margin-inline:auto;
    clear:both;
}

.tool-list-section .section-heading{
    position:relative;
    display:block;
    width:100%;
    margin:0 auto 30px;
    padding:0 10px;
}

.tool-list-section .section-heading h2{
    font-size:27px;
    font-weight:800;
    color:#0f172a;
}

.tool-list-section .section-heading p{
    font-size:15px;
}

.tool-grid{
    position:relative;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    align-items:stretch;
    width:100%;
    clear:both;
}

.tool-card{
    position:relative;
    display:flex;
    gap:14px;
    align-items:flex-start;
    width:100%;
    min-width:0;
    min-height:118px;
    height:100%;
    padding:18px;
}

.tool-card .tool-icon{
    flex:0 0 auto;
    margin:0;
    font-size:30px;
    line-height:1.1;
}

.tool-card h3{
    font-size:17px;
    line-height:1.35;
}

.tool-card p{
    line-height:1.55;
}

.tool-card span{
    margin-top:12px;
}

/* Strong visual separation between categories */
.tool-list-section + .tool-list-section{
    border-top:8px solid #e2e8f0;
}

/* Notice stays visually separate */
.tools-notice-section{
    padding:42px 0 50px;
    background:#f8fafc;
}

.tools-notice{
    padding:24px;
    border:1px solid #fde68a;
    border-radius:14px;
    background:#fff7ed;
}

/* Responsive */
@media(max-width:950px){
    .tool-category-grid,
    .tool-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:700px){
    .tool-category-grid,
    .tool-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .tools-banner h1{font-size:28px}

    .tool-list-section{
        padding:46px 0 50px !important;
    }
}

@media(max-width:480px){
    .tool-category-grid,
    .tool-grid{
        grid-template-columns:1fr;
    }

    .tool-list-section{
        padding:38px 0 42px !important;
        border-top-width:1px;
    }

    .tool-list-section + .tool-list-section{
        border-top-width:6px;
    }

    .tool-card{
        min-height:0;
        padding:16px;
    }

    .tool-list-section .section-heading h2{
        font-size:24px;
    }
}
