/* Extracted from student-profile.aspx */
.pull-left {
    display: none;
}

.w3-teal {
    display: none;
}

a.canvasjs-chart-credit {
    display: none;
}

.container-fluid {
    padding-left: 0px;
    padding-right: 0px;
}

.alert.alert-success.alert-dismissible {
    display: none;
}

div#ctl00_wucAssessmentNotify_divassnotify {
    margin-top: -5%;
}

header#master_header {
    display: none;
}

.alert.alert-danger.alert-dismissible {
    display: none;
}

.m-footer-hide,
.last-footer {
    display: none;
}

.c-prefooter {
    display: none;
}

.card {
    padding-bottom: 5%;
}

.number,
.text {
    color: #4e59ad;
}

.try {
    margin-left: -15px;
    margin-right: -15px;
}

.row {
    display: block;
}

.ndb-fr-heading {
    font-weight: 900;
}

@media only screen and (max-width: 500px) {
    .btn-subs {
        display: grid;
    }
}


/*============================ Dashboard Redesign ===================================*/

a {
    text-decoration: none !important;
    display: inline-block;
}

li {
    list-style: none;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

img {
    width: 100%;
}

.main {
    width: 100%;
}

.main-wrapper {
    width: 100%;
    display: flex;
    position: relative;
}

/* Sidebar & Layout - Adjusted for Fixed Width */
.dashboard-left-wrapper {
    width: 260px;
    /* Fixed width standard */
    height: 100vh;
    background: #626CAC;
    z-index: 999;
    position: fixed;
}

.dashboard-right-wrapper {
    width: calc(100% - 260px);
    /* Calculated width */
    position: absolute;
    left: 260px;
    /* Offset by sidebar width */
}

/* Top Bar */
.drw-top-bar {
    background: #eee;
    padding: 10px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    gap: 70px;
}

.ltp-btns {
    background: #626CAD;
    padding: 6px 25px;
    color: #fff;
    border-radius: 7px;
    font-size: 15px;
    border: 1px solid #626CAC;
    transition: 0.2s ease all;
}

.ltp-btns:hover {
    border: 1px solid #626CAD;
    color: #626CAD;
    background: #ffffff;
}

.left-top-bar {
    display: flex;
    align-items: center;
    gap: 35px;
}

.rtb-cb {
    background: #626cad;
    color: #fff;
    padding: 8px 19px;
    border-radius: 26px;
    font-size: 13px;
}

.rtb-cb:hover {
    background: #3c468a;
}

.rtb-cb i {
    margin-right: 8px;
    font-size: 13px;
}

/* Dashboard Part 1 */
.drw-pt1 {
    padding: 10px;
}

.drw-profile-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px 10px;
    border: 1px solid #ddd;
    background: #f9fafb;
    border-radius: 10px;
}

.drw-profile {
    width: 50%;
    border: 1px solid #ddd;
    background: #fff;
    position: relative;
    padding: 13px 20px;
    border-radius: 10px;
}

.drw-profile-img {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 130px;
    height: 130px;
    border: 2.5px solid #EB7F25;
    padding: 1px;
    border-radius: 50%;
    position: relative;
}

.profile-pic-edit {
    position: absolute;
    top: 90px;
    right: 103px;
}

.drw-profile-img i {
    color: #3c468a;
    font-size: 14px;
    background: #fff;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid #EB7F25;
}

.drw-username {
    color: #333;
    text-align: center;
    font-size: 21px;
    font-weight: 400;
}

.drw-profile-details {
    position: relative;
    margin-top: 10px;
    text-align: center;
}

.drw-profile-details p {
    font-size: 12px;
    color: #707070;
    margin-top: 5px;
}

.ndb-pbox-high {
    background: #e9e7fd;
}

.drw-profile-details p span {
    margin-right: 5px;
    font-weight: 500;
    color: rgb(31, 31, 31);
    font-size: 12px;
}

.drw-profile-details p span i {
    color: #626CAD;
}

.drw-useremail i {
    color: #626CAD;
}

.drw-profile-edit {
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: 13px;
    background: #ddd;
    padding: 2px 8px;
    border-radius: 16px;
    color: #333;
}

.drw-profile-edit i {
    margin-left: 3px;
    font-size: 11px;
}

.drw-buy-course {
    width: 100%;
    font-size: 15px;
    color: #ffffff;
    background: #EB7F25;
    padding: 5px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}

.drw-buy-course:hover {
    background: #cc6613;
    color: #fff;
}

