.common-footer-public-site{
    margin-top: auto !important;
    background-color: #01573C;
    padding: 18px 24px;
}

.common-footer-public-site .footer-bar{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.common-footer-public-site .footer-brand{
    display: flex;
    align-items: center;
    gap: 12px;
}

.common-footer-public-site .footer-brand-logo{
    width: 104px;
    height: 36px;
    object-fit: contain;
}

.common-footer-public-site .footer-brand-caption{
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.common-footer-public-site .footer-text{
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-align: right;
}

@media (max-width: 768px) {
    .common-footer-public-site .footer-bar{
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .common-footer-public-site .footer-brand{
        flex-direction: column;
        gap: 8px;
    }

    .common-footer-public-site .footer-brand-caption{
        padding-left: 0;
        border-left: none;
    }

    .common-footer-public-site .footer-text{
        text-align: center;
    }
}

#public-footer-container { /* Adjust this selector to target your footer */
    margin-top: auto !important; /* Pushes the footer to the bottom */
    width: 100%; /* Ensures the footer extends full width */
}
.col-md-public-site-1{
    flex:0 0 auto;
    width:11.1111111111%
}

.col-md-public-site-2{
    flex:0 0 auto;
    width:20%
}
.col-md-public-site-3{
    flex:0 0 auto;
    width:77.7777777778%;
}
.col-md-public-site-4{
    flex:0 0 auto;
    width: 33%;
}
.col-md-public-site-5{
    flex:0 0 auto;
    width: 50%;
}

.col-md-public-site-6{
    flex:0 0 auto;
    width:15%
}
.col-md-public-site-7{
    flex:0 0 auto;
    width:85%
}
.bg-tab-green {
    background-color:#01573C!important;
}
.icon-circle-div{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #01573C !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.bg-border-deep {
    background-color: #f0fcf4;
}
.border-deep{
    border: solid 1px rgba(185, 204, 199, 1)
}
.content-div-public-site {
    display: none;
    padding-left: 3rem;
}
.border-light-green{
    border: 1px solid #1EE196;
}
.fs-18-24-bold {
    font-size: 18px;
    font-weight: bold;
    line-height: 20px;
}
.fs-16-24-400 {
    font-size: 18px;
    font-weight: 400;
    line-height: 25px;
}
.fs-16-20-600 {
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}
.fs-15-400-grey {
    font-size: 15px;
    font-weight: 400;
    color: #504b4b;
}
.fs-16-400-grey {
     font-size: 14px;
     font-weight: 400;
     color: #504b4b;
 }
.fs-22-30-bold-white {
    font-size: 22px;
    font-weight: bold;
    line-height: 30px;
    color: white;
}
.fs-18-300-white {
    font-size: 18px;
    font-weight: 300;
    color: white;
}
.d-common-font {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    text-align: center !important;
}
.d-btn {
    background-color: #01573C !important;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 2px!important;
}

.d-btn:hover {
    background-color: #133D30 !important;
    border: 1px solid #133D30;
    color: #fff !important;
}

.anti-d-plus-btn {
    background-color: #FFFFFF !important;
    color: #01573C;
    border: 1px solid #01573C;
    border-radius: 2px!important;
}

.anti-d-plus-btn:hover {
    background-color: #01573C !important;
    border: 1px solid #01573C;
    color:  white !important;
}


.border-right{
    border-right: 1px solid black;
}
.nav-item2 + .nav-item2 {
    border-left: solid 1px rgb(199, 203, 207);
    height: 37px;
    margin: 0;
}

.navbar-light .navbar-nav .nav-link{
    color: white !important;
    font-weight: 600;
}

.nav-item2.active .nav-link {
    color: #01573C !important; /* This will enforce the text color change */
}

.nav-item2.active {
    background-color: #ECFDF8;
}

.nav-link2.full-width-link {
    display: flex; /* Make the link fill the nav-item */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    height: 100%; /* Make the link take full height of its parent */
    width: 100%; /* Make the link take full width of its parent */
}


body {
    height: auto !important;
    min-height: 100vh !important;
}

.content-wrapper, .main-content, .lighter-green-background{
    background-color: #ffffff !important;
    height: auto !important;
    flex: 1 0 auto !important;
}


/**/
.carousel-item {
    height: 100%; /* Full height of the carousel */
    position: relative;
}

.carousel-item img {
    width: 100%; /* Full width of the carousel */
    height: auto; /* Responsive height */
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
    object-fit: cover; /* Ensures no cropping */
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0; /* Align to the left edge */
    transform: none; /* Remove centering transform */
    width: 100%; /* Full width */
    padding: 5px 20px; /* Reduced padding height, maintain horizontal padding */
    display: flex; /* Flexbox for layout */
    justify-content: space-between; /* Space between text block and button */
    align-items: center; /* Vertically center content */
    background-color: rgba(1, 87, 60, 1); /* Adjust transparency and color */
    color: white;
}

.carousel-caption p, .carousel-caption a {
    margin: 0; /* Remove any default margin */
}

.carousel-item::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 87, 60, 1) 0%, rgba(2, 189, 130, 0) 30%);
    /*background: rgba(0, 0, 0, 0.7); !* Dark overlay to enhance text visibility *!*/
}



