* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    color: #212529;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.error-results {
    margin: 10px 10px 10px 24px;
}

.btn_generate {
    background-color: #1a73e8;
    color: #fff;
    padding: 14px;
    border: 1px solid #1a73e8;
    font-size: 16px;
    border-radius:2px;
}

.btn_generate:hover {
    background-color: #1a73e8;
    color: #fff;
    transform: translateY(-2px);
}

/* Intro Header Styling */
.intro-header {
    padding: 0 24px;
}

.intro-header h1 {
    font-size: 2.25rem;
    /* 36px */
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #111827;
}

.intro-header p {
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.6;
    color: #4b5563;
}

.sidebar {
    position: fixed;
    left: -200px;
    top: 0;
    width: 200px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    height: 64px;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.sidebar-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    background: #f8f9fa;
    color: #212529;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.chat-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-section-title {
    font-size: 0.625rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px 12px;
}

.chat-history-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chat-history-item:hover {
    background: #f8f9fa;
}

.chat-history-item.active {
    background: #e9ecef;
}

.chat-history-content {
    flex: 1;
    min-width: 0;
}

.chat-history-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 2px;
    /* overflow: hidden; */
    text-overflow: ellipsis;
    /* white-space: nowrap; */
}

.chat-history-preview {
    font-size: 0.688rem;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid #e9ecef;
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-footer-link:hover {
    background: #f8f9fa;
    color: #212529;
}

.sidebar-footer-link i {
    font-size: 0.938rem;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.main-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}


.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 64px;
    width: 100%;
    flex-shrink: 0;
}

.navbar .btn-link {
    text-decoration: none;
    transition: all 0.2s ease;
}

.navbar .btn-link:hover {
    transform: scale(1.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Main Content Wrapper */
.main-content-wrapper {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.search-section {

    padding: 32px 24px 0px 24px;

    width: 100%;
    box-sizing: border-box;
}

.search-container {

    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Search Input Wrapper */
.search-input-wrapper {
    margin-bottom: 16px;
}

.search-input-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9ecef;

    padding: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-input-container:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.15);
}

/* Attach CV Button */
.attach-cv-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.attach-cv-btn:hover {
    background: #f8f9fa;
    color: #212529;
}

/* Search Input */
.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 0.938rem;
    color: #212529;
    background: transparent;
}

.search-input::placeholder {
    color: #adb5bd;
}

/* Voice Search Button */
.voice-search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.voice-search-btn:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.voice-search-btn:active {
    background: #fee;
    color: #dc3545;
}

/* Search Button */
.search-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 4px;
}

.search-btn:hover {
    background: #0a58ca;
    transform: scale(1.05);
}

.search-btn:active {
    transform: scale(0.95);
}

/* Search Tips / Popular Searches */
.search-tips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tip-label {
    font-size: 0.813rem;
    color: #6c757d;
    font-weight: 500;
}

.search-chip {
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.813rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.search-chip:hover {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    transform: translateY(-1px);
}

/* Results Header */
.results-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 16px 24px;
    width: 100%;
    box-sizing: border-box;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 4px 0;
}

.results-subtitle {
    font-size: 0.938rem;
    color: #6c757d;
    margin: 0;
}

/* Professor List */
.professor-list {
    width: 100%;

    margin: 0 auto;
    background-color: #f8f9fa;
    padding: 0 24px 24px 24px;
    box-sizing: border-box;
}

.professor-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e9ecef;

    padding: 16px;
    width: 100%;
    margin: 0 auto 16px auto;

    transition: all 0.2s ease;
}

.professor-card:hover {
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px); */
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #0d6efd;
}

.professor-card:last-child {
    margin-bottom: 0;
}

/* Match Badge - Positioned on top-right edge */
.match-badge {
    position: absolute;
    top: 0;
    right: 0px;
    padding: 8px 16px;
    border-radius: 0 0px 0 12px;
    font-size: 0.813rem;
    font-weight: 600;
    color: #ffffff;

    z-index: 10;
}

.match-badge-strong {
    background-color: #16a34a;
}

.match-badge-good {
    background-color: #2563eb;
}

.match-badge-moderate {
    background-color: #ea580c;
}

.match-badge-weak {
    background-color: #dc2626;
}

/* Card Content - 8px top padding for match badge clearance */
.card-content {
    padding-top: 8px;
}

/* Profile Section - Flexbox with 12px gap (between image and info) */
.profile-section {
    display: flex;
    gap: 12px;
}

