/*
 Theme Name:   Kadence Child
 Theme URI:    https://kadencewp.com/
 Description:  A premium customized child theme for Stem Cells Bio Clinic.
 Author:       Usama
 Author URI:   #
 Template:     kadence
 Version:      1.0.0
 Text Domain:  kadence-child
*/

/* ============================================================ */
/* Your custom layout grid styles start below this line         */
/* ============================================================ */


/* ============================================================ */
/* STEM CELLS BIO CLINIC - BLOG HERO SECTION                    */
/* ============================================================ */

.sc-blog-hero {
    background-color: #F8FAFC !important;
    padding: 1rem 2rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

.sc-hero-container {
    max-width: 800px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.sc-badge-solid {
    display: inline-block !important;
    background-color: #2563EB !important;
    color: #FFFFFF !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 0.4rem !important;
    margin-bottom: 2rem !important;
}

.sc-hero-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 4.5rem !important;
    font-weight: 800 !important;
    color: #071A36 !important;
    line-height: 1.1 !important;
    margin: 0 0 2rem 0 !important;
    letter-spacing: -0.02em !important;
}

.sc-hero-subtitle {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.35rem !important;
    color: #071A36 !important;
    margin: 0 0 2rem 0 !important;
    font-weight: 400 !important;
}

.sc-hero-description {
    font-size: 1.15rem !important;
    color: #071A36 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    max-width: 90% !important;
}

@media (max-width: 768px) {
    .sc-blog-hero { padding: 4rem 1.5rem !important; }
    .sc-hero-title { font-size: 2.8rem !important; }
    .sc-hero-subtitle { font-size: 1.1rem !important; }
    .sc-hero-description { font-size: 1rem !important; max-width: 100% !important; }
}


/* ============================================================ */
/* STEM CELLS BIO CLINIC - SYSTEM RESET & GRID STYLING          */
/* ============================================================ */

/* Main outer layout section containment and padding */
.st-main-layout-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem 1.5rem !important;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.st-blog-grid-wrapper {
    width: 100%;
    display: block;
}

/* Clear Kadence parent layout defaults & format 3-column architecture */
#archive-container.st-blog-grid,
.st-blog-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

@media (min-width: 768px) {
    .st-blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .st-blog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Premium Clinical Cards structural resets */
.st-blog-card {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

.st-blog-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 22px 30px -5px rgba(15, 23, 42, 0.06), 0 12px 15px -5px rgba(15, 23, 42, 0.04) !important;
}

/* Absolute 16:9 Aspect Ratio Containment & Image Link Stack */
.st-card-thumb {
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important; /* Forces true 16:9 shape box rendering */
    background-color: #F1F5F9 !important;
    overflow: hidden !important;
    display: block !important;
}

/* Click frame hyper-layered to capture all user mouse interactions */
.st-thumb-click-frame {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    z-index: 20 !important; /* Positions it over standard elements */
}

.st-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10 !important;
}

.st-blog-card:hover .st-thumb-img {
    transform: scale(1.04) !important;
}

/* Category Pill badge overlay */
.st-card-category {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    background-color: #071A36 !important;
    color: #FFFFFF !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 0.5rem !important;
    text-transform: uppercase !important;
    z-index: 30 !important; /* Places badge on top of clickable frames */
    letter-spacing: 0.02em !important;
    pointer-events: none !important; /* Clicks pass clean down to click-frame */
}

/* Layout spacing inside card text space */
.st-card-content {
    padding: 2rem 1.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    box-sizing: border-box !important;
}

.st-card-meta {
    font-size: 0.813rem !important;
    color: #94A3B8 !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
}

.st-card-title {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    color: #071A36 !important;
    font-weight: 700 !important;
    margin: 0 0 1rem 0 !important;
}

.st-card-title a {
    color: #071A36 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.st-card-title a:hover {
    color: #2563EB !important;
}

.st-card-excerpt p {
    font-size: 0.938rem !important;
    line-height: 1.6 !important;
    color: #64748B !important;
    margin: 0 0 1.75rem 0 !important;
}

/* Action Read More Links styling */
.st-card-readmore {
    margin-top: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #2563EB !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.st-card-readmore svg {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.2s ease !important;
}

.st-blog-card:hover .st-card-readmore svg {
    transform: translateX(4px) !important;
}

/* Centered Pagination Spacing block */
.st-blog-pagination {
    margin-top: 5rem !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.st-blog-pagination ul {
    display: inline-flex !important;
    gap: 0.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.st-blog-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 1rem !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 0.75rem !important;
    color: #475569 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.938rem !important;
    transition: all 0.2s ease !important;
}

.st-blog-pagination a.page-numbers:hover {
    border-color: #CBD5E1 !important;
    background-color: #F8FAFC !important;
    color: #071A36 !important;
}

.st-blog-pagination .page-numbers.current {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}

.st-blog-pagination .p-arrow {
    width: 16px;
    height: 16px;
}





/* ============================================================ */
/* STEM CELLS BIO CLINIC - COMPLETE SINGLE POST CUSTOMIZATIONS  */
/* ============================================================ */

/* Top level structural resets */
.st-single-post-area {
    background-color: #F8FAFC;
    width: 100%;
}

/* Premium Medical Hero Title Banner (Solid Gradient Background) */
.st-single-hero {
    padding: 6.5rem 1.5rem !important;
    background: linear-gradient(135deg, #071A36 0%, #0F4C81 100%) !important;
    color: #FFFFFF !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle underlying mesh vector grid overlay for the solid hero */
.st-single-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%232563eb" fill-opacity="0.04"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
}

.st-hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.st-hero-meta-cat {
    display: inline-block;
    background-color: #2563EB;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.st-entry-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #FFFFFF !important;
    margin: 0 0 1.5rem 0 !important;
}

@media (min-width: 768px) {
    .st-entry-title { font-size: 3.25rem !important; }
}

.st-hero-meta-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.938rem;
    color: #CBD5E1;
}

.st-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.st-meta-item svg {
    width: 16px;
    height: 16px;
}

/* Main Layout Wrapper Columns */
.st-single-layout-wrapper {
    max-width: 1290px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    box-sizing: border-box;
}

.st-single-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

@media (min-width: 1024px) {
    .st-single-main-grid {
        grid-template-columns: 7fr 3.5fr;
    }
}

/* Left Column Main Article Card */
.st-main-article-content {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .st-main-article-content { padding: 3.5rem; }
}

/* Featured Image Positioned Inside Left Column Above Body Text */
.st-post-featured-image-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 2.5rem 0 !important;
    border-radius: 0.875rem !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(7, 26, 54, 0.05);
}

.st-post-featured-img {
    width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Dynamic Content Article Typography Engine */
.st-entry-content-body {
    font-size: 1.063rem;
    line-height: 1.85;
    color: #334155;
}

.st-entry-content-body h2 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.85rem !important;
    color: #071A36 !important;
    margin: 2.5rem 0 1.25rem 0 !important;
    font-weight: 700 !important;
}

.st-entry-content-body h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.45rem !important;
    color: #071A36 !important;
    margin: 2rem 0 1rem 0 !important;
    font-weight: 700 !important;
}

