/* Home Page Anchors Block Styles */

/* Spacing Classes */
.pt-small {
    margin-top: var(--spacing-small);
}

.pt-medium {
    margin-top: var(--spacing-medium);
}

.pt-large {
    margin-top: var(--spacing-large);
}

.pb-small {
    margin-bottom: var(--spacing-small);
}

.pb-medium {
    margin-bottom: var(--spacing-medium);
}

.pb-large {
    margin-bottom: var(--spacing-large);
}

/* Main Block Styles */
.homepageanchors-block {
    position: relative;
    background-color: var(--tertiary);
    border-radius: 5px;
    padding: 30px !important;
    overflow: hidden;
}

/* Tab Buttons */
.tab-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-button {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 4px;
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
    font-size: 18px;
}

.tab-button:hover,
.tab-button.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content-inner {
    display: flex;
    gap: 30px;
}

.tab-content-left {
    flex: 0 0 60%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tab-content-right {
    flex: 0 0 40%;
}

.tab-title {
    color: black;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.tab-wysiwyg {
    margin-bottom: 20px;
}

.tab-wysiwyg p {
    margin-top: 0;
}

.tab-image {
    width: 100%;
    min-height: 300px;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    padding-right: 30px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .tab-content-inner {
        gap: 20px;
    }

    .tab-content-left {
        flex: 0 0 55%;
    }

    .tab-content-right {
        flex: 0 0 45%;
    }

    .tab-image {
        min-height: 250px;
    }
}

@media (max-width: 991px) {
    .tab-content-inner {
        flex-direction: column;
    }

    .tab-content-left,
    .tab-content-right {
        flex: 0 0 100%;
    }

    .tab-image {
        margin-top: 20px;
        max-height: 350px;
    }

    .tab-buttons {
        justify-content: center;
    }

    .tab-button {
        flex: 0 1 auto;
    }

    .tab-content-left .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .homepageanchors-block {
        padding: 15px !important;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }

    .tab-image {
        min-height: 200px;
        max-height: 300px;
        padding-right: 0;
    }
}