/*
 Theme Name: CheapFASTprinting News
 Theme URI: https://cheapfastprinting.com/news/
 Description: Custom blog theme that reuses the main site header and footer for consistent branding.
 Author: CheapFASTprinting
 Version: 1.4
*/

/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
body {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background-color: #f9fafb;
	color: #111827;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

/* Ensure the main container has room to breathe */
main#primary {
	display: block;
	width: 100%;
}

/* =========================================
   2. LINKS (Blue color fix)
   ========================================= */
/* We use !important to fight against the shared header's potential resets */
a {
	color: #0ea5e9;
	text-decoration: none;
	transition: color 0.2s ease;
}

.entry-content a,
.entry-summary a,
.cfp-news-article a,
.cfp-post-footer-list a {
	color: #0ea5e9 !important; /* Bright Blue */
	text-decoration: underline !important;
	font-weight: 500 !important;
}

.entry-content a:hover,
.entry-summary a:hover,
.cfp-news-article a:hover,
.cfp-post-footer-list a:hover {
	color: #0284c7 !important; /* Darker Blue on Hover */
	text-decoration: none !important;
}

/* Titles should not have underlines unless hovered */
h1 a, h2 a, h3 a {
	text-decoration: none !important;
	color: inherit !important;
}
h1 a:hover, h2 a:hover, h3 a:hover {
	color: #0ea5e9 !important;
}

/* =========================================
   3. POST CARDS & LAYOUT
   ========================================= */
/* Main white cards for posts */
article.cfp-news-single,
article.cfp-news-article {
	background: #ffffff !important;
	padding: 32px !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
	margin-bottom: 40px !important;
	border: 1px solid #f3f4f6;
    overflow: hidden; /* Ensures images don't spill out on hover */
}

/* Entry Title Styling */
.entry-title {
	font-size: 2.25rem !important;
	line-height: 1.25 !important;
	font-weight: 800 !important;
	letter-spacing: -0.025em !important;
	margin: 0 0 0.5rem 0 !important;
	color: #111827 !important;
}

.entry-meta {
	font-size: 0.875rem !important;
	color: #6b7280 !important;
	margin-bottom: 24px !important;
	border-bottom: 1px solid #f3f4f6;
	padding-bottom: 16px;
}

/* =========================================
   3b. POST LIST IMAGES (New Section)
   ========================================= */
.cfp-news-article-image {
    /* Negative margin pulls image to the edges of the card padding */
    margin: -32px -32px 24px -32px;
    overflow: hidden;
}

.cfp-news-article-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Apply the same animation defined later */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Hover effect on the whole card triggers image zoom */
.cfp-news-article:hover .cfp-news-article-image img {
     transform: scale(1.05) !important;
}


/* =========================================
   4. CONTENT TYPOGRAPHY
   ========================================= */
.entry-content, 
.entry-summary {
	font-size: 1.125rem !important; /* 18px */
	line-height: 1.8 !important;     /* airy line height */
	color: #374151 !important;
}

/* Paragraph spacing */
.entry-content p, 
.entry-summary p {
	margin-top: 0 !important;
	margin-bottom: 1.5rem !important; /* space between paragraphs */
}

/* Headings inside content */
.entry-content h2, .entry-content h3 {
	margin-top: 2.5rem !important;
	margin-bottom: 1rem !important;
	font-weight: 700;
	color: #111827;
}

/* Lists inside content */
.entry-content ul, .entry-content ol {
	margin-bottom: 1.5rem !important;
	padding-left: 20px !important;
}
.entry-content li {
	margin-bottom: 0.5rem !important;
}

/* =========================================
   5. CONTENT IMAGE ANIMATION (Single Posts)
   ========================================= */
/* This handles images inserted directly into post content */
.entry-content img,
figure,
.wp-caption {
	max-width: 100%;
	height: auto;
	margin: 20px 0;
	
	/* REMOVED: box-shadow, border, background */
	box-shadow: none !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	border-radius: 8px; 

	/* The Magic: Smooth 0.5s transition for transform only */
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
	display: inline-block;
}

.entry-content img:hover {
	/* Scale up slightly on hover */
	transform: scale(1.05) !important;
	cursor: pointer;
	box-shadow: none !important;
}

/* =========================================
   6. FOOTER WIDGETS
   ========================================= */
.cfp-post-footer-widgets {
	background: #ffffff;
	border-radius: 12px;
	padding: 24px;
	margin-top: 40px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
	.cfp-post-footer-widgets {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.cfp-post-footer-widgets {
		grid-template-columns: repeat(4, 1fr);
	}
}

.cfp-post-footer-heading {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #9ca3af;
	font-weight: 700;
	margin-bottom: 12px;
}

.cfp-post-footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cfp-post-footer-list li {
	margin-bottom: 8px;
	font-size: 0.95rem;
}

.cfp-post-footer-list li a {
	text-decoration: none !important;
	color: #4b5563 !important;
	transition: color 0.2s;
}

.cfp-post-footer-list li a:hover {
	color: #0ea5e9 !important;
}

/* =========================================
   7. SEARCH FORM (Always Visible)
   ========================================= */
.cfp-post-footer-search form {
	display: flex;
	width: 100%;
}

.cfp-post-footer-search label {
    display: none; 
}

.cfp-post-footer-search input[type="search"],
.cfp-post-footer-search input[type="text"] {
	width: 100%;
	padding: 10px 12px;
    
    /* Visible Border & Background */
	border: 1px solid #d1d5db !important; 
    background-color: #ffffff !important;
    color: #1f2937 !important;
    
	border-radius: 6px 0 0 6px;
	outline: none;
    font-size: 0.95rem;
    min-height: 42px; 
}

.cfp-post-footer-search button,
.cfp-post-footer-search input[type="submit"] {
	background-color: #0ea5e9;
	color: white;
	border: none;
	padding: 0 20px;
	border-radius: 0 6px 6px 0;
	cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 42px; 
    transition: background-color 0.2s;
}

.cfp-post-footer-search button:hover,
.cfp-post-footer-search input[type="submit"]:hover {
    background-color: #0284c7;
}

/* Tag Cloud Pills */
.cfp-tag-cloud a {
	display: inline-block;
	background: #f3f4f6;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	color: #4b5563 !important;
	text-decoration: none !important;
	margin: 0 4px 4px 0;
}
.cfp-tag-cloud a:hover {
	background: #0ea5e9;
	color: #ffffff !important;
}