.st-entry-content-body p {
    margin: 0 0 1.5rem 0 !important;
}

.st-entry-content-body ul, .st-entry-content-body ol {
    margin: 0 0 1.75rem 1.5rem !important;
    padding: 0 !important;
}

.st-entry-content-body li {
    margin-bottom: 0.5rem !important;
}

/* Right Column Sidebar & Sticky Conversion Form Module */
.st-sidebar-column {
    width: 100%;
}

.st-sticky-form-card {
    position: -webkit-sticky;
    position: sticky;
    top: 110px !important; /* Safely offsets card under Kadence sticky header to prevent layout cutting */
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.03);
    transition: top 0.3s ease !important;
}

.st-form-header-banner {
    background-color: #071A36;
    padding: 1.75rem;
    text-align: center;
    color: #FFFFFF;
}

.st-form-header-banner h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.25rem !important;
    color: #FFFFFF !important;
    margin: 0 0 0.25rem 0 !important;
    font-weight: 700 !important;
}

.st-form-header-banner p {
    font-size: 0.875rem !important;
    color: #94A3B8 !important;
    margin: 0 !important;
}

.st-actual-form-wrapper {
    padding: 2rem 1.75rem;
}

/* Universal Form Elements UI System */
.st-native-clinic-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.st-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.st-form-field label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.st-form-field input, 
.st-form-field textarea,
.st-form-field select {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.75rem 1rem !important;
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 0.5rem !important;
    font-size: 0.938rem !important;
    color: #071A36 !important;
    outline: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    font-family: inherit;
}

