@media (max-width: 1024px) {
   /*==================== NAVBAR ====================*/
    nav {
        flex-wrap: nowrap;
        align-items: center;
        padding: 0 1rem;
    }
    nav .logo span {
        font-size: 1.5rem;
    }
    nav ul.hidden {
        display: none;
    }
    nav ul {
        background: linear-gradient(92deg,rgba(37, 38, 66, 1) 7%, rgba(55, 58, 140, 1) 93%);
        position: absolute;
        top: 96px; 
        left: 0;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        flex-direction: column;
    }
    nav ul li a {
        font-size: 1rem;
    }
    nav .menu-icon {
        display: flex;
        cursor: pointer;
    }

    /* Hero Section */
    .main-container {
          background-position: center 0%;
    }
    .card-hero {
        transform: translateY(-50px);
    }

    .content .judul-content {
        font-size: 3.5rem;
    }

    .content p {
        font-size: 0.9rem;
        padding: 0 20px;
        text-align: center;
    }

    /* Ketentuan Section */
    
    .ketentuan-umum {
        transform: translateY(-100px);
    }

    .ketentuan-card {
        padding: 0 20px;
    }    
    
    /* MODE TABLETTT */
    @media (max-width: 768px) {
        /* ...existing code... */
    
        /* About Content SVG */
        .about-content .ungu {
            width: 280px; /* atau sesuaikan ukuran yang diinginkan */
            height: auto;
        }
    
        /* Media Partner Content SVG */
        .mediapartner-content .ungu {
            width: 280px; /* atau sesuaikan ukuran yang diinginkan */
            height: auto;
            transform: translateX(0); /* reset transform jika ada */
        }
    
        /* Collaboration Content SVG */
        .collaboration-header .ungu {
            width: 280px; /* atau sesuaikan ukuran yang diinginkan */
            height: auto;
            transform: translateX(0); /* reset transform jika ada */
        }
    }
    
    /* MODE HP */
    @media (max-width: 480px) {
        .about-content .ungu,
        .mediapartner-content .ungu,
        .collaboration-header .ungu {
            width: 200px; /* lebih kecil lagi untuk mobile */
            height: auto;
        }
    }

    .card {
        width: calc(50% - 20px);
        min-width: 280px;
    }

    /* About Section */
    .about-us .judul-content {
      font-size: 2rem;
    }
    .about-content {
        padding: 40px;
        gap: 60px;
        height: auto;
    }

    .about-content h1 {
        font-size: 4rem;
    }

    .about-content p {
        font-size: 1.2rem;
    }

    /* Media Partner Section */
    .mediapartner-content {
        height: auto;
        padding: 60px 0;
    }

    .mediapartner-content h1 {
        font-size: 2.8rem;
    }

    .mediapartner-content .ungu {
        transform: translateX(200px);
    }

    .terms-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    /* Collaboration Section */
    .collaboration-content {
        height: auto;
        padding: 60px 0;
    }

    .collaboration-header h1 {
        font-size: 3rem;
    }

    .collaboration-header p {
        font-size: 1.2rem;
    }

    .collaboration-header .ungu {
        transform: translateX(100px);
    }

    .steps-container {
        padding: 0 20px;
    }

    .hero-section,
    .about-section,
    .maskot-section,
    .benefit-section,
    .guidebook-section,
    .greatspeaker-section,
    .dokumentasi-section,
    .aftermovie-section,
    .faq-section {
        height: auto;
        padding: 60px 20px;
    }
    .about-section h2,
    .maskot-section h2,
    .benefit-section h2,
    .guidebook-section h2,
    .greatspeaker-section h2,
    .dokumentasi-section h2,
    .aftermovie-section h2,
    .faq-section h2 {
        font-size: 11vw;
        text-align: center;
    }
    
    .card .content {
        padding: 60px;
    }
}
@media (max-width: 768px) {
    .hero-section,
    .about-section,
    .maskot-section,
    .benefit-section,
    .guidebook-section,
    .greatspeaker-section,
    .dokumentasi-section,
    .aftermovie-section,
    .faq-section {
        height: auto;
        padding: 60px 20px;
    }
    
    .about-section h2,
    .maskot-section h2,
    .benefit-section h2,
    .greatspeaker-section h2,
    .dokumentasi-section h2,
    .aftermovie-section h2,
    .faq-section h2 {
        font-size: 11vw;
        text-align: center;
    }
    
    .hero-section p,
    .about-section p,
    .maskot-section p,
    .guidebook-section p,
    .greatspeaker-section p,
    .dokumentasi-section p,
    .aftermovie-section p{
        font-size: 1rem;
    }

    .about-section .text-about,
    .maskot-content .text-maskot,
    .greatspeaker-section .text-greatspeaker,
    .dokumentasi-section p,
    .aftermovie-section p {
        max-width: 90%;
    }

    /*==================== NAVBAR ====================*/
    nav {
        flex-wrap: nowrap;
        align-items: center;
        padding: 0 1rem;
    }

    nav .logo span {
        font-size: 1.5rem;
    }
    nav ul.hidden {
        display: none;
    }
    nav ul {
        background: linear-gradient(92deg,rgba(37, 38, 66, 1) 7%, rgba(55, 58, 140, 1) 93%);
        position: absolute;
        top: 96px; 
        left: 0;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        flex-direction: column;
    }
    nav ul li a {
        font-size: 1rem;
    }
    nav .menu-icon {
        display: flex;
        cursor: pointer;
    }

    /* Hero Section */
    .content .judul-content {
        font-size: 2.8rem;
    }

    .button {
        flex-direction: column;
        gap: 10px;
    }

    /* About Section */
    .about-content h1 {
        font-size: 3rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    /* Media Partner Section */
    .mediapartner-content h1 {
        font-size: 2.2rem;
    }

    .mediapartner-content .ungu {
        transform: translateX(100px);
    }

    .terms-container {
        grid-template-columns: 1fr;
    }

    /* Collaboration Section */
    .collaboration-header h1 {
        font-size: 2.5rem;
    }

    .collaboration-buttons {
        flex-direction: column;
        align-items: center;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-item {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Hero Section */
    .content .judul-content {
        font-size: 2.2rem;
    }

    /* Ketentuan Section */
    .card {
        width: 100%;
    }

    /* Media Partner Section */
    .mediapartner-content .ungu {
        transform: translateX(50px);
    }

    /* Collaboration Section */
    .collaboration-header .ungu {
        transform: translateX(50px);
    }
}

@media (max-width: 360px){
    .hero-section p,
    .about-section p,
    .maskot-section .text-maskot p,
    .guidebook-section p,
    .greatspeaker-section .text-greatspeaker,
    .dokumentasi-section p,
    .aftermovie-section p{
        font-size: 0.9rem;
    }
}

/* Responsive styling collaborating */
@media (max-width: 1024px) {
    .steps-container svg {
        width: 700px;
    }
    
    .steps-container > div:last-child {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .steps-container {
        gap: 40px;
    }

    .steps-container svg {
        width: 500px;
    }

    .steps-container > div:last-child {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .step-item {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .steps-container > div:first-child {
        display: none; /* Sembunyikan SVG */
    }

    .steps-container {
        padding: 20px;
    }

    .steps-container > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin: 0;
        width: 100%;
    }

    .step-item {
        position: relative;
        padding-left: 50px; /* Beri ruang untuk circle */
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .step-item::before {
        content: counter(step-counter); /* Tambahkan nomor otomatis */
        counter-increment: step-counter;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 35px;
        height: 35px;
        background: #5358DD;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 18px;
    }

    .step-item h3 {
        font-size: 1.1rem;
        margin: 0;
    }

    .step-item p {
        font-size: 0.9rem;
        margin: 0;
        color: #666;
    }
}

/* Tambahkan counter reset di parent */
.steps-container > div:last-child {
    counter-reset: step-counter;
}

/* =============== section Footer ================ */
.footer-text{
        display: flex;
        position: relative;
        gap: 60px;
        padding: 20px 20px 0 20px;
      }
      .logo-section{
        margin-left: 0px;
      }
      .section-3{
        margin-top: -20px; 
      }


@media (max-width: 768px) {
    .hero-section {
      height: 500px;
      padding-top: 50px;
    }
    .hero-title h1 {
      font-size: 4rem;
    }
    
    .hero-title p {
      letter-spacing: -1px;
      font-size: 1.5rem;
    }
    .section-ke2 {
      background-position-y: -100px;
    }
    .section-ke2 h1,
    .section-ke3 h1,
    .section-ke4 h1,
    .section-ke5 h1 {
      font-size: 2.3rem;
      margin-bottom: 40px;
    }
    
    .radio-buttons {
      flex-direction: column;
      gap: 30px;
    }
    
    .radio-card {
      width: 300px;
    }

    .radio-card img {
      height: 150px;
    }

    .radio-card span {
      font-size: 1.8rem;
    }

    .form,
    .form-2 {
      padding: 0 15px;
    }

    .form input[type="text"],
    .form input[type="number"] {
      font-size: 1rem;
      padding: 0.8rem;
    }
    
    .label,
    .label-2 {
      max-width: 300px;
      font-size: 1rem;
    }
    
    .custom-file-upload {
      font-size: 1.2rem;
      padding: 1rem;
      max-width: 220px;
    }
    
    .custom-file-upload i {
      font-size: 1.5rem;
    }


    .elipse-1,
    .elipse-2,
    .elipse-4,
    .elipse-5,
    .elipse-6,
    .elipse-7 {
      width: 200px;
      height: auto;
    }

    .section-ke2 {
      height: 100%;
      padding: 4rem 0!important;
    }
    .section-ke3 {
      height: 100%;
      padding: 2rem 0!important;
    }
    .form {
      margin: 20px;
    }
    .elipse-3{
      display: none;
    }

    .form {
      max-width: 340px;
    }
    #Nama, #Anggota, #TimLead, #NoTelepon, #Institusi, #Angkatan, #Instansi {
      width: 90%;
    }
    
    .section-ke4 {
      height: 100%;
      padding: 0 1rem 2rem !important;
    }
    .section-ke5 {
      height: 100%;
      margin: 0;
      padding: 0 1rem 0 !important;
    }
    .section-ke5 .payment-info{
      font-size: 1em;
    }
    .button-group {
      margin: 2rem 0 4rem;
      justify-content: center;
      align-items: center;
    }   
    .button-group .submit,
    .button-group .btn-kembali {
      padding: 0.8rem 2rem;
      font-size: 1.2rem;
      min-width: 300px;
    }
    .elipse-7{
      display: none;
    }

    .hero-section-thanks{
      padding: auto 0.5rem;
      height: 90vh;
    }
    .hero-section-thanks .hero-title h1{
      font-size: 3rem;
    }
    .hero-section-thanks .hero-title p{
      font-size: 1.5rem;
    }
    .thanks-section{
      padding: 0 0.5rem;
      height: 50vh;
    }
    .thanks-title h2{
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }
    .thanks-title p{
      font-size: 1.2rem;
      margin-bottom: 2rem;
    }
    .thanks-title span {
      font-size: 2.5xrem;
    }

    .footer-text{
      display: flex;
      position: relative;
      gap: 70px;
      padding: 20px 0 0 20px;
    }
    .logo-section{
      margin-left: 0px;
    }
    .section-3{
      margin-top: -40px; 
    }
    .elipse1 {
      position: absolute;
      width: 229px;
      height: 229px;
      top: -10%;
      right: 0;
    }
    .elipse2 {
      position: absolute;
      width: 201px;
      height: 201px;
      bottom: 9%;
      left: 0;
    }
  }
      
  @media only screen and (min-width: 768px){
	.main-menu .navigation > li > ul,
	.main-menu .navigation > li > ul > li > ul{
		display:block !important;
		visibility:hidden;
		opacity:0;
	}
}
  

  @media only screen and (max-width: 599px){
	.main-header .header-top .top-left{
		display:none;	
	}
	
	.main-header .header-top .top-right{
		width:100%;
		text-align:center	
	}
}

/* responsive KERJASAMA SECTION */
/* Responsive rules khusus untuk kerjasama (formpengajuan) */
@media (max-width: 1024px) {
  .form-section {
    padding: 60px 40px;
    gap: 25px;
  }
  .form-header {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .form-header h1 {
    font-size: 2rem;
  }

  .form-container {
    max-width: 900px;
    margin: auto;
    padding: 0 12px;
  }

  .input-row {
    display: flex;
    gap: 18px;
  }

  .input-row input,
  .form-container > input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    font-size: 1rem;
  }

  .upload-area {
    padding: 24px;
    gap: 10px;
  }

  .browse-btn {
    padding: 10px 18px;
  }

  .submit-btn {
    width: 320px;
    height: 56px;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .form-section {
    padding: 48px 24px;
  }

  .form-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .form-header svg {
    width: 56px;
    height: auto;
  }

  .form-header h1 {
    font-size: 1.6rem;
    margin: 0;
  }

  .form-container {
    padding: 0 10px;
  }

  /* stack inputs on small screens */
  .input-row {
    flex-direction: column;
    gap: 12px;
  }

  .upload-area {
    padding: 18px;
  }

  .upload-area svg {
    width: 52px;
    height: auto;
  }

  .browse-btn {
    padding: 9px 16px;
    font-size: 0.95rem;
  }

  .submit-btn {
    width: 260px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .form-section {
    padding: 36px 16px;
  }

  .form-header svg {
    width: 48px;
  }

  .form-header h1 {
    font-size: 1.3rem;
  }

  .form-container > input,
  .input-row input {
    padding: 12px;
    font-size: 0.95rem;
  }

  .upload-area {
    padding: 14px;
  }

  .browse-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .submit-btn {
    width: 220px;
    height: 48px;
  }
}

@media (max-width: 360px) {
  .form-header h1 {
    font-size: 1.15rem;
  }
  .submit-btn {
    width: 200px;
  }
}