.reg_element{
    margin-bottom: 50px;
    font-size:16px;
}

body .reg_edit_container{
    padding: 10px 20px;
    margin: 20px 0;
    background-color: #fff4ea;
    border: 1px solid #ddd;
}

body .reg_edit_container ul{
    margin-top: 10px;
}

body .reg_edit_container ul li{
    margin-bottom: 5px;
    line-height: 1.2rem;
}

.reg_edit_link{
    text-align: right;
    clear: both;
    display: block;
    margin-bottom: 10px;
}

.block_error_message{
    border: 1px solid #d4d4d8;
    background-color: #fef2f2;
    color: #b91c1c;
    padding: 1rem 1.25rem;
    border-radius: .25rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.reg_element_ranking_intro{
    background-color: #fafafa;
    border-radius: .25rem;
    border: 1px solid #d4d4d8;
    margin-bottom: 1.5rem 0;
    padding: 1rem 1.25rem;
}

.reg_element_ranking-card{
    padding: 0 20px 30px 20px;
    border: 1px solid #ddd;
    border-radius: .25rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.reg_element_ranking-card:last-child{
    margin-bottom: 0;
}

.reg_element_ranking-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes content apart */
    gap: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    min-height: 80px;
    padding: 10px 0;
}

.reg_element_school_header{
    padding: 10px 0;
}

.reg_element_ranking-header h3{
    font-weight:500;
    font-size:1.75em;
    padding:0 0 3px 0;
    margin:0 !important;
    color: #222;
    line-height: 1.35em;
}

.reg_element_program h4{
    font-weight:200;
    font-size:1.4em;
    line-height: 110%;
    padding:0;
    margin:20px 0 0 0;
    color: #0a225f;
}

.reg_element_program:not(:first-child) {
    margin-top: 30px;
}

.reg_element_ranking-number {
  color: #0c2e70;
   display: flex;
   justify-content: center;
   align-items: center;
    border-radius: .25rem;
    border: 1px solid #0c2e70;
    font-size: 1.5em;
    line-height: 1.75em;
    padding: .375rem .5rem;   
}

.reg_element_school_details{
    padding: 0;
    margin: 0;
    color:#222;
    font-size: .85em;
    font-weight: 500;
    line-height: 1em;
}

.reg_element_school-logo {
    margin-left: auto; /* Pushes the logo to the right */
    flex-shrink: 0; /* Prevents the logo from shrinking */
}

.reg_element_school-logo img {
    max-width: 160px;
    height: auto;
    max-height: 75px;
}

.reg_element_program_details{
    display: flex;
    min-height: 80px;
}

.reg_element_program-list{
    margin: 0;
    padding: 0;
    list-style: none;
}

.reg_element_program_description{
    padding: 5px 20px 0 0;
    margin: 0 !important;
    width: 60%;
}

html .reg_element_program_notes {
    padding: 0;
    margin: 10px 0 5px 0;
    color: #222;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
}

.reg_element_highlights{
    width: 40%;
    column-count: 2;
    column-gap: 25px;
    padding-top: 10px;
    padding-inline-start: 20px;
}

    html .reg_element_highlights li {
    font-size: 0.95em;
    font-weight: 300;
    line-height: 1.1em;
    margin-bottom: 6px;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;  
    word-break: break-word;
    overflow-wrap: break-word;
}

.reg_note{
    font-size: .8em;
    line-height: .9em;
    font-weight: 100;
    text-align: right;
    color: #888;
    margin-top: 5px;
}


/* Hide elements initially except the first one */
.reg_element_program:not(:first-child) {
    display: none;
}

.reg_show_more{
    cursor: pointer;
    text-align: right;
    line-height: 1em;
    color:#005A8D;
}

.reg_show_more span{
    top: .7rem;
    font-size: 2em;
    line-height: 2.1em;
    position: relative;
    font-weight: 400;
}


@media (max-width: 992px) {
    .reg_element_program_details{
        flex-direction: column;
    }
    .reg_element_program_description{
        width: 100%;
    }
    .reg_element_highlights{
        width: auto;
        margin: 10px 0;
    }
    .reg_element_highlights li{
        font-size: 1em;
        font-weight: 300;
        line-height: 1.1em;
    }
}

@media (max-width: 767px) {
    .reg_element_school-logo img{
        max-width: 100px;
    }
    .reg_element_ranking-header h3{
        font-size: 1.4em;
        line-height: 1.4em;
    }
}

@media (max-width: 550px) {
    .reg_element_ranking-header{
        gap:8px;
    }
    .reg_element_school-logo img{
        max-width: 70px;
    }
    .reg_element_ranking-header h3{
        font-size: 1.2em;
        line-height: 1.2em;
    }
    .reg_element_ranking-number {
        font-size: 1.1em;
        line-height: 1.2em;
    }
    .reg_element_school_details{
        font-size:.8em;
        line-height: 1em;
    }
}

@media (max-width: 500px) {
   
    .reg_element_ranking-header h3{
        font-size: 1.1em;
        line-height: 1.1em;
    }
    .reg_element_ranking-number {
        font-size: 1em;
        line-height: 1.1em;
    }
   
}


@media (max-width: 470px) {
    .reg_element_school-logo img{
        display: none;
    }

}


/*listings*/
.reg_element_state-section { margin-bottom: .25rem; }
.reg_element_city-section { margin-left: 0; }
.reg_element_city-section > * { background: #f0f8ff; padding:5px;}

.reg_element_school { margin: .25rem 0; background:none;}
.reg_element_program-header { 
    cursor: pointer; 
    color: #2c3e50;
    padding: 0;
    font-weight: 300;
    color: #3498db;         
}

.reg_element_school h4{
    margin: 5px 0;
}

.reg_element_program-highlights { 
    display: none;
    margin: 0;
}
.reg_element_visible { display: block !important; }
.reg_element_highlights-columns { 
    column-count: 2; 
    column-gap: 2rem;
    margin: 0.5rem 0;
    padding-left: 1rem;
    max-width: 800px;
}

.reg_element_school-details ul{
    padding-inline-start: 20px;
    margin: .25rem 0;
}

html .reg_element_school li {
    margin: 10px 0;
}
    
.reg_element_highlights-columns li {
    margin-bottom: 0.5rem;
    break-inside: avoid-column;
    font-size: 1em;
    line-height: 1.1em;
}

html .reg_element_listings .reg_element_program_notes {
    margin: 2px 0 0 0;
    font-size: .85em;
    line-height: 1em;
    font-weight: 500;

}

.reg_element_city-jumper{
    text-align: right;
}

/* table format */
.reg_element_format_table .reg_element_ranking_intro{   
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.reg_element_school_table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0 .5rem 0;
    font-family: 'Arial', sans-serif;
}

.reg_element_table .reg_element_school_table {
    table-layout: fixed;
}

.reg_element_table .reg_element_school_table td:first-child,
.reg_element_table .reg_element_school_table th:first-child { /* School Name */
    width: 35%;
}

.reg_element_table .reg_element_school_table td:nth-child(2),
.reg_element_table .reg_element_school_table th:nth-child(2) { /* Highlights */
    width: 40%;
}

.reg_element_table .reg_element_school_table td:nth-child(3),
.reg_element_table .reg_element_school_table th:nth-child(3) { /* Tuition */
    width: 25%;
}

.reg_element_school_table th,
.reg_element_school_table td {
    padding: 1rem; /* Reduced padding */
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top; /* Align all content to the top */
}

.reg_element_school_table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 400;
    border-bottom: 2px solid #e0e0e0;
    padding: 0.5rem 1rem; /* Reduced header padding */
}

/* School Name Styling */
.reg_element_school_table td:first-child {
    font-size: 1.2em;
    line-height: 1.3em;
    font-weight: 600;
}

.reg_element_programs {
    padding-left: 1rem;
    padding-top: 10px;
    margin: 0;
}

.reg_element ul.reg_element_programs li{
    font-size: 15px;   
    line-height: 16px;
    margin-bottom:10px;
}

/* Tuition Column Styles */
.reg_element_school_table td:nth-child(3) {
    text-align: left; /* Left-align tuition */
}

.reg_element_table .reg_tuition {
    margin: 0.5rem 0;
}

.reg_element_table .reg_tuition-type {
    color: #7f8c8d;
    font-size: 0.85em;
    line-height: 1em;
    margin-bottom: 0.25rem;
}

.reg_element_table .reg_tuition ul {
    margin: 0;
    padding: 0;
    list-style: none; /* Remove default list styling */
}

.reg_element_table .reg_tuition li {
    font-size: 0.95em;
    line-height: 1.1em;
    color: #2c3e50;
    line-height: 1.4;
}

.reg_element_table .reg_tuition-figure {
    font-weight: 600;
    color: #2c3e50;
}

.reg_element_table .reg_tuition-same {
    color: #95a5a6;
    font-size: 0.8em;
    line-height: 1em;
}

/* Highlights List */
.reg_element_table .reg_element_highlights {  
    width: 100%; /* Ensure highlights take full width */
}

.reg_element_table .reg_element_highlights li {
    font-size: 0.9em;
    line-height: 1.2em;
    margin-bottom: 4px;
}

/* Grad & Retention Rate */
.reg_element_table .reg_grad_retention ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.reg_element_table .reg_grad_retention ul li {
    font-size: 0.95em;
    line-height: 1.3em;
}


/* Responsive Table */
@media (max-width: 992px) {

    .reg_element_table .reg_element_school_table td:first-child,
    .reg_element_table .reg_element_school_table th:first-child { /* School Name */
        width: 100%;
        padding:5px 10px;
    }

    .reg_element_table .reg_element_school_table td:nth-child(2),
    .reg_element_table .reg_element_school_table th:nth-child(2) { /* Highlights */
        width: 100%;
        padding:0;

    }

    .reg_element_table .reg_element_school_table td:nth-child(3),
    .reg_element_table .reg_element_school_table th:nth-child(3) { /* Tuition */
        width: 100%;
        padding:0 20px;
        border: none;
    }

    .reg_element_school_table,
    .reg_element_school_table thead,
    .reg_element_school_table tbody,
    .reg_element_school_table th,
    .reg_element_school_table td,
    .reg_element_school_table tr {
        display: block;
    }

    .reg_element_school_table th {
        display: none; /* Hide headers on mobile */
    }

    .reg_element_school_table td {
        text-align: left;
        padding: 0.75rem;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 10px;
    }

    .reg_element_school_table td:first-child {
        font-size: 1.1em;
        line-height: 1.2em;
        padding-top: 1rem;
        padding-bottom: 0.5rem;
        background-color: #f8f9fa; /* Highlight school name */
    }

    .reg_element_school_table td:nth-child(3) {
        text-align: left; /* Ensure tuition is left-aligned on mobile */
    }

    .reg_element_school_table td::before {
        content: attr(data-label); /* Add data-label for mobile */
        display: block;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.25rem;
    }

    .reg_element_school_table tr {
        margin-bottom: 2rem;
        border-bottom: 2px solid #e0e0e0;
    }

    /* Tuition Adjustments for Mobile */
    .reg_element_table .reg_tuition {
        margin: 0.25rem 0;
    }

    .reg_element_table .reg_tuition-type {
        font-size: 0.8em;
        line-height: 1.1em;
    }

    .reg_element_table .reg_tuition li {
        font-size: 0.9em;
        line-height: 1.1em;
    }

    /* Highlights Adjustments for Mobile */
    .reg_element_table .reg_element_highlights {
        list-style: disc; /* Keep bullets on mobile */
        padding-left: 1.25rem;
    }

    .reg_element_table .reg_element_highlights li {
        font-size: 0.85em;
        line-height: 1.1em;
    }
}

/*related articles in content*/
.reg_related_articles_section {
    padding: 30px;
    background: #f0f8ff;
    margin: 60px 0;
    border: 2px solid #ccc;
}

html .reg_related_articles_section :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 0;
}



