/*
Theme Name: CRC Food Grade
Description: Food Grade Child
Author: CRC Industries
Author URI: http://www.crcindustries.com/
Version: 1.1.0
Template: Divi
*/



body { 
	   -webkit-font-smoothing: antialiased;
	font-smoothing: always;
	text-rendering: optimizeLegibility;
	   -webkit-text-size-adjust: none;
	   -ms-text-size-adjust: 100%;
}

#main-header {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}




.circle {
  position:relative;
  width:98%;
  padding-bottom:98%;
  background:transparent;
  border: 1px solid #01823e;
  border-radius:50%;
  box-shadow: inset 0 0 0 2px #01823e;
  color: #01823e;
}
  
.circle:hover{
  background:#01823e;
	color: #fff!important; 
}
  
.circle p {
  position:absolute;
  top:50%; left:50%;
  transform: translate(-50%, -50%);
  margin:0;
  font-family: oswald;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.circle span { 
  font-size: 13px; 
  display: block;
}

.cert-container .circle span { 
  font-size: 12px!important; 
  display: block;
}

/* ### Menu breakpoint for default menu ### */
@media only screen and (max-width: 1130px) {
 #et_mobile_nav_menu {
	display: block;
}
 
#top-menu {
	display: none;
}
}

/* Desktop */
@media only screen and (min-width: 1024px) {
	.circle p {
		 font-size: 30px;
	}
	.cert-container .circle p { 
    font-size: 15px!important; 
  }
}

/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
	.circle p {
		 font-size: 26px;
	}
	.cert-container .circle p { 
    font-size: 15px!important; 
  }
}

/* Mobile */
@media only screen and (max-width: 767px) {
	.circle p {
		 font-size: 22px;
	}
	.cert-container .circle p { 
    font-size: 15px!important; 
  }
}

.cert-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: flex-start;
}

.cert-container a {
  flex: 0 0 auto;
}

/* For desktop - max 8 circles per row */
@media (min-width: 1025px) {
  .cert-container a {
    width: calc(8% - 14px);
    min-width: 160px;
    max-width: 220px;
  }
}

/* For tablet - max 3 circles per row */
@media (max-width: 1024px) and (min-width: 821px) {
  .cert-container a {
    width: calc(33.333% - 11px);
    min-width: 100px;
    max-width: 150px;
  }
}

/* For tablet - max 3 circles per row */
@media (max-width: 1024px) and (min-width: 821px) {
  .cert-container a {
    width: calc(33.333% - 11px);
    min-width: 100px;
    max-width: 150px;
  }
}

/* Special breakpoint for 4 circles only - 2x2 layout below 820px */
@media (max-width: 820px) and (min-width: 601px) {
  .cert-container a {
    width: calc(33.333% - 11px);
    min-width: 100px;
    max-width: 150px;
  }
  
  /* Only when there are exactly 4 circles, make them 2x2 */
  .cert-container a:first-child:nth-last-child(4),
  .cert-container a:first-child:nth-last-child(4) ~ a {
    width: calc(50% - 8px) !important;
    max-width: none !important;
  }
  
  /* Force line break after 2nd item when there are exactly 4 circles */
  .cert-container a:first-child:nth-last-child(4) ~ a:nth-child(2)::after {
    content: "";
    flex-basis: 100%;
    width: 0;
    height: 0;
  }
}

/* For mobile - max 2 circles per row */
@media (max-width: 600px) {
  .cert-container a {
    width: calc(50% - 8px);
    min-width: 80px;
    max-width: 120px;
  }
  
  /* Force 2x2 layout for exactly 4 circles on mobile too */
  .cert-container a:first-child:nth-last-child(4),
  .cert-container a:first-child:nth-last-child(4) ~ a {
    width: calc(50% - 8px) !important;
    max-width: none !important;
  }
  
  /* Force line break after 2nd item when there are exactly 4 circles */
  .cert-container a:first-child:nth-last-child(4) ~ a:nth-child(2)::after {
    content: "";
    flex-basis: 100%;
    width: 0;
    height: 0;
  }
}





/* Common styles for all devices */
.box {
  background-color: #f0f0f0; /* Adjust color as needed */
  padding: 20px; /* Adjust spacing as needed */
  text-align: center;
  width: 100%; /* Ensure each item takes up full width */
}

:root {
    --bg-table-stripe: #f6f6f5;
    --b-table: #e3e3e2;
    --caption: #242423;
}

table {
    background-color: transparent;
    border-collapse:collapse;
  	font-family: Arial, Helvetica, sans-serif
}

th {
    text-align:left;
		background-color: #444;
}

.entry-content tr th { color: #fff!important;
}

.dcf-txt-center {
      text-align: center!important
    }

    .dcf-txt-left {
      text-align: left!important
    }

    .dcf-txt-right {
      text-align: right!important
    }
    