.carousel-indicators {
    position: absolute;
    top: 82%;
    z-index: 15; /* Ensures they are visible on top of the image */
    text-align: center;
    list-style: none;
}

.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 10px; /* change width */
    height: 10px; /* change height */
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    color: rgba(255, 255, 255, 1);
    background-clip: padding-box;
    border: 1px rgba(30, 225, 150, 1) solid;
    border-radius: 50%; /* Fully rounded for dots */
    opacity: 0.5; /* Slightly transparent when inactive */
    transition: opacity .6s ease;
}
.carousel-indicators [data-bs-target].active {
    width: 30px; /* Wider to appear as a dash */
    height: 10px;
    border-radius:15px; /* Less rounded for a dash-like appearance */
    background-color: rgba(30, 225, 150, 1); /* Keeps the white color */
    opacity: 1; /* Fully opaque to stand out */
}

.carousel-capsule-div {
    background-color: rgba(19, 61, 48, 1);
    color: rgba(233, 251, 25, 1); /* White text, change as needed */
    padding: 5px 10px; /* Vertical and horizontal padding */
    border-radius: 50px; /* Fully rounded ends */
    display: inline-block; /* Only as wide as necessary */
    text-align: center; /* Center text inside the div */
}
.capsule-div {
    background-color: #d8ece4;
    color: rgba(1, 87, 60, 1); /* White text, change as needed */
    padding: 5px 10px; /* Vertical and horizontal padding */
    border-radius: 50px; /* Fully rounded ends */
    display: inline-block; /* Only as wide as necessary */
    text-align: center; /* Center text inside the div */
}

.bg-light-green{
    background-color: #d8ece4;;
}
.bg-other-information{
 background-color: rgba(236, 249, 246, 1)
}
.general-tab-row-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(185, 204, 199, 1);
    border-radius: 10px;
    color: rgba(33, 37, 41, 1);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    transition: border-color 0.3s ease, color 0.3s ease;
    overflow-wrap: break-word;
    height: 80px;
}
.general-tab-row-item span {
    flex: 1; /* Allow the span to take available space */
    white-space: normal; /* Ensure text can wrap */
    word-wrap: break-word; /* Ensure long words break to the next line */
    text-align: left;
}
.general-tab-row-item i {
    margin-left: 10px; /* Space between text and icon */
}

.full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
}

.general-tab-row-item:hover, .general-tab-row-item.active {
    border-color: rgba(1, 87, 60, 1);
    color: rgba(1, 87, 60, 1);
}



