*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "poppins", sans-serif;
    background-color: #d3d3d3;
}

header{
    background-color: white;
    color: black;
    padding: 10px 0px;
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}
.logo-container img{
    width: 50px;
    margin-left: 20px;
}
.logo-container{
    display: flex;
    align-items: center;
    color: rgb(95, 162, 250);
}
.in{
    font-size: 15px;
    padding: 1px 10px;
}
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 150px;
    gap: 20px;
    background-color: white;
    z-index: 100;
}
nav a{
    text-decoration: none;
    color: rgb(95, 162, 250);
    font-weight: 450;
    font-size: 20px;
}
nav a:hover{
    color: rgb(28, 28, 218);
}
i{
    display: none;
}

#beranda{
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.5);
    height: 900px;
    justify-content: center;
    align-items: center;
    color: white;
}
#beranda::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    background: url(asets/sd.jpg) no-repeat center center/cover;
    height: 900px;
    width: 100%;
    z-index: -1;
    opacity: .8;
}
.main h2 {
    font-size: 2.5rem;
    text-align: center;
    font-weight: 600;
    font-family: 'Times New Roman', Times, serif;
    color: #00bfff;
}
.main p {
    font-size: 1.5rem;
    text-align: center;
}
.main{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 45%;
    right: 10%;
    gap: 15px;
}
.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #00bfff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#sejarah{
    background-color: #fff;
    justify-items: center;
}
h2{
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
    color: #00bfff;
}
.sejarah-grid {
    display: flex;
    gap: 30px;
    align-items: center;
}
.sejarah-text{
    margin-top: 1.5rem;
    margin-right: 45px;
}
.sejarah-text h3 {
    color: #00bfff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    margin-left: 45px;
}
.sejarah-text p {
    margin-bottom: 15px;
    margin-left: 45px;
    text-align: left;
}
.sejarah-img img {
    width: 350px;
    height: 650px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    justify-content: center;
    margin-left: 45px;
}
.sejarah-text ul li{
    margin-bottom: 15px;
    margin-left: 45px;
}


#fasilitas{
    padding: 45px;
}
.fasil{
    justify-items: center;
    color: #00bfff;
    padding-top: 1rem;
    background-color: #d3d3d3;
}
.fasil-con{
    overflow-x: auto;
    display: flex;
    gap: 20px;
    padding: 20px;
    width: 1300px;
    border-radius: 50px;
}
.fasil-item{
    width: 400px;
    color: black;
    background-color: white;
    justify-items: center;
    padding: 1rem;
    border-radius: 20px;
}
.fasil-item img{
    width: 300px;
    border-radius: 10px;
    border: 1px solid black;

}
.fasil h2{
    font-size: 2.5rem;
}
.fasil-item{
    transition: transform 0.3s ease, box-shadow 0.3s;
}
.fasil-item:hover{
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgb(0, 0, 0, 0.5);
}


#prestasi{
    background-color: white;
    padding: 45px;
}
.tab-content h2{
    text-align: center;
    font-size: 2.5rem;
    color: #00bfff;
}
.prestasi-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-left: 45px;
    margin-right: 45px;
}
.prestasi-card{
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.prestasi-card:hover{
    transform: translateY(-10px);
}
.prestasi-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}
.prestasi-card h4{
    padding: 15px;
    color: black;
    font-size: 1.2rem;
}
.prestasi-card p {
    padding: 0 15px 15px;
    color: black;        
}


#extra{
    display: flex;
    flex-direction: column;
    padding: 45px;
    background-color: #d3d3d3;
}
.row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
/* .box i{
    font-size: 45px;
} */
.box{
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 450px;
    border: 1px solid black;
    margin: 40px;
    align-items: center;
    text-align: justify;
    padding: 10px;
    border-radius: 15px;
    background: linear-gradient(to top, #2692b6 50%, white 50%);
    background-size: 100% 200%;
    transition: all .8s;
    gap: 25px;
}
.box:hover{
    background-position: left bottom;
    color: white;
    border: none;
    box-shadow: 0 0 20px grey;
}
.foto-extra{
    width: 150px;
    border-radius: 10px;
    border: 1px solid ;
}


.berita {
    padding: 0.5rem 2rem;
    height: 850px; 
    background: white;
    margin-bottom: 25px;
    color: black;

}
.berita h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #00bfff;
    padding-top: 2rem;
}
.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.berita-item {
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid grey;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: white;
}
.berita-item:hover {
    transform: translateY(-10px);
} 
.berita-item img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid white;
}
.berita-item h3, .berita-item p {
    padding: 1rem;
    font-size: 1.1rem;
}
.berita-item a {
    display: inline-block;
    margin: 1rem;
}
.btn2 {
    display: inline;
    padding: 0.75rem 1.5rem;
    background-color: grey;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}
