/* ================= GLOBAL STYLES ================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Tajawal", 'Times New Roman', Times, serif;
    background-color: #ffffff;
    color: #111827;
    text-align: center;
}

.section-title-org{
    font-size: 40px;
    color: #0f213f;
    margin-top: 80px;
    font-weight: 600;
    text-align: center;
}

.section-separator-org {
    width: 90%;
    max-width: 1200px;
    margin: 10px auto;       /* slightly larger spacing */
    height: 3px;             /* thicker line */
    background: #0f213f;     /* stronger identity color */
    opacity: 1;              /* fully visible */
    border-radius: 4px;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Shared layout for main sections */
.about-section,
.vision-section,
.mission-section,
.stats-section,
.quotes-section,
.partners-section
{
    width: 90%;
    max-width: 1200px;
    margin: 10px auto;
}

/* ================= HEADER SECTION ================= */

.main-header {
    background-color: #0f213f;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.35s ease;
}

/* Hide header on scroll */
.header-hidden {
    transform: translateY(-100%);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 0 32px;
    
}

/* Left side: logos */
.club-logo{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Make both logos the same size */
.club-logo img{
    width: 120px;
    height: 50px;
    object-fit: contain;
    margin-left: auto;
}
.logo img {
    width: 120px;
    height: 50px;
    object-fit: contain;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0 auto;
}

.nav-links li a {
    color: #d8dde6;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
    padding: 10px 6px;
    display: inline-flex;
    align-items: center;
}

.nav-links li a:hover {
    color: #ffffff;
}

/* Hamburger menu (mobile) */
.menu-toggle {
    display: none;
    font-size: 22px;
    color: #ffffff;
    cursor: pointer;
}

/* ================= HERO SECTION ================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url("assets/hero.jpeg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    margin: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 40px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    line-height: 1.8;
}

/* ================= SHARED SECTION STYLES ================= */

.section-title {
    font-size: 32px;
    color: #0f213f;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.section-title-block{
    font-size: 32px;
    color: #0f213f;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: right;
}

.section-title-event{
    font-size: 40px;
    color: #0f213f;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}
/* ================= ABOUT SECTION ================= */

.about-section {
    text-align: center;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 8px 20px;
    font-size: 16px;
    cursor: pointer;
    color: #0f213f;
    transition: 0.3s;
}

.tab-btn.active {
    background-color: #0f213f;
    color: #fff;
    border-color: #0f213f;
}

/* Content Card */
.tab-content-container {
    display: flex;
    justify-content: center;
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
    line-height: 2;
    font-size: 17px;
    color: #333;
    transition: 0.3s ease;
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.tab-content.active {
    display: block;
}

.tab-content:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* ================= VISION SECTION ================= */

.vision-section {
    text-align: center;
}

.vision-card {
    background: #ffffff;
    padding: 35px;
    margin-top: 25px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    font-size: 18px;
    line-height: 2.1;
    color: #333;
    transition: 0.3s;
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.vision-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* ================= MISSION SECTION ================= */

.mission-section {
    text-align: center;
}

.mission-card {
    background: #ffffff;
    padding: 35px;
    margin-top: 25px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    font-size: 18px;
    line-height: 2.1;
    color: #333;
    transition: 0.3s ease;
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.mission-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* ================= SECTION ICONS ================= */

.section-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    opacity: 0.9;
    transform: translateY(0);
    transition: 0.3s ease;
}

.section-icon:hover {
    transform: translateY(-5px);
    opacity: 1;
}

/* ================= SECTION SEPARATORS ================= */

.section-separator {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;       /* slightly larger spacing */
    height: 3px;             /* thicker line */
    background: #0f213f;     /* stronger identity color */
    opacity: 1;              /* fully visible */
    border-radius: 4px;
    position: relative;
}

.section-separator-event{
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;       /* slightly larger spacing */
    height: 3px;             /* thicker line */
    background: #0f213f;     /* stronger identity color */
    opacity: 1;              /* fully visible */
    border-radius: 4px;
    position: relative;
}


/* ================= STATS SECTION ================= */

.stats-section {
    padding: 50px 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f213f, #1f4b57);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    color: #ffffff;
    text-align: center;
}

.stats-header {
    margin-bottom: 30px;
}

.stats-title {
    color: #ffffff;
    margin-bottom: 8px;
}

.stats-subtitle {
    font-size: 15px;
    color: #dbeafe;
    opacity: 0.9;
}

/* Cards grid */
.stats-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    align-items: stretch;
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

/* Single card */
.stat-card {
    background: #ffffff;
    color: #111827;
    border-radius: 18px;
    padding: 26px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: 0.25s ease;
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #0f213f;
}

.stat-label {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
}

/* ================= PEOPLE & QUOTES SECTION ================= */

.quotes-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.quote-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    width: 100%;
    max-width: 700px;
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.quote-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* The rectangular frameless image */
.quote-image img {
    width: 180px;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 2px solid #0f213f;
}

/* Text styling */
.quote-text {
    flex: 1;
}

.quote {
    font-size: 18px;
    line-height: 2;
    margin-bottom: 12px;
    color: #242424;
}

.quote-author {
    font-size: 16px;
    font-weight: 600;
    color: #0f213f;
    opacity: 0.85;
}


/* ================= PARTNERS SECTION ================= */

.partners-section{
    width: 90%;
    max-width: 1200px;
    margin: 10px auto;
    text-align: center;
}

.partners-marquee{
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    padding: 10px 0;
    direction: ltr; 
}

.partners-track{
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 36px;
    padding: 0 18px;

    /* important for phones */
    white-space: nowrap;
    will-change: transform;
    transform: translate3d(0,0,0);

    animation: none;
}

/* Each partner card */
.partner-item{
    margin: 0;
    width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.partner-item img{
    width: 190px;
    height: 150px;
    padding-bottom: 10px;
    object-fit: contain;
    display: block;
    border: none;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.10));
}

/* Name under image */
.partner-item figcaption{
    margin-top: 12px;     
    padding: 0 6px;      
    max-width: 190px;
    white-space: normal; 
    word-break: normal;
    overflow-wrap: break-word;
}

@keyframes partners-scroll{
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ================= FOOTER SECTION ================= */

.main-footer {
    width: 100%;
    margin-top: 80px;
    background: linear-gradient(135deg, #0f213f, #1f4b57);
    padding: 50px 20px;
    color: #ffffff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo img {
    width: 120px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.footer-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-socials img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: 0.3s ease;
}

.footer-socials img:hover {
    transform: translateY(-4px);
    opacity: 0.8;
}

.footer-copy {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 10px;
}



/* ================== MEDIA QUERIES ================== */

/* Tablets and medium screens (≤ 1024px) */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 20px;
    }

    .section-title {
        font-size: 28px;
    }
    .section-title-block{
        font-size: 28px;
    }

    .tab-content,
    .vision-card,
    .mission-card {
        font-size: 16px;
        padding: 24px;
    }

    .stats-section {
        padding: 40px 22px;
    }
}

/* Phones (iPhone / Samsung etc, ≤ 768px) */
@media (max-width: 768px) {

    .partner-item{ width: 145px; }
    .partner-item img{
        width: 120px;
        height: 120px;
    }
    .partner-item figcaption{
        font-size: 13px;
    }

    /* Header / Nav */
    .navbar {
        padding: 0 16px;
        min-height: 60px;
        direction: ltr;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: #0f213f;
        gap: 15px;
        padding: 20px 0;
        text-align: center;
        border-top: 1px solid #23324f;
        margin: 0;
        
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .club-logo img{
        width: 90px;
        height: 40px;
        margin-left: auto;

    }
    .logo img {
        width: 90px;
        height: 40px;
    }

    /* Hero */
    .hero {
        padding: 16px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Sections general */
    .about-section,
    .vision-section,
    .mission-section,
    .stats-section,
    .quotes-section,
    .partners-section
    {
        width: 92%;
        margin: 40px auto;
    }
    

    .section-title {
        font-size: 24px;
    }

    .section-title-block{
        font-size: 24px;
    }

    .tab-btn {
        padding: 6px 15px;
        font-size: 14px;
    }

    .tab-content {
        font-size: 15px;
        padding: 18px;
    }

    .vision-card,
    .mission-card {
        font-size: 16px;
        padding: 22px;
    }

    /* Stats */
    .stats-section {
        padding: 32px 16px;
        margin: 60px auto;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 13px;
    }

    /* Quotes */
    .quote-image img {
        width: 70%;
        max-width: 260px;
    }

    .quote {
        font-size: 16px;
    }

    .quote-author {
        font-size: 14px;
    }

    /* Footer */
    .footer-title {
        font-size: 20px;
    }

    .footer-socials img {
        width: 30px;
        height: 30px;
    }

     .media-center-grid {
        grid-template-columns: 1fr; /* stack 1 per row on ultra small screens if needed */
    }
}

/* <!-- Media Center Intro --> */

/* ================= MEDIA CENTER STYLES ================= */

.media-center-section {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto;
    text-align: center;
}

/* Wrapper for all events (3 per row grid) */
.media-center-wrapper {
    width: 100%;
    margin-top: 40px;
}

.media-center-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-content: center;
}

/* Modern professional event card */
.media-event-card {
    background: #ffffff;
    border: 2px solid #0f213f; /* required border color */
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.media-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

/* Ensure all images same width/height for consistency */
.media-event-img {
    width: 100%;
    height: 200px;  /* fixed height */
    object-fit: cover;
    display: block;
}

/* Card body layout */
.media-event-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    flex: 1;
}

/* Typography */
.media-event-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f213f;
    margin: 0;
}

.media-event-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    margin: 0;
    flex: 1;
}

/* "للمزيد" link */
.media-event-link {
    font-size: 14px;
    font-weight: 600;
    color: #0f213f;
    text-decoration: none;
    border: 1px solid #0f213f;
    padding: 6px 14px;
    border-radius: 8px;
    width: fit-content;
    transition: 0.3s;
}

.media-event-link:hover {
    background: #0f213f;
    color: #fff;
}


/* ================= PAGE LOADER OVERLAY ================= */

.page-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,33,63,0.65); /* dark club identity overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.page-loader-overlay img {
    width: 140px;
    height: 60px;
    object-fit: contain;
    animation: pulseLogo 0.9s infinite ease-in-out;
}
.page-loader-overlay-initial {
    background: #0f213f; /* non-transparent solid background */
}

