/* ─── SPGallery — custom lightweight gallery ─── */
#spg-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.88);
    align-items: center;
    justify-content: center;
}
#spg-overlay.spg-open { display: flex; }
body.spg-lock { overflow: hidden; }

.spg-wrap {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.spg-img {
    width: min(700px, 88vw);
    height: min(500px, 70vh);
    object-fit: contain;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .25s;
    display: block;
    padding: 20px;
    background: #fff;
    box-sizing: border-box;
}
.spg-img.spg-loaded { opacity: 1; }

.spg-caption {
    color: #eee;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
    min-height: 18px;
}
.spg-counter {
    color: #aaa;
    font-size: 12px;
    margin-top: 3px;
}

.spg-close, .spg-prev, .spg-next {
    position: fixed;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    transition: background .2s;
}
.spg-close:hover, .spg-prev:hover, .spg-next:hover { background: rgba(255,255,255,.28); }

.spg-close { top: 16px; right: 20px; font-size: 28px; width: 40px; height: 40px; }
.spg-prev  { left: 14px;  top: 50%; transform: translateY(-50%); font-size: 36px; width: 48px; height: 48px; }
.spg-next  { right: 14px; top: 50%; transform: translateY(-50%); font-size: 36px; width: 48px; height: 48px; }

@media (max-width: 576px) {
    .spg-img { width: 92vw; height: 60vh; padding: 12px; }
    .spg-prev { left: 4px; }
    .spg-next { right: 4px; }
}

/* YouTube facade — thumbnail shown before play */
.yt-facade {
    position: relative;
    display: block;
    cursor: pointer;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    aspect-ratio: 16/9;
}
.yt-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .85;
    transition: opacity .2s;
}
.yt-facade:hover img { opacity: .65; }
.yt-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
    transition: transform .15s;
    padding: 0;
}
.yt-facade:hover .yt-play { transform: translate(-50%, -50%) scale(1.1); }
.yt-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ─── Homepage main 3-col row: flex column children ─── */
#tg-content.row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* ─── SPSlider ─── */
.spslider { position: relative; overflow: hidden; }
.spslider-track {
    display: flex;
    transition: transform .5s ease;
    will-change: transform;
}
.spslider-slide { min-width: 100%; position: relative; }
.spslider-slide figure { margin: 0; }
.spslider-slide figure img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.spslider-prev, .spslider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.5);
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.spslider-prev { left: 12px; }
.spslider-next { right: 12px; }
.spslider-prev:hover, .spslider-next:hover { background: rgba(0,106,78,.85); border-color: #fff; }

.spslider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.spslider-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}
.spslider-dot.active { background: #fff; }

@media (max-width: 576px) {
    .spslider-slide figure img { max-height: 200px; }
    .spslider-prev, .spslider-next { width: 30px; height: 30px; font-size: 20px; }
}

/* ─── Important links list ─── */
.imp-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.imp-link-list .linkli {
    padding: 7px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.imp-link-list .linkli:last-child { border-bottom: none !important; }

/* ─── Homepage councillor widget ─── */
.mc-office, .mc-mobile {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

/* ─── Member Cards (list page) ─── */
.member-card-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transition: .25s ease;
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}
.member-card-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
}
.member-card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.member-card-image { text-align: center; padding: 22px 15px 10px; }
.member-card-image img {
    width: 130px; height: 130px;
    object-fit: cover;
    border-radius: 50%;
    background: #f2f4f7;
    border: 3px solid #e8f5e9;
}
.member-card-body { flex: 1; text-align: center; padding: 10px 14px 20px; display: flex; flex-direction: column; justify-content: center; }
.member-name  { font-size: 15px; font-weight: 700; color: #0d47a1; margin-bottom: 4px; }
.member-position { font-size: 13px; font-weight: 600; color: #e91e63; margin-bottom: 4px; }
.member-mobile, .member-email { font-size: 12.5px; color: #555; margin-bottom: 3px; }
.member-office { margin-top: 6px; font-size: 13px; font-weight: 600; color: #2e7d32; }

/* ─── Member Profile (detail page) ─── */
.member-profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px 24px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.09);
    border-top: 4px solid #006A4E;
}
.member-photo img {
    width: 150px; height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e8f5e9;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    margin-bottom: 14px;
}
.member-profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 6px;
}
.member-profile-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #006A4E;
    border: 1px solid #a5d6a7;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 14px;
    margin-bottom: 20px;
}
.member-profile-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}
.member-profile-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
    padding: 7px 0;
    border-bottom: 1px solid #f8f8f8;
}
.member-profile-contacts li:last-child { border-bottom: none; }
.mpc-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #f1f8f4;
    color: #006A4E;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.member-about-box {
    background: #fff;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 4px 18px rgba(0,0,0,.07);
    border-top: 4px solid #F4A72A;
    min-height: 280px;
}
.member-about-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: #006A4E;
    border-left: 4px solid #F4A72A;
    padding-left: 10px;
    margin-bottom: 16px;
}
.member-about-text { font-size: 15px; line-height: 1.9; color: #444; }
.member-info { font-size: 14px; color: #555; margin-bottom: 5px; }

/* ─── General ─── */
.memberlist { min-height: 70vh; }
.no-member-text { padding: 100px 0; color: #666; font-size: 22px; text-align: center; }

@media (max-width: 768px) {
    /* Member detail page */
    .profile-hero { height: 100px; }
    .profile-avatar { width: 100px; height: 100px; }
    .profile-avatar-wrap { margin-top: -50px; }
    .profile-name { font-size: 17px; }

    /* Homepage welcome section */
    .tg-welcomeandgreeting.tg-welcomeandgreeting-v2 { height: auto; }
    .messageHi, .hinfoh { max-height: none !important; height: auto !important; flex: none; }

    /* Imp-link cards full width */
    .imp-link-list .linkli { padding: 8px 0 !important; }

    /* Member profile detail */
    .member-about-box { min-height: auto; }
    .member-profile-card { margin-bottom: 16px; }

    /* Card title size */
    .card-title { font-size: 15px; }
}

/* ─── Page content wrapper ─── */
.pagebox {
    line-height: 32px;
    text-align: justify;
    font-size: 18px;
    min-height: 500px;
}
.pageborder {
    padding: 15px;
    border: solid 1px #bca7a7;
    min-height: 500px;
    line-height: 35px;
    text-align: justify;
    font-size: 20px;
    border-radius: 5px;
    background: #fff;
}

/* ─── Notice board ─── */
.nottle { color: #333; }
.nottle:hover { text-decoration: underline; color: var(--gv-green, #006A4E); }

/* ─── Bootstrap 4 form-group compat ─── */
.form-group { margin-bottom: 1rem; }
.col-form-label { padding-top: calc(.375rem + 1px); padding-bottom: calc(.375rem + 1px); font-weight: 600; }

/* ─── Card / panel (form pages) ─── */
.card-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.card-title {
    font-size: 17px;
    font-weight: 700;
    color: #006A4E;
    border-bottom: 2px solid #006A4E;
    padding-bottom: 8px;
    margin-bottom: 14px;
}
.card-block { padding: 0; }

/* ─── Homepage 3-column message sections (বাণী alignment) ─── */
.tg-welcomeandgreeting.tg-welcomeandgreeting-v2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}
.tg-welcomeandgreeting.tg-welcomeandgreeting-v2 > a {
    margin-top: auto;
    display: inline-block;
    align-self: flex-start;
}
.messageHi {
    overflow: hidden;
    flex: 1;
}
.hinfoh {
    overflow: hidden;
    flex: 1;
}

/* ─── Application form box ─── */
.applybox {
    border: 1px solid #d7d7d7;
    padding: 20px;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 16px;
}
.extra-col { display: none; }

/* ─── Requirements box ─── */
.req_box {
    font-size: 15px;
    border: 1px solid #e3dcdc;
    padding: 10px 16px;
    color: #c62828;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #fff9f9;
}
.req_head {
    text-decoration: underline;
    padding-bottom: 5px;
    font-size: 19px;
    font-weight: 700;
    text-underline-offset: 5px;
    color: #c62828;
}
.req_title {
    font-size: 14.5px;
    line-height: 1.8;
    color: #c62828;
    padding: 2px 0;
}

/* ─── Tax fee display ─── */
.taxfee {
    border: 1px solid #e0d0d0;
    text-align: center;
    font-size: 20px;
    padding: 10px;
    margin-bottom: 15px;
    color: #df0000;
    font-weight: 600;
    border-radius: 4px;
    background: #fff5f5;
}

/* ─── Alert / message ─── */
.tpmessg {
    text-align: center;
    font-size: 20px;
    color: #e80606;
    font-weight: 600;
    padding: 8px;
}
.wrishmsg {
    font-size: 22px;
    text-align: center;
    color: #bb0606;
    font-weight: 700;
}
.warish-dup-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    min-height: 260px;
    height: 100%;
    background: #fff5f5;
    border: 1.5px solid #f3b8b8;
    border-radius: 10px;
    padding: 30px 26px;
}
.warish-dup-box i {
    font-size: 42px;
    color: #dc2626;
}
.warish-dup-box p {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.8;
    color: #b91c1c;
    margin: 0;
}
.dnbd {
    text-align: center;
    font-size: 28px;
    border: solid 2px #ddd;
    padding: 80px 20px;
    min-height: 300px;
    color: #888;
    border-radius: 8px;
    background: #fafafa;
}

/* ─── Image boxes ─── */
.trpjus {
    width: 130px;
    border: solid 2px #b59494;
    height: 130px;
    border-radius: 5px;
    object-fit: cover;
}
.protoyonimg {
    width: 190px;
    border: solid 2px #9c8c8c;
    border-radius: 5px;
    padding: 3px;
    object-fit: cover;
}
.caticon {
    width: 220px;
    border: solid 2px #b5afaf;
    height: 220px;
    object-fit: contain;
    border-radius: 4px;
}

/* ─── Text utilities ─── */
.text_blod { font-weight: 700; }
.text_blod_color { font-weight: 700; color: red; }
.textleft { text-align: left !important; }
.mb15 { margin-bottom: 15px; }
.mb-10 { margin-bottom: 10px; }
.pt10 { padding-top: 10px; }
.mmbottm10 { margin-bottom: 15px; }
.mhot { padding: 6px; border: solid 1px #b1a0a0; }

/* ─── Sonod / certificate titles ─── */
.sonodtitle {
    margin-bottom: 20px;
    color: #3e403e;
    font-size: 22px;
    font-weight: 700;
}

/* ─── Form box ─── */
.formbox {
    border: solid 3px #c4cbc4;
    padding: 15px 24px;
    border-radius: 5px;
    margin: 5px 0;
    background: #fff;
}
.submit-btn {
    background: #006A4E;
    color: #fff;
    padding: 10px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.submit-btn:hover { background: #004d38; }

/* ─── Applicant details accordion ─── */
.applicant-details-container {
    background: #fff;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.applicant-title {
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color .3s ease;
    font-size: 18px;
    color: #333;
    border: solid 1px #dbdbdb;
    margin-top: 8px;
    background: #f5f5f5;
}
.applicant-title:hover { background: #e0e0e0; }
.arrow-icon { transition: transform .3s ease; }
.active .arrow-icon { transform: rotate(180deg); }
.applicant-content {
    padding: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease-in-out;
}
.details-message {
    padding: 7px;
    border: solid 1px #c0b8b8;
    border-radius: 4px;
}
.personal-info { list-style: none; padding: 0; margin: 0; }
.personal-info li { margin-bottom: 5px; }
.personal-info .title { font-weight: bold; color: #555; }
.personal-info .text { margin-left: 10px; color: #333; }

/* ─── Gallery ─── */
.gallerybox {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: box-shadow .3s ease, transform .3s ease;
}
.gallerybox:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.gallerybox img.gthumbp,
.gallerybox img.gthumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.gallerybox .tg-btnviewimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    color: #fff !important;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none !important;
    opacity: 0;
    transition: opacity .3s ease;
}
.gallerybox:hover .tg-btnviewimg { opacity: 1; }
.gallery-item {
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: all .3s ease;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-name {
    padding: 10px 12px;
    text-align: center;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #eee;
}
.gallery-title {
    text-align: center;
    padding: 7px 5px;
    font-size: 13px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.gallery-item:hover .view-overlay { opacity: 1; }
.view-overlay i {
    color: #fff;
    font-size: 28px;
    background: rgba(255,255,255,.18);
    padding: 14px;
    border-radius: 50%;
}


/* ─── Tabs (inner pages) ─── */
.tg-themetabs .nav-link { color: #555; font-weight: 600; }
.tg-themetabs .nav-link.active { color: #006A4E; border-bottom: 2px solid #006A4E; }
.tg-themetabcontent, .tg-coursestabs { margin-top: 14px; }

/* ─── Application headings (bilingual forms) ─── */
.apphead, .appheadeng {
    font-size: 20px;
    font-weight: 700;
    color: #006A4E;
    border-bottom: 2px solid #006A4E;
    padding-bottom: 6px;
    margin-bottom: 14px;
}
.appheadeng { font-size: 18px; color: #444; border-bottom-color: #aaa; }

/* ─── Sonod bilingual text blocks ─── */
.bodybangla, .bodyeng { font-size: 16px; line-height: 1.8; color: #333; }
.bibtitle { font-size: 18px; font-weight: 700; color: #006A4E; margin-bottom: 8px; }
.biggopino { font-size: 15px; color: #555; line-height: 1.7; }
.bisoy { font-size: 16px; font-weight: 600; color: #333; border-bottom: 1px dashed #ccc; padding-bottom: 4px; margin-bottom: 8px; }

/* ─── Misc page classes ─── */
.addsfont { font-size: 17px; }
.albrd { border: 1px solid #ddd; border-radius: 4px; }
.amrt { margin-top: 8px; }
.baddrs { font-size: 15px; color: #555; }
.bfailmsg { color: red; font-size: 16px; font-weight: 600; }
.bkor { font-weight: 700; }
.bmb2 { margin-bottom: 8px; }
.borabor, .borabor1 { border: 1px solid #ddd; padding: 8px; border-radius: 4px; }
.bunnam { font-size: 17px; font-weight: 700; color: #006A4E; }
.checkmark { color: green; font-size: 18px; }
.ct_title { font-size: 28px; text-align: center; margin: 20px 0; }

/* ─── Citizen charter table: horizontal scroll, no column squeeze ─── */
.card-box.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ct_table { width: 100%; border-collapse: collapse; }
.ct_table th, .ct_table td { white-space: nowrap; padding: 8px 12px; }
.snhead { font-size: 19px; font-weight: 700; color: #006A4E; border-left: 4px solid #F4A72A; padding-left: 10px; }
.subhead { font-size: 16px; font-weight: 600; color: #444; margin-bottom: 6px; }
.subheadf { font-size: 15px; font-weight: 600; color: #666; }
.ttle, .ttle2 { font-size: 18px; font-weight: 700; color: #333; }
.ttls { font-size: 22px; font-weight: 700; color: #006A4E; margin-bottom: 12px; }
.totalwrs { font-size: 20px; font-weight: 700; color: #006A4E; }
.txalc { text-align: center; }
.txhl { font-weight: 700; }
.txmrb { margin-right: 8px; }
.txpp { padding: 4px 8px; }
.wnidbc { font-size: 14px; color: #555; }
.wpbt { padding-bottom: 6px; }
.wlf { float: left; margin-right: 10px; }
.wrdh { font-weight: 700; color: #006A4E; }
.smnq { font-size: 16px; line-height: 1.7; }
.your-order { border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px; background: #fff; }
.your-order-table { width: 100%; border-collapse: collapse; }
.tbtr td { padding: 8px 10px; border-bottom: 1px solid #eee; font-size: 15px; }
.tbw { width: 200px; font-weight: 600; color: #555; }
.address-card { background: #f8f9fa; border: 1px solid #ddd; border-radius: 6px; padding: 12px; margin-bottom: 10px; }
.signature-box { text-align: center; padding: 10px 0; }
.signature-line { border-top: 1px solid #333; width: 200px; margin: 8px auto 4px; }
.signaturefull, .signaturem, .sigr { font-size: 14px; color: #333; text-align: center; }
.sommanpera { font-size: 16px; line-height: 1.8; }
.twoparab { column-count: 2; column-gap: 24px; }
.apllicsign { display: flex; align-items: center; gap: 12px; }
.applimg { width: 100px; height: 100px; object-fit: cover; border: 2px solid #ddd; border-radius: 4px; }

/* ─── Notice document ─── */
.notice-doc { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 32px 40px; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.notice-header { border-bottom: 4px double #555; padding-bottom: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.notice-header-logo img { width: 100px; height: auto; }
.notice-header-org { flex: 1; text-align: center; }
.notice-header-org h4 { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 3px; }
.notice-header-org .org-web { font-size: 13px; color: #006A4E; }
.notice-header-qr { text-align: center; }
.notice-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 16px; font-weight: 600; }
.notice-meta-no { color: #333; }
.notice-meta-date { color: #333; }
.notice-title { text-align: center; font-size: 22px; font-weight: 700; color: #111; margin: 16px 0 24px; padding-bottom: 12px; border-bottom: 1px dashed #ccc; }
.notice-body { font-size: 16px; line-height: 1.9; color: #333; text-align: justify; }
@media (max-width: 576px) {
    .notice-doc { padding: 18px 14px; }
    .notice-header { flex-direction: column; text-align: center; }
    .notice-header-logo img { width: 70px; }
    .notice-header-org h4 { font-size: 14px; }
    .notice-title { font-size: 17px; }
    .notice-body { font-size: 15px; }
}

/* ─── Search form ─── */
.tg-formsearch, .tg-formtheme { margin-bottom: 12px; }
.tg-btnsearch {
    background: #006A4E;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background .2s;
}
.tg-btnsearch:hover { background: #004d38; }

/* ─── Inner page main padding ─── */
main.tg-main, #tg-main.tg-main { padding: 0px 0; }
main:not([class]) > .container, main > .container:first-child {padding-top: 10px;padding-bottom: 50px;}

/* ─── Project category dashboard widgets ─── */
.dash-widget {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 18px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    min-height: 100px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow .2s, transform .2s;
    text-decoration: none;
    color: inherit;
}
.dash-widget:hover { box-shadow: 0 4px 14px rgba(0,106,78,.15); transform: translateY(-2px); }
.dash-widget-bg1 {
    width: 60px;
    height: 60px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    background: #006A4E;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-font {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* ─── Retradd / error display ─── */
.retradd {
    text-align: center;
    font-size: 20px;
    color: #ff0202;
    font-weight: 600;
}

/* ─── Tax & holding info table ─── */
.txhl { font-weight: 700; }
.mingh { min-height: 290px; }
.hnttl { font-size: 20px; font-weight: 700; color: #006A4E; }

/* ─── Address card ─── */
address { font-style: normal; }

/* ─── Success/payment pages ─── */
.bkash { color: #ffffff; font-weight: 700; font-size: 18px; }

/* ─── Search result / empty state ─── */
.mrms { text-align: center; font-size: 22px; color: #e80000; min-height: 220px; padding: 50px 20px; }

/* ─── Search empty-state box ─── */
.search-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 50px 24px;
    padding-bottom: 260px;
}
.search-empty-icon {
    font-size: 56px;
    color: #006A4E;
    opacity: .6;
    line-height: 1;
}
.search-empty-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0;
}
.search-empty-msg {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.7;
}
.search-empty-err {
    font-size: 16px;
    font-weight: 600;
    color: #c62828;
    margin: 0;
}
.search-empty-box .tg-formsearch {
    width: 100%;
    max-width: 480px;
    margin-bottom: 0;
}

/* ─── Status banner (due/ok) ─── */
.status-card        { border-radius: 8px; border-width: 2px; border-style: solid; }
.status-card-due    { border-color: #c62828; }
.status-card-ok     { border-color: #006A4E; }
.status-label-due   { font-size: 22px; font-weight: 700; color: #c62828; }
.status-label-ok    { font-size: 22px; font-weight: 700; color: #006A4E; }
.status-sub         { font-size: 14px; color: #666; margin-top: 3px; }
.owner-photo        { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; border: 2px solid #ddd; }

/* ─── Notice page misc ─── */
.trfns { font-size: 12px; color: #888; }
.cor { font-size: 17px; font-weight: 700; color: #006A4E; }

/* ─── Pending payment box ─── */
.pending-pay-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 60px 24px;
}
.pending-pay-icon { font-size: 54px; color: #e65100; opacity: .75; line-height: 1; }
.pending-pay-status { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #e65100; background: #fff3e0; border: 1px solid #ffcc80; border-radius: 20px; padding: 3px 14px; }
.pending-pay-ref { font-size: 15px; color: #666; margin: 0; }
.pending-pay-ref strong { color: #333; font-size: 17px; }
.pending-pay-amount { font-size: 32px; font-weight: 700; color: #006A4E; margin: 0; letter-spacing: .5px; }
.pending-pay-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.pending-pay-btns .btn { font-size: 15px; font-weight: 600; padding: 10px 24px; border-radius: 6px; }
.pending-pay-note { font-size: 13.5px; color: #6b7280; text-align: center; margin: 14px 0 0; line-height: 1.7; }
.paid-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 60px 24px;
}
.paid-box-icon { font-size: 54px; color: #006A4E; opacity: .8; line-height: 1; }
.paid-box-status { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #006A4E; background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 20px; padding: 3px 14px; }
.paid-box-msg { font-size: 18px; font-weight: 600; color: #222; margin: 0; }
.paid-box-ref { font-size: 15px; color: #555; margin: 0; }

/* ─── Form section divider header ─── */
.form-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f7f4;
    border-left: 4px solid #006A4E;
    border-radius: 0 6px 6px 0;
    padding: 9px 16px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #006A4E;
}
.form-section-head label { margin: 0; font-weight: 400; font-size: 14px; color: #333; cursor: pointer; }
.form-section-head input[type="checkbox"] { width: 16px; height: 16px; accent-color: #006A4E; cursor: pointer; }

/* ─── Address toggle block ─── */
.addr-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #006A4E;
    font-weight: 600;
    cursor: pointer;
    padding: 7px 12px;
    background: #f0f7f4;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px dashed #006A4E;
    width: fit-content;
}
.addr-toggle-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: #006A4E; }
