/*
Theme Name: Cube Blog Child
Template: cube-blog
Version: 1.0
*/

.articleH2 {
	text-align: center;
}


.image-row {
	margin-top: 20px;
	margin-bottom: 20px;
}



.related-posts {
    display: grid;
    grid-gap: 16px;
    margin-top: 20px;
}

.related-post {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
}
.related-post img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.related-post a {
    text-decoration: none;
    color: black;
    
}


@media (min-width: 768px) {
    .related-posts {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))
    }
}

@media (max-width: 767px) {
    .related-posts {
        grid-template-columns: 1fr; 
    }
}

/* Contact Form 7: subtle field borders */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  padding: 10px 12px;
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%;
}

/* Optional: clearer focus */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  border-color: rgba(0, 0, 0, 0.45);
  outline: none;
}


.design-form-section {
        margin-bottom: 20px;
    }
    .design-form-section label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }
    .design-form-section input[type="checkbox"],
    .design-form-section input[type="file"],
    .design-form-section input[type="text"],
    .design-form-section input[type="email"] {
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
    }
    .design-form-section input[type="checkbox"] {
        width: auto;
        margin-right: 10px;
    }
    .design-form-section [type="submit"] {
        background-color: black;
        color: white;
        padding: 15px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    .design-form-section [type="submit"]:hover {
        background-color: gray;
			
    }


.menu-item-1024 {
    position: relative;
}

.menu-item-1024::before {
    content: "free";
    color: red;
    font-size: 12px;
    font-weight: bold;	
		font-style: italic;
    position: absolute;
    top: -3px;
    left: 80%;
    transform: translateX(-50%);       padding: 2px 6px;    
}


.responsive-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.responsive-table table {
  width: 100%;
  border-collapse: collapse;
}





/* Before - After (BA) Slider */
.ba-slider {
    position: relative;
    overflow: hidden;
    width: 100%; /* Responsive width */
    /*max-width: 500px; /* Max width to prevent the slider from becoming too large */
    height: auto; /* Responsive height based on content */
    aspect-ratio: 1 / 1; /* Adjust this based on the actual aspect ratio of your images */
	user-select: none; /* Disable text selection */
}

.ba-slider img, .ba-resize {
    position: absolute;
    width: 100%; /* Covers full width of the slider */
    height: 100%; /* Covers full height of the slider */
	user-select: none; /* Disable text selection */
    pointer-events: none; /* Disable pointer events */
}

.ba-resize {
    background-size: cover; /* Ensures background image covers the area */
    /*background-position: center;  Centers background image */
    top: 0;
    left: 0;
    width: 50%; /* Initial position of the slider */
    height: 100%;
    overflow: hidden;
	user-select: none; /* Disable text selection */
    pointer-events: none; /* Disable pointer events */
}

.ba-handle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 30px;
    height: 60px;
    background-color: #fff;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
	 user-select: none; /* Disable text selection */
}

.ba-handle::before, .ba-handle::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    margin: 0 2px;
}

.ba-handle::before {
    border-width: 6px 6px 6px 0;
    border-right-color: #404040;
}

.ba-handle::after {
    border-width: 6px 0 6px 6px;
    border-left-color: #404040;
}

/* END OF Before - After (BA) Slider */