/* Animations */
@keyframes pulseLogo {
    0% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(0.95); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================= SCROLL REVEAL ANIMATION ================= */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.reset {
    transition: none;
}




/* CSS (remade + added Level 0) */

/* RESET STYLES & HELPER CLASSES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  --level-0: #0f213f;
  --level-1: #0f213f;
  --level-2: #0f213f;
  --level-3: #0f213f;
  --level-4: #0f213f;
  --black: #000000;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ol {
  list-style: none;
}

.container-org {
  max-width: 1000px;
  padding: 0 10px;
  margin: 0 auto;
}

.rectangle {
  position: relative;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}


/* LEVEL-0 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-0 {
  width: 50%;
  margin: 0 auto 40px;
  background: var(--level-0);
}

/* connector down to Level 1 (20px) */
.level-0::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}


/* LEVEL-1 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-1 {
  width: 50%;
  margin: 0 auto 40px;
  background: var(--level-1);
}

/* connector up to Level 0 (20px) */
.level-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

/* connector down to Level 2 (20px) */
.level-1::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}


/* LEVEL-2 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-2-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.level-2-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--black);
}

.level-2-wrapper::after {
  display: none;
  content: "";
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: calc(100% + 20px);
  height: 2px;
  background: var(--black);
}

.level-2-wrapper li {
  position: relative;
}

.level-2-wrapper > li::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-2 {
  width: 70%;
  margin: 0 auto 40px;
  background: var(--level-2);
}

.level-2::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-2::after {
  display: none;
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-100%, -50%);
  width: 20px;
  height: 2px;
  background: var(--black);
}


/* LEVEL-3 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-3-wrapper-right{
position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 20px;
  width: 95%;
  margin: 0 auto; 
}

.level-3-wrapper-right::before {
  content: "";
  position: absolute;
  top: -20px;
  left: calc(17% - 9px);
  width: calc(67% + 13px);
  height: 2px;
  background: var(--black);
}

.level-3-wrapper-right > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-3-wrapper-left {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 10px;
  width: 110%;
  margin: 0 auto;
}

.level-3-wrapper-left::before {
  content: "";
  position: absolute;
  top: -20px;
  left: calc(12% - 2px);
  width: calc(75% + 9px);
  height: 2px;
  background: var(--black);
}

.level-3-wrapper-left > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-3 {
  margin-bottom: 20px;
  background: var(--level-3);
}


/* LEVEL-4 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-4-wrapper {
  position: relative;
  width: 75%;
  margin-left: 55px;
}

.level-4-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 2px;
  height: calc(50% + 20px);
  background: var(--black);
}

.level-4-wrapper li + li {
  margin-top: 20px;
}

.level-4 {
  font-weight: normal;
  background: var(--level-4);
}

.level-4::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-100%, -50%);
  width: 20px;
  height: 2px;
  background: var(--black);
}


/* MQ STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 1536px) {
  .rectangle {
    padding: 20px 10px;
  }

  .level-0,
  .level-1,
  .level-2 {
    width: 100%;
  }

  .level-0,
  .level-1 {
    margin-bottom: 20px;
  }


  .level-1::before,
  .level-1::after,
  .level-2-wrapper > li::before {
    display: none;
  }

  .level-2-wrapper,
  .level-2-wrapper::after,
  .level-2::after {
    display: block;
  }

  .level-2-wrapper {
    width: 95%;
    margin-left: 10%;
  }

  .level-2-wrapper::before {
    left: -20px;
    width: 2px;
    height: calc(100% + 40px);
  }

  .level-2-wrapper > li:not(:first-child) {
    margin-top: 50px;
  }

    /* LEVEL-3 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-3-wrapper-right{
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    width: 95%;
    margin: 0 auto; 
    }

    .level-3-wrapper-right::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(15% + 8px);
    width: calc(67% + 11px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-right > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3-wrapper-left {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 20px;
    width: 95%;
    margin: 0 auto;
    }

    .level-3-wrapper-left::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(12% - 4px);
    width: calc(76% + 7px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-left > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3 {
    margin-bottom: 20px;
    background: var(--level-3);
    }

        /* LEVEL-4 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-4-wrapper {
    position: relative;
    width: 75%;
    margin-left: 55px;
    }

    .level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 2px;
    height: calc(50% + 20px);
    background: var(--black);
    }

    .level-4-wrapper li + li {
    margin-top: 20px;
    }

    .level-4 {
    font-weight: normal;
    background: var(--level-4);
    }

    .level-4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
    }
}

@media screen and (max-width: 1280px) {
  .rectangle {
    padding: 20px 10px;
  }

  .level-0,
  .level-1,
  .level-2 {
    width: 100%;
  }

  .level-0,
  .level-1 {
    margin-bottom: 20px;
  }


  .level-1::before,
  .level-1::after,
  .level-2-wrapper > li::before {
    display: none;
  }

  .level-2-wrapper,
  .level-2-wrapper::after,
  .level-2::after {
    display: block;
  }

  .level-2-wrapper {
    width: 95%;
    margin-left: 10%;
  }

  .level-2-wrapper::before {
    left: -20px;
    width: 2px;
    height: calc(100% + 40px);
  }

  .level-2-wrapper > li:not(:first-child) {
    margin-top: 50px;
  }

    /* LEVEL-3 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-3-wrapper-right{
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    width: 95%;
    margin: 0 auto; 
    }

    .level-3-wrapper-right::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(15% + 8px);
    width: calc(67% + 11px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-right > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3-wrapper-left {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 20px;
    width: 95%;
    margin: 0 auto;
    }

    .level-3-wrapper-left::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(12% - 4px);
    width: calc(75% + 16px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-left > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3 {
    margin-bottom: 20px;
    background: var(--level-3);
    }

        /* LEVEL-4 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-4-wrapper {
    position: relative;
    width: 75%;
    margin-left: 55px;
    }

    .level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 2px;
    height: calc(50% + 20px);
    background: var(--black);
    }

    .level-4-wrapper li + li {
    margin-top: 20px;
    }

    .level-4 {
    font-weight: normal;
    background: var(--level-4);
    }

    .level-4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
    }
}

@media screen and (max-width: 1024px) {
  .rectangle {
    padding: 20px 10px;
  }

  .level-0,
  .level-1,
  .level-2 {
    width: 100%;
  }

  .level-0,
  .level-1 {
    margin-bottom: 20px;
  }


  .level-1::before,
  .level-1::after,
  .level-2-wrapper > li::before {
    display: none;
  }

  .level-2-wrapper,
  .level-2-wrapper::after,
  .level-2::after {
    display: block;
  }

  .level-2-wrapper {
    width: 95%;
    margin-left: 10%;
  }

  .level-2-wrapper::before {
    left: -20px;
    width: 2px;
    height: calc(100% + 40px);
  }

  .level-2-wrapper > li:not(:first-child) {
    margin-top: 50px;
  }

    /* LEVEL-3 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-3-wrapper-right{
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    width: 95%;
    margin: 0 auto; 
    }

    .level-3-wrapper-right::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(15% + 6px);
    width: calc(67% + 11px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-right > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3-wrapper-left {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 20px;
    width: 95%;
    margin: 0 auto;
    }

    .level-3-wrapper-left::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(12% - 3px);
    width: calc(75% + 15px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-left > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3 {
    margin-bottom: 20px;
    background: var(--level-3);
    }

        /* LEVEL-4 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-4-wrapper {
    position: relative;
    width: 75%;
    margin-left: 55px;
    }

    .level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 2px;
    height: calc(50% + 20px);
    background: var(--black);
    }

    .level-4-wrapper li + li {
    margin-top: 20px;
    }

    .level-4 {
    font-weight: normal;
    background: var(--level-4);
    }

    .level-4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
    }
}

@media screen and (max-width: 768px) {
  .rectangle {
    padding: 20px 10px;
  }

  .level-0,
  .level-1,
  .level-2 {
    width: 100%;
  }

  .level-0,
  .level-1 {
    margin-bottom: 20px;
  }


  .level-1::before,
  .level-1::after,
  .level-2-wrapper > li::before {
    display: none;
  }

  .level-2-wrapper,
  .level-2-wrapper::after,
  .level-2::after {
    display: block;
  }

  .level-2-wrapper {
    width: 95%;
    margin-left: 10%;
  }

  .level-2-wrapper::before {
    left: -20px;
    width: 2px;
    height: calc(100% + 40px);
  }

  .level-2-wrapper > li:not(:first-child) {
    margin-top: 50px;
  }

    /* LEVEL-3 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-3-wrapper-right{
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    width: 95%;
    margin: 0 auto; 
    }

    .level-3-wrapper-right::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(17% - 8px);
    width: calc(68% + 4px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-right > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3-wrapper-left {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 20px;
    width: 95%;
    margin: 0 auto;
    }

    .level-3-wrapper-left::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(12% - 5px);
    width: calc(76% + 10px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-left > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3 {
    margin-bottom: 20px;
    background: var(--level-3);
    }

        /* LEVEL-4 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-4-wrapper {
    position: relative;
    width: 75%;
    margin-left: 55px;
    }

    .level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 2px;
    height: calc(50% + 20px);
    background: var(--black);
    }

    .level-4-wrapper li + li {
    margin-top: 20px;
    }

    .level-4 {
    font-weight: normal;
    background: var(--level-4);
    }

    .level-4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
    }

  
}

@media screen and (max-width: 640px) {
  .rectangle {
    padding: 20px 10px;
  }

  .level-0,
  .level-1,
  .level-2 {
    width: 100%;
  }

  .level-0,
  .level-1 {
    margin-bottom: 20px;
  }


  .level-1::before,
  .level-1::after,
  .level-2-wrapper > li::before {
    display: none;
  }

  .level-2-wrapper,
  .level-2-wrapper::after,
  .level-2::after {
    display: block;
  }

  .level-2-wrapper {
    width: 95%;
    margin-left: 10%;
  }

  .level-2-wrapper::before {
    left: -20px;
    width: 2px;
    height: calc(100% + 40px);
  }

  .level-2-wrapper > li:not(:first-child) {
    margin-top: 50px;
  }

    /* LEVEL-3 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-3-wrapper-right{
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    width: 95%;
    margin: 0 auto; 
    }

    .level-3-wrapper-right::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(17% - 9px);
    width: calc(69% + 5px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-right > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3-wrapper-left {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
    }

    .level-3-wrapper-left::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(12% - 1px);
    width: calc(74% + 10px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-left > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3 {
    margin-bottom: 20px;
    background: var(--level-3);
    }

        /* LEVEL-4 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-4-wrapper {
    position: relative;
    width: 75%;
    margin-left: 55px;
    }

    .level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 2px;
    height: calc(50% + 20px);
    background: var(--black);
    }

    .level-4-wrapper li + li {
    margin-top: 20px;
    }

    .level-4 {
    font-weight: normal;
    background: var(--level-4);
    }

    .level-4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
    }
}

@media screen and (max-width: 430px) {
  .rectangle {
    padding: 20px 10px;
  }

  .level-0,
  .level-1,
  .level-2 {
    width: 100%;
  }

  .level-0,
  .level-1 {
    margin-bottom: 20px;
  }


  .level-1::before,
  .level-1::after,
  .level-2-wrapper > li::before {
    display: none;
  }

  .level-2-wrapper,
  .level-2-wrapper::after,
  .level-2::after {
    display: block;
  }

  .level-2-wrapper {
    width: 95%;
    margin-left: 10%;
  }

  .level-2-wrapper::before {
    left: -20px;
    width: 2px;
    height: calc(100% + 40px);
  }

  .level-2-wrapper > li:not(:first-child) {
    margin-top: 50px;
  }

    .level-3-wrapper-right{
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    width: 95%;
    margin: 0 auto; 
    }

    .level-3-wrapper-right::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(17% - 9px);
    width: calc(70% + 4px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-right > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3-wrapper-left {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
    }

    .level-3-wrapper-left::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(12% - 4px);
    width: calc(77% + 4px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-left > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3 {
    margin-bottom: 20px;
    background: var(--level-3);
    }

    .level-4-wrapper {
    position: relative;
    width: 75%;
    margin-left: 55px;
    }

    .level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 2px;
    height: calc(50% + 20px);
    background: var(--black);
    }

    .level-4-wrapper li + li {
    margin-top: 20px;
    }

    .level-4 {
    font-weight: normal;
    background: var(--level-4);
    }

    .level-4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
    }
}

@media screen and (max-width: 375px) {
  .rectangle {
    padding: 20px 10px;
  }

  .level-0,
  .level-1,
  .level-2 {
    width: 100%;
  }

  .level-0,
  .level-1 {
    margin-bottom: 20px;
  }


  .level-1::before,
  .level-1::after,
  .level-2-wrapper > li::before {
    display: none;
  }

  .level-2-wrapper,
  .level-2-wrapper::after,
  .level-2::after {
    display: block;
  }

  .level-2-wrapper {
    width: 95%;
    margin-left: 10%;
  }

  .level-2-wrapper::before {
    left: -20px;
    width: 2px;
    height: calc(100% + 40px);
  }

  .level-2-wrapper > li:not(:first-child) {
    margin-top: 50px;
  }

  

    /* LEVEL-3 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-3-wrapper-right{
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    width: 95%;
    margin: 0 auto; 
    }

    .level-3-wrapper-right::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(12% - 9px);
    width: calc(73% + 5px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-right > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3-wrapper-left {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
    }

    .level-3-wrapper-left::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(11% - 2px);
    width: calc(76% + 11px);
    height: 2px;
    background: var(--black);
    }

    .level-3-wrapper-left > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 2px;
    height: 20px;
    background: var(--black);
    }

    .level-3 {
    margin-bottom: 20px;
    background: var(--level-3);
    }

        /* LEVEL-4 STYLES
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .level-4-wrapper {
    position: relative;
    width: 75%;
    margin-left: 55px;
    }

    .level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 2px;
    height: calc(50% + 20px);
    background: var(--black);
    }

    .level-4-wrapper li + li {
    margin-top: 20px;
    }

    .level-4 {
    font-weight: normal;
    background: var(--level-4);
    }

    .level-4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
    }
}




/* Put this in your CSS file (auto-fit inside each rectangle) */
.member-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  gap:0.4em;
  padding:0.8em;
  text-align:center;
}

.member-role{
  font-size: clamp(10px, 1.6vw, 12px);
  font-weight: 300;
  line-height: 2;
}

.member-name{
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 300;
  line-height: 1;
}

.member-photo-link{
  display:block;
  width: min(80%, 110px);
}

.member-photo{
  width: 100%;
  height: auto;
  display:block;
  object-fit: cover;
  border: none;
  box-shadow: black;
}

.member-socials{
  display:flex;
  gap:0.3em;
  align-items:center;
  justify-content:center;
}

.social-link{
  display:inline-flex;
  width: clamp(16px, 2.2vw, 22px);
  height: clamp(16px, 2.2vw, 22px);
}

.social-icon{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}




