:root {
    --blue: #1e90ff;
    --white: #ffffff;
    --primary: #4e95d9;
    --primary2: #0e55a9;
    --secondary: #468284   ;
    --secondary2: #284d4e   ;
    --primary-text-color: #333; /* Darker text for better readability */
    --secondary-text-color: #777; /* Lighter text for labels, descriptions */
    --main-font: 'Helvetica Neue', Arial, sans-serif; 
    --accent: #d62828; /* Red */
    --white: #ffffff;
    --gray-light: #f2f2f2;
    --gray-medium: #cccccc;
    --font-family: 'Arial', sans-serif;
    --clarity-color:#5a9ed2;
    --credibility-color:#56cd71;
    --relevance-color: #e68e53;
    --safety-color: #e67d7d;
    --low-rating:  rgb(250,93,93);
    --medium-rating: rgb(230,223,129);
    --high-rating: rgb(50, 162, 0);
    --radial-background: white; /*radial-gradient(ellipse at center, rgba(170, 231, 217, 0.15), rgba(223, 226, 255, 0.15)), white;*/
}
.primary{
    color:var(--primary);
}
.primary2{
    color:var(--primary2);
}
body {
    min-height: 100vh;
    padding: 40px;
    /*color: var(--primary);*/
}
.seconday{
    color: var(--secondary);
}
.accent{
    color:var(--secondary);
}
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Markazi+Text:wght@400..700&display=swap');
body #fonts {
    /*font-family: 'Markazi';*/
}
body.pushable{
    background: var(--radial-background) !important;
}
body.custom-background {
    background:  var(--radial-background) !important;
}
body.pushable>.pusher {
    background: var(--radial-background) !important;
}
body.pushable>.pusher.custom-background {
    background:  var(--radial-background) !important;
}
.custom-background {
    background: var(--radial-background) !important;
}
.masthead.segment{
    padding: 4em 0em;
    min-height: 700px;
}
.logo{
    width: 100%;
    margin-top: 3%;
}
.logo-nav{
    height: 50px;
    /* width: 60px;
    
    object-fit: cover;
    object-position: left; */
}
/* .ui.secondary.pointing.menu{
    border-bottom: 2px solid rgba(97, 144, 192, 0.534);
}
#div1.large.top.fixed.menu{
    border-bottom: 2px solid rgba(97, 144, 192, 0.534);
}
.ui.secondary.pointing.menu .active.item{
    border-color: var(--primary2);
}
#div1 .item{
    color: var(--primary);
}
#div1 .item.active{
    color: var(--primary2);
}*/


/* --- Keyframe Animation (for initial appearance) --- */
@keyframes fadeInWord {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Start slightly below */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    0% {
        opacity: 0;

    }
    100% {
        opacity: 1;

    }
}
@keyframes fadeInRise {
    0% {
        opacity: 0;
        transform: translateY(30px); /* Start slightly below final position */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fade {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

.styled-title {
    font-size: 24px;
    font-weight: bold;
    color: #396ea4;
    text-align: center;
    padding: 10px;
    display: inline-block;
   
}
.styled-title span{
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInRise 1s ease-out forwards;
    display:inline-block;
    /* margin-right: 0.5em; */
}

.styled-title span:nth-of-type(2){
 animation-delay: 0.5s;
}

.styled-title span:nth-of-type(3){
 animation-delay: 1s;
}
/* .styled-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    display: inline-block;
    position: relative;  Needed for the pseudo-element 
    background: linear-gradient(to right,
        rgba(57, 110, 164, 0) 0%,
        rgba(57, 110, 164, 0.8) 45%,
        rgba(57, 110, 164, 1) 50%,
        rgba(57, 110, 164, 0.8) 55%,
        rgba(57, 110, 164, 0) 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    animation: revealGlow 3s linear forwards;
    color: transparent;  Make text color transparent to see the background 
}

@keyframes revealGlow {
    0% {
        background-position-x: 100%;
    }
    100% {
        background-position-x: 0%;
    }
} */


/* .styled-title h2 {
    display: inline-block; 
    opacity: 0; 
    animation: fadeInWord 0.8s forwards; 
} */

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /*border-radius: 20px;  More rounded corners */
    border: 1px solid #ddd;
    padding: 0;
    /* gap: 15px; */
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    animation: fadeInRise 1s ease-out forwards 0.5s; /* Fade in and rise, delayed */
}

.search-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#searchButton{
    background-color: var(--primary2);
    color: var(--white);
    margin-right:0;
}

#searchButton:hover{
    background-color: darkslateblue;
}
#searchButton .search.icon{
    font-size: 20px;
    color: white;
}
.search-icon {
    font-size: 20px;
    color: white;
}
#searchButton {
    border: 2px solid #0077BE;
    transition: transform 0.4s ease; 
}
#searchButton .search.icon {
     font-size: 20px;
     transition: transform 0.4s ease; 
}
#searchButton:hover {
    
    transform: translateX()
}

