/* Custom dimensions - CLEANED */

/* All footer styling has been removed to return to original state */

/* Legacy Loop Page Enhancements - Using Theme Colors and Fonts */

/* Vertical Tabs Styling */
.legacy-tabs-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tabs-nav {
    position: relative;
    background: var(--ztc-bg-bg-2);
}

.tabs-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0 !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
}

.tabs-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--ztc-text-text-1) !important;
    transform: translateX(5px);
}

.tabs-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--ztc-text-text-1) !important;
    position: relative;
}

.tabs-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--ztc-text-text-1);
    border-radius: 0 2px 2px 0;
}

.tab-content {
    position: relative;
    background: var(--ztc-bg-bg-1);
}

.tab-pane {
    animation: fadeInUp 0.5s ease-out;
}

.tab-content-body {
    position: relative;
}

/* Testimonial Card Styling */
.vl-testimonial-single {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vl-testimonial-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 113, 93, 0.1), transparent);
    transition: left 0.8s;
}

.vl-testimonial-single:hover::before {
    left: 100%;
}

.vl-testimonial-single:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* CTA Button Styling */
.vl-btn-1 {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vl-btn-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.vl-btn-1:hover::before {
    left: 100%;
}

.vl-btn-1:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(1, 113, 93, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .legacy-tabs-wrapper .row {
        flex-direction: column;
    }

    .tabs-nav {
        padding: 20px 0 !important;
    }

    .tabs-nav .nav-link {
        padding: 15px 20px !important;
        text-align: center !important;
    }

    .tab-content {
        padding: 40px 20px !important;
    }
}

@media (max-width: 768px) {
    .tabs-nav .nav-link {
        font-size: var(--ztc-font-size-font-s14) !important;
    }
}

/* Equal Height Cards for All Card Layouts */

/* Program Cards Equal Height */
.vl-services2 .row {
    display: flex;
    flex-wrap: wrap;
}

.vl-services2 .col-lg-4 {
    display: flex;
    margin-bottom: 30px;
}

.vl-services2 .vl-single-service-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: 0.3s;
}

.vl-services2 .vl-service-box-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px;
}

.vl-services2 .vl-service-box-content .ckeditor-content {
    flex-grow: 1;
    margin-bottom: 0;
    /* Remove min-height to prevent excessive padding */
}

.vl-services2 .vl-service-box-content .ckeditor-content p {
    margin-bottom: 8px;
}

.vl-services2 .vl-service-box-content .ckeditor-content p:last-child {
    margin-bottom: 0;
}

.vl-services2 .vl-service-box-content .ckeditor-content *:last-child {
    margin-bottom: 0;
}

/* Remove spaces after ellipsis in truncated text - only first paragraph */
.vl-services2 .vl-service-box-content .ckeditor-content {
    line-height: 1.4;
}

.vl-services2 .vl-service-box-content .ckeditor-content p:first-child {
    margin-bottom: 8px;
    line-height: 1.4em;
}

.vl-services2 .vl-service-box-content .ckeditor-content p:not(:first-child) {
    display: none;
}

.vl-services2 .vl-service-box-content .read-more {
    margin-top: auto;
}

/* Ensure proper spacing and alignment */
.vl-services2 .vl-service-box-content .title {
    margin-bottom: 12px;
}

/* Blog Cards Equal Height */
.vl-single-blg-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.vl-single-blg-item .vl-blg-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.vl-single-blg-item .vl-blg-content .ckeditor-content {
    flex-grow: 1;
    margin-bottom: 20px;
    min-height: 60px;
}

.vl-single-blg-item .vl-blg-content .read-more {
    margin-top: auto;
}

/* Cause Cards Equal Height */
.vl-single-cause-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.vl-single-cause-box .vl-cause-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.vl-single-cause-box .vl-cause-content .ckeditor-content {
    flex-grow: 1;
    margin-bottom: 20px;
    min-height: 60px;
}

.vl-single-cause-box .vl-cause-content .read-more {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 991px) {

    .vl-services2 .col-lg-4,
    .col-lg-4.col-md-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {

    .vl-services2 .col-lg-4,
    .col-lg-4.col-md-6 {
        margin-bottom: 15px;
    }

    .vl-services2 .vl-service-box-content,
    .vl-single-blg-item .vl-blg-content,
    .vl-single-cause-box .vl-cause-content {
        padding: 20px;
    }
}