/* General Body Styles */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* Light gray background for consistency */
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* For sticky footer */
    padding: 0;
    box-sizing: border-box;
}

/* Main Content Container Styles (for centering and general layout) */
.container {
    background-color: #ffffff;
    padding: 1.5rem; /* Reduced padding */
    border-radius: 1rem; /* More rounded corners */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Softer shadow */
    max-width: 900px; /* Increased max-width */
    width: 100%;
    margin-top: 1rem; /* Reduced spacing below header/nav */
    margin-bottom: 1rem; /* Reduced spacing above footer */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
}

/* New media query for larger screens */
@media (min-width: 1024px) {
    .container {
        max-width: 1400px; /* Expands the container for wider screens */
    }
}

/* Header Section */
header {
    width: 100%; /* Ensure header spans full width */
    background-color: #4a5568; /* Gray-800 */
    color: #ffffff;
    padding: 0.5rem 2rem; /* py-2 px-8 */
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header a {
    display: flex;
    align-items: center;
}
header img {
    object-fit: contain;
}
.header-text {
    font-size: 1.125rem; /* text-lg */
    font-weight: 700; /* font-bold */
    text-align: center;
    flex-grow: 1;
}
#breadcrumb {
    font-size: 1rem; /* text-base */
    font-weight: 700; /* font-bold */
    color: #a0aec0; /* gray-400 */
    margin-left: 2rem; /* ml-8 */
}

/* Navigation Section */
nav {
    width: 100%; /* Ensure nav spans full width */
    background-color: #4a5568; /* Gray-700 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
nav ul li {
    position: relative;
    padding: 1rem 1.5rem; /* py-4 px-6 */
}
nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700; /* font-bold */
    transition: color 0.2s ease-in-out;
}
nav ul li a:hover {
    color: #d1d5db; /* gray-300 */
}
nav ul li a.flex.items-center {
    display: flex;
    align-items: center;
}
nav ul li a svg {
    width: 1rem; /* w-4 */
    height: 1rem; /* h-4 */
    margin-left: 0.25rem; /* ml-1 */
    transition: transform 0.2s ease-in-out;
}
nav ul li:hover > a svg {
    transform: rotate(180deg);
}

/* Custom CSS for Dropdown Menus */
nav ul li:hover > ul {
    display: block !important;
}
nav ul li ul {
    display: none;
    position: absolute;
    background-color: white;
    top: 100%;
    left: 0;
    min-width: 160px;
    z-index: 999;
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
    padding: 0.25rem 0; /* py-1 */
}
nav ul li ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1f2937 !important; /* text-gray-800 */
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}
nav ul li ul li a:hover {
    background-color: #f3f4f6; /* hover:bg-gray-100 */
}

/* Footer Section */
footer {
    width: 100%; /* Ensure footer spans full width */
    background-color: #4a5568; /* Gray-800 */
    color: #ffffff;
    padding: 1rem; /* p-4 */
    text-align: center;
    margin-top: auto; /* Pushes footer to the bottom */
}

/* Search Input Styles */
.search-input {
    border: 1px solid #d1d5db; /* Light gray border */
    padding: 0.5rem 0.75rem; /* Reduced padding */
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    width: 50%; /* Half width */
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 640px) { /* Tailwind's 'sm' breakpoint */
    .search-input {
        width: 100%; /* Full width on small screens */
        margin-left: 0;
        margin-right: 0;
    }
}
.search-input:focus {
    border-color: #6366f1; /* Indigo on focus */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); /* Light indigo shadow on focus */
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
}
.btn-primary {
    background-color: #4f46e5; /* Indigo */
    color: #ffffff;
    border: none;
}
.btn-primary:hover {
    background-color: #4338ca; /* Darker indigo on hover */
    transform: translateY(-1px);
}
.btn-secondary {
    background-color: #e5e7eb; /* Light gray */
    color: #374151; /* Dark gray text */
    border: none;
}
.btn-secondary:hover {
    background-color: #d1d5db; /* Darker light gray on hover */
    transform: translateY(-1px);
}

/* Search Results Item Styles */
.result-item {
    background-color: #f9fafb; /* Very light gray for items */
    border: 1px solid #e5e7eb; /* Light border for items */
    border-radius: 0.75rem; /* Rounded corners for items */
    padding: 1rem; /* Reduced padding */
    margin-bottom: 0.75rem; /* Reduced margin */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Subtle shadow for items */
}
.result-item strong {
    color: #1f2937; /* Darker text for word */
}
.result-item p {
    color: #4b5563; /* Medium gray for definition/usage */
}
.no-results {
    color: #6b7280; /* Gray for no results message */
    text-align: center;
    padding: 1rem; /* Reduced padding */
}
.back-button-container {
    margin-bottom: 1rem; /* Reduced space below the back button */
    text-align: left; /* Align button to the left */
}
.flex.flex-col.sm\:flex-row.gap-4 {
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
}

/* --- Card styles for index.html --- */
.card-container { display: inline-block; width: 220px; flex-shrink: 0; }
.card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.card-image {
    width: 100%;
    height: 128px; /* Fixed height for image */
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}
.card-content {
    padding: 0.75rem;
    height: 80px; /* Fixed height for content area */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}
.card-description {
    font-size: 0.75rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.see-all-button {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    transition-property: color;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.vibe-card-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
    margin-bottom: 0.5rem;
}

/* This is the new CSS rule to hide the registration fields */
.form-group-hidden {
    display: none;
}