/* ================================================
   WGANJ GLOBAL CSS
   ================================================
   Sections:
   1. Events Card Layout (WA Gadget)
   2. Utility Classes
   3. Navigation
   4. Board Cards — Directors Page
   5. Resources Card
   6. Responsive
   ================================================ */


/* ================================================
   1. EVENTS CARD LAYOUT — WA Gadget (All Event Pages)
   ================================================ */

.WaGadgetUpcomingEvents {
    margin-bottom: 40px !important;
}

.WaGadgetUpcomingEvents .gadgetStyleTitle h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937; /* Charcoal */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4169E1; /* Royal Blue */
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: stretch;
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul li {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 130px;
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul li:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #4169E1;
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul li .title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul li .title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul li .title a:hover {
    color: #4169E1;
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul li .date {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul li .date:before {
    content: "📅";
    font-size: 16px;
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul li .location {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul li .location:before {
    content: "📍";
    font-size: 16px;
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul li .register-btn {
    display: block;
    background: #4169E1;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background 0.2s ease;
    margin-top: auto;
}

.WaGadgetUpcomingEvents .gadgetStyleBody ul li .register-btn:hover {
    background: #2952CC;
}


/* ================================================
   2. UTILITY CLASSES
   ================================================ */

/* Hide empty sections */
.wganj-hidden-section {
    display: none !important;
}

/* Rounded gadget wrapper */
.rounded_gadget_shape {
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
}


/* ================================================
   3. NAVIGATION
   ================================================ */

/* Disable clicks on top-level menu items that have submenus */
.menuInner ul.firstLevel > li.dir > div.item > a {
    pointer-events: none !important;
    cursor: default !important;
}

/* Keep standalone top-level items clickable */
.menuInner ul.firstLevel > li:not(.dir) > div.item > a {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Active nav item highlighting */
.firstLevel li.nav-active > .item > a {
    font-weight: bold;
    color: #4169E1 !important;
}


/* ================================================
   4. BOARD CARDS — Directors Page
   ================================================ */

.board_card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.board_card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: #4169E1;
    transition: all 0.3s ease;
}

.board_card-banner {
    background: #4169E1;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
}

.board_card-body {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.board_card-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e8eef8;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.board_card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.board_card-avatar-initials {
    width: 100%;
    height: 100%;
    background: #4169E1;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
}

.board_card-name {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
}

.board_card-role {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #4169E1;
    margin-bottom: 8px;
}

.board_card-duties {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
    min-height: calc(1.5em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board_card-btn {
    margin-top: auto;
    background: none;
    border: 1px solid #4169E1;
    color: #4169E1;
    border-radius: 20px;
    padding: 6px 18px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.board_card-btn:hover {
    background: #eef2fd;
}

/* Board card modal overlay */
.board-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.board-modal-overlay.open {
    display: flex;
}

.board-modal {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 28px 24px;
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.board-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
}

.board-modal-close:hover {
    color: #1f2937;
}

.board-modal-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e8eef8;
    margin-bottom: 12px;
}

.board-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.board-modal-avatar-initials {
    width: 100%;
    height: 100%;
    background: #4169E1;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
}

.board-modal-name {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
}

.board-modal-role {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #4169E1;
    margin-bottom: 4px;
}

.board-modal-duties {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.board-modal-bio {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #1f2937;
    line-height: 1.7;
}


/* ================================================
   5. RESOURCES CARD
   ================================================ */

.wganj-resources-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #4169E1;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.wganj-resources-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.wganj-resources-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.wganj-resources-content {
    flex: 1;
}

.wganj-resources-title {
    font-family: Georgia, serif;
    font-size: 20px;
    color: #1e40af;
    margin-bottom: 8px;
    font-weight: 600;
}

.wganj-resources-description {
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #1e40af;
    line-height: 1.6;
    margin-bottom: 14px;
}

.wganj-resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wganj-resources-list li::before {
    content: "•";
    color: #1e40af;
    font-weight: 700;
    margin-right: 8px;
}

.wganj-resources-list a {
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #1e40af;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(30, 64, 175, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.wganj-resources-list a:hover {
    color: #1e40af;
    border-bottom-color: #1e40af;
}


/* ================================================
   6. RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
    .WaGadgetUpcomingEvents .gadgetStyleBody ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Collapse submenus in mobile nav by default */
    .menuInner ul.secondLevel {
        display: none !important;
    }

    .menuInner li.open > div > ul.secondLevel,
    .menuInner li.active > div > ul.secondLevel {
        display: block !important;
    }
}

@media (max-width: 640px) {
    .WaGadgetUpcomingEvents .gadgetStyleBody ul {
        grid-template-columns: 1fr;
    }

    .WaGadgetUpcomingEvents .gadgetStyleTitle h4 {
        font-size: 20px;
    }

    .WaGadgetUpcomingEvents .gadgetStyleBody ul li {
        padding: 16px;
    }

    .WaLayoutContainer.cards-even-row-height,
    .cards-even-row-height {
        grid-template-columns: 1fr !important;
    }

    .wganj-resources-card {
        flex-direction: column;
        padding: 20px;
    }
}