/* =========================================
   IOA BYLAWS S-TIER STYLES
   ========================================= */

.ioa-bylaws-stier-wrapper {
    position: relative;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    /* Default variables matching original design */
    --color-primary: #0563C1;
    --color-secondary: #2E3A61;
}

.ioa-bylaws-stier-wrapper *,
.ioa-bylaws-stier-wrapper *::before,
.ioa-bylaws-stier-wrapper *::after {
    box-sizing: border-box;
}

/* =========================================
   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 added via PHP) */
.is-editor-mode .ioa-teleport-slot {
    min-height: 40px;
    border: 1px dashed rgba(5, 99, 193, 0.3); /* Using IOA Blue */
    background: rgba(5, 99, 193, 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-primary);
    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); }
}

/* =========================================
   ORIGINAL DESIGN IMPLEMENTATION
   ========================================= */

.ioa-bylaws-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    background-color: #f8fafc; /* Default from original */
}

/* Main Title Typography */
.ioa-bylaws-title {
    font-family: 'Poppins', sans-serif;
    color: #2E3A61;
    font-weight: 600;
    font-size: 42px;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    position: relative;
    margin-top: 0;
}

.ioa-bylaws-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #0563C1;
}

/* Revision Info & Badge */
.ioa-revision-info {
    font-size: 13px;
    font-weight: 500;
    color: #2E3A61;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(46, 58, 97, 0.08);
    border-radius: 0.5rem;
    display: inline-block;
}

/* Main bylaws content card */
.ioa-bylaws-content-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2.5rem;
}

/* Article Title Typography (Global H2 in context) */
.ioa-article-section h2 {
    font-family: 'Poppins', sans-serif;
    color: #111827;
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.ioa-article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: inherit;
}
.ioa-article-body p:last-child {
    margin-bottom: 0;
}

/* Each Article Section - Using Grid for alignment */
.ioa-article-section {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.ioa-article-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ioa-article-number {
    grid-column: 1 / 2;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 16px;
    color: #0563C1;
    font-weight: 500;
}

.ioa-article-details {
    grid-column: 2 / 3;
}

/* Bullet list styling (within WYSIWYG) */
.ioa-bullets {
    margin: 1rem 0 1.5rem 1rem;
    padding-left: 0;
    list-style: none;
}
.ioa-bullets li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    font-size: 15px;
    line-height: 1.8;
}
.ioa-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0563C1;
}

/* PDF link styling */
.ioa-pdf-link-wrapper {
    display: block;
}

.ioa-pdf-link {
    display: inline-flex;
    align-items: center;
    color: #2E3A61;
    background-color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 1rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}
.ioa-pdf-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    border-color: #0563C1;
    color: #0563C1;
}
.ioa-pdf-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    fill: currentColor;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ioa-bylaws-title { font-size: 36px; }
    .ioa-article-section {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .ioa-article-number {
        margin-bottom: 0.5rem;
    }
}