/*
Theme Name: Ortho Texas
Theme URI: https://orthotexas.com
Description: Child theme for Hello Elementor — Ortho Texas
Author: Steck Insights
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-child
*/

/* Default Styling */
body div .white-text *, .provider-specialties .services:nth-child(odd) .provider-specialty p, .provider-specialties .services:nth-child(odd) .provider-specialty h3 {
    color: #fff;
}

body .large-text p {
    font-size: 20px;
}

body .small-text p {
    font-size: 16px;
}

body .elementor-element .blue-button .elementor-button {
    background: transparent;
    color: #2d68c4;
    border-color: #2d68c4;
}

body .elementor-element .blue-button .elementor-button:hover {
    background: #2d68c4;
    color: #fff;
}

body .no-padding .e-n-accordion-item-title {
    padding: 0;
}

body .faq-accordion .e-n-accordion-item-title {
    padding: 20px;
    background: #eee;
    border: none;
    margin-bottom: 12px;
    border-radius: 8px;
}

body .faq-accordion.white .e-n-accordion-item-title {
    background: #fff;
}

body .page-content ul {
    padding-left: 20px;
}

.treatment-area-hover:hover img, body .provider-specialties .services:nth-child(odd) .provider-specialty img {
    filter: brightness(0) invert(1);
}

.no-margin p {
    margin-bottom: 0;
}

body .container-padding > .e-con-inner {
    padding: 100px 30px;
}

.no-icon .elementor-icon-wrapper.elementor-view-default {
    margin-bottom: 0;
}

body .box-shadow {
    box-shadow: 1px 1px 15px #00000017 !important;
}

.match-height .box-shadow {
    height: 100%;
}

.align-center {
    text-align: center;
}

.number-gap .elementor-counter {
    gap: 20px;
}

body .elementor-element .treatment-area-hover {
    cursor: pointer;
    transition: .4s;
}

body .elementor-element .treatment-area-hover:hover {
    background: #041E42 !important;
    color: #fff !important;
}

body .elementor-element .treatment-area-hover .elementor-element {
    transition: .4s;
}

body .elementor-element .treatment-area-hover:hover .elementor-element {
    color: #fff;
}

body .small-button button, body .resource-cta button, body .small-button .elementor-button {
    padding: 8px 20px;
    font-size: 16px;
}

body .small-button .elementor-button {
    padding: 12px 20px;
}

.uppercase > .elementor-heading-title, .uppercase h3, .uppercase {
    text-transform: uppercase;
}

.provider-quote p {
    font-size: 20px;
    max-width: 880px;
    margin: 10px auto 0;
}

body .provider-menu a {
    color: #041E42;
    font-weight: 600;
    transition: .3s;
}

body .provider-menu a:hover {
    color: #fe8c42;
}

body .provider-specialties .services:nth-child(odd) .provider-specialty {
    background: #222e3f;
}

.centered-loop .elementor-loop-container.elementor-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
    justify-content: center;
}

.single-location-hours .jet-listing-dynamic-repeater__items {
    display: block;
}

.specialties-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 10px;
}

.specialties-buttons .jet-listing-dynamic-repeater__items {
    flex-wrap: wrap;
    gap: 15px 0;
}

body button.specialties-button {
    border-color: #fff;
    background: transparent;
    padding: 12px 20px;
    margin-right: 10px;
}

body button.specialties-button:hover {
    border-color: #fe8c42;
}

body .elementor-loop-container .locations.type-locations a.elementor-button {
    color: #2d68c4 !important;
}

body .elementor-loop-container .locations.type-locations a.elementor-button:hover {
    border-color: #2d68c4 !important;
    color: #fff !important;
}

body .elementor-nav-menu .sub-arrow {
    padding-left: 4px;
}

.elementor-element.elementor-widget-loop-grid .locations.type-locations > .elementor-element > .e-con-inner {
    justify-content: start;
}

/* Events Filter */
.event-toggle-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    justify-content: center;
}
body .event-toggle-buttons .event-filter-btn {
    padding: 14px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 600;
    background: #2d68c41a;
    color: #222e3f;
}
body .event-toggle-buttons .event-filter-btn.active {
    background: #fe8c42;
    color: #fff;
    border-color: #fe8c42;
}

.event-toggle-buttons .event-filter-btn:first-child {
    border-radius: 100px 0 0 100px;
}

.event-toggle-buttons .event-filter-btn:last-child {
    border-radius: 0 100px 100px 0;
}

/* Biography Read More */
.bio-read-more-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: .4s;
}

.bio-read-more-content.active {
    max-height: 100%; /* Adjust based on your content height */
    opacity: 1;
}