#searchButton .search.icon:hover {
    
    transform: scale(1.1);
}

#searchButton.animated{
    position: relative;
    
    border: none; /* Remove default button border */
    border-radius: 5px; /* Optional rounded corners */
    cursor: pointer;
    overflow: hidden; /*  Good practice for buttons */
}
#searchButton.animated::before{
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent; /* Start with a transparent border */
    border-radius: inherit;  /* Match button's border-radius */
    animation: highlightBorder 2s linear infinite; /*  Longer duration */
    z-index: -1; /*Behind the button*/
}
@keyframes highlightBorder {
    0% {
        border-top-color: #00A8C6; /* Accent color */
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    25% {
        border-top-color: transparent;
        border-right-color: #00A8C6;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    50% {
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: #00A8C6;
        border-left-color: transparent;
    }
    75% {
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: #00A8C6;
    }
    100% {
        border-top-color: #00A8C6; /* Back to top */
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
}
.search-container input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
}

.search-container button {
    background: #b2dfdb;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.search-examples {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    opacity: 0;
    animation: fadeInRise 1s ease-out forwards 0.8s; /* Fade in and rise, delayed */
}

.search-examples a{
        transition: transform 0.3s ease, background-color 0.3s ease; /* Smooth hover */
}
.search-examples a:hover{
        transform: translateY(-5px);
        background-color: #c2e0dc;
}
.example-search {
    font-size: 14px;
    padding: 8px 16px;
    background: #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: black;
}

.ui.grid.category-container {
    margin-top: 80px;
    text-align: center;
}

/* --- Category Container Styles --- */

.ui.stackable.four.column.grid.category-container {
    animation: fadeInRise 1s ease-out forwards; /* Apply the animation */
    gap: 35px;
    font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;
    font-size: 1.2em;
    color: var(--primary2);
    /*  Optional: Delay the animation for each column slightly for a staggered effect */

}
.ui.stackable.four.column.grid.category-container > .column {
    animation: fadeInRise 1s ease-out forwards; /* Apply to each column */
    opacity: 0; /* Start columns as invisible */
    max-width: 310px;
    margin-left: 1%;
    margin-right: 1%;
    width: 100%; 
    
}
.ui.stackable.four.column.grid.category-container > .column p{
    padding-left: 0.25em;
    padding-right: 0.25em;
}
.ui.stackable.four.column.grid.category-container > .column:nth-child(1) { animation-delay: 0s; }
.ui.stackable.four.column.grid.category-container > .column:nth-child(2) { animation-delay: 0.4s; }
.ui.stackable.four.column.grid.category-container > .column:nth-child(3) { animation-delay: 0.7s; }
.ui.stackable.four.column.grid.category-container > .column:nth-child(4) { animation-delay: 1.0s; }

/* --- Category Box Styles --- */

.category-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 280px;
    height: 210px;
    margin: 0 auto 20px;
    position: relative;
    border: none;
    /*  border-width: 2px;
    border-style: dashed;*/
    border-radius: 15px; 
    overflow: hidden;  /* Clip content to the rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle initial shadow */
    z-index: 1; /* Ensure boxes are above the image (if needed) */
}

