﻿/* Variables & Base Styles */
:root {
    --fellowship-light-bg: #f8f9fa;
    --fellowship-accent: rgba(0, 150, 210, 0.1);

    /* Banner Gradient Overlay Settings */
    --banner-fade-width: 80px;
    --banner-fade-intensity: 1;
    --banner-fade-color: #ffffff;
    --banner-fade-start: transparent;
}

.fellowship-tabs {
    background-color: white;
}

.vertical-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-item {
    display: flex;
    align-items: center;
    background-color: var(--fellowship-light-bg);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

    .tab-item:hover {
        background-color: rgba(0, 150, 210, 0.05);
    }

    .tab-item.active {
        background-color: rgba(0, 150, 210, 0.1);
        border-left-color: var(--stfm-tertiary);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

.tab-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--stfm-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tab-item.active .tab-icon {
    background-color: var(--stfm-tertiary);
    color: white;
    transform: scale(1.1);
}

.tab-label {
    font-weight: 600;
    color: var(--stfm-primary);
    font-size: 1rem;
}

.tab-content-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    min-height: 400px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.deadline-section {
    margin-bottom: 2rem;
}


.deadline-subheading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.clean-status {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.simple-actions-centered {
    text-align: center;
}

.simple-actions {
    margin-top: 2rem;
}

    .simple-actions .btn {
        font-size: 1.2rem;
        padding: .5rem 3rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 4px 15px rgba(239, 141, 43, 0.3);
        transition: all 0.3s ease;
        margin-bottom: .75rem;
    }

        .simple-actions .btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 20px rgba(239, 141, 43, 0.4);
            text-decoration: none;
        }

.simple-contact {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

    .simple-contact a {
        color: var(--stfm-primary);
        font-weight: 600;
        text-decoration: none;
    }

        .simple-contact a:hover {
            color: var(--stfm-tertiary);
            text-decoration: underline;
        }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .tab-content-container {
        max-height: calc(100vh - 180px);
    }
}

@media (max-width: 767.98px) {
    .tab-content-container {
        max-height: calc(100vh - 160px);
    }

    .simple-actions {
        text-align: center;
    }

        .simple-actions .btn {
            width: 100%;
        }
}

    /* Custom Scrollbar Styling for Tab Content Container */
    .tab-content-container::-webkit-scrollbar {
        width: 6px;
    }

    .tab-content-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .tab-content-container::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.30);
        border-radius: 3px;
        transition: background-color 0.3s ease;
    }

        .tab-content-container::-webkit-scrollbar-thumb:hover {
            background-color: rgba(0, 0, 0, 0.40);
        }

/* Firefox scrollbar styling */
.tab-content-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.30) transparent;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

    .tab-content.active {
        display: block;
    }

    .tab-content h3 {
        color: var(--stfm-primary);
        font-weight: 700;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--fellowship-accent);
    }

/* Feature list styling */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    background-color: var(--fellowship-light-bg);
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .feature-item:hover {
        transform: translateX(5px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    }

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    color: var(--stfm-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
    align-self: stretch; /* override the row’s align-items:center stretch logic */
    display: flex;
    align-items: center; /* now center the <p> inside this full-height cell */
}

    .feature-text p {
        /* kill all of the browser’s default <p> margins */
        margin: 0;
    }

/* Application tab styling */
.application-info {
    background-color: var(--fellowship-light-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.application-status {
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--stfm-secondary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.application-status h4 {
    color: var(--stfm-primary);
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.2rem;
}

.application-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.application-contact {
    color: var(--stfm-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .application-contact:hover {
        color: var(--stfm-tertiary);
    }

/* Timeline styling for past fellows */
.fellows-timeline {
    position: relative;
    padding-left: 30px;
}

    .fellows-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 10px;
        width: 2px;
        background-color: var(--stfm-tertiary);
        opacity: 0.3;
    }

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

    .timeline-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -30px;
        top: 8px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background-color: white;
        border: 3px solid var(--stfm-tertiary);
        z-index: 1;
    }

.timeline-year {
    color: var(--stfm-tertiary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.fellow-name {
    color: var(--stfm-primary);
    font-weight: 600;
}

/* Conference Schedule Timeline Styles */
.schedule-timeline {
    position: relative;
    padding-left: 30px;
}

    .schedule-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 10px;
        width: 2px;
        background-color: var(--stfm-tertiary);
        opacity: 0.3;
    }

.schedule-item {
    position: relative;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

    .schedule-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .schedule-item::before {
        content: '';
        position: absolute;
        left: -30px;
        top: 8px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background-color: white;
        border: 3px solid var(--stfm-tertiary);
        z-index: 1;
    }

.schedule-time {
    color: var(--stfm-tertiary);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.schedule-title {
    color: var(--stfm-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

/* Nested schedule items */
.schedule-nested {
    margin-top: 0.75rem;
    margin-left: 1rem;
    border-left: 2px solid rgba(0, 150, 210, 0.3);
    padding-left: 1rem;
}

    .schedule-nested .schedule-sub-item {
        margin-bottom: 0.5rem;
        position: relative;
        padding-left: 1rem;
    }

        .schedule-nested .schedule-sub-item::before {
            content: '';
            position: absolute;
            left: -1.25rem;
            top: 6px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: var(--stfm-secondary);
        }

        .schedule-nested .schedule-sub-item:last-child {
            margin-bottom: 0;
        }

.schedule-sub-title {
    font-weight: 600;
    color: var(--stfm-primary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.schedule-sub-description {
    color: #777;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .tab-content-container {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .fellowship-tabs {
        padding: 3rem 0;
    }

    .vertical-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .tab-item {
        width: calc(50% - 0.5rem);
        justify-content: center;
        border-left: none;
        border-bottom: 4px solid transparent;
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
    }

        .tab-item.active {
            border-left-color: transparent;
            border-bottom-color: var(--stfm-tertiary);
        }

    .tab-icon {
        display: none;
    }

    .tab-label {
        font-size: 0.85rem;
    }

    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    .application-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .fellows-timeline,
    .schedule-timeline {
        padding-left: 25px;
    }

    .timeline-item::before,
    .schedule-item::before {
        left: -25px;
        width: 12px;
        height: 12px;
    }

    .conference-banner {
        max-height: 200px;
    }

    /* Adjust fade width on mobile */
    :root {
        --banner-fade-width: 60px;
    }
}


.spotlight-image {
    flex: 1;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

    .spotlight-image img {
        border-radius: 8px;
        width: 100%;
        height: auto;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
        transition: all 0.5s ease;
    }

    .spotlight-image:hover img {
        transform: scale(1.03);
    }

    .spotlight-image::before {
        content: '';
        position: absolute;
        top: 20px;
        left: -15px;
        width: 50px;
        height: 50px;
        border-radius: 10px;
        background-color: var(--gold);
        opacity: 0.3;
        z-index: -1;
        animation: rotate 12s linear infinite;
    }

    .spotlight-image::after {
        content: '';
        position: absolute;
        bottom: -20px;
        right: -15px;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background-color: var(--light-blue);
        opacity: 0.2;
        z-index: -1;
        animation: pulse 8s ease-in-out infinite;
    }

.tab-image-description {
    color: #777;
    font-size: 0.85rem;
    line-height: 1.3;
    font-style: italic;
}