.public-site-tab-text {
    color: rgba(33, 37, 41, 1); /* Default text color */
    font-weight: 600;
}

/*upper tab css*/
.container-tab {
    /* Removes whitespace nodes between inline-block elements */
    white-space: nowrap;
}
.tabs-wrapper {
    /*width: fit-content; !* Fits to the content size *!*/
    margin: 0 auto; /* Centers the wrapper horizontally */
}

.custom-tabs-container input[type="radio"] {
    display: none; /* Hide radio inputs */
}
.custom-tabs-container label {
    display: inline-block;
    font-size: 16px;
    height: 45px;
    line-height: 15px;
    padding: 15px 10px 5px; /* Adjust top padding to lower the text start */
    width: 19%; /* Adjust based on the number of tabs */
    text-align: center;
    color: rgba(33, 37, 41, 1); /* Default text color */
    font-weight: 600;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-right: 10px;
    box-sizing: border-box;
}
.custom-tabs-container label:hover, .custom-tabs-container input[type="radio"]:checked + label {
    background: #d8ece4; /* Background on hover and when selected */
}

.custom-tabs-container label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* Slightly offset to be visible below the tab */
    width: 100%; /* Full width of the label */
    height: 2px;
    background-color: #b2f4d9; /* Light grey color for the underline */
    opacity: 0.5; /* Make it less pronounced when not selected */
    transition: background-color 0.3s ease;
}

.custom-tabs-container input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Full width of the label */
    border-bottom: 1px solid #01573C;
    background-color: #01573C;
    height: 2px; /* Maintain bold bottom border when selected */
    bottom: -2px; /* Maintain position just below the tab */
}

.custom-tabs-container input[type="radio"]:checked + label::before {
    content: "";
    position: absolute;
    left: calc(70% + 50px); /* Adjust this to control where the triangle points */
    bottom: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(1, 87, 60, 1); /* Triangle color and flip */
}
.custom-tabs-container label:last-child {
    margin-right: 0; /* No margin for the last label to prevent extra space */
}

.custom-tabs-container .content-container {
    position: relative;
    min-height: 120px;
    /* Adjust based on content size */
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 70px;/* Space for the triangle */
}

.custom-tabs-container .content {
    position: absolute;
    padding: 10px;
    width: 100%;
    top: 0;
    opacity: 0;
    transition: opacity 0.25s ease, top 0.25s ease;
    pointer-events: none;
}

.custom-tabs-container #tab1:checked ~ .content-container #c1,
.custom-tabs-container #tab2:checked ~ .content-container #c2,
.custom-tabs-container #tab3:checked ~ .content-container #c3,
.custom-tabs-container #tab4:checked ~ .content-container #c4,
.custom-tabs-container #tab5:checked ~ .content-container #c5 {
    opacity: 1; /* Show the content when tab is selected */
    pointer-events: auto;
}


/*New tab*/
.custom-tab-container {
    justify-content: space-around;
    padding: 10px 0;
}

.custom-tab-link {
    padding: 10px 20px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: background-color 0.3s;
    font-weight: 600;
    font-size: 16px;
}

.custom-tab-link.active {
    color: rgba(1, 87, 60, 1);
    border-bottom: 2px solid rgba(1, 87, 60, 1);
}

.custom-tab-content .custom-content {
    display: none;
    border-top: none;
}

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

.tutorial-card {
    border: 2px solid rgba(219, 235, 229, 1);
    border-radius: 10px;
}
.tutorial-card .card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    object-fit: cover;
    height: 250px;
    filter: brightness(60%);
}
.video-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    position: absolute;
    width: 50px; /* Adjust the size as needed */
    height: 50px; /* Adjust the size as needed */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Ensure the icon does not interfere with the click */
}
.bg-lighter-green-capsule-div{
    background-color: rgba(209, 255, 241, 1);
}