/* Profile Image - 80px size (8px × 10) */
.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Profile Info */
.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Professor Name - 8px bottom margin */
.professor-name {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.3;
}

/* Research Tags - 8px gap between tags */
.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.research-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.research-tag:hover {
    background-color: #dee2e6;
    transform: translateY(-1px);
}

/* Info Section - Location and Grant */
.info-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.813rem;
    color: #6c757d;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.grant-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #198754;
    font-weight: 500;
}

/* Bio Text - 8px top margin with line clamp */
.bio-text {
    font-size: 0.813rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: baseline;
}

.bio-content {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.813rem;
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Bottom Row - Contains action buttons and View Details */
.bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    width: 100%;
}

/* Action Buttons - 8px gap between buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icon Buttons - 36px size */
.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-decoration: none;
}

.icon-btn-primary {
    background-color: #212529;
    color: #ffffff;
}

.icon-btn-primary:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-btn-secondary {
    background-color: #e9ecef;
    color: #495057;
}

.icon-btn-secondary:hover {
    background-color: #dee2e6;
    color: #495057;
    transform: translateY(-2px);
}

/* View Details Button */
.view-details-btn {
    padding: 8px 16px;
    background-color: #1a73e8;
    color: #ffffff;
    border: none;

    font-size: 0.813rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.view-details-btn:hover {
    background-color: #1a73e8;
    color: #ffffff;
    transform: translateY(-2px);

}

/* Detail Page Styles */
.detail-main-content {
    background-color: #f8f9fa;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.detail-content-wrapper {

    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Detail Section Cards */
.detail-section-card {
    background: #ffffff;
    border: 1px solid #e9ecef;

    padding: 24px;



}

.detail-main-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.detail-main-section-title i {
    color: #0d6efd;
}

/* Research Subsections */
.research-subsection {
    margin-bottom: 24px;
    padding: 16px;


}

.research-subsection:last-child {
    margin-bottom: 0;
}

.highlight-blue {

    border-left: 4px solid #0d6efd;
}

.highlight-green {

    border-left: 4px solid #16a34a;
}

.highlight-orange {

    border-left: 4px solid Orange;
}

.highlight-red {

    border-left: 4px solid red;
}

.subsection-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.badge-alignment {
    background: #0d6efd;
    color: #ffffff;
}

.badge-collaboration {
    background: #16a34a;
    color: #ffffff;
}

.research-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 12px 0;
}

.research-text {
    font-size: 0.938rem;
    color: #495057;
    line-height: 1.7;
    margin: 0;
}

.research-overlap-list-detailed {
    list-style: none;
    padding: 0;
    margin: 0;
}

.research-overlap-list-detailed li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.938rem;
    color: #495057;
}

.research-overlap-list-detailed li i {
    color: #0d6efd;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Publications */
.publication-item {
    padding: 16px;
    background: #ffffff;

    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.publication-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #0d6efd;
}

.publication-item:last-child {
    margin-bottom: 0;
}

.publication-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.publication-num {
    color: #0d6efd;
    font-weight: 700;
    font-size: 0.938rem;
    flex-shrink: 0;
}

.publication-title-text {
    font-size: 0.938rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.4;
}

.publication-desc {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    padding-left: 28px;
}

/* Overview Subsections */
.overview-subsection {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.overview-subsection:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.overview-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 12px 0;
}

.overview-text {
    font-size: 0.938rem;
    color: #495057;
    line-height: 1.7;
    margin: 0;
}

/* Metrics Row */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.metric-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.metric-box:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.metric-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.813rem;
    color: #6c757d;
}

/* Contact Row */
.contact-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;

    border: 1px solid #e9ecef;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #0d6efd;
}

.contact-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-email {
    background: #fee;
    color: #dc3545;
}

.contact-phone {
    background: #d1fae5;
    color: #16a34a;
}

.contact-detail {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
}

/* Professional Links */
.prof-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;

    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    text-decoration: none;
    transition: all 0.2s ease;
}

.prof-link-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #0d6efd;
}

.prof-link-item:last-child {
    margin-bottom: 0;
}

.prof-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prof-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.938rem;
}

.prof-icon-scholar {
    background: #212529;
    color: #ffffff;
}

.prof-icon-university {
    background: #f97316;
    color: #ffffff;
}

.prof-icon-personal {
    background: #9333ea;
    color: #ffffff;
}

.prof-link-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #212529;
}

.prof-link-arrow {
    color: #adb5bd;
    font-size: 0.813rem;
}

