/* Front-end styles for PhD Spotlight Block */

.phd-spotlight-block {
    margin: 30px 0;
}

/* Current Spotlight Styles (Featured) */
.phd-spotlight-current-section {
    margin-bottom: 50px;
}

.phd-spotlight-current-item {
    margin-block: 40px;
}

.phd-spotlight-current-container {
    display: flex;
    position: relative;
    align-items: flex-start;
    border-bottom: 4px solid #ff8200;
}

.phd-spotlight-current-image {
    margin-right: 0;
    position: relative;
}

.phd-spotlight-current-image::before {
    content: "";
    position: absolute;
    width: 50%;
    height: 50%;
    max-height: 400px;
    max-width: 400px;
    z-index: -1;
    aspect-ratio: 1/1;
    background-color: #ff8200;
    bottom: -1.25em;
    transform: translateZ(-1px);
    left: -1.25rem;
}

.phd-spotlight-current-image img {
    width: 100%;
    height: auto;
    display: block;
}

.phd-spotlight-current-content {
    flex: 1;
    padding: 0 0 0 40px;
}

.phd-spotlight-current-name a {
    font-weight: 900;
}

.phd-spotlight-current-department {
    margin-bottom: 20px;
    h3 {
        text-transform: uppercase;
        font-size: clamp(1.25rem, 2vw, 1.5rem);
    }
}
.phd-spotlight-current-text {
    p {
        margin-block: 1em;
    }
}

/* Past Spotlights Grid */
.phd-spotlight-past-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 10px;
}

.phd-spotlight-past-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.phd-spotlight-past-item {
    display: flex;
    flex-direction: column;
}

.phd-spotlight-past-image {
    margin-bottom: 15px;
    max-width: 300px;
    margin-inline: auto;
    aspect-ratio: 1/1;
    height: auto;
}

.phd-spotlight-past-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.phd-spotlight-past-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.phd-spotlight-past-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.phd-spotlight-past-department {
    font-size: 0.9rem;
    font-weight:700;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .phd-spotlight-past-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .phd-spotlight-current-image {
        flex: 0 0 200px;
    }

    .phd-spotlight-current-name {
        font-size: 2rem;
    }

    .phd-spotlight-current-department {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .phd-spotlight-current-container {
        flex-direction: column;
    }

    .phd-spotlight-current-image {
        margin-bottom: 30px;
        max-width: 100%;
    }

    .phd-spotlight-current-content {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .phd-spotlight-past-grid {
        grid-template-columns: 1fr;
    }
}