.bio-read-more-button {
    cursor: pointer;
}

.specialties-buttons span, .expertise-buttons span, body .resource-cta button {
    font-size: 17px;
}

body .resource-cta button {
    border-color: #2d68c4;
    background: transparent;
    color: #2d68c4;
}

body .resource-cta button:hover {
    background: #2d68c4;
    color: #fff;
}

body button.specialty-btn, body button.expertise-btn {
    padding: 8px 20px 12px;
    background: transparent;
    border: 2px solid;
}

svg.star-icon {
    position: relative;
    top: 2.5px;
}

.elementor-element.max-height .elementor-widget-theme-post-featured-image {
    max-height: 300px;
    overflow: hidden;
}

div#button-link {
    border: 2px solid;
    border-radius: 100px;
    margin-left: 15px;
    transition: .3s;
}

#button-link span {
    font-weight: 600 !important;
}

/* Providers */
body .provider-title h2 {
    font-weight: 700;
    font-size: 48px;
}

/* Single Providers */
.education-item {
    display: block;
}

.no-shadow {
    box-shadow: none !important;
}

body .education-accordion .e-n-accordion-item-title {
    padding: 24px;
}

/* Videos Shortcode Styling */
.provider-videos-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-item {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Locations Shortcode Styling */
.location-content {
    max-width: 1080px;
    margin: 0 auto;
}

.provider-locations {
    margin: 40px 0;
}

.location-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

body button.location-tab, body .teammate-card .view-profile button {
    background: #041E42 !important;
    border: 2px solid #041E42;
    transition: .3s;
    padding: 11px 24px;
    font-size: 18px;
}

body button.location-tab:hover, body .teammate-card .view-profile button:hover, body button.location-tab:active, body .teammate-card .view-profile button:active, body button.location-tab:focus, body .teammate-card .view-profile button:focus {
    color: #fff;
}

body .location-tab.active {
    background: #2D68C4 !important;
    color: #fff;
}

body .location-tab:hover {
    color: #fff;
}

.location-panel {
    display: none;
}

.location-panel.active {
    display: block;
}

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-image {
    background: #4a5568;
    border-radius: 20px;
    overflow: hidden;
}

.location-address, .location-contact, .location-hours {
    padding: 25px;
    border-radius: 20px;
    background: #f9f9f9;
    margin-bottom: 10px;
}

.location-details h3 {
    padding-left: 25px;
    margin-bottom: 20px;
    font-weight: 600;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.location-details p strong {
    margin-bottom: 10px;
    display: block;
}

.location-details p, p.hour-label {
    margin-bottom: 0;
}

/* Location JS Styles */
.zipcode-input.active,
.service-checkbox.active {
  display: block;
}

.elementor-element-c93a4d6.hide-widget {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.elementor-element-c93a4d6 .jet-remove-all-filters.hide {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.elementor-element.elementor-element-c93a4d6.view-locations.elementor-widget.elementor-widget-jet-smart-filters-remove-filters.hide-widget {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Specialties Interactive Graphic */
#athlete-animation-wrap g#button {
    cursor: pointer;
}

#athlete-animation-wrap g#text {
    opacity: 0;
    transition: .5s;
    position: relative;
    left: -20px;
}

#athlete-animation-wrap g#button:hover + g#text {
    opacity: 1;
    left: 0;
}

body .location-tab.active {
    border-color: #2d68c4;
}


/* Resources Shortcode Styling -------------------------------- */
.category-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-header h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2d1b4e;
}

.category-header p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.resource-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e7eb;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.resource-content {
    padding: 25px;
}

.resource-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.resource-category-section {
    margin-bottom: 100px;
}

/* Location Pagination Global Styles */
.hidden-by-pagination {
  display: none !important;
}

.hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid, .videos-grid {
        grid-template-columns: 1fr;
    }

    .event-card, .resources-grid {
        grid-template-columns: 1fr;
    }

    .events-toggle-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .events-section-title {
        font-size: 20px;
    }

    .location-layout {
        grid-template-columns: 1fr;
    }

    .video-wrapper {
        padding-bottom: 0;
        height: 320px;
    }

    body .e-n-accordion-item svg {
        width: 10px;
    }
}

@media only screen and (max-width: 600px) {
    body .jet-smart-filters-redirect-container {
        display: block;
        padding: 0 30px;
    }

    body .jet-smart-filters-redirect-filters {
        display: block;
        width: 100%;
    }

    body .jet-smart-filters-redirect-container button.apply-filters__button.jet-smart-filters-redirect-button {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .events-toggle-wrapper {
        padding: 20px 15px;
    }

    .events-toggle-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .event-card {
        padding: 15px;
    }
}