/* ==================== ALUMNI PAGE STYLES ==================== */

:root {
    --primary-color: #F9C403;
    --secondary-color: #1a1a1a;
    --accent-color: #FF6B6B;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== HERO SECTION ==================== */

.alumni-hero {
    position: relative;
    height: 400px;
    margin-top: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alumni-hero img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* ==================== MAIN CONTAINER ==================== */

.alumni-container {
    max-width: 1400px;
    margin: -60px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ==================== CONTROLS SECTION ==================== */

.alumni-controls {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
    animation: fadeInUp 0.6s ease-out;
}

.search-box {
    position: relative;
    margin-bottom: 25px;
}

.search-box .material-icons {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 24px;
}

.search-box input {
    width: 100%;
    padding: 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 196, 3, 0.1);
}

/* Filter Section */
.filter-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.filter-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    background-color: white;
}

.filter-group select:hover {
    border-color: var(--primary-color);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 196, 3, 0.1);
}

/* ==================== ALUMNI GRID ==================== */

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0;
    animation: fadeIn 0.8s ease-out;
}

/* ==================== ALUMNI CARD ==================== */

.alumni-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.alumni-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.alumni-card:hover .card-image {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.alumni-card:hover .card-overlay {
    opacity: 1;
}

.btn-view-more {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-view-more:hover {
    background: #FFD700;
    transform: scale(1.05);
}

/* Card Header */
.card-header {
    padding: 20px;
    background: white;
    border-bottom: 2px solid #f0f0f0;
}

.card-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Card Body - Collapsed View */
.card-body-collapsed {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-row .label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row .value {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 500;
    line-height: 1.4;
}

/* Card Body - Expanded View (Hidden by default) */
.card-body-expanded {
    display: none;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    background: #fafafa;
}

.alumni-card.expanded .card-body-collapsed {
    display: none;
}

.alumni-card.expanded .card-body-expanded {
    display: block;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.info-item .label {
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 0.95rem;
    color: var(--secondary-color);
    word-break: break-word;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.btn-close-details {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: var(--transition);
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.btn-close-details:hover {
    background: #FFD700;
}

/* ==================== EMPTY STATE ==================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
}

.empty-state .material-icons {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.empty-state p {
    font-size: 1.1rem;
    color: #999;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results p {
    font-size: 1.2rem;
    color: #999;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1024px) {
    .alumni-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .alumni-hero {
        height: 300px;
        margin-top: 70px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .alumni-controls {
        padding: 20px;
        margin-bottom: 30px;
    }

    .filter-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .alumni-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

    .card-image-wrapper {
        height: 240px;
    }

    .card-name {
        font-size: 1.1rem;
    }

    .card-body-expanded {
        max-height: 400px;
    }

    .info-section h4 {
        font-size: 0.95rem;
    }

    .info-item .value {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .alumni-container {
        margin: -40px auto 30px;
        padding: 0 15px;
    }

    .alumni-hero {
        height: 250px;
        margin-top: 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .alumni-controls {
        padding: 15px;
    }

    .search-box input {
        padding: 12px 40px;
        font-size: 0.95rem;
    }

    .filter-section {
        gap: 10px;
    }

    .filter-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .alumni-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .card-header {
        padding: 15px;
    }

    .card-name {
        font-size: 1rem;
    }

    .card-body-collapsed {
        padding: 12px 15px;
    }

    .info-row {
        gap: 3px;
    }

    .info-row .label,
    .info-item .label {
        font-size: 0.75rem;
    }

    .info-row .value,
    .info-item .value {
        font-size: 0.9rem;
    }

    .card-overlay {
        background: rgba(0, 0, 0, 0.7);
    }

    .btn-view-more {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .empty-state {
        padding: 40px 15px;
    }

    .empty-state .material-icons {
        font-size: 60px;
    }

    .empty-state h3 {
        font-size: 1.5rem;
    }

    .empty-state p {
        font-size: 1rem;
    }
}

/* ==================== SCROLLBAR STYLING ==================== */

.card-body-expanded::-webkit-scrollbar {
    width: 6px;
}

.card-body-expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.card-body-expanded::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.card-body-expanded::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}
