/* Custom CSS for CareerNext */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Header Styles */
.header-custom {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo-career {
    color: #3182ce;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-com {
    color: #1a365d;
    font-weight: 500;
    font-size: 1.2rem;
}

.nav-link {
    font-weight: 500;
    color: #1a365d !important;
    padding: 0.5rem 1rem !important;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #3182ce !important;
}

.nav-link.active {
    color: #1a365d !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2px;
    background: #38a169;
}

.btn-primary {
    background: #1a365d;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2c5282;
    transform: translateY(-1px);
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-custom {
        padding: 0.75rem 0;
    }
    
    .logo-career {
        font-size: 1.3rem;
    }
    
    .logo-com {
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .btn-primary {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero-section {
   
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.search-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0 auto;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.search-input-group .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-input-group .input-group-text {
    border: none;
    padding: 0.75rem 1rem;
}

.search-jobs-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    height: 100%;
}

.search-jobs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.job-alert-link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.job-alert-link:hover {
    color: #dbeafe;
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    border-color: white;
}

.indicator:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
}

/* Search Form Styles */
.input-group-text {
    background-color: white !important;
    border-color: #d1d5db;
}

.form-control {
    border-color: #d1d5db;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Card Styles */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    border-radius: 6px;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

/* Industry Tabs */
.nav-pills .nav-link {
    border-radius: 6px;
    margin-right: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

/* Trending Section */
.list-unstyled li {
    padding: 0.25rem 0;
    color: var(--secondary-color);
}

.list-unstyled a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Footer Styles */
.footer-custom {
    background-color: #D0EEF9;
    color: #4A4A4A;
}

.footer-top {
    padding-bottom: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-career {
    color: #2196F3;
    font-weight: bold;
}

.logo-com {
    color: #4A4A4A;
    font-weight: normal;
    font-size: 1.2rem;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    color: #2196F3;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #1976D2;
}

.scroll-top-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #66BB6A;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.scroll-top-btn:hover {
    background: #66BB6A;
    color: white;
    transform: translateY(-2px);
}

.footer-divider {
    height: 1px;
    background-color: #CCCCCC;
    margin: 1rem 0;
}

.footer-bottom {
    padding-top: 1rem;
}

.footer-copyright {
    margin: 0;
    color: #4A4A4A;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-link {
    color: #4A4A4A;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #2196F3;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

/* Back to Top Button */
#backToTop {
    z-index: 1000;
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Jobs By Industry Section */
.industry-nav-container {
    position: relative;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
}

.industry-nav-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-arrow {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s ease;
}

.nav-arrow:hover {
    color: #1d4ed8;
}

.industry-nav {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.industry-nav-content {
    display: flex;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.industry-tab {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.industry-tab:hover {
    background-color: #e2e8f0;
    color: var(--primary-color);
}

.industry-tab.active {
    background-color: #dbeafe;
    color: var(--primary-color);
}

/* Job Cards */
.job-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    overflow: hidden;
    position: relative;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1rem 0.5rem;
}

.company-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.company-icon-red {
    background-color: #ef4444;
}

.company-icon-green {
    background-color: #10b981;
}

.company-icon-dark-blue {
    background-color: #1e40af;
}

.company-icon-orange {
    background-color: #f97316;
}

.company-icon-light-blue {
    background-color: #3b82f6;
}

.bookmark-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.bookmark-btn:hover {
    color: var(--primary-color);
}

.job-card-body {
    padding: 0 1rem;
}

.job-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.company-name {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.job-location {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.job-card-footer {
    padding: 0.5rem 1rem 1rem;
    display: flex;
    justify-content: flex-end;
}

.posted-time {
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 500;
}

.see-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.see-more-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Advance Your Career Section */
.advance-career-section {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    position: relative;
}

.advance-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.advance-card-body {
    padding: 2rem 1.5rem;
}

.advance-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    font-size: 1.5rem;
    color: white;
}

.advance-icon-match {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    position: relative;
}

.advance-icon-match::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: -10px;
    left: -10px;
    animation: pulse 2s infinite;
}

.advance-icon-companies {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    position: relative;
}

.people-icons {
    position: absolute;
    bottom: -5px;
    right: -5px;
    display: flex;
    gap: 2px;
}

.people-icons i {
    font-size: 0.6rem;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advance-icon-recent {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    position: relative;
}

.advance-icon-recent i:last-child {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.8rem;
}

.advance-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.advance-list-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.advance-list-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.advance-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.advance-job-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.advance-job-item:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.advance-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.advance-job-body {
    margin-bottom: 0.5rem;
}

.advance-job-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.advance-company-name {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.advance-job-location {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-bottom: 0;
}

.advance-job-footer {
    display: flex;
    justify-content: flex-end;
}

.advance-posted-time {
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 500;
}

.advance-company-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.advance-company-item:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.advance-company-header {
    margin-bottom: 0.75rem;
}

.advance-company-body {
    margin-bottom: 0.5rem;
}

.advance-company-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.advance-view-jobs {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.advance-view-jobs:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.advance-industry {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-bottom: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Most Popular Career Articles Section */
.section-title-wrapper {
    position: relative;
    text-align: center;
}

.section-title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.article-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-card-body {
    padding: 1.5rem;
    flex: 1;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.article-card-footer {
    padding: 0 1.5rem 1.5rem;
    margin-top: auto;
}

.article-meta {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Design for Industry Section */
@media (max-width: 768px) {
    .industry-nav-content {
        gap: 0.25rem;
    }
    
    .industry-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .job-card-header {
        padding: 0.75rem 0.75rem 0.25rem;
    }
    
    .job-card-body {
        padding: 0 0.75rem;
    }
    
    .job-card-footer {
        padding: 0.25rem 0.75rem 0.75rem;
    }
    
    .company-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Articles Section Responsive */
    .section-title {
        font-size: 1.5rem;
    }
    
    .article-card-body {
        padding: 1rem;
    }
    
    .article-card-footer {
        padding: 0 1rem 1rem;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .article-description {
        font-size: 0.85rem;
    }
    
    /* Hero Section Responsive */
    .hero-section {
        min-height: 500px;
    }
    
    .search-form-container {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .search-jobs-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-indicators {
        bottom: 1rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}
