/* Disease Container */
.disease-container {
    background: #ffffff;
    min-height: 100vh;
}

/* Hero Section */
.disease-hero {
    background: #0051a5;
    color: white;
    padding: 20px 0 60px;
    position: relative;
}

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb-item {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

    .breadcrumb-item:hover {
        opacity: 0.8;
    }

    .breadcrumb-item.active {
        opacity: 0.9;
    }

.breadcrumb-separator {
    color: white;
    opacity: 0.7;
}

/* 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: #0051a5;
        transform: scale(1.1);
    }

    .alphabet-button.active {
        background: white;
        color: #0051a5;
        border-color: white;
    }

    .alphabet-button.disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

/* Main Content */
.disease-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;
}

/* Disease List - Updated to 6 columns on Desktop */
.disease-list {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px 50px;
}

.disease-item {
    padding: 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
}

.disease-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

    .disease-title a {
        color: #0051a5;
        text-decoration: none;
        transition: color 0.3s;
    }

        .disease-title a:hover {
            color: #003d7a;
            text-decoration: underline;
        }

.disease-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

    .disease-subtitle a {
        color: #0051a5;
        text-decoration: none;
    }

        .disease-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: #0051a5;
    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: #003d7a;
        text-decoration: underline;
    }

    .back-to-top-link i {
        font-size: 12px;
    }

/* Sidebar */
.sidebar-section {
    position: sticky;
    top: 20px;
}

.advertise-disclaimer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.advertise-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

    .advertise-links a {
        color: #0051a5;
        text-decoration: underline;
        font-size: 13px;
        transition: color 0.3s;
    }

        .advertise-links a:hover {
            color: #003d7a;
        }

        .advertise-links a:not(:last-child)::after {
            content: "|";
            margin-left: 8px;
            color: #666;
            text-decoration: none;
        }

.advertise-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.advertise-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.advertise-item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

    .advertise-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .advertise-item img {
        width: 100%;
        height: auto;
        display: block;
    }

/* 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) {
    .disease-list {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px 22px;
    }
}

@media (max-width: 1400px) {
    .disease-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px 20px;
    }
}

@media (max-width: 1200px) {
    .disease-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px 20px;
    }

    .disease-title {
        font-size: 15px;
    }

    .disease-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;
    }

    .sidebar-section {
        position: static;
        margin-top: 30px;
    }

    .disease-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 20px;
    }

    .disease-title {
        font-size: 16px;
    }

    .disease-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;
    }

    .disease-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .alphabet-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .disease-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .disease-title {
        font-size: 15px;
    }
}
