/**
 * Theme.css - WordPress-specific overrides and adjustments
 * This file contains WordPress-specific styles that won't be overwritten by designer updates
 * Version: 1.0.2
 */

/* Admin Bar Adjustments */
body.admin-bar .header__main.scrolled {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header__main.scrolled {
        top: 46px;
    }
}

body.admin-bar .burger-menu.active {
    top: calc(104px + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .burger-menu.active {
        top: calc(104px + 46px);
    }
}

/* WordPress Alignment Classes */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.alignnone {
    margin-bottom: 1.5em;
}

/* WordPress Image Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: #939DC9;
    margin-top: 0.5em;
}

/* WordPress Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1em;
    margin-bottom: 1.5em;
}

.gallery-item {
    margin: 0;
}

.gallery-caption {
    font-size: 13px;
    color: #939DC9;
    margin-top: 0.5em;
}

/* WordPress Blocks - Content Wrapper */
.content-area .wp-block-image,
.content-area .wp-block-gallery,
.content-area .wp-block-video {
    margin-bottom: 1.5em;
}

.content-area .wp-block-button__link {
    background-color: #132356;
    border-color: #132356;
    color: #FCFCFC;
}

/* Sticky Post Indicator */
.sticky {
    position: relative;
}

/* Post Navigation */
.post-navigation,
.posts-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #C5CEEB;
}

.post-navigation .nav-links,
.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a,
.posts-navigation a {
    color: #1E338D;
    text-decoration: none;
    font-weight: 600;
}

.post-navigation a:hover,
.posts-navigation a:hover {
    color: #939DC9;
}

/* Comments Section */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #C5CEEB;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #EFF1F4;
    border-radius: 20px;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #939DC9;
}

.comment-author {
    font-weight: 600;
    color: #132356;
}

.comment-content {
    margin-top: 10px;
}

.reply {
    margin-top: 10px;
}

