/*
 Theme Name:   Full Coffee Roast Child
 Theme URI:    https://fullcoffeeroast.com
 Description:  Full Coffee Roast child theme
 Author:       Jason Wilbur
 Author URI:   fullcoffeeroast.com
 Template:     generatepress
 Version:      1.0
*/

/* ========================================
   ULTRA-CRITICAL: Load FIRST to prevent flash
   ======================================== */

/* Hide full post content on archive pages */
body.archive .entry-content,
body.category .entry-content,
body.tag .entry-content,
body.archive .page-content,
body.category .page-content,
body.tag .page-content {
    display: none !important;
}

/* Hide category page header */
body.archive header.page-header[aria-label='Page'],
body.category header.page-header[aria-label='Page'],
body.tag header.page-header[aria-label='Page'] {
    display: none !important;
}

/* Force grid to show immediately */
body.archive .generate-columns-container,
body.category .generate-columns-container,
body.tag .generate-columns-container,
body.archive .generate-columns-container.are-images-unloaded,
body.category .generate-columns-container.are-images-unloaded,
body.tag .generate-columns-container.are-images-unloaded {
    opacity: 1 !important;
    visibility: visible !important;
    display: grid !important;
}

body.archive .generate-columns-container article,
body.category .generate-columns-container article,
body.tag .generate-columns-container article {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ========================================
   HOMEPAGE GENERATEBLOCKS STYLING
   ======================================== */
.gb-container-81e98fd7{background-color:#FFF5EA;}.gb-container-81e98fd7 > .gb-inside-container{max-width:1200px;margin-left:auto;margin-right:auto;}.gb-grid-wrapper > .gb-grid-column-81e98fd7 > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-grid-wrapper > .gb-grid-column-6f8a7566{width:50%;}.gb-grid-wrapper > .gb-grid-column-6f8a7566 > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-grid-wrapper > .gb-grid-column-4c8fb410{width:50%;}.gb-grid-wrapper > .gb-grid-column-4c8fb410 > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-container-4c8fb410 > .gb-inside-container{padding:40px;}.gb-container-c6f7cb5a{padding:20px 50px 5px;background-color:#ffd1a2;}.gb-container-e25d399f{padding:20px;}.gb-grid-wrapper > .gb-grid-column-e25d399f{width:25%;}.gb-container-dfdf8df3{padding:20px;}.gb-grid-wrapper > .gb-grid-column-dfdf8df3{width:25%;}.gb-container-8242e4f8{padding:20px;}.gb-grid-wrapper > .gb-grid-column-8242e4f8{width:25%;}.gb-container-26ac0fd7{padding:20px;}.gb-grid-wrapper > .gb-grid-column-26ac0fd7{width:25%;}.gb-container-cd7098af{max-width:1200px;margin-left:auto;margin-right:auto;}.gb-container-cd7098af > .gb-inside-container{padding:20px;}.gb-grid-wrapper > .gb-grid-column-cd7098af > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-container-6c15d1af{text-align:center;}.gb-grid-wrapper > .gb-grid-column-6c15d1af{width:25%;}.gb-grid-wrapper > .gb-grid-column-6c15d1af > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-grid-wrapper > .gb-grid-column-eb449d15{width:25%;}.gb-grid-wrapper > .gb-grid-column-eb449d15 > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-grid-wrapper > .gb-grid-column-f0da5120{width:25%;}.gb-grid-wrapper > .gb-grid-column-f0da5120 > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-grid-wrapper > .gb-grid-column-46c831cf{width:25%;}.gb-grid-wrapper > .gb-grid-column-46c831cf > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-grid-wrapper > .gb-grid-column-404ff3f8{width:25%;}.gb-grid-wrapper > .gb-grid-column-404ff3f8 > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-grid-wrapper > .gb-grid-column-56b5530a{width:25%;}.gb-grid-wrapper > .gb-grid-column-56b5530a > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-container-6c60b116{background-color:#edeff3;max-width:1200px;margin-left:auto;margin-right:auto;}.gb-container-6c60b116 > .gb-inside-container{padding:60px 60px 60px 20px;}.gb-grid-wrapper > .gb-grid-column-6c60b116 > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-container-73b7a6e2 > .gb-inside-container{max-width:1200px;margin-left:auto;margin-right:auto;}.gb-grid-wrapper > .gb-grid-column-73b7a6e2 > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-grid-wrapper > .gb-grid-column-6b97db27{width:50%;}.gb-grid-wrapper > .gb-grid-column-6b97db27 > .gb-container{justify-content:center;display:flex;flex-direction:column;height:100%;}.gb-container-e9db4dba{text-align:left;}.gb-grid-wrapper > .gb-grid-column-e9db4dba{width:50%;}.gb-grid-wrapper > .gb-grid-column-e9db4dba > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-container-e9e17942{max-width:1200px;margin-left:auto;margin-right:auto;}.gb-container-e9e17942 > .gb-inside-container{padding:20px;}.gb-grid-wrapper > .gb-grid-column-e9e17942 > .gb-container{display:flex;flex-direction:column;height:100%;}.gb-grid-wrapper-cca661ba{display:flex;flex-wrap:wrap;}.gb-grid-wrapper-cca661ba > .gb-grid-column{box-sizing:border-box;}.gb-grid-wrapper-93c09454{display:flex;flex-wrap:wrap;align-items:center;row-gap:60px;margin-left:-60px;}.gb-grid-wrapper-93c09454 > .gb-grid-column{box-sizing:border-box;padding-left:60px;}.gb-grid-wrapper-2135a915{display:flex;flex-wrap:wrap;justify-content:center;}.gb-grid-wrapper-2135a915 > .gb-grid-column{box-sizing:border-box;}.gb-grid-wrapper-9b5b6544{display:flex;flex-wrap:wrap;justify-content:center;}.gb-grid-wrapper-9b5b6544 > .gb-grid-column{box-sizing:border-box;}.gb-grid-wrapper-fa117b08{display:flex;flex-wrap:wrap;}.gb-grid-wrapper-fa117b08 > .gb-grid-column{box-sizing:border-box;}h2.gb-headline-902f65f5{font-size:22px;text-align:center;padding-bottom:10px;margin-bottom:0px;}h2.gb-headline-4773ee57{padding-top:20px;}h3.gb-headline-691b6436{font-size:22px;text-align:center;padding-top:20px;}h3.gb-headline-691b6436 a{color:var(--contrast);}h3.gb-headline-270e77a2{font-size:22px;text-align:center;padding-top:20px;}h3.gb-headline-270e77a2 a{color:var(--contrast);}h3.gb-headline-35ee7621{font-size:22px;text-align:center;padding-top:20px;}h3.gb-headline-35ee7621 a{color:var(--contrast);}h3.gb-headline-3fe4328f{font-size:22px;text-align:center;padding-top:20px;}h3.gb-headline-3fe4328f a{color:var(--contrast);}h3.gb-headline-6f82256a{font-size:22px;text-align:center;padding-top:20px;}h3.gb-headline-6f82256a a{color:var(--contrast);}h3.gb-headline-96c972df{font-size:22px;text-align:center;padding-top:20px;}h3.gb-headline-96c972df a{color:var(--contrast);}h2.gb-headline-010cc152{padding-bottom:8px;}@media (max-width: 767px) {.gb-grid-wrapper > .gb-grid-column-6f8a7566{width:100%;}.gb-grid-wrapper > .gb-grid-column-4c8fb410{width:100%;}.gb-grid-wrapper > .gb-grid-column-e25d399f{width:50%;}.gb-grid-wrapper > .gb-grid-column-dfdf8df3{width:50%;}.gb-grid-wrapper > .gb-grid-column-8242e4f8{width:50%;}.gb-grid-wrapper > .gb-grid-column-26ac0fd7{width:50%;}.gb-grid-wrapper > .gb-grid-column-6c15d1af{width:100%;}.gb-grid-wrapper > .gb-grid-column-eb449d15{width:100%;}.gb-grid-wrapper > .gb-grid-column-f0da5120{width:100%;}.gb-grid-wrapper > .gb-grid-column-46c831cf{width:100%;}.gb-grid-wrapper > .gb-grid-column-404ff3f8{width:100%;}.gb-grid-wrapper > .gb-grid-column-56b5530a{width:100%;}.gb-container-6b97db27 > .gb-inside-container{padding-bottom:40px;padding-left:30px;}.gb-grid-wrapper > .gb-grid-column-6b97db27{width:100%;}.gb-grid-wrapper > .gb-grid-column-6b97db27 > .gb-container{justify-content:center;}.gb-container-e9db4dba > .gb-inside-container{padding-left:20px;}.gb-grid-wrapper > .gb-grid-column-e9db4dba{width:100%;}}:root{--gb-container-width:1200px;}.gb-container .wp-block-image img{vertical-align:middle;}.gb-grid-wrapper .wp-block-image{margin-bottom:0;}.gb-highlight{background:none;}.gb-shape{line-height:0;}

/* ========================================
   CATEGORY/ARCHIVE LAYOUT - TECHCRUNCH STYLE
   ======================================== */

/* Hide category header */
header.page-header[aria-label='Page'] {
    display: none !important;
}

/* Ensure containers show immediately */
.generate-columns-container,
.generate-columns-container.are-images-unloaded {
    opacity: 1 !important;
    visibility: visible !important;
}
/* ========================================
   CATEGORY/ARCHIVE LAYOUT - CLEAN (NO EXCERPTS)
   ======================================== */

/* Hide category header */
header.page-header[aria-label='Page'] {
    display: none !important;
}

/* Clean grid */
.generate-columns-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.grid-sizer {
    display: none !important;
}

/* Clean article cards - NO EXCERPTS */
.generate-columns-container article {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transition: box-shadow 0.2s ease;
}

.generate-columns-container article:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.generate-columns-container article .inside-article {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Image first */
.generate-columns-container article .post-image {
    order: -1 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

.generate-columns-container article .post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Title and meta */
.generate-columns-container article .entry-header {
    order: 1;
    padding: 20px 20px 18px 20px;
}

.generate-columns-container article .entry-title {
    font-size: 22px;
    line-height: 1.4;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.generate-columns-container article .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.generate-columns-container article .entry-title a:hover {
    color: #cd2653;
}

.generate-columns-container article .entry-meta {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.generate-columns-container article .cat-links,
.generate-columns-container article .tags-links {
    display: none;
}

/* HIDE EXCERPT - cleaner, faster scanning */
.generate-columns-container article .entry-summary {
    display: none !important;
}

/* Hide AdThrive ads inside article cards */
.generate-columns-container article .adthrive-ad,
.generate-columns-container article [id*="AdThrive"],
.generate-columns-container article [class*="adthrive"] {
    display: none !important;
}

/* Mobile */
@media (max-width: 768px) {
    .generate-columns-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .generate-columns-container article .post-image img {
        height: 180px;
    }
    
    .generate-columns-container article .entry-title {
        font-size: 20px;
    }
}
/* ========================================
   HOMEPAGE CUSTOM STYLES
   ======================================== */

/* Hero section - reduced */
.home .gb-container-81e98fd7 {
    padding: 20px 0 \!important;
}

.home .gb-container-4c8fb410 .gb-inside-container {
    padding: 20px \!important;
}

.home .gb-headline-8ae1b51f {
    font-size: 28px \!important;
    margin-bottom: 10px \!important;
}

/* As Featured On - shrunk */
.home .gb-container-c6f7cb5a {
    padding: 10px 30px 5px \!important;
}

.home .gb-headline-902f65f5 {
    font-size: 16px \!important;
    margin-bottom: 5px \!important;
}

.home .gb-grid-wrapper-93c09454 {
    row-gap: 20px \!important;
}

.home .gb-grid-wrapper-93c09454 .gb-container {
    padding: 5px \!important;
}

.home .gb-grid-wrapper-93c09454 img {
    max-width: 80px;
    height: auto;
}

/* Categories - smaller */
.home .gb-container-cd7098af {
    padding: 20px \!important;
}

.home .gb-headline-4773ee57 {
    font-size: 20px \!important;
    margin-bottom: 15px \!important;
}

.home .gb-grid-wrapper-2135a915 {
    gap: 15px \!important;
}

.home .gb-grid-wrapper-2135a915 .gb-grid-column {
    width: 16.666% \!important;
}

.home .gb-grid-wrapper-2135a915 img {
    width: 80px \!important;
    height: 80px \!important;
}

.home .gb-grid-wrapper-2135a915 h3 {
    font-size: 14px \!important;
    padding-top: 5px \!important;
}

/* WP Show Posts styling for homepage */
.home .wp-show-posts {
    margin-bottom: 0 \!important;
}

.home .wp-show-posts-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.home .wp-show-posts-entry-title {
    font-size: 20px \!important;
    line-height: 1.4 \!important;
    margin: 10px 0 8px 0 \!important;
}

.home .wp-show-posts-entry-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.home .wp-show-posts-entry-title a:hover {
    color: #cd2653;
}

/* Single full-width posts */
.home .wp-show-posts-single:only-child {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.home .wp-show-posts-single:only-child .wp-show-posts-image {
    flex: 0 0 300px;
    margin-bottom: 0 \!important;
}

.home .wp-show-posts-single:only-child .wp-show-posts-entry-header {
    flex: 1;
}

.home .wp-show-posts-single:only-child .wp-show-posts-entry-title {
    font-size: 26px \!important;
}

/* 3-column grid posts */
.home .wp-show-posts-columns .wp-show-posts-single {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.home .wp-show-posts-columns .wp-show-posts-single:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.home .wp-show-posts-columns .wp-show-posts-image img {
    height: 180px;
}

.home .wp-show-posts-columns .wp-show-posts-entry-header {
    padding: 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .home .gb-grid-wrapper-2135a915 .gb-grid-column {
        width: 33.333% \!important;
    }
    
    .home .wp-show-posts-single:only-child {
        flex-direction: column;
    }
    
    .home .wp-show-posts-single:only-child .wp-show-posts-image {
        flex: none;
        width: 100%;
    }
}
/* ========================================
   HOMEPAGE CUSTOM STYLES
   ======================================== */

/* Hero section - reduced */
.home .gb-container-81e98fd7 {
    padding: 20px 0 !important;
}

.home .gb-container-4c8fb410 .gb-inside-container {
    padding: 20px !important;
}

.home .gb-headline-8ae1b51f {
    font-size: 28px !important;
    margin-bottom: 10px !important;
}

/* As Featured On - shrunk */
.home .gb-container-c6f7cb5a {
    padding: 10px 30px 5px !important;
}

.home .gb-headline-902f65f5 {
    font-size: 16px !important;
    margin-bottom: 5px !important;
}

.home .gb-grid-wrapper-93c09454 {
    row-gap: 20px !important;
}

.home .gb-grid-wrapper-93c09454 .gb-container {
    padding: 5px !important;
}

.home .gb-grid-wrapper-93c09454 img {
    max-width: 80px;
    height: auto;
}

/* Categories - smaller */
.home .gb-container-cd7098af {
    padding: 20px !important;
}

.home .gb-headline-4773ee57 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
}

.home .gb-grid-wrapper-2135a915 {
    gap: 15px !important;
}

.home .gb-grid-wrapper-2135a915 .gb-grid-column {
    width: 16.666% !important;
}

.home .gb-grid-wrapper-2135a915 img {
    width: 80px !important;
    height: 80px !important;
}

.home .gb-grid-wrapper-2135a915 h3 {
    font-size: 14px !important;
    padding-top: 5px !important;
}

/* WP Show Posts styling for homepage */
.home .wp-show-posts {
    margin-bottom: 0 !important;
}

.home .wp-show-posts-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.home .wp-show-posts-entry-title {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin: 10px 0 8px 0 !important;
}

.home .wp-show-posts-entry-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.home .wp-show-posts-entry-title a:hover {
    color: #cd2653;
}

/* Single full-width posts */
.home .wp-show-posts-single:only-child {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.home .wp-show-posts-single:only-child .wp-show-posts-image {
    flex: 0 0 300px;
    margin-bottom: 0 !important;
}

.home .wp-show-posts-single:only-child .wp-show-posts-entry-header {
    flex: 1;
}

.home .wp-show-posts-single:only-child .wp-show-posts-entry-title {
    font-size: 26px !important;
}

/* 3-column grid posts */
.home .wp-show-posts-columns .wp-show-posts-single {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.home .wp-show-posts-columns .wp-show-posts-single:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.home .wp-show-posts-columns .wp-show-posts-image img {
    height: 180px;
}

.home .wp-show-posts-columns .wp-show-posts-entry-header {
    padding: 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .home .gb-grid-wrapper-2135a915 .gb-grid-column {
        width: 33.333% !important;
    }
    
    .home .wp-show-posts-single:only-child {
        flex-direction: column;
    }
    
    .home .wp-show-posts-single:only-child .wp-show-posts-image {
        flex: none;
        width: 100%;
    }
}

/* Horizontal layout for single full-width posts */
.home .fcr-horizontal-post {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s ease;
}

.home .fcr-horizontal-post:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.home .fcr-horizontal-post .wp-show-posts-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
}

.home .fcr-horizontal-post .wp-show-posts-image {
    flex: 0 0 300px;
    margin-bottom: 0 !important;
}

.home .fcr-horizontal-post .wp-show-posts-image img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.home .fcr-horizontal-post .wp-show-posts-entry-header {
    flex: 1;
    margin: 0 !important;
}

.home .fcr-horizontal-post .wp-show-posts-entry-title {
    font-size: 26px !important;
    margin-bottom: 12px !important;
    line-height: 1.3;
}

.home .fcr-horizontal-post .wp-show-posts-entry-meta {
    margin-top: 10px;
}

/* 3-column grid posts - add modern styling */
.home .wp-show-posts-columns:not(.fcr-single-layout) .wp-show-posts-single {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.home .wp-show-posts-columns:not(.fcr-single-layout) .wp-show-posts-single:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.home .wp-show-posts-columns:not(.fcr-single-layout) .wp-show-posts-image img {
    height: 180px;
    object-fit: cover;
    border-radius: 0;
}

.home .wp-show-posts-columns:not(.fcr-single-layout) .wp-show-posts-entry-header {
    padding: 15px;
}

.home .wp-show-posts-columns:not(.fcr-single-layout) .wp-show-posts-entry-title {
    margin-bottom: 10px !important;
}

.home .wp-show-posts-columns:not(.fcr-single-layout) .wp-show-posts-entry-meta {
    margin-top: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .home .fcr-horizontal-post .wp-show-posts-inner {
        flex-direction: column;
    }

    .home .fcr-horizontal-post .wp-show-posts-image {
        flex: none;
        width: 100%;
    }

    .home .fcr-horizontal-post .wp-show-posts-image img {
        width: 100%;
        height: auto;
    }
}

/* Add proper spacing between 3-column grid tiles */
.home .wp-show-posts-columns:not(.fcr-single-layout) {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.home .wp-show-posts-columns:not(.fcr-single-layout) .wp-show-posts-single {
    margin-bottom: 0 !important;
}

/* Override the column width to account for gaps */
@media (min-width: 768px) {
    .home .wp-show-posts-columns:not(.fcr-single-layout) .wpsp-col-4 {
        width: calc(33.333% - 20px) !important;
        float: none !important;
    }
}

/* Excerpt styling for full-width posts */
.home .fcr-horizontal-post .wp-show-posts-excerpt {
    margin-top: 15px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.home .fcr-horizontal-post .wp-show-posts-content-wrap {
    flex: 1;
}

.home .fcr-horizontal-post .wp-show-posts-entry-header {
    margin-bottom: 0;
}

/* Reading time styling */
.home .wp-show-posts-readtime {
    color: #888;
    font-size: 14px;
    margin-left: 8px;
}

.home .wp-show-posts-readtime:before {
    content: "• ";
    margin-right: 5px;
}

/* For 3-column grid - position reading time better */
.home .wp-show-posts-columns:not(.fcr-single-layout) .wp-show-posts-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.home .wp-show-posts-columns:not(.fcr-single-layout) .wp-show-posts-readtime {
    margin-left: auto;
    font-weight: 500;
}
