/* Basic Reset */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    color: #1e3a8a;
}

/* Adjust for fixed navbar */
body {
    padding-top: 60px;
}

/* Full height layout */
.container-fluid {
    flex: 1;
}

/* Navbar */
.navbar {
    background-color: #fff;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
}

    .navbar-nav .nav-item {
        display: inline-block;
        margin-right: 12px;
    }

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    margin-right: 15px;
}

.website-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2C3E50;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 8px 15px;
    background-color: #ECF0F1;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, color 0.3s ease;
}

    .website-name:hover {
        transform: scale(1.1);
        color: #1ABC9C;
    }

/* Hero Section */
.hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
    margin-bottom: -80px;
    position: relative;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    text-align: center;
}

    .hero-section .container {
        max-width: 1000px;
    }

.hero-title {
    font-size: 2rem;
    font-weight: 700;
}

.highlight {
    color: #1ABC9C;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Upload Form */
.file-upload-form {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

    .file-upload-form input[type="file"] {
        display: none;
    }

.custom-file-upload {
    cursor: pointer;
    padding: 15px 48px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.3rem;
    border: none;
    color: white;
    background: linear-gradient(90deg,#1ABC9C,#0F8F86);
    box-shadow: 0 8px 15px rgba(26,188,156,0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    .custom-file-upload:hover {
        background: linear-gradient(90deg,#14A47A,#0C6D63);
        box-shadow: 0 12px 20px rgba(20,164,122,0.5);
    }

/* File Selected Text */
.file-selected-text {
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
    min-height: 24px;
    margin-left: 20px;
    font-size: 1.1rem;
    min-width: 200px;
    text-align: center;
}

    .file-selected-text.empty {
        color: #a0a0a0;
        font-style: italic;
    }

/* Instructions */
.file-instructions {
    font-size: 0.9rem;
    color: #6b7280;
    width: 100%;
    text-align: center;
}

/* Buttons */
.btn-primary {
    background-color: #0065e1;
    border: none;
    padding: 12px 48px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(19,168,151,0.3);
}

    .btn-primary:hover {
        background-color: #0f6651;
        box-shadow: 0 8px 28px rgba(15,102,81,0.5);
    }

/* Feature Section */
.features-section {
    margin-top: 60px;
    background: linear-gradient(to right,#004e92,#000428);
    color: white;
    padding: 130px 15px 50px;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin: 15px;
    transition: transform 0.3s ease;
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-8px);
        background: rgba(255,255,255,0.15);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #1ABC9C;
}

/* Upload Area */

.upload-area.vertical-layout .upload-instruction {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

    .upload-area.vertical-layout .upload-instruction:hover {
        color: #000;
        text-shadow: none;
    }

.upload-area.vertical-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 1.5rem;
    border: 2px dashed #000;
    border-radius: 20px;
    background-color: #fff;
}

.upload-icon {
    width: 64px;
    height: 64px;
    font-size: 36px;
    color: #000;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* Spinner */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
/* Footer Premium */
.footer-premium {
    background: radial-gradient(1200px 400px at 10% -10%, rgba(56,189,248,0.12), transparent 40%), radial-gradient(800px 300px at 90% 10%, rgba(99,102,241,0.15), transparent 45%), linear-gradient(180deg,#020617,#020617);
    font-size: 15px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.75rem;
    background: linear-gradient(90deg,#38bdf8,#facc15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-title {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255,221,87,0.12);
    color: #ffdd57;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #9ca3af;
    max-width: 340px;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

    .footer-nav li {
        margin-bottom: 0.65rem;
    }

    .footer-nav a {
        color: #e5e7eb;
        text-decoration: none;
    }

        .footer-nav a:hover {
            color: #ffffff;
        }

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
}

    .social-btn:hover {
        transform: translateY(-3px);
        background: rgba(56,189,248,0.25);
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Navbar Links */
.navbar-nav .nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 6px 12px;
    color: #111827;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        color: #2563eb;
    }

    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 3px;
        width: 0;
        border-radius: 2px;
        transition: width .3s ease;
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

/* Hot Menu */
.navbar-nav .hot-menu {
    color: #fff !important;
    background: linear-gradient(90deg,#f43f5e,#fbbf24);
    padding: 6px 14px;
    border-radius: 20px;
}

/* Resource Card */
.resource-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.resource-card-inner {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    transition: .35s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.resource-card:hover .resource-card-inner {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.18);
}

.resource-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: .4s;
}

.resource-card:hover .resource-image img {
    transform: scale(1.08);
}

.resource-content {
    padding: 24px;
}

    .resource-content h5 {
        font-weight: 700;
        margin-bottom: 10px;
    }

    .resource-content p {
        font-size: .95rem;
        color: #6b7280;
    }

/* Modal */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.custom-modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

    .custom-modal-content h4 {
        text-align: center;
        margin-bottom: 15px;
    }

    .custom-modal-content .close {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 28px;
        cursor: pointer;
    }

/* Review Carousel */
.review-img {
    width: 300px;
    border-radius: .5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.1);
    border: 2px solid #ddd;
}

.carousel-item > .d-flex > img:not(:last-child) {
    margin-right: 1rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.ai-screening-row {
    display: flex;
    gap: 15px; /* small space between columns */
    align-items: flex-start;
    flex-wrap: wrap; /* stack on mobile */
    width: 100%; /* full width */
    margin: 0; /* remove default margin */
    padding: 0; /* remove default padding */
}

/* Left and Right Columns */
.job-post-section,
.upload-area-section {
    flex: 1 1 48%; /* each column ~half width */
    display: flex;
    flex-direction: column;
}

/* Optional vertical separator */
.separator {
    border-left: 2px solid #ddd;
    height: auto;
}

/* Headings */
.job-post-section h4,
.upload-area-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Full-width elements inside columns */
.job-post-section textarea,
.upload-area-section .custom-upload-box {
    width: 100%;
    box-sizing: border-box;
}

/* Upload box styling */
.custom-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

    .custom-upload-box:hover {
        background-color: #f9f9f9;
        border-color: #2563eb;
    }

/* File selected text */
.file-selected-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

/* Submit button styling */
#submitBtn {
    margin-top: 15px;
}

/* Responsive: stack columns on mobile */
@@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .separator {
        display: none;
    }
}

/* Disabled / blur effect */
.upload-area-section.disabled {
    opacity: 0.5;
    pointer-events: none; /* prevent click */
    filter: blur(0.5px);
    transition: all 0.3s ease;
}

.page-header-compact {
    padding: 12px 0 6px; /* much smaller vertical padding */
    background: #1d3557; /* solid color instead of gradient to save visual bulk */
    border-radius: 0 0 8px 8px;
    color: #fff;
}

.select2-container .select2-selection--single {
    height: 46px !important;
    border-radius: 14px !important;
    border: 1px solid #dce3ea !important;
    padding: 8px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
}

/* Modern Dropdown Wrapper */
.resume-group-wrapper {
    max-width: 370px;
    margin: 0 auto 25px;
}

    .resume-group-wrapper label {
        font-weight: 600;
        margin-bottom: 6px;
        display: block;
        color: #1d3557;
    }

/* Modern Select */
.modern-select {
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #dce3ea;
    font-size: 1rem;
    background-color: #fff;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .modern-select:focus {
        border-color: #457b9d;
        box-shadow: 0 0 0 3px rgba(69,123,157,0.15);
        outline: none;
    }

/* Create Button Modern */
.btn-create-group {
    white-space: nowrap; /* Prevent text wrapping */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-create-group:hover {
        background: #457b9d;
        color: #fff;
        border-color: #457b9d;
        box-shadow: 0 4px 10px rgba(69,123,157,0.25);
    }

.resume-group-note {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap; /* Prevent line break */
}

section.py-5:last-of-type {
    margin-bottom: 60px; /* ensures spacing before footer */
}


/* =========================
   MOBILE RESPONSIVE FIXES
   ========================= */

@media (max-width: 992px) {

    /* HERO SECTION */
    .display-5 {
        font-size: 2rem;
        line-height: 1.3;
        text-align: center;
    }

    .lead {
        font-size: 1rem;
        text-align: center;
    }

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .btn-lg {
        font-size: 0.95rem;
        padding: 10px 18px;
    }

    /* center hero buttons */
    .row.align-items-center .col-lg-6:first-child {
        text-align: center;
    }

    /* carousel spacing */
    #aiCarousel {
        margin-top: 25px;
    }
}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 576px) {

    h1, h2 {
        font-size: 1.6rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    h5 {
        font-size: 1rem;
    }

    p {
        font-size: 0.9rem;
    }

    /* reduce card padding */
    .card {
        padding: 10px;
    }

    /* reduce icons */
    .fa-3x {
        font-size: 1.8rem !important;
    }

    /* spacing between sections */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* carousel controls smaller */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }

    /* resource cards image */
    .resource-image img {
        height: auto;
        width: 100%;
    }
}


/* =========================
   EXTRA SMALL DEVICES
   ========================= */

@media (max-width: 420px) {

    .display-5 {
        font-size: 1.5rem;
    }

    .btn-lg {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

        .btn-lg.me-3 {
            margin-right: 0 !important;
        }

    /* stack buttons */
    .btn {
        width: 100%;
    }
}


/* Floating Instant Help Widget */
#instant-help-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Roboto', sans-serif;
}

#instant-help-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

#instant-help-options {
    display: none;
    flex-direction: column;
    margin-bottom: 10px;
    margin-top: 8px;
}

.help-option {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 8px;
    color: #fff;
    width: 140px;
    text-align: center;
}

    .help-option.register {
        background: #28a745; /* Green for Sign Up */
    }

    .help-option.chat {
        background: #25d366; /* WhatsApp green */
    }

/* Show options when button is active */
#instant-help-btn.open + #instant-help-options {
    display: flex;
}

/* Optional: Hover effect */
.help-option:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.2s;
}