/*
 Theme Name:     Caravan Promotions
 Theme URI:      https://www.caravansa.co.za/
 Description:    Caravan Promotions Divi Child Theme
 Author:         Caravan24
 Author URI:     https://www.caravan24.co.za
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */
@media only screen and (max-width: 980px) {
.home #main-header {
    background-color: #ffffff00;
}
}

/* CTA Button */
ul#mobile_menu {
    position: fixed;
    margin-top: 3px;
    margin-left: 3px;
    width: 99%;
    border-radius: 10px;
}
.et_mobile_menu .cta-button a {
    color: #000000 !important;
}
.et_mobile_menu .cta-button {
    border: unset;
    border-radius: unset;
    background: unset;
}
.et-fixed-header #top-menu .cta-button a {
    color: #fff !important;
}
.cta-button {
    border-radius: 3px;
    background: #EC0000;
}
.cta-button a {
    padding: 13px 18px !important;
    color: white !important;
}
/* ET Mobile Menu */
ul#mobile_menu {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.et_mobile_menu {
        padding: 0;
}
.et_mobile_menu li.menu-item {
    padding: 0;
}
.et_mobile_menu li.menu-item:last-child {
    border-bottom: unset;
}
.et_mobile_menu li.menu-item {
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
}
.et_mobile_menu .menu-item-has-children>a:first-child {
    padding-bottom: 0;
}
.et_mobile_menu ul.sub-menu {
    padding: 0 !important;
}
.et_mobile_menu li a:hover {
    background-color: unset;
}
/* Mobile */
ul.sub-menu {
    padding: 0 !important;
}
.sub-menu li.menu-item:last-child {
    border-bottom: none;
}
.nav ul li a:hover {
    background-color: unset;
}
.et_mobile_menu li a {
    border-bottom: none !important;
    padding: 10px 0;
}
.et_mobile_menu .sub-menu {
    padding-left: 15px !important;
}
.et_mobile_menu .menu-item-has-children>a {
    border-bottom: 1px solid #ddd !important;
    line-height: 3em !important;
    padding-top: 0;
    background-color: unset !important;
}
.et_pb_fullwidth_menu_0_tb_header.et_pb_fullwidth_menu ul li a {
    line-height: 1em !important; 
}
#mobile_menu1 li.menu-item-has-children > a {
    padding-top: 8px;
    padding-bottom: 15px;
}
#mobile_menu1 ul.sub-menu li:last-child {
    padding-bottom: 0 !important;
}
@media (max-width: 980px) {
	.et_pb_fullwidth_menu--style-centered .et_pb_menu__wrap {
    -webkit-box-pack: right;
    -ms-flex-pack: right;
    justify-content: right;
}
    .et_pb_fullwidth_menu .et_pb_row {
        min-height: 45px !important;
    }
}
/* Mobile menu end */
/* Table and Lists */
#table-list ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    border: 1px solid #e1e1e1;
    padding-bottom: 0 !important;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
}
#table-list ul li:nth-of-type(odd), table.table tr:nth-of-type(odd)  {
        background: #f7f7f7;
    color: #3d3d3d;
}
#table-list ul li, .entry-content tr td {
    padding: 6px 15px;
}
#table-list ul li:hover {
    background: #fbfbfb;
}
.entry-content tr td {
    border-top: 1px solid #f2f2f2;
    border-left: 1px solid #f2f2f2;
}
#top-menu li li a {
    padding: 10px 10px;
    width: 250px;
}
ul.sub-menu {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
.sent .wpcf7-response-output {
    background: #0043ff;
    border: none !important;
    color: #fff;
    padding: 19px 20px !important;
}
@media only screen and (max-width: 980px) {
  #logo {
    max-height: 95%;
}
}
table td {
    padding: 15px;
    border: 1px solid #d7d7d7;
}
table {
    margin-top: 15px;
}
/* Parent Category Page */
.et_pb_category_list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.et_pb_category_item {
	background-color: #fff;
	border: 1px solid #ddd;
	padding: 20px;
	text-align: center;
}

.et_pb_category_image img {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 10px;
}

.et_pb_category_content h2 {
	font-size: 18px;
	font-weight: bold;
	margin: 0;
}

.et_pb_category_content h2 a {
	text-decoration: none;
	color: #333;
}

.et_pb_category_content h2 a:hover {
	color: #0073e6;
}

@media (max-width: 768px) {
	.et_pb_category_list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.et_pb_category_list {
		grid-template-columns: 1fr;
	}
}
/* Parent Category Page */

.et-menu li li a {
    width: 280px;
}
.nav li ul {
    width: unset !important;
}
.home .mobile_menu_bar:before {
    color: #fff !important;
    font-size: 40px !important;
}
.mobile_menu_bar:before {
    font-size: 40px !important;
}
@media only screen and (max-width: 980px) {
  #logo {
    max-height: 95%;
}
}
.table {
    width: 100%;
    border: 1px solid #ddd;
}
.table tr {
    border-bottom: 1px solid #ddd;
}
.table tr td:first-child {
    border-right: 1px solid #ddd;
}
.table td {
    padding: 5px;
}
.table tbody tr:hover {
    background-color: #edecec;
}
/*styles the wp-pagenavi pagination links*/
.wp-pagenavi a, .wp-pagenavi span {
  padding: 15px 20px !important;
    font-size: 15px !important;
  color: #000;
  line-height: 2em;
  background: #eeeeee;
  transition: all .5s;
}
a.last {
    background: none !important;
}
@media (max-width: 980px) {
.logo-div-home .et_pb_row_4col>.et_pb_column.et_pb_column_1_4 {
    width: 100% !important;
    margin-right: unset !important;
}
	.logo-div-home .et_pb_column.et_pb_column_1_4 {
    width: 100%;
    margin-right: unset;
}
}
.category-news-events .et_pb_with_border.et_pb_row.et_pb_row_2_tb_body.et_pb_equal_columns.et_pb_gutters1 {
    display: none;
}
button:hover {
    cursor: pointer;
}
.et_pb_sidebar_0_tb_body {
    padding-bottom: 0px;
    margin-bottom: 0px!important;
}
.et_pb_widget_area_left {
    border-right: none;
    padding-right: unset;
}
.sent .wpcf7-response-output {
    background: #001972;
    border: none !important;
    color: #fff;
    padding: 19px 20px !important;
}
.sent #hideOnSent {
    display: none;
}
@media only screen and (max-width: 980px) {
	header.et-l.et-l--header {
    margin-bottom: 8px;
    box-shadow: 0px 0px 5px 0px #c5c4c4;
	}
	.et_pb_sidebar_0 {
    margin-bottom: 30px !important;
}
}