/*
Theme Name: Kubio Child
Template: kubio
Theme URI: https://trt.guide/
Description: The description of the child theme goes here
Author: kubio
Author URI: http://example.com
Version: 4.0.0
*/


.home-categories-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-box {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.category-box:hover {
  transform: scale(1.02);
}

.cat-img {
  width: 100%;
  padding-top: 65%; /* aspect ratio */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cat-label {
  background-color: #f7931e;
  color: white;
  font-weight: 600;
  padding: 10px 15px;
  font-size: 16px;
  position: absolute;
  top: 0;
  left: 0;
  border-bottom-right-radius: 8px;
  z-index: 2;
}

/* Special styling for first box (big one) */
.home-categories-grid .category-box:first-child {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-categories-grid .category-box a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.single-post .entry-title {
    display: block !important;
}
