/* SCOPED STYLES FOR solutions.html */
html, body {
    height: auto !important;
    overflow-y: visible !important;
    scroll-behavior: smooth;
}
#ai-solutions-section {
    /* -- Variables for easy theming -- */
    --bg-color: #030308;
    --card-bg: #0A0F1C;
    --card-border: #1E2336;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --accent-blue: #6366F1;
    --accent-purple: #A855F7;
    --tag-bg: #161B2C;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    padding: 80px 24px;
    position: relative;
    /*overflow: hidden;*/
}

/* Subtle background glow effect */
#ai-solutions-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

#ai-solutions-section .container {
    max-width: 95%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- HEADER AREA --- */
#ai-solutions-section .header-grid {
    
    margin-bottom: 60px;
    left: 50%;

}

@media (min-width: 768px) {
    #ai-solutions-section .header-grid {
        grid-template-columns: 1.5fr 1fr;
        align-items: end;
    }
}

#ai-solutions-section .badge {
    display: inline-block;
    background-color: #fff;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#ai-solutions-section h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#ai-solutions-section .header-desc {
    color: var(--text-muted);
    font-size: 3rem;
    line-height: 2;
    margin-bottom: 100px;
    text-align: center;
}

/* --- CARDS GRID --- */
#ai-solutions-section .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* --- CARD STYLING --- */
#ai-solutions-section .card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#ai-solutions-section .card:hover {
    transform: translateY(-5px);
    border-color: #2D354E;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

#ai-solutions-section .card text-center-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
}

#ai-solutions-section .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    /* Gradient Text for Title */
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#ai-solutions-section .card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: auto; /* Pushes content below to bottom */
    padding-bottom: 24px;
}

/* Tags inside card */
#ai-solutions-section .tags-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

#ai-solutions-section .pill {
    background-color: var(--tag-bg);
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #23293C;
    font-weight: 500;
}

/* Link/Button at bottom of card */
#ai-solutions-section .card-link {
    text-decoration: none;
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

#ai-solutions-section .card-link:hover {
    color: #818cf8;
    gap: 10px;
}

#ai-solutions-section .card-link::after {
    content: '→';
    font-size: 1.1em;
}

/* Special styling for the 'AI Upskilling' button variant */
#ai-solutions-section .btn-outline {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border: 1px solid var(--text-muted);
    border-radius: 999px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

#ai-solutions-section .btn-outline:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

#ai-solutions-section .btn-outline::after {
    content: none;
}
/* --- 1. Panel Base State (Hidden) --- */
/* collapse pannel */
/* Target ALL detail panels when they do NOT have the 'show' class */
#collapse-orchestration,
#collapse-vision,
#collapse-upskilling {
    /* Set the starting state for the transition */
    opacity: 0;
    visibility: hidden;
    /* Apply the transition for the visual fade/slide */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; 
    
    /* Ensure the panels don't take up space when hidden */
    max-height: 0; 
    padding: 0;

    margin: 0;
/*               overflow: hidden;*/
}
.collapse-section {
min-height: 0;
overflow: visible !important;
position: relative;
z-index: 5;
}
/* --- 2. Panel Visible State (Shown) --- */
/* Target the panels when they DO have the 'show' class */
#collapse-orchestration.show,
#collapse-vision.show,
#collapse-upskilling.show {
    /* Set the ending state for the transition */
    opacity: 1;
    visibility: visible;
    
    /* Restore padding/margin/height when visible */
    max-height: 2000px; /* Use a large number to ensure it fits content */
    padding: 20px; /* Restore your intended padding/margin here */
    margin-bottom: 20px;
    position: relative; 
    display: block;
}

/* --- 3. Container Height Transition (From previous fix) --- */
#collapse-container {
    transition: height 0.5s ease-in-out;
    /* overflow: hidden; 
    3. Ensure it behaves as a solid block in the document flow */
    display: block;
    position: relative;
    width: 100%;
}

.collapse-section{
    padding-bottom: 30px;
}

.collapse-close-btn {
    /* Layout and Base Style */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem; /* Determines the size of the circular button */
    margin: 20px;
    /* Violet Theme */
    border: 2px solid indigo;
    color: indigo;
    background-color: transparent;
    
    /* Shape and Cursor */
    border-radius: 25px; /* Makes it perfectly circular */
    cursor: pointer;
    font-size: 1.25rem; /* Size of the icon/text inside */
    line-height: 1;
    
    /* Animation Setup */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Subtle Initial Glow */
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
}

/* --- Animation on Hover --- */
.collapse-close-btn:hover {
    /* Flip colors for clear interaction feedback */
    background-color: rgb(49, 29, 63);
    color: var(--bg-dark); 
    
    /* Scale up slightly for a 'pop' effect */
    transform: scale(1.3); 
    
    /* Stronger, sustained glow */
    box-shadow: 0 0 20px indigo; 
}

/* Remove focus outline while retaining visual feedback */
.collapse-close-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.5); /* Custom focus ring */
}

/*   */