/* Pagination */
.pagination-container {
    background-color: #ffffff;
    padding: 16px 0;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.pagination {
    margin: 0;
}

.page-link {
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: #e9ecef;
    color: #212529;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.page-item.disabled .page-link {
    color: #adb5bd;
    pointer-events: none;
    background-color: #ffffff;
    border-color: #dee2e6;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 16px 0;
    margin-top: auto;
    flex-shrink: 0;
}

.footer p {
    color: #6c757d;
    font-size: 0.875rem;
}

/* User Dropdown Menu */
.dropdown-menu {
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px;
    min-width: 180px;
}

.dropdown-item {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.dropdown-item i {
    width: 16px;
    font-size: 0.875rem;
}

.dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #e9ecef;
}



/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ced4da;
}




body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}

.steps-section {
    padding: 0px 24px;

    width: 100%;

}

.steps-container {

    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.step-card {
    background: #ffffff;
    border: 1px solid #e9ecef;

    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #0d6efd;
}

.step-tag {
    /* font-size: 0.625rem; */
    color: #3b82f6;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 12px;
}

/* Step Content Elements */
.preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.preview-circle.blue {
    background: #3b82f6;
}

.preview-text {
    font-size: 0.75rem;
    color: #495057;
}

.preview-text span {
    color: #6c757d;
    font-size: 0.7rem;
}

.step-stat {
    font-size: 1.5rem;
    font-weight: 800;
    color: #212529;
    margin: 4px 0;
}

.step-desc {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

.step-text-box {
    /* background: #f8f9fa; */
    /* border-left: 3px solid #3b82f6; */
    padding: 10px 0px 5px 0px;
    /* font-size: 0.75rem; */
    color: #495057;
    border-radius: 4px;
    /* font-style: italic; */
    font-size: 14px;
}

.step-btn {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 10px;

    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
}

.step-btn:hover {
    background: #0a58ca;
}



/* No Data Found Styling */
.no-data-container {
    padding: 64px 24px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px dashed #e2e8f0;
    max-width: 600px;
    margin: 40px auto;
    transition: all 0.3s ease;
}

.no-data-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-data-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.no-data-text {
    font-size: 0.938rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-refine {
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-refine:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}


/* Alerts */

/* --- Custom Alert Styling --- */
.alert-custom {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 20px;

    border-left: 4px solid transparent;
    background: #fff;

}

.alert-icon {
    font-size: 1.25rem;
    margin-right: 16px;
    margin-top: 2px;
}

.alert-content {
    flex-grow: 1;
}

.alert-title {
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.95rem;
}

.alert-text {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.alert-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0 4px;
}

/* Color Variants */
.alert-success-custom {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.alert-success-custom .alert-icon,
.alert-success-custom .alert-title {
    color: #166534;
}

.alert-error-custom {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.alert-error-custom .alert-icon,
.alert-error-custom .alert-title {
    color: #991b1b;
}

.alert-warning-custom {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.alert-warning-custom .alert-icon,
.alert-warning-custom .alert-title {
    color: #92400e;
}

.alert-info-custom {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.alert-info-custom .alert-icon,
.alert-info-custom .alert-title {
    color: #1e40af;
}

.generator-hero {
    padding: 48px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

.cv-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;
    border-radius: 2px;

    background: #f8f9fb;
    border: 1px solid #e3e6ea;
}

.cv-select {
    display: flex;
    align-items: center;
    gap: 12px;

    cursor: pointer;
    font-weight: 500;
}

.cv-select input {
    width: 18px;
    height: 18px;
    accent-color: #1a73e8;
}

.cv-select i {
    color: #6c757d;
    font-size: 16px;
}

.cv-upload-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 14px;
    text-decoration: none;
    color: #1a73e8;
    font-weight: 500;
}

.cv-upload-link:hover {
    text-decoration: underline;
}

.generator-hero {
    padding: 80px 0;
}

.hero-intro {
    max-width: 720px;
    margin: 0 auto 50px;
}

.form-wrapper {
    max-width: 860px;
    background: #ffffff;
    border-radius: 2px;
    padding: 40px 45px;
    border: 1px solid #eef0f3;
}

.form-wrapper label {
    font-size: 0.9rem;
}

.form-wrapper .form-control {
    /* border-radius: 12px; */
    font-size: 0.95rem;
}

:root {
    --primary-blue: #0066ff;
    --success-green: #10b981;
    --gray-light: #e5e7eb;
    --gray-medium: #9ca3af;
    --circle-size: 90px;
    --step-time: 20000ms;
}


.header-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
    margin-top: 30px;
}

.header-section h1 {
    font-size: 56px;
    margin: 0;
    font-weight: 800;
}

.header-section p {

    color: #4b5563;
    margin-top: 15px;
    font-weight: 400;
    margin-bottom: 30px;
}

/* --- PROGRESS TRACKER --- */
.progress-wrapper {
    display: flex;
    align-items: flex-start;
    /* width: 850px; */
    justify-content: space-between;
    border: 2px solid #1073e8;
    border-radius: 10px;
    padding: 30px;
}

.step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
}

.circle {
    width: var(--circle-size);
    height: var(--circle-size);
    background: white;
    border: 2px dashed var(--gray-medium);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
}

/* ACTIVE STATE */
.active .circle {
    border: 2px solid var(--gray-light);
}

.active .circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary-blue);
    animation: spin 2s linear infinite;
}

.active .icon {
    display: none;
}

.active .percentage {
    display: block;
}

/* COMPLETED STATE */
.completed .circle {
    border: 2px solid var(--success-green);
    background-color: #f0fdf4;
    border-style: solid;
}

.completed .icon,
.completed .percentage {
    display: none;
}

.completed .check-icon {
    display: block;
}

/* ELEMENTS */
.icon {
    width: 32px;
    height: 32px;
    fill: var(--gray-medium);
}

.percentage {
    display: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.check-icon {
    display: none;
    width: 44px;
    height: 44px;
    fill: var(--success-green);
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* LINES */
.line-track {
    flex-grow: 1;
    height: 4px;
    background-color: var(--gray-light);
    margin-top: calc(var(--circle-size) / 2);
    border-radius: 2px;
    overflow: hidden;
    margin-left: -15px;
    margin-right: -15px;
}

.line-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-blue);
    transition: width var(--step-time) linear, background-color 0.5s ease;
}

.line-fill.filled {
    width: 100%;
}

.line-fill.success {
    background-color: var(--success-green);
}

.label {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-medium);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active .label {
    color: var(--primary-blue);
}

.completed .label {
    color: var(--success-green);
}

/* KEYFRAMES */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pop {
    0% {
        transform: scale(0.5);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.discovery-heading {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.04em;
    margin: 0;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

/* The Blue Line (Matches Text Width) */
.discovery-heading::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #0d6efd;
    z-index: 2;
}

.loading-box {
    height: 100px;
    margin-bottom: 12px;
    background: #eee;
    border-radius: 6px;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* Container for the buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Individual Button Styling */
.btn_prem {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    /* Primary Blue */
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
}

.btn_prem:hover {
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
}

.btn_prem:active {
    transform: translateY(1px);
}

.btn_prem[href*="generate-email"] {
    background-color: #28a745;

}

.btn_prem[href*="cover-letter"] {
    background-color: orange;
}

.btn_prem[href*="generate-email"]:hover {
    background-color: #218838;
}


.ai-horizontal-container {
    width: 100%;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #eaecef;
    border-bottom: none;
}

.header-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 11px;
    font-weight: 800;
    color: var(--active-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.status-ping {
    width: 8px;
    height: 8px;
    background: var(--active-blue);
    border-radius: 50%;
    position: relative;
}

.status-ping::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--active-blue);
    border-radius: 50%;
    animation: ping-glow 1.5s infinite;
}

.insights-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.insight-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.25;
    transition: opacity 0.6s ease;
}

.node-circle {
    width: 16px;
    height: 16px;
    background: var(--dot-bg);
    border-radius: 50%;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.node-circle::after {
    content: '✓';
    color: white;
    font-size: 10px;
    font-weight: bold;
    display: none;
}

.label-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 4px;
    height: 32px;
    display: flex;
    align-items: center;
}

.sub-text {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.insight-item:nth-child(1) {
    animation: activeItem 0.5s forwards 0s;
}

.insight-item:nth-child(1) .node-circle {
    animation: fillBlue 0.5s forwards 0s, activePulse var(--step-time) 0s;
}

.insight-item:nth-child(2) {
    animation: activeItem 0.5s forwards 3.75s;
}

.insight-item:nth-child(2) .node-circle {
    animation: fillBlue 0.5s forwards 3.75s, activePulse var(--step-time) 3.75s;
}

/* Item 3: 7.5s - 11.25s */
.insight-item:nth-child(3) {
    animation: activeItem 0.5s forwards 7.5s;
}

.insight-item:nth-child(3) .node-circle {
    animation: fillBlue 0.5s forwards 7.5s, activePulse var(--step-time) 7.5s;
}

/* Item 4: 11.25s - 15s */
.insight-item:nth-child(4) {
    animation: activeItem 0.5s forwards 11.25s;
}

.insight-item:nth-child(4) .node-circle {
    animation: fillBlue 0.5s forwards 11.25s, activePulse var(--step-time) 11.25s;
}

/* Keyframes */
@keyframes activeItem {
    to {
        opacity: 1;
    }
}

@keyframes fillBlue {
    to {
        background: var(--active-blue);
    }
}

@keyframes activePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
    }
}

@keyframes ping-glow {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Final Green State */
.complete .node-circle {
    background: var(--success-green) !important;
    box-shadow: none !important;
}

.complete .node-circle::after {
    display: block;
}





.action-links {
    display: flex;
    gap: 14px;

}

/* Base link style */
.action-link {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 16px 25px;


    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    color: #1a73e8;

    border: 1px solid #e9ecef;

    transition: all 0.2s ease;
    margin-bottom: 2px;
    text-align: center;
    ;
}

.action-link:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-1px);

    color: #ffffff;
}

/* Icon */
.action-link i {
    font-size: 15px;
}

.action-link.primary {
    background: linear-gradient(135deg, #1a73e8, #4d8dff);
    color: #fff;
    border: none;
}

.action-link.primary:hover {
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.35);
}

.action-links-container {
    position: relative;
    padding: 23px 22px;
    /* white base */
    background: #ffffff;
    border: 1px solid #e9ecef;
    margin-bottom: 16px;
    text-align: center;
    margin-top: 30px;

}

.margin_bottom_16px {
    margin-bottom: 16px;
}


/* Heading pill */
.action-heading {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: 10px 21px;
    border-radius: 2px;

    background: #1a73e8;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* --- BENTO BOX MASONRY GRID --- */
.query-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 20px;
    padding: 20px;

    margin: 0 auto;
}

.query-sticky-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 2px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;

}