.dcf-table caption {
      color: var(--caption);
      font-size: 1.13em;
      font-weight: 700;
      padding-bottom: .56rem
    }

    .dcf-table thead {
      font-size: .84em
    }

    .dcf-table tbody {
      border-bottom: 1px solid var(--b-table);
      border-top: 1px solid var(--b-table);
      font-size: .84em
    }

    .dcf-table tfoot {
      font-size: .84em
    }

    .dcf-table td, .dcf-table th {
      padding-right: 1.78em
    }

    .dcf-table-bordered, .dcf-table-bordered td, .dcf-table-bordered th {
      border: 1px solid var(--b-table)
    }

    .dcf-table-bordered td, .dcf-table-bordered th, .dcf-table-striped td, .dcf-table-striped th {
      padding-left: 1em;
      padding-right: 1em
    }

    .dcf-table-bordered tr:not(:last-child), .dcf-table-striped tr:not(:last-child) {
      border-bottom: 1px solid var(--b-table)
    }

    .dcf-table-striped tbody tr:nth-of-type(2n) {
      background-color: var(--bg-table-stripe)
    }

    .dcf-table thead td, .dcf-table thead th {
      padding-bottom: .75em;
      vertical-align: bottom
    }

    .dcf-table tbody td, .dcf-table tbody th, .dcf-table tfoot td, .dcf-table tfoot th {
      padding-top: .75em;
      vertical-align: top
    }

    .dcf-table tbody td, .dcf-table tbody th {
      padding-bottom: .75em
    }

    .dcf-table-bordered thead th {
      padding-top: 1.33em
    }

    .dcf-wrapper-table-scroll {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      left: 50%;
      margin-left: -50vw;
      margin-right: -50vw;
      padding-bottom: 1em;
      position: relative;
      right: 50%;
      width: 100vw
    }

    @media only screen and (max-width:42.09em) {
      .dcf-table-responsive thead {
        clip: rect(0 0 0 0);
        -webkit-clip-path: inset(50%);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        width: 1px;
        white-space: nowrap
      }
      .dcf-table-responsive tr {
        display: block
      }
      .dcf-table-responsive td {
        -webkit-column-gap: 3.16vw;
        -moz-column-gap: 3.16vw;
        column-gap: 3.16vw;
        display: grid;
        grid-template-columns: 1fr 2fr;
        text-align: left!important
      }
      .dcf-table-responsive.dcf-table-bordered, .dcf-table-responsive.dcf-table-bordered thead th {
        border-width: 0
      }
      .dcf-table-responsive.dcf-table-bordered tbody td {
        border-top-width: 0
      }
      .dcf-table-responsive:not(.dcf-table-bordered) tbody tr {
        padding-bottom: .75em
      }
      .dcf-table-responsive:not(.dcf-table-bordered) tbody td {
        padding-bottom: 0
      }
      .dcf-table-responsive:not(.dcf-table-bordered):not(.dcf-table-striped) tbody td {
        padding-right: 0
      }
      .dcf-table-responsive.dcf-table-bordered tbody tr:last-child td:last-child {
        border-bottom-width: 0
      }
      .dcf-table-responsive tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        padding-right: 1.78em
      }
    }

.dcf-overflow-x-auto {
      overflow-x: auto!important;
      -webkit-overflow-scrolling: touch
    }
    
.dcf-w-100\% {
  width: 100%!important;
		}

/*change hamburger icon to x when mobile menu is open*/
#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
	content: '\4d';
}
/*adjust the new toggle element which is added via jQuery*/
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
	width: 44px;
	height: 100%;
	padding: 0px !important;
	max-height: 44px;
	border: none;
	position: absolute;
	right: 0px;
	top: 0px;
	z-index: 999;
	background-color: transparent;
}
/*some code to keep everyting positioned properly*/
ul.et_mobile_menu>li.menu-item-has-children,
ul.et_mobile_menu>li.page_item_has_children,
ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.page_item_has_children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children {
	position: relative;
}
/*remove default background color from menu items that have children*/
.et_mobile_menu .menu-item-has-children>a,
.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children>a {
	background-color: transparent;
}
/*hide the submenu by default*/
ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
	display: none !important;
	visibility: hidden !important;
}
/*show the submenu when toggled open*/
ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
	display: block !important;
	visibility: visible !important;
}
/*adjust the toggle icon position and transparency*/
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
	text-align: center;
	opacity: 1;
}
/*submenu toggle icon when closed*/
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
	top: 10px;
	position: relative;
	font-family: "ETModules";
	content: '\33';
	color: #00823E;
	background: #f0f3f6;
	border-radius: 50%;
	padding: 3px;
}
/*submenu toggle icon when open*/
ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after {
	content: '\32';
}
/*add point on top of the menu submenu dropdown*/
.et_pb_menu_0.et_pb_menu .et_mobile_menu:after {
	position: absolute;
	right: 5%;
	margin-left: -20px;
	top: -14px;
	width: 0;
	height: 0;
	content: '';
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-bottom: 20px solid #ffffff;
}
/*adjust the position of the hamburger menu*/
.mobile_menu_bar {
	position: relative;
	display: block;
	bottom: 10px;
	line-height: 0;
}
/*force the background color and add a rounded border*/
.et_pb_menu_0.et_pb_menu .et_mobile_menu,
.et_pb_menu_0.et_pb_menu .et_mobile_menu ul {
}

tr.grey {
	background-color: #eee;
}

.col-right { text-align: right; }

  .button-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    text-align: center; /* Center text */
        flex-wrap: wrap; /* Allow buttons to wrap onto the next line */
  }
  
  .c2a-button {
    display: inline-block;
    padding: 16px 20px;
    margin: 5px;
    text-align: center;
    border: 2px solid #cd163f;
    background-color: transparent;
    color: #cd163f;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    font-family: oswald;
    font-size: 20px;
    min-width: 240px;
  }

  .solid-button {
    background-color: #cd163f;
    color: white;
    border: 2px solid #cd163f;
  }

  .solid-button:hover {
    background-color: #e81946;
    border-color: #e81946;
    color: #fff;
  }


.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: oswald;
  font-size: 22px;
	color: #bababa;
}

.tab {
  padding: 10px 40px;
  margin: 0 10px;
  cursor: pointer;
  border-bottom: 4px solid transparent;
}

.tab.active {
  border-color: #cd163f;
  color: #000;
}

.tab-content {
  display: none;
  padding: 40px 0;
}

.cert-wrapper h3 { text-align: center; display: block!important; clear: both; margin-bottom: 30px; }


