/* 🌟 Health Topic Banner - Modern Gradient Look */
.health-topic-banner {
    background: transparent; /* Updated gradient with primary green */
    margin: 40px auto;
    padding: 35px;
    text-align: center;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ✨ Smooth Hover Effect */
.health-topic-banner:hover {
    transform: translateY(-3px);
}

/* 🎯 Search Title */
.banner-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1d1d1d; /* White for high contrast */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Improved shadow */
    margin-bottom: 15px;
    position: relative;
    animation: fadeIn 1s ease-in-out;
}

/* 🔍 Search Form */
.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* 🎯 Search Bar Input */
.search-bar {
    flex: 2;
    padding: 14px 18px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: transparent; /* Very light green for subtle contrast */
    color: #157d3b; /* Dark green for readability */
    border: 1px solid black;
}

/* 🌈 Input Focus Effect */
.search-bar:focus {
    outline: none;
    box-shadow: 0 0 12px rgba(29, 185, 84, 0.4); /* Soft green glow */
}

/* 🚀 Search Button */
.search-btn {
    flex: 1;
    background: linear-gradient(135deg, #1db954, #4fd88b); /* Updated gradient with primary green */
    color: #ffffff; /* White text for contrast */
    border: none;
    padding: 14px 20px;
    border-radius: 0 25px 25px 0;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.3); /* Subtle shadow for button */
}

/* 💡 Hover Effect */
.search-btn:hover {
    background: linear-gradient(135deg, #178e46, #3cca7a); /* Slightly darker gradient on hover */
    transform: scale(1.05);
}

/* ✨ Floating Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 📱 Responsive Adjustments */
@media (max-width: 768px) {
    .health-topic-banner {
        padding: 25px;
    }

    .banner-title {
        font-size: 1.8rem;
    }

    .search-bar {
        font-size: 14px;
    }

    .search-btn {
        font-size: 16px;
    }
}


/* Alphabet navigation */
.alphabet {
    display: flex;
    flex-wrap: wrap; /* Ensures items wrap to the next row */
    justify-content: center; /* Centers the items horizontally */
    gap: 10px; /* Adds consistent spacing between items */
    margin: 20px 0; /* Space above and below the alphabet container */
    padding: 20px 40px; /* Internal padding for the container */
    width: 100%; /* Full-width container */
    position: relative; /* Ensures no overlap due to positioning issues */
}

.alphabet-instructions {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
    font-style: italic;
}

.alphabet-letters {
    display: flex;
    flex-wrap: wrap; /* Wraps the letters onto new rows */
    justify-content: center; /* Centers the letters */
    gap: 10px; /* Adds space between letters */
    width: 100%;
}

.alphabet-link {
    padding: 10px 15px;
    background-color: #e6e6e6;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alphabet-link:hover {
    background-color: #4f31e4;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure no elements overlap */
.alphabet:after {
    content: "";
    display: block;
    clear: both; /* Clears floating and flex artifacts */
}



/* Results section */
.results {
    margin: 20px auto;
    max-width: 900px;
}

.results ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Improved spacing between items */
    justify-content: space-around; /* Better alignment for grid items */
}

.results .condition {
    flex: 1 1 calc(25% - 15px); /* Responsive grid: 4 columns */
    max-width: calc(25% - 15px);
    text-align: center;
}

.results .condition a {
    text-decoration: none;
    color: #4f31e4;
    font-weight: bold;
    display: block;
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.results .condition a:hover {
    text-decoration: underline;
    color: white;
    background-color: #4f31e4;
    border-color: #4f31e4;
}

/* General styling for links */
.condition-link {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0px 20px;
}

.condition-link:hover {
    background-color: #4f31e4;
    color: white;
    border-color: #4f31e4;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    #search-input {
        width: 80%;
    }

    .results .condition {
        flex: 1 1 calc(50% - 15px); /* 2 columns on smaller screens */
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .results .condition {
        flex: 1 1 100%; /* Full width on very small screens */
        max-width: 100%;
    }
}

/* === Bonus Banner Styling === */
.bonus-banner {
    width: 100%;
    height: 45px; /* Thin but noticeable */
    background: linear-gradient(90deg, #ff416c, #ff4b2b, #ff8c00, #ff416c);
    background-size: 300% 300%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 6s infinite linear;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
  }
  
  .bonus-banner-link {
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    position: relative;
  }
  
  .banner-text {
    display: flex;
    align-items: center;
  }
  
  .glow {
    color: #fffacd; /* Soft glowing color */
    animation: glowEffect 2s infinite alternate ease-in-out;
  }
  
  /* === Hover Effects === */
  .bonus-banner:hover .bonus-banner-link {
    transform: scale(1.05);
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
  }
  
  /* === Moving Gradient Animation === */
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* === Glowing Text Animation === */
  @keyframes glowEffect {
    0% { text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0px 0px 15px rgba(255, 255, 255, 1); }
  }
  
  /* === Responsive Styling === */
  @media (max-width: 768px) {
    .bonus-banner {
        height: 40px; /* Slightly smaller for mobile */
    }
  
    .bonus-banner-link {
        font-size: 14px;
    }
  }