/*
Theme Name: Medicross Child
Theme URI: http://demo.casethemes.net/medicross
Author: Case-Themes
Author URI: https://casethemes.net/
Description:Medicross is a beautifully handcraftedfor doctors, clinics, medical care and health care centers, hospitals, dentists, orthopedic doctors, pediatricians, psychologists on Elementor Page Builder & designed with great attention to details, flexibility and performance. Medicross has stunning styles and elements to help you make a professional website in no time.
Version: 1.0.4
License: ThemeForest
License URI: https://themeforest.net/licenses
Template: medicross
Text Domain: medicross-child
Tags:appointment booking, chiropractor, dentist, doctor, doctor appointment, doctor booking, health, health theme, healthcare, hospital, medical, medical appointment, medical booking, medical theme, pharmacy
Requires at least: 5.8 or Higher
Requires PHP: 7.4 or Higher
Tested up to: 6.4.1
*/


/* =========================================
   Typography & Fonts
   ========================================= */

/* 1. Official Font: Walkway Expand Black */
@font-face {
    font-family: 'Walkway Expand Black';
    src: url('assets/fonts/WalkwayExpandBlack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* 2. Secondary Font: Code Bold */
@font-face {
    font-family: 'Code Bold';
    src: url('assets/fonts/CodeBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 3. Inner Font: Ageo (Family) */
@font-face {
    font-family: 'Ageo';
    src: url('assets/fonts/AgeoTrial-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ageo';
    src: url('assets/fonts/AgeoTrial-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Colors (New RGBs) */
    /* Medicross Palette */
    --scope-white: #FFFFFF;
    --color-dark-blue: #182A3D;
    /* Azul Oscuro */
    --color-medium-blue: #0D4F74;
    /* Azul Medio */
    --color-blue-grey: #38697E;
    /* Azul Grisáceo */
    --color-light-grey: #C3C7D1;
    /* Gris Claro */
    --color-soft-blue: #578FAF;
    /* Azul Suave */

    /* Typography */
    --font-official: 'Walkway Expand Black', sans-serif;
    --font-secondary: 'Code Bold', sans-serif;
    --font-inner: 'Ageo', sans-serif;

    --font-primary: var(--font-inner);
}

body,
html {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--color-dark-blue);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-official);
    text-transform: uppercase;
}

/* Page Structure for Full Screen */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Specialty Card Design */
.post-layout-specialty-1 .pxl-swiper-slide,
.pxl-post-layout-specialty-1 .pxl-grid-item,
.post-layout-medical_package-1 .pxl-swiper-slide,
.pxl-post-layout-medical_package-1 .pxl-grid-item {
    height: auto !important;
    display: flex !important;
}

.post-layout-specialty-1 .pxl-post--inner,
.pxl-post-layout-specialty-1 .pxl-post--inner,
.post-layout-medical_package-1 .pxl-post--inner,
.pxl-post-layout-medical_package-1 .pxl-post--inner {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Generic shadow for now */
    overflow: hidden;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.post-layout-specialty-1 .pxl-post--inner:hover,
.pxl-post-layout-specialty-1 .pxl-post--inner:hover,
.post-layout-medical_package-1 .pxl-post--inner:hover,
.pxl-post-layout-medical_package-1 .pxl-post--inner:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.post-layout-specialty-1 .pxl-image,
.pxl-post-layout-specialty-1 .pxl-image,
.post-layout-medical_package-1 .pxl-image,
.pxl-post-layout-medical_package-1 .pxl-image {
    width: 100% !important;
    height: 240px;
    /* Fixed height for image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 20px 20px 0 0;
    /* Ensure image respects border radius if needed */
}

/* Icon Styling */
.post-layout-specialty-1 .pxl-post--icon,
.pxl-post-layout-specialty-1 .pxl-post--icon,
.post-layout-medical_package-1 .pxl-post--icon,
.pxl-post-layout-medical_package-1 .pxl-post--icon {
    position: absolute;
    top: 200px;
    /* Overlap image */
    right: 20px;
    width: 80px;
    height: 80px;
    background-color: #0D4F74;
    /* Dark Blue from brand */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    z-index: 2;
}

.post-layout-specialty-1 .pxl-post--icon i,
.pxl-post-layout-specialty-1 .pxl-post--icon i,
.post-layout-medical_package-1 .pxl-post--icon i,
.pxl-post-layout-medical_package-1 .pxl-post--icon i {
    font-size: 32px;
    color: #fff;
}

.post-layout-specialty-1 .pxl-post--icon img,
.pxl-post-layout-specialty-1 .pxl-post--icon img,
.post-layout-medical_package-1 .pxl-post--icon img,
.pxl-post-layout-medical_package-1 .pxl-post--icon img {
    max-width: 40px;
    height: auto;
    filter: brightness(0) invert(1);
    /* Make white if necessary */
}

/* Content Area */
.post-layout-specialty-1 .inner-content,
.pxl-post-layout-specialty-1 .inner-content,
.post-layout-medical_package-1 .inner-content,
.pxl-post-layout-medical_package-1 .inner-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.post-layout-specialty-1 .wrap-content,
.pxl-post-layout-specialty-1 .wrap-content,
.post-layout-medical_package-1 .wrap-content,
.pxl-post-layout-medical_package-1 .wrap-content {
    padding: 25px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Typography */
.post-layout-specialty-1 .pxl-post--title,
.pxl-post-layout-specialty-1 .pxl-post--title,
.post-layout-medical_package-1 .pxl-post--title,
.pxl-post-layout-medical_package-1 .pxl-post--title {
    margin-top: 10px;
    margin-bottom: 15px;
}

.post-layout-specialty-1 .pxl-post--title a,
.pxl-post-layout-specialty-1 .pxl-post--title a,
.post-layout-medical_package-1 .pxl-post--title a,
.pxl-post-layout-medical_package-1 .pxl-post--title a {
    font-size: 22px;
    font-weight: 700;
    color: #0D4F74;
    /* Dark Blue */
    text-decoration: none;
    transition: color 0.3s;
}

.post-layout-specialty-1 .pxl-post--title a:hover,
.pxl-post-layout-specialty-1 .pxl-post--title a:hover,
.post-layout-medical_package-1 .pxl-post--title a:hover,
.pxl-post-layout-medical_package-1 .pxl-post--title a:hover {
    color: #578FAF;
    /* Soft Blue */
}

.post-layout-specialty-1 .pxl-post--content,
.pxl-post-layout-specialty-1 .pxl-post--content,
.post-layout-medical_package-1 .pxl-post--content,
.pxl-post-layout-medical_package-1 .pxl-post--content {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Push button to bottom if needed */
}

/* Button */
.post-layout-specialty-1 .pxl-post--readmore,
.pxl-post-layout-specialty-1 .pxl-post--readmore,
.post-layout-medical_package-1 .pxl-post--readmore,
.pxl-post-layout-medical_package-1 .pxl-post--readmore {
    margin-top: auto;
}

.post-layout-specialty-1 .btn-readmore,
.pxl-post-layout-specialty-1 .btn-readmore,
.post-layout-medical_package-1 .btn-readmore,
.pxl-post-layout-medical_package-1 .btn-readmore {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #0D4F74;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.post-layout-specialty-1 .btn-readmore span,
.pxl-post-layout-specialty-1 .btn-readmore span,
.post-layout-medical_package-1 .btn-readmore span,
.pxl-post-layout-medical_package-1 .btn-readmore span {
    margin-right: 8px;
}

.post-layout-specialty-1 .btn-readmore i,
.pxl-post-layout-specialty-1 .btn-readmore i,
.post-layout-medical_package-1 .btn-readmore i,
.pxl-post-layout-medical_package-1 .btn-readmore i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.post-layout-specialty-1 .btn-readmore:hover,
.pxl-post-layout-specialty-1 .btn-readmore:hover,
.post-layout-medical_package-1 .btn-readmore:hover,
.pxl-post-layout-medical_package-1 .btn-readmore:hover {
    color: #578FAF;
}

.post-layout-specialty-1 .btn-readmore:hover i,
.pxl-post-layout-specialty-1 .btn-readmore:hover i,
.post-layout-medical_package-1 .btn-readmore:hover i,
.pxl-post-layout-medical_package-1 .btn-readmore:hover i {
    transform: translateX(5px);
}

/* Number Styling - Hide */
.post-layout-specialty-1 .count-position-sv,
.pxl-post-layout-specialty-1 .count-position-sv,
.post-layout-medical_package-1 .count-position-sv,
.pxl-post-layout-medical_package-1 .count-position-sv {
    display: none;
}

/* Arrow Styling - Match Case Team Carousel */
.post-layout-specialty-1 .pxl-swiper-arrow-wrap.style-1 {
    position: relative;
    padding-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ensure horizontal alignment */
    gap: 30px;
    z-index: 10;
}

/* Use high specificity to override parent theme transforms/top/etc. */
.post-layout-specialty-1 .pxl-swiper-arrow-wrap.style-1 .pxl-swiper-arrow {
    width: 72px !important;
    height: 72px !important;
    background-color: #0D4F74 !important;
    /* Brand Blue */
    color: #fff !important;
    border-radius: 1000px !important;
    opacity: 1 !important;
    font-size: 19px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s ease;

    /* Reset parent Absolute Positioning & Transforms */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 !important;
}

.post-layout-specialty-1 .pxl-swiper-arrow-wrap.style-1 .pxl-swiper-arrow-prev {
    left: auto !important;
}

.post-layout-specialty-1 .pxl-swiper-arrow-wrap.style-1 .pxl-swiper-arrow-next {
    right: auto !important;
}

.post-layout-specialty-1 .pxl-swiper-arrow-wrap.style-1 .pxl-swiper-arrow:hover {
    background-color: #578FAF !important;
    /* Softer Blue */
    transform: translateY(-2px) !important;
}

.post-layout-specialty-1 .pxl-swiper-arrow i {
    display: inline-flex;
}

/* Scope Services List Widget */
.scope-services-widget {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for depth */
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.scope-services-header {
    background-color: #031b2e;
    /* Dark Blue from reference */
    padding: 20px 30px;
}

.scope-services-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.scope-services-list {
    list-style: none;
    margin: 0;
    padding: 10px 30px 30px 30px;
}

.scope-services-list li {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.scope-services-list li:last-child {
    border-bottom: none;
}

.scope-services-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    text-decoration: none;
    color: #031b2e;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.scope-services-list a:hover {
    color: #3b82f6;
    /* Blue hover color */
}

.scope-services-list .service-icon {
    font-size: 12px;
    color: #9ca3af;
    /* Light gray arrow */
    transition: transform 0.3s ease, color 0.3s ease;
}

.scope-services-list a:hover .service-icon {
    color: #3b82f6;
    transform: translateX(5px);
}

/* Single Specialty & Doctor Headings - Prevent Overflow */
.specialty-title,
.doctor-title {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

@media (max-width: 1024px) {

    .specialty-title,
    .doctor-title,
    .package-title,
    .elementor-widget-theme-post-content h1,
    .elementor-widget-theme-post-content h2,
    .wp-block-heading {
        font-size: 7vw !important;
        /* Scale dynamically with viewport width */
        line-height: 1.2;
        max-width: 70vw !important;
        /* Forces width to 70% of screen */
        display: block;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word;
        /* Added for aggressive breaking */
        hyphens: auto;
    }

    /* Smaller headings inside content */
    .specialty-content h3,
    .doctor-content h3,
    .package-content h3,
    .elementor-widget-theme-post-content h3 {
        font-size: 6vw !important;
        max-width: 90vw !important;
        overflow-wrap: break-word;
    }
}

/* Force minimum width for Team Carousel cards */
.pxl-team-carousel1 .pxl-swiper-slide {
    min-width: 300px !important;
}

/* Doctor Grid */
.scope-doctor-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-col-xl), 1fr);
    gap: 30px;
}

/* Responsive Grid Columns */
@media (max-width: 1400px) {
    .scope-doctor-grid {
        grid-template-columns: repeat(var(--grid-col-lg), 1fr);
    }
}

@media (max-width: 1024px) {
    .scope-doctor-grid {
        grid-template-columns: repeat(var(--grid-col-md), 1fr);
    }
}

@media (max-width: 768px) {
    .scope-doctor-grid {
        grid-template-columns: repeat(var(--grid-col-sm), 1fr);
    }
}

@media (max-width: 576px) {
    .scope-doctor-grid {
        grid-template-columns: repeat(var(--grid-col-xs), 1fr);
    }
}

/* Grid Item Styles (Same as Carousel Slide) */
.scope-doctor-grid .pxl-item--inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Filters */
.scope-doctor-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.scope-doctor-filters .filter-item {
    position: relative;
    width: 280px;
    max-width: 100%;
}

.scope-doctor-filters .scope-filter-input,
.scope-doctor-filters .scope-filter-select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    font-size: 15px;
    color: #031b2e;
    outline: none;
    background-color: #fff;
    transition: border-color 0.3s ease;
    height: 50px;
}

.scope-doctor-filters .scope-filter-input:focus,
.scope-doctor-filters .scope-filter-select:focus {
    border-color: #0D4F74;
}

.scope-doctor-filters .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* Styles for Select Dropdown arrow */
.scope-doctor-filters .select-filter::after {
    content: '\f078';
    /* FontAwesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 12px;
}

.scope-doctor-filters .scope-filter-select {
    appearance: none;
    -webkit-appearance: none;
}

/* Contact Form 7 Enhancements */

/* Mobile Responsiveness for Form Columns */
@media (max-width: 1024px) {
    .wpcf7-form .row .input-filled {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
        /* Add spacing between stacked fields */

        /* Fix Overflow */
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Ensure inputs inside don't overflow */
    .wpcf7-form-control,
    .wpcf7-form-control-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fix Broken @ symbol in Ageo trial font for Email/Phone fields */
    input[type="email"],
    input[type="tel"],
    input[type="text"] {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    }

    /* Ensure the submit button container also takes full width */
    .wpcf7-form .row .your-submit {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        justify-content: center;
        display: flex;
    }
}

/* Fix Elementor Widget Container Overflow */
.elementor-widget-container {
    max-width: 100% !important;
}