/*
Theme Name: Carepify
Theme URI: https://carepify.com
Description: A premium WordPress theme with advanced customization options and theme builder functionality.
Author: Carepify
Author URI: https://carepify.com
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carepify
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.site-branding {
    padding: 1rem 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.site-description {
    color: #666;
    margin: 0;
}

/* Navigation */
.main-navigation {
    background: #f8f9fa;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #007cba;
}

/* Content area */
.site-content {
    padding: 2rem 0;
}

.entry-content {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #666;
    margin-bottom: 1rem;
}

/* Footer */
/* .site-footer {
    background: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 2rem;
} */

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Default 404: scope under .carepify-404 only (Theme Builder / Elementor error template does not output this block). */
.carepify-404 {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 3rem;
    text-align: center;
}

.carepify-404__hero {
    padding: 2.5rem 1.25rem 2rem;
    margin-bottom: 0.5rem;
    border-radius: 16px;
    background: linear-gradient(160deg, #f0f7fc 0%, #f8f9fa 45%, #fff 100%);
    border: 1px solid rgba(0, 124, 186, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.carepify-404__code {
    font-size: clamp(4.5rem, 18vw, 7.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    margin: 0 0 0.75rem;
    background: linear-gradient(135deg, #007cba 0%, #005a8c 50%, #0a3d5c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
}

.carepify-404__header .page-title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.carepify-404__lead {
    font-size: 1.05rem;
    color: #555;
    max-width: 34em;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
}

.carepify-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.carepify-404__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.carepify-404__btn--primary {
    background: #007cba;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 124, 186, 0.35);
}

.carepify-404__btn--primary:hover {
    background: #006ba3;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
    transform: translateY(-1px);
}

.carepify-404__search-wrap {
    margin: 2rem auto 2.5rem;
    max-width: 480px;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.carepify-404__search-wrap .search-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: stretch;
}

.carepify-404__search-wrap .search-form label {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
}

.carepify-404__search-wrap .search-field {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.carepify-404__search-wrap .search-field:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
    background: #fff;
}

.carepify-404__search-wrap .search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.65rem 1rem;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.carepify-404__search-wrap .search-submit:hover {
    background: #1a1a1a;
}

.carepify-404__widgets {
    text-align: left;
    display: grid;
    gap: 1.75rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .carepify-404__widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 2rem;
    }

    .carepify-404__widgets .widget_tag_cloud {
        grid-column: 1 / -1;
    }
}

.carepify-404__widgets .widget {
    margin: 0;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.carepify-404__widgets .widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #007cba;
}

.carepify-404__widgets ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.carepify-404__widgets ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.carepify-404__widgets ul li:last-child {
    border-bottom: none;
}

.carepify-404__widgets a {
    color: #007cba;
    text-decoration: none;
}

.carepify-404__widgets a:hover {
    text-decoration: underline;
}

.carepify-404__widgets .post-date,
.carepify-404__widgets .widget_categories li {
    color: #555;
    font-size: 0.9375rem;
}

.carepify-404__widgets select {
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #fafbfc;
}

.carepify-404__widgets .tagcloud a {
    display: inline-block;
    margin: 0.2rem 0.35rem 0.2rem 0;
    padding: 0.25rem 0.5rem;
    background: #f0f7fc;
    border-radius: 6px;
    font-size: 0.875rem !important;
}

.carepify-404__widgets .tagcloud a:hover {
    background: #007cba;
    color: #fff !important;
    text-decoration: none;
}

/* Default single post (Theme Builder / Elementor single template does not output .carepify-single). */
.carepify-single {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.carepify-single .entry-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e8ecef;
}

.carepify-single .entry-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 0 0 0.85rem;
}

.carepify-single .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    font-size: 0.9375rem;
    color: #555;
    margin: 0;
}

.carepify-single .entry-meta a {
    color: #007cba;
    text-decoration: none;
}

.carepify-single .entry-meta a:hover {
    text-decoration: underline;
}

.carepify-single .posted-on,
.carepify-single .byline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.carepify-single .post-thumbnail {
    margin: 0 0 1.75rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecef;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.carepify-single .post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.carepify-single .entry-content {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2rem;
}

.carepify-single .entry-content > *:first-child {
    margin-top: 0;
}

.carepify-single .entry-content > *:last-child {
    margin-bottom: 0;
}

.carepify-single .entry-content p {
    margin: 0 0 1.15em;
}

.carepify-single .entry-content h2,
.carepify-single .entry-content h3,
.carepify-single .entry-content h4 {
    margin: 1.5em 0 0.65em;
    line-height: 1.3;
    color: #1a1a1a;
}

.carepify-single .entry-content ul,
.carepify-single .entry-content ol {
    margin: 0 0 1.15em 1.25em;
    padding-left: 0.25em;
}

.carepify-single .entry-content blockquote {
    margin: 1.25em 0;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    border-left: 4px solid #007cba;
    background: #f8fafb;
    border-radius: 0 8px 8px 0;
    color: #444;
}

.carepify-single .entry-content a {
    color: #007cba;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.carepify-single .entry-content a:hover {
    color: #005a8c;
}

.carepify-single .entry-content .page-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e8ecef;
    font-size: 0.9375rem;
}

.carepify-single .entry-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    padding: 1.25rem 0 0;
    margin-bottom: 2rem;
    border-top: 1px solid #e8ecef;
    font-size: 0.9375rem;
    color: #555;
}

.carepify-single .entry-footer a {
    color: #007cba;
    text-decoration: none;
}

.carepify-single .entry-footer a:hover {
    text-decoration: underline;
}

.carepify-single .entry-footer .cat-links,
.carepify-single .entry-footer .tags-links,
.carepify-single .entry-footer .edit-link {
    display: inline-block;
}

.carepify-single .post-navigation {
    margin: 2.5rem 0 0;
    padding: 0;
    border: none;
}

.carepify-single .post-navigation .nav-links {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr 1fr;
}

.carepify-single .post-navigation .nav-previous,
.carepify-single .post-navigation .nav-next {
    margin: 0;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.carepify-single .post-navigation .nav-previous:hover,
.carepify-single .post-navigation .nav-next:hover {
    border-color: rgba(0, 124, 186, 0.35);
    box-shadow: 0 4px 18px rgba(0, 124, 186, 0.12);
}

.carepify-single .post-navigation a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.carepify-single .post-navigation .nav-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    margin-bottom: 0.35rem;
}

.carepify-single .post-navigation .nav-title {
    font-weight: 600;
    color: #007cba;
}

.carepify-single .post-navigation .nav-next {
    text-align: right;
}

.carepify-single .comments-area {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8ecef;
}

.carepify-single .comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.25rem;
}

