/* ==========================================================================
   e-porchaa.com — Land Services & Calculator Design System
   Exact Spec based on e-porcha.com & dlrms.land.gov.bd
   Rules: Zero Gradients | Zero Icons | Ultra Lightweight | Pure Flat Colors
   ========================================================================== */

:root {
    /* Color Palette */
    --color-primary:          #2e7d32; /* Primary Forest Green */
    --color-primary-dark:     #1b5e20; /* Deep Green (Footer, Hover) */
    --color-primary-light:    #388e3c; /* Active Tab & Action Green */
    --color-primary-surface:  #d4edda; /* Table Header, Stats Card */
    --color-primary-border:   #81c784; /* Soft Green Border */
    --color-primary-subtle:   #e8f5e9; /* Table Hover, Result Box */

    --color-body-bg:          #f8f9fa; /* Off-white page background */
    --color-surface:          #ffffff; /* Card / Box Background */
    --color-surface-alt:      #f1f3f5; /* Alternating Table Rows */

    --color-text-primary:     #212529; /* Main Body Text */
    --color-text-secondary:   #495057; /* Secondary Text */
    --color-text-muted:       #6c757d; /* Form Labels, Hints */
    
    --color-border:           #dee2e6; /* Dividers, Input Borders */
    --color-border-dark:      #ced4da; /* Card Borders */

    --color-accent-orange:    #e65100; /* Notice Alert Border */
    --color-notice-bg:        #fff3e0; /* Notice Alert Background */
    --color-dark-action:      #343a40; /* Floating Quick Action Button */
    --color-dark-border:      #ffc107; /* Floating Button Border (Yellow) */

    /* Typography (100% Local Offline Noto Sans Bengali) */
    --font-stack: 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Sizing & Radius */
    --max-width: 1240px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Base Reset & Core Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-stack);
    background-color: var(--color-body-bg);
    color: var(--color-text-primary);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
}

/* Cross-Browser Form Elements Reset */
input, select, textarea, button {
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Custom dropdown arrow for selects without native iOS/WebKit gradient beveled box */
select.form-control, select.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 32px !important;
}

/* Global Form Control & Mobile Zoom Prevention (< 16px triggers involuntary zoom on iOS Safari) */
.form-control, .form-select {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--color-text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.18);
    outline: none;
}

