/* ==========================================================================
   Consumer Education Page Styles
   ========================================================================== */

.consumer-education-section.how-regulation {
    background-color: rgba(26, 43, 60, 0.1);
}

.consumer-education-intro {
    margin-bottom: 3vw;
}

.consumer-education-intro h1 {
    margin-bottom: 1vw;
    max-width: 55vw;
}

.consumer-education-desc {
    line-height: 1.35;
    margin-bottom: 0;
    max-width: 62vw;
}

.consumer-education-grid .regulatory-card {
    align-items: center;
    border-radius: 0.45vw;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    min-height: auto;
    padding: 1.3vw 1.5vw;
    position: relative;
}

.consumer-education-grid .regulatory-card:hover {
    box-shadow: none;
    transform: none;
}

.consumer-education-grid .regulatory-card .regul-card-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.35vw;
    justify-content: center;
}

.consumer-education-grid .regulatory-card .regul-card-text h4,
.consumer-education-grid .regulatory-card .regul-card-text p {
    color: var(--para);
    line-height: 1.2;
}

.consumer-education-grid .consumer-education-label {
    opacity: 1;
}

.consumer-education-grid .regulatory-card .pdf-icon-box {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    height: auto;
    justify-content: center;
    margin-left: 1vw;
    position: static;
    width: 2.6vw;
}

.consumer-education-grid .regulatory-card:hover .pdf-icon-box {
    transform: none;
}

.consumer-education-grid .regulatory-card .pdf-icon-box img {
    height: auto;
    width: 100%;
}

/* Step 2: Intro text */
.consumer-education-intro-text {
    background-color: #ffffff;
}

.consumer-education-intro-text-padd {
    padding: 4vw 0;
}

.consumer-education-intro-text .col-lg-6:first-child {
    padding-right: 2vw;
}

.consumer-education-intro-text .col-lg-6:last-child {
    padding-left: 1vw;
}

.consumer-education-intro-para {
    margin-bottom: 1.5vw;
}

.consumer-education-intro-text .col-lg-6:last-child .consumer-education-intro-para:last-child {
    margin-bottom: 0;
}

/* Step 3: Interest rate detail */
.consumer-education-detail {
    background-color: #5F6A76;
}

.consumer-education-detail-padd {
    padding: 4vw 0 5vw;
}

.consumer-education-detail .announ-sidebar-card {
    margin-bottom: 0;
}

.consumer-education-content-wrap {
    padding-left: 2.5vw;
}

.consumer-education-content-wrap h2 {
    line-height: 1.1;
}

.consumer-education-rate-desc {
    max-width: 90%;
}

