.indexheadertext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    font-weight: bolder;
    color: white;
    font-size: calc(1.2vw + 18px);
    text-align: right;
    padding: 0 5vw;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.maintext1 {
    text-align: center;
}

.maintext2 {
    text-align: center;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.business-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    padding-top: 65%; /* 이미지 비율 유지 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.card-title {
    background-color: #00182E;
    color: white;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    padding: 15px 10px;
    flex-grow: 1; /* 카드의 높이를 같게 만듦 */
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
}

@media all and (max-width: 768px) {
    .business-grid {
        gap: 15px;
        padding: 0 15px 15px;
    }

    .card-title {
        font-size: 14px;
    }
}

/* Animation for the header text */
.animated-text-container {
    /* Base styles for the container if needed */
    position: relative;
    overflow: hidden;
}

.animated-line1, .animated-line2 {
    opacity: 0;
    transform: translateY(100%);
    animation: slideUp 0.8s ease-out forwards;
}

.animated-line1 {
    font-size: calc(1.2vw + 18px); /* Same as original text */
    font-weight: bolder;
    margin-bottom: 10px; /* Space between the two lines */
}

.animated-line2 {
    font-size: calc(0.8vw + 14px); /* Slightly smaller for emphasis */
    font-weight: normal;
    animation-delay: 0.4s; /* Starts after the first line has animated */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}