.card-wide {
    grid-column: span 2;
}

.card-tall {
    grid-row: span 2;
}

.query-sticky-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}


.query-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    background: #f1f5f9;
    color: #475569;
    transition: 0.3s;
}

.query-sticky-card:hover .query-icon-box {
    background: var(--primary-blue);
    color: white;
}

.query-text-content {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 15px;
}

.card-tall .query-text-content {
    font-size: 1.4rem;
}

.query-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.query-category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 2px;
}

.click-hint {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
}

.query-sticky-card:hover .click-hint {
    opacity: 1;
    transform: translateX(0);
}


.heading-wrapper {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 24px;
    overflow: visible;

}





.heading-subtext {
    margin-top: 10px;

    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.bento-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.span-2 {
    grid-column: span 2;
}

.row-2 {
    grid-row: span 2;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.bento-card i {
    font-size: 1.5rem;
    color: #0d6efd;
    margin-bottom: 20px;
    background: #eff6ff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.bento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.heading-h1 {
    margin: 25px 22px 0px 20px;
    padding: 20px 0px 20px 20px;

}



.site-footer {
    background: #111827;
    color: #94a3b8;
    padding: 60px 0 30px 0;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo span {
    color: #0d6efd;

}

.brand-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-column h6 {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: 0.2s;
}

.footer-column a:hover {
    color: #0d6efd;
    padding-left: 5px;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-icons a {
    color: #ffffff;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.footer-social-icons a:hover {
    background: #0d6efd;
    color: white;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0 20px 0;
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}



.form-wrapper {
    max-width: 550px;
    background: #ffffff;
    border-radius: 2px;
    padding: 45px;
    border: 1px solid #eef0f3;

}

.form-control-lg {
    /* border: 2px solid #e2e8f0; */
    /* background-color: #f8fafc; */
    padding: 12px;
}

.form-control-lg:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 0.25rem rgba(26, 115, 232, 0.1);
}

.generator-hero {
    margin: 16px 0px 16px 0px;
}

.hover-primary:hover {
    color: #0d6efd !important;
    text-decoration: underline !important;
}

.ls-1 {
    letter-spacing: 0.5px;
}



.sidebar-slim {
    position: fixed;
    left: 0;
    top: 0;
    width: 64px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 0;
    z-index: 1060;
}

.main-container-slim {
    margin-left: 64px;
    width: calc(100% - 64px);
    min-height: 100vh;
    background-color: #f8f9fa;
}

.nav-icon-btn {
    width: 42px;
    height: 42px;
    margin: 8px auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: 0.2s;
}

.nav-icon-btn:hover,
.nav-icon-btn.active {
    background: #f1f5f9;
    color: #0d6efd;
}

.dashboard-content {

    margin: 0 auto;
    padding: 40px 24px;
}

.stat-widget {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    transition: transform 0.2s ease;
}

.stat-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
}

.stat-trend {
    font-size: 0.75rem;
    margin-top: 4px;
}

.activity-item {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.bg-soft-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.bg-soft-green {
    background: #f0fdf4;
    color: #22c55e;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.upload-cv-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;

    min-height: 120px;

    background-color: #1a73e8;

    color: #ffffff !important;
    text-decoration: none !important;

}

.upload-cv-card:hover {
    background-color: #1557b0;

    transform: translateY(-2px);
    color: #ffffff !important;
}

.upload-cv-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.upload-cv-content i {
    font-size: 1.5rem;
}

.activity-icon.bg-soft-blue {
    width: 45px;
    height: 45px;
    background-color: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}



.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}



.icon-btn {
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-details-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

 .nav-boxes {
    gap: 8px;
}

.nav-box {
    padding: 6px 16px;
    
    
    color: #333 !important;
    transition: all 0.2s ease;
}

.nav-box:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-box.active {
    background-color: #0d6efd;
    color: #fff !important;
}

    .premium-card {

        background: linear-gradient(135deg, #1e3c72, #2a5298);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    .premium-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

    .premium-btn {
        transition: all 0.25s ease;
    }

    .premium-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
    }

@media (max-width: 768px) {
    .intro-header h1 {
        font-size: 1.75rem;
    }

    .intro-header p {
        font-size: 1rem;
        padding: 0 8px;
    }
}

@media (min-width: 1200px) {
    .professor-card {
        padding: 20px 24px;
    }

    .profile-image {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 768px) {
    .professor-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .professor-list {
        padding: 0 16px 16px 16px;
    }

    .main-content-wrapper {
        padding: 0;
    }

    .match-badge {
        right: 16px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .search-section {
        padding: 24px 16px 20px 16px;
    }

    .results-header {
        padding: 20px 16px 12px 16px;
    }

    .results-title {
        font-size: 1.25rem;
    }

    .detail-content-wrapper {
        padding: 0 16px;
    }
}

@media (max-width: 576px) {
    .profile-image {
        width: 72px;
        height: 72px;
    }

    .professor-name {
        font-size: 0.938rem;
    }

    .professor-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .professor-list {
        padding: 0 8px 8px 8px;
    }

    .match-badge {
        right: 12px;
        padding: 6px 10px;
        font-size: 0.688rem;
    }

    .profile-section {
        gap: 10px;
    }

    .profile-info {
        gap: 6px;
    }

    .search-section {
        padding: 20px 8px 16px 8px;
    }

    .search-input {
        font-size: 0.875rem;
        padding: 10px 12px;
    }

    .attach-cv-btn,
    .voice-search-btn,
    .search-btn {
        width: 36px;
        height: 36px;
    }

    .search-tips {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-header {
        padding: 16px 8px 12px 8px;
    }

    .results-title {
        font-size: 1.125rem;
    }

    .results-subtitle {
        font-size: 0.875rem;
    }
}

@media (max-width: 390px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .professor-card {
        padding: 10px;
    }

    .profile-image {
        width: 64px;
        height: 64px;
    }

    .match-badge {
        right: 10px;
        padding: 5px 8px;
        font-size: 0.625rem;
    }

    .action-buttons {
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr;
    }

    .steps-section {
        padding: 24px 16px;
    }
}

@media (max-width: 1100px) {
    .query-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-wide,
    .card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .query-bento-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .discovery-heading {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2,
    .row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand-col p {
        margin: 0 auto;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .border-start {
        border-left: 1px solid #dee2e6 !important;
    }
}

@media (max-width: 768px) {
    .action-link {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .bottom-row {
        flex-direction: column;
        align-items: center;
    }

    .view-details-btn {
        width: 100%;
        text-align: center;
        max-width: 300px;
    }

    .action-buttons {
        justify-content: center;
        width: 100%;
    }
}
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 12px;
        z-index: 9999;
        margin-top: 10px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    }

    .nav-box {
        display: block;
        margin-bottom: 8px;
    }
}