/**
 * LBI Design - Custom Styles
 * Overrides and additions to transform job board theme to web design agency
 */

/* =========================================
   1. Color Scheme Updates - Professional Dark Theme
========================================= */
:root {
    --agency-primary: #2c3e50;      /* Professional dark blue-gray */
    --agency-primary-dark: #1a252f; /* Darker shade for hover states */
    --agency-secondary: #3498db;    /* Professional blue accent */
    --agency-accent: #e67e22;       /* Warm orange for CTAs */
    --agency-text: #2c3e50;         /* Dark gray text */
    --agency-text-light: #7f8c8d;   /* Light gray for secondary text */
    --agency-light: #f8f9fa;        /* Light background */
    --agency-white: #ffffff;        /* Pure white */
    --agency-dark: #34495e;         /* Medium dark gray */
    --agency-success: #27ae60;      /* Success green */
}

/* Primary color overrides */
.careerfy-bgcolor,
.careerfy-employer-profile-submit,
.careerfy-static-btn,
.careerfy-option-btn {
    background-color: var(--agency-primary) !important;
}

.careerfy-color,
a:hover,
.careerfy-navigation ul li.current-menu-item > a {
    color: var(--agency-primary) !important;
}

/* =========================================
   2. Header & Navigation
========================================= */
.careerfy-navigation ul li a {
    font-weight: 500;
    transition: all 0.3s ease;
}

.careerfy-navigation ul li:hover > a {
    color: var(--agency-primary) !important;
}

/* Highlight CTA button in menu */
.menu-highlight-item a {
    background: var(--agency-primary) !important;
    color: var(--agency-white) !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    margin-left: 15px !important;
    transition: all 0.3s ease !important;
}

.menu-highlight-item a:hover {
    background: var(--agency-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 115, 190, 0.3);
}

/* =========================================
   3. Portfolio Styling
========================================= */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item figure {
    position: relative;
    overflow: hidden;
}

.portfolio-item figure img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover figure img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 115, 190, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* =========================================
   4. Services Styling
========================================= */
.careerfy-services-style {
    background: var(--agency-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 280px;
}

.careerfy-services-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.careerfy-services-style i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.careerfy-services-more {
    color: var(--agency-primary);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.careerfy-services-more:hover {
    color: var(--agency-primary-dark);
    transform: translateX(5px);
}

/* =========================================
   5. Homepage Hero
========================================= */
.careerfy-banner-one {
    position: relative;
    overflow: hidden;
}

.careerfy-banner-one::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.careerfy-banner-btn a {
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.careerfy-banner-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* =========================================
   6. Testimonials
========================================= */
.careerfy-testimonial-style {
    background: var(--agency-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.careerfy-testimonial-style::before {
    content: '\201C';
    font-size: 60px;
    color: var(--agency-primary);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.careerfy-testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.careerfy-testimonial-info h2 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--agency-text);
}

.careerfy-testimonial-info span {
    color: #999;
    font-size: 14px;
}

/* =========================================
   7. Contact Form
========================================= */
.careerfy-contact-form-style input,
.careerfy-contact-form-style select,
.careerfy-contact-form-style textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.careerfy-contact-form-style input:focus,
.careerfy-contact-form-style select:focus,
.careerfy-contact-form-style textarea:focus {
    border-color: var(--agency-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.careerfy-contact-form-style label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: var(--agency-text);
}

/* =========================================
   8. Footer Updates
========================================= */
.careerfy-footer {
    background: #2c3e50;
}

.careerfy-footer .widget-title {
    color: var(--agency-white);
    border-bottom: 2px solid var(--agency-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* =========================================
   9. Buttons & CTAs
========================================= */
.careerfy-employer-profile-submit,
.careerfy-static-btn {
    background: var(--agency-primary);
    color: var(--agency-white);
    padding: 12px 30px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.careerfy-employer-profile-submit:hover,
.careerfy-static-btn:hover {
    background: var(--agency-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 115, 190, 0.3);
}

/* =========================================
   10. Responsive Updates
========================================= */
@media (max-width: 768px) {
    .careerfy-banner-caption h1 {
        font-size: 32px !important;
    }

    .careerfy-banner-caption p {
        font-size: 16px !important;
    }

    .menu-highlight-item a {
        margin-left: 0 !important;
        margin-top: 10px !important;
    }

    .careerfy-column-3,
    .careerfy-column-4,
    .careerfy-column-6 {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* =========================================
   11. Animation Effects
========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* =========================================
   12. Hide Job-Related Elements
========================================= */
.jobsearch-job-title,
.jobsearch-company-name,
.jobsearch-job-location,
.jobsearch-salary,
.careerfy-jobdetail-services li:nth-child(n+5),
.widget_jobsearch_widget,
.careerfy-refejobs-title {
    display: none !important;
}

/* Transform job listings to portfolio grid */
.careerfy-job.careerfy-joblisting-classic .careerfy-joblisting-classic-wrap {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.careerfy-job.careerfy-joblisting-classic .careerfy-joblisting-classic-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}