/* Cost Area Styling */
.cost-area {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  padding: 80px 0;
}

.cost-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* Section Title */
.section-title {
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.section-title strong {
  color: #ff9800;
  font-weight: 600;
}

/* Cost Card Styling */
.cost-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.cost-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.cost-card-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 25px 30px;
  position: relative;
  overflow: hidden;
}

.cost-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.cost-card:hover .cost-card-header::before {
  transform: rotate(45deg) translate(50%, 50%);
}

.cost-card-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cost-card-title i {
  font-size: 1.4rem;
  color: #ff9800;
}

.cost-card-body {
  padding: 0;
  position: relative;
}

/* Table Styling */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
}

.cost-table thead th {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  padding: 20px 15px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid #ff9800;
  position: relative;
}

.cost-table thead th.prodi-header {
  text-align: left;
  min-width: 200px;
}

.cost-table thead th i {
  margin-right: 8px;
  font-size: 1.1rem;
  color: #ff9800;
}

.cost-table thead th::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: #ff9800;
  transition: width 0.3s ease;
}

.cost-table thead th:hover::after {
  width: 100%;
}

.cost-table thead th small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: normal;
}

.cost-table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.cost-table tbody tr:hover {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cost-table tbody tr:last-child {
  border-bottom: none;
}

.cost-table tbody td {
  padding: 20px 15px;
  vertical-align: middle;
  font-size: 0.95rem;
  position: relative;
}

.cost-table tbody td.prodi-cell {
  font-weight: 600;
  color: #2c3e50;
  text-align: left;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-right: 3px solid #ff9800;
}

.cost-table tbody td:not(.prodi-cell) {
  text-align: center;
  font-weight: 500;
  color: #555;
}

/* Price styling */
.price-cell {
  font-family: 'Segoe UI', monospace;
  font-weight: 600;
  color: #2c3e50;
  position: relative;
}

.price-cell::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #ff9800;
  transition: width 0.3s ease;
}

.cost-table tbody tr:hover .price-cell::before {
  width: 80%;
}

/* Semester Headers */
.semester-headers th {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  font-size: 0.85rem;
  padding: 15px 10px;
}

.semester-headers th small {
  font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .cost-card-body {
    overflow-x: auto;
  }
  
  .cost-table {
    min-width: 1000px;
  }
}

@media (max-width: 768px) {
  .cost-area {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  .cost-card-header {
    padding: 20px 20px;
  }
  
  .cost-card-title {
    font-size: 1.1rem;
  }
  
  .cost-table thead th,
  .cost-table tbody td {
    padding: 15px 10px;
    font-size: 0.85rem;
  }
  
  .cost-table {
    min-width: 800px;
  }
}

@media (max-width: 480px) {
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .cost-card-header {
    padding: 15px 15px;
  }
  
  .cost-table thead th,
  .cost-table tbody td {
    padding: 12px 8px;
    font-size: 0.8rem;
  }
  
  .cost-table thead th small {
    font-size: 0.65rem;
  }
}

/* Animation Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cost-card {
  animation: fadeInUp 0.8s ease-out;
}

.cost-card:nth-child(even) {
  animation-delay: 0.2s;
}

/* Loading Animation for Table Rows */
.cost-table tbody tr {
  animation: fadeInUp 0.6s ease-out;
}

.cost-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.cost-table tbody tr:nth-child(3) { animation-delay: 0.2s; }
.cost-table tbody tr:nth-child(4) { animation-delay: 0.3s; }
.cost-table tbody tr:nth-child(5) { animation-delay: 0.4s; }
.cost-table tbody tr:nth-child(6) { animation-delay: 0.5s; }

/* Special Effects */
.cost-card-header .icon-decoration {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

/* Highlight Effect for Important Information */
.important-note {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 1px solid #ff9800;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
}

.important-note::before {
  content: '\f06a';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.5rem;
  color: #ff9800;
}

.important-note p {
  margin: 0 0 0 50px;
  color: #856404;
  font-weight: 500;
}

/* Biaya Gelombang Section */
.biaya-gelombang-section {
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.section-subtitle {
  margin-bottom: 30px;
}

.section-subtitle h3 {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.section-subtitle p {
  font-size: 1rem;
  color: #666;
}

/* Gelombang Tabs Wrapper */
.gelombang-tabs-wrapper {
  background: #fff;
  border-radius: 15px 15px 0 0;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.gelombang-tabs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.gelombang-tab {
  flex: 0 1 auto;
  min-width: 150px;
  padding: 15px 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.gelombang-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 152, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.gelombang-tab:hover::before {
  left: 100%;
}

.gelombang-tab:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #ff9800;
}

.gelombang-tab.active {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  border-color: #f57c00;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

.gelombang-tab .tab-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gelombang-tab.active .tab-icon {
  background: rgba(255, 255, 255, 0.95);
}

.gelombang-tab .tab-icon-fallback {
  font-size: 2.5rem;
  color: #ff9800;
}

.gelombang-tab.active .tab-icon-fallback {
  color: #fff;
}

.gelombang-tab .tab-name {
  font-weight: 600;
  font-size: 1rem;
  color: #2c3e50;
}

.gelombang-tab.active .tab-name {
  color: #fff;
}

/* Gelombang Content Wrapper */
.gelombang-content-wrapper {
  background: #fff;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.gelombang-content {
  display: none;
  padding: 40px;
  animation: fadeIn 0.5s ease;
}

.gelombang-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gelombang Info Card */
.gelombang-info-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.gelombang-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.gelombang-header h4 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.gelombang-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gelombang-body {
  padding: 30px;
}

.gelombang-description {
  margin-bottom: 30px;
}

.gelombang-description h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gelombang-description h5 i {
  color: #ff9800;
}

.gelombang-description p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}

.gelombang-file {
  margin-top: 30px;
}

.gelombang-file h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gelombang-file h5 i {
  color: #ff9800;
}

.file-preview {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pdf-preview {
  text-align: center;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 20px 40px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.pdf-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
  color: #fff;
}

.pdf-link i {
  font-size: 2rem;
}

.image-preview {
  text-align: center;
}

.file-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.file-image:hover {
  transform: scale(1.02);
}

/* Responsive Design for Gelombang Tabs */
@media (max-width: 768px) {
  .gelombang-tabs {
    flex-direction: column;
  }
  
  .gelombang-tab {
    min-width: 100%;
  }
  
  .gelombang-content {
    padding: 20px;
  }
  
  .gelombang-header {
    padding: 20px;
  }
  
  .gelombang-header h4 {
    font-size: 1.5rem;
  }
  
  .gelombang-body {
    padding: 20px;
  }
}

/* Print Styles */
@media print {
  .cost-area::before {
    display: none;
  }
  
  .cost-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
  
  .cost-card-header {
    background: #2c3e50 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .cost-table thead th {
    background: #1e3c72 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .gelombang-tabs-wrapper,
  .gelombang-content-wrapper {
    box-shadow: none;
  }
}