/* LinkedIn Training Page Custom CSS */

/* Hero Section Spacing Fix */
#hero {
    padding-top: 70px; /* Increased to move hero section farther from navigation */
    padding-bottom: 50px; /* Increased bottom padding for better separation from next section */
    min-height: auto; /* Remove full viewport height requirement for tighter layout */
    display: flex;
    align-items: center;
    margin-bottom: 0; /* Remove bottom margin as we'll use a separator */
}

/* Mobile Hero Optimization */
@media (max-width: 767px) {
    #hero {
        padding-top: 0; /* No padding at all at the top */
        margin-top: 0;
    }
    
    .navbar {
        margin-bottom: 0; /* Remove any bottom margin from navbar */
    }
    
    header {
        margin-bottom: 0;
    }
}

/* Section Separator */
.section-separator {
    height: 2px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(5, 125, 237, 0.3), rgba(255, 255, 255, 0));
    margin: 0;
    position: relative;
}

.section-separator::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #057DED;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Make sure the hero content is properly visible */
.hero-txt {
    padding-bottom: 20px;
    padding-top: 0; /* Ensure no extra padding at top */
}

/* Hero title container styling */
.hero-title-container {
    margin-bottom: 20px;
}

.hero-title-container h2 {
    margin-bottom: 5px;
}

.hero-title-container h3 {
    font-size: 1.4rem;
    margin-top: 0;
}

/* Hero subtitle container styling */
.hero-subtitle-container {
    margin-bottom: 20px;
}

.hero-subtitle-container h4 {
    margin-bottom: 5px;
}

.hero-subtitle-container h5 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 700;
    color: #394889; /* Exact brand blue color as specified */
}

/* Hero description container styling */
.hero-description-container {
    margin-bottom: 25px;
}

.hero-description-container p {
    margin-bottom: 5px;
}

