/* Add custom CSS styles below */ 

.one-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
    width: 100%;
}

.one-row > * {
    width: 100%;
    min-width: 0;
}

/* Condition 1: When canonical URL contains category/yDjwwp */
body:has(link[rel="canonical"][href*="category/yDjwwp"]) .navbar-brand img,
:root:has(link[rel="canonical"][href*="category/yDjwwp"]) .navbar-brand img {
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
}

body:has(link[rel="canonical"][href*="category/yDjwwp"]) .navbar-brand,
:root:has(link[rel="canonical"][href*="category/yDjwwp"]) .navbar-brand {
    background-image: url('https://clear-hub.shourk.com/temp/logo-b.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: right !important;
    height: 47.984px;
    width: 51.609px;
}


/* When the page has meta tag with product:category containing "Hub Talks Khobar" */
body:has(meta[property="product:category"][content*="Hub Talks Khobar"]) .navbar-brand img,
html:has(meta[property="product:category"][content*="Hub Talks Khobar"]) .navbar-brand img {
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
}

body:has(meta[property="product:category"][content*="Hub Talks Khobar"]) .navbar-brand,
html:has(meta[property="product:category"][content*="Hub Talks Khobar"]) .navbar-brand {
    background-image: url('https://clear-hub.shourk.com/temp/logo-b.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: right !important;
    height: 47.984px !important;
    width: 51.609px !important;
}



/* First, make the containers relative for absolute positioning */
.banner-entry.square-photos {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Add text at the bottom of first image */
.one-row a:nth-child(1)::after {
    content: "كلير هَب الرياض" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    background: rgba(0, 0, 0, 0.7) !important; /* Optional background */
    color: white !important;
    padding: 8px 0 !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

/* Add text at the bottom of second image */
.one-row a:nth-child(2)::after {
    content: "كلير هَب الخُبر" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    background: rgba(0, 0, 0, 0.7) !important; /* Optional background */
    color: white !important;
    padding: 8px 0 !important;
    font-weight: bold !important;
    font-size: 14px !important;
}