.slider h3,
.slider h5,
.news h2,
.news h5{
	text text-shadow: 1px 1px 3px rgba(0,0,0,0.5)  
}

section,
footer{
	padding: 20px 0;
}

.event{
	margin: auto;
}

.parralax-container{
	height: 240px;
}

.hero-text {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  display: inline-block;
  border-radius: 5px;
}

.hero-text h2, .hero-text h3, .hero-text h4 {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  margin: 10px 0;
}

.btn-large {
  margin-top: 20px;
  font-weight: bold;
}

@media (max-width: 600px) {
  .slider img {
    object-position: 30% bottom; /* Geser sedikit ke tengah di mobile */
  }
}

.map-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .map-container {
    position: relative;
    padding-bottom: 75%; /* Aspect ratio 4:3 */
    height: 0;
    overflow: hidden;
    margin-bottom: 15px;
  }
  
  .map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 2px;
  }
  
  @media only screen and (max-width: 600px) {
    .map-card {
      margin-bottom: 20px;
    }
  }
 
 /* Timeline Styles */
  .timeline {
    position: relative;
    padding-left: 50px;
    margin: 30px 0;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
  }
  
  .timeline-item {
    position: relative;
    margin-bottom: 30px;
  }
  
  .timeline-badge {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1;
  }
  
  .timeline-content {
    margin-left: 70px;
    transition: transform 0.3s;
  }
  
  .timeline-content:hover {
    transform: translateY(-5px);
  }
  
  .tabs .tab a {
    font-weight: 600;
  }
  
  @media only screen and (max-width: 600px) {
    .timeline {
      padding-left: 40px;
    }
    
    .timeline-badge {
      width: 40px;
      height: 40px;
      font-size: 20px;
    }
    
    .timeline-content {
      margin-left: 50px;
    }
  }
  /* Button Styles */
  .registration-btn {
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    border-radius: 50px;
    padding: 0 40px;
    height: 60px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(13, 71, 161, 0.3);
    transition: all 0.3s;
    margin-bottom: 20px;
  }
  
  .registration-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(13, 71, 161, 0.4);
    background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
  }
  
  .registration-btn:active {
    transform: translateY(1px);
  }
  
  .registration-info {
    margin-top: 15px;
  }
  
  .countdown-container {
    margin-top: 15px;
  }
  
  .countdown-chip {
    display: inline-block;
    padding: 8px 20px;
    background-color: #e3f2fd;
    border-radius: 50px;
    font-weight: 500;
    color: #0d47a1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  #countdown-days {
    font-size: 24px;
    font-weight: bold;
    margin-right: 5px;
  }
  
  @media only screen and (max-width: 600px) {
    .registration-btn {
      width: 90%;
      padding: 0 20px;
      font-size: 16px;
    }
  }
