/* Responsive grid layout */
.grandchild-categories-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 25px;
}

@media (max-width: 768px) {
    .grandchild-categories-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 480px) {
    .grandchild-categories-container {
        grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
    }
}

/* Style for the grandchild category div container */
.grandchild-category {
    border: 1px solid #000;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
}

/* Style for the grandchild category image */
.grandchild-category img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto 10px;
}

/* Style for the grandchild category title */
.grandchild-category a {
    font-weight: bold;
    text-decoration: none;
}

.cta-custom .elementor-cta__content {
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgb(0 0 0 / 50%) 100%);
}

/* Add your custom styles here */
html {
    font-size: 17px !important;
}

@media screen and (max-width: 1280px){
	html {
		font-size: 16px !important;
	}
}
/* Gravity Forms Styling
 * */

.gform_wrapper [type=button]:hover, .gform_wrapper [type=submit]:hover, .gform_wrapper button:hover, .gform_wrapper [type=button]:focus, .gform_wrapper [type=submit]:focus, .gform_wrapper button:focus {
	background-color: var(--e-global-color-accent);
	border: 0;
    border-radius: 0;
	outline: 0;
}
.gform_wrapper legend, .gform_wrapper label.gfield_label.gform-field-label{
	color: var(--e-global-color-primary) !important;
	margin-bottom:10px !important;
}

.gform_wrapper input[type=date], .gform_wrapper input[type=email], .gform_wrapper input[type=number], .gform_wrapper input[type=password], .gform_wrapper input[type=search], .gform_wrapper input[type=tel], .gform_wrapper input[type=text], .gform_wrapper input[type=url], .gform_wrapper select,.gform_wrapper  textarea {
    border-radius: 0 !important;
	padding: 6px 12px !important;
	border: 1px solid var( --e-global-color-primary ) !important;
}
.gfield {
	margin-bottom: 15px !important;
}
.gform_footer {
	margin: 0 !important;
	padding: 0 !important;
}
.gform_button:hover {
	color: var( --e-global-color-3da6697 ) !important;
	background-color: var( --e-global-color-primary ) !important;
	border-color: var( --e-global-color-primary ) !important;
}


/* Container for the grid */
.category-grid, .child-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 4fr); /* 3 columns */
    gap: 25px; /* Gap between grid items */
}

/* Style for each grid item */
.category-grid-item, .child-category-grid-item {
    background-color: #fff; /* Background color for each grid item */
    text-align: center; /* Center-align content */
}

/* Style for the image within each grid item */
.category-grid-item img, .child-category-grid img{
    max-width: 100%;
    height: 250px !important;
    object-fit: cover; /* Maintain aspect ratio while covering the container */
    margin-bottom: 10px; /* Space between image and category name */
	width: 100%;
}

/* Style for the category name within each grid item */
.category-grid-item h3, .child-category-grid-item h3 {
    margin: 0; /* Remove default margin */
}

p.gform_required_legend {
    display: none;
}

input#gform_submit_button_4 {
	fill: var(--e-global-color-3da6697) !important;
    color: var(--e-global-color-3da6697) !important;
    background-color: var(--e-global-color-primary) !important;
    padding: 5px 15px 5px 15px !important;
	font-family: var(--e-global-typography-accent-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-accent-font-size) !important;
    font-weight: var(--e-global-typography-accent-font-weight) !important;
    line-height: var(--e-global-typography-accent-line-height) !important;
    letter-spacing: var(--e-global-typography-accent-letter-spacing) !important;
	border-style: solid !important;
    border-width: 2px 2px 2px 2px !important;
    border-color: var(--e-global-color-primary) !important;
    border-radius: 0px 0px 0px 0px !important;
	width: 100%;
}

.gform_wrapper.gravity-theme .gform_fields {
    grid-column-gap: 0 !important;
    -ms-grid-columns: (1fr 2%) [12];
    grid-row-gap: 0 !important;
    display: grid;
    grid-template-columns: repeat(12,1fr);
    grid-template-rows: repeat(auto-fill,auto);
    width: 100%;
    align-content: space-around;
    justify-content: space-evenly;
    align-items: center;
}

.wp-block-image .aligncenter, .wp-block-image .aligncenter .elementor img {
    width: 100% !important;
}

.single-post figure {
    display: flex !important;
    width: 100% !important;
    flex-direction: column;
    align-content: space-between;
    justify-content: space-between;
    align-items: stretch;
}

.single-post figure img {
	width: 100%;
}

.img-cap p {
    display: inline !important;
	margin: 0 !important;
}

.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a {
	color: inherit;
	font-size: inherit;
	line-height: 10px !important;
}

/* Responsive styles for mobile devices */
@media screen and (max-width: 768px) {
    /* Stack the grid items in a single column */
    .category-grid, .child-category-grid {
        grid-template-columns: 1fr; /* 1 column */
    }
}

.mws-post-loop .elementor-widget-image a {
  display:initial !important;
}

.swiper-slide a {
	color: #FFF !important;
	font-size: 24px !important;
    text-shadow: 0 2px 5px #000 !important;
}

.wp-block-image figcaption {
	color: #0C4E67;
	font-size: 14px;
}

.elementor-widget-image a {
    display: inline-block;
    width: 100%;
}

img.repeater-img {
    height: 400px !important;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

.elementor-cta__description.elementor-cta__content-item.elementor-content-item {
    text-shadow: 0 2px 5px #000 !important;
}

.child-category-grid-item h3 {
    color: #0d4e67;
    margin-top: -15px;
}

.post-cat-title {
	font-family: var(--e-global-typography-57c40d2-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-57c40d2-font-size) !important;
    font-weight: var(--e-global-typography-57c40d2-font-weight) !important;
    text-transform: var(--e-global-typography-57c40d2-text-transform) !important;
    line-height: var(--e-global-typography-57c40d2-line-height) !important;
    letter-spacing: var(--e-global-typography-57c40d2-letter-spacing) !important;
    word-spacing: var(--e-global-typography-57c40d2-word-spacing) !important;
    color: var(--e-global-color-accent) !important;
}

.custom-divider {
    width: 50%;
    height: 1.5px;
    background: #f28b3b;
    margin: 30px 0;
}

.category-acf-section {
	margin: 20px 0;
}

.elementor-nav-menu .sub-menu a {
	line-height: 20px; /* Or your desired line height */
}

.elementor-nav-menu .sub-menu a:hover {
	line-height: 20px; /* Same line height as the normal state */
}