.tutorial-card-capsule-div {
    color: rgba(1, 87, 60, 1); /* White text, change as needed */
    padding: 5px 20px !important; /* Vertical and horizontal padding */
    display: inline-block; /* Only as wide as necessary */
    text-align: center; /* Center text inside the div */
    font-size: 14px;
    border-radius: 5px;
}
.tutorial-card .card-text {
    color: rgba(1, 87, 60, 1);
    font-size: 18px;
    font-weight: 500;
}

/*Download Tab*/

.search-box-download-tab .btn {
    background-color: rgba(1, 87, 60, 1);
    color: white;
}
.search-box-download-tab input[type="text"] {
    border-right: none;
}
.search-box-download-tab .btn:hover {
    background-color: white !important;
    border: 1px solid rgba(1, 87, 60, 1);
    color: rgba(1, 87, 60, 1);
}
#downloadTable {
    border: 1px solid rgba(185, 204, 199, 1);
    border-collapse: collapse;
    width: 100%; /* Ensures the table stretches to the container if not already set */

}
#downloadTable th, #downloadTable td {
    border-right: 1px solid rgba(185, 204, 199, 1);
}

#downloadTable th:first-child, #downloadTable td:first-child {
    border-left: 1px solid rgba(185, 204, 199, 1);
}

#downloadTable th:last-child, #downloadTable td:last-child {
    border-right: none;
}

.table-header-public-site {
    background-color: rgba(219, 235, 229, 1);
    color: rgba(33, 37, 41, 1);
    font-weight: 600;
}

.table-row-public-site:nth-child(even) {
    background-color: rgba(236, 249, 246, 1);
}

.table-row-public-site:nth-child(odd) {
    background-color: #FFFFFF;
}

.table-row-public-site .details-column:not(:last-child) {
    border-bottom: 2px solid #000;
}

.table-row-public-site:last-child .details-column {
    border-bottom: none;
}
.sub-row {
    display: flex;              /* Establishes a flex container */
    justify-content: space-between; /* Positions children at either end */
    align-items: center;        /* Aligns items vertically in the center */
}

.sub-row:not(:last-child) {
    border-bottom: 1px solid rgba(222, 226, 230, 1);
    padding-bottom: 0.5em;
    margin-bottom: 0.5em;
}
.header-content {
    display: flex;
    justify-content: space-between; /* Aligns children (text and icon) to either end */
    align-items: center;
    width: 100%; /* Ensures the div takes full width of the th */
}
.header-content i {
    margin-left: auto; /* Pushes the icon to the far right */
    padding-top: 1px; /* Align vertically if needed */
    color: rgb(133, 147, 143);
}

/*feetab css*/
#feeTable{
    width: 100%; /* Adjust the table width as needed */
    border-collapse: collapse; /* Ensures borders are merged */
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}
#feeTable td {
    padding: 10px; /* Adds padding for text within cells */
    border: none;
}

#feeTable tr:nth-child(odd) {
    background-color: #FFFFFF; /* White background for odd rows */
}

#feeTable tr:nth-child(even) {
    background-color: rgba(245, 245, 245, 1); /* Grey background for even rows */
}
.stampTable {
    width: 100%;
    border-color: #ccc !important;
}
.stampTable,
.stampTable th,
.stampTable td{
    border-color: #ccc !important;
}
.bg-fee-table-head{
    background-color: rgba(226, 237, 233, 1);
}
.table-row-stamp-table:nth-child(even) {
    background-color: rgba(245, 245, 245, 1);
}

.table-row-stamp-table:nth-child(odd) {
    background-color: #FFFFFF;
}
.bg-capsule-div-grey{
    background-color: rgba(245, 245, 245, 1);
}

/*faqTab*/
.accordion-faq .accordion-faq-item.expanded {
    border-color: rgba(1, 87, 60, 1); /* Border color when expanded */
}

