/* =============================================================================
   Search Block Styles
   ============================================================================= */
.search-block {
margin: 30px 0;
}

.search-block .hd-search-form {
position: relative;
max-width: 600px;
margin: 0 auto;
}

.search-block .search-field {
width: 100%;
padding: 15px 60px 15px 20px;
border-radius: 30px;
border: 1px solid #ddd;
font-size: 16px;
box-sizing: border-box;
transition: all 0.3s ease;
}

.search-block .search-field:focus {
outline: none;
border-color: #2271b1;
box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.search-block .search-submit {
position: absolute;
right: 5px;
top: 5px;
height: calc(100% - 10px);
border-radius: 25px;
border: none;
background: #333;
color: #fff;
padding: 0 25px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}

.search-block .search-submit:hover {
background: #2271b1;
transform: scale(1.05);
}

.search-block .search-submit .dashicons {
line-height: 1;
font-size: 20px;
}

/* Search Block Styles */
.search-block.style-standard {
background-color: #f5f5f5;
padding: 40px 20px;
border-radius: 8px;
}

.search-block.style-minimal {
background-color: transparent;
padding: 20px 0;
}

.search-block.style-minimal .search-field {
background-color: #fff;
border: 2px solid #ddd;
}

.search-block.style-minimal .search-field:focus {
border-color: #2271b1;
}

.search-block.style-colorful {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 50px 20px;
border-radius: 12px;
color: #fff;
}

.search-block.style-colorful .feature-block-title {
color: #fff;
}

.search-block.style-colorful .search-field {
background-color: rgba(255, 255, 255, 0.95);
border: none;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-block.style-colorful .search-field:focus {
background-color: #fff;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-block.style-colorful .search-submit {
background: #333;
}

/* Default Standard Style Improvements */
.search-block.style-standard {
border-radius: 8px;
padding: 30px 20px;
}

.search-block .search-field {
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-block .search-field:focus {
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
border-color: #aaa;
outline: none;
}

.search-block .search-submit {
transition: all 0.3s ease;
background: #444;
}

.search-block .search-submit:hover {
background: #000;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.search-block.style-colorful .search-submit:hover {
background: #000;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 767px) {
.search-block .hd-search-form {
max-width: 100%;
}

.search-block .search-field {
padding: 12px 50px 12px 15px;
font-size: 14px;
}

.search-block .search-submit {
padding: 0 15px;
}

.search-block .search-submit .dashicons {
font-size: 18px;
}
}

/* =============================================================================
   Tag Cloud Block
   ============================================================================= */
.tagcloud-block .tagcloud-wrapper {
display: flex;
flex-wrap: wrap;
gap: 10px;
}

.tagcloud-block.style-cloud a {
display: inline-block;
padding: 6px 14px;
background: #f5f5f5;
border-radius: 20px;
text-decoration: none;
color: #555;
transition: all 0.2s ease;
border: 1px solid transparent;
}

.tagcloud-block.style-cloud a:hover {
background: #2271b1;
color: #fff;
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(34, 113, 177, 0.2);
}

.tagcloud-block.style-cloud .size-1 { font-size: 0.85em; opacity: 0.9; }
.tagcloud-block.style-cloud .size-2 { font-size: 1.0em; font-weight: 500; }
.tagcloud-block.style-cloud .size-3 { font-size: 1.25em; font-weight: bold; }

/* =============================================================================
   Feature Content Block
   ============================================================================= */
.hd-feature-content-embed {
position: relative;
padding: 20px;
background: #fff;
border: 1px solid #eee;
border-radius: 8px;
overflow: hidden;
margin-bottom: 20px;
}

.hd-feature-content-embed .fc-feature-image {
margin: -20px -20px 20px -20px;
}

.hd-feature-content-embed .fc-feature-image img {
width: 100%;
height: auto;
display: block;
}

.hd-feature-content-embed .fc-title {
font-size: 1.6em;
margin-bottom: 20px;
line-height: 1.3;
}

/* =============================================================================
   Collection Block: Grid Style
   ============================================================================= */
.collection-slider-block.style-grid .collection-slider {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
overflow: visible; /* Override slider overflow */
white-space: normal; /* Override slider nowrap */
}

.collection-slider-block.style-grid .collection-item {
display: block; /* Override slider inline-block */
width: auto !important; /* Override slider width */
margin-right: 0;
}

@media (max-width: 900px) {
.collection-slider-block.style-grid .collection-slider {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 600px) {
.collection-slider-block.style-grid .collection-slider {
grid-template-columns: 1fr;
}
}

/* ============================================
   Mobile Excerpt Hiding
   ============================================ */
@media (max-width: 767px) {
.hide-excerpt-mobile .postcard_excerpt {
display: none !important;
}
}

/* ============================================
   Title Style Variants
   ============================================ 
   NOTE: Title styles are fully defined in 
   /css/style/page-home.css to avoid conflicts.
   Do not add duplicate definitions here.
   ============================================ */

/* =========================================
   Search Block Styles
   ========================================= */
.homepage-feature-block.search-block .feature-block-container {
text-align: center;
padding: 40px 20px;
max-width: 1200px;
margin: 0 auto;
}

.homepage-feature-block.search-block .feature-block-title {
display: flex;
justify-content: center;
margin-bottom: 25px;
font-size: 1.5em;
color: inherit;
}

.hd-search-form {
max-width: 600px;
margin: 0 auto;
position: relative;
}

.hd-search-form__inner {
position: relative;
width: 100%;
}

.hd-search-form__input {
width: 100%;
padding: 15px 60px 15px 25px; /* Right padding for button */
border-radius: 30px;
border: 1px solid #ddd;
font-size: 16px;
outline: none;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.hd-search-form__input:focus {
border-color: #333;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hd-search-form__submit {
position: absolute;
right: 5px;
top: 5px;
height: calc(100% - 10px);
width: 50px; /* Specific width for circle/pill button */
border-radius: 50%; /* Circle by default if only icon */
border: none;
background: #333;
color: #fff;
padding: 0;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s ease, transform 0.2s ease;
}

.hd-search-form__submit:hover {
background-color: #000;
transform: scale(1.05);
}

.hd-search-form__submit .dashicons {
font-size: 20px;
width: 20px;
height: 20px;
line-height: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.homepage-feature-block.search-block .feature-block-container {
padding: 30px 15px;
}

.hd-search-form__input {
font-size: 14px;
padding: 12px 50px 12px 20px;
}
}

/* Enhanced Search Button Hover */
.hd-search-form__submit {
transition: all 0.3s ease;
}

.hd-search-form__submit:hover {
background-color: #0073aa !important; /* Use WordPress primary blue for clear contrast */
color: #fff !important;
transform: scale(1.1);
box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}
/* =============================================================================
   Widget Area: Inner Widget Styling
   ============================================================================= */

/* Default Style: Reset if needed */
.widget-area-wrapper.inner-style-default .widget-title {
border-left: 5px solid var(--inner-accent-color, #2271b1);
padding-left: 15px;
}

/* Centered Style */
.widget-area-wrapper.inner-style-centered .widget-title {
text-align: center;
position: relative;
padding-bottom: 15px;
margin-bottom: 20px;
}
.widget-area-wrapper.inner-style-centered .widget-title::after {
content: '';
display: block;
width: 50px;
height: 3px;
background-color: var(--inner-accent-color, #2271b1);
margin: 10px auto 0;
}

/* Left Border Style */
.widget-area-wrapper.inner-style-left-border .widget-title {
border-left: 5px solid var(--inner-accent-color, #2271b1);
padding-left: 15px;
margin-bottom: 20px;
}

/* Bottom Border Style */
.widget-area-wrapper.inner-style-bottom-border .widget-title {
border-bottom: 2px solid #eee;
padding-bottom: 10px;
margin-bottom: 20px;
position: relative;
}
.widget-area-wrapper.inner-style-bottom-border .widget-title::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 60px;
height: 2px;
background-color: var(--inner-accent-color, #2271b1);
}

