/* IT Expert Landing Page Styles - Modern & UX Friendly */

:root {
    /* Colors matches Dashboard Modern */
    --it-lp-primary: #667eea;
    --it-lp-secondary: #764ba2;
    --it-lp-accent: #10b981;
    --it-lp-text: #1f2937;
    --it-lp-text-light: #6b7280;
    --it-lp-bg: #f5f7fa;
    --it-lp-white: #ffffff;
    
    /* Gradients */
    --it-lp-gradient: linear-gradient(135deg, var(--it-lp-primary) 0%, var(--it-lp-secondary) 100%);
    
    /* Spacing & Layout */
    --it-lp-container: 1200px;
    --it-lp-radius: 16px;
    --it-lp-radius-sm: 12px;
    
    /* Shadows */
    --it-lp-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --it-lp-shadow-hover: 0 15px 35px rgba(0,0,0,0.1);
    --it-lp-shadow-text: 0 2px 4px rgba(0,0,0,0.3);
}

/* Wrapper */
.it-lp-wrapper {
    width: 100%;
    max-width: var(--it-lp-container);
    margin: 25px auto 10px auto; /* Reduced bottom margin, 25px top margin */
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--it-lp-text);
}

.it-lp-section {
    margin-bottom: 80px;
}
.it-lp-section:last-child {
    margin-bottom: 0px; /* Remove margin from last element */
}

/* =========================================
   Card Box (Top/Bottom)
   ========================================= */
.it-lp-card-box {
    background: var(--it-lp-white);
    border-radius: var(--it-lp-radius);
    box-shadow: var(--it-lp-shadow);
    overflow: hidden;
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.it-lp-card-box:hover {
    box-shadow: var(--it-lp-shadow-hover);
}

/* Image Mode */
.it-lp-full-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex; /* Ensure container expands */
}

.it-lp-full-image img {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* Overlay Title on Image */
.it-lp-image-overlay-title {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: var(--it-lp-radius-sm);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--it-lp-secondary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
    border-left: 5px solid var(--it-lp-primary);
    transform: translateY(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.it-lp-card-box:hover .it-lp-image-overlay-title {
    transform: translateY(-5px);
}

/* Widgets Mode in Top/Bottom Card */
.it-lp-card-widgets {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    padding: 60px 40px;
    gap: 40px;
    background: linear-gradient(to bottom right, #ffffff, #fcfcfc);
}

.it-lp-card-widgets .it-lp-widget {
    flex: 1;
    text-align: center;
    padding: 0;
    position: relative;
}

/* Divider between items */
.it-lp-card-widgets .it-lp-widget:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e5e7eb;
}

/* =========================================
   Grid Section (Middle)
   ========================================= */
.it-lp-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Grid Widget Card */
.it-lp-grid-widget {
    background: var(--it-lp-white);
    border-radius: var(--it-lp-radius);
    box-shadow: var(--it-lp-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0; /* Remove padding to let children fill */
    overflow: hidden; /* Clip corners for header */
    border: 1px solid transparent; /* Prevent layout shift */
}

/* Custom Border for colored widgets */
.it-lp-grid-widget.it-lp-custom-color {
    border-color: color-mix(in srgb, var(--it-custom-color), transparent 80%);
}
.it-lp-grid-widget.it-lp-custom-color:hover {
    border-color: color-mix(in srgb, var(--it-custom-color), transparent 50%);
}

.it-lp-grid-widget:hover {
    transform: translateY(-8px);
    box-shadow: var(--it-lp-shadow-hover);
}

/* =========================================
   Universal Widget Styling - Split Layout
   ========================================= */

/* Header Area (Icon + Title) */
.it-lp-widget-header {
    background: #f1f5f9; /* Default darker grey/blue */
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* Icon Container - optimized for side-by-side */
.it-lp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    color: var(--it-lp-text);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

/* Titles */
.it-lp-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    color: var(--it-lp-text);
    line-height: 1.3;
}
.it-lp-title::after { display: none; } /* Remove underline */

/* Body Area (Description) */
.it-lp-widget-body {
    padding: 25px;
    background: #ffffff; /* Lighter than header */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Text */
.it-lp-text {
    font-size: 0.95rem;
    color: var(--it-lp-text-light);
    line-height: 1.6;
}

/* =========================================
   Custom Color Logic (Theming)
   ========================================= */
.it-lp-custom-color {
    --it-custom-color: var(--it-widget-color, #667eea);
}

/* Header Theming */
.it-lp-custom-color .it-lp-widget-header {
    /* Header darker: mix custom color with white (85% white = 15% color) */
    background: color-mix(in srgb, var(--it-custom-color), white 88%);
    border-bottom: 1px solid color-mix(in srgb, var(--it-custom-color), white 80%);
}

/* Icon Theming within Custom Color Header */
.it-lp-custom-color .it-lp-widget-header .it-lp-icon {
    background: var(--it-custom-color);
    color: #fff;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--it-custom-color), transparent 60%);
}

/* Body Theming */
.it-lp-custom-color .it-lp-widget-body {
    /* Body lighter: mix custom color with white (98% white) or just white */
    background: linear-gradient(to bottom, color-mix(in srgb, var(--it-custom-color), white 98%), #fff);
}

/* Hover Effects */
.it-lp-grid-widget:hover .it-lp-widget-header {
    /* Make header slightly more vibrant on hover */
     filter: brightness(0.98); 
}

/* Dashicon override adjustments */
.it-lp-icon span.dashicons, 
.it-lp-icon span[class*="dashicons"] {
    font-family: "dashicons", sans-serif;
    font-size: 24px; /* Smaller icon for header */
    width: 24px;
    height: 24px;
    line-height: 24px;
}


/* =========================================
   Responsive
   ========================================= */

/* Mini Card Titel - No Line Break */
.it-lp-mini-card h3 {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    display: block !important;
    max-width: 100% !important;
}

@media (max-width: 900px) {
    .it-lp-card-widgets {
        flex-direction: column;
        gap: 60px;
        padding: 40px 20px;
    }
    
    .it-lp-card-widgets .it-lp-widget:not(:last-child)::after {
        display: none; 
    }
    
    .it-lp-card-widgets .it-lp-widget {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 40px;
        width: 100%;
    }
    
    .it-lp-card-widgets .it-lp-widget:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .it-lp-image-overlay-title {
        font-size: 1.3rem;
        left: 20px;
        bottom: 20px;
        right: 20px;
        text-align: center;
        border-left: none;
        border-bottom: 4px solid var(--it-lp-primary);
    }
    
    /* Adjust grid columns */
    .it-lp-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Force spacing override */
#primary #main.it-lp-wrapper {
    margin-top: 25px !important;
}
/* Ensure header doesn't push it too far if it has margin-bottom */
.site-header {
    margin-bottom: 0 !important;
}