.accordion-faq .accordion-faq-item {
    border: 1px solid #ccc; /* Default light gray border when collapsed */
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-faq .faq-toggle {
    display: flex;
    color: rgba(33, 37, 41, 1);
    padding: 10px;
    width: 100%;
    text-align: left !important;
    border: none;
    outline: none;
    justify-content: space-between !important;
}

.accordion-faq .faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
    text-align: left!important;
}

.signup-card {
    width: 100%;
    max-width: 960px;
}

.signup-btn {
    cursor: pointer;
}

.signup-btn:disabled {
    background-color: #adb5bd;
    opacity: 0.65;
    cursor: not-allowed;
}

/* --- Top header outline button ---
   public pages load only common.css + public-site.css (see baseCssHead),
   so .btn-outline-dark-green from style.css is not available here. */
.btn-outline-green {
    color: #01573C;
    background-color: #ffffff;
    border: 1px solid #01573C;
    border-radius: 2px !important;
}

.btn-outline-green:hover {
    color: #01573C;
    background-color: #ECFDF8;
    border-color: #01573C;
}

/* --- Top header branding ---
   Size logos by height only so each keeps its native aspect ratio
   (govt.png is 46x46, smart_rjsc_logo.png is 108x42). */
.public-header-seal {
    height: 50px;
    width: auto;
}

.public-header-logo {
    height: 50px;
    width: auto;
}

/* --- Top header actions — center vertically in full column height ---
   The column stretches to match the brand row height, but its inner
   flex child only wraps the button content. This ensures true centering. */
.public-header-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* --- Top header (logo/title/actions) --- */
@media (max-width: 991px) {
    .public-top-header .col-md-1 {
        display: none;
    }
    .public-top-header .row.col-md-10 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0;
    }
    .public-header-brand,
    .public-header-actions {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .public-header-actions {
        margin-top: 10px;
    }
    .public-header-actions .justify-content-end {
        justify-content: flex-start !important;
    }
}

