/* ===== TENTANG (ABOUT) PAGE ===== */
.visi-misi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.visi-misi-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.visi-misi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6c757d, #868e96);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.visi-misi-card:hover::before {
  transform: scaleX(1);
}

.visi-misi-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.visi-misi-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transform-origin: center;
  transition: transform 0.4s ease;
}

.visi-misi-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.visi-misi-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.visi-misi-card p {
  color: #5a6268;
  line-height: 1.8;
  margin: 0;
}

.tujuan-section {
  background: linear-gradient(135deg,
      rgba(108, 117, 125, 0.05),
      rgba(134, 142, 150, 0.05));
  border-radius: 20px;
  padding: 3rem;
  margin-top: 3rem;
}

.tujuan-section h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 2rem;
  text-align: center;
}

.tujuan-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tujuan-item {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  display: flex;
  align-items: start;
  gap: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.tujuan-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tujuan-number {
  background: linear-gradient(135deg, #6c757d, #868e96);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.tujuan-text {
  color: #5a6268;
  line-height: 1.6;
}

/* ===== KURIKULUM (CURRICULUM) PAGE ===== */
.curriculum-semesters {
  display: grid;
  gap: 2rem;
}

.semester-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border-left: 5px solid transparent;
}

.semester-card:nth-child(1) {
  border-left-color: #6c757d;
}

.semester-card:nth-child(2) {
  border-left-color: #868e96;
}

.semester-card:nth-child(3) {
  border-left-color: #5a6268;
}

.semester-card:nth-child(4) {
  border-left-color: #495057;
}

.semester-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.semester-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(108, 117, 125, 0.1);
}

.semester-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.total-sks {
  background: linear-gradient(135deg, #6c757d, #868e96);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
}

.course-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(108, 117, 125, 0.1);
  transition: all 0.3s ease;
}

.course-item:last-child {
  border-bottom: none;
}

.course-item:hover {
  padding-left: 10px;
  background: rgba(108, 117, 125, 0.05);
}

.course-name {
  color: #2c3e50;
  font-weight: 500;
}

.course-sks {
  background: rgba(108, 117, 125, 0.1);
  color: #5a6268;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.download-section {
  background: linear-gradient(135deg,
      rgba(108, 117, 125, 0.1),
      rgba(134, 142, 150, 0.1));
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.download-section h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #6c757d, #868e96);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(108, 117, 125, 0.4);
  color: white;
}

/* ===== GALERI (GALLERY) PAGE ===== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(108, 117, 125, 0.2);
  color: #5a6268;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #6c757d, #868e96);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  transition: all 0.3s ease;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom {
  background: white;
  color: #6c757d;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.gallery-card:hover .gallery-zoom {
  transform: scale(1);
}

.gallery-zoom:hover {
  background: #6c757d;
  color: white;
  transform: scale(1.1);
}

.gallery-content {
  padding: 1.5rem;
}

.gallery-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.gallery-description {
  color: #5a6268;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-category {
  display: inline-block;
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  padding: 0.25rem 1rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: white;
  transform: scale(1.1);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* ===== KONTAK (CONTACT) PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.contact-info,
.contact-form-wrapper {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(108, 117, 125, 0.08);
}

@media (min-width: 768px) {

  .contact-info,
  .contact-form-wrapper {
    padding: 2rem;
  }
}

.contact-info {
  border-top: 3px solid #6c757d;
}

.contact-form-wrapper {
  border-top: 3px solid #6c757d;
}

.contact-info .section-header-modern,
.contact-form-wrapper .section-header-modern {
  text-align: left;
  margin-bottom: 0.5rem;
}

.contact-info .section-header-modern .section-title,
.contact-form-wrapper .section-header-modern .section-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.contact-info .section-header-modern .section-subtitle,
.contact-form-wrapper .section-header-modern .section-subtitle {
  margin: 0;
  font-size: 0.9rem;
}

.contact-info .section-badge,
.contact-form-wrapper .section-badge {
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f3f5;
  transition: background 0.15s ease;
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-item:hover .contact-icon {
  background: #6c757d;
  color: #ffffff;
  transform: translateY(-2px);
}

.contact-content h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 0.2rem;
}

.contact-content p {
  color: #343a40;
  line-height: 1.65;
  margin: 0;
  font-size: 0.9rem;
}

.contact-content a {
  color: #6c757d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-content a:hover {
  color: #495057;
  text-decoration: underline;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1.25rem;
  border: 1px solid #e9ecef;
}

.map-container iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
}

@media (min-width: 768px) {
  .map-container iframe {
    height: 260px;
  }
}

.contact-form {
  margin-top: 1rem;
}

.contact-form .form-group {
  margin-bottom: 1.1rem;
}

.contact-form .form-group label {
  display: block;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.contact-form .form-control {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #f8f9fa;
  box-sizing: border-box;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: #6c757d;
  box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.12);
  background: #ffffff;
}

.contact-form .form-control::placeholder {
  color: #adb5bd;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.btn-kirim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 2rem;
  background: #6c757d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-kirim:hover {
  background: #5a6268;
  box-shadow: 0 4px 14px rgba(108, 117, 125, 0.3);
  transform: translateY(-1px);
}

.btn-kirim:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(108, 117, 125, 0.2);
}

@media (max-width: 767px) {

  .contact-info,
  .contact-form-wrapper {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 0.9rem;
  }

  .contact-item {
    gap: 0.75rem;
    padding: 0.875rem 0;
  }

  .contact-content h4 {
    font-size: 0.7rem;
  }

  .contact-content p {
    font-size: 0.85rem;
  }

  .contact-form .form-control {
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
  }

  .btn-kirim {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .map-container iframe {
    height: 200px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .visi-misi-grid,
  .tujuan-list,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}