/**
 * ============================================================================
 * COCONUT COMPUTER CLUB - ABOUT PAGE STYLES
 * Dedicated stylesheet for about.html & its modular sections
 * Preserves 100% of exact design, hover states, layout, and animations.
 * ============================================================================
 */

:root {
  --primary: #243B77;
  --primary-dark: #16254c;
  --primary-hover: #1c2f61;
  --accent: #4d82f3;
  --accent-2: #243B77;
  --accent-light: #60a5fa;
  --surface-tint: #f0f4fa;
  --muted: #6b7280;
  --glass: rgba(255, 255, 255, 0.85);
  --card-bg: rgba(255, 255, 255, 0.95);
  --soft-shadow: 0 6px 24px rgba(22, 37, 76, 0.08);
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* ============================================================================
 * Hero Section
 * ============================================================================ */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 4rem 0;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-stats .stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.3s ease;
}

.hero-stats .stat-item:hover {
  transform: translateY(-5px);
}

.hero-stats .stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

/* ============================================================================
 * Section Styling & Cards
 * ============================================================================ */
.py-5 {
  padding: 3rem 0;
}

.bg-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(147, 197, 253, 0.3)) !important;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--soft-shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.15);
  border-color: var(--accent);
}

.card-body {
  padding: 2rem;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1);
}

/* ============================================================================
 * Layer 1: Core Research Project Cards
 * ============================================================================ */
.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--soft-shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.15);
  border-color: var(--accent);
}

.project-icon {
  text-align: center;
}

.project-icon i {
  font-size: 3rem;
  color: var(--primary);
}

/* University items */
.university-item {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

.university-item:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.achievement-stats h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

/* Mid-page CTA Section */
.bg-primary {
  background: linear-gradient(180deg, var(--primary), var(--accent-2)) !important;
}

.btn-light {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(147, 197, 253, 0.3));
  color: var(--primary);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
}

.btn-light:hover {
  background: linear-gradient(90deg, rgba(147, 197, 253, 0.3), rgba(255, 255, 255, 0.95));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* ============================================================================
 * News & Events Section
 * ============================================================================ */
#news-events {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(147, 197, 253, 0.3)) !important;
}

#news-events .project-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#news-events .project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.15);
  border-color: var(--accent);
}

#news-events .project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#news-events .project-card:hover img {
  transform: scale(1.05);
}

#news-events .project-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#news-events .project-card .badge {
  display: inline-block;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(96, 165, 250, 0.2));
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

#news-events .project-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

#news-events .project-card p {
  font-size: 1rem;
  color: #374151;
  flex: 1;
  margin-bottom: 1.5rem;
}

#news-events .project-card .btn {
  background: linear-gradient(135deg, var(--accent-2), var(--primary));
  border: none;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;
  align-self: flex-start;
  text-decoration: none;
}

#news-events .project-card .btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

/* Enhanced Alert Styling */
.alert {
  border-radius: 15px !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  position: relative !important;
  overflow: hidden !important;
}

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

.alert-info::before {
  background: linear-gradient(90deg, #0dcaf0, #0d6efd);
}

.alert-success::before {
  background: linear-gradient(90deg, #198754, #20c997);
}

.alert-warning::before {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.alert-primary::before {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.alert i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.alert strong {
  font-weight: 600;
}

/* ============================================================================
 * Layer 2: Proyek yang Sedang Berjalan & Sector Filters (Clean Editorial Bento)
 * ============================================================================ */
.sector-nav-wrapper {
  position: relative;
  margin-bottom: 2.2rem;
  padding: 4px 0;
}

.sector-nav-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 8px 6px 14px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .sector-nav-scroll {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.sector-nav-scroll::-webkit-scrollbar {
  display: none;
}

.sector-pill-btn {
  background: #ffffff;
  border: 1px solid rgba(36, 59, 119, 0.14);
  color: #374151;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  user-select: none;
}

.sector-pill-btn:hover {
  border-color: #243B77;
  color: #243B77;
  background: rgba(36, 59, 119, 0.05);
  box-shadow: 0 4px 12px rgba(36, 59, 119, 0.12);
}

.sector-pill-btn.active {
  background: #243B77;
  color: #ffffff;
  border-color: #243B77;
  box-shadow: 0 4px 14px rgba(36, 59, 119, 0.22);
}

.sector-pill-btn .pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(36, 59, 119, 0.08);
  color: #243B77;
  transition: all 0.2s ease;
}

.sector-pill-btn.active .pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Bento Project Card Styling */
.live-project-card {
  background: #ffffff;
  border: 1px solid rgba(36, 59, 119, 0.09);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.live-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s ease;
}

.live-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 130, 243, 0.35);
  box-shadow: 0 16px 36px rgba(22, 37, 76, 0.09);
}

.live-project-card:hover::before {
  background: linear-gradient(90deg, #243B77, #4d82f3);
}

.live-project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.live-project-logo-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(36, 59, 119, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.live-project-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.live-project-logo-box.icon-fallback {
  background: rgba(36, 59, 119, 0.06);
  color: #243B77;
  font-size: 1.5rem;
}

/* Status Badges */
.live-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  line-height: 1.2;
}

.live-status-active {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.live-status-growth {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.live-status-archive {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.live-status-progress {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.live-project-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.live-project-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #16254c;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.live-project-desc {
  font-size: 0.915rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.live-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.live-project-tag {
  font-size: 0.73rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #334155;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.live-project-footer {
  border-top: 1px solid rgba(36, 59, 119, 0.07);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-project-link {
  font-size: 0.865rem;
  font-weight: 600;
  color: #243B77;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.live-project-link i {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.live-project-link:hover {
  color: #4d82f3;
  text-decoration: none;
}

.live-project-link:hover i {
  transform: translate(2px, -2px);
}

.live-project-item {
  transition: all 0.3s ease;
}

.live-project-item.is-hidden {
  display: none !important;
}

/* Sub-section separation line */
.projects-layer-divider {
  position: relative;
  margin: 4.5rem 0 3.5rem;
  text-align: center;
}

.projects-layer-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(36, 59, 119, 0.15), transparent);
}

.projects-layer-divider span {
  position: relative;
  background: #f8f9fa;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-stats .stat-item h3 {
    font-size: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .py-5 {
    padding: 2rem 0;
  }
}