@media (max-width: 575px) {
    .public-header-brand .d-flex.gap-3 {
        flex-wrap: wrap;
    }
    .public-header-brand img {
        height: 36px !important;
        width: auto !important;
    }
    .public-header-brand .fs-16-24-500 {
        font-size: clamp(12px, 3.5vw, 14px);
        line-height: 1.3;
    }
    .public-header-actions .w-120px,
    .public-header-actions .w-170px {
        width: auto !important;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* --- Login page (illustration + form split) --- */
.login-div {
    width: 50%;
    margin-left: 50%;
}

@media (max-width: 991px) {
    #design-bg,
    #design-bg-admin {
        background-image: none;
    }
    .login-div {
        width: 100%;
        margin-left: 0;
    }
    .login-wrapper-div {
        width: 100%;
        max-width: 500px;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .login-div .vh-87 {
        height: auto;
    }
}

/* --- Tablet (max-width: 991px) --- */
@media (max-width: 991px) {
    /* Column classes - full width on tablet */
    .col-md-public-site-1,
    .col-md-public-site-2,
    .col-md-public-site-3,
    .col-md-public-site-4,
    .col-md-public-site-5,
    .col-md-public-site-6,
    .col-md-public-site-7 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Responsive typography - fluid scaling */
    .fs-18-24-bold {
        font-size: clamp(16px, 2.5vw, 18px);
    }
    .fs-16-24-400 {
        font-size: clamp(15px, 2.2vw, 18px);
    }
    .fs-16-20-600 {
        font-size: clamp(14px, 2vw, 16px);
    }
    .fs-22-30-bold-white {
        font-size: clamp(18px, 3vw, 22px);
    }
    .fs-18-300-white {
        font-size: clamp(16px, 2.5vw, 18px);
    }
    .d-common-font {
        font-size: clamp(13px, 2vw, 14px) !important;
    }
}

/* --- Mobile Accordion (Tabs → Accordion) --- */
.mobile-accordion-input {
    display: none;
}

/* Other Information section - stack on mobile */
@media (max-width: 767px) {
    .bg-other-information .d-flex {
        flex-direction: column;
    }
    .bg-other-information .col-md-3,
    .bg-other-information .col-md-9 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .bg-other-information .col-md-3 {
        margin-bottom: 15px;
    }
}
.mobile-accordion-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.mobile-accordion-label:hover {
    background-color: #e9ecef;
}
.mobile-accordion-label i.fa-chevron-down {
    transition: transform 0.3s ease;
}
.mobile-accordion-input:checked + .mobile-accordion-label {
    background-color: #ECFDF8;
    border-color: rgba(1, 87, 60, 1);
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
}
.mobile-accordion-input:checked + .mobile-accordion-label i.fa-chevron-down {
    transform: rotate(180deg);
}
.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding: 0 15px;
    background-color: #ffffff;
}
.mobile-accordion-input:checked + .mobile-accordion-label + .mobile-accordion-content {
    max-height: 500px;
    padding: 15px;
}

/* --- Hamburger Menu & Offcanvas Drawer --- */
@media (max-width: 991px) {
    .nav-mobile-bar {
        background-color: #01573C;
    }
}
.hamburger-btn {
    border: none;
    padding: 8px 12px;
    margin-right: 10px;
}
.hamburger-btn .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas drawer styling */
.nav-offcanvas {
    width: 280px;
    background-color: #ffffff;
}
.nav-offcanvas-header {
    background-color: #01573C;
    color: #ffffff;
    padding: 1rem 1.25rem;
}
.nav-offcanvas-body {
    padding: 0;
}
.nav-offcanvas-item {
    border-bottom: 1px solid rgba(185, 204, 199, 0.5);
}
.nav-offcanvas .nav-offcanvas-item .nav-link {
    color: #212529 !important;
    font-weight: 500;
    padding: 12px 20px;
    transition: background-color 0.2s ease;
}
.nav-offcanvas .nav-offcanvas-item .nav-link:hover,
.nav-offcanvas .nav-offcanvas-item.active .nav-link {
    background-color: #ECFDF8;
    color: #01573C !important;
}

/* --- Mobile (max-width: 767px) --- */
@media (max-width: 767px) {
    /* Ensure full-width stacking on mobile */
    .col-md-public-site-1,
    .col-md-public-site-2,
    .col-md-public-site-3,
    .col-md-public-site-4,
    .col-md-public-site-5,
    .col-md-public-site-6,
    .col-md-public-site-7 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Responsive typography - mobile sizes */
    .fs-18-24-bold {
        font-size: clamp(14px, 4vw, 16px);
    }
    .fs-16-24-400 {
        font-size: clamp(13px, 3.5vw, 15px);
    }
    .fs-16-20-600 {
        font-size: clamp(13px, 3.5vw, 15px);
    }
    .fs-22-30-bold-white {
        font-size: clamp(16px, 5vw, 20px);
    }
    .fs-18-300-white {
        font-size: clamp(14px, 4vw, 16px);
    }
    .d-common-font {
        font-size: clamp(12px, 3vw, 14px) !important;
    }

    /* Carousel responsive */
    .carousel-item img {
        height: auto !important;
        min-height: 200px;
    }
    .carousel-caption {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    .carousel-caption .btn {
        font-size: 14px;
        padding: 5px 15px;
    }
    .carousel-indicators {
        top: 85%;
    }
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
    }
    .carousel-indicators [data-bs-target].active {
        width: 24px;
        height: 8px;
    }

    /* Tabs responsive */
    .custom-tabs-container label {
        width: 100% !important;
        margin-bottom: 5px;
    }
    .container-tab {
        white-space: normal;
    }

    /* Downloads table responsive */
    .download-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 15px 12px;
    }
    .download-header .col-md-4 {
        width: 100%;
    }
    .download-header .search-box-download-tab {
        width: 100%;
    }
    .download-header .search-box-download-tab input[type="text"] {
        min-width: 0;
    }
    .table-responsive {
        border: none;
    }

    /* Fee page responsive */
    .fee-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 20px 15px 12px;
    }
    .fee-header .p-1 {
        padding: 0 !important;
    }
    .fee-header .tutorial-card-capsule-div {
        font-size: clamp(12px, 3vw, 14px);
        white-space: nowrap;
    }

    /* Tutorial cards responsive */
    .custom-tab-content .d-flex {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    .custom-tab-content .tutorial-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 !important;
    }
    .custom-tab-content .tutorial-card .card-img-top {
        height: 180px;
    }
    .custom-tab-link {
        font-size: clamp(12px, 3vw, 14px);
        padding: 6px 12px;
    }

    /* Signup form responsive */
    .signup-card .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Tutorials tab (Tutorials nav section) responsive */
    .tutorial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .tutorial-header .col-md-8,
    .tutorial-header .col-md-4 {
        width: 100%;
    }
    .tutorial-tag-list {
        flex-wrap: wrap;
        gap: 8px;
    }
    .tutorial-tag-list .tutorial-card-capsule-div {
        font-size: clamp(12px, 3vw, 14px);
        white-space: nowrap;
    }
    .tutorial-list .d-flex {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    .tutorial-list .tutorial-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 !important;
    }
    .tutorial-list .tutorial-card .card-img-top {
        height: 180px;
    }

    /* Global mobile padding reduction */
    .px-5 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Contacts office cards */
    .contacts-cards .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* About-us entity badges */
    .about-badges .bg-capsule-div-grey {
        flex: 0 0 auto;
    }
}

