/* ===== Frontend Styles (Shortcode) ===== */


 .champs-toggle-wrapper {
    margin-bottom: 20px;
    text-align: right;
}

.toggle-button {
    background: #f1f1f1;
    border: 1px solid #ccc;
    padding: 8px 14px;
    cursor: pointer;
    margin-left: 5px;
}

.toggle-button.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.champs-view.grid-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 3 columns */
    gap: 20px;
}
.champs-view.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.champs-toggle-wrapper
{
	display:none 
}
.champ-card {
    border: 0px solid #ddd;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    border-radius: 20px;;
    flex-direction: column;
    align-items: start;
    text-align: start;
}

.champ-card .champ-thumb  {
    width: 70px;
    height: 70px !important;   
    border-radius: 100% !important;
    margin-bottom: 10px;
}


.champ-card .champ-thumb  img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    object-fit: cover;
}


.list-view .champ-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
}

.flag-img
{
     width: 26px;
    height: auto !important;   
}

.champ-content p
{
    display:flex;
    align-items: center;
    gap: 8px;
  
}


/* .champ-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
} */

.list-view .champ-card img {
    max-width: 120px;
    margin-right: 15px;
}

.champ-content {
    flex: 1;
      width: 100%;;
}

.champ-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}


.flex--box {
    display: flex;
    gap: 8px;
    width: 100%;;
}

.align-items-center
{
    align-items: center;
}


.gap-data {
    background: #EFF6FF;
    border-radius: 10px;
    padding: 8px;
     width: 100%;
     color: #155DFC; 
}

.rn-data {
    background: #F0FDF4;
    border-radius: 10px;
    padding: 8px;
     width: 100%;
     color: #008236;
}

.warning-bg
{
     background: #FFB703; 
      width: max-content;
    padding: 0 10px;
    text-align: center;
    color: #1A1A1A;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.warning-bg svg,
.blue-bg svg
{
    width: 12px;
    height: 12px;
}


.blue-bg svg path
{
    fill: #fff;
}
.blue-bg {
    background: #155DFC;
    width: max-content;
    padding: 0 10px;
       display: flex;
    align-items: center;
    gap: 5px;
    text-align: center;
    border-radius: 12px;
    color: #fff;
}



.rn-data svg ,
.gap-data svg 

{
    width: 20px;
    height: 20px;
    margin-top: -2px;
}

.gap-data h4 {
    margin: 0;
    margin-top: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #155DFC; 
}


.rn-data h4 {
    margin: 0;
    margin-top: 10px;
    font-size: 20px;
    font-weight: 600;
     color: #008236;
}

.justify-between
{
    justify-content: space-between;
}

.achievement {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    border-radius: 16px;
}
.achievement  svg  path
{
    fill: #fff
}

.milestone
{
    background: #008236
}

.course
{
    background: #FE9A00; 
}

.text-milestone svg  path
{
    fill: #008236
}

.text-course svg path
{
    fill: #FE9A00; 
}
.champs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;;
    padding: 10px;
}

.champs-table th,
.champs-table td {
    border: 0px solid #ddd;
    border-bottom:1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.champs-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.table-img
{
    width: 50px !important;
    height: 50px !important;   
    border-radius: 100% !important;
      object-fit: cover;
}


/* ===== Admin Page Styles ===== */
.champ-image-preview img {
    max-width: 150px;
    margin-bottom: 10px;
}

.mt-3
{margin-top: 20px;}

.admin-row {
    display: flex;
    gap: 20px;
}

.admin-col-left {
    width: 30%;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
}

.admin-col-right {
    width: calc(100% - 30%);
    padding: 10px;
    background: #fff;
     border-radius: 10px;
}

.admin-row  input[type="text"], 
.admin-row  input[type="date"] ,
.admin-row  select
{
    width: 100%;
}


.champs-filters {
    display: flex;
    gap: 10px;
    width: 100%;
}

.champs-filters input, .champs-filters select , .champs-filters number {
    width: 100%;
    height: 36px;
    background: #F3F3F5;
    border-radius: 5px;
    border: 0 !important;
}

.mobile-inner-view, .mobile--filter
{
    display: none;
}
.mobile-filter-view {
    width: 46px;
    height: 36px;
    background: var( --e-global-color-secondary );
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-filter-view svg {
    width: 22px;
    height: 22px;
}

.mobile-filter-view svg path {
    fill: #fff;
}


#filter-toggle:checked ~ .mobile--inner-filter {
    display: flex;
    position: absolute;
    width: 100%;
    top: 40px;
    z-index: 9;
    padding: 11px;
    background: #fff;
    flex-direction: column;
    gap: 10px;
	    box-shadow: 0px 8px 10px rgba(0,0,0, .2);
}


#filter-toggle
{
    display: none;
}

.listing-tabular {
    width: max-content;
    background: #ECECF0;
    padding: 5px;
    border-radius: 10px;
}

.tab-tb .elementor-button {
    background: transparent !important;
    color: #1A1A1A !important;
}
.tab-tb .elementor-button  svg path{
   
    fill: #1A1A1A !important;
}


.tab-tb .elementor-button.active, 
.tab-tb .elementor-button:hover {
    background: var( --e-global-color-secondary ) !important;
    color: #fff !important;
}


.tab-tb .elementor-button.active svg path, 
.tab-tb .elementor-button:hover svg  path{
    fill: #fff !important;
}


@media (max-width:1024px) {

    .champs-view.grid-view {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Exactly 3 columns */
        gap: 20px;
    }
}

@media (max-width:800px) {

    .champs-view.grid-view {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Exactly 3 columns */
        gap: 20px;
    }
          
    .desk--filter, .mobile--inner-filter
    {
        display: none;
    }
    .mobile--filter
    {
        display: flex;
    }
}



@media (max-width:767px) {
  
.champs-toggle-wrapper
{
    display: none;
}


.admin-col-left {
    width: 100%;
}

.admin-col-right {
    width: calc(100% )
}

.champs-view.grid-view {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Exactly 3 columns */
    gap: 20px;
}
}


@media (max-width:600px) {
      
.desk--view
{
    display: none;
}

.mobile--view {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.mobile-inner-view
{
    display: block;
    width: calc(100% - 50px);
}

.mobile--view h3 {
   margin: 0;
   margin-bottom: 5px;
   font-size: 18px;
   font-weight: 600;;
}
.mobile--view p {
   margin: 0;
   font-size: 14px;
}
 
.mobile--view .flag-img {
    width: 18px;
    height: auto !important;
}
.admin-row {
    display: flex;
    gap: 20px;
    flex-direction: column;
}
.champ-card .champ-thumb {
    width: 50px;
    height: 50px !important;
}


.gap-data h4, .rn-data h4 {
    font-size: 18px;
    font-weight: 600;
}

.gap-data .flex--box
{
    font-size: 14px;
}
.rn-data svg, .gap-data svg {
    width: 18px;
    height: 18px;
}
}