/* Profil Sekolah */
.banner {
	height: auto; 
	width: 100%;
	display: block;
	margin-top: 70px;
}

.banner-img {
	width: 100%;
	display: block;
}

.banner-img img {
	width: 100%;
	height: 572px;
	display: block;
	object-fit: cover;
	margin: 0;
	padding: 0;
}
.profile-content {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 20px;
}

.profile-content h2 {
	font-size: 28px;
	margin-bottom: 30px;
	font-weight: bold;
}
.profile-content h3 {
	color: #ff6600;
}

.profile-content p {
	line-height: 1.6;
	margin-bottom: 15px;
	margin-top: 20px;
	color: #333;
	text-align: justify;
}

.raudhah-list {
	margin-top: 20px;
}

.raudhah-list .item {
	margin-bottom: 15px;
  padding: 10px;
  border-left: 3px solid #ff6600;
  background: #fafafa;
  border-radius: 8px;

}

.raudhah-list .item strong {
	display: block;
	font-size: 18px;
	color: #ff6600;
	margin-bottom: 5px;
}

.raudhah-list .item p {
	margin: 0;
	color: #555;
}

/* Profil_Guru */
.struktur-pengurus {
	text-align: center;
	padding: 40px 20px;
}

.struktur-pengurus .judul {
	color: red;
	font-size: 32px;
	margin-bottom: 5px;

	font-weight: bold;
}

.struktur-pengurus .subjudul {
	font-size: 32px;
	margin-bottom: 50px;
	font-weight: bold;
}

.pengurus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: auto;
    justify-content: center; 
    margin-top: 60px;
}

.card-pengurus {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid black;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    text-align: center;
    max-width: 220px;   
    margin: auto;       
}

.card-pengurus img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Nama selalu di bawah */
.card-pengurus .nama {
    background-color: orange;
    padding: 8px 5px;
    font-weight: bold;
    font-size: 16px;
}

.no-pengurus {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;        
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #555;
    grid-column: 1 / -1;  
}

.struktur-img img {
    max-width: 100%;
    height: auto;
    margin: 0 auto 40px auto;
    display: block;
    margin-top: 30px;
}


/* Visi_misi */
.visi-misi {
	text-align: center;
	padding: 70px 20px;
}

.visi-misi .judul {
	color: red;
	font-size: 32px;
	font-weight: bold;
	margin-bottom: 5px;
}

.visi-misi .subjudul {
	font-size: 32px;
	font-weight: 600;
	margin-bottom: 40px;
}

.content {
	display: flex;
	justify-content: center;
}

.image-container {
	position: relative;
}

.image-container img {
	width: 100%;
	max-width: 600px;
	border-radius: 10px;
	transform: translateX(-110px);
}

