/* TestIndex Container */
.test-index-container {
    background: #ffffff;
    min-height: 100vh;
}

/* Hero Section */
.test-index-header {
    background: #11998e;
    color: white;
    padding: 20px 0 60px;
    position: relative;
}

/* Hero Content */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.hero-left {
    padding-right: 40px;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    font-family: 'Baskerville', Georgia, serif;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.5;
}

/* Search Section */
.search-section {
    max-width: 500px;
}

.search-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.search-box {
    position: relative;
    margin-bottom: 10px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .search-input:focus {
        outline: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

/* Search Results */
.search-results {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
}

    .search-results.active {
        display: block;
    }

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
    color: #333;
}

    .search-result-item:last-child {
        border-bottom: none;
    }

    .search-result-item:hover {
        background: #f8f9fa;
    }

.search-result-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.search-result-description {
    font-size: 14px;
    color: #666;
}

/* Alphabet Section */
.hero-right {
    padding-left: 40px;
}

.alphabet-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.alphabet-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
}

    .alphabet-button:hover:not(.disabled) {
        background: white;
        color: #11998e;
        transform: scale(1.1);
    }

    .alphabet-button.active {
        background: white;
        color: #11998e;
        border-color: white;
    }

    .alphabet-button.disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

/* Main Content */
.test-index-content {
    padding: 60px 0;
    background: #f5f5f5;
}

/* Letter Section */
.letter-section {
    background: white;
    padding: 40px;
    margin-bottom: 20px;
    border-radius: 0;
}

.letter-heading {
    font-size: 72px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    font-family: 'Baskerville', Georgia, serif;
    border: none;
    padding: 0;
}

/* TestIndex List - 6 columns on Desktop */
.test-index-list {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px 50px;
}

.test-index-item {
    padding: 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
}

.test-index-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

    .test-index-title a {
        color: #11998e;
        text-decoration: none;
        transition: color 0.3s;
    }

        .test-index-title a:hover {
            color: #0d7a72;
            text-decoration: underline;
        }

.test-index-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

    .test-index-subtitle a {
        color: #11998e;
        text-decoration: none;
    }

        .test-index-subtitle a:hover {
            text-decoration: underline;
        }

/* Back to Top */
.back-to-top-section {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.back-to-top-link {
    color: #11998e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

    .back-to-top-link:hover {
        color: #0d7a72;
        text-decoration: underline;
    }

    .back-to-top-link i {
        font-size: 12px;
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    background: white;
    border-radius: 8px;
}

    .empty-state i {
        font-size: 64px;
        margin-bottom: 20px;
    }

/* Responsive */
@media (max-width: 1600px) {
    .test-index-list {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px 22px;
    }
}

@media (max-width: 1400px) {
    .test-index-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px 20px;
    }
}

@media (max-width: 1200px) {
    .test-index-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px 20px;
    }

    .test-index-title {
        font-size: 15px;
    }

    .test-index-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-left,
    .hero-right {
        padding: 0;
    }

    .alphabet-grid {
        grid-template-columns: repeat(9, 1fr);
    }

    .letter-heading {
        font-size: 56px;
    }

    .test-index-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 20px;
    }

    .test-index-title {
        font-size: 16px;
    }

    .test-index-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .alphabet-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 8px;
    }

    .alphabet-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .letter-heading {
        font-size: 48px;
    }

    .letter-section {
        padding: 30px 20px;
    }

    .test-index-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .alphabet-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .test-index-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .test-index-title {
        font-size: 15px;
    }
}
