/* Scoped container for the Association section v2 */
.ioa-association-2025-v2 {
    /* Design System Variables */
    --color-title-1: #2E3A61;
    --color-title-2: #0AA7FF;
    --color-highlight: #0563C1;
    --color-surface: #ffffff;
    --color-background: #E2E8F0;
    --color-text-primary: #111827;
    --color-text-secondary: #374151;
    --color-text-on-dark: #ffffff;

    /* Shadows */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing Scale */
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3.5rem;
    --space-4xl: 5rem;

    /* Border Radius */
    --radius-full: 9999px;

    /* Base Typography */
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-secondary);
    font-size: 16px;
    
    /* Ensure height calculation works for flex columns */
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

/* Scoped Reset */
.ioa-association-2025-v2 *,
.ioa-association-2025-v2 *::before,
.ioa-association-2025-v2 *::after {
    box-sizing: border-box;
}

/* --- Support for Superscript and Subscript --- */
.ioa-association-2025-v2 sup,
.ioa-association-2025-v2 sub {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.ioa-association-2025-v2 sup {
    top: -0.5em;
}

.ioa-association-2025-v2 sub {
    bottom: -0.25em;
}

/* =========================================
   TELEPORT SLOTS (Gold Standard Feature)
   ========================================= */
.ioa-teleport-slot {
    min-height: 0;
    transition: all 0.3s ease;
    margin-bottom: 0;
    width: 100%;
}

.ioa-teleport-slot.has-content {
    margin-bottom: 2rem;
    animation: ioa-fade-in 0.5s ease;
}

/* Editor Visuals - Visible only in Elementor Editor */
.is-editor-mode .ioa-teleport-slot {
    min-height: 40px;
    border: 1px dashed rgba(10, 167, 255, 0.3); /* Using Brand Blue */
    background: rgba(10, 167, 255, 0.05);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.is-editor-mode .ioa-teleport-slot::before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--color-title-2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@keyframes ioa-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Layout (Normal Mode) --- */
.ioa-association-2025-v2:not(.ioa-compact-mode) .ioa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
}

/* --- Typography --- */
.ioa-association-2025-v2 .ioa-header {
    margin-bottom: var(--space-lg);
}

.ioa-association-2025-v2 .ioa-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--color-title-1);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

.ioa-association-2025-v2 .ioa-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.ioa-association-2025-v2:not(.ioa-compact-mode) .ioa-description {
    margin-left: auto;
    margin-right: auto;
}

.ioa-association-2025-v2 .ioa-description p {
    margin-bottom: 1em;
}
.ioa-association-2025-v2 .ioa-description p:last-child {
    margin-bottom: 0;
}

.ioa-association-2025-v2 .ioa-description .highlight {
    color: var(--color-highlight);
    font-weight: 600;
}

.ioa-association-2025-v2 .ioa-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.ioa-association-2025-v2:not(.ioa-compact-mode) .ioa-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.ioa-association-2025-v2 .ioa-subtitle p {
    margin-bottom: 1em;
}
.ioa-association-2025-v2 .ioa-subtitle p:last-child {
    margin-bottom: 0;
}

.ioa-association-2025-v2 .ioa-subtitle .highlight-accent {
    color: var(--color-title-2);
    font-weight: 500;
}

/* --- Buttons (Base Styles) --- */
.ioa-association-2025-v2 .ioa-buttons-wrapper {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-3xl);
    width: 100%;
}

/* Default alignment for Normal Mode */
.ioa-association-2025-v2:not(.ioa-compact-mode) .ioa-buttons-wrapper {
    justify-content: center;
}

.ioa-association-2025-v2 .ioa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; 
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.ioa-association-2025-v2 .ioa-btn-primary {
    background: var(--color-title-1);
    color: var(--color-text-on-dark);
}

.ioa-association-2025-v2 .ioa-btn-secondary {
    background: var(--color-title-2);
    color: var(--color-text-on-dark);
}

.ioa-association-2025-v2 .ioa-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.ioa-association-2025-v2 .ioa-btn-primary:hover {
    background: #1e293b;
}

.ioa-association-2025-v2 .ioa-btn-secondary:hover {
    background: #0086d9;
}

.ioa-association-2025-v2 .ioa-btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.ioa-association-2025-v2 .ioa-btn i,
.ioa-association-2025-v2 .ioa-btn svg {
    fill: currentColor;
    width: 100%;
    height: 100%;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .ioa-association-2025-v2:not(.ioa-compact-mode) .ioa-container {
        padding: var(--space-3xl) var(--space-lg);
    }
}

/* =========================================
   COMPACT / PILLAR MODE
   ========================================= */

.ioa-association-2025-v2.ioa-compact-mode {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--color-background);
    border-radius: 0;
    box-shadow: none; 
    border: none;
}

.ioa-association-2025-v2.ioa-compact-mode .ioa-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    padding: 40px !important; 
    max-width: 100%;
}

.ioa-association-2025-v2.ioa-compact-mode .ioa-header {
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}

.ioa-association-2025-v2.ioa-compact-mode .ioa-title {
    margin-bottom: 0;
    margin-top: 0;
}

.ioa-association-2025-v2.ioa-compact-mode .ioa-content-wrapper {
    flex-grow: 1; 
}

.ioa-association-2025-v2.ioa-compact-mode .ioa-buttons-wrapper {
    margin-top: auto; /* Push to bottom */
    width: 100%;
    align-self: center;
}