body.home-reference-page {
    background: #f6f8ef;
    color: #0f1b13;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.25;
}

body.home-reference-page .container {
    max-width: 1120px;
    padding: 0 14px;
}

body.home-reference-page .udmdr-nav {
    position: relative;
    top: auto;
    z-index: 5;
    background: #09512d;
    box-shadow: none;
}

body.home-reference-page .udmdr-nav .container {
    max-width: 760px;
    padding: 0;
}

body.home-reference-page .nav-menu {
    justify-content: center;
}

body.home-reference-page .nav-menu li {
    flex: 0 0 auto;
}

body.home-reference-page .nav-link {
    padding: 10px 22px 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 3px solid transparent;
}

body.home-reference-page .nav-link:hover,
body.home-reference-page .nav-link.active {
    background: rgba(0, 0, 0, .1);
    border-bottom-color: #d7bd5b;
    color: #fff;
}

body.home-reference-page .dropdown-menu {
    background: #0b482b;
}

.udmdr-home {
    position: relative;
    min-height: 474px;
    background:
        radial-gradient(circle at 1% 48%, rgba(211, 190, 129, .26) 0 48px, transparent 49px),
        radial-gradient(circle at 96% 70%, rgba(211, 190, 129, .20) 0 74px, transparent 75px),
        linear-gradient(180deg, #f7faf3 0%, #f2f7ef 100%);
    overflow: hidden;
}

.udmdr-home::before,
.udmdr-home::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background:
        repeating-radial-gradient(circle, rgba(181, 166, 102, .22) 0 1px, transparent 2px 13px);
    border-radius: 50%;
    opacity: .55;
    pointer-events: none;
}

.udmdr-home::before {
    left: -74px;
    bottom: -78px;
}

.udmdr-home::after {
    right: -80px;
    top: 214px;
}

.home-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../../../images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background:
        linear-gradient(90deg, rgba(12, 73, 47, .78), rgba(18, 93, 61, .42), rgba(12, 73, 47, .68)),
        linear-gradient(180deg, #78908a 0%, #bcc9b6 58%, #5a7f5a 59%, #315a37 100%);
    border-bottom: 1px solid rgba(12, 55, 35, .35);
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../../../images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background:
        linear-gradient(90deg, transparent 0 6%, rgba(20, 49, 58, .45) 6% 11%, transparent 11% 14%, rgba(11, 55, 58, .4) 14% 20%, transparent 20% 62%, rgba(28, 57, 50, .42) 62% 68%, transparent 68% 72%, rgba(73, 41, 38, .45) 72% 78%, transparent 78%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 35px);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 82% 100%, 78% 52%, 74% 100%, 59% 100%, 54% 18%, 48% 100%, 0 100%); */    
    opacity: .78;
}

.home-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 54px;
    opacity: .9;
}

.hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 18px;
}

.hero-pill {
    display: inline-flex;
    min-width: 252px;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    border-radius: 36px;
    border: 3px solid #d1b65a;
    background: linear-gradient(180deg, #4b985c 0%, #2d7845 100%);
    box-shadow: 0 3px 0 rgba(36, 63, 29, .55), inset 0 1px 0 rgba(255,255,255,.4);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.12;
}

.hero-pill:hover {
    color: #fff;
    transform: translateY(-1px);
}

.home-panel {
    position: relative;
    z-index: 1;
    max-width: 1023px;
    margin: 70px auto 0;
}

.home-utility-row {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: start;
}

.home-block {
    background: transparent;
}

.home-block h2 {
    margin: 0 0 15px;
    color: #0b0f0d;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.verification-form {
    display: grid;
    grid-template-columns: 155px 1fr 40px;
    width: 360px;
    border: 1px solid #a4aea0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.verification-form input {
    min-width: 0;
    height: 30px;
    padding: 0 9px;
    border: 0;
    border-right: 1px solid #a4aea0;
    color: #222;
    font-size: 12px;
}

.verification-form input:focus {
    outline: 1px solid #237344;
    outline-offset: -1px;
}

.verification-form button {
    position: relative;
    width: 40px;
    border: 0;
    background: #1f7745;
    color: #fff;
    cursor: pointer;
}

.verification-form button::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 11px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.verification-form button::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 24px;
    width: 9px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
    transform-origin: left center;
}

.home-help-text {
    margin-top: 6px;
    color: #0b0f0d;
    font-size: 11px;
    font-weight: 700;
}

.portal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 4px;
    background: #e4ebe0;
    border: 1px solid #d3dbce;
    color: #101510;
    font-size: 12px;
    font-weight: 700;
}

.portal-btn:hover {
    background: #1f7745;
    color: #fff;
}