@media (max-width: 768px) {
    input, select, textarea, .form-control, .form-select, .survey-text-input, .search-box input {
        font-size: 16px !important;
    }
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Fluid Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 1025px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Header & Navigation (e-porcha style: clean white bar) */
.site-header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header-logo {
    height: 48px;
    width: auto;
    max-height: 52px;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.site-header-logo:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .site-header-logo {
        height: 38px;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-primary);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    text-decoration: none;
}

.nav-item > a:hover,
.nav-has-dropdown:hover > a {
    color: var(--color-primary-dark);
    background-color: #c8e6c9;
}

.nav-item.active > a {
    color: var(--color-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
    border-radius: 0;
}

.nav-caret {
    font-size: 11px;
    margin-left: 3px;
    display: inline-block;
    transition: transform 0.2s ease;
    color: inherit;
    line-height: 1;
}

.nav-has-dropdown:hover .nav-caret {
    transform: rotate(180deg);
}

/* Dropdown Menu (Desktop) */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    z-index: 1050;
    animation: navDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-menu.nav-dropdown-right {
    left: auto;
    right: 0;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

@keyframes navDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-has-dropdown:hover .nav-dropdown-menu,
.nav-has-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 14.5px;
    font-weight: 500;
    color: #334155 !important;
    text-decoration: none;
    border-bottom: none !important;
    border-radius: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
    background-color: #f0fdf4;
    color: #15803d !important;
    font-weight: 600;
}

.nav-dropdown-menu li a.dropdown-active {
    background-color: #f0fdf4;
    color: #15803d !important;
    font-weight: 700;
    border-left: 3px solid #16a34a;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary-dark);
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    min-height: 40px;
    line-height: 1;
    transition: all 0.15s ease;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:active {
    background-color: var(--color-primary-subtle);
    border-color: var(--color-primary-dark);
}

/* Hero Slider Section (e-porcha style - 300px Height & No Repeat) */
.hero-slider-section {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background-color: #1e3a1e;
}

.hero-slider {
    width: 100%;
    height: 300px;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-overlay {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content-container {
    max-width: 1180px;
    width: 100%;
    padding: 0 45px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Standard Banner Box (Slider 1) - 25% to 30% Opacity */
.slider-standard-box {
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 22px 32px;
    max-width: 860px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInSlide 0.5s ease-out;
}

.slider-box-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.slider-box-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #ffffff;
    margin: 0 0 14px 0;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.slider-btn-row {
    margin-top: 8px;
}

.slider-action-btn {
    display: inline-block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 5px 16px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.55);
    transition: all 0.2s ease;
}

.slider-action-btn:hover {
    color: #ffffff;
    background: #008744;
    border-color: #008744;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 6-Steps Mouza Map Banner (Slider 2) */
.slider-steps-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInSlide 0.5s ease-out;
}

.slider-steps-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.2px;
}

.slider-steps-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 1100px;
}

.slider-steps-flow .step-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 8px 12px;
    width: 150px;
    height: 175px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-right: 4px solid var(--step-accent, #10b981);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.slider-steps-flow .step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.step-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--step-accent, #10b981);
    margin-bottom: 8px;
}

.step-num-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--step-accent, #10b981);
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.step-card-text {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    padding: 0 2px;
}

.step-arrow-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    flex-shrink: 0;
    color: var(--step-accent, #10b981);
}

/* Slider Controls (Arrows & Dots) */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.slider-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.slider-nav-btn.prev {
    left: 12px;
}

.slider-nav-btn.next {
    right: 12px;
}

.slider-dots-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.slider-dot.active {
    background: #10b981;
    transform: scale(1.3);
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback Hero Banner */
.hero-banner {
    background-color: #2e6033;
    color: #ffffff;
    padding: 44px 0 54px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 17px;
    color: #e8f5e9;
    max-width: 680px;
    margin: 0 auto 16px;
}

@media (max-width: 991px) {
    .slider-steps-flow {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .slider-standard-box {
        padding: 16px 20px;
    }
    .slider-box-desc {
        font-size: 14.5px;
    }
}

@media (max-width: 768px) {
    .hero-slider-section,
    .hero-slider,
    .hero-slide,
    .hero-slide-overlay {
        height: auto;
        min-height: 300px;
    }
    .slide-content-container {
        padding: 30px 16px 40px;
    }
    .slider-steps-flow .step-card {
        width: 125px;
        height: 160px;
        padding: 8px 6px;
    }
    .step-card-text {
        font-size: 11.5px;
    }
    .slider-nav-btn {
        display: none;
    }
}

/* ==========================================================================
   e-porcha 5 Service Cards Section (Exact 1:1 Match to Screenshot)
   ========================================================================== */
.service-cards-container {
    margin-top: 26px;
    position: relative;
    z-index: 25;
    margin-bottom: 26px;
}

.service-cards-row {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.service-card-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 6px;
    height: 94px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    text-align: center;
    position: relative;
}

.service-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b8043;
    margin-bottom: 6px;
    height: 38px;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.service-card-icon svg {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
}

.service-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.25;
    white-space: nowrap;
    letter-spacing: -0.2px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.service-card-btn:hover {
    border-color: #0b8043;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(11, 128, 67, 0.12);
}

.service-card-btn:hover .service-card-icon {
    transform: scale(1.08);
}

/* Active State (Solid e-porcha Emerald Green as shown in screenshot) */
.service-card-btn.active {
    background-color: #008744;
    border-color: #008744;
    box-shadow: 0 4px 14px rgba(0, 135, 68, 0.3);
}

.service-card-btn.active .service-card-icon {
    color: #ffffff;
    transform: none;
}

.service-card-btn.active .service-card-title {
    color: #ffffff;
    font-weight: 700;
}

/* Live Notice Marquee Bar (Right to Left Smooth Ticker - Site Green Theme) */
.eporcha-live-notice {
    display: flex;
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #008744;
    border-radius: 8px;
    height: 42px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 135, 68, 0.08);
}

.notice-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #008744;
    color: #ffffff;
    padding: 0 14px;
    height: 100%;
    font-size: 13.5px;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 3;
    letter-spacing: 0.2px;
}

.notice-badge-text {
    color: #ffffff;
    font-weight: 800;
}

.notice-badge-icon {
    font-size: 15px;
}

.notice-marquee-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
}

.notice-marquee-inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: noticeScroll 30s linear infinite;
    will-change: transform;
}

.eporcha-live-notice:hover .notice-marquee-inner {
    animation-play-state: paused;
}

.notice-item {
    font-size: 14.5px;
    font-weight: 600;
    color: #ff0000;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    letter-spacing: -0.1px;
}

.notice-link {
    color: #000000;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 5px;
    transition: color 0.15s ease;
}

.notice-link:hover {
    color: #333333;
    text-decoration: underline;
}

.notice-dot {
    color: #4ade80;
    font-size: 12px;
    opacity: 0.8;
}

@keyframes noticeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Section Live Heading (Green bold heading from screenshot) */
.section-live-heading {
    font-size: 24px;
    font-weight: 700;
    color: #008744;
    margin: 0 0 16px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: -0.3px;
}

/* e-porcha Survey Table / Selector Simulator */
.eporcha-survey-table-wrapper {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.eporcha-survey-grid {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.eporcha-survey-grid th {
    background-color: #f1f8f3;
    color: #1e3a1e;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #cbd5e1;
}

.eporcha-survey-grid td {
    padding: 10px 12px;
    vertical-align: top;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.survey-select-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.survey-select-list li {
    padding: 6px 10px;
    font-size: 13.5px;
    color: #334155;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 2px;
    transition: all 0.15s ease;
}

.survey-select-list li:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.survey-select-list li.selected {
    background-color: #dcfce7;
    color: #166534;
    font-weight: 700;
}

.survey-input-box {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    background: #ffffff;
}

.survey-input-box .search-icon {
    font-size: 13px;
    color: #94a3b8;
    margin-right: 4px;
}

.survey-text-input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13.5px;
    width: 100%;
    padding: 4px;
}

.survey-find-btn {
    background-color: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.survey-find-btn:hover {
    background-color: #008744;
    color: #ffffff;
    border-color: #008744;
}

.survey-hint-text {
    margin-top: 10px;
    font-size: 12px;
    color: #059669;
    font-weight: 600;
}

.survey-hint-text .hint-dot {
    color: #10b981;
}

@media (min-width: 1025px) {
    .service-cards-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
        padding: 14px 16px;
    }
    .service-card-btn {
        height: 94px;
        padding: 10px 6px;
    }
    .service-card-title {
        font-size: 14px;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .service-cards-container {
        margin-top: 18px;
        margin-bottom: 20px;
    }
    .service-cards-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        padding: 10px 8px;
    }
    .service-card-btn {
        height: 86px;
        padding: 8px 4px;
    }
    .service-card-title {
        font-size: 12.5px;
        letter-spacing: -0.3px;
    }
    .service-card-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 600px) {
    .service-cards-container {
        margin-top: 14px;
        margin-bottom: 18px;
    }
    .service-cards-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
        border-radius: 10px;
    }
    .service-card-btn {
        height: 78px;
        padding: 8px 6px;
    }
    .service-card-btn:nth-child(5) {
        grid-column: 1 / -1;
        height: 56px;
        flex-direction: row;
        gap: 12px;
        padding: 8px 14px;
    }
    .service-card-btn:nth-child(5) .service-card-icon {
        margin-bottom: 0;
    }
    .service-card-icon svg {
        width: 28px;
        height: 28px;
    }
    .service-card-title {
        font-size: 13px;
    }
    .eporcha-live-notice {
        height: auto;
        min-height: 40px;
        padding: 4px 0;
    }
    .notice-badge {
        padding: 0 10px;
        font-size: 12px;
    }
    .notice-item {
        font-size: 13px;
    }
    .section-live-heading {
        font-size: 19px;
    }
}

/* Service Tabs (Legacy Fallback) */
.service-tabs-wrapper {
    margin-top: -32px;
    position: relative;
    z-index: 10;
    margin-bottom: 30px;
}

.service-tabs {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    gap: 8px;
    box-shadow: var(--shadow-card);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    white-space: nowrap;
}

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

.tab-btn.active {
    background-color: var(--color-primary-light);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* Tab Panels */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Main Layout & Grid */
.main-content {
    padding: 24px 0 48px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.full-width-content {
    width: 100%;
}

/* Cards & Panels */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.card-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Content Headings & Body */
h1.page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
    line-height: 1.35;
}

h2.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 28px;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-primary-surface);
}

h3.sub-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 14px;
    color: var(--color-text-primary);
}