.carepify-single .comment-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.carepify-single .comment-list .children {
    list-style: none;
    margin: 0.75rem 0 0 1rem;
    padding: 0;
}

.carepify-single .comment-body {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.carepify-single .comment-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.carepify-single .comment-meta a {
    color: #007cba;
    text-decoration: none;
}

.carepify-single .comment-meta a:hover {
    text-decoration: underline;
}

.carepify-single .reply a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #007cba;
    text-decoration: none;
}

.carepify-single .reply a:hover {
    text-decoration: underline;
}

.carepify-single .comment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #444;
}

.carepify-single .comment-form input[type="text"],
.carepify-single .comment-form input[type="email"],
.carepify-single .comment-form input[type="url"],
.carepify-single .comment-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #fafbfc;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.carepify-single .comment-form input:focus,
.carepify-single .comment-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
    background: #fff;
}

.carepify-single .comment-form .form-submit input {
    width: auto;
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    color: #fff;
    background: #007cba;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 0;
    box-shadow: 0 4px 14px rgba(0, 124, 186, 0.3);
}

.carepify-single .comment-form .form-submit input:hover {
    background: #006ba3;
}

.carepify-single .no-comments {
    color: #666;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
    }

    .container {
        padding: 0 15px;
    }

    .carepify-404__hero {
        padding: 1.75rem 1rem 1.5rem;
    }

    .carepify-404__search-wrap .search-form {
        flex-direction: column;
    }

    .carepify-404__search-wrap .search-submit {
        width: 100%;
    }

    .carepify-single .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .carepify-single .post-navigation .nav-next {
        text-align: left;
    }
}
