/* ===== კურსდამთავრებულები ===== */

/* სლაიდერი (მთავარი გვერდი) — თავისით მოძრავი */
.grad-slider {
    overflow: hidden;
    position: relative;
    padding: 10px 0 24px;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.grad-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: gradMarquee var(--grad-duration, 40s) linear infinite;
}
.grad-slider:hover .grad-track {
    animation-play-state: paused;
}
@keyframes gradMarquee {
    to {
        transform: translateX(calc(-50% - 8px));
    }
}
@media (prefers-reduced-motion: reduce) {
    .grad-track {
        animation-duration: 160s;
    }
}

/* ბარათი */
.grad-card {
    width: 270px;
    flex: 0 0 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.grad-photo {
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    background-size: cover;
    background-position: center top;
    background-color: rgba(21, 17, 17, 0.06);
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}
.grad-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}
.grad-course {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    color: #fff;
    font-size: 11px;
    font-family: "Avenir Next Georgian Bold";
    line-height: 1.35;
}
.grad-course::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--red2);
    box-shadow: 0 0 12px var(--red2);
}
.grad-card .content {
    padding: 0 8px 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.grad-card h3 {
    font-size: 19px;
    margin-bottom: 4px;
}
.grad-position {
    color: var(--red);
    font-family: "Avenir Next Georgian Bold";
    font-size: 13px;
    margin-bottom: 8px;
}
.grad-card p {
    margin: 0 0 14px;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.grad-card .btn {
    margin-top: auto;
    min-height: 38px;
    font-size: 13px;
}
.grad-more {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* სიის გვერდი */
.grad-page {
    padding: 150px 0 90px;
}
.grad-page h1 {
    margin-top: 10px;
}
.grad-page .lead {
    color: var(--muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 0 34px;
}
.grad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.grad-grid .grad-card {
    width: auto;
}

/* დეტალური გვერდი */
.grad-profile {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: start;
}
.grad-profile-photo {
    position: sticky;
    top: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--card);
}
.grad-profile-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}
.grad-profile h1 {
    margin: 10px 0 8px;
    font-size: clamp(32px, 4.6vw, 54px);
}
.grad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 26px;
}
.grad-cv {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
}
.grad-cv h2 {
    font-size: 24px;
    margin-bottom: 12px;
}
.grad-others {
    margin-top: 70px;
}

@media (max-width: 1000px) {
    .grad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grad-profile {
        grid-template-columns: 1fr;
    }
    .grad-profile-photo {
        position: relative;
        top: 0;
        max-width: 380px;
    }
}
@media (max-width: 640px) {
    .grad-page {
        padding-top: 120px;
    }
    .grad-card {
        width: 230px;
    }
    .grad-grid {
        grid-template-columns: 1fr;
    }
}
