/** about us page **/
.ct-custom.elementor-widget-image-box,
.ct-custom .elementor-widget-container {
	height: 100%;
}

.ct-custom .elementor-widget-container {
	overflow: hidden;
}

.ct-custom .elementor-image-box-content {
	padding: 0 30px;
}

/* Universal Post Card Title Truncation for Blocksy Theme */
.entry-card .entry-title,
[data-layout] .entry-title,
.related-entry-title,
.ct-archive-card .entry-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* Forces maximum of exactly 2 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    white-space: normal !important; /* Overrides default nowrap lines */
}

/* Ensure Anchor Links Inside Titles Inherent Block Space */
.entry-card .entry-title a,
[data-layout] .entry-title a {
    display: inline !important;
}

/* Centered Responsive Game Matrix for CatFun Single Posts */
.catfun-arcade-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 40px !important;
    margin-bottom: 50px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #000000; /* Sleek arcade dark background shadow */
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.catfun-arcade-container iframe {
    display: block !important;
    max-width: 100% !important;
    border: none !important;
}

/* Smart Mobile Orientation Compression Scaling */
@media (max-width: 768px) {
    .catfun-arcade-container {
        margin-top: 25px !important;
        margin-bottom: 35px !important;
        border-radius: 6px !important;
    }
    .catfun-arcade-container iframe {
        height: 450px !important; /* Compresses heights nicely across mobile devices */
    }
}

/* Responsive Mobile Logo Expansion for Blocksy Theme */
@media (max-width: 768px) {
    /* Target Blocksy's core header branding image link container */
    .site-branding .site-logo img,
    [data-header] .site-logo img,
    .ct-header-logo img {
        max-height: 65px !important; /* Forces a much cleaner visual ceiling */
        height: auto !important; /* Safeguards aspect ratio geometry */
        width: auto !important;
        transform: scale(1.1) !important; /* Slightly scales up definition handles */
        object-fit: contain !important;
    }

    /* Force mobile header row wrapper elements to adapt to the taller asset space */
    .ct-header-item[data-item="logo"],
    .ct-header-mobile .ct-main-header-bar {
        min-height: 80px !important; /* Provides a spacious breathing zone */
    }
}

/* Clean container for the alphabet picker sitting below the title */
.az-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto 40px auto; /* Centered with a clean 40px space before the cat posts */
    justify-content: center;
    background: #ffffff;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    max-width: 1200px; /* Perfectly bounds it to match Blocksy's core grid framework */
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

/* Individual alphabet filter button links */
.az-picker a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive focus, active navigation, and mouse hover states */
.az-picker a:hover, 
.az-picker a.active {
    background: var(--theme-palette-color-1, #1e293b); /* Dynamically scales to your chosen customizer theme palette */
    color: #ffffff;
    border-color: var(--theme-palette-color-1, #1e293b);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Explicit scaling for the 'All' toggle option */
.az-picker a:first-child {
    width: auto;
    padding: 0 20px;
}

/* Responsive breakout formatting rules for mobile screens */
@media (max-width: 640px) {
    .az-picker {
        gap: 6px;
        padding: 12px;
        margin-bottom: 25px;
    }
    .az-picker a {
        width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 6px;
    }
}
/* 1. Set the single post container layout to flex direction */
.single-post .site-main article {
    display: flex;
    flex-direction: column;
}

/* 2. Push Related Posts up */
.single-post .related-posts,
.single-post [class*="related-posts"] {
    order: 10 !important;
}

/* 3. Push Comments Form up */
.single-post #comments,
.single-post .comments-area {
    order: 20 !important;
}

/* 4. Force Post Navigation to the absolute bottom */
.single-post .post-navigation,
.single-post nav.navigation.post-navigation {
    order: 30 !important;
    margin-top: 2em; /* Gives breathing room below the comment button */
}

/* Reduce the gap between the author box and the separated comments box */
.single-post .comments-area.ct-separated-section {
    margin-top: 1.5em !important;
    padding-top: 0 !important;
}

/* Optional: Tighten space on the container holding the author box */
.single-post .author-box {
    margin-bottom: 0.5em !important;
}
/* 1. Eliminate the huge native gap generated by Blocksy's post section loop */
.single-post [data-sidebar="no"] .ct-inner-container,
.single-post .site-main article,
.single-post .ct-container-fluid {
    gap: 0px !important;
    row-gap: 0px !important;
}

/* 2. Flatten the massive margins on the comments section itself */
.single-post section.comments-area,
.single-post div.comments-area,
.single-post [id="comments"].ct-separated-section {
    margin-top: 5px !important;
    padding-top: 0px !important;
    border-top: none !important;
}

/* 3. Pull the bottom of the author box area tight */
.single-post .author-box,
.single-post [data-element="author-box"],
.single-post .ct-author-box {
    margin-bottom: 5px !important;
    padding-bottom: 0px !important;
    border-bottom: none !important;
}
