/* ================ GLOBAL STYLES ================ */
:root {
  --primary-color: #1E90FF;
  --secondary-color: #007BFF;
  --background-color: #f3f7fb;
  --text-color: #333333;
  --light-gray: #DDDDDD;
  --dark-gray: #888888;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* ================ HEADER & NAVBAR ================ */
.header {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.navbar {
  background-color: var(--primary-color);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: top 0.3s ease-in-out;
  animation: slideInDown 0.5s ease-out;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  gap: 0.75rem;
}

.navbar-brand i {
  font-size: 1.8rem;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.navbar-brand i:hover {
  color: var(--secondary-color);
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================ PROFILE SECTION ================ */
.profile-box {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  transition: var(--transition);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.profile-box img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-md);
}

.profile-box img:hover {
  transform: scale(1.05);
}

.profile-box h3 {
  color: var(--primary-color);
  font-weight: bold;
  margin: 1rem 0;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.profile-box p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-top: 0.5rem;
}

/* ================ WELCOME MESSAGE ================ */
.welcome-message {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
  font-size: 2.5rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2rem;
}

/* ================ CARD STYLES ================ */
.card-link {
  text-decoration: none;
  display: block;
  transition: var(--transition);
}

.card-link .card {
  transition: var(--transition);
  border: none;
  border-radius: 10px;
}

.card-link:hover .card {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* ================ ORGANIZATION STRUCTURE ================ */
.struktur-organisasi {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
}

.posisi {
  margin: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.box {
  padding: 0.625rem 1.25rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 5px;
  margin: 0.625rem;
  text-align: center;
  min-width: 180px;
  position: relative;
}

.sub-bagian {
  display: flex;
  justify-content: center;
  margin-top: 0.625rem;
  flex-wrap: wrap;
}

.sub-bagian .box {
  margin: 0.625rem 1.25rem;
}

/* Connection lines */
.posisi::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background-color: var(--secondary-color);
}

.posisi > .sub-bagian .box::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -10px;
  width: 2px;
  height: 20px;
  background-color: var(--secondary-color);
}

.posisi > .box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .welcome-message {
    font-size: 1.8rem;
    padding: 1rem;
  }
  
  .profile-box img {
    width: 200px;
    height: 200px;
  }
  
  .sub-bagian {
    flex-direction: column;
    align-items: center;
  }
}