/* Data Tables (e-porcha exact green header style) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 16px 0 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.data-table th {
    background-color: var(--color-primary-surface);
    color: var(--color-primary-dark);
    font-weight: 700;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-primary-border);
    white-space: nowrap;
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
    background-color: var(--color-body-bg);
}

.data-table tbody tr:hover {
    background-color: var(--color-primary-subtle);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.form-control, .form-select {
    width: 100%;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text-primary);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Result Box (Calculator Output) */
.result-box {
    background-color: var(--color-primary-subtle);
    border: 1px solid var(--color-primary-border);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-top: 18px;
}

.result-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-primary-border);
    padding-bottom: 6px;
}

.result-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 8px 0;
}

.result-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.result-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.result-item-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.result-item-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 2px;
}

/* Notice / Alert Box */
.notice-box {
    background-color: var(--color-notice-bg);
    border-left: 4px solid var(--color-accent-orange);
    padding: 14px 18px;
    margin: 18px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 14px;
    color: var(--color-text-primary);
}

.notice-box strong {
    color: #ff0000;
}

/* Stats Section (dlrms & e-porcha style) */
.stats-section {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 40px 0;
    margin: 30px 0;
}

.stats-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background-color: var(--color-body-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* FAQ Accordion */
.faq-section {
    margin: 32px 0;
}

.faq-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.faq-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-surface);
    color: var(--color-text-primary);
}