.reply a {
    font-size: 14px;
    color: #1E338D;
    text-decoration: none;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #EFF1F4;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #132356;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Menu Fallback */
.menu-fallback {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Ensure WordPress admin bar doesn't interfere with fixed header */
html {
    margin-top: 0 !important;
}

/* Mobile Menu Z-index with Admin Bar */
@media screen and (max-width: 1024px) {
    body.admin-bar.menu-open .header__main {
        top: 32px !important;
    }

    @media screen and (max-width: 782px) {
        body.admin-bar.menu-open .header__main {
            top: 46px !important;
        }
    }
}

.wp-block-buttons {
    margin-top: 24px;
}

.single-page {
    margin-top: -50px;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(19, 35, 86, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay__content {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
}

.search-overlay__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #FCFCFC;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    z-index: 10000;
}

.search-overlay__close:hover {
    color: #939DC9;
}

.search-overlay__form {
    width: 100%;
}

.search-overlay .search-form {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.search-overlay .search-field {
    flex: 1;
    padding: 16px 20px;
    font-size: 18px;
    color: #132356;
    background-color: #FCFCFC;
    border: 2px solid #C5CEEB;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-overlay .search-field:focus {
    border-color: #1E338D;
}

.search-overlay .search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background-color: #1E338D;
    color: #FCFCFC;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-overlay .search-submit:hover {
    background-color: #132356;
}

.search-overlay .search-submit .btn__icon {
    filter: brightness(0) invert(1);
}

/* Prevent body scroll when search overlay is open */
body.search-open {
    overflow: hidden;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .search-overlay__content {
        padding: 20px;
    }

    .search-overlay .search-form {
        flex-direction: column;
        gap: 12px;
    }

    .search-overlay .search-submit {
        width: 100%;
    }
}

input.search-field {
    font-size: 20px;
    margin-top: 30px;
}

body.search-results .posts-list article {
    margin-bottom: 40px;
}

body.search-results .posts-list article header h2.h3 {
    font-size: 20px;
}

body.search-results .posts-list article .entry-summary p {
    margin-top: 16px;
}

body.archive article {
    margin-bottom: 40px;
}

article .entry-meta {
    color: #939DC9;
    font-size: 16px;
}

article .entry-content p {
    margin-bottom: 10px;
}

article h1 {
    margin-top: 10px;
    margin-bottom: 20px;
}

body.search-results .posts-list article footer .primary-btn,
body.archive .posts-list article footer .primary-btn,
.site-main section.error-404 .widget-area .widget .primary-btn {
    margin-top: 14px;
    display: inline-block;
    font-weight: normal;
}

.site-main section.error-404 .widget-area .widget {
    margin-bottom: 30px;
}

/* Two-column layout for category-associations-news */
.post-item--two-columns {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.post-item__left-column {
    flex: 0 0 12%;
    max-width: 12%;
    min-width: 80px;
}

.post-item__right-column {
    flex: 1;
    min-width: 0;
}

.post-date {
    color: #939DC9;
    font-size: 16px;
    line-height: 1.4;
    position: sticky;
    top: 20px;
}

.post-date time {
    display: block;
}

.post-flag {
    margin-top: 12px;
    text-align: left;
}

.flag-icon {
    width: 32px;
    height: 24px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

/* Category filter styling */
.category-filter {
    margin-top: 20px;
    margin-bottom: 10px;
}

.subcategory-filter-form {
    display: inline-block;
}

.subcategory-select {
    margin-left: 10px;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background-color: #ffffff;
    color: #132356;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

.subcategory-select:hover {
    border-color: #1E338D;
}

.subcategory-select:focus {
    outline: none;
    border-color: #1E338D;
    box-shadow: 0 0 0 3px rgba(30, 51, 141, 0.1);
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .post-flag {
        margin-top: 0;
        margin-left: 8px;
        text-align: left;
        display: inline-block;
        vertical-align: top;
    }
}

@media screen and (max-width: 760px) {
    .subcategory-select {
        min-width: 150px;
        font-size: 13px;
        padding: 6px 10px;
        padding-right: 28px;
        background-size: 14px;
    }
}

@media screen and (max-width: 1024px) {
    .post-item--two-columns {
        flex-direction: column;
        gap: 16px;
    }

    .post-item__left-column {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .post-date {
        position: static;
    }
}

.footer .nav-list__item--title strong {
    font-weight: 600;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.site-main article .post-thumbnail img {
    max-width: 100px;
    height: auto;
}

article strong {
    font-weight: 600;
    font-style: normal;
}

article .content-area a {
    text-decoration: underline;
}

article .content-area p {
    line-height: 34px;
    margin-bottom: 20px;
}

/* WordPress Block List Styles */
.content-area ol,
.entry-content ol {
    list-style-type: decimal !important;
    list-style-position: outside;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
    padding-left: 0;
}

.content-area ul,
.entry-content ul {
    list-style-type: disc !important;
    list-style-position: outside;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
    padding-left: 0;
}

.content-area ol,
.entry-content ol {
    list-style-type: decimal !important;
    list-style-position: outside;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
    padding-left: 0;
}

.content-area ul,
.entry-content ul {
    list-style-type: disc !important;
    list-style-position: outside;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
    padding-left: 0;
}

.content-area ol li,
.entry-content ol li,
.content-area ul li,
.entry-content ul li {
    margin-bottom: 0.5em;
    line-height: 1.6;
    padding-left: 0.5em;
    position: static;
}

h2, h3 {
    margin-bottom: 30px;
}

@media screen and (max-width: 1280px) {
    h2, .h2 {
        font-size: 32px;
    }
}

.nav-list li.menu-item-language {
    display: none;
}

.tribe-events .tribe-events-l-container,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
    padding-top: 0;
}

/* Associations Table Styles */
.associations-table-wrapper {
    margin-bottom: 40px;
}

.associations-error {
    text-align: center;
    padding: 40px 20px;
    color: #d32f2f;
    font-size: 16px;
}

.associations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #FCFCFC;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(19, 35, 86, 0.1);
}

.associations-table thead {
    background-color: #132356;
    color: #FCFCFC;
}

.associations-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 2px solid #1E338D;
}

.associations-table th:first-child {
    width: 80px;
    text-align: center;
}

.associations-table tbody tr {
    border-bottom: 1px solid #C5CEEB;
    transition: background-color 0.2s ease;
}

.associations-table tbody tr.association-row[data-href] {
    cursor: pointer;
}

.associations-table tbody tr:hover {
    background-color: #EFF1F4;
}

.associations-table tbody tr:last-child {
    border-bottom: none;
}

.associations-table td {
    padding: 16px 20px;
    font-size: 16px;
    color: #132356;
    vertical-align: middle;
}

.associations-table td:first-child {
    text-align: center;
}

.association-flag {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.association-name {
    font-weight: 600;
    color: #132356;
}

.association-country {
    color: #1E338D;
}

.association-code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #939DC9;
}

.association-total {
    font-weight: 600;
    color: #132356;
    text-align: right;
}

/* Responsive Table Styles */
@media screen and (max-width: 768px) {
    .associations-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .associations-table {
        min-width: 600px;
    }

    .associations-table th,
    .associations-table td {
        padding: 12px 16px;
        font-size: 14px;
    }

    .association-flag {
        width: 32px;
        height: 24px;
    }

    .association-code {
        font-size: 12px;
    }
}

/* Association Detail Page Styles */
.association-name {
    font-size: 28px;
    font-weight: 600;
    color: #132356;
    margin-top: 10px;
    margin-bottom: 30px;
}

.association-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #C5CEEB;
}

.association-code-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.association-code-status .label {
    font-size: 14px;
    color: #939DC9;
    font-weight: 500;
}

.association-code-status .value {
    font-size: 18px;
    color: #132356;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background-color: #4CAF50;
    color: #FCFCFC;
}

.association-section {
    margin-bottom: 40px;
}

.association-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #132356;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #C5CEEB;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EFF1F4;
}

.contact-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-label {
    font-size: 14px;
    color: #939DC9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 16px;
    color: #132356;
}

.contact-value a {
    color: #1E338D;
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

.info-list {
    margin: 0;
    padding: 0;
}

.info-list dt {
    font-size: 14px;
    color: #939DC9;
    font-weight: 500;
    margin-top: 16px;
    margin-bottom: 5px;
}

.info-list dt:first-child {
    margin-top: 0;
}

.info-list dd {
    font-size: 16px;
    color: #132356;
    margin-left: 0;
    margin-bottom: 0;
}

.info-list dd a {
    color: #1E338D;
    text-decoration: none;
}

.info-list dd a:hover {
    text-decoration: underline;
}

.qualifications-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

.qualifications-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FCFCFC;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(19, 35, 86, 0.1);
}

.qualifications-table thead {
    background-color: #132356;
    color: #FCFCFC;
}

.qualifications-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #1E338D;
}

.qualifications-table tbody tr {
    border-bottom: 1px solid #C5CEEB;
    transition: background-color 0.2s ease;
}

.qualifications-table tbody tr:hover {
    background-color: #EFF1F4;
}

.qualifications-table tbody tr:last-child {
    border-bottom: none;
}

.qualifications-table td {
    padding: 16px 20px;
    font-size: 16px;
    color: #132356;
    vertical-align: top;
}

.qualifications-table td:first-child {
    font-weight: 600;
    color: #1E338D;
}

.qualifications-table td:nth-child(3) {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #939DC9;
}

.association-back-link {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #C5CEEB;
}

.back-link {
    display: inline-block;
    color: #1E338D;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #132356;
    text-decoration: underline;
}

/* Responsive Styles for Association Detail */
@media screen and (max-width: 768px) {
    .association-name {
        font-size: 24px;
    }

    .association-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-title {
        font-size: 20px;
    }

    .qualifications-table-wrapper {
        margin-left: -20px;
        margin-right: -20px;
    }

    .qualifications-table {
        min-width: 600px;
    }

    .qualifications-table th,
    .qualifications-table td {
        padding: 12px 16px;
        font-size: 14px;
    }
}

.post-content .entry-header h2.entry-title {
    margin-bottom: 10px;
}

/* Bootstrap-like Grid System for Association Page */
.container.mt-4 {
    margin-top: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .col-md-4,
    .col-md-4.col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }

    .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-md-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-md-8,
    .col-md-8.col-lg-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

@media (min-width: 576px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile grid adjustments */
@media (max-width: 767px) {
    .member-page .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .member-page .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Force all text content to wrap properly */
    .member-page * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .member-page .card,
    .member-page .profile-card,
    .member-page .card-contact {
        width: 100%;
        min-width: 0;
    }

    /* Ensure all text elements can wrap */
    .member-page h1,
    .member-page h2,
    .member-page h3,
    .member-page p,
    .member-page span,
    .member-page a,
    .member-page div {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.mt-4 {
    margin-top: 0;
}

/* Page Head Styles (matching isiadb.ski) */
.page-head {
    display: block;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 32px;
    padding: 2px 0 16px;
    border-bottom: 1px solid rgba(30, 51, 141, 0.08);
}

.page-head .h1,
.page-head h1 {
    margin: 9px 20px 2px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #132356;
}

.page-head__heading {
    display: block;
    align-items: center;
    flex-wrap: wrap;
}

.page-head__hint {
    align-self: flex-end;
    display: block;
    margin: 9px auto 2px 0;
    font-size: 16px;
    font-weight: 600;
    color: #132356;
}

/* Profile Card Styles */
.profile-card {
    border-radius: 12px;
    box-shadow: 0 2px 18px 0 rgba(86, 102, 242, 0.05), 0 2px 9px 0 rgba(86, 102, 242, 0.05);
    border: 0;
}

.profile-card .card-body {
    padding: 24px;
}

.profile-card__top {
    display: flex;
    justify-content: center;
    margin: 0 0 32px;
}

@media (min-width: 992px) {
    .profile-card__top {
        padding-top: 15px;
    }
}

.profile-card .avatar {
    padding: 5px;
    box-shadow: inset 0 0 0 5px #fff;
    /* border-radius: 50%; */
    /* border: 1px solid rgba(30, 51, 141, 0.15); */
    /* background-color: rgba(7, 22, 124, 0.12); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card .avatar__img {
    max-width: 100%;
    height: auto;
}

.profile-card .avatar__initials {
    font-size: 2rem;
    font-weight: 600;
    color: #132356;
    text-align: center;
    line-height: 1;
}

.profile-card__heading {
    margin: 0 0 28px;
    font-size: 1.125rem;
    line-height: 1.33;
    font-weight: 700;
    color: #1e338d;
    text-align: center;
}

@media (min-width: 992px) {
    .profile-card__heading {
        font-size: 1.5rem;
    }
}

.profile-card__info {
    margin: 0 0 24px;
    text-align: center;
    font-weight: 600;
}

@media (min-width: 992px) {
    .profile-card__info {
        margin: 0 0 48px;
    }
}

.profile-card__label {
    margin-bottom: 4px;
    color: rgba(75, 75, 90, 0.7);
    display: block;
    font-size: 16px;
}

.profile-card__text {
    display: block;
    font-size: 16px;
    color: #132356;
}

.profile-card__country {
    margin: 0 0 32px;
}

@media (min-width: 992px) {
    .profile-card__country {
        margin: 0 0 60px;
    }
}

.profile-card__flag {
    display: block;
    margin: 0 auto;
    width: 55px;
    height: 29px;
    border-radius: 2px;
}

@media (min-width: 992px) {
    .profile-card__flag {
        height: 39px;
    }
}

/* Deactivate Control (Active Badge) */
.deactivate-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid rgba(7, 22, 124, 0.08);
    background-color: #fafafc;
    transition: color 0.3s, background-color 0.3s;
    font-size: 0.875rem;
}

.deactivate-control.active {
    background-color: rgba(0, 204, 146, 0.1);
    color: #00cc92;
}

.deactivate-control__label {
    line-height: 22px;
    margin: 1px 0;
    font-weight: 600;
}

@media (min-width: 768px) {
    .deactivate-control {
        padding: 17px 25px 17px 30px;
    }
}

/* Contact Card Styles */
.card-contact .card-body {
    padding: 24px;
}

.card-contact .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e338d;
    margin-bottom: 0;
}

.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 27px;
}

.contact-list li.contact-list__item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-list__item:last-child {
    margin-bottom: 0;
}

.contact-list__icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.static-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(30, 51, 141, 0.15);
    font-size: 20px;
    line-height: 1;
}

.static-icon .feather {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-list__content-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.contact-list__left-column {
    flex: 1 1;
    min-width: 0;
}

.contact-list__label {
    display: block;
    font-size: 0.875rem;
    color: rgba(75, 75, 90, 0.6);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-list__text {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    word-break: break-word;
    color: #132356;
    line-height: 1.5;
}

.contact-list__text a {
    color: currentColor;
    text-decoration: none;
}

.contact-list__text a:hover {
    text-decoration: underline;
}

/* Info Group Styles */
.info-group {
    margin-bottom: 24px;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-group__label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(75, 75, 90, 0.7);
}

.info-group__text {
    display: block;
    white-space: pre-wrap;
    font-size: 0.875rem;
    color: #132356;
    line-height: 120%;
}

.info-group__text a {
    color: #1e338d;
    text-decoration: none;
}

.info-group__text a:hover {
    text-decoration: underline;
}

/* Card Styles */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 18px 0 rgba(86, 102, 242, 0.05), 0 2px 9px 0 rgba(86, 102, 242, 0.05);
    border: 0;
    background-color: #fff;
}

.card .card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e338d;
    margin-bottom: 0;
}

/* Table Qualification Styles */
.table-qualification {
    width: 100%;
    border-collapse: collapse;
}

.table-qualification tbody td,
.table-qualification thead th {
    padding: 20px 20px 20px 0;
    vertical-align: top;
}

.table-qualification tbody td:last-child,
.table-qualification thead th:last-child {
    padding-right: 0;
}

@media (min-width: 992px) {
    .table-qualification tbody td,
    .table-qualification thead th {
        padding-right: 30px;
    }
}

.table-qualification thead th {
    padding-bottom: 5px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #132356;
    border-bottom: 1px solid rgba(30, 51, 141, 0.1);
    text-align: left;
}

.table-qualification tbody td {
    font-size: 16px;
    color: #132356;
    vertical-align: middle;
    border-bottom: 1px solid rgba(30, 51, 141, 0.1);
}

.table-qualification tbody + tbody {
    border-top-width: 1px;
    border-top-color: rgba(30, 51, 141, 0.1);
}

.table-qualification tbody tr:hover {
    background-color: initial;
}

.table-qualification tbody:hover {
    background-color: rgba(30, 51, 141, 0.05);
}

.table-qualification .discipline-icon {
    margin: -9px 0 0 5px;
}

.table-qualification .semibold {
    font-weight: 600;
    color: #1e338d;
}

.table-qualification tbody td[rowspan] {
    vertical-align: top;
}

/* Discipline Icon */
.discipline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(30, 51, 141, 0.12);
    border: 1px solid rgba(30, 51, 141, 0.15);
    box-shadow: inset 0 0 0 2px #fff;
    border-radius: 50%;
}

.discipline-icon .discipline {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.discipline-text {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1e338d;
    text-align: center;
    line-height: 42px;
}

/* Level Icon */
.level-icon-holder {
    display: flex;
    align-items: center;
}

.level-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.level-icon.CARD {
    background-color: #4b4b5a;
}

.level-icon.STAMP {
    background-color: #fc4e4e;
}

.level-icon.BLUE {
    background-color: #5666f2;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .page-head__hint {
        font-size: 14px;
    }

    .profile-card__heading {
        font-size: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-qualification {
        min-width: 600px;
    }

    /* Mobile responsiveness fixes for member page */
    .member-page .card {
        overflow: hidden;
    }

    .member-page .card .card-body {
        padding: 16px;
    }

    .member-page .profile-card .card-body {
        padding: 16px;
    }

    .member-page .card-contact .card-body {
        padding: 16px;
    }

    /* Ensure text wraps properly in member page */
    .member-page .profile-card__heading,
    .member-page .profile-card__text,
    .member-page .profile-card__label,
    .member-page .contact-list__text,
    .member-page .contact-list__label,
    .member-page .info-group__text,
    .member-page .info-group__label {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Ensure email and links wrap in member page */
    .member-page .contact-list__text a,
    .member-page .info-group__text a {
        word-break: break-all;
        overflow-wrap: break-word;
    }

    /* Adjust avatar size for mobile */
    .member-page .profile-card .avatar {
        width: 50%;
        height: auto;
    }

    .member-page .profile-card .avatar__initials {
        font-size: 1.5rem;
    }

    /* Adjust flag size */
    .member-page .profile-card__flag {
        width: 45px;
        height: auto;
    }

    /* Adjust contact list layout */
    .member-page .contact-list__icon {
        margin-right: 12px;
    }

    .member-page .contact-list__content-group {
        min-width: 0;
    }

    /* Ensure deactivate control is responsive */
    .member-page .deactivate-control {
        padding: 12px 15px;
        font-size: 0.8125rem;
    }

    /* Adjust info groups */
    .member-page .info-group {
        margin-bottom: 16px;
    }

    .member-page .info-group__label {
        font-size: 0.875rem;
    }

    .member-page .info-group__text {
        font-size: 0.875rem;
    }
}

.member-page .entry-header {
    margin-bottom: 30px;
}

/* FAQ Category Page Styles */
.faq-category-page .faq__list {
    width: 100%;
}

.faq-category-page .faq__title {
    justify-content: space-between;
}

.faq-category-page .faq__question {
    flex: 1;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-textarea {
    width: 90%;
    font-size: 18px;
}

.wpcf7-form .wpcf7-submit {
    display: flex;
    align-items: center;
    border-radius: 40px;
    border: 1px solid;
    font-size: 18px;
    line-height: 1;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 17px 23px;
    background-color: #132356;
    border-color: #132356;
    color: #FCFCFC;
  }

.wpcf7-form .wpcf7-submit:hover {
    background-color: #1E338D;
    border-color: #1E338D;
}

.wpcf7-form .wpcf7-submit:disabled {
    background-color: #939DC9;
    border-color: #939DC9;
    color: #FCFCFC;
    cursor: not-allowed;
}

.avia_textblock em {
    display: block;
    margin-bottom: 10px;
}

/* Timeline Layout Styles */
.timeline {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.timeline:last-child {
    border-bottom: none;
}

/* Column 1: Date and Image (10-15% width) */
.tl_col_1 {
    flex: 0 0 12%;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tl_date {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.tl_image img {
    max-width: 150px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Column 2: Title, Location and Button */
.tl_col_2 {
    flex: 1;
    min-width: 0;
}

.tl_title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #1a1a1a;
}

.tl_location {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.tl_text {
    margin-top: 15px;
    display: inline-block;
}

.tl_text .primary-btn {
    display: inline-block;
    width: auto;
}

/* Responsive Layout */
@media screen and (max-width: 768px) {
    .timeline {
        flex-direction: column;
        gap: 20px;
    }

    .tl_col_1 {
        flex: 0 0 auto;
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .tl_col_1 .tl_image img {
        max-width: 80px;
    }

    .tl_col_2 {
        width: 100%;
    }

    .tl_text .primary-btn {
        width: 100%;
        text-align: center;
    }
}