/* Hide original header elements */
.hero-section, .ultra-minimal-header {
    display: none !important;
}

/* Board page styles */
.board-page {
    background-color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container.board-container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.board-section {
    margin-bottom: 25px;
}

.section-title {
    color: #1a365d;
    border-bottom: 2px solid #2c5282;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.board-section .row {
    margin-top: 10px;
}

.leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.leader-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    padding-bottom: 1.5rem;
}

.leader-card.highlight {
    border: 2px solid #1a365d;
    box-shadow: 0 8px 32px rgba(26, 54, 93, 0.15);
}

.leader-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.10);
    position: relative;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leader-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a365d;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.10);
    letter-spacing: 1px;
}

.leader-info {
    text-align: center;
    padding: 0 1.5rem;
    width: 100%;
}

.leader-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1a365d;
}

.leader-designation {
    font-size: 1rem;
    color: #2c5282;
    margin-bottom: 0.5rem;
}

.leader-qualification, .leader-appointment {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.25rem;
}

.view-bio-btn {
    background: #1a365d;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    font-size: 0.95rem;
    margin: 0.5rem 0 0.5rem 0;
    cursor: pointer;
    transition: background 0.2s;
    outline: none;
}

.view-bio-btn:hover, .view-bio-btn:focus {
    background: #2c5282;
}

.leader-bio {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
    margin-bottom: 0.5rem;
    text-align: left;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0 1rem;
}

.leader-bio.bio-visible {
    max-height: 400px;
    opacity: 1;
    padding: 1rem;
    margin-bottom: 1rem;
}

