/* Governance Structure */
.governance-hierarchy {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hierarchy-level {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: left;
    border-left: 4px solid #800000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Alternating colors for hierarchy levels */
.hierarchy-level:nth-child(3n+1) {
    border-left-color: #800000;
}

.hierarchy-level:nth-child(3n+2) {
    border-left-color: #FFCC00;
}

.hierarchy-level:nth-child(3n) {
    border-left-color: #000000;
}

.hierarchy-level:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hierarchy-level:not(:last-child)::after {
    content: '↓';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #800000;
}

.hierarchy-level h3 {
    color: #800000;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    padding-left: 1rem;
}

.hierarchy-level p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    padding-left: 1rem;
}

/* Add this to your existing styles */
.about-section.governance-section {
    background-color: #f9f9f9;
    padding: 3rem 0;
    margin: 2rem 0;
}

/* Value Boxes */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-box {
    background: #800000;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.value-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.value-letter {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #FFCC00;
}

.value-name {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Value Popups */
.value-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.value-popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 90%;
    max-width: 500px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.value-popup.show .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.popup-header h3 {
    color: #800000;
    margin: 0;
    font-size: 1.5rem;
}

.popup-body {
    color: #555;
    line-height: 1.6;
}

.close-popup {
    cursor: pointer;
    font-size: 1.5rem;
    color: #800000;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #cc0000;
}

/* Membership Section */
.membership-section {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    border-left: 4px solid #800000;
}

.membership-content {
    max-width: 800px;
    margin: 0 auto;
}

.membership-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.membership-content p.requirements {
    color: #800000;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-accent {
    background: #800000;
    color: white;
    border: 2px solid #800000;
}

.btn-accent:hover {
    background: #600000;
    border-color: #600000;
}

.btn-outline {
    background: transparent;
    color: #800000;
    border: 2px solid #800000;
}

.btn-outline:hover {
    background: #800000;
    color: white;
}

/* Functions Section */
.functions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.function-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.function-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #800000, #FFCC00);
}

.function-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.function-item h3 {
    color: #800000;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.function-item p {
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Team Member Styles */
.team-member .member-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
}

.team-member .member-image img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: -20px;
}

/* Executive Team specific styles */
.executive-team {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1000px;
}

.executive-team .team-member {
    flex: 0 0 400px;
}

.executive-team .member-image {
    width: 400px;
    height: 600px !important;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.executive-director .member-image img {
    position: absolute;
    top: -50px !important;
    width: 100% !important;
    height: 120% !important;
    object-fit: cover;
    object-position: 50% 20% !important;
}

.deputy-director .member-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Board Members specific styles */
.board-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.board-members .team-member .member-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.board-members .team-member .member-image img {
    position: absolute;
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: top center;
}

.board-members .team-member:nth-child(1) .member-image img {
    /* Chairman */
    top: -30px;
}

.board-members .team-member:nth-child(2) .member-image img {
    /* Vice Chairman */
    top: -20px;
    height: 130%;
}

.board-members .team-member:nth-child(3) .member-image img {
    /* Treasurer */
    top: -40px;
    height: 140%;
}

.board-members .team-member:nth-child(4) .member-image img {
    /* Legal Advisor */
    top: -25px;
    height: 130%;
}

/* Management Team specific styles */
.management-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.management-team .team-member .member-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.management-team .team-member .member-image img {
    position: absolute;
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: top center;
}

.management-team .team-member:first-child .member-image img {
    height: 140% !important;
    top: -30px !important;
    transform: scale(1.1) !important;
}

/* Legal Framework */
.legal-framework {
    margin: 2rem 0;
}

.framework-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #800000;
}

.framework-card h3 {
    color: #800000;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.framework-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.framework-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.framework-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.4;
}

.framework-card li:before {
    content: "•";
    color: #FFCC00;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}