.drw-banner {
    width: 100%;
}

.drw-banner img {
    width: 100%;
    border-radius: 10px;
}

.drw-pt2,
.drw-pt3,
.drw-pt4 {
    padding: 70px 10px;
}

.pt2-img {
    width: 100%;
}

.db-heading {
    font-size: 32px;
    font-weight: 700;
    color: #41464b;
    line-height: 40px;
    margin-bottom: 20px;
}

.pt2-sub-heading {
    font-size: 25px;
    font-weight: 600;
    color: #41464b;
}

.pt2-sub-heading span {
    color: #EB7F25;
}

.db-heading-line img {
    width: 160px;
}

.pt2-bf-1 {
    font-size: 15px;
    font-weight: 500;
    line-height: 19px;
    color: #6c757d;
}

.pt2-bf-2 {
    font-size: 15.8px;
    font-weight: 400;
    color: #6c757d;
}

.pt2-btn {
    width: 100%;
    font-size: 15px;
    color: #ffffff;
    background: #EB7F25;
    padding: 8px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #fff;
    transition: 0.2s ease all;
    text-align: center;
}

.pt2-btn:hover {
    background: #fff;
    color: #EB7F25;
    border: 1px solid #EB7F25;
}


.pt4-btn {
    background: #EB7F25;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    border: 1px solid #EB7F25;
    transition: 0.2s ease all;
}

.pt4-btn:hover {
    background: #fff;
    color: #EB7F25;
}

.pt4-iframe {
    border: 5px solid #167ac6;
    border-radius: 5px;
    width: 420px;
    height: 240px;
}

.drw-pt4-right ul {
    padding-left: 0;
}

.drw-pt4-right ul li i {
    color: #eb7f25;
    font-size: 17px;
    margin-right: 3px;
}

.drw-pt4-right ul li {
    font-size: 16px;
    font-weight: 400;
    color: #6c757d;
    line-height: 34px;
}

.pt4-buy-link {
    font-size: 12px;
    color: #6c757d;
}

.pt4-buy-link i {
    color: #EB7F25;
    margin-right: 2px;
}

.drw-pt6-wrapper ul li {
    margin-top: 18px;
    border-bottom: 1px dashed #ddd;
}

.drw-pt6-wrapper ul li a {
    font-size: 16px;
    color: #0d6efd;
    font-weight: 300;
    transition: 0.2s ease all;
}

.drw-pt6-wrapper ul li a:hover {
    color: #000000;
}

.drw-pt6-wrapper ul li a i {
    color: #6c757d;
    margin-right: 12px;
}

.author .avatar {
    width: 80px;
}

/*------------------- New Profile section (Faheem) ------------------- */
.np-bf-1 {
    background: #fff;
    margin: 0 auto;
    width: 90%;
    margin-top: 10px;
    border-radius: 10px;
    padding: 10px;
}

.np-user-profile {
    display: flex;
    justify-content: center;
}

.np-user-pc {
    width: 55px;
}

.np-wrapper {
    position: relative;
}

.np-edit-pc {
    color: #5c6873;
    font-size: 14px;
    background: #ddd;
    border-radius: 15px;
    padding: 2px 5px;
    position: absolute;
    right: 0px;
    top: 0px;
}

.np-edit-pc i {
    font-size: 13px;
    margin-left: 1px;
}

/* ------------ Scroll styling--------- */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(78, 78, 78, 0.3);
    background-color: #F5F5F5;
    border-radius: 10px;
}

::-webkit-scrollbar {
    width: 9px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, rgb(204, 204, 204)), color-stop(0.44, rgb(204, 204, 204)), color-stop(0.44, rgb(204, 204, 204)));
}

/* ------------ Scroll styling End--------- */

.ndb-pbox-name {
    line-height: 17px;
}

/* Sidebar Specifics */
.sidebar .nav p {
    text-transform: capitalize !important;
    font-size: 12.7px !important;
    font-weight: 400;
}

.sidebar .nav i {
    font-size: 14px !important;
    line-height: 21px !important;
}

.sidebar .nav li>a {
    margin: 0px 15px !important;
}

.hbf1:hover {
    background-color: rgba(255, 255, 255, 0.13) !important;
    color: white !important;
    opacity: 1 !important;
}

.hbf1 {
    display: none !important;
    background: white !important;
    text-transform: capitalize !important;
    color: #4E59AD !important;
    line-height: 28px;
    width: 222px;
    font-size: 12.7px !important;
}

.clg-hvr:hover .hbf1 {
    display: block !important;
}

