/*
Theme Name: Twenty Twenty-Four
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Four is designed to be flexible, versatile and applicable to any website. Its collection of templates and patterns tailor to different needs, such as presenting a business, blogging and writing or showcasing work. A multitude of possibilities open up with just a few adjustments to color and typography. Twenty Twenty-Four comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.0
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/
.wp-site-blocks iframe #StockdioWidget_WatermarkBottom {
    display: none;
}
/* Add a line next to H2 in block groups */
.wp-container-core-group-is-layout-6c531013 h2.wp-block-heading{
    width:100%;
}

.wp-block-search__input{
    border-top:1px solid #12334E;
    border-right:1px solid #E70000;
    border-bottom:1px solid #E70000;
    border-left:1px solid #12334E;
}
.wp-block-search__input:focus{
    border:2px;
}
:root{
    --left-color: #12334E;
    --right-color: #E70000 ;
    --height: 2px;
    --duration: 800ms;
    --timing: cubic-bezier(.22,.9,.35,1);
}

/* ==========================
   NEW DIVIDER (NO SEAM)
   ========================== */
.divider{
    width: 100%;
    height: var(--height);
    position: relative;
    overflow: hidden;
    transform-origin: center;
    background: linear-gradient(
        90deg,
        var(--left-color) 0% 50%,
        var(--right-color) 50% 100%
    );
    transform: scaleX(0);
    animation: slideFromMiddle var(--duration) var(--timing) forwards;
}

/* remove seam completely */
.divider::after{
    display: none !important;
}

/* optional top highlight for crispness */
.divider::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.05);
    transform-origin: center;
    transform: scaleX(0);
    animation: slideFromMiddle var(--duration) var(--timing) forwards;
}

@keyframes slideFromMiddle{
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
    .divider, .divider::before {
        animation: none;
        transform: none;
        opacity: 1;
    }
}

/* ==========================
   OLD H2 LINE MERGED WITH NEW STYLE
   ========================== */
.wp-block-columns h2.wp-block-heading::after,
.home .wp-block-group h2::after,
.category .wp-block-group h2::after {
    content: "";
    display: block;
    height: var(--height);                 /* merge old style */
    background: linear-gradient(           /* use new gradient */
        90deg,
        var(--left-color) 0% 50%,
        var(--right-color) 50% 100%
    );
    margin-left: 10px;
    margin-top: 5px;
    flex-grow: 1;
    min-width: 20px;
    border-radius: 2px;
}

/* Bold latest posts */
ul a.wp-block-latest-posts__post-title {
    font-weight: bold !important;
}

.wp-singular h2{
    line-height: 2em;
}
.wp-block-latest-posts__read-more {
    display: block;
    background-color: #d62828; /* red button color */
    color: #ffffff !important; /* white text */
    padding: 2px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.2s ease;
    width: fit-content;
}

.wp-block-latest-posts__read-more:hover {
    background-color: #b71d1d; /* darker red on hover */
    transform: translateY(-2px);
}

.wp-block-latest-posts__read-more:active {
    transform: translateY(0);
}
