.block-item {
    padding-bottom: 0px;
    /* border-bottom: 1px solid #ddd; */
}

.section-heading {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.rich-text,
.tiptap-content {
    font-size: 16px;
    line-height: 1.6;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popup-image img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.popup-image img:hover {
    transform: scale(1.05);
}

/* Accordion Custom Styles */
.accordion-button {
    width: 100%;
    background-color: #007bff;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    padding: 15px;
    border: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: #0056b3;
    color: white;
}

.accordion-body {
    background-color: #f8f9fa;
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
}

/* Tabs Custom Styles */
.nav-tabs .nav-link {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px 5px 0 0;
}

.nav-tabs .nav-link.active {
    background-color: #0056b3;
    color: white;
}

.nav-tabs .nav-link:hover {
    background-color: #0056b3;
    color: white;
}

/* Ensure tab content is justified */
.tab-content {
    background-color: #f8f9fa;
    /* Light background */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;

}

/* Fix scrollbar issue */
.tab-pane {
    white-space: normal !important;
    overflow-x: hidden !important;
}

/* ==========================================================================
   Directory & Address Page - CMS-Proof Styles (Standard Tag Selectors)
   ========================================================================== */
.page-more-directory-address .container {
    max-width: 1140px;
}

/* Headings: 13.2, 13.3, 13.4 */
.page-more-directory-address .tiptap-content h2,
.page-more-directory-address .content-text h2,
.page-more-directory-address h2 {
    color: #400b0b !important;
    font-family: var(--font-heading, 'Cinzel', 'Cormorant Garamond', Georgia, serif) !important;
    font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    padding-bottom: 0.65rem !important;
    margin-top: 2.75rem !important;
    margin-bottom: 1.25rem !important;
    border-bottom: 2px solid #c5a059 !important;
    display: block !important;
}

.page-more-directory-address .tiptap-content h2:first-of-type,
.page-more-directory-address .content-text h2:first-of-type,
.page-more-directory-address h2:first-of-type {
    margin-top: 0.5rem !important;
}

/* Subheadings: 13.3.1, 13.3.2, 13.4.1 */
.page-more-directory-address .tiptap-content h3,
.page-more-directory-address .content-text h3,
.page-more-directory-address h3 {
    color: #540d0d !important;
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif) !important;
    font-size: clamp(1.18rem, 1.55vw, 1.42rem) !important;
    font-weight: 700 !important;
    margin-top: 2rem !important;
    margin-bottom: 0.75rem !important;
    padding: 0.4rem 0.85rem !important;
    background: #faf5ed !important;
    border-left: 4px solid #c5a059 !important;
    border-radius: 0 6px 6px 0 !important;
    display: block !important;
}

/* Tables on Directory Page */
.page-more-directory-address .tiptap-content table,
.page-more-directory-address .content-text table,
.page-more-directory-address table {
    width: 100% !important;
    margin: 0.75rem 0 2rem !important;
    border: 1px solid #e8dfd5 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(64, 11, 11, 0.05) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
}

.page-more-directory-address .tiptap-content table:hover,
.page-more-directory-address .content-text table:hover {
    box-shadow: 0 8px 24px rgba(64, 11, 11, 0.09) !important;
    border-color: #d8c4ad !important;
}

/* Table Header (THEAD TH and TH P) */
.page-more-directory-address .tiptap-content thead th,
.page-more-directory-address .content-text thead th,
.page-more-directory-address thead th,
.page-more-directory-address th {
    background: #400b0b !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.88rem !important;
    border-bottom: 3px solid #c5a059 !important;
    padding: 14px 18px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.page-more-directory-address .tiptap-content th p,
.page-more-directory-address .tiptap-content th span,
.page-more-directory-address .tiptap-content th strong,
.page-more-directory-address .content-text th p,
.page-more-directory-address .content-text th span,
.page-more-directory-address .content-text th strong,
.page-more-directory-address th p,
.page-more-directory-address th span,
.page-more-directory-address th strong {
    color: #ffffff !important;
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
}

.page-more-directory-address th:last-child {
    border-right: none !important;
}

/* Table Body Cells */
.page-more-directory-address .tiptap-content td,
.page-more-directory-address .content-text td,
.page-more-directory-address td {
    padding: 12px 18px !important;
    vertical-align: middle !important;
    font-size: 0.96rem !important;
    color: #362929 !important;
    border-bottom: 1px solid #f0e7dd !important;
    border-right: 1px solid #f0e7dd !important;
    border-top: none !important;
    border-left: none !important;
}

.page-more-directory-address td:last-child {
    border-right: none !important;
}

.page-more-directory-address tr:last-child td {
    border-bottom: none !important;
}

.page-more-directory-address .tiptap-content td p,
.page-more-directory-address .content-text td p,
.page-more-directory-address td p {
    margin-bottom: 0 !important;
    color: #362929 !important;
    font-size: inherit !important;
    line-height: 1.55 !important;
}

/* Striping */
.page-more-directory-address tbody tr:nth-child(even) {
    background-color: #faf6f0 !important;
}

.page-more-directory-address tbody tr:hover {
    background-color: #f5ece0 !important;
}

/* First Column in Tables (Label / Office) */
.page-more-directory-address tbody tr td:first-child strong,
.page-more-directory-address tbody tr td:first-child p strong {
    color: #400b0b !important;
    font-weight: 700 !important;
}

/* Tables without thead (e.g. Secretariat & Council details: Secretary / Members / Email) */
.page-more-directory-address table:not(:has(thead)) tbody tr td:first-child {
    background: #faf5ed !important;
    color: #540d0d !important;
    width: 32% !important;
    border-right: 2px solid #ede1d3 !important;
    font-weight: 600;
}

/* Links inside tables (e.g. Email links) */
.page-more-directory-address td a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    background: #f8f4ee !important;
    color: #540d0d !important;
    border: 1px solid #dfd0be !important;
    padding: 0.35rem 0.8rem !important;
    border-radius: 6px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin: 0.2rem 0.35rem 0.2rem 0 !important;
    transition: all 0.2s ease !important;
}

.page-more-directory-address td a:hover {
    background: #400b0b !important;
    color: #ffffff !important;
    border-color: #400b0b !important;
    box-shadow: 0 3px 10px rgba(64, 11, 11, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* Lists inside table cells */
.page-more-directory-address td ul,
.tiptap-content table td ul,
.content-text table td ul,
table td ul {
    list-style: disc !important;
    margin: 0.25rem 0 !important;
    padding: 0 0 0 1.25rem !important;
    border-left: none !important;
}

.page-more-directory-address td ul li,
.tiptap-content table td ul li,
.content-text table td ul li,
table td ul li {
    padding: 0.18rem 0 !important;
    margin: 0 !important;
    color: #333333 !important;
    font-size: 0.95rem !important;
    animation: none !important;
    background: transparent !important;
    display: list-item !important;
    transform: none !important;
}

.page-more-directory-address td ul li::before,
.tiptap-content table td ul li::before,
.content-text table td ul li::before,
table td ul li::before,
table td ol li::before {
    display: none !important;
    content: none !important;
}

.page-more-directory-address td ul li:hover,
.tiptap-content table td ul li:hover,
.content-text table td ul li:hover,
table td ul li:hover {
    background: transparent !important;
    transform: none !important;
}

@media (max-width: 767.98px) {

    .page-more-directory-address .tiptap-content h2,
    .page-more-directory-address .content-text h2,
    .page-more-directory-address h2 {
        font-size: 1.3rem !important;
    }

    .page-more-directory-address table:not(:has(thead)) tbody tr td:first-child {
        width: 38% !important;
        padding: 10px 12px !important;
        font-size: 0.88rem !important;
    }

    .page-more-directory-address td,
    .page-more-directory-address th {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }

    .page-more-directory-address td a {
        width: 100% !important;
        justify-content: flex-start !important;
        word-break: break-all !important;
    }
}