/* Application List Page - Sophisticated Design */

/* Hero Section */
.app-hero {
    height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1516961642265-531546e84af2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Hero Background Animation */
.app-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1516961642265-531546e84af2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    z-index: -1;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.app-hero h2 {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Tab Navigation - Sophisticated Slide Bar */
.app-tabs {
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    position: relative;
}

.tab-item {
    padding: 25px 50px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.tab-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #1a1a1a;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-50%);
}

.tab-item:hover {
    color: #1a1a1a;
}

.tab-item:hover::before {
    width: 60%;
    background-color: #ddd;
}

.tab-item.active {
    color: #1a1a1a;
    font-weight: 700;
}

.tab-item.active::before {
    width: 100%;
    background-color: #ffc107;
    /* Yellow accent */
    height: 4px;
}

/* Region Grid */
.app-content {
    padding-bottom: 100px;
    background-color: #fff;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.region-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.region-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
    transform: translateY(-8px);
}

.card-body {
    padding: 30px;
    display: flex;
    align-items: stretch;
    /* Stretch to fill height */
    gap: 25px;
    flex-grow: 1;
}

.region-ci {
    width: 120px;
    height: 120px;
    background-color: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.region-ci img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.region-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribute vertically */
}

.region-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 5px;
    display: block;
    letter-spacing: -0.5px;
}

.region-contact {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
    display: block;
}

.info-divider {
    height: 1px;
    background-color: #eee;
    margin: 10px 0;
    width: 100%;
}

.period-group {
    margin-top: auto;
}

.period-label {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.period-date {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.card-footer {
    padding: 20px 30px;
    background-color: #fff;
    border-top: 1px solid #f5f5f5;
}

.btn-status {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-status.active {
    background-color: #28a745;
    /* Green for available */
    color: #fff;
}

.btn-status.active:hover {
    background-color: #218838;
}

/* Responsive */
@media (max-width: 1024px) {
    .region-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .region-grid {
        grid-template-columns: 1fr;
    }

    .app-hero h2 {
        font-size: 2.5rem;
    }

    .card-body {
        flex-direction: row;
        /* Keep row on mobile if possible, or stack if too narrow */
        align-items: center;
    }

    .region-ci {
        width: 80px;
        height: 80px;
    }
}