/* Bylaws Page Styling */
body.page-id-1034 .bylaws-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1em;
    line-height: 1.6;
    color: #2c3e50;
}

body.page-id-1034 .bylaws-text .page-header {
    text-align: center;
}

body.page-id-1034 .bylaws-text .page-header h1 {
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

body.page-id-1034 .bylaws-text .page-header .subtitle {
    font-size: 1.5em;
    font-weight: 600;
}

body.page-id-1034 .bylaws-text .effective-date {
    font-size: 1em;
    font-style: italic;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

body.page-id-1034 .bylaws-text .bylaw {
    margin-bottom: 35px;
    page-break-inside: avoid;
}

body.page-id-1034 .bylaws-text .bylaw-title {
    font-size: 1.125em;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.45em;
    letter-spacing: -0.0375em;
    position: relative;
    display: block;
}

body.page-id-1034 .bylaws-text .bylaw-title::after,
body.page-id-1034 .bylaws-text .bylaw-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;    
}

body.page-id-1034 .bylaws-text .bylaw-title::after {
    width: 100%;
    background-color: var(--acs-blue);
}

body.page-id-1034 .bylaws-text .bylaw-title::before {
    width: 20%;
    background-color: var(--acs-yellow);
    z-index: 1;
}

body.page-id-1034 .bylaws-text .section {
    margin-bottom: 25px;
    margin-left: 0;
}

body.page-id-1034 .bylaws-text .section-title {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 1em;
}

body.page-id-1034 .bylaws-text .subsection {
    margin-bottom: 15px;
    margin-left: 30px;
}

body.page-id-1034 .bylaws-text .subsection-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9375em;
}

body.page-id-1034 .bylaws-text .sub-subsection {
    margin-bottom: 12px;
    margin-left: 60px;
}

body.page-id-1034 .bylaws-text .sub-sub-subsection {
    margin-bottom: 10px;
    margin-left: 90px;
}

body.page-id-1034 .bylaws-text p {
    margin-bottom: 12px;
    text-align: justify;
    hyphens: auto;
    font-size: 1em;
}

body.page-id-1034 .bylaws-text .indent-1 { margin-left: 30px; }
body.page-id-1034 .bylaws-text .indent-2 { margin-left: 60px; }
body.page-id-1034 .bylaws-text .indent-3 { margin-left: 90px; }
body.page-id-1034 .bylaws-text .indent-4 { margin-left: 120px; }

body.page-id-1034 .bylaws-text .emphasis {
    text-transform: uppercase;
    font-weight: bold;
}

body.page-id-1034 .bylaws-text .page-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #bdc3c7;
    font-size: 0.875em;
    color: #7f8c8d;
}

/* Print Styles */
@media print {
    body.page-id-1034 .bylaws-text {
        max-width: none;
        margin: 0;
        padding: 20px;
    }
    
    body.page-id-1034 .bylaws-text .bylaw {
        page-break-inside: avoid;
    }

    /* Hide unnecessary elements when printing */
    body.page-id-1034 .featured-image,
    body.page-id-1034 .bylaws-documents,
    body.page-id-1034 .sidebar {
        display: none;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    body.page-id-1034 .bylaws-text {
        padding: 20px 15px;
    }
    
    body.page-id-1034 .bylaws-text .page-header h1 {
        font-size: 1.5em;
    }
    
    body.page-id-1034 .bylaws-text .subsection,
    body.page-id-1034 .bylaws-text .sub-subsection,
    body.page-id-1034 .bylaws-text .sub-sub-subsection {
        margin-left: 20px;
    }
    
    body.page-id-1034 .bylaws-text .indent-1 { margin-left: 20px; }
    body.page-id-1034 .bylaws-text .indent-2 { margin-left: 40px; }
    body.page-id-1034 .bylaws-text .indent-3 { margin-left: 60px; }
    body.page-id-1034 .bylaws-text .indent-4 { margin-left: 80px; }
}