/* Health Guide Page Styles */
.health-guide-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    min-height: 50vh;
}

/* Medical Filter Section */
.medical-filter-section {
    background: var(--global--color-white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    /*margin-bottom:32px;*/
}

.doctors-page .medical-filter-section {
     margin-bottom:32px;
}


.filter-header {
    margin-bottom: 30px;
    text-align: left;
}
    .filter-header h3, .filter-header h2{
        font-family: var(--global--font-heading);
        font-size: 24px;
        font-weight: 500;
        color: var(--global--color-heading);
        margin-bottom: 0;
    }

.filter-header p {
    color: var(--global--color-body);
    font-size: 15px;
    margin: 0;
}

.filter-group {
    margin-bottom: 20px;
    position:relative;
}
.filter-group:last-child {
    margin-bottom: 0px;
}


.filter-group label {
    display: block;
    font-family: var(--global--font-heading);
    font-size: 13px;
    opacity:0.9;
    font-weight:500;
    color: var(--global--color-heading);
    margin-bottom: 8px;
}





/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
}



.search-input-wrapper .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--global--color-primary);
    font-size: 18px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus + .search-icon {
    color: var(--global--color-primary);
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px 8px 0 8px;
    font-family: var(--global--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-filter.btn-search {
    background: var(--global--color-primary);
    color: var(--global--color-white);
    border-color: var(--global--color-primary);
}

.btn-filter.btn-search:hover {
    background: var(--global--color-secondary);
    border-color: var(--global--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(19, 197, 221, 0.3);
}

.btn-filter.btn-clear {
    background: var(--global--color-white);
    color: var(--global--color-body);
    border-color: var(--global--color-gray-light);
}

.btn-filter.btn-clear:hover {
    background: #f8f9fa;
    color: var(--global--color-heading);
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.btn-filter.primary {
    background: linear-gradient(135deg, var(--global--color-primary) 0%, var(--global--color-primary-darken) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(19, 197, 221, 0.3);
}

.btn-filter.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(19, 197, 221, 0.4);
}

.btn-filter.secondary {
    background: transparent;
    color: var(--global--color-body);
    border: 2px solid var(--global--color-gray-light);
}

.btn-filter.secondary:hover {
    background: var(--global--color-gray);
    border-color: var(--global--color-primary);
    color: var(--global--color-primary);
}

/* SGK Info Card */
.sgk-info-card {
    background: linear-gradient(135deg, #2e8b57 0%, #228b22 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sgk-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.sgk-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.sgk-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sgk-icon i {
    font-size: 22px;
    color: white;
}

.sgk-title h4 {
    font-family: var(--global--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin:0
}

.sgk-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.sgk-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.sgk-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.sgk-feature i {
    color: #90ee90;
    font-size: 16px;
    flex-shrink: 0;
}

.sgk-feature span {
    font-size: 14px;
    line-height: 1.4;
}

.sgk-cta {
    margin-top: auto;
    padding-top: 20px;
}

.sgk-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sgk-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Alphabet Filter */
.alphabet-filter {
    background: var(--global--color-white);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 32px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
}
.medical-units .alphabet-filter{
    margin-top:32px;
}
.alphabet-filter-title {
    text-align: center;
    margin-bottom: 24px;
}

.alphabet-filter-title h3 {
    font-family: var(--global--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--global--color-secondary);
    margin-bottom: 8px;
}

.alphabet-filter-title p {
    font-family: var(--global--font-body);
    font-size: 16px;
    color: var(--global--color-text);
    margin-bottom: 0;
}

.alphabet-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.alphabet-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--global--color-primary);
    background: transparent;
    color: var(--global--color-primary);
    border-radius: 50%;
    font-family: var(--global--font-heading);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alphabet-buttons a:last-child .alphabet-btn {
    border-radius: 8px 8px 0 8px;
    width: 150px;
}

    .alphabet-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--global--color-primary);
        border-radius: 50%;
        transform: scale(0);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: -1;
    }

.alphabet-btn:hover::before,
.alphabet-btn.active::before {
    transform: scale(1);
}

.alphabet-btn:hover,
.alphabet-btn.active {
    color: var(--global--color-white);
    background-color: var(--global--color-primary);
}



/* Responsive Design */
@media (max-width: 992px) {
    .sgk-info-card{
        height:unset;
    }
    .health-topics-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
    
    .health-topics-list.health-guide {
        grid-template-columns: 1fr  !important;
    }
    
    .health-topics-list.filtered .topic-links {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-filter {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .sgk-info-card {
        margin-top: 30px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .filter-header{
        margin-bottom:0
    }
    .filter-group label {
        margin-top: 20px;
    }
    .alphabet-buttons {
        gap: 8px;
    }
    
    
    .health-topics-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .health-topics-list.filtered .topic-links {
        grid-template-columns: 1fr;
    }
    
    .medical-filter-section {
        padding: 20px;
    }
    
    .filter-header h3 {
        font-size: 20px;
    }
    
    .filter-header p {
        font-size: 14px;
    }
    
    
    .sgk-info-card {
        padding: 20px;
        margin-top: 20px;
    }

    .sgk-icon{
        width:40px;
        height:40px;
    }

    .sgk-title h4 {
        font-size: 18px;
    }
}

/* Health Topics List */
.health-topics-list {
    background: var(--global--color-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 30px;
    transition: all 0.3s ease;
}

.health-topics-list.health-guide {
    grid-template-columns: repeat(2, 1fr);
}

/* Filtered state - when letter filter is active */
.health-topics-list.filtered {
    grid-template-columns: 1fr;
    gap: 30px;
}

.health-topics-list.filtered .topic-links {
    display: grid;
    gap: 12px;
}

.topic-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.topic-section:nth-child(1) { animation-delay: 0.1s; }
.topic-section:nth-child(2) { animation-delay: 0.2s; }
.topic-section:nth-child(3) { animation-delay: 0.3s; }
.topic-section:nth-child(4) { animation-delay: 0.4s; }
.topic-section:nth-child(5) { animation-delay: 0.5s; }
.topic-section:nth-child(6) { animation-delay: 0.6s; }
.topic-section:nth-child(7) { animation-delay: 0.7s; }
.topic-section:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.topic-section-title {
    font-family: var(--global--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--global--color-secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
}

    .topic-section-title::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--global--color-primary);
        border-radius: 2px;
    }

.topic-links {
    display: grid;
    gap: 12px;
}

.topic-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: var(--global--color-text);
    font-family: var(--global--font-body);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.topic-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--global--color-primary) 0%, var(--global--color-secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.topic-link:hover::before {
    opacity: 0.05;
}

.topic-link:hover {
    background: var(--global--color-white);
    border-color: var(--global--color-primary);
    color: var(--global--color-secondary);
    transform: translateX(8px);
    box-shadow: 0px 6px 24px rgba(0, 0, 0, 0.1);
}

.topic-link i {
    color: var(--global--color-primary);
    font-size: 12px;
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
}

.topic-link:hover i {
    transform: translateX(4px);
}

.topic-link span {
    z-index: 2;
    position: relative;
    font-size:15px
}

/* Sidebar Styles */
.health-guide-sidebar {
    position: relative;
}
    .health-guide-sidebar.now-sticky .sidebar-widget{
        max-height:82vh;
        overflow:auto;
    }
    .health-guide-sidebar.now-sticky .sidebar-widget::-webkit-scrollbar{
        width: 5px;
        background: #f1f3f4;
        border-radius: 10px;
        margin-right: 10px; 
    }
    .health-guide-sidebar.now-sticky .sidebar-widget::-webkit-scrollbar-thumb{
        background: #c1c1c1;
        border-radius: 10px;
    }
    .health-guide-section .container {
        position: relative;
    }

.sidebar-widget {
    background: var(--global--color-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.widget-title {
    font-family: var(--global--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--global--color-secondary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f3f4;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--global--color-primary);
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--global--color-primary) 0%, var(--global--color-secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-item:hover::before {
    opacity: 0.05;
}

.category-item:hover {
    background: var(--global--color-white);
    border-color: var(--global--color-primary);
    transform: translateY(-2px);
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.12);
}

.category-icon {
    width: 40px;
    height: 40px;
    background: var(--global--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    background: var(--global--color-secondary);
    transform: scale(1.1);
}

.category-icon i {
    color: var(--global--color-white);
    font-size: 16px;
}

.category-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.category-content h4 {
    font-family: var(--global--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--global--color-secondary);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.category-item:hover .category-content h4 {
    color: var(--global--color-primary);
}

.category-content span {
    font-family: var(--global--font-body);
    font-size: 14px;
    color: var(--global--color-text);
    font-weight: 400;
}

.entry-content {
    background: var(--global--color-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
}

/* Responsive Design */
@media (max-width: 991px) {
    .health-guide-sidebar {
        margin-top: 40px;
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        z-index: auto !important;
    }

    .sidebar-widget {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        z-index: auto !important;
        margin-bottom: 32px;
    }
    
    .alphabet-filter {
        position: static !important;
        top: auto !important;
        margin-top:30px;
    }
    
    .health-topics-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .health-topics-list {
        gap: 28px;
    }
}



@media (max-width: 768px) {
    .filter-header h3, .filter-header h2{
        font-size:19px
    }
    .health-guide-section {
        padding: 80px 0;
    }
    
    .alphabet-filter,
    .health-topics-list,
    .sidebar-widget {
        padding: 24px;
    }
    
    .alphabet-filter-title h3 {
        font-size: 24px;
    }
    
    .topic-section-title {
        font-size: 20px;
    }
    
    .topic-links {
        grid-template-columns: 1fr;
    }
    
    .topic-link {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .widget-title {
        font-size: 20px;
    }
    
    .category-item {
        padding: 16px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-icon i {
        font-size: 16px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hidden sections for filtering */
.topic-section.hidden {
    display: none;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.autocomplete-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 300px;
    overflow: auto;
    display: none;
    background: var(--global--color-white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 8px 30px;
    margin-top: 5px;
}

    .autocomplete-list li {
        padding: 15px;
        cursor: pointer;
        transition: 0.3s ease;
        border-radius: 8px 8px 0 8px;
        font-size: 13px;
        font-weight: 500;
        color: var(--global--color-heading);
        border-bottom: 1px solid #f8f9fa;
        transition: 0.2s ease;
    }
        .autocomplete-list li strong {
            font-size: 11px;
            font-weight: 400;
            color: var(--global--color-body);
        }

        .autocomplete-list li:hover {
            background-color: var(--global--color-primary);
            color: var(--global--color-white);
            transition: 0.2s ease;
        }
           .autocomplete-list li:hover strong {
                color: var(--global--color-white);
                transition: 0.2s ease;
            }

/* Health Guide Page - Category Title */
.health-guide-page .health-guide-category-title {
    font-family: var(--global--font-heading);
    font-weight: 500;
    color: var(--global--color-heading);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--global--color-primary);
    position: relative;
}

.health-guide-page .health-guide-category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--global--color-secondary);
}

/* Health Guide Page - Sidebar Categories */

.health-guide-page .category-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: var(--global--color-primary);
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 136, 206, 0.15);
}

.health-guide-page .category-item.active {
    background: linear-gradient(135deg, var(--global--color-primary) 0%, var(--global--color-heading) 100%);
    border-color: var(--global--color-primary);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 136, 206, 0.3);
}

.health-guide-page .category-item .category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    margin-right: 16px;
    transition: all 0.3s ease;
}

.health-guide-page .category-item:hover .category-icon,
.health-guide-page .category-item.active .category-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.health-guide-page .category-item .category-icon i {
    font-size: 20px;
    color: var(--global--color-primary);
    transition: all 0.3s ease;
}

.health-guide-page .category-item.active .category-icon i {
    color: var(--global--color-white);
}

.health-guide-page .category-item .category-content h4 {
    font-family: var(--global--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--global--color-heading);
    margin: 0;
    transition: all 0.3s ease;
}

.health-guide-page .category-item.active .category-content h4 {
    color: var(--global--color-white);
}

.health-guide-page .category-item .category-content span {
    font-size: 13px;
    color: var(--global--color-body);
    transition: all 0.3s ease;
}

.health-guide-page .category-item.active .category-content span {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 991px) {
    .health-guide-page .health-guide-category-title {
        font-size: 24px;
    }
    
    .health-guide-page .category-item {
        padding: 14px 16px;
    }
    
    .health-guide-page .category-item .category-icon {
        width: 42px;
        height: 42px;
    }
}