/* ============================================
   LAYOUT
   ============================================ */

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
}

.nav {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl);
}

.nav-initials {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.0rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 1;
}

.nav-initials:hover {
  color: white;
  opacity: 0.9;
}

.nav-spacer {
  flex: 1;
  min-width: 0;
}

.nav-tabs {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.nav-logo {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-logo {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary) !important;
}

.nav-logo:hover {
  color: var(--text-primary) !important;
  opacity: 0.9;
}


.nav-tab {
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary) !important;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  position: relative;
  padding-bottom: calc(var(--space-sm) + 2px);
}

.nav-tab:hover {
  color: var(--text-primary) !important;
}

.nav-tab.active {
  color: var(--text-primary) !important;
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-md);
  right: var(--space-md);
  height: 2px;
  background: var(--accent-green);
  border-radius: 2px;
}

/* Main content */
.main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
  min-height: calc(100vh - 60px);
}

/* Page sections - tab content */
.page-section {
  display: none;
  justify-content: center;
  width: 100%;
  animation: fadeIn var(--duration-normal) var(--ease-out-expo) forwards;
}

.page-section.active {
  display: flex;
}

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

.section-content {
  width: 100%;
  max-width: 70%;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
  }

  .nav-spacer {
    display: none;
  }

  .nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-logo {
    flex: none;
  }

  .main {
    padding: var(--space-xl) var(--space-md);
  }

  .degree-header {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .degree-meta {
    order: 3;
    width: 100%;
    margin-right: 0;
  }

  .course-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .about-photo {
    float: none;
    width: 100%;
    max-width: 280px;
    margin-left: 0;
    margin-bottom: var(--space-lg);
    display: block;
  }
}
