*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f90;
    color: #fff;
    overflow-x: hidden;
}

.header {
    position: relative;
    top: 0;
    width: 100%;
    height: 20vh;
    overflow: hidden;
}

.navbar {
    position: fixed;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    padding: 0 6%;
    margin: 0 auto;
    width: 100%;
    height: 70px;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
}

.logo {
    position: relative;
}

.logo::before {
    content: "";
    display: inline-block;
    background-image: url(../img/logo-tp2.png);
    width: 60px;
    height: 60px;
    margin: 20px 0;
    background-size: contain;
    background-repeat: no-repeat;
}


.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    position: relative;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 10px 15px;
    font-weight: 600;
}
 
.nav-links a:hover{
    color: #f90;
}

.nav-links a:after{
    content: '';
    position: relative;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f90;
    transition: width 0.3s ease;
}


.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-2px, -2px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-2px, -2px);
}



/* mobile-menu */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
    position: fixed;
    top: 70px;
    right: 100;
    width: 50%;
    height: calc(100vh - 60px);
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    transition: left 0.3s ease;
    z-index: 999;
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu ul li a:hover {
    background-color: #555;
}

.container-header {
    transform: translate(0, -10%);
    background-size: cover;
    position: relative;
    height: 500px;
    background: #f5f5f5;
}

.container-header .slide .item {
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px #505050;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.slide .item:nth-child(3){
    left: 70%;
}

.slide .item:nth-child(4){
    left: calc(70% + 220px);
}

.slide .item:nth-child(5){
    left: calc(70% + 440px);
}

.slide .item:nth-child(n + 6){
    left: calc(70% + 660px);
    opacity: 0;
}

.item .content-header {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: #eee;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
}


.slide .item:nth-child(2) .content-header {
    display: block;
}

.content-header .name {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
}

.content-header .description {
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}


.content-header button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.button-slide {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
}

.button-slide button {
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}

.button-slide button:hover {
    background: #ababab;
    color: #fff;
}

/*----- Course -----*/

.content {
    overflow: hidden;
    flex: 1;
    background-color: #f0f0f0;
}