/* --- Public application status lookup --- */
.app-status-row {
    padding-top: 8px;
}

.app-status-label {
    color: #5b6670;
}

/* Registration numbers and long entity names have no natural break points */
.app-status-value,
.global-error {
    overflow-wrap: anywhere;
}

.app-status-note {
    font-size: clamp(12px, 3vw, 13px);
    line-height: 1.5;
}

@media (max-width: 575px) {
    .app-status-label {
        font-weight: 600;
    }

    .app-status-value {
        padding-bottom: 4px;
    }

    /* Stacked label/value pairs need separation that the two-column layout gets from its gutter */
    .app-status-row + .app-status-row {
        border-top: 1px solid #eef1f3;
        margin-top: 4px;
    }
}

/* Public page hero background - root-relative asset URL (Replaced inline style="background-image: url(../images/public-site-background.svg)") */
.public-page-hero-bg { background-image: url(/images/public-site-background.svg); }

/* Home-page illustration band for public pages: the tiling hexagon lattice
   under the same vertical white-to-mint wash the home hero band uses, so the
   floating white cards read against a patterned, not bare, background.
   Painted as plain stacked backgrounds, not positioned layers: a z-index on
   the band's children would trap the nav's offcanvas drawer beneath
   Bootstrap's body-level backdrop on mobile. */
.public-page-band {
    /* Lighter wash than the home band: these bands are only a viewport tall,
       so the home band's near-opaque white ends would hide most of the lattice. */
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--ebrs-color-surface) 55%, transparent) 0%,
            color-mix(in srgb, var(--ebrs-color-accent-subtle) 35%, transparent) 40%,
            color-mix(in srgb, var(--ebrs-color-accent-subtle) 35%, transparent) 70%,
            color-mix(in srgb, var(--ebrs-color-surface) 55%, transparent) 100%),
        url(/images/public-site-background.svg) center top / 200px 201px repeat;
}

/* Form pages stretch the band between nav and footer so a short card sits
   in the middle of the viewport instead of hugging the nav. */
body:has(> .public-page-band) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:has(> .public-page-band) > .public-page-band {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.public-form-stage {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--ebrs-space-lg);
    padding: clamp(24px, 6vh, 64px) var(--ebrs-space-md);
    /* Stage is a <main>; the app shell paints every main with the canvas colour */
    background: transparent;
}

