/* Modern Design Overrides - Inspired by Unocero */

/* Typography & Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #333;
    background-color: #f4f6f8;
    /* Light gray background like Unocero */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
}

/* Header Cleanup */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-top-two {
    background: #d60950;
    /* Dark top bar */
    color: #fff;
    padding: 5px 0;
}

.header-upper {
    padding: 15px 0;
}

.main-menu .navigation>li>a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    color: #333;
}

.sticky-header {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Design for Posts */
.news-block-one .inner-box,
.news-block-two .inner-box,
.news-block-three .inner-box,
.news-block-four .inner-box,
.blog-single .inner-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: none;
    margin-bottom: 30px;
}

.news-block-one .inner-box:hover,
.news-block-two .inner-box:hover,
.news-block-three .inner-box:hover,
.news-block-four .inner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Images */
.news-block-one .image img,
.news-block-two .image img,
.news-block-three .image img,
.news-block-four .image img {
    border-radius: 12px 12px 0 0;
    width: 100%;
    height: 220px;
    /* Fixed height for consistency */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-block-one .inner-box:hover .image img {
    transform: scale(1.05);
}

.image-box .image {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* Remove dark overlay on hover */
.news-block-one .inner-box .image a:before,
.news-block-two .inner-box .image a:before,
.news-block-three .inner-box .image a:before,
.news-block-four .inner-box .image a:before {
    display: none !important;
    background-color: transparent !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* Content within Cards */
.lower-box,
.content-box {
    padding: 20px !important;
}

.news-block-one h3 a,
.news-block-two h3 a,
.news-block-three h3 a,
.news-block-four h3 a {
    font-size: 18px;
    line-height: 1.4;
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.news-block-one h3 a:hover,
.news-block-two h3 a:hover,
.news-block-three h3 a:hover,
.news-block-four h3 a:hover {
    color: #d60950;
    /* Brand Color */
}

.post-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Single Post Specifics */
.blog-single .inner-box .text {
    padding: 0 30px 30px 30px;
    /* Added padding to prevent text from touching edges */
    font-size: 18px;
    line-height: 1.8;
    color: #222;
}

.blog-single .inner-box .upper-box {
    padding: 30px 30px 10px 30px;
    /* Consistent padding for the header area */
}

/* Buttons */
.btn-style-one,
.btn-style-two,
.btn-style-three,
.theme-btn {
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-style-one {
    background-color: #d60950;
    color: #fff;
}

.btn-style-one:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 116, 217, 0.4);
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

/* Sidebar Title Fix */
.sidebar-title {
    position: relative;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    background: transparent !important;
    /* Override any existing background */
}

.sidebar-title:before {
    display: none;
    /* Remove any pseudo-element backgrounds */
}

.sidebar-title h2 {
    font-size: 18px;
    color: #111;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    background: transparent !important;
    /* Remove blue background */
    color: #d60950;
    /* Make text blue instead */
    display: inline-block;
    border-bottom: 2px solid #d60950;
    /* Underline effect */
    padding-bottom: 10px;
    margin-bottom: -11px;
    /* Overlap the bottom border */
}

/* Author Box Modernization */
.author-box {
    margin-bottom: 40px;
}

.author-box .author-comment .inner-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: none;
    /* Remove default borders */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.author-box .author-comment .inner-box .image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 25px;
    flex-shrink: 0;
    border: 3px solid #f4f6f8;
    position: static;
    /* Reset absolute positioning if any */
    margin-bottom: 0;
}

.author-box .author-comment .inner-box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box .author-comment .inner-box h4 {
    width: calc(100% - 130px);
    /* Remaining space */
    font-size: 20px;
    margin-bottom: 10px;
    color: #d60950;
    margin-top: 0;
}

.author-box .author-comment .inner-box h4 a {
    color: #d60950;
    text-decoration: none;
}

.author-box .author-comment .inner-box .text {
    width: 100%;
    padding-left: 125px;
    /* Align with text start */
    margin-top: -15px;
    /* Pull up closer to title */
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Social Icons in Author Box */
.author-box .social-icon-two {
    padding-left: 125px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.author-box .social-icon-two li a {
    color: #999;
    font-size: 18px;
    margin-right: 15px;
    transition: color 0.3s;
}

.author-box .social-icon-two li a:hover {
    color: #d60950;
}

/* "Si tienes un proyecto" CTA */
.author-box .author-comment .inner-box h4:last-of-type {
    width: 100%;
    padding-left: 125px;
    font-size: 16px;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Mobile adjustments for Author Box */
@media (max-width: 767px) {
    .author-box .author-comment .inner-box {
        text-align: center;
        display: block;
    }

    .author-box .author-comment .inner-box .image {
        margin: 0 auto 20px auto;
        float: none;
    }

    .author-box .author-comment .inner-box h4 {
        width: 100%;
        text-align: center;
    }

    .author-box .author-comment .inner-box .text {
        padding-left: 0;
        margin-top: 0;
    }

    .author-box .social-icon-two {
        padding-left: 0;
        text-align: center;
    }

    .author-box .author-comment .inner-box h4:last-of-type {
        padding-left: 0;
    }
}

/* Footer */
.main-footer {
    background: #1a1a1a;
    color: #ccc;
    padding-top: 60px;
}

.main-footer h3 {
    color: #fff;
}

/* Unocero-specific details */
.category-tag {
    background: #d60950;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.author-box .author-comment {
    padding: 5px 0px 5px;
}

.product-widget-tabs .prod-tabs .tab-btns .tab-btn {
    padding: 3px 7px 6px;
    
}