/* Praesidium Page Specifics */
main {
    padding-top: 130px;
    background: radial-gradient(circle at 50% 50%, #111e38 0%, #080f1b 100%);
    min-height: 100vh;
    color: white;
}

/* Praesidium Header */
.praesidium-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 10%;
}

.praesidium-header h2 {
    font-size: 1.1rem;
    color: var(--club-secondary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.praesidium-header h1 {
    font-size: 3rem;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Year Selector Slider Styles */
.year-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0.5rem;
}

.year-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(17, 26, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.year-btn:hover:not(:disabled) {
    background: var(--club-secondary-gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(174, 138, 54, 0.3);
}

.year-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: #64748b;
    border-color: rgba(255, 255, 255, 0.03);
}

.year-label-container {
    min-width: 200px;
    text-align: center;
}

.active-year-label {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 30%, #ffd479 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(174, 138, 54, 0.1);
}

/* Praesidium Grid */
.praesidium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 3rem;
    padding: 0 8% 8rem;
    max-width: 1400px;
    margin: 0 auto;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Fade Transitions */
.praesidium-grid.fade-out {
    opacity: 0;
    transform: translateY(15px);
}

.praesidium-grid.fade-in {
    opacity: 0;
    transform: translateY(-15px);
}

/* Member Card */
.member-card {
    background: rgba(17, 26, 46, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(174, 138, 54, 0.15);
    border-color: rgba(174, 138, 54, 0.35);
}

/* Card Image - responsive aspect ratio */
.card-image {
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: 420px;
    overflow: hidden;
    position: relative;
    background-color: #0d1726;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram-link:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
    transform: rotate(10deg) scale(1.1);
    border-color: transparent;
}

/* Card Content */
.card-content {
    padding: 2.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.member-card h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 0;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.member-card .role {
    display: inline-block;
    background-color: rgba(174, 138, 54, 0.15);
    color: #ffd479;
    padding: 0.35rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    align-self: flex-start;
}

.member-card .description {
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

/* Details Section */
.member-details {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 18px;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.member-details p {
    margin-bottom: 0.65rem;
    color: white;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.member-details p:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.member-details p strong {
    color: #94a3b8;
    font-weight: 500;
}

/* Hobbies */
.hobbies h4 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.hobbies ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hobbies li {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(174, 138, 54, 0.25);
    color: #ffd479;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.member-card:hover .hobbies li {
    border-color: rgba(174, 138, 54, 0.45);
    background-color: rgba(174, 138, 54, 0.08);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    main {
        padding-top: 100px;
    }
    
    .praesidium-header {
        margin-bottom: 2rem;
        padding: 0 6%;
    }
    
    .praesidium-header h1 {
        font-size: 2.2rem;
    }
    
    .year-slider {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .year-btn {
        width: 40px;
        height: 40px;
    }
    
    .year-label-container {
        min-width: 150px;
    }
    
    .active-year-label {
        font-size: 1.4rem;
    }
    
    .praesidium-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
        padding: 0 6% 6rem;
    }
    
    .card-image {
        max-height: 340px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .member-card h3 {
        font-size: 1.4rem;
    }
    
    .member-card .role {
        margin-bottom: 1rem;
    }
    
    .member-details {
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
    }
}