/* ==========================================================
   phd.css — styles for phd.html
   Santiago Cardona-Urrea personal website
   ========================================================== */


/* ── Executive summary ── */

.exec-summary {
    background: #f7f9fc;
    border-left: 4px solid #2c6fad;
    padding: 1.2em 1.6em;
    margin: 1.4em 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #333;
    line-height: 1.7;
}


/* ── Article list ── */

.article-list {
    list-style: none;
    padding: 0;
    margin: 1em 0;
    counter-reset: article-counter;
}

.article-list li {
    counter-increment: article-counter;
    display: flex;
    gap: 1em;
    align-items: flex-start;
    padding: 0.85em 1em;
    margin-bottom: 0.6em;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: box-shadow 0.2s;
}

.article-list li:hover {
    box-shadow: 0 2px 8px rgba(44, 111, 173, 0.12);
}

.article-list li::before {
    content: counter(article-counter);
    min-width: 1.8em;
    height: 1.8em;
    background: #2c6fad;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
    flex-shrink: 0;
    margin-top: 0.1em;
}

.article-list li.under-review::before {
    background: #8a9bb0;
}

.article-list a {
    color: #2c6fad;
    text-decoration: none;
    font-weight: 600;
}

.article-list a:hover {
    text-decoration: underline;
}

.article-meta {
    font-size: 0.88em;
    color: #666;
    margin-top: 0.25em;
}

.badge {
    display: inline-block;
    font-size: 0.75em;
    padding: 0.15em 0.55em;
    border-radius: 999px;
    font-weight: 600;
    margin-left: 0.4em;
    vertical-align: middle;
}

.badge-published {
    background: #d1fae5;
    color: #065f46;
}

.badge-review {
    background: #fef3c7;
    color: #92400e;
}


/* ── Milestone carousel ── */

.gallery-section h2 {
    margin-bottom: 0.3em;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-top: 1em;
}

.carousel-btn {
    flex-shrink: 0;
    width: 2.4em;
    height: 2.4em;
    border-radius: 50%;
    border: 2px solid #2c6fad;
    background: #fff;
    color: #2c6fad;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s;
    line-height: 1;
}

.carousel-btn:hover:not(:disabled) {
    background: #2c6fad;
    color: #fff;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.carousel-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.gallery-card {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ── Image display: full image, no cropping ── */
/* object-fit: contain shows the whole photo without zooming in.
   background fills the neutral space on either side for non-square images.
   To switch back to cropped/zoomed behaviour, change contain → cover
   and remove the background and max-height lines.               */
.gallery-card img {
    width: 100%;
    height: auto;
    max-height: 480px;   /* prevents very tall portrait photos dominating */
    object-fit: contain;
    background: #f0f4f8;
    display: block;
}

.gallery-card-text {
    padding: 1em 1.2em 1.2em;
}

.gallery-card-text .milestone-date {
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2c6fad;
    margin-bottom: 0.35em;
}

.gallery-card-text h3 {
    font-size: 1em;
    margin: 0 0 0.45em;
    color: #1a202c;
}

.gallery-card-text p {
    font-size: 0.88em;
    color: #555;
    line-height: 1.6;
    margin: 0;
}


/* ── Dot indicators ── */

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.45em;
    margin-top: 0.9em;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: #2c6fad;
}


/* ── Counter label ── */

.carousel-counter {
    text-align: center;
    font-size: 0.8em;
    color: #888;
    margin-top: 0.4em;
}


/* ── Responsive ── */

@media (max-width: 480px) {
    .gallery-card img {
        max-height: 320px;
    }
}