.ndb-blog {
    background: #e9e7fd;
    border-radius: 15px;
    overflow: hidden;
    padding: 10px;
    text-align: center;
}

.ndb-blog-bnnr img {
    height: 104px;
    border-radius: 15px;
    width: 185px;
}

.hamburger_container {
    width: 80px;
    display: none;
    z-index: 3;
    height: 50px;
    background-color: #4F59AC;
    position: fixed;
    right: 0;
    top: 6rem;
    border-radius: 1rem 0 0 1rem;
}

.hamburger_menu {
    flex-direction: column;
    height: 80%;
    margin: 0.5rem auto 0 auto;
    display: flex;
    width: 45%;
    cursor: pointer;
    justify-content: space-evenly;
}

.hamburger_menu .line {
    width: 100%;
    height: 4px;
    background-color: white;
}

.change {
    right: 26rem !important;
    width: 100% !important;
    display: flex !important;
    background-color: transparent !important;
    justify-content: right !important;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .dashboard-right-wrapper {
        width: 100%;
        position: absolute;
        left: auto;
    }

    .dashboard-left-wrapper {
        display: none;
    }

    .drw-top-bar {
        display: none;
    }

    .drw-profile-wrapper {
        flex-direction: column;
    }

    .drw-profile {
        width: 100%;
    }

    .pt4-iframe {
        width: auto;
        height: 240px;
        margin-top: 20px;
    }

    .db-heading {
        font-size: 23px;
        font-weight: 700;
        color: #41464b;
        line-height: 40px;
    }

    .pt2-sub-heading {
        margin-top: 25px;
    }

    .pt2-bf-1 {
        font-size: 13px;
    }

    .pt2-bf-2 {
        font-size: 12.8px;
        font-weight: 400;
        color: #6c757d;
    }

    .pt2-btn {
        font-size: 8px;
    }

    .drw-pt2,
    .drw-pt3,
    .drw-pt4 {
        padding: 30px 10px;
    }

    .profile-pic-edit {
        position: absolute;
        top: 90px;
        right: 100px;
    }

    .drw-profile-details p span {
        font-size: 13px;
    }

    .drw-profile-details p {
        font-size: 12px;
    }

    .pt4-img img {
        margin-top: 25px;
    }

    .drw-pt4-right ul li {
        font-size: 15px;
        line-height: 24px;
    }

    .drw-pt4-left {
        justify-content: center;
        display: flex;
        margin-top: 20px;
    }

    .drw-pt6-wrapper ul li a {
        font-size: 12px;
    }

    .pt4-buy-link {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .mainn {
        width: 100%;
        height: 1848px;
        background: #fff;
    }

    .ndb-blog-bnnr img {
        width: 150px;
    }

    .ndb-blog-bnnr img {
        width: 134px !important;
    }
}

@media screen and (max-width:991px) {
    .hamburger_container {
        display: block;
    }

    .clickArea_hamburger {
        width: calc(100% - 260px);
        height: 100%;
        z-index: 2000;
        backdrop-filter: blur(4px);
    }

    .change {
        right: 26rem !important;
        width: 100% !important;
        display: flex !important;
        background-color: transparent !important;
        justify-content: right !important;
    }

    ul.nav.nav-mobile-menu {
        display: none;
    }
}

@media only screen and (max-width: 620px) {
    .visible_resp {
        display: block;
    }
}

/* 10th Class Grid Styles */
.new_box_10thclass {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.new_box_first_row {
    grid-column: 1/4;
}

.new_box_second_row {
    grid-row: 2;
}

.pbox_10th {
    width: 100%;
}

#second_rowWrapper10th {
    display: block;
}

.new_box10th {
    grid-column: 4/6;
    grid-row: 1/3;
    margin-top: auto;
    height: 90%;
    border-radius: 30px;
    padding: 17px 18px;
}

@media screen and (max-width:500px) {
    .new_box_10thclass {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 36vh 16vh 32vh 3vh;
    }

    .new_box_first_row>div {
        grid-template-rows: repeat(2, 1fr);
    }

    .new_box10th {
        grid-column: 1/3;
        grid-row: 3/5;
    }

    .new_box10th img {
        width: 100% !important;
    }

    .ndb-second-right-wrapper {
        width: 96% !important;
        float: none !important;
        margin-top: 0;
    }

    .ndb-row-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
    justify-content: space-between;
    gap: 10px;
    animation-name: fade;
    animation-duration: 1.5s;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(98, 108, 172, 0.5);
    /* Theme color */
    z-index: 2;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(98, 108, 172, 0.9);
}

.user-wp {
    text-align: center;
    width: 32%;
    position: relative;
}

.user-wp img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
    border: 2px solid #eb7f25;
}

