/* ============================================================
   1. RESET & MODERN COLOR PALETTE
============================================================ */
:root {
    --primary: #4f46e5;         /* Indigo */
    --primary-hover: #4338ca;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 28px -4px rgba(79, 70, 229, 0.08);
    --shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.08);
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    padding-top: 72px; /* ফিক্সড হেডারের পেছনে কনটেন্ট ঢোকা আটকাবে */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 640px) {
    body {
        padding-top: 110px; /* মোবাইলে হেডার বড় হলে তার জন্য স্পেস */
    }
}
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button, input, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ============================================================
   BUTTONS & BADGES
============================================================ */
.primary-button, .secondary-button, .danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.primary-button {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
}

.secondary-button {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.secondary-button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.danger-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.danger-button:hover {
    transform: translateY(-2px);
}

.tool-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

/* ============================================================
   2. MODERN HEADER & NAVIGATION
============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    max-width: 155px;
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    font-size: 25px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-fallback span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
}

.main-nav a.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    font-weight: 700;
}

/* ============================================================
   3. HERO & HOMEPAGE (MODERN COLORFUL)
============================================================ */
.hero {
    width: 100%;
    padding: 95px 20px 85px;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(79, 70, 229, 0.08) 0%, rgba(248, 250, 252, 0) 70%), #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: #0f172a;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #0f172a 30%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(17px, 2.5vw, 21px);
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 38px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 180px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.hero-buttons .btn:first-child {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
}

.hero-buttons .btn:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
}

.hero-buttons .btn.secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.hero-buttons .btn.secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.content-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading span {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.8px;
}

/* VIBRANT CATEGORY CARDS */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.category-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: #c7d2fe;
    box-shadow: var(--shadow-md);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 22px;
}

.category-card h3 {
    font-size: 22px;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 12px;
}

.category-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.category-card > span {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.category-card:hover > span {
    transform: translateX(4px);
}

.article-placeholder {
    padding: 60px 24px;
    text-align: center;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.article-placeholder h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.article-placeholder p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ============================================================
   4. ARTICLES & CATEGORIES
============================================================ */
.article-page {
    padding: 60px 0 90px;
}

.article-category-hero {
    text-align: center;
    margin-bottom: 48px;
}

.article-category-hero h1 {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #c7d2fe;
}

.article-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.article-card-body h2 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-card-body h2 a:hover {
    color: var(--primary);
}

.article-card-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #94a3b8;
}

.article-card-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   5. SINGLE ARTICLE
============================================================ */
.single-article-page {
    padding: 60px 0 90px;
    background: #ffffff;
}

.single-article-header {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.single-article-header h1 {
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.22;
    margin: 14px 0 18px;
    color: #0f172a;
}

.single-article-excerpt {
    font-size: clamp(17px, 2.5vw, 19px);
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.single-article-meta {
    font-size: 13px;
    color: #94a3b8;
}

.single-article-featured-image {
    max-width: 880px;
    margin: 0 auto 40px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.single-article-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.85;
    color: #1e293b;
    word-wrap: break-word;
}

.article-back {
    max-width: 760px;
    margin: 50px auto 0;
}

/* ============================================================
   6. ADMIN DASHBOARD & LOGIN
============================================================ */
.admin-page {
    padding: 50px 0;
    min-height: calc(100vh - 150px);
    background: #f8fafc;
}

.admin-login-card {
    max-width: 440px;
    width: 85%;
    margin: 0 auto;
    padding: 36px 28px;
    background: #ffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.admin-login-header h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 22px;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.admin-login-card form {
    text-align: center;
}

.admin-login-card button[type="submit"] {
    display: inline-block;
    margin: 10px auto 0;
}



/* ============================================================
   7. FOOTER (DARK / STYLISH FINISH)
============================================================ */
.site-footer {
    width: 100%;
    background: #ffffff; /* Sophisticated Dark Footer */
    color: #000000;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 65px 20px 45px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-brand p {
    margin-top: 14px;
    color: #000000;
    font-size: 14px;
    line-height: 1.65;
    max-width: 320px;
}

.footer-column h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #000000;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: #000000;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #442fcc;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 20px;
    text-align: center;
    color: #000000;
    font-size: 13px;
}

.footer-bottom a {
    color: #000000;
}

.footer-bottom a:hover {
    color: #442fcc;
}


/* ============================================================
   8. MOBILE RESPONSIVE
============================================================ */
@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 16px;
    }

    .main-nav {
        justify-content: center;
        gap: 10px;
    }

    .main-nav a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .hero {
        padding: 55px 16px 45px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .category-grid, .article-grid {
        grid-template-columns: 1fr;
    }

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

/* ============================================================
   ARTICLE GRID (Fixed 3-Column Layout)
============================================================ */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* সবসময় সর্বোচ্চ ৩ কলামে থাকবে */
    gap: 26px;
    width: 100%;
}

.article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 380px; /* ১টি আর্টিকেল থাকলে তা স্ক্রিন জুড়ে বড় হবে না */
}

.article-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ট্যাবলেট ও মোবাইলে রেসপন্সিভ */
@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    .article-card {
        max-width: 100%;
    }
}

/* ============================================================
   CONTACT US PAGE
============================================================ */
.contact-page {
    padding: 70px 0 90px;
    background: #f8fafc;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 36px;
    align-items: stretch;
}