.category-box:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    /*box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1); /* Enhanced shadow on hover */
}

/* --- Image Styles --- */
.category-box img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 10px; /* Slightly smaller radius than the box */
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3)); /* Shadow *around* the image */
    transition: filter 0.3s ease, transform 0.3s ease; /* Smooth transitions */
    z-index: -1; /*Behind other elements in .category-box */
    /*  Optional: Slightly reduce opacity for a more submerged look  */
    /* opacity: 0.9; */
}

.category-box:hover img{
    transform: translate(-50%, -50%) scale(1.05);
}
/* --- Color Variations (with Gradients) --- */
.red-border {
    /*border-color: red;
    background: linear-gradient(to bottom, #ffcccc, #ffdddd); /* Subtle gradient */
}
.purple-border {
    /*border-color: rgb(131, 10, 147);
    background: linear-gradient(to bottom, #e8d0ff, #f0e0ff);*/
}
.green-border {
   /* border-color: green;
    background: linear-gradient(to bottom, #ccffcc, #ddffdd);*/
}
.blue-border {
    /*border-color: blue;
    background: linear-gradient(to bottom, #cce5ff, #ddeeFF);*/
}
.category-box img {
    /* ... (existing styles) ... */
     opacity: 0; /* Start images as invisible */
}
/* --- Color Variations (with Animations) --- */
.red-border img { 
    animation: fade 1s ease-out forwards;
}
.purple-border img { 
    animation: fade 1.5s ease-out forwards;
}
.green-border img {
    animation: fade 2s ease-out forwards;
}
.blue-border img { 
    animation: fade 2.5s ease-out forwards;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* --- Image Styles (Modified for Positioning and Animation) --- */

.category-box .gear-icon { /* Add a class to the gear image */
    position: absolute;
    opacity: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 65%; /* keep original size*/
    height: auto;
    /* animation: rotate 3s ease-in-out 1; 
    animation-delay: 7s;
    animation-iteration-count: infinite; */
}

.category-box .gemini-icon {
    opacity: 1;
    position: relative;
    bottom: 10px;  
    right: 10px;  
    width: 15%; 
    height: auto;
    z-index: 2;  
}


/* #################################################### SEARCJH and VIDEO Pages #################################################### */

.progress-bar{
    position: absolute;
    left: 0; 
    bottom: 0; 
    height: 5px; 
    background: #ffbf0e; 
    width: 0%; 
    }
.spinner{
    position: absolute;
    color:#40a8ea;
    right: 10px; 
    top: 50%; 
    transform: translateY(-50%); 
    animation: spin 1s linear infinite;
}
.ui.loader:after{
    border-color: #0062ff #bf121261 #0925ef42 #4bff2a30;
}

/* Styles for the custom info icon. Used for medical treatment-icon in videos */

/* --- Custom Tooltip Styling --- */
.info-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    color: #a0a0a0;
    font-size: 1.0em;
    /* vertical-align: middle; */
    transition: color 0.2s ease-in-out;
}

.info-icon-wrapper:hover {
    color: #606060;
}

.info-icon-svg {
    width: 1em;
    height: 1em;
    display: block;
}
.insight-icon-svg { 
    width: 1em;
    height: 1em;
    display: block;
    color: #FFD700; /* Gold color for sparkle */
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5)); /* Subtle glow */
}
/* Tooltip container */
.info-icon-wrapper .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    pointer-events: none;
    width: max-content; /* Adjust width based on content */
    max-width: 300px; /* Set a maximum width */
}

/* Tooltip text bubble */
.info-icon-wrapper .tooltip-content {
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    word-break: break-word;
}

/* Tooltip arrow */
.info-icon-wrapper .tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

/* Show tooltip on hover */
.info-icon-wrapper:hover .tooltip {
    opacity: 1;
    visibility: visible;
}
.score-separator {
    width: 100%; /* Adjust width as desired */
    height: 1.5px;
    background-color: #ececec; /* Very light gray */
    margin: 5px 0; /* Minimal vertical margin */
    align-self: flex-end; /* Keep it aligned to the right */
}