/**
 * Scientific Advisory Board - Frontend Styles
 * Uses theme default fonts (no external font imports)
 */

/* Wrapper */
.sab-wrapper {
    font-family: inherit;
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    color: #ffffff;
    background-color: transparent;
}

/* Sections */
.sab-section {
    margin-bottom: 120px;
    position: relative;
}

.sab-section:last-child {
    margin-bottom: 0;
}

/* Headers */
.sab-header {
    margin-bottom: 30px;
    border-left: 4px solid #ffffff;
    padding-left: 20px;
}

.sab-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-transform: capitalize;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.sab-description {
    font-size: 19px;
    line-height: 1.3;
    color: #ffffff;
    font-weight: 400;
    margin: 0;
}

/* Grid Layout */
.sab-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 600px) {
    .sab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .sab-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .sab-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Card Design */
.sab-card {
    position: relative;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: block;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    filter: brightness(0.9);
    transition: filter 0.6s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sab-card:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

/* Bottom Line Animation */
.sab-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    z-index: 3;
    transition: width 0.4s ease-out;
}

.sab-card:hover::before {
    width: 100%;
}

/* Gradient Styles - Bottom Line */
.sab-grad-1::before {
    background: linear-gradient(90deg, #104a4b, #20999a);
}

.sab-grad-2::before {
    background: linear-gradient(90deg, #102a4a, #20559a);
}

.sab-grad-3::before {
    background: linear-gradient(90deg, #31104a, #66209a);
}

.sab-grad-4::before {
    background: linear-gradient(90deg, #4a3410, #9a6620);
}

.sab-grad-5::before {
    background: linear-gradient(90deg, #294a10, #559a20);
}

.sab-grad-6::before {
    background: linear-gradient(90deg, #104a4f, #209aa4);
}

.sab-grad-7::before {
    background: linear-gradient(90deg, #47104a, #8f209a);
}

.sab-grad-8::before {
    background: linear-gradient(90deg, #262c3e, #47587d);
}

.sab-grad-9::before {
    background: linear-gradient(90deg, #4a1010, #9a2020);
}

.sab-grad-10::before {
    background: linear-gradient(90deg, #3d4a10, #7d9a20);
}

/* Overlay with gradient */
.sab-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px 12px;
    box-sizing: border-box;
    transition: padding-bottom 0.4s ease;
}

/* Gradient Styles - Overlay */
.sab-grad-1 .sab-overlay {
    background: linear-gradient(to top, rgba(16, 74, 75, 0.95) 0%, rgba(16, 74, 75, 0) 100%);
}

.sab-grad-2 .sab-overlay {
    background: linear-gradient(to top, rgba(16, 42, 74, 0.95) 0%, rgba(16, 42, 74, 0) 100%);
}

.sab-grad-3 .sab-overlay {
    background: linear-gradient(to top, rgba(49, 16, 74, 0.95) 0%, rgba(49, 16, 74, 0) 100%);
}

.sab-grad-4 .sab-overlay {
    background: linear-gradient(to top, rgba(74, 52, 16, 0.95) 0%, rgba(74, 52, 16, 0) 100%);
}

.sab-grad-5 .sab-overlay {
    background: linear-gradient(to top, rgba(41, 74, 16, 0.95) 0%, rgba(41, 74, 16, 0) 100%);
}

.sab-grad-6 .sab-overlay {
    background: linear-gradient(to top, rgba(16, 74, 79, 0.95) 0%, rgba(16, 74, 79, 0) 100%);
}

.sab-grad-7 .sab-overlay {
    background: linear-gradient(to top, rgba(71, 16, 74, 0.95) 0%, rgba(71, 16, 74, 0) 100%);
}

.sab-grad-8 .sab-overlay {
    background: linear-gradient(to top, rgba(38, 44, 62, 0.95) 0%, rgba(38, 44, 62, 0) 100%);
}

.sab-grad-9 .sab-overlay {
    background: linear-gradient(to top, rgba(74, 16, 16, 0.95) 0%, rgba(74, 16, 16, 0) 100%);
}

.sab-grad-10 .sab-overlay {
    background: linear-gradient(to top, rgba(61, 74, 16, 0.95) 0%, rgba(61, 74, 16, 0) 100%);
}

/* Text Styles */
.sab-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
    line-height: 1.2;
}

.sab-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    opacity: 0.9;
}

/* Actions */
.sab-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 7px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sab-action-link {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-left: 4px;
    text-decoration: none;
}

.sab-action-link:first-child {
    margin-left: 0;
}

.sab-action-link:hover {
    color: #4facfe;
}

.sab-bio-button {
    padding: 5px 12px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    margin-right: 15px;
    font-family: inherit;
}

.sab-bio-button:hover {
    background-color: #fff;
    color: #0b0b0b;
    border-color: #fff;
}

/* Modal */
.sab-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
}

.sab-modal-content {
    background-color: #ffffff;
    color: #000000;
    padding: 30px;
    border-radius: 10px;
    max-width: 850px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.sab-modal-content h3 {
    color: #0497b9;
    margin-top: 0;
    margin-bottom: 8px;
    padding-bottom: 0;
    font-size: 1.8rem;
}

.sab-modal-content #sabModalTitle_,
.sab-modal-content [id^="sabModalTitle_"] {
    font-weight: 400;
    font-size: 17px;
    margin: 0;
    border-bottom: 2px solid #ccc;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.sab-modal-content p,
.sab-modal-content li,
.sab-modal-content h4 {
    color: #000000;
}

.sab-modal-content h4 {
    margin-top: 15px;
    font-weight: 700;
}

.sab-modal-content ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

.sab-modal-content ul li {
    margin-bottom: 5px;
}

.sab-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #f5576c;
    transition: color 0.2s;
    background: none;
    border: none;
    line-height: 1;
}

.sab-close-button:hover {
    color: #000000;
}