.faq-question:hover {
    background-color: var(--color-body-bg);
}

.faq-toggle-sign {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 18px 16px;
    display: none;
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question {
    border-bottom: 1px solid var(--color-border);
    color: var(--color-primary);
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.widget-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.widget-list {
    list-style: none;
}

.widget-list-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-body-bg);
    font-size: 14px;
}

.widget-list-item:last-child {
    border-bottom: none;
}

.widget-list-item a {
    color: var(--color-text-primary);
}

.widget-list-item a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Quick Tools Grid (for Homepage & Hub) */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.tool-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: all 0.15s ease;
    display: block;
    color: inherit;
}

.tool-card:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary-subtle);
    transform: translateY(-2px);
}

.tool-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

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

/* Footer (e-porcha dark forest green style) */
.site-footer {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding-top: 40px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    border-bottom: 1px solid #2e7d32;
    padding-bottom: 6px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #a5d6a7;
    font-size: 14px;
}

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

.footer-text {
    font-size: 13px;
    color: #c8e6c9;
    line-height: 1.6;
}

.footer-bottom {
    background-color: #ffffff !important;
    color: #475569 !important;
    border-top: 1px solid #e2e8f0;
    padding: 16px 0;
    font-size: 13px;
    text-align: center;
}

.footer-bottom p {
    color: #475569 !important;
    margin: 0;
}

.footer-bottom a {
    color: #1b5e20 !important;
    text-decoration: underline;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #047857 !important;
}

/* Floating Action Button (dlrms/e-porcha quick search button) */
.floating-action-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--color-dark-action);
    color: #ffffff;
    border: 1px solid var(--color-dark-border);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    cursor: pointer;
    text-decoration: none;
}

.floating-action-btn:hover {
    background-color: #212529;
    color: #ffffff;
}