.btn2:hover {
    background-color: #00bfff;
    color: white;
}


.photo-gallery{
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}
.pic{
    position: relative;
    height: 230px;
    border-radius: 10px;
    box-shadow: 3px 4px 5px lightgray;
    cursor: pointer;
}
.pic img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: .5s;
}
.pic::before{
    content: "Kegiatan-Kegiatan";
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 22px;
    font-weight: bold;
    width: 100%;
    margin-top: -100px;
    opacity: 0;
    transition: .3s;
    transition-delay: .2s;
}
.pic:after{
    content: "";
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    height: 0;
    background-color: rgba(0, 0, 0, .4);
    transition: .3s;
}
.pic:hover:after{
    height: 100%;
}
.pic:hover:before{
    margin: 0;
    opacity: 1;
}


#kontak{
    background-color: white;
}
.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}
.kontak-info{
    margin-left: 45px;
}
.kontak-info h3 {
    color: black;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.kontak-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.kontak-info i {
    color: #2692b6;
    width: 20px;
}
.kontak-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-right: 45px;
}
.masukan{
    display: flex;
    align-items: center;
    margin-left: 45px;
}
.contact-left{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
}
.contact-left-title h3{
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.5rem;
}
.contact-left-title hr{
    border: none;
    width: 165px;
    height: 3px;
    background-color: #00bfff;
    border-radius: 10px;
    margin-bottom: 20px;
}
.contact-inputs{
    width: 400px;
    height: 50px;
    border: none;
    outline: none;
    font-weight: 500;
    padding-left: 15px;
    color: black;
    border-radius: 50px;
    background-color: #d3d3d3;
}
.contact-left textarea{
    height: 140px;
    padding-top: 15px;
    border-radius: 20px;
    font-weight: 600;
}
.contact-inputs:focus{
    border: 2px solid #00bfff;
}
.contact-inputs::placeholder{
    color: black;
}
.contact-left button{
    display: flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 13px;
    color: white;
    gap: 10px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(#00bfff, #2692b6);
    cursor: pointer;
}



footer {
    text-align: center;
    padding: 25px 0;
    background: #2692b6;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}
.img1{
    width: 35px;
    height: 35px;
    border-radius: 50px;
}





@media only screen and (max-width: 768px) {
    
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 100;
      }
    
      #menu-icon {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        margin-left: auto;
        margin-right: 20px;
        color: #00bfff;
      }
    
      nav {
        position: absolute;
        top: 100%;
        right: -35px;
        width: 50%;
        padding: 0.1rem 2rem;
        background-color: #ffffff;
        border-bottom-left-radius: 2rem;
        border-left: 2px solid #00bfff;
        border-bottom: 2px solid #00bfff;
        display: none;
      }
      nav a {
        display: block;
        font-size: 1rem;
        margin: 1rem 0;
        align-items: center;
        color: #00bfff;
      }
      nav.active {
        display: block;
      }
      .sejarah-grid{
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
      }
      .fasil-con {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        overflow: auto;
        height: 570px;
        gap: 20px;
        padding: 20px;
        max-width: 500px;
        border-radius: 50px;
      }
    
      .fasil-item {
        width: 300px;
        color: #333333;
        background-color: #ffffff;
        justify-items: center;
        padding: 1rem;
        border-radius: 20px;
      }
    
      .fasil-item img {
        width: 200px;
        border-radius: 10px;
        border: 1px solid black;
      }
      .prestasi-grid{
        flex-wrap: wrap;
      }
      .berita-slider {
        position: relative;
        overflow: hidden;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
      }
      .berita-item {
        display: none;
        width: 350px;
        text-align: center;
        transition: opacity 0.5s ease-in-out;
        transition: transform 0.3s ease;
      }
      .berita-item.active {
        display: block;
        opacity: 1;
      }
      .photo-gallery{
        grid-template-columns: repeat(2, 1fr);
      }
      .kontak-grid{
        grid-template-columns: 1fr;
      }
      .kontak-map{
        justify-content: center;
      }
    
}