@media only screen and (min-width: 992px) {
  .brand-logo {
    position: absolute;
    width: auto;
    left: -250px;
  }

  .nav-wrapper ul.right {
    padding-right: 20px;
  }
}


    /* Loading screen */
      #loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
    opacity: 1;
  }

  #loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
  }

  .logo-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
  }

  .logo-wrapper img {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    animation: zoom 2s ease-in-out infinite;
  }

  .logo-wrapper::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid #00bcd4;
    border-right: 3px solid #4caf50;
    animation: spin 1.2s linear infinite;
    z-index: 1;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  @keyframes zoom {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.08);
    }
  }
  
  /* activity card */
  /* Custom Styles for Enhanced UX */
  #activities .card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  #activities .card:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.08);
    transform: translateY(-5px);
  }
  
  #activities .card-image {
    height: 200px;
    overflow: hidden;
  }
  
  #activities .card-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
  }
  
  #activities .card:hover .card-image img {
    transform: scale(1.05);
  }
  
  #activities .card-title.shadow-text {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  }
  
  #activities .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  #activities .post-meta {
    margin-bottom: 10px;
    font-size: 0.8rem;
  }
  
  #activities .card-action {
    margin-top: auto;
    border-top: 1px solid rgba(160,160,160,0.2);
  }
  
  @media only screen and (max-width: 600px) {
    #activities .card-image {
      height: 150px;
    }
  }
  
  /* Container utama card */
  /* Shadow untuk card-title agar teks putih terbaca */
    .card .card-image .card-title {
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 
                  -1px -1px 3px rgba(0, 0, 0, 0.8),
                  0 0 8px rgba(0, 0, 0, 0.5);
      width: 100%;
      padding: 10px;
      background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    }
    .campus-card {
      display: flex;
      flex-direction: column;
      height: 100%; /* Pastikan card memenuhi tinggi parent */
    }
    
    /* Atur tinggi gambar SAMA (mengikuti yang terpendek) */
    .campus-card .card-image {
      flex: 0 0 auto; /* Tidak boleh stretch */
      height: 200px; /* Atur tinggi tetap (bisa disesuaikan) */
      overflow: hidden; /* Hindari gambar keluar container */
    }
    
    /* Gambar mengisi container tanpa distorsi */
    .campus-card .card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* Crop proporsional */
      object-position: center;
    }
    
    /* Konten card mengikuti yang terpanjang */
    .campus-card .card-content {
      flex: 1; /* Mengisi sisa space */
      min-height: 120px; /* Tinggi minimal (opsional) */
    }
    
    /* Modal Pendaftaran */
    #modalPendaftaran .modal-content {
        padding: 0;
    }
    
    #modalPendaftaran .tabs {
        margin-top: 20px;
    }
    
    #modalPendaftaran .tab a {
        color: #3949ab;
    }
    
    #modalPendaftaran .tab a.active {
        font-weight: bold;
    }
    
    #modalPendaftaran .responsive-img {
        max-height: 70vh;
        width: auto;
        margin: 0 auto;
        display: block;
    }
    
    /* Animasi dan Efek Modern */
    .pulse-on-hover:hover {
        animation: pulse 1.5s infinite;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
    
    .hoverable {
        transition: all 0.3s ease;
    }
    
    .hoverable:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 10px rgba(0,0,0,0.2) !important;
    }
    
    .button-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    
    /* Responsive Adjustments */
    @media only screen and (max-width: 600px) {
        .button-group a.btn-large {
            width: 100%;
            margin-bottom: 1rem !important;
        }
    }
    .parallax-container {
      position: relative;
      color: white; /* Pastikan teks default berwarna terang */
    }
    
    .overlay-dark {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5); /* Gelap transparan */
      z-index: 1;
    }
    
    .container.news {
      position: relative;
      z-index: 2;
    }

/* Fullscreen Modal */
.modal.fullscreen {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    top: 0 !important;
    margin: 0 !important;
    border-radius: 0;
}

/* Tabs vertikal hanya untuk desktop */
.tabs-vertical {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid #ddd;
}
.tabs-vertical .tab {
    width: 100%;
}
.tabs-vertical .tab a {
    display: flex;
    align-items: center;
    padding: 12px;
    font-size: 14px;
}

/* Responsif: tab horizontal di mobile */
@media only screen and (max-width: 600px) {
    #tab-nav {
        order: -1;
    }

    .tabs-vertical {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .tabs-vertical .tab {
        min-width: 100px;
        border-right: none;
    }

    .tabs-vertical .tab a {
        justify-content: center;
        padding: 8px;
        font-size: 13px;
    }
}

/* Desktop Dropdown Styles */
nav ul.nav-menu {
    position: relative;
}

nav .dropdown {
    position: relative;
}

nav .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #1a237e;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    left: 0;
    top: 48%;
    padding: 0;
    margin: 0;
    list-style: none;
}

nav .dropdown:hover .dropdown-menu,
nav .dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-arrow {
    display: inline-block;
    margin-left: 5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    transition: transform 0.3s;
}

nav .dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Dropdown Styles */
.sidenav {
    width: 250px;
}

.sidenav .dropdown-menu {
    display: none;
    padding-left: 15px;
    background-color: rgba(0,0,0,0.1);
    list-style: none;
}

.sidenav .dropdown.active .dropdown-menu {
    display: block;
}

.sidenav .dropdown-arrow {
    float: right;
    margin-right: 10px;
}

.sidenav .dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Ensure proper spacing for mobile menu items */
.sidenav li a {
    padding: 0 16px;
    line-height: 44px;
}