:root {
    --primary-color: #007bff;
    --hover-color: #0056b3;
    --light-gray: #f2f2f2;
    --dark-gray: #ccc;
    --font-size-base: 1rem;
    --font-size-small: 0.875rem;
    --font-size-smaller: 0.75rem;
    --border-radius: 5px;
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 1rem;
}

.transition {
    transition: all 0.3s ease-in-out;
}

.rounded {
    border-radius: var(--border-radius);
}

.card-header {
    font-size: 1.2rem;
    font-weight: 600;
}

.card-body {
    font-size: 0.95rem;
    line-height: 1.6;
}

img {
    object-fit: cover;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    padding: var(--spacing-lg);
}

.pagination li a,
.pagination li span {
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--primary-color);
    border-radius: var(--border-radius);
}

.pagination li a:hover {
    background-color: var(--light-gray);
}

#backToTop {
    display: none;
    width: 50px;
    height: 50px;
    font-size: 1.5rem; /* Updated from 24px */
    line-height: 50px; /* Matches width/height */
    text-align: center;
}

/* Default state: hidden */
#keyword-history {
    display: none;
}

/* Visible state: shown */
/* #keyword-history.visible {
    display: block;
} */

#keyword-history.visible {
    display: block;
    background-color: var(--light-gray);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
}

.keyword-item {
    display: inline-block;
    background-color: black;
    color: #fff;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    margin-right: var(--spacing-xs);
    cursor: pointer;
    font-size: var(--font-size-smaller);
    transition: background-color 0.3s ease-in-out;
}

.keyword-item:hover {
    background-color: var(--hover-color);
}

#clear-history {
    font-size: var(--font-size-smaller);
    cursor: pointer;
}

#clear-history:hover {
    text-decoration: none;
}

.icon-checkbox {
    display: flex;             /* Align items horizontally */
    align-items: center;       /* Center items vertically */
    width: fit-content;        /* Adjust width to fit content */
    cursor: pointer;
    font-size: var(--font-size-small); /* Consistent font size */
    padding: var(--spacing-xs);
    transition: color 0.3s ease-in-out;
}

.icon-checkbox-icon {
    font-size: 1.5rem; /* Updated from 25px */
    margin-right: var(--spacing-sm); /* Consistent spacing */
    transition: color 0.3s ease-in-out;
}

.icon-checkbox-icon[data-checked="true"] {
    color: var(--primary-color);
}

.icon-checkbox-icon[data-checked="false"] {
    color: var(--dark-gray);
}

.bg-gradient-custom {
    background: linear-gradient(
        to right,
        #DCEAF7 0%,
        #C1E5F5 25%,
        #d3d3d3 50%,
        #F2CFEE 75%,
        #86a8e7 100%
    );
    padding: var(--spacing-md);
    border-bottom: gray 2px solid;
}



/* SOCIAL MEDIA ICONS */

.position-absolute {
    position: absolute !important; /* Ensures absolute positioning */
}

.bottom-0 {
    bottom: 0 !important; /* Aligns at the bottom */
}

.end-0 {
    right: 0 !important; /* Aligns at the right */
}

.social-icons {
    display: flex;
    gap: 10px; /* Adds spacing between icons */
    justify-content: flex-end;
    align-items: center;
}

.social-icons a {
    font-size: 1.2rem; /* Icon size */
    color: #555;
    transition: color 0.3s ease-in-out;
}

.social-icons a:hover {
    color: red; /* Highlight color on hover */
}