/* Side button */
.side-buttons {
	position: absolute;
	top: 50%;
	right: -50px;
	transform: translateY(-50%);
	margin-right: 110px;
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.side-btn {
	background-color: orange;
	color: white;
	font-weight: bold;
	padding: 15px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: background 0.3s ease;
	white-space: nowrap;
	position: relative;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.side-btn i {
	font-size: 18px;
}

.side-btn:hover {
	background-color: #ff7f32;
}

/* Tooltip text */
.text {
	width: 400px;

	opacity: 0;
	transition: opacity 0.3s ease;
	text-align: left;
	color: #333;
	font-size: 14px;
	max-width: none; 
	position: absolute;
	left: calc(100% + 15px); 
	top: 50%;
	transform: translateY(-60%);

	background: white;
	padding: 20px 30px;
	border-radius: 6px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
	z-index: 10;
	white-space: normal;
	word-wrap: break-word;
}

.side-btn:hover .text {
	opacity: 1;
}

.text ol li {
	margin-top: 10px;
	text-align: left;
}

/* Kerja sama */
.container-kerjasama {
  width: 90%; /* biar lebih lebar */
  margin: 30px auto;
  background-color: #ff6600;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.header-kerjasama {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 40px;
}
.header-kerjasama h2, 
.header-kerjasama h3, 
.header-kerjasama h4 {
  margin: 5px 0;
  font-size: 24px;
}
.header-kerjasama h2 {
  color: #ff6600;
}

.title-box-kerjasama {
  background: linear-gradient(to bottom, #f97316 10%, #fca54f 100%);
  color: white;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.title-box-kerjasama h3 {
  margin: 5px 0;
}

/* Bagian konten */
.content-kerjasama {
  display: block;  
  color: black;   
}

table {
  width: 100%;  
  border-collapse: collapse;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
}
table, th, td {
  border: 1px solid #000;
}
th {
  background: linear-gradient(to bottom, #f97316 10%, #fca54f 100%);
  color: white;
  text-align: center;
  padding: 8px;
}
td {
  padding: 6px 10px;
  vertical-align: top;
}
tr:nth-child(even) {
  background: #ffe5d1;
}
tr:nth-child(odd) {
  background: #fff;
}
tr:hover {
  background: #ffd4a3;
}

/* Kolom */
.col-no {
  width: 40px;
  text-align: center;
}
.col-tempat {
  width: 35%;
  font-weight: bold;
}
.col-alamat {
  width: 55%;
}

/* Tablet */
@media (max-width: 768px) {
  .visi-misi {
    padding: 40px 15px;
  }

  .visi-misi .judul {
    font-size: 24px;
  }

  .visi-misi .subjudul {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .image-container img {
    max-width: 400px;      
    transform: translateX(-120px); 
  }

  .side-buttons {
    right: -30px;          
    margin-right: 130px;
    gap: 25px;            
  }

  .side-btn {
    padding: 10px 12px;
    font-size: 13px;
    gap: 6px;
  }

  .side-btn i {
    font-size: 14px;
  }

  .text {
    width: 260px;          
    font-size: 13px;
    padding: 12px 15px;
  }

  .text ol li {
    font-size: 13px;
    margin-top: 6px;
  }
}


/* Mobile */
@media (max-width: 480px) {

	/* profil sekolah */
    .banner {
        margin-top: 50px; 
    }

    .banner-img img {
        height: 220px; 
        object-fit: cover;
    }

    .profile-content {
        max-width: 100%;
        margin: 20px auto;
        padding: 0 15px;
    }

    .profile-content h2 {
        font-size: 22px;
        margin-bottom: 20px;
        text-align: center;
    }

    .profile-content h3 {
        font-size: 18px;
        text-align: center;
        margin-top: 25px;
    }

    .profile-content p {
        font-size: 14px;
        line-height: 1.5;
        text-align: justify;
    }

    .raudhah-list {
        margin-top: 15px;
    }

    .raudhah-list .item {
        margin-bottom: 12px;
        padding: 10px;
        border-left: 3px solid #ff6600;
        background: #fafafa;
        border-radius: 8px;
    }

    .raudhah-list .item strong {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .raudhah-list .item p {
        font-size: 13px;
        line-height: 1.5;
    }

	/* Profil guru */
	.struktur-pengurus {
        padding: 20px 10px;
    }

    .struktur-pengurus .judul {
        font-size: 22px;
        margin-bottom: 5px;
    }

    .struktur-pengurus .subjudul {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .pengurus-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
        max-width: 100%;
        padding: 0 5px;
    }

    .card-pengurus {
        max-width: 100%; 
        font-size: 14px;
    }

    .card-pengurus img {
        height: 150px; 
    }

    .card-pengurus .nama {
        font-size: 14px;
        padding: 6px 4px;
    }

	/* Visi misi */
	.visi-misi {
    padding: 25px 10px;
  }

  .visi-misi .judul {
    font-size: 20px;
  }

  .visi-misi .subjudul {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .image-container img {
    max-width: 260px;   
    transform: none;    
    border-radius: 8px;
  }

  .side-buttons {
    left: -55px;       
    right: auto;
    margin: 0;
    gap: 18px;
  }

  .side-btn {
    padding: 8px 10px;
    font-size: 12px;
    gap: 5px;
  }

  .side-btn i {
    font-size: 14px;
  }

  .text {
    min-width: 280px;           
    max-width: 85vw;           
    font-size: 13px;
    padding: 10px 15px;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    line-height: 1.5;
    box-sizing: border-box;
    text-align: justify;       
    white-space: normal;        
    word-wrap: break-word;     
}

  .text ol li {
    font-size: 12px;
    margin-top: 5px;
  }

  /* Kerja sama */
   .header-kerjasama {
    margin: 20px 0;
    padding: 0 10px;
  }

  .header-kerjasama h2 {
    font-size: 1.2rem;
  }

  .header-kerjasama h3 {
    font-size: 1rem;
  }

  .header-kerjasama h4 {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .container-kerjasama {
    width: 95%;
    margin: 15px auto;
    padding: 10px;
    border-radius: 6px;
    box-shadow: none;
  }

  .title-box-kerjasama {
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 6px;
  }
  .title-box-kerjasama h3 {
    font-size: 0.9rem;
  }

  .content-kerjasama {
    overflow-x: auto;
  }

  table {
    width: 100%;
    display: block;        
    overflow-x: auto;
    white-space: nowrap;  
    font-size: 12px;
  }

  th, td {
    padding: 6px;
  }

  .col-no {
    width: 30px;
  }

  .col-tempat {
    width: 150px;
  }

  .col-alamat {
    width: 250px;
  }
}