/**
 * Graduates / Alumni page – custom styles only (no library)
 * Uses --brand-color, --bg-base etc from premium-theme.css
 */

.gd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.gd-container--narrow {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1.25rem;
    text-align: center;
}

/* Hero */
.gd-hero {
    padding: 6rem 0 2rem;
    text-align: center;
}

.gd-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    margin: 0 0 0.5rem;
}

.gd-hero-lead {
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Fade-in */
.gd-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: gdFadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.gd-fade-in--delay-1 { animation-delay: 0.1s; }
.gd-fade-in--delay-2 { animation-delay: 0.2s; }
.gd-fade-in--delay-3 { animation-delay: 0.3s; }

@keyframes gdFadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Stat strip */
.gd-stat-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
    .gd-stat-strip {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }
}

.gd-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .gd-stat-item { justify-content: flex-start; }
}

.gd-stat-icon {
    font-size: 1.5rem;
    color: var(--brand-color);
}

.gd-stat-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.gd-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Section */
.gd-section {
    padding-bottom: 3rem;
}

.gd-section--dark {
    background-color: var(--bg-surface);
    padding: 3rem 0;
}

.gd-section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.gd-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.gd-section-title--center {
    text-align: center;
    margin-bottom: 2.5rem;
}

.gd-section-lead {
    color: var(--text-secondary);
    margin: 0;
}

/* Grid */
.gd-grid {
    display: grid;
    gap: 1.5rem;
}

.gd-grid--cards {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .gd-grid--cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .gd-grid--cards { grid-template-columns: repeat(3, 1fr); }
}

.gd-grid--reviews {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .gd-grid--reviews { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.gd-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.gd-card--hover:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(55, 189, 138, 0.1);
}

.gd-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gd-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
}

.gd-card-head-text {
    flex: 1;
    min-width: 0;
}

.gd-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gd-card-verified {
    color: var(--brand-color);
    font-size: 0.9rem;
}

.gd-card-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.gd-card-location i {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.gd-card-role {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.gd-card-course {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.gd-card-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(55, 189, 138, 0.05);
    border: 1px solid rgba(55, 189, 138, 0.2);
    border-radius: 12px;
}

.gd-card-highlight-icon {
    color: var(--brand-color);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.gd-card-highlight span {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 500;
}

.gd-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gd-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
}

.gd-card-actions {
    margin-top: auto;
}

.gd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.gd-btn-full {
    width: 100%;
}

.gd-btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.gd-btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.gd-btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.gd-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.gd-btn-brand {
    background: var(--brand-color);
    color: var(--bg-base);
    border-color: var(--brand-color);
}

.gd-btn-brand:hover {
    background: var(--brand-color-hover);
    border-color: var(--brand-color-hover);
    color: var(--bg-base);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(55, 189, 138, 0.2);
}

.gd-text-brand {
    color: var(--brand-color);
}

/* Divider */
.gd-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    border: none;
    border-top: 1px solid var(--border-subtle);
    opacity: 1;
}

/* Reel */
.gd-reel-wrap {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.gd-reel-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: gdScrollReel 40s linear infinite;
    padding: 0 0.5rem;
}

.gd-reel-wrap:hover .gd-reel-track {
    animation-play-state: paused;
}

@keyframes gdScrollReel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

.gd-reel-card {
    width: 280px;
    aspect-ratio: 9 / 16;
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gd-reel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gd-reel-card:hover img {
    transform: scale(1.04);
}

.gd-reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.gd-play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    padding-left: 4px;
    transition: var(--transition);
    z-index: 2;
}

.gd-reel-card:hover .gd-play-btn {
    background: var(--brand-color);
    color: var(--bg-base);
    border-color: var(--brand-color);
    transform: scale(1.1);
}

.gd-reel-info {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    text-align: left;
}

.gd-reel-name {
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.gd-reel-course {
    margin: 0;
    font-size: 0.85rem;
    color: var(--brand-color);
}

/* Review card */
.gd-review-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.gd-review-stars {
    color: var(--brand-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.gd-review-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.gd-review-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.gd-review-author {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.gd-review-course {
    font-size: 0.85rem;
    color: var(--brand-color);
    font-weight: 500;
}

/* CTA */
.gd-cta {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.gd-cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.gd-cta-lead {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Profile modal */
.gd-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gd-modal.gd-modal--open {
    opacity: 1;
    visibility: visible;
}

.gd-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.gd-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 36rem;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-card);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.gd-modal-content {
    padding: 0;
}

.gd-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.gd-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gd-modal-close {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.gd-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.gd-modal-body {
    padding: 1.5rem 2rem;
}

.gd-modal-profile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
    .gd-modal-profile {
        flex-direction: row;
        text-align: left;
    }
}

.gd-modal-profile-img-wrap {
    flex-shrink: 0;
    text-align: center;
}

.gd-modal-avatar-lg {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(55, 189, 138, 0.3);
}

.gd-modal-profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .gd-modal-profile-info {
        align-items: flex-start;
        text-align: left;
    }
}

.gd-modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.gd-modal-role {
    color: var(--brand-color);
    font-weight: 500;
    margin: 0 0 0.5rem;
}

.gd-modal-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.gd-modal-location i {
    margin-right: 0.35rem;
}

.gd-modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .gd-modal-links { justify-content: flex-start; }
}

.gd-modal-block {
    margin-bottom: 1.5rem;
}

.gd-modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.gd-modal-journey {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.gd-modal-journey p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.gd-modal-journey p:last-child {
    margin-bottom: 0;
}

.gd-modal-label {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.35rem;
}

.gd-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gd-skill-tag {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-color);
    background: rgba(55, 189, 138, 0.1);
    border: 1px solid rgba(55, 189, 138, 0.2);
    border-radius: 50px;
}