/* Left Panel - Dark / Elegant */
.contact-info-panel {
    background: #1e293b;
    border-radius: 20px;
    padding: 45px 36px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.contact-info-panel h2 {
    font-size: 32px;
    font-weight: 800;
    color: #5d7cf3;
    margin-bottom: 36px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-icon {
    width: 26px;
    height: 26px;
    color: #5d7cf3;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-text {
    font-size: 16px;
    font-weight: 500;
    color: #cbd5e1;
    word-break: break-all;
}

.contact-text a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.contact-text a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Right Panel - Form Card */
.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 22px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #5d7cf3;
    box-shadow: 0 0 0 3px rgba(93, 124, 243, 0.15);
}

.contact-submit-btn {
    width: 100%;
    min-height: 52px;
    background: #5d7cf3;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(93, 124, 243, 0.35);
    transition: all 0.2s ease;
}

.contact-submit-btn:hover {
    background: #4c6ee6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 124, 243, 0.45);
}

/* Responsive (Mobile & Tablet) */
@media (max-width: 860px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 30px 20px;
    }

    .contact-info-panel {
        padding: 35px 24px;
    }
}

/* ============================================================
   ADMIN DASHBOARD TWO-COLUMN LAYOUT
============================================================ */
.dashboard-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* বামে আর্টিকেল, ডানে মেসেজ সমান ভাগে */
    gap: 30px;
    align-items: start;
}

.admin-scroll-box {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 6px;
}

/* মোবাইলে নিচে নিচে চলে আসবে */
@media (max-width: 900px) {
    .dashboard-columns-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MODERN CATEGORY ICONS & CARDS
============================================================ */
.category-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-icon-box svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}

/* 1. Finance Style (Emerald / Mint Tint) */
.finance-theme .category-icon-box {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.finance-theme:hover .category-icon-box {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

/* 2. Tech Style (Indigo / Violet Tint) */
.tech-theme .category-icon-box {
    background: #eef2ff;
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.tech-theme:hover .category-icon-box {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

/* 3. Tools Style (Amber / Orange Tint) */
.tools-theme .category-icon-box {
    background: #fffbeb;
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.tools-theme:hover .category-icon-box {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

/* Icon hover zoom effect */
.category-card:hover .category-icon-box svg {
    transform: scale(1.1);
}




/* ============================================================
   MODERN TOOLS INDEX PAGE
============================================================ */
.tools-page {
    padding-bottom: 90px;
    background: #f8fafc;
}

.tools-hero {
    padding: 60px 0 35px;
    text-align: center;
}

.tools-hero h1 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0;
}

.tools-hero p {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.tools-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
    margin-top: 20px;
}

.modern-tool-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 30px 26px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(93, 124, 243, 0.4);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.tool-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.tool-icon-wrapper svg {
    width: 26px;
    height: 26px;
}

.modern-tool-card:hover .tool-icon-wrapper {
    transform: scale(1.08);
}

/* আইকন ভেরিয়েন্ট কালার */
.tool-emerald { background: #ecfdf5; color: #10b981; }
.tool-indigo  { background: #eef2ff; color: #6366f1; }
.tool-blue    { background: #eff6ff; color: #3b82f6; }
.tool-amber   { background: #fffbeb; color: #f59e0b; }
.tool-rose    { background: #fff1f2; color: #f43f5e; }

.tool-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.tool-card-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px;
}

.tool-arrow-btn {
    font-size: 13px;
    font-weight: 700;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.modern-tool-card:hover .tool-arrow-btn {
    gap: 8px;
}

@media (max-width: 640px) {
    .modern-tool-card {
        flex-direction: column;
        gap: 16px;
    }
}




/* ============================================================
   TOOL BACK BUTTON / BREADCRUMB
============================================================ */
.tool-back-nav {
    margin-bottom: 24px;
}

.tool-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-back-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.tool-back-link:hover {
    color: #4f46e5;
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateX(-3px);
}

.tool-back-link:hover svg {
    transform: translateX(-2px);
}


/* ============================================================
   ABOUT US PAGE STYLES
============================================================ */
.about-page {
    background: #f8fafc;
    padding-bottom: 90px;
}

.about-hero {
    padding: 70px 0 40px;
    text-align: center;
}

.about-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    max-width: 820px;
    margin: 16px auto 14px;
}

.about-hero p {
    font-size: 17px;
    color: #64748b;
    max-width: 680px;
    line-height: 1.6;
    margin: 0 auto;
}

.about-cards-section {
    padding: 30px 0 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

.about-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 36px 30px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.about-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.about-card-icon svg {
    width: 26px;
    height: 26px;
}

.about-blue { background: #eff6ff; color: #3b82f6; }
.about-purple { background: #f5f3ff; color: #8b5cf6; }
.about-emerald { background: #ecfdf5; color: #10b981; }

.about-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
}

.about-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.about-cta-card {
    background: #1e293b;
    color: #ffffff;
    border-radius: 20px;
    padding: 48px 30px;
    text-align: center;
    margin-top: 20px;
}

.about-cta-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
}

.about-cta-card p {
    color: #94a3b8;
    font-size: 16px;
    margin: 0 0 24px;
}

@media (max-width: 640px) {
    .about-hero h1 {
        font-size: 28px;
    }
}


/* ============================================================
   LEGAL / PRIVACY POLICY PAGE
============================================================ */
.legal-page {
    background: #f8fafc;
    padding-bottom: 80px;
}

.legal-hero {
    padding: 60px 0 30px;
    text-align: center;
}

.legal-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0 8px;
}

.legal-hero p {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.legal-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 45px 40px;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.legal-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 28px 0 12px;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 14px;
}

.legal-card ul {
    margin: 0 0 20px 20px;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.legal-card li {
    margin-bottom: 8px;
}

.legal-card a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.legal-card a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .legal-card {
        padding: 30px 20px;
    }
    .legal-hero h1 {
        font-size: 28px;
    }
}