﻿/* Common styles for both headings */
.open-offerings-heading,
.for-you-heading {
    cursor: pointer;
    color: #888 !important;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
    background-color: rgba(221, 221, 221, 0.33);
    border-radius: 0 0 35px 35px;
    border-right: 3px solid #c2c2c24f;
    border-left: 3px solid #c2c2c24f;
    border-bottom: 3px solid #c2c2c24f;
    display: inline-block;
    transition: box-shadow 0.3s ease-in-out;
}

    /* Active state styles for both headings */
    .open-offerings-heading.active,
    .for-you-heading.active {
        color: #fff !important;
        background-color: #677a92db;
        border-right: 3px solid #c2c2c2;
        border-left: 3px solid #c2c2c2;
        border-bottom: 3px solid #c2c2c2;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

        /* Hover effect for active headings */
        .open-offerings-heading.active:hover,
        .for-you-heading.active:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

    /* Pseudo-element positioning and hover effect */
    .open-offerings-heading::before,
    .for-you-heading::before {
        right: 50%;
    }

    .open-offerings-heading::after,
    .for-you-heading::after {
        left: 50%;
    }

    .open-offerings-heading:hover::before,
    .for-you-heading:hover::before,
    .open-offerings-heading:hover::after,
    .for-you-heading:hover::after {
        width: 45%;
    }

    /* Margin adjustment */
    .open-offerings-heading,
    .for-you-heading + .open-offerings-heading,
    .for-you-heading {
        margin-left: 10px;
    }

/* Fade-in animation */
@@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fade-in {
    animation: fade-in 1.0s ease-in-out;
}

/* Styles for sup element */
sup {
    top: -1.1em;
    right: 0.5em;
    font-size: 15px;
    background-color: #677a928c;
    padding: 5px;
    border-radius: 90px;
    color: white;
}

.open-offerings-heading.active sup {
    background-color: #677a928c;
}

.for-you-heading.active sup {
    display: none;
}

/* Media queries */
@media (min-width: 727px) and (max-width: 1048px) {
    .open-offerings-heading,
    .for-you-heading {
        font-size: 25px;
    }

        .for-you-heading sup {
            font-size: 9px;
        }
}

@media (min-width: 0) and (max-width: 726px) {
    .open-offerings-heading,
    .for-you-heading {
        font-size: 15px;
        padding-top: 13px;
    }

    .for-you-heading {
        padding-top: 21px !important;
    }

        .for-you-heading sup {
            font-size: 9px;
        }
}

.reit-investment-details {
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    flex-direction: row;
}

@media (min-width: 0) and (max-width: 726px) {
    .reit-investment-details {
        display: flex;
        justify-content: space-evenly;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
}
