:root {
    --primary-color: #0088CC;
    --primary-hover: #0077b3;
    --bg-color: #F0F8FF;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --border-color: #E2E8F0;
    
    /* Icon background colors */
    --icon-bg-blue: #E6F3FF;
    --icon-color-blue: #0088CC;
    
    --icon-bg-green: #E6F8ED;
    --icon-color-green: #00A651;
    
    --icon-bg-purple: #F0E6FF;
    --icon-color-purple: #8C52FF;
    
    --icon-bg-red: #FFE6E6;
    --icon-color-red: #FF3B30;
    
    --icon-bg-yellow: #FFF5E6;
    --icon-color-yellow: #FFA500;
    
    --icon-bg-pink: #FFE6F2;
    --icon-color-pink: #FF1493;

    --badge-bg: #FF6B00;
    --badge-color: #ffffff;
    
    --font-family: 'Noto Sans Bengali', sans-serif;
    --container-max-width: 1140px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-brand {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-title span {
    display: block;
    color: var(--primary-color);
    font-size: 44px;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: normal;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

/* Search Box */
.search-container {
    max-width: 650px;
    margin: 0 auto 20px;
}

.search-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.1);
    border-color: var(--primary-color);
}

.search-icon {
    color: var(--primary-color);
    font-size: 18px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--text-dark);
}

.search-box input::placeholder {
    color: #a0a0a0;
}

/* Badge */
.badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.badge {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Green Active Pulse Dot Effect */
.pulse-dot-green {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
    margin-right: 6px;
    flex-shrink: 0;
}

.pulse-dot-green::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: pulseRingGreen 1.6s infinite ease-out;
}

@keyframes pulseRingGreen {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Services Section */
.services-section {
    padding-bottom: 80px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.tab {
    padding: 15px 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: color 0.3s ease;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.category-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.category-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    background-color: #f0f8ff;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.1);
    border-color: #38bdf8;
}

.hidden-card {
    display: none;
}

.card-badge.new {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--badge-bg);
    color: var(--badge-color);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-icon {
    transform: scale(1.15);
}

/* Icon Colors */
.card-icon.blue-light {
    background-color: var(--icon-bg-blue);
    color: var(--icon-color-blue);
}
.card-icon.green-light {
    background-color: var(--icon-bg-green);
    color: var(--icon-color-green);
}
.card-icon.purple-light {
    background-color: var(--icon-bg-purple);
    color: var(--icon-color-purple);
}
.card-icon.red-light {
    background-color: var(--icon-bg-red);
    color: var(--icon-color-red);
}
.card-icon.yellow-light {
    background-color: var(--icon-bg-yellow);
    color: var(--icon-color-yellow);
}
.card-icon.pink-light {
    background-color: var(--icon-bg-pink);
    color: var(--icon-color-pink);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Load More Button */
.load-more-container {
    text-align: center;
}

.btn-load-more {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-color);
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.disclaimer {
    background-color: #F8F9FA;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.disclaimer p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.disclaimer strong {
    color: #D32F2F;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 42px;
        line-height: 1.25;
    }

    .hero-title span {
        display: block;
        font-size: 30px;
        margin-top: 6px;
    }

    .hero-subtitle {
        max-width: 310px;
        font-size: 14px;
        margin: 0 auto 24px auto;
    }
    
    .tabs {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Link Cards (সরকারি সেবা) Exact Styling */
.link-card {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 155px;
    text-decoration: none;
    color: inherit;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.link-card:hover {
    background-color: #f0f8ff;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.1);
    border-color: #38bdf8;
    transform: translateY(-3px);
}

.hidden-link-card {
    display: none !important;
}

.btn-load-more-links {
    background-color: var(--white);
    color: #0284c7;
    border: 1px solid #bae6fd;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.btn-load-more-links:hover {
    border-color: #0ea5e9;
    background-color: #f0f9ff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.link-card-seal {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-card:hover .link-card-seal {
    transform: scale(1.15);
}

.link-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.35;
}

.link-card-sub {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 36px;
    }

    .hero-title span {
        font-size: 26px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .btn-submit {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ==============================================
   PDF & DOCUMENT CONVERTER TOOLS UNIVERSAL STYLES
============================================== */
.pdf-body {
    background-color: #f8fafc;
    font-family: var(--font-family, 'Noto Sans Bengali', sans-serif);
    margin: 0;
    padding: 0;
    color: #1e293b;
}

.pdf-main {
    padding: 30px 0 80px;
}

.pdf-header {
    text-align: center;
    margin-bottom: 40px;
}

.pdf-icon-box {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.pdf-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.pdf-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.pdf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.pdf-left-col, .pdf-right-col {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.pdf-left-col:hover, .pdf-right-col:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

.setting-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.setting-group select,
.setting-group input[type="text"],
.setting-group input[type="number"],
.setting-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-family, 'Noto Sans Bengali', sans-serif);
    color: #1e293b;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.setting-group select:focus,
.setting-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.empty-placeholder {
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-placeholder p {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    margin: 10px 0 0 0;
}

@media (max-width: 900px) {
    .pdf-grid {
        grid-template-columns: 1fr !important;
    }
    .pdf-left-col, .pdf-right-col {
        padding: 20px;
    }
}

/* ==============================================
   FIXED BOTTOM NAVBAR FOR MOBILE & RESPONSIVENESS
============================================== */
.bottom-navbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 68px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 20px;
    transition: transform 0.25s ease;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
    color: #2563eb;
}

.bottom-nav-item.active i {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    body {
        padding-bottom: 78px;
    }

    .bottom-navbar {
        display: flex;
    }

    .tabs {
        display: none !important;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ==============================================
   FLOATING SERVICE REQUEST MODAL
============================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 22px 0;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-form label {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
}

.modal-form input,
.modal-form textarea {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-family);
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-whatsapp-submit {
    margin-top: 8px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.btn-whatsapp-submit i {
    font-size: 20px;
}

.btn-whatsapp-submit:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

.count-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 13.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid #bae6fd;
}