.course{
    background: #ffebc1;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

section h1{
    color : #333;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}


section p{
    color: rgb(37, 37, 37);
    line-height: 1.6;
    flex-grow: 1;

}

.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}


.course-container, .row1{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.course-col {
    flex: 0 0 calc(50% - 20px); /* 2 kolom */
    background: #ffdea0;
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 30px 22px;
    box-sizing: border-box;
    transition: 0.5s;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.course-col:hover{
    box-shadow: 0 0 20px 0px rgb(255, 225, 191);
}

/*----- campus -----*/

.campus{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
.campus-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.campus-col img{
    width: 100%;
    display: block;
}
.layer{
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer:hover{
    background: #ff7c01b7;
}
.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 1s;
}
.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}


/*------ facilities -----*/

.facilities{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
.facilities-col{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
}
.facilities-col img{
    width: 100%;
    border-radius: 10px;
}
.facilities-col p{
    padding: 0;
}
.facilities-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}

/*----- testimonials -----*/

.testimonials{
    width: 80%;
    margin: 0 20px;
    padding-top: 100px;
    text-align: center;

}

.testimonials-col{
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    /* background: #fff3f3; */
    background-color: rgb(233, 194, 121);
    padding: 25px;
    cursor: pointer;
    display: flex;
}
.testimonials-col img{
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}
.testimonials-col p{
    padding: 0;
}
.testimonials-col h3{
    margin-top: 15px;
    text-align: left;
}

.medsos {
    padding-top: 40px;
    width: 80%;
    margin: auto;
    padding: 50px 0px 25px 0px;
    text-align: center;
}

.medsos h1 {
    color : #333;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

#event h1 {
    padding-top: -20px;
    width: 80%;
    margin: auto;
    padding: 50px 0px 25px 0px;
    text-align: center;
}

.banner-container {
      max-width: 1200px;
      margin: 0 auto;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      border-radius: 10px;
      position: relative;
    }
    
    /* Banner background image */
.banner-image {
      width: 100%;
      height: 400px;
      background-image: url('../img/tp2..jpeg'); /* Ganti dengan URL gambar Anda */
      background-size: cover;
      background-position: center;
      position: relative;
}

    
    /* Overlay gradien untuk membuat teks lebih mudah dibaca */
.banner-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 100%);
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 40px;
}
    
    /* Konten banner */

.banner-content {
      color: white;
      max-width: 70%;
}
    
.banner-title {
      font-size: 2.8rem;
      font-weight: 800;
      margin-bottom: 15px;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
    
.banner-description {
      font-size: 1.3rem;
      margin-bottom: 5px;
      line-height: 1.5;
      color: white;
      margin-left: -8px;
}
    
.banner-date {
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 20px;
      display: flex;
      align-items: center;

}
    
.banner-date svg {
      margin-right: 10px;
}

.banner-content a {
    margin-bottom: 10px;
}
    

    /* Button pendaftaran */
.banner-button {
      display: inline-block;
      background-color: red;
      color: white;
      font-size: 1.1rem;
      font-weight: 600;
      text-decoration: none;
      padding: 12px 30px;
      border-radius: 50px;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
    }
    
.banner-button:hover {
      background-color: #ff8800;
      transform: translateY(-3px);
      box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.cta{
    margin: 100px auto;
    max-width: 1200px;
    background-image:url(../img/W.jpeg); 
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}


.cta h1{
    color: #ffffff;
    margin-bottom: 40px;
    padding: 0;
}

.cta-button {
      display: inline-block;
      background-color: #ff9900;
      color: white;
      font-size: 1.1rem;
      font-weight: 600;
      text-decoration: none;
      padding: 12px 30px;
      border-radius: 50px;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

/* Footer */
.footer {
    background-color: rgba(255, 165, 0, 0.8);
    color: black;
    width: 100%;
    padding-top: 20px;
    text-align: left;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 0 10px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #ffdea0;

}

.contact-info {
    left: 20px;
}

.contact-info svg {
    margin-right: 10px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.contact-info i {
    margin-right: 10px;
    color: #3498db;
}

.quick-links ul {
    list-style: none;
}

.quick-links ul li a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
    /* margin-left: -40px; */
}

.quick-links ul li a:hover {
    color: #ffdea0;
    padding-left: 5px;
}


.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #35595e;
    border-radius: 50%;
    color: #ecf0f1;
    transition: all 0.3 ease;
    text-decoration: none;

}

.social-icon:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.map-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 20px;
}

.newsletter input {
      width: 100%;
      padding: 10px;
      border: none;
      border-radius: 4px;
      margin-bottom: 10px;
    }
    
.newsletter button {
    padding: 10px 20px;
    background-color: #ffdea0;
    color: black;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
}   

.bottom-bar {
    margin-top: 30px;
    background-color: #ffdea0;
    padding: 5px;
    color: black;
    font-size: 14px;
}

@media screen and (max-width: 900px) {
   .slide .item:nth-child(n+3){
        display: none;
    }

    .slide .item:nth-child(n+4){
        display: none;
    }
   
    .banner-container {
        margin: 0 20px;
    }
      
    .banner-image {
        height: 400px;
    }
      

      
    .banner-content {
        max-width: 90%;
    }
      
    .banner-title {
        font-size: 2rem;
    }
      
    .banner-description {
        font-size: 1.1rem;
    }

    .cta {
        border-radius: 5px;
        margin: 20px 16px;
    }


}

@media screen and (max-width: 768px) {
    .nav-content {
        flex-wrap: nowrap;
    }

    .nav-links {
        display: none;
    }

    .hamburger { 
        display: flex;
    }

    .course-col {
        flex: 0 0 100%;
        max-width: 95%; /* atau 90%, sesuai selera */
        margin: 0 auto 20px auto; /* tengah + bawah ada jarak */
    }

    .course-container, .row1 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 1 kolom */
    }

    .campus-col {
        margin-bottom: 20px; /* Mengatur jarak antar gambar */
    }

   
    #event h1 {
        padding-top: 30px;
        font-size: 28px;
    }

    .banner-container {
        margin: 0 15px;
        border-radius: 8px;
    }

    .banner-image {
        height: 350px;
    }

    .banner-overlay {
        padding: 20px;
    }

    .banner-content {
        max-width: 100%;
    }

    .footer {
        text-align: left;
        padding: 0;
    }
    
    .footer h3{
        text-align: left;
    }

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

    .footer-section p{
        padding-left: 0px;
    }

    .social-links {
        margin-left: 0px;
    }

    .map-container {
        height: 150px;
    }
}

@media screen and (max-width: 700px) {
    .row{
        flex-direction: column;
    }
    
    .text-box h1 {
        font-size: 30px;
    }

    .cta h1{
        font-size: 20px;
    }

    .testimonials-col img{
        margin-left: 0px;
        margin-right: 15px;
    }
}


@media screen and (max-width: 480px) {
    .item .content-header {
        left: 20px;
    }

    .content-header .name {
        font-size: 22px;
    }

    #event h1 {
        padding-top: 20px;
        font-size: 24px;
    }

    .banner-container {
        margin: 0 10px;
        border-radius: 6px;
    }

    .banner-image {
        height: 300px;
    }

    .banner-content {
        max-width: 100%;
    }
      
    .banner-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
      
    .banner-description {
        font-size: 0.9rem;
        margin-left: 0;
    }

    .banner-date {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .banner-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

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