/* Breadcrumb - Globally Hidden */
.breadcrumb, .breadcrumb-nav, .khatian-breadcrumbs {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--color-surface);
        border-bottom: 2px solid var(--color-primary);
        padding: 14px 18px 24px;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1040;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item > a {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 10px 14px;
        font-size: 15.5px;
    }

    .nav-has-dropdown .nav-dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        border-left: 3px solid var(--color-primary);
        margin: 4px 0 10px 12px;
        padding: 4px 0;
        min-width: unset;
        border-radius: 6px;
        animation: none;
    }

    .nav-dropdown-menu li a {
        padding: 9px 14px;
        font-size: 14px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    /* 14-inch Laptop Optimal Nav Density */
    .main-nav {
        gap: 4px;
    }
    .nav-item > a {
        padding: 7px 11px;
        font-size: 14.5px;
    }
}

@media (min-width: 1367px) {
    /* Large Desktop Display Nav Density */
    .main-nav {
        gap: 8px;
    }
    .nav-item > a {
        padding: 8px 15px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 14.5px;
    }

    .tab-btn {
        min-width: 110px;
        font-size: 13.5px;
        padding: 8px 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .floating-action-btn {
        bottom: 12px;
        right: 12px;
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* ==========================================================================
   e-porcha 6-Column Interactive Survey Grid (Responsive Multi-Tier)
   ========================================================================== */
.surveyContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 15px;
    margin: 16px 0 24px 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
}

/* Small / Large Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .surveyContainer {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .surveyContainer {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

/* 14-Inch Laptops (1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .surveyContainer {
        grid-template-columns: repeat(5, minmax(145px, 1fr)) minmax(185px, 1.3fr);
        gap: 5px;
    }
}

/* Wide / Large Displays (1367px+) */
@media (min-width: 1367px) {
    .surveyContainer {
        grid-template-columns: repeat(5, minmax(170px, 1fr)) minmax(220px, 1.4fr);
        gap: 6px;
    }
}

@media (max-width: 767px) {
    .surveyColumn {
        min-height: auto;
    }
    .surveyColumn ul {
        max-height: 220px;
    }
}

.surveyColumn {
    background: #f8fff6;
    border: 1px solid #d4e8d4;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 320px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.surveyColumnTitle {
    background: #eaffea;
    padding: 9px 12px;
    font-weight: 700;
    font-size: 15px;
    color: #1a381e;
    border-bottom: 1px solid #d4e8d4;
    text-align: left;
}

.search-box {
    padding: 6px 8px;
    border-bottom: 1px solid #d4e8d4;
    background: #f8fff6;
}

.search-box input {
    width: 100%;
    padding: 6px 10px;
    font-size: 13.5px;
    font-family: inherit;
    border: 1px solid #767676;
    border-radius: 2px;
    background: #ffffff;
    outline: none;
}

.search-box input:focus {
    border-color: #00994d;
    box-shadow: 0 0 0 1px #00994d;
}

.surveyColumn ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 320px;
    background: #f8fff6;
}

.surveyColumn ul::-webkit-scrollbar {
    width: 7px;
}

.surveyColumn ul::-webkit-scrollbar-track {
    background: #f0f7ef;
}

.surveyColumn ul::-webkit-scrollbar-thumb {
    background: #757575;
    border-radius: 4px;
}

.surveyColumn ul li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14.5px;
    color: #111827;
    border-bottom: 1px solid #e1efe2;
    transition: background 0.15s, color 0.15s;
    word-break: break-word;
}

.surveyColumn ul li:hover {
    background: #00994d;
    color: #ffffff;
}

.liActive {
    background-color: #00994d !important;
    color: #ffffff !important;
    font-weight: 700;
}

.surveyColumn ul li.empty-hint,
.surveyColumn ul li.loading-hint {
    color: #00994d;
    text-align: center;
    padding: 20px 8px;
    cursor: default;
    background: transparent !important;
}

/* Vintage Parchment Modal Popup */
#popupBox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.parchment-modal-card {
    background: #fdf6e3;
    padding: 24px 22px;
    width: 100%;
    max-width: 440px;
    border-radius: 12px;
    position: relative;
    background-image: url('https://dlrms.land.gov.bd/images/torn-paper-background.png'), linear-gradient(135deg, #fffdf2 0%, #fef3c7 100%);
    background-size: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid #d4a373;
    color: #1f2937;
    font-family: inherit;
}