.ce-rate-table-wrap {
    background-color: #ffffff;
    border-radius: 0 0 1vw 1vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ce-tab-panel[hidden] {
    display: none !important;
}

.consumer-education-content-wrap .ce-tab-panel.active {
    display: block;
    width: 100%;
}

.ce-rate-table {
    border-collapse: collapse;
    margin-bottom: 0;
    width: 100%;
}

.ce-rate-table thead th {
    background-color: #B83445;
    border: none;
    padding: 1.1vw 1.5vw;
    text-align: left;
}

.ce-rate-table thead th:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.ce-rate-table tbody td {
    border: 1px solid #D8D8D8;
    padding: 0.9vw 1.5vw;
    vertical-align: middle;
}

.ce-rate-table tbody tr:not(.ce-rate-category):hover {
    background-color: #FAFAFA;
}

.ce-rate-table .ce-rate-category td {
    background-color: #F89F32;
    border-color: #F89F32;
    padding: 0.8vw 1.5vw;
}

/* Tab panels */
.ce-tab-panel {
    display: none;
}

.ce-tab-panel.active {
    display: block;
}

.ce-rate-table .ce-charges-sno {
    text-align: center;
    width: 6%;
}

.ce-rate-table .ce-charges-particulars {
    width: 38%;
}

.ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table tbody td {
    vertical-align: top;
}

/* Step 4: Disclaimer & info */
.consumer-education-disclaimer {
    background-color: #5F6A76;
    padding: 0 0 4vw;
}

.consumer-education-disclaimer-text {
    margin-top: 2vw;
}

.consumer-education-info {
    background-color: #ffffff;
}

.consumer-education-info-padd {
    padding: 5vw 10.4vw;
    background-color: #E7E9EB;
}

.inner-container-kyc {
    padding: 4vw 10.4vw;
}

.consumer-education-info-block {
    margin-bottom: 3.5vw;
}

.consumer-education-info-block:last-child {
    margin-bottom: 0;
}

.consumer-education-info-block h3 {
    line-height: 1.15;
    max-width: 90%;
}

.consumer-education-info-block h4 {
    line-height: 1.15;
    max-width: 90%;
}

.consumer-education-info-block p a {
    font-size: inherit;
}

.consumer-education-list {
    margin-bottom: 0;
    padding-left: 1.5vw;
}

.consumer-education-list li {
    margin-bottom: 0.1vw;
}

.consumer-education-list li:last-child {
    margin-bottom: 3vw;
}

.consumer-education-ordered-list {
    list-style-type: decimal;
}

.consumer-education-kyc-row {
    margin-bottom: 2.5vw;
    display: flex;
    justify-content: space-between;
}

.text-col {
    width: 60%;
}

.image-col {
    width: 30%;
}

.consumer-education-kyc-logo-wrap {
    display: flex;
    justify-content: center;
    padding-left: 1vw;
}

.consumer-education-kyc-logo {
    width: 100%;
}

.consumer-education-kyc-docs {
    margin-top: 2.5vw;
}

.consumer-education-ckyc-tags {
    display: flex;
    justify-content: space-between;
    gap: 1vw;
    margin: 4vw 0;
}

.consumer-education-ckyc-tag {
    background-color: #006D3E;
    color: #ffffff;
    width: 32%;
    text-align: center;
    border-radius: 2vw;
    padding: 0.8vw 0;
}

.consumer-education-ckyc-tag:nth-child(1) {
    grid-column: 1;
}

.consumer-education-ckyc-tag:nth-child(2) {
    grid-column: 2 / 4;
}

.consumer-education-ckyc-tag:nth-child(3) {
    grid-column: 4;
}

.consumer-education-ckyc-flow {
    align-items: stretch;
    display: flex;
    gap: 0.4vw;
    margin-bottom: 3vw;
}

.consumer-education-ckyc-step {
    border-radius: 1.5vw;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 1vw 1vw 0;
    position: relative;
}

.consumer-education-ckyc-step-inner {
    background-color: #ffffff;
    border: 2px solid;
    border-radius: 1.5vw;
    display: flex;
    flex: 1;
    min-height: 9.5vw;
    padding: 1.4vw 1.2vw;
}

.consumer-education-ckyc-step-inner p {
    align-self: center;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.consumer-education-ckyc-step-inner p a {
    color: var(--para);
    text-decoration: none;
}

.consumer-education-ckyc-step-inner p a:hover,
.consumer-education-ckyc-step-inner p a:focus {
    color: var(--para);
}

.consumer-education-ckyc-arrow {
    align-self: center;
    border-bottom: 1.2vw solid transparent;
    border-left: 1.8vw solid;
    border-top: 1.2vw solid transparent;
    flex-shrink: 0;
    height: 0;
    margin-left: -0.45vw;
    position: relative;
    width: 0;
    z-index: 2;
}

.consumer-education-ckyc-arrow--yellow {
    border-left-color: #F9B132;
}

.consumer-education-ckyc-arrow--red {
    border-left-color: #A12B3B;
}

.consumer-education-ckyc-arrow--purple {
    border-left-color: #6B3F8A;
}

.consumer-education-ckyc-step--yellow {
    background-color: #F9B132;
}

.consumer-education-ckyc-step--yellow .consumer-education-ckyc-step-inner {
    background-color: #FEF6E0;
    border-color: #F9B132;
}

.consumer-education-ckyc-step--red {
    background-color: #A12B3B;
}

.consumer-education-ckyc-step--red .consumer-education-ckyc-step-inner {
    border-color: #A12B3B;
}

.consumer-education-ckyc-step--purple {
    background-color: #6B3F8A;
}

.consumer-education-ckyc-step--purple .consumer-education-ckyc-step-inner {
    border-color: #6B3F8A;
}

.consumer-education-ckyc-step--teal {
    background-color: #4DA6A9;
}

.consumer-education-ckyc-step--teal .consumer-education-ckyc-step-inner {
    border-color: #4DA6A9;
}

.consumer-education-ckyc-footer {
    margin-top: 1vw;
}

/**************Responsiveness**************/
@media (min-width: 768px) and (max-width: 991px) {
    /* Banner */
    .press-top-banner .press-head-banner h3 {
        font-size: 36px;
    }

    .press-top-text {
        bottom: 20px;
    }

    /* Step 1: PDF grid */
    .consumer-education-section.how-regulation .how-regul-padd {
        padding: 40px 0;
    }

    .consumer-education-intro {
        margin-bottom: 25px;
    }

    .consumer-education-intro h1 {
        font-size: 24px;
        margin-bottom: 12px;
        max-width: 100%;
    }

    .consumer-education-desc {
        font-size: 16px;
        max-width: 100%;
    }

    .consumer-education-grid.regul-card-grid {
        margin-top: 25px;
    }

    .consumer-education-grid .regulatory-card {
        border-radius: 8px;
        padding: 14px 16px;
    }

    .consumer-education-grid .regulatory-card .regul-card-text {
        gap: 4px;
    }

    .consumer-education-grid .regulatory-card .regul-card-text h4,
    .consumer-education-grid .regulatory-card .regul-card-text p {
        font-size: 16px;
    }

    .consumer-education-grid .regulatory-card .pdf-icon-box {
        margin-left: 12px;
        width: 32px;
    }

    /* Step 2: Intro text */
    .consumer-education-intro-text-padd {
        padding: 40px 0;
    }

    .consumer-education-intro-text .col-lg-6:first-child {
        padding-left: 0;
        padding-right: 15px;
    }

    .consumer-education-intro-text .col-lg-6:last-child {
        padding-left: 15px;
        padding-right: 0;
    }

    .consumer-education-intro-para {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .consumer-education-intro-text .col-lg-6:last-child .consumer-education-intro-para:last-child {
        margin-bottom: 0;
    }

    /* Step 3: Detail section — interest tab keeps desktop styles */
    .consumer-education-detail-padd {
        padding: 40px 0 45px;
    }

    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) h2 {
        font-size: 24px;
    }

    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .consumer-education-disclaimer-text {
        font-size: 14px;
        max-width: 100%;
    }

    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table {
        min-width: 0;
        table-layout: fixed;
        width: 100%;
    }

    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table-wrap {
        border-radius: 0 0 12px 12px;
        overflow-x: visible;
    }

    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table thead th,
    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table tbody td {
        font-size: 14px;
        hyphens: auto;
        overflow-wrap: break-word;
        padding: 10px 8px;
        word-wrap: break-word;
    }

    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table thead th:nth-child(1),
    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table tbody td.ce-charges-sno {
        width: 10%;
    }

    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table .ce-charges-particulars {
        width: 36%;
    }

    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table thead th:last-child,
    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table tbody td:last-child {
        width: 54%;
    }

    .consumer-education-disclaimer {
        padding-bottom: 40px;
    }

    .consumer-education-disclaimer-text {
        max-width: 100%;
    }

    /* Step 4: Info & KYC */
    .consumer-education-info-padd {
        padding: 40px 30px 45px;
    }

    .consumer-education-info-block {
        margin-bottom: 30px;
    }

    .consumer-education-info-block h3 {
        font-size: 22px;
        max-width: 100%;
    }

    .consumer-education-info-block h4 {
        font-size: 22px;
        max-width: 100%;
    }

    .consumer-education-info-block p {
        font-size: 16px;
    }

    .consumer-education-info-block p a {
        font-size: 16px;
    }

    .consumer-education-list {
        font-size: 16px;
        padding-left: 20px;
    }

    .consumer-education-list li {
        margin-bottom: 8px;
    }

    .consumer-education-list li:last-child {
        margin-bottom: 20px;
    }

    .inner-container-kyc {
        padding: 40px 30px;
    }

    .consumer-education-kyc-row {
        margin-bottom: 25px;
    }

    .consumer-education-kyc-logo-wrap {
        justify-content: flex-end;
        padding-left: 0;
    }

    .consumer-education-kyc-logo {
        max-width: 180px;
    }

    .consumer-education-kyc-docs {
        margin-top: 25px;
    }

    .consumer-education-ckyc-tags {
        gap: 12px;
        margin: 30px 0 15px;
    }

    .consumer-education-ckyc-tag {
        font-size: 16px;
        padding: 14px 20px;
        border-radius: 4vw;
        margin-bottom: 15px;
    }

    /* CKYC flow: 2×2 grid, horizontal side arrows like desktop */
    .consumer-education-ckyc-flow {
        align-items: center;
        display: grid;
        gap: 20px 0;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        margin-bottom: 30px;
    }

    .consumer-education-ckyc-step {
        border-radius: 12px;
        flex: none;
        padding: 0 6px 6px 0;
        width: 95%;
    }

    .consumer-education-ckyc-step:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .consumer-education-ckyc-step:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }

    .consumer-education-ckyc-step:nth-child(5) {
        grid-column: 1;
        grid-row: 2;
    }

    .consumer-education-ckyc-step:nth-child(7) {
        grid-column: 3;
        grid-row: 2;
    }

    .consumer-education-ckyc-step-inner {
        border-radius: 12px;
        min-height: 120px;
        padding: 16px 12px;
    }

    .consumer-education-ckyc-step-inner p {
        font-size: 14px;
    }

    .consumer-education-ckyc-arrow {
        align-self: center;
        border-bottom: 7px solid transparent;
        border-left: 10px solid;
        border-right: none;
        border-top: 7px solid transparent;
        flex-shrink: 0;
        height: 0;
        justify-self: center;
        margin-left: -3.5vw;
        position: relative;
        width: 0;
        z-index: 2;
    }

    .consumer-education-ckyc-arrow:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .consumer-education-ckyc-arrow:nth-child(4) {
        display: none;
    }

    .consumer-education-ckyc-arrow:nth-child(6) {
        grid-column: 2;
        grid-row: 2;
    }

    .consumer-education-ckyc-arrow--yellow {
        border-left-color: #F9B132;
        border-top-color: transparent;
    }

    .consumer-education-ckyc-arrow--red {
        border-left-color: #A12B3B;
        border-top-color: transparent;
    }

    .consumer-education-ckyc-arrow--purple {
        border-left-color: #6B3F8A;
        border-top-color: transparent;
    }
    .consumer-education-ckyc-footer {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .inner-container-fluid {
        padding: 0 20px;
    }

    .consumer-education-intro {
        margin-bottom: 20px;
    }

    .consumer-education-intro h1 {
        font-size: 22px;
        margin-bottom: 10px;
        max-width: 100%;
    }

    .consumer-education-desc {
        font-size: 16px;
        max-width: 100%;
    }

    .consumer-education-grid .regulatory-card .regul-card-text h4,
    .consumer-education-grid .regulatory-card .regul-card-text p {
        font-size: 16px;
    }

    .consumer-education-grid .regulatory-card {
        border-radius: 6px;
        padding: 14px 12px;
    }

    .consumer-education-grid .regulatory-card .regul-card-text {
        gap: 1px;
    }

    .consumer-education-grid .regulatory-card .pdf-icon-box {
        margin-left: 10px;
        width: 32px;
    }

    .consumer-education-intro-text-padd {
        padding: 30px 0;
    }

    .consumer-education-intro-text .col-lg-6:first-child,
    .consumer-education-intro-text .col-lg-6:last-child {
        margin-bottom: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .consumer-education-intro-para {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .consumer-education-intro-text .col-lg-6:last-child .consumer-education-intro-para:last-child {
        margin-bottom: 0;
    }

    .consumer-education-detail-padd {
        padding: 30px 0 35px;
    }

    .consumer-education-content-wrap {
        padding-left: 0;
        padding-top: 15px;
    }

    .consumer-education-detail .consumer-education-content-wrap h2 {
        font-size: 22px;
    }

    .consumer-education-detail .consumer-education-rate-desc,
    .consumer-education-detail .consumer-education-disclaimer-text,
    .consumer-education-detail .ce-rate-table thead th,
    .consumer-education-detail .ce-rate-table tbody td {
        font-size: 11px;
        line-height: 1.35;
    }

    .consumer-education-detail .ce-rate-table-wrap {
        border-radius: 0 0 10px 10px;
        overflow-x: visible;
    }

    .consumer-education-detail .ce-rate-table {
        min-width: 0;
        table-layout: fixed;
        width: 100%;
    }

    .consumer-education-detail .ce-rate-table thead th,
    .consumer-education-detail .ce-rate-table tbody td {
        hyphens: auto;
        overflow-wrap: break-word;
        padding: 8px 5px;
        word-wrap: break-word;
    }

    .consumer-education-detail .consumer-education-rate-desc,
    .consumer-education-detail .consumer-education-disclaimer-text {
        font-size: 16px;
        max-width: 100%;
    }

    .consumer-education-detail .consumer-education-disclaimer-text {
        text-align: left;
    }

    .consumer-education-detail #ce-tab-interest-rate .ce-rate-table thead th:nth-child(1),
    .consumer-education-detail #ce-tab-interest-rate .ce-rate-table tbody td:nth-child(1) {
        width: 38%;
    }

    .consumer-education-detail #ce-tab-interest-rate .ce-rate-table thead th:nth-child(2),
    .consumer-education-detail #ce-tab-interest-rate .ce-rate-table tbody td:nth-child(2) {
        width: 32%;
    }

    .consumer-education-detail #ce-tab-interest-rate .ce-rate-table thead th:nth-child(3),
    .consumer-education-detail #ce-tab-interest-rate .ce-rate-table tbody td:nth-child(3) {
        width: 30%;
    }

    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table thead th:nth-child(1),
    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table tbody td.ce-charges-sno {
        min-width: 0;
        width: 10%;
    }

    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table .ce-charges-particulars {
        min-width: 0;
        width: 36%;
    }

    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table thead th:last-child,
    .consumer-education-detail .ce-tab-panel:not(#ce-tab-interest-rate) .ce-rate-table tbody td:last-child {
        width: 54%;
    }

    .consumer-education-info-padd {
        padding: 25px;
    }

    .consumer-education-info-block {
        margin-bottom: 25px;
    }

    .consumer-education-info-block h3 {
        font-size: 24px;
        max-width: 100%;
    }

    .consumer-education-info-block p {
        font-size: 16px;
    }

    .consumer-education-info-block p a {
        font-size: 16px;
    }

    .consumer-education-info-block h4 {
        font-size: 24px;
        max-width: 100%;
    }

    .consumer-education-list {
        font-size: 16px;
        padding-left: 18px;
    }

    .consumer-education-list li {
        margin-bottom: 6px;
    }

    .inner-container-kyc {
        padding: 25px;
        margin-bottom: 50px;
    }

    .consumer-education-kyc-row {
        flex-direction: column;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 40px;
    }

    .text-col {
        width: 100%;
        padding-left: 0;
    }

    .image-col {
        width: 100%;
    }

    .consumer-education-kyc-logo {
        width: 70%;
    }

    .consumer-education-kyc-docs {
        margin-top: 20px;
    }


    .consumer-education-ckyc-tags {
        margin: 40px 0;
    }

    .consumer-education-ckyc-tag {
        border-radius: 20px;
    }

    .consumer-education-ckyc-flow {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 25px;
    }

    .consumer-education-ckyc-step {
        border-radius: 10px;
        flex: none;
        padding: 0 5px 5px 0;
        width: 100%;

    }

    .consumer-education-ckyc-step-inner {
        border-radius: 10px;
        min-height: auto;
        padding: 16px;
    }

    .consumer-education-ckyc-arrow {
        align-self: center;
        border-bottom: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 10px solid #F9B132;
        /* margin: -5px 0 -5px; */
        margin-top: -20px;
        position: relative;
        width: 0;
        z-index: 2;
    }

    /* .consumer-education-ckyc-arrow {
    align-self: center;
    border-bottom: 1.2vw solid transparent;
    border-left: 1.8vw solid;
    border-top: 1.2vw solid transparent;
    flex-shrink: 0;
    height: 0;
    margin-left: -0.4vw;
    position: relative;
    width: 0;
    z-index: 2;
} */

    .consumer-education-ckyc-arrow--yellow {
        border-top-color: #F9B132;
    }

    .consumer-education-ckyc-arrow--red {
        border-top-color: #A12B3B;
    }

    .consumer-education-ckyc-arrow--purple {
        border-top-color: #6B3F8A;
    }
}