body {
  font-family: 'Instrument Sans', sans-serif;
  color: #333;
}

.container {
  position: relative;
  z-index: 1;
}

/* Navbar Styles */
.navbar {
  background-color: #0B5E91;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-family: 'El Messiri', sans-serif;
  font-size: 1.5rem;
  color: #fff !important;
}

.navbar-nav .nav-link {
  font-family: 'Instrument Sans', sans-serif;
  color: #fff;
  font-weight: 600;
  transition: color 0.2s;
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #baa971;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Typography */
h2, h3, h4, h5, .card-title {
  font-family: 'El Messiri', sans-serif;
  color: #0B5E91;
}

/* Button Styles */
.btn-outline-primary {
  color: #0B5E91;
  border-color: #0B5E91;
}

.btn-outline-primary:hover {
  background-color: #baa971;
  color: white;
  border-color: #baa971;
}

.btn-primary {
  background-color: #baa971;
  border-color: #baa971;
}

.btn-primary:hover {
  background-color: #a7945e;
  border-color: #a7945e;
}

.btn-warning {
  background-color: #baa971;
  border-color: #baa971;
}

.btn-warning:hover {
  background-color: #a7945e;
  border-color: #a7945e;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.carousel, .carousel-inner, .carousel-item {
  height: 100%;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease-out;
  transform: scale(1.05);
}

.carousel-item.active .hero-background {
  animation: zoomIn 7s forwards;
}

@keyframes zoomIn {
  0% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(11, 94, 145, 0.8), rgba(11, 94, 145, 0.4));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-text {
  color: white;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
}

.carousel-item.active .hero-text {
  animation: fadeInUp 1s forwards 0.5s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text h1 {
  font-family: 'El Messiri', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text h1 span {
  color: #baa971;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.hero-buttons .btn {
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
  background-color: #baa971;
  border-color: #baa971;
}

.hero-buttons .btn-primary:hover {
  background-color: #a7945e;
  border-color: #a7945e;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(186, 169, 113, 0.3);
}

.hero-buttons .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.custom-indicators {
  display: flex;
  gap: 10px;
  margin: 0;
  position: static;
}

.custom-indicators button {
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  padding: 5px;
  margin: 0;
  opacity: 0.7;
  transition: all 0.3s ease;
  color: white;
  font-family: 'El Messiri', sans-serif;
  font-size: 1.2rem;
}

.custom-indicators button.active {
  opacity: 1;
  position: relative;
}

.custom-indicators button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5px;
  width: 20px;
  height: 2px;
  background-color: #baa971;
}

.carousel-nav-buttons {
  display: flex;
  gap: 15px;
}

.carousel-control-prev, .carousel-control-next {
  position: static;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
  background-color: #baa971;
  transform: translateY(-3px);
}

.carousel-control-prev i, .carousel-control-next i {
  font-size: 1.2rem;
  color: white;
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
}

.scroll-down a {
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-down a:hover {
  opacity: 1;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: white;
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

.scroll-text {
  font-size: 12px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Timeline Section - New Design */
.timeline-section {
  background: #f8f9fa;
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.3rem;
  color: #0B5E91;
  margin-bottom: 60px;
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, #0B5E91, #baa971);
  transform: translateX(-50%);
}

.timeline-items {
  position: relative;
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-dot {
  width: 50px;
  height: 50px;
  background: #0B5E91;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(11, 94, 145, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: #baa971;
  transform: scale(1.1);
}

.timeline-dot i {
  font-size: 20px;
}

.timeline-date {
  width: 30%;
  padding: 0 20px;
  text-align: right;
  color: #0B5E91;
  font-weight: 600;
}

.timeline-item:nth-child(odd) .timeline-date {
  text-align: left;
}

.timeline-content {
  width: 50%;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
  margin: 0 0 10px;
  color: #0B5E91;
  font-size: 1.3rem;
}

.timeline-content p {
  margin: 0;
  color: #666;
}

/* Program Studi Cards */
.card-img-top-program {
  border-radius: 10px 10px 0 0;
  height: 250px;
  width: 100%;
  object-fit: cover;
}

/* Info Section */
.info-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.info-card {
  background-color: white;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-card:hover {
  transform: translateY(-8px);
}

.info-card .icon {
  font-size: 40px;
  color: #baa971;
  margin-bottom: 20px;
}

.info-card h4 {
  color: #0b5e91;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

.btn-selengkapnya {
  display: inline-block;
  background-color: #0b5e91;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.btn-selengkapnya:hover {
  background-color: #baa971;
  color: white;
  text-decoration: none;
}

/* Footer */
footer {
  background-color: #0B5E91;
  color: white;
  padding: 60px 0 30px;
  font-family: 'Instrument Sans', sans-serif;
}

footer p {
  color: #ffffffcc;
  font-family: 'Instrument Sans', sans-serif;
}

footer h5 {
  font-family: 'El Messiri', sans-serif;
  color: #baa971;
  font-size: 18px;
  margin-bottom: 20px;
}

footer a {
  color: #ffffffcc;
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 15px;
}

footer a:hover {
  color: #fff;
}

.footer-logo {
  width: 250px;
  margin-bottom: 15px;
}

.footer-icons {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 10px;
}

.footer-icons a {
  color: white;
  font-size: 20px;
  margin-right: 15px;
  transition: color 0.3s;
}

.footer-icons a:hover {
  color: #baa971;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #ffffffaa;
}

.footer-barcode img {
  width: 220px;
  border: 2px solid #fff;
  border-radius: 6px;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Page Header for Inner Pages */
.page-header {
  background: linear-gradient(to right, rgba(11, 94, 145, 0.9), rgba(11, 94, 145, 0.7)), url('assets/program/Kedokteran.webp');
  background-size: cover;
  background-position: center;
  padding: 150px 0;
  color: white;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.page-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Content Section for Inner Pages */
.content-section {
  padding: 60px 0;
}

.content-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
}

.content-card h2 {
  color: #0B5E91;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.content-card p {
  color: #555;
  line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .timeline-date, .timeline-content {
    width: 40%;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: 70vh;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .carousel-controls {
    bottom: 20px;
  }

  .scroll-down {
    display: none;
  }

  .timeline-progress {
    left: 30px;
  }

  .timeline-item, .timeline-item:nth-child(odd) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
  }

  .timeline-date, .timeline-content {
    width: 100%;
    text-align: left;
  }

  .timeline-date {
    margin-bottom: 10px;
    padding: 0;
  }

  .timeline-dot {
    position: absolute;
    left: 30px;
    transform: translateX(-50%);
  }

  .footer-barcode {
    margin-top: 30px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 20px;
    bottom: 20px;
  }
}

/* Floating Navigation Button */
.facility-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.floating-nav-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #0B5E91, #094a73);
  color: white;
  border: none;
  border-radius: 25px 0 0 25px;
  padding: 12px 20px 12px 25px;
  box-shadow: -3px 0 15px rgba(11, 94, 145, 0.3);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 500;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-nav-btn:hover {
  transform: translateY(-50%) translateX(-5px);
  box-shadow: -5px 0 20px rgba(186, 169, 113, 0.4);
  background: linear-gradient(135deg, #baa971, #a7945e);
}

.floating-nav-btn i {
  margin-bottom: 8px;
  font-size: 16px;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  right: -350px;
  top: 0;
  width: 350px;
  height: 100%;
  background: white;
  z-index: 1999;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  padding: 25px;
  background: linear-gradient(135deg, #0B5E91, #094a73);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.sidebar-content {
  padding: 30px 25px;
}

.sidebar-link {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.sidebar-link:hover {
  background: #f8f9fa;
  color: #0B5E91;
  border-left-color: #baa971;
  transform: translateX(5px);
}

.sidebar-link i {
  margin-right: 12px;
  width: 20px;
}
/* Zigzag Flowchart Styles */
.flowchart-zigzag {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.flow-row {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    min-height: 120px;
}

.flow-row.reverse {
    flex-direction: row-reverse;
}

.flow-row.center {
    justify-content: center;
}

.step-left, .step-right, .step-center {
    flex: 1;
    max-width: 400px;
}

.step-box {
    background: white;
    border: 3px solid #0B5E91;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(11, 94, 145, 0.1);
    position: relative;
}

.step-box.start {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

.step-box.decision {
    border-color: #baa971;
    background: linear-gradient(135deg, #fff8e1 0%, #f5f5dc 100%);
}

.step-box.success {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

.step-number {
    background: #0B5E91;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 auto 1rem auto;
    box-shadow: 0 3px 10px rgba(11, 94, 145, 0.3);
}

.step-box.start .step-number {
    background: #28a745;
}

.step-box.decision .step-number {
    background: #baa971;
}

.step-box.success .step-number {
    background: #28a745;
}

.step-box h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.step-box p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.connector-right, .connector-left {
    font-size: 2rem;
    color: #0B5E91;
    font-weight: bold;
    margin: 0 1rem;
    flex-shrink: 0;
}

/* Decision Styles */
.decision-split {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    gap: 1rem;
}

.fail-branch, .pass-branch {
    flex: 1;
    text-align: center;
}

.result-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.result-badge.pass {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.result-badge.fail {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.return-path {
    background: #fff3cd;
    color: #856404;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid #ffc107;
    margin-top: 0.5rem;
}

.continue-arrow {
    font-size: 1.5rem;
    color: #28a745;
    margin-top: 0.5rem;
}

.end-box {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 0.8rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.end-box h6 {
    color: #721c24;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.end-box small {
    color: #721c24;
    font-size: 0.7rem;
}

/* Info Cards */
.info-simple {
    background: white;
    border-left: 5px solid #0B5E91;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.info-simple:hover {
    transform: translateY(-3px);
}

.info-simple h6 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-simple h6 i {
    color: #0B5E91;
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.info-simple p {
    color: #666;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flowchart-zigzag {
        padding: 1rem;
    }
    
    .flow-row, .flow-row.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .connector-right, .connector-left {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .step-left, .step-right, .step-center {
        max-width: 100%;
    }
    
    .decision-split {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .step-box {
        padding: 1rem;
    }
    
    .step-box h5 {
        font-size: 1rem;
    }
    
    .step-box p {
        font-size: 0.8rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}