.parchment-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #4b5563;
    transition: color 0.15s;
    background: none;
    border: none;
}

.parchment-close-btn:hover {
    color: #dc2626;
}

.parchment-title {
    text-align: center;
    font-size: 21px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    border-bottom: 2px dashed #b45309;
    padding-bottom: 8px;
}

.parchment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 14.5px;
    line-height: 1.8;
}

.parchment-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #d1b894;
    padding: 3px 0;
}

.parchment-list li strong {
    color: #451a03;
}

.parchment-btn-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 18px;
}

.parchment-btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.15s;
    border: none;
    display: inline-block;
}

.parchment-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.parchment-btn-print {
    background: #008744;
    color: #ffffff !important;
}

.parchment-btn-details {
    background: #0284c7;
    color: #ffffff !important;
}

.parchment-btn-map {
    background: #d97706;
    color: #ffffff !important;
}

/* Responsive Parchment Modal */
@media (max-width: 600px) {
    .parchment-modal-card {
        padding: 20px 16px;
        max-width: min(440px, 94vw);
        max-height: 90vh;
        overflow-y: auto;
    }
    .parchment-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    .parchment-list {
        font-size: 13.5px;
        line-height: 1.7;
    }
    .parchment-btn-row {
        flex-direction: column;
        gap: 8px;
    }
    .parchment-btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
}

/* Global Table & Card Responsive Protection */
.card table:not(.table-responsive table),
.main-content table,
.seo-article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
    .card {
        padding: 16px 14px;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    h1.page-title {
        font-size: 21px;
        margin-bottom: 12px;
    }
    .card-title {
        font-size: 18px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .result-box {
        padding: 14px 12px;
    }
    .result-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .tools-hub-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .related-tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (min-width: 601px) and (max-width: 991px) {
    .tools-hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 992px) and (max-width: 1366px) {
    .tools-hub-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1367px) {
    .tools-hub-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}


/* -------------------------------------------------------
   SEO ???????? ????? ??????
   ------------------------------------------------------- */

.seo-article-section {
    background: #f8fafc;
    padding: 3.5rem 0 4rem;
    border-top: 1px solid #e2e8f0;
}

.seo-article-content {
    max-width: 860px;
    margin: 0 auto;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    color: #1e293b;
    line-height: 1.8;
}

/* -- ???????? ????? -- */
.seo-article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.seo-article-main-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.seo-article-intro {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.seo-article-disclaimer-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.seo-article-disclaimer-box .disclaimer-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.seo-article-disclaimer-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.6;
}

.disclaimer-link {
    color: #b45309;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 0.4rem;
}

.disclaimer-link:hover {
    color: #92400e;
}

/* -- ????? -- */
.seo-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.seo-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.seo-h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid #0ea5e9;
    display: inline-block;
}

.seo-section p {
    font-size: 0.975rem;
    color: #334155;
    line-height: 1.85;
    margin-bottom: 0.85rem;
}

.seo-section p:last-child {
    margin-bottom: 0;
}

.seo-section a:not(.seo-internal-link):not(.seo-portal-card) {
    color: #0284c7;
    text-decoration: underline;
}

.seo-section a:not(.seo-internal-link):not(.seo-portal-card):hover {
    color: #0369a1;
}

/* -- ???? ???? ?????? -- */
.seo-steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 1rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seo-steps-list li {
    counter-increment: step-counter;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.875rem 1.1rem;
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.7;
    position: relative;
}

.seo-steps-list li::before {
    content: counter(step-counter);
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.1rem;
}

/* -- ??? ???? -- */
.seo-tip-box {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.93rem;
    color: #166534;
    line-height: 1.7;
    margin-top: 1.25rem;
}

/* -- ?? ?????? -- */
.seo-fee-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.seo-fee-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.93rem;
}

.seo-fee-list li:last-child {
    border-bottom: none;
}

.seo-fee-list .fee-total {
    background: #f0f9ff;
    font-weight: 700;
}

