/* 
 * Presentations and Publications Styles
 * Colors: 
 * Primary: #004a71 (Dark Blue)
 * Secondary: #966d36 (Gold/Brown)
 * Text/Gray: #5f6368 (Gray)
 */

.pres-pub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Strictly 3 columns */
    gap: 30px;
    margin: 40px 0;
}

.pres-pub-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    overflow: hidden;
    border-top: 4px solid #004a71;
    color: #333333;
    position: relative;
    z-index: 1;
}

/* Enhanced shadow effect using pseudo-element for better performance */
.pres-pub-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 74, 113, 0.15); /* Tinted shadow matching primary color */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
    border-radius: 10px;
}

.pres-pub-card:hover {
    transform: translateY(-8px);
    border-top-color: #966d36; /* Changes top border to gold */
    text-decoration: none;
}

.pres-pub-card:hover::after {
    opacity: 1;
}

.pres-pub-card-content {
    padding: 30px;
    flex-grow: 1;
    background-color: #ffffff;
}

.pres-pub-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: #966d36;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.pres-pub-title {
    font-size: 1.35rem;
    line-height: 1.4;
    color: #004a71;
    margin: 0 0 15px 0;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* Title changes to gold on hover */
.pres-pub-card:hover .pres-pub-title {
    color: #966d36;
}

.pres-pub-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #5f6368;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pres-pub-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .pres-pub-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 20px;
    }
}