/* Standard public form card: header (title + one-line purpose), divider,
   fields, then the action row. Results render as a second card below. */
.public-form-card {
    width: 100%;
    max-width: 560px;
    background: var(--ebrs-color-surface);
    border: 1px solid var(--ebrs-color-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(21, 25, 24, .04), 0 12px 32px -12px rgba(21, 25, 24, .14);
    font-family: var(--ebrs-font-sans);
    color: var(--ebrs-color-fg);
}

.public-form-card--wide {
    max-width: 680px;
}

.public-form-card__header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--ebrs-color-border);
}

.public-form-card__title {
    margin: 0;
    font-size: var(--ebrs-font-size-xl);
    font-weight: var(--ebrs-font-weight-semibold);
    line-height: 1.3;
    color: var(--ebrs-color-fg-strong);
    text-wrap: balance;
}

.public-form-card__subtitle {
    margin: 6px 0 0;
    font-size: var(--ebrs-font-size-md);
    line-height: 1.5;
    color: var(--ebrs-color-fg-muted);
}

.public-form-card__link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    font-size: var(--ebrs-font-size-md);
    font-weight: var(--ebrs-font-weight-medium);
    color: var(--ebrs-color-accent);
    text-decoration: none;
}

.public-form-card__link:hover {
    color: var(--ebrs-color-accent-hover);
    text-decoration: underline;
}

.public-form-card__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 32px 28px;
}

.public-form-card__actions {
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--ebrs-color-border);
}

.public-form-card .form-label {
    margin-bottom: 6px;
    font-size: var(--ebrs-font-size-md);
    font-weight: var(--ebrs-font-weight-medium);
    line-height: 1.4;
    color: var(--ebrs-color-fg);
}

.public-form-card .form-label .required {
    color: var(--ebrs-color-danger);
}

.public-form-card .form-control,
.public-form-card .form-select {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--ebrs-color-fg-strong);
    border: 1px solid var(--ebrs-color-border-strong);
    border-radius: 8px;
    box-shadow: var(--ebrs-shadow-xs);
    transition: border-color .15s ease-out, box-shadow .15s ease-out;
}

.public-form-card .form-select {
    padding-right: 40px;
}

.public-form-card textarea.form-control {
    min-height: 128px;
}

.public-form-card .form-control::placeholder {
    color: var(--ebrs-color-fg-subtle);
}

.public-form-card .form-control:focus,
.public-form-card .form-select:focus {
    border-color: var(--ebrs-color-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ebrs-color-accent) 18%, transparent);
    outline: none;
}

.public-form-card .form-hint {
    margin: 6px 0 0;
    font-size: var(--ebrs-font-size-sm);
    line-height: 1.45;
    color: var(--ebrs-color-fg-muted);
}

.public-form-submit {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: var(--ebrs-font-weight-semibold);
    color: var(--ebrs-color-fg-on-accent);
    background: var(--ebrs-color-accent);
    border: 1px solid var(--ebrs-color-accent);
    border-radius: 8px;
    transition: background-color .15s ease-out, border-color .15s ease-out;
}

.public-form-submit:hover,
.public-form-submit:focus-visible {
    color: var(--ebrs-color-fg-on-accent);
    background: var(--ebrs-color-accent-hover);
    border-color: var(--ebrs-color-accent-hover);
}

.public-form-submit:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ebrs-color-accent) 25%, transparent);
}

/* btn-outline-green forces a 2px radius with !important */
.public-form-secondary {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: var(--ebrs-font-weight-semibold);
    border-radius: 8px !important;
}

@media (max-width: 575.98px) {
    .public-form-card__header {
        padding: 22px 20px 16px;
    }

    .public-form-card__body {
        padding: 20px 20px 24px;
    }
}