@media (max-width: 767px) {
    .hero-txt {
        margin-top: -15px; /* Negative margin to pull content up */
        padding-top: 0;
        text-align: center;
    }
    
    /* Hero Title Formatting - More direct approach */
    .hero-txt h2.hero-heading {
        text-align: center;
    }
    
    .hero-txt h2.hero-heading .main-title {
        display: block;
        margin-bottom: 5px;
    }
    
    .hero-txt h2.hero-heading .subtitle {
        display: block;
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .hero-txt h2 {
        margin-top: 0;
        margin-bottom: 20px;
    }
    
    /* Problem Statement Formatting - More direct approach */
    .problem-statement {
        line-height: 1.4;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .problem-statement .solution {
        display: block;
        margin-top: 8px;
        font-weight: 700;
        color: #394889;
    }
    
    /* Description Formatting - More direct approach */
    .hero-description {
        line-height: 1.6;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .hero-description::after {
        content: "";
        display: block;
        height: 12px;
    }
    
    /* Only show line breaks on mobile */
    .mobile-break {
        display: block;
    }
    
    .container-fluid {
        padding-top: 0;
    }
    
    /* Mobile-friendly CTA button */
    .hero-txt .btn {
        display: block;
        width: 90%;
        margin: 20px auto 0;
        padding: 14px 0;
        font-size: 1.1rem;
        font-weight: 600;
        text-align: center;
    }
}

/* Hide mobile line breaks on desktop */
.mobile-break {
    display: none;
}

/* Hero Image Styling */
.hero-img img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: auto;
    max-height: 400px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-img img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ensure the button is clearly visible */
.hero-txt .btn {
    margin-top: 15px; /* Reduced from 25px to move button closer to text */
    display: inline-block;
}

/* Benefits Section Spacing */
#benefits {
    padding-top: 40px; /* Increased top padding for the benefits section */
    padding-bottom: 40px;
    background-color: #f9f9f9; /* Very light background to visually separate from hero */
    border-top: 1px solid #eaeaea;
    position: relative;
}

/* Subtle Hover Effects for Benefits Section */
.fbox-4 {
    transition: all 0.4s ease;
    height: 100%;
}

.fbox-4:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.fbox-4:hover .h5-md {
    color: #057DED;
    transition: all 0.3s ease;
}

/* Clean, modern layout without boxes */
.fbox-4-wrapper .fbox-4 {
    padding: 25px 15px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
}

/* Benefits Section - Flexbox Layout for Perfect Alignment */
.fbox-4-wrapper .fbox-4 {
    padding: 25px 15px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
}

/* Icon and Title Container - Flexbox Layout */
.fbox-4 {
    display: flex;
    flex-direction: column;
}

/* Header Container with Icon and Title */
.fbox-4 .icon-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

/* Mobile Benefits Centering */
@media (max-width: 767px) {
    .fbox-4 {
        text-align: center;
    }
    
    .fbox-4 .icon-title-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .fbox-4 .fbox-ico {
        margin-bottom: 12px;
    }
    
    .fbox-4 h5.h5-md {
        margin-bottom: 0;
    }
    
    .fbox-4 .fbox-txt {
        text-align: center;
        padding: 0 10px;
        border-top: none; /* Remove the top border to clean up appearance */
    }
    
    .fbox-4 .fbox-txt p {
        text-align: center !important; /* Force center alignment for description text */
        margin: 0 auto;
        max-width: 90%;
    }
}

/* Styling for fbox-4 icons */
.fbox-4 .fbox-ico {
    transition: all 0.4s ease;
    width: 54px;
    height: 54px;
    min-width: 54px; /* Prevent icon shrinking */
    border-radius: 50%;
    background-color: rgba(57, 72, 137, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.fbox-4:hover .fbox-ico {
    transform: translateY(-3px);
    background-color: rgba(57, 72, 137, 0.15);
}

.fbox-4 .fbox-ico i {
    transition: all 0.4s ease;
    font-size: 24px !important;
}

.fbox-4:hover .fbox-ico i {
    transform: scale(1.05);
}

/* Text Container Styling */
.fbox-4 .fbox-txt {
    padding-top: 5px;
    margin-top: 8px;
    border-top: 1px solid rgba(57, 72, 137, 0.1);
    padding-bottom: 15px;
}

.fbox-4 h5.h5-md {
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    line-height: 1.3;
}

/* Ensure consistent spacing on mobile */
@media (max-width: 767px) {
    .fbox-4 .icon-title-container {
        gap: 12px;
    }
}

.fbox-4:hover h5.h5-md {
    color: #394889;
}

/* Business Gains Cards */
.fbox-1 {
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 30px 20px 22px; /* Balanced padding with less at bottom */
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    height: 280px; /* Fixed height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align from top */
}

.fbox-1:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(57, 72, 137, 0.1);
}

.fbox-ico-center {
    margin-bottom: 20px; /* Reduced from 25px */
}

.fbox-1 h5 {
    color: #333;
    font-weight: 700;
    margin-bottom: 12px; /* Reduced from 15px */
}

.fbox-1 p {
    color: #666;
    margin-bottom: 0;
    padding: 0 5px; /* Add slight horizontal padding for text */
}

.fbox-1 .fbox-ico-center {
    transition: all 0.4s ease;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(57, 72, 137, 0.08);
    box-shadow: 0 4px 12px rgba(57, 72, 137, 0.12);
}

.fbox-1:hover .fbox-ico-center {
    transform: translateY(-5px); /* Subtle lift on hover, matching the client's preferred style */
    box-shadow: 0 8px 20px rgba(57, 72, 137, 0.2); /* Enhanced but not overpowering shadow */
    background-color: rgba(57, 72, 137, 0.15); /* Slightly darker on hover */
}

.fbox-1 .h5-sm {
    margin-bottom: 15px; /* More space below title */
    transition: color 0.3s ease;
}

.fbox-1:hover .h5-sm {
    color: #394889; /* Updated to exactly match the icon color */
}

/* Font Awesome Icon styling */
.fbox-1 .fbox-ico-center i {
    transition: all 0.4s ease;
}

.fbox-1:hover .fbox-ico-center i {
    transform: scale(1.05); /* Subtle scale effect on hover */
}

/* Pricing Table Improvements */
.pricing-row {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.pricing-row .col-md-4 {
    padding: 0;
    position: relative;
}

/* Vertical separators between pricing columns */
.pricing-row .col-md-4:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 5%;
    right: 0;
    height: 90%;
    width: 1px;
    background-color: #eeeeee;
    z-index: 2;
}

.pricing-table {
    height: 100%;
    transition: all 0.4s ease;
    padding: 30px 30px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    margin: 0;
}

/* Simplified hover effect only on shadow, not position or transform */
.pricing-table:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

/* Header styling */
.pricing-table-header {
    text-align: center;
    padding-bottom: 20px;
}

.pricing-table-header h5 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #394889;
}

.pricing-table-header h6 {
    margin-bottom: 5px;
    color: #777;
    font-weight: 600;
}

.pricing-table-header p {
    color: #666;
    padding: 0 15px;
}

/* Price styling */
.pricing-table-price {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.pricing-table-price h2 {
    font-size: 3rem;
    color: #394889;
    margin-bottom: 5px;
}

/* Feature list styling - table-like format */
.pricing-table .features {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 340px; /* Set minimum height for alignment */
}

.pricing-table .features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(238, 238, 238, 0.5);
}

.pricing-table .features li:last-child {
    border-bottom: none;
}

.pricing-table .features li p {
    margin: 0;
    color: #666;
}

/* Button positioning for alignment */
.pricing-table .btn-wrapper {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
    display: block;
    width: 100%;
}

.pricing-table .btn {
    display: inline-block;
    min-width: 160px;
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Style for the blue middle button */
.pricing-table .btn-blue {
    background-color: #394889;
    color: #fff !important;
    border-color: #394889;
}

.pricing-table .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(57, 72, 137, 0.2);
}

/* Add-On Table Styling */
.table-hover tbody tr {
    transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(57, 72, 137, 0.05);
    transform: translateX(5px);
}

/* Highlight styling */
.pricing-table.highlight {
    box-shadow: 0 5px 25px rgba(57, 72, 137, 0.15);
    border-top: 3px solid #394889;
    position: relative;
    z-index: 2;
    background-color: rgba(57, 72, 137, 0.02);
}

/* Ensure the middle highlighted package button is always visible */
.pricing-table.highlight .btn-wrapper {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.pricing-table.highlight:hover {
    box-shadow: 0 15px 35px rgba(57, 72, 137, 0.2);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pricing-row .col-md-4:not(:last-child)::after {
        display: none;
    }
    
    .pricing-table {
        margin-bottom: 30px;
        border: 1px solid #eee;
    }
    
    .pricing-table.highlight {
        border: 1px solid rgba(57, 72, 137, 0.3);
        border-top: 3px solid #394889;
    }
}

/* GUARANTEE SECTION REDESIGN - CLEAN MINIMAL VERSION */
#guarantee {
    background-color: #f9faff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin: 60px 0;
}

/* Clean Card Design */
.guarantee-box {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.guarantee-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(57, 72, 137, 0.1);
}

/* Title Styling */
.guarantee-title {
    margin-bottom: 1.5rem;
}

.guarantee-title h3 {
    font-size: 32px;
    font-weight: 700;
    color: #394889;
    display: inline-block;
    position: relative;
}

.guarantee-title h3 i {
    margin-left: 8px;
    font-size: 24px;
    color: #394889;
    opacity: 0.9;
    vertical-align: middle;
    transition: all 0.4s ease;
}

.guarantee-box:hover .guarantee-title h3 i {
    transform: scale(1.05);
    opacity: 1;
}

/* Text Styling */
.guarantee-text {
    max-width: 650px;
    margin: 0 auto;
}

.guarantee-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: left;
}

.guarantee-text p.commitment {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #394889;
}

.guarantee-text p.commitment i {
    font-size: 1.3rem;
    margin-right: 10px;
    color: #394889;
    transition: all 0.4s ease;
}

.guarantee-box:hover .guarantee-text p.commitment i {
    transform: translateY(-2px);
}

.guarantee-text p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    #guarantee {
        padding: 60px 0;
    }
    
    .guarantee-box {
        padding: 1.5rem;
    }
    
    .guarantee-title h3 {
        font-size: 28px;
    }
    
    .guarantee-text p {
        font-size: 1rem;
    }
}