.fee-label { color: #475569; }
.fee-amount { color: #0f172a; font-weight: 600; }

/* -- ????????? ???? -- */
.seo-internal-link {
    display: inline-block;
    color: #0284c7;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    margin-top: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.seo-internal-link:hover {
    background: #0284c7;
    color: #fff !important;
}

/* -- ??????? -- */
.seo-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0 1.25rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.seo-conversion-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.seo-conversion-table thead {
    background: linear-gradient(135deg, #1e3a5f, #0284c7);
    color: #fff;
}

.seo-conversion-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.seo-conversion-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.seo-conversion-table tbody tr:last-child td {
    border-bottom: none;
}

.seo-conversion-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* -- ??????? ????? -- */
.seo-portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.seo-portal-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    text-decoration: none !important;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.seo-portal-card:hover {
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
    transform: translateY(-2px);
}

.portal-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.portal-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.portal-info strong {
    color: #1e3a5f;
    font-size: 0.9rem;
    font-weight: 700;
}

.portal-info span {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* -- ????? ????? -- */
.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.seo-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.seo-feature-item strong {
    display: block;
    color: #1e3a5f;
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
}

.seo-feature-item p {
    font-size: 0.83rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* -- ????????? ???? -- */
.seo-helpline-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.helpline-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.helpline-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.helpline-item strong {
    display: block;
    color: #1e3a5f;
    font-size: 0.95rem;
}

.helpline-item span {
    font-size: 0.83rem;
    color: #64748b;
}

/* -- ????????? -- */
@media (max-width: 768px) {
    .seo-article-section {
        padding: 2rem 0 2.5rem;
    }

    .seo-article-main-title {
        font-size: 1.25rem;
    }

    .seo-portal-grid,
    .seo-features-grid {
        grid-template-columns: 1fr;
    }

    .seo-h2 {
        font-size: 1.15rem;
    }
}

/* Related Tools Internal Linking Grid */
.related-tools-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}
.related-tools-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.related-tools-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 18px;
}
.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.related-tool-card {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.related-tool-card:hover {
    border-color: #1a5632;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(26, 86, 50, 0.08);
}
.related-tool-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a5632;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.related-tool-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}
.related-tool-card-tag {
    font-size: 11px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.formula-box {
    background: #f8fafc;
    border-left: 4px solid #1a5632;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    font-size: 14.5px;
    color: #334155;
}
.formula-box code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0f172a;
    font-weight: 600;
}

/* -------------------------------------------------------
   Modern Homepage Slim Hub & Service Cards
   ------------------------------------------------------- */
.portal-cta-wrapper {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.portal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primary, #2e7d32);
    color: #ffffff !important;
    padding: 10px 22px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
    transition: all 0.2s ease;
}

.portal-cta-btn:hover {
    background-color: var(--color-primary-dark, #1b5e20);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(27, 94, 32, 0.3);
}

/* Service Highlight Card (Namjari) */
.service-highlight-card {
    background: #ffffff;
    border: 1.5px solid #dcfce7;
    border-left: 4px solid var(--color-primary, #2e7d32);
    border-radius: 12px;
    padding: 20px 22px;
    margin-top: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.service-highlight-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.service-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.service-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.service-tag.tag-primary {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.service-tag.tag-time {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.service-total-fee {
    display: flex;
    align-items: baseline;
    gap: 6px;
    background: #f0fdf4;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.total-fee-label {
    font-size: 12px;
    color: #166534;
    font-weight: 600;
}

.total-fee-amount {
    font-size: 18px;
    font-weight: 800;
    color: #166534;
}

.service-fee-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.fee-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fee-chip .chip-name {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 2px;
}

.fee-chip .chip-amount {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.service-highlight-note {
    font-size: 0.94rem !important;
    color: #475569 !important;
    line-height: 1.7 !important;
    margin-bottom: 12px !important;
}

@media (max-width: 600px) {
    .service-highlight-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .service-total-fee {
        width: 100%;
        justify-content: space-between;
    }
    .service-fee-breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-cta-btn {
        width: 100%;
        justify-content: center;
    }
}