.ndp-vw-user-pf {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.ndp-talk-user-pf {
    display: inline-block;
    padding: 2px 10px;
    background: #eb7f25;
    color: white !important;
    border-radius: 15px;
    font-size: 11px;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* 11th Class Styles */
.new_box11th {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, 1fr);
}

.box_firstRow_11th {
    grid-row: 1/1;
    grid-column: 1/3;
}

.box_secondRow_11th {
    grid-row: 2/2;
    grid-column: 1/4;
}

.first_row_wrapper11th {
    display: flex;
}

.pbox_11th {
    width: 100%;
}

.TheNew_Box11th {
    grid-row: 1/3;
    grid-column: 4/6;
    height: 88%;
    border-radius: 30px;
    margin-top: auto;
    padding: 17px 18px;
}

/* 12th Class Styles */
.new_box12th {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, 1fr);
}

.box_firstRow_12th {
    grid-row: 1/1;
    grid-column: 1/2;
}

.box_secondRow_12th {
    grid-row: 2/2;
    grid-column: 1/4;
}

.first_row_wrapper12th {
    display: block;
}

.pbox_12th {
    width: 100%;
}

.TheNew_Box12th {
    grid-row: 1/3;
    grid-column: 4/6;
    height: 88%;
    border-radius: 30px;
    margin-top: auto;
    padding: 17px 18px
}