/* WhatsApp CTA Button and Section Styling */
.cta-section {
    background-color: #394889;
    padding: 60px 0;
    margin: 50px 0;
}

.cta-txt {
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-txt h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.cta-txt p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #394889;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-cta-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
    color: #394889;
    background-color: #f8f9ff;
}

.btn-cta-whatsapp i {
    margin-right: 10px;
    font-size: 1.3rem;
    color: #25D366;
}

/* CTA Section Button Fix */
.cta-btn .btn {
    width: auto;
    display: inline-block;
    white-space: nowrap;
}

/* SERVICES NAVIGATION SECTION */
.services-nav-section {
    background-color: #f9faff;
    padding: 80px 0 100px;
    margin-top: 20px;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h3 {
    color: #394889;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.services-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Make full card clickable */
.service-card-link {
    flex: 0 0 calc(25% - 20px);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card-link.current {
    cursor: default;
}

.sbox-4 {
    height: 100%;
    background-color: #fff;
    padding: 40px 25px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-link:hover .sbox-4 {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(57, 72, 137, 0.1);
}

.sbox-4:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #394889;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card-link:hover .sbox-4:before {
    transform: scaleX(1);
}

.sbox-4.active {
    background-color: rgba(57, 72, 137, 0.05);
    border: 1px solid rgba(57, 72, 137, 0.2);
}

.sbox-4.active:before {
    transform: scaleX(1);
}

.sbox-4-ico {
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.service-card-link:hover .sbox-4-ico {
    transform: translateY(-5px);
}

.sbox-4 h5 {
    color: #394889;
    font-weight: 700;
    margin-bottom: 10px;
}

.sbox-4 p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
}

/* Make "Learn More" links aligned */
.link-wrapper {
    margin-top: auto;
    padding-top: 15px;
}

.btn-link {
    color: #394889;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #394889;
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card-link:hover .btn-link:after {
    transform: scaleX(1);
}

.btn-link.disabled {
    opacity: 0.5;
    cursor: default;
}

.btn-link.disabled:after {
    display: none;
}

@media (max-width: 991px) {
    .service-card-link {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 767px) {
    .service-card-link {
        flex: 0 0 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-nav-section {
        padding: 60px 0 80px;
    }
}

/* Business Gains Section Spacing Fix */
#business-gains.wide-60 {
    padding-top: 40px;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    #hero {
        padding-bottom: 60px;
    }
    
    #business-gains.wide-60 {
        padding-top: 30px;
    }
    
    .fbox-1 {
        margin-bottom: 30px;
    }
    
    .pricing-table {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    #hero {
        text-align: center;
        padding-top: 90px;
        padding-bottom: 30px;
    }
    
    .hero-txt {
        padding-left: 0 !important;
    }
    
    .cta-btn {
        text-align: center !important;
        margin-top: 20px;
    }
}
