/* Custom CSS for New Home Page Content */

/* Search Criteria Section */
.search-criteria {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.search-criteria h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.search-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-list li {
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
}

.search-list li i {
    color: #28a745;
    margin-right: 8px;
}

/* Services Nationwide Section */
.services-nationwide {
    background: #f8f9fa;
    padding: 80px 0;
}

.service-item {
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.service-icon i {
    color: #fff;
    font-size: 24px;
}

.service-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

/* Built For Section */
.built-for-item {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.built-for-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.built-for-item i {
    font-size: 32px;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.built-for-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
    background: #fff;
    padding: 80px 0;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Services Detailed Section */
.services-detailed {
    background: #f8f9fa;
    padding: 80px 0;
}

.service-detailed-item {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-detailed-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-detailed-item .service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.service-detailed-item .service-icon i {
    color: #fff;
    font-size: 20px;
}

.service-detailed-item .service-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.service-detailed-item .service-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Coverage Assignments Section */
.coverage-assignments {
    background: #fff;
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-icon i {
    color: #fff;
    font-size: 20px;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

/* For Professionals Section */
.for-professionals {
    background: #f8f9fa;
    padding: 80px 0;
}

.professional-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.professional-feature {
    text-align: center;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.professional-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.professional-feature .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.professional-feature .feature-icon i {
    color: #fff;
    font-size: 24px;
}

.professional-feature h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

/* Mission Vision Values Section */
.mission-vision-values {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    padding: 80px 0;
    color: #fff;
}

.mission-vision-values h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
}

.mission-vision-values .lead {
    color: #fff;
    opacity: 0.9;
    font-size: 18px;
    line-height: 1.8;
}

.mission-vision-values .font-weight-bold {
    font-weight: 700;
    color: #fff;
}

.mission-vision-values .font-italic {
    font-style: italic;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .professional-features {
        grid-template-columns: 1fr;
    }
    
    .service-detailed-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-detailed-item .service-icon {
        margin: 0 auto 15px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 15px;
    }
    
    .search-criteria .row {
        flex-direction: column;
    }
    
    .search-criteria .col-md-6 {
        margin-bottom: 15px;
    }
}

/* Hero Button Updates */
.hero-buttons .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border: none;
}

.hero-buttons .btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.hero-buttons .btn-outline-light:hover {
    background: #fff;
    color: #1e3a5f;
}

/* Section Headers */
.subheading {
    color: #1e3a5f;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* Mobile Responsive Hero Banner */
@media (max-width: 768px) {
    .hero-wrap {
        min-height: 1100px !important;
        height: auto !important;
        padding-bottom: 60px;
    }
    
    .hero-wrap .container {
        padding-top: 30px !important;
        padding-bottom: 40px !important;
    }
    
    .hero-wrap .row {
        justify-content: center !important;
    }
    
    .hero-content {
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 36px !important;
        text-align: center !important;
        max-width: 100% !important;
    }
    
    .hero-description {
        text-align: center !important;
        font-size: 16px !important;
    }
    
    .hero-buttons {
        text-align: center !important;
    }
    
    .hero-buttons .btn {
        display: block !important;
        width: 100% !important;
        margin: 10px 0 !important;
    }
    
    .hero-buttons .btn-outline-light:hover {
        background-color: #1e3a5f !important;
        border-color: #1e3a5f !important;
        color: #fff !important;
    }
    
    .search-criteria {
        margin: 20px auto !important;
    }
    
    .search-criteria .row .col-md-6 {
        text-align: left !important;
    }
}

/* ALL Outline Buttons - Transition and Hover */
.hero-buttons .btn-outline,
.btn.btn-outline.btn-hero,
a[style*="border: 2px solid #fff"],
a[style*="border: 2px solid rgb(255, 255, 255)"] {
    transition: all 0.3s ease !important;
}

.hero-buttons .btn-outline:hover,
.btn.btn-outline.btn-hero:hover,
a[style*="border: 2px solid #fff"]:hover,
a[style*="border: 2px solid rgb(255, 255, 255)"]:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%) !important;
    border-color: transparent !important;
    border: 2px solid transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
}

/* Force all outline buttons hover with inline styles override */
a[href][style*="border: 2px solid"][style*="transparent"]:hover,
a[href][style*="background: transparent"]:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%) !important;
    border: 2px solid transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
}

/* Services Cards Hover Effects - Find Qualified Legal Professionals */
.services-nationwide .row .col-md-6 .col-lg-4 > div,
.services-nationwide .col-md-6.col-lg-4 > div,
.services-nationwide .col-md-6 > div {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.services-nationwide .row .col-md-6 .col-lg-4:hover > div,
.services-nationwide .col-md-6.col-lg-4:hover > div,
.services-nationwide .col-md-6:hover > div {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

/* Built For Cards Hover Effects - Why Court Reports */
.row.mt-5 .col-lg-3.col-md-6 > div {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
}

.row.mt-5 .col-lg-3.col-md-6:hover > div {
    transform: translateY(-12px) scale(1.05) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2) !important;
}

/* How It Works - Desktop: 5 cards in one row */
@media (min-width: 992px) {
    .how-it-works .col-lg-12 > div {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }

    .how-it-works .col-lg-12 > div > div {
        flex: 0 0 18% !important;
        min-width: 18% !important;
        max-width: 18% !important;
    }
}

/* How It Works - Tablet: 2-3 per row */
@media (max-width: 991px) and (min-width: 768px) {
    .how-it-works .col-lg-12 > div {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .how-it-works .col-lg-12 > div > div {
        flex: 0 0 30% !important;
        min-width: 200px !important;
        max-width: 250px !important;
        margin-bottom: 20px !important;
    }
}

/* How It Works - Mobile: Stack vertically */
@media (max-width: 767px) {
    .how-it-works .col-lg-12 > div {
        flex-wrap: wrap !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .how-it-works .col-lg-12 > div > div {
        flex: 0 0 auto !important;
        min-width: 280px !important;
        max-width: 90% !important;
        width: 90% !important;
        margin-bottom: 30px !important;
    }
}

/* How It Works Cards Hover */
.how-it-works .col-lg-12 > div > div {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
}

.how-it-works .col-lg-12 > div > div:hover {
    transform: translateY(-10px) scale(1.05) !important;
    background: rgba(255,255,255,0.1) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

/* Detailed Services Cards Hover - Nationwide Legal Support Services */
section:has(> .container > .row > .col-md-10 > span:contains("Detailed Services")) .col-lg-6.mb-4 > div,
section:has(h2:contains("Nationwide Legal Support Services")) .col-lg-6.mb-4 > div {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
}

section:has(> .container > .row > .col-md-10 > span:contains("Detailed Services")) .col-lg-6.mb-4:hover > div,
section:has(h2:contains("Nationwide Legal Support Services")) .col-lg-6.mb-4:hover > div {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4) !important;
}

/* Fill Coverage Faster Cards Hover - Open Roles & Coverage Assignments */
section:has(> .container > .row > .col-lg-10 > span:contains("Open Roles & Coverage Assignments")) .col-lg-4.col-md-6.mb-4 > div,
section:has(h2:contains("Fill Coverage Faster")) .col-lg-4.col-md-6.mb-4 > div {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
}

section:has(> .container > .row > .col-lg-10 > span:contains("Open Roles & Coverage Assignments")) .col-lg-4.col-md-6.mb-4:hover > div,
section:has(h2:contains("Fill Coverage Faster")) .col-lg-4.col-md-6.mb-4:hover > div {
    transform: translateY(-12px) scale(1.05) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3) !important;
}

/* For Legal Professionals Cards Hover */
section:has(> .container > .row > .col-lg-10 > span:contains("For Legal Professionals")) .col-lg-3.col-md-6.mb-4 > div,
section:has(> .container > .row > .col-lg-10 > span:contains("For Legal Professionals")) .col-lg-4.col-md-6.mb-4 > div,
section:has(h2:contains("Grow Your Legal Services Business")) .col-lg-3.col-md-6.mb-4 > div,
section:has(h2:contains("Grow Your Legal Services Business")) .col-lg-4.col-md-6.mb-4 > div {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
}

section:has(> .container > .row > .col-lg-10 > span:contains("For Legal Professionals")) .col-lg-3.col-md-6.mb-4:hover > div,
section:has(> .container > .row > .col-lg-10 > span:contains("For Legal Professionals")) .col-lg-4.col-md-6.mb-4:hover > div,
section:has(h2:contains("Grow Your Legal Services Business")) .col-lg-3.col-md-6.mb-4:hover > div,
section:has(h2:contains("Grow Your Legal Services Business")) .col-lg-4.col-md-6.mb-4:hover > div {
    transform: translateY(-12px) scale(1.05) !important;
    background: rgba(255,255,255,0.1) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4) !important;
    border-color: rgba(255,255,255,0.25) !important;
}

/* SIMPLIFIED CARD HOVER EFFECTS - These will definitely work */

/* All white background cards (Detailed Services) */
.col-lg-6.mb-4 > div[style*="background: #fff"] {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
}

.col-lg-6.mb-4:hover > div[style*="background: #fff"] {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4) !important;
}

/* All gradient cards (Fill Coverage Faster) */
.col-lg-4.col-md-6.mb-4 > div[style*="linear-gradient"] {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
}

.col-lg-4.col-md-6.mb-4:hover > div[style*="linear-gradient"] {
    transform: translateY(-12px) scale(1.05) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3) !important;
}

/* Glassmorphism cards (For Legal Professionals) */
.col-lg-3.col-md-6.mb-4 > div[style*="backdrop-filter"],
.col-lg-4.col-md-6.mb-4 > div[style*="backdrop-filter"] {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
}

.col-lg-3.col-md-6.mb-4:hover > div[style*="backdrop-filter"],
.col-lg-4.col-md-6.mb-4:hover > div[style*="backdrop-filter"] {
    transform: translateY(-12px) scale(1.05) !important;
    background: rgba(255,255,255,0.1) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4) !important;
    border-color: rgba(255,255,255,0.25) !important;
}

/* Our Foundation Section - Outline Button Hover */
section:has(> .container > .row > .col-lg-10 > span:contains("Our Foundation")) a[style*="border: 2px solid #fff"],
section:has(h2:contains("What Drives Us")) a[style*="border: 2px solid #fff"] {
    transition: all 0.3s ease !important;
}

section:has(> .container > .row > .col-lg-10 > span:contains("Our Foundation")) a[style*="border: 2px solid #fff"]:hover,
section:has(h2:contains("What Drives Us")) a[style*="border: 2px solid #fff"]:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
}

/* Mobile Responsive Images */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .hero-content img,
    .service-item img,
    .cr-reporter-avatar img {
        max-width: 100%;
        height: auto;
    }
    
    /* Reduce hero image size on mobile */
    .hero-wrap {
        min-height: 600px !important;
    }
    
    /* Service cards image containers */
    .service-item div[style*="width: 80px"] {
        width: 60px !important;
        height: 60px !important;
    }
    
    .service-item div[style*="width: 80px"] i {
        font-size: 24px !important;
    }
}
