/* ===========================================================
  ALUMNI PAGE - GLA UNIVERSITY
  Optimized Green & Gold Professional Theme
=========================================================== */

/* CSS Variables */
:root {
  --primary-green: #1b5e20;
  --primary-green-dark: #0d3c0f;
  --primary-green-light: #43a047;
  --accent-gold: #d4af37;
  --accent-yellow: #ffc107;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #01e7cc;
  --gray-700: #475569;
  --gray-900: #1e293b;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Page Header */
.alumni-header {
  background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 50%, var(--primary-green-light) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.alumni-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.03) 10px,
    rgba(255, 255, 255, 0.03) 20px
  );
  z-index: 0;
}

.alumni-header .container {
    position: relative;
    z-index: 1;
}

.header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  font-family: var(--font-heading);
}

.page-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 500;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Section */
.alumni-gallery-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
}

.gallery-container-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-xl);
  max-width: 98%;
  width: 100%;
  margin: 0 auto;
  border-top: 5px solid var(--primary-green);
}

.gallery-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gallery-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.3rem;
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
}

.gallery-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
  border-radius: 2px;
}

.gallery-header p {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 400;
  margin-top: 1rem;
}

/* Gallery Slider */
.gallery-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    width: 100%;
}

.slider-main {
    position: relative;
    width: 100%;
    aspect-ratio: 20/9;
    overflow: hidden;
    min-height: 350px;
    max-height: 480px;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.slide-item.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #000;
}

.slide-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(27, 94, 32, 0.95), rgba(27, 94, 32, 0.7));
  color: var(--white);
  padding: 1.2rem 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: var(--font-heading);
}

/* Navigation Arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.slide-nav i {
  font-size: 1.2rem;
  color: var(--primary-green);
}

.prev-slide {
    left: 15px;
}

.next-slide {
    right: 15px;
}

/* Dots Navigation */
.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot-nav {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot-nav:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot-nav.active {
    background: white;
    width: 45px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* Alumni Grid */
.alumni-grid-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.alumni-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  height: 100%;
}

.alumni-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
}

.alumni-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green-light);
}

.alumni-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.alumni-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-200);
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
}

.alumni-info h3 {
  font-size: 1.3rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.alumni-club {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alumni-details {
    margin-bottom: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 60px;
}

.detail-item:hover {
    background: #e9ecef;
}

.detail-item i {
  width: 20px;
  color: var(--primary-green);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.detail-item span {
  color: var(--gray-700);
  font-weight: 500;
  word-wrap: break-word;
  line-height: 1.4;
}

.alumni-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.linkedin-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #0077b5;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.linkedin-btn:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no-results.hidden {
    display: none;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Club Category Colors */
.club-cultural { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; }
.club-departmental { background: linear-gradient(135deg, #3498db, #2980b9) !important; }
.club-sports { background: linear-gradient(135deg, #f39c12, #d68910) !important; }
.club-council { background: linear-gradient(135deg, #9b59b6, #8e44ad) !important; }

/* Responsive Design */
@media (max-width: 768px) {
  /* Hide top bar on mobile */
  .modern-top-bar {
    display: none;
  }
  
  /* Mobile navbar adjustments */
  .modern-navbar {
    position: sticky;
    top: 0;
  }
  
  .navbar-container {
    padding: 12px 15px;
    flex-direction: row-reverse;
    justify-content: space-between;
  }
  
  .mobile-menu-btn {
    display: flex !important;
    order: 1;
  }
  
  .brand-logo {
    order: 2;
    flex-direction: row-reverse;
  }
  
  .brand-text {
    display: none;
  }
  
  .logo-img {
    width: 50px;
    height: 50px;
  }
  
  /* Hide desktop navigation */
  .navbar-nav {
    display: none;
  }
}

@media (max-width: 1200px) {
  .gallery-container-card {
    padding: 1.5rem 1rem;
  }
  
  .slider-main {
    min-height: 320px;
    max-height: 420px;
  }
  
  .alumni-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .alumni-header {
    padding: 3rem 0 2rem;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .stats-container {
    gap: 1rem;
    flex-direction: column;
  }
  
  .stat-item {
    padding: 1rem;
    min-width: 120px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .gallery-container-card {
    padding: 1.2rem 0.8rem;
    border-radius: 16px;
  }
  
  .gallery-header h2 {
    font-size: 1.8rem;
  }
  
  .gallery-header p {
    font-size: 0.9rem;
  }
  
  .slider-main {
    aspect-ratio: 16/9;
    min-height: 250px;
    max-height: 320px;
  }
  
  .gallery-header h2 {
    font-size: 2rem;
  }
  
  .slide-title {
    font-size: 1.1rem;
    padding: 1rem 0.8rem;
  }
  
  .slide-nav {
    width: 36px;
    height: 36px;
  }
  
  .slide-nav i {
    font-size: 1rem;
  }
  
  .prev-slide { left: 8px; }
  .next-slide { right: 8px; }
  
  .alumni-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .alumni-card {
    padding: 1.5rem;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .alumni-header {
    padding: 2rem 0 1.5rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .page-subtitle {
    font-size: 0.9rem;
  }
  
  .stats-container {
    gap: 0.8rem;
  }
  
  .stat-item {
    padding: 0.8rem;
    min-width: 100px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .gallery-container-card {
    padding: 1rem 0.5rem;
    border-radius: 12px;
  }
  
  .gallery-header h2 {
    font-size: 1.5rem;
  }
  
  .slider-main {
    min-height: 200px;
    max-height: 280px;
  }
  
  .slide-title {
    font-size: 0.9rem;
    padding: 0.8rem 0.5rem;
  }
  
  .slide-nav {
    width: 32px;
    height: 32px;
  }
  
  .slide-nav i {
    font-size: 0.9rem;
  }
  
  .prev-slide { left: 5px; }
  .next-slide { right: 5px; }
  
  .dot-nav {
    width: 10px;
    height: 10px;
  }
  
  .dot-nav.active {
    width: 30px;
  }
  
  .alumni-card {
    padding: 1rem;
  }
  
  .alumni-card-header {
    gap: 1rem;
  }
  
  .alumni-photo {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
  
  .alumni-info h3 {
    font-size: 1.1rem;
  }
  
  .alumni-club {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  
  .detail-item {
    padding: 0.6rem;
    min-height: 50px;
  }
  
  .detail-item i {
    font-size: 1rem;
  }
  
  .detail-item span {
    font-size: 0.85rem;
  }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    color: #6c757d;
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