/* Dropdown specific reset style details */
.st-form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1rem;
    padding-right: 2.5rem !important;
    cursor: pointer;
}

.st-form-field input:focus, 
.st-form-field textarea:focus,
.st-form-field select:focus {
    border-color: #2563EB !important;
    background-color: #FFFFFF !important;
}

/* Two column field row layout helper */
.st-form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Compliant Legal Checkbox Field UI Details */
.st-form-field-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 0.25rem;
}

.st-form-field-checkbox input[type="checkbox"] {
    margin-top: 0.2rem !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: #2563EB;
    cursor: pointer;
    flex-shrink: 0;
}

.st-form-field-checkbox label {
    font-size: 0.75rem !important;
    line-height: 1.45 !important;
    color: #475569 !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer;
    user-select: none;
}

.st-form-submit-btn {
    width: 100% !important;
    padding: 0.9rem !important;
    background-color: #2563EB !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    font-size: 0.938rem !important;
    transition: background-color 0.2s ease !important;
    margin-top: 0.25rem;
}

.st-form-submit-btn:hover {
    background-color: #1D4ED8 !important;
}

/* Resource Share Deck Wrapper */
.st-share-box-container {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
}

.st-share-title {
    font-size: 0.938rem !important;
    color: #475569 !important;
    font-weight: 700 !important;
    margin: 0 0 1rem 0 !important;
}

.st-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.st-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.st-share-btn svg { width: 16px; height: 16px; }
.st-share-btn.fb { background-color: #1877F2; }
.st-share-btn.tw { background-color: #1DA1F2; }
.st-share-btn.pin { background-color: #BD081C; }

/* Dynamic Editorial / Author Biography Card UI */
.st-author-box-card {
    margin-top: 3.5rem;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .st-author-box-card {
        flex-direction: row;
        align-items: center;
    }
}

.st-author-avatar-frame img {
    border-radius: 50% !important;
    width: 110px !important;
    height: 110px !important;
    object-fit: cover !important;
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.st-author-text-space {
    flex-grow: 1;
}

.st-author-label {
    font-size: 0.688rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #2563EB;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

.st-author-display-name {
    font-size: 1.35rem !important;
    color: #071A36 !important;
    font-weight: 700 !important;
    margin: 0 0 0.5rem 0 !important;
}

.st-author-bio-desc {
    font-size: 0.938rem !important;
    line-height: 1.6 !important;
    color: #64748B !important;
    margin: 0 !important;
}

/* Related Medical Posts Bottom Grid System */
.st-related-posts-section {
    margin-top: 4.5rem;
    border-top: 1px solid #E2E8F0;
    padding-top: 3.5rem;
}

.st-related-main-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.6rem !important;
    color: #071A36 !important;
    margin: 0 0 2rem 0 !important;
    font-weight: 700 !important;
}

.st-related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 600px) {
    .st-related-posts-grid { grid-template-columns: repeat(3, 1fr); }
}

.st-related-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.st-related-thumb-frame {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background-color: #F1F5F9;
}

.st-related-thumb-frame img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.st-related-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.st-related-title {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin: 0 0 0.5rem 0 !important;
    font-weight: 700 !important;
}

.st-related-title a {
    color: #071A36 !important;
    text-decoration: none !important;
}

.st-related-title a:hover { color: #2563EB !important; }
.st-related-date { font-size: 0.813rem; color: #94A3B8; font-weight: 500; }