.features-area {
    max-width: 760px;
    margin: 26px auto 28px;
    text-align: center;
}

.features-area h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    align-items: start;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #0b0f0d;
}

.feature-visual {
    position: relative;
    width: 70px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #111;
    font-weight: 900;
    font-size: 18px;
}

.feature-visual.child::before {
    content: "";
    position: absolute;
    width: 54px;
    height: 54px;
    border: 5px solid #c61d22;
    border-radius: 50%;
    transform: rotate(-20deg);
}

.feature-visual.child::after {
    content: "";
    position: absolute;
    width: 62px;
    height: 5px;
    background: #c61d22;
    transform: rotate(-35deg);
}

.feature-visual.id-card,
.feature-visual.certificate {
    border: 3px solid #799f91;
    border-radius: 5px;
    background: linear-gradient(180deg, #f6fbf3, #cdded3);
    box-shadow: inset 0 0 0 3px #edf4ec;
}

.feature-visual.id-card::after {
    content: "NO";
    position: absolute;
    right: -9px;
    bottom: -4px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 3px solid #c61d22;
    border-radius: 50%;
    background: #eef6eb;
    color: #c61d22;
    font-size: 11px;
}

.feature-visual.database {
    border-radius: 50%;
    background: radial-gradient(circle, #b8d8f4 0 45%, #8cb7df 46% 66%, transparent 67%);
}

.feature-visual.database::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 42px;
    border-radius: 50%;
    background: repeating-linear-gradient(180deg, #d9a52c 0 6px, #f6cb55 6px 12px);
    border: 2px solid #80682a;
}

.feature-visual.certificate::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1a8d54;
    border: 2px solid #09512d;
}

.feature-visual.integration {
    width: 86px;
    color: #251515;
    font-size: 10px;
}

.feature-visual.integration::before,
.feature-visual.integration::after {
    content: "";
    position: absolute;
    top: 10px;
    width: 28px;
    height: 42px;
    border: 2px solid #2f332e;
    background: #c75b42;
}

.feature-visual.integration::before {
    left: 3px;
    border-radius: 2px;
}

.feature-visual.integration::after {
    right: 2px;
    background: linear-gradient(180deg, #d7d7d1 0 26%, #a9ada3 27% 100%);
    clip-path: polygon(50% 0, 100% 28%, 100% 100%, 0 100%, 0 28%);
}

.feature-card h3 {
    margin: 0;
    max-width: 130px;
    color: #0b0f0d;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.feedback-tab {
    position: fixed;
    right: 0;
    top: 45%;
    z-index: 20;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 8px 6px;
    background: #679c6c;
    color: #fff;
    border-radius: 4px 0 0 4px;
    font-size: 11px;
}

body.home-reference-page .udmdr-footer {
    margin-top: 0;
    background: #09512d;
    color: #fff;
}

body.home-reference-page .footer-top {
    display: none;
}

body.home-reference-page .footer-bottom {
    padding: 9px 0;
    background: #09512d;
}

body.home-reference-page .footer-bottom-content {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 12px;
    align-items: center;
    color: #fff;
    text-align: left;
}

body.home-reference-page .footer-bottom-content::before {
    content: "Helpdesk: 16122";
    color: #fff;
    font-size: 12px;
}

body.home-reference-page .footer-text {
    color: #fff;
    font-size: 11px;
    text-align: center;
}

body.home-reference-page .footer-text::before {
    content: "Government of Bangladesh, Ministry of Law, Justice & Parliamentary Affairs";
    display: block;
}

body.home-reference-page .footer-text {
    font-size: 0;
}

body.home-reference-page .footer-text::before {
    font-size: 11px;
}

body.home-reference-page .footer-links {
    justify-content: flex-end;
    gap: 7px;
}

body.home-reference-page .footer-links a,
body.home-reference-page .divider {
    color: #fff;
    font-size: 11px;
}

body.home-reference-page .footer-links a:last-child,
body.home-reference-page .footer-links .divider:last-of-type {
    display: none;
}

@media (max-width: 900px) {
    body.home-reference-page .udmdr-nav .container,
    .home-panel,
    .features-area {
        max-width: 100%;
    }

    .home-utility-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    body.home-reference-page .nav-menu {
        justify-content: flex-start;
    }

    .home-hero {
        min-height: 210px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 14px;
    }

    .hero-pill {
        width: min(300px, 90vw);
    }

    .verification-form {
        grid-template-columns: 1fr 1fr 40px;
        width: 100%;
    }

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

    body.home-reference-page .footer-bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    body.home-reference-page .footer-links {
        justify-content: center;
    }
}