.leader-contacts {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.contact-link {
    color: #1a365d;
    background: #f5f5f5;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
}

.contact-link:hover, .contact-link:focus {
    background: #1a365d;
    color: #fff;
    transform: translateY(-2px);
}

.contact-link.linkedin { color: #0077b5; }
.contact-link.twitter { color: #1da1f2; }
.contact-link.facebook { color: #4267B2; }
.contact-link.instagram { color: #c13584; }
.contact-link.linkedin:hover { background: #0077b5; color: #fff; }
.contact-link.twitter:hover { background: #1da1f2; color: #fff; }
.contact-link.facebook:hover { background: #4267B2; color: #fff; }
.contact-link.instagram:hover { background: #c13584; color: #fff; }

@media (max-width: 767px) {
    .leader-grid { grid-template-columns: 1fr; }
    .leader-card { padding-bottom: 1rem; }
    .leader-photo { margin-top: 1rem; }
}

.leader-qualification-detail {
    margin-top: 1rem;
    font-size: 0.98rem;
    color: #1a365d;
    background: #e6f3ff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

/* Board Page Modern Refresh */
.board-page {
    background: linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
}

.container.board-container {
    padding-top: 1.6rem;
    padding-bottom: 2.6rem;
}

.board-section {
    background: #ffffff;
    border: 1px solid #e5ebf2;
    border-radius: 16px;
    padding: 1.1rem 1.2rem 1.3rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.section-title {
    color: #0f172a;
    border-bottom: 1px solid #dbe4ee;
    margin-bottom: 1.1rem;
    padding-bottom: 0.7rem;
    font-size: clamp(1.15rem, 2.1vw, 1.45rem);
    font-weight: 700;
}

.leader-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.2rem;
    margin-bottom: 0;
}

.leader-card {
    border: 1px solid #e5ebf2;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 1rem 0 1.15rem;
}

.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.highlight-cmd {
    border: none !important;
    outline: none !important;
    box-shadow: 0 12px 30px rgba(15, 94, 66, 0.16) !important;
}

.leader-photo {
    width: 108px;
    height: 108px;
    margin-top: 0.3rem;
    margin-bottom: 0.8rem;
    border: 3px solid #edf3f8;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.leader-info {
    padding: 0 1rem;
}

.leader-name {
    color: #0f172a;
    font-size: 1.12rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.leader-designation {
    color: #334155;
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}

.leader-appointment {
    color: #475569;
    font-size: 0.86rem;
    margin-bottom: 0.45rem;
}

.view-bio-btn {
    background: #0f5e42;
    border: 1px solid #0f5e42;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.42rem 0.95rem;
}

.view-bio-btn:hover,
.view-bio-btn:focus {
    background: #0b4d36;
    border-color: #0b4d36;
}

.leader-bio {
    margin-top: 0.35rem;
    border: 1px solid #e5ebf2;
    background: #f8fbfd;
    border-radius: 10px;
    padding: 0 0.85rem;
}

.leader-bio.bio-visible {
    padding: 0.85rem;
}

.leader-bio p {
    color: #334155;
    line-height: 1.65;
    margin-bottom: 0.6rem;
}

.leader-qualification-detail {
    color: #0f172a;
    background: #ecf6f1;
    border: 1px solid #d3e8de;
    border-radius: 10px;
    font-size: 0.9rem;
}

.leader-contacts {
    gap: 0.42rem;
    margin-top: 0.45rem;
}

.contact-link {
    width: 34px;
    height: 34px;
    background: #f1f5f9;
    border: 1px solid #d8e2ea;
    color: #0f5e42;
}

.contact-link:hover,
.contact-link:focus {
    background: #0f5e42;
    border-color: #0f5e42;
    color: #ffffff;
}

/* CMD section as single featured card */
.board-section-cmd .leader-grid {
    grid-template-columns: minmax(320px, 720px);
    justify-content: center;
}

.board-section-cmd .leader-card {
    border-radius: 18px;
    border: none;
    outline: none;
    box-shadow: 0 16px 34px rgba(15, 94, 66, 0.18);
    padding-bottom: 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%);
}

.board-section-cmd .leader-photo {
    width: 124px;
    height: 124px;
    border-color: #d5ebdf;
}

.board-section-cmd .leader-name {
    font-size: 1.3rem;
}

.board-section-cmd .leader-designation {
    font-size: 0.98rem;
    font-weight: 600;
}

/* Directors section redesign */
.board-section-directors .leader-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.35rem;
}

.board-section-directors .leader-card {
    align-items: stretch;
    padding: 1rem 1rem 1.1rem;
}

.board-section-directors .leader-photo {
    margin-left: auto;
    margin-right: auto;
}

.board-section-directors .leader-info {
    text-align: left;
    padding: 0.2rem 0.2rem 0;
}

.board-section-directors .leader-name {
    font-size: 1.14rem;
    margin-bottom: 0.3rem;
}

.board-section-directors .leader-designation {
    font-size: 0.93rem;
    margin-bottom: 0.5rem;
}

.board-section-directors .view-bio-btn {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.board-section-directors .leader-bio {
    margin-top: 0.55rem;
    border: 1px solid #dfe7ef;
    border-radius: 12px;
    background: #f8fbfd;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}

.board-section-directors .leader-bio.bio-visible {
    max-height: min(62vh, 520px);
    overflow: auto;
    opacity: 1;
    padding: 1rem 1rem 0.85rem;
}

.board-section-directors .leader-bio p {
    font-size: 0.93rem;
    line-height: 1.72;
    color: #334155;
}

.board-section-directors .leader-bio::-webkit-scrollbar {
    width: 8px;
}

.board-section-directors .leader-bio::-webkit-scrollbar-thumb {
    background: #c9d6e2;
    border-radius: 999px;
}

@media (max-width: 767px) {
    .board-section-cmd .leader-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .board-section-directors .leader-grid {
        grid-template-columns: 1fr;
    }

    .board-section {
        padding: 0.95rem;
        border-radius: 12px;
    }

    .leader-grid {
        gap: 0.95rem;
    }

    .leader-card {
        padding-bottom: 0.9rem;
    }
}

/* Social icon fallback styles (moved from inline template CSS) */
.social-links {
    display: flex !important;
    gap: 12px !important;
    margin-top: 10px !important;
}

.social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background-color: #f5f5f5 !important;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
}

.social-link.linkedin {
    color: #0077b5 !important;
    border-color: #0077b5 !important;
}

.social-link.twitter {
    color: #1da1f2 !important;
    border-color: #1da1f2 !important;
}

.social-link.facebook {
    color: #4267B2 !important;
    border-color: #4267B2 !important;
}

.social-link.instagram {
    color: #c13584 !important;
    border-color: #c13584 !important;
}

.social-link:hover {
    transform: translateY(-3px) !important;
}

.social-link.linkedin:hover {
    background-color: #0077b5 !important;
    color: #ffffff !important;
}

.social-link.twitter:hover {
    background-color: #1da1f2 !important;
    color: #ffffff !important;
}

.social-link.facebook:hover {
    background-color: #4267B2 !important;
    color: #ffffff !important;
}

.social-link.instagram:hover {
    background-color: #c13584 !important;
    color: #ffffff !important;
}