/* Working Professional Styles */
.new_boxWork {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.second_row_Work {
    grid-row: 2/2;
}

.second_wrapperWork {
    display: block;
}

.first_row_Work {
    grid-row: 1/2;
    grid-column: 1/4;
}

.pbox_work {
    width: 100%;
}

.TheNew_BoxWork {
    grid-column: 4/6;
    grid-row: 1/3;
    height: 90%;
    margin-top: auto;
    border-radius: 30px;
    padding: 17px 18px;
}

/* Responsive Styles for New Boxes */
@media screen and (max-width:500px) {

    /* 11th */
    .new_box11th {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .box_secondRow_11th {
        grid-column: 1/3;
    }

    .TheNew_Box11th {
        grid-row: 3/5;
        grid-column: 1/3;
        padding: 0px !important;
    }

    .TheNew_Box11th img {
        width: 100% !important;
    }

    /* 12th */
    .new_box12th {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .box_secondRow_12th {
        grid-column: 1/3;
    }

    .TheNew_Box12th {
        grid-row: 3/5;
        grid-column: 1/3;
    }

    .TheNew_Box12th img {
        width: 320px !important;
    }

    /* Working */
    .new_boxWork {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 41vh 21vh 13vh 17vh;
    }

    .TheNew_BoxWork {
        grid-column: 1/3;
        grid-row: 3/5;
    }

    /* Working Professional Layout Additions */
    .ndb-fourth-fifth-row {
        display: grid;
        grid-template-columns: 1fr 4fr;
        gap: 10px;
    }

    .ndb-fifth-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    /* Ensure row-coun handles floated children or flex if needed. 
   Based on legacy, it likely wraps the left content and right floating sidebar. 
*/
    .row-coun {
        position: relative;
        /* ensure formatting context */
        overflow: hidden;
    }

    @media (max-width: 768px) {
        .ndb-fourth-fifth-row {
            grid-template-columns: 1fr;
        }

        .ndb-fifth-wrapper {
            grid-template-columns: repeat(2, 1fr);
        }

        .ndb-fourth-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .ndb-blog-bnnr img {
            width: 100%;
        }
    }


    .first_wrapperWork {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 20px;
    }

    .TheNew_BoxWork img {
        height: 190px !important;
        width: 317px !important;
    }
}

/* 9th Class Styles */
.new_box_9thlass {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.new_box_rowWrapper {
    display: flex;
    width: 100%;
}

.theNew_Block {
    grid-column: 4/6;
    grid-row: 1/3;
    height: 90%;
    border-radius: 30px;
    margin-top: auto;
    padding: 17px 18px;
}

@media screen and (max-width:500px) {
    .new_box_9thlass {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .theNew_Block {
        grid-column: 1/3;
        grid-row: 3/5;
        width: 100%
    }
}

/* 11th Class Styles */
.new_box11th {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, 1fr);
}

.box_firstRow_11th {
    grid-row: 1/1;
    grid-column: 1/3;
}

.box_secondRow_11th {
    grid-row: 2/2;
    grid-column: 1/4;
}

.first_row_wrapper11th {
    display: flex;
}

.pbox_11th {
    width: 100%;
}

.TheNew_Box11th {
    grid-row: 1/3;
    grid-column: 4/6;
    height: 88%;
    border-radius: 30px;
    margin-top: auto;
    padding: 17px 18px;
}

/* 12th Class Styles */
.new_box12th {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, 1fr);
}

.box_firstRow_12th {
    grid-row: 1/1;
    grid-column: 1/2;
}

.box_secondRow_12th {
    grid-row: 2/2;
    grid-column: 1/4;
}

.first_row_wrapper12th {
    display: block;
}

.pbox_12th {
    width: 100%;
}

.TheNew_Box12th {
    grid-row: 1/3;
    grid-column: 4/6;
    height: 88%;
    border-radius: 30px;
    margin-top: auto;
    padding: 17px 18px
}

/* Graduate Styles */
.new_boxGrad {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.second_wrapperGrad {
    display: block;
}

.box_firstRow_Grad {
    grid-row: 1/2;
    grid-column: 1/4;
}

.pbox_Grad {
    width: 100%;
}

.box_secondRow_Grad {
    grid-row: 2/2;
}

.TheNew_BoxGrad {
    grid-column: 4/6;
    grid-row: 1/3;
    height: 90%;
    margin-top: auto;
    border-radius: 30px;
    padding: 20px 18px
}

@media screen and (max-width:500px) {
    .new_boxGrad {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 41vh 24vh 0vh 21vh;
    }

    .TheNew_BoxGrad {
        grid-column: 1/3;
        grid-row: 3/5;
        width: 100% !important;
        margin: -40px 0;
    }

    .first_wrapperGrad {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Working Professional Styles */
.new_boxWork {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.second_row_Work {
    grid-row: 2/2;
}

.second_wrapperWork {
    display: block;
}

.first_row_Work {
    grid-row: 1/2;
    grid-column: 1/4;
}

.pbox_work {
    width: 100%;
}

.TheNew_BoxWork {
    grid-column: 4/6;
    grid-row: 1/3;
    height: 90%;
    margin-top: auto;
    border-radius: 30px;
    padding: 17px 18px;
}

@media screen and (max-width:500px) {
    .new_boxWork {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 41vh 21vh 13vh 17vh;
    }

    .TheNew_BoxWork {
        grid-column: 1/3;
        grid-row: 3/5;
    }

    .first_wrapperWork {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 20px;
    }

}

/* Global Grid Layouts for Special Courses & Services */
.ndb-fourth-fifth-row {
    display: grid;
    grid-template-columns: 1.5fr 4fr;
    gap: 20px;
}

.ndb-fifth-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.ndb-fourth-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column for single item */
    gap: 15px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .ndb-fourth-fifth-row {
        grid-template-columns: 1fr;
    }

    .ndb-fifth-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Layout Fixes for Working Professional */

/* Card Styling */
.ndb-pbox {
    background: #E9E7FD;
    /* Light purple to match legacy */
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.ndb-pbox:hover {
    transform: translateY(-5px);
}

/* Rule moved/redefined below to include width auto */

.ndb-pbox-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 14px;
    min-height: 40px;
    /* Aligns buttons */
}

.ntb-pbox-btn {
    background: #EB7F25;
    color: #fff !important;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid #EB7F25;
    transition: all 0.3s;
}

.ntb-pbox-btn:hover {
    background: #fff;
    color: #EB7F25 !important;
}

/* Desktop Layout: Left Content + Right Sidebar */
@media (min-width: 992px) {
    .row-coun::after {
        content: "";
        display: table;
        clear: both;
    }

    .ndb-first-row {
        float: left;
        width: 65%;
        clear: left;
        /* Stacks Career Plans and Job Prog */
        margin-bottom: 30px;
    }

    .ndb-second-right-wrapper {
        float: right;
        width: 32%;
        margin-top: 0;
    }
}

/* Ensure Grid Wrapper for Career Plans works */
/* Ensure Grid Wrapper for Career Plans works */
.ndb-row-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 15px;
}

.ndb-pbox-icon img {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Mobile/Tablet Fallback */
@media (max-width: 991px) {
    .ndb-first-row {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }

    .ndb-second-right-wrapper {
        width: 100%;
        float: none;
    }

    .ndb-row-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}