/* Reset & Font */
* {
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #EAF4FF; 
  color: #2C3E50; 
  line-height: 1.6;
}

/* HEADER */
header {
  background:#4A90E2; 
  color: white; 
  padding: 15px 50px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}

header h1 {
  font-size: 1.5rem;
}

nav a {
  color: white; 
  text-decoration: none; 
  margin-left: 25px; 
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* HERO */
.hero {
  text-align: center; 
  padding: 80px 20px; 
  background: #EAF4FF;
}

.hero h2 {
  font-size: 2rem; 
  margin-bottom: 20px;
}

.hero p {
  margin-bottom: 30px; 
  font-size: 1.1rem;
}

.search-bar {
  max-width: 500px; 
  margin: 0 auto; 
  display: flex; 
  justify-content: center; 
  gap:10px;
}

.search-bar input[type="text"] {
  flex: 1; 
  padding: 12px 15px; 
  border: 1px solid #ccc; 
  border-radius: 5px;
}

.search-bar button {
  padding: 12px 20px; 
  border: none; 
  background: #4A90E2; 
  color: white; 
  border-radius: 5px; 
  cursor:pointer;
}

.search-bar button:hover {
  background: #357ABD;
}

#searchResults {
  margin-top: 15px; 
  color: #333; 
  font-style: italic;
}

/* Sections */
section {
  padding: 60px 50px;
}

section h3 {
  font-size: 1.8rem; 
  margin-bottom: 25px; 
  text-align:center;
}

/* Layanan */
.services {
  display: flex; 
  justify-content: space-around; 
  flex-wrap: wrap;
}

.service-item {
  background: white; 
  padding: 20px; 
  margin: 15px; 
  border-radius: 10px; 
  width: 220px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  text-align: center; 
  transition: transform 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
}

/* Koleksi */
.collection {
  display: flex; 
  justify-content: space-around; 
  flex-wrap: wrap;
}

.book-item {
  background: white; 
  padding: 15px; 
  margin: 15px; 
  border-radius: 10px; 
  width: 180px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  text-align: center; 
  transition: transform 0.3s;
}

.book-item:hover {
  transform: translateY(-5px);
}

/*Events*/
.events-section{
    padding: 60px 20px;
    background-color: #EAF4FF;
    font-family: arial, sans-serif;
}

.container{
    max-width: 1000px;
    margin: auto;
}

.section-title{
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.event-wrapper{
    display: flex;
    justify-content: center;
}

@media (max-width: 992px){
    .events.columns{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px){
    .events.columns{
        grid-template-columns: 1fr;
    }
}

.event-card{
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0,07);
    transition: 0,3s ease;
}

.event-card:hover{
    transform: translateY(-6px);
}

.event-card img{
   width: 100%;
   height: 220px;
   object-fit: cover;
}

.event-content{
    padding: 20px;
}

.event-content h3{
    margin-top: 0;
    margin-bottom: 10px;
}

.event-date, .event-location{
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.event-desc{
    font-size: 14px;
    color: #666;
}

/*SEARCH*/
.search-box{
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
}

.search-box input{
    border: none;
    padding: 6px 10px;
    outline: none;
    font-size: 14px;
}

.search-box button{
    border: none;
    background: #4f46e5;
    color: white;
    padding: 6px 12px;
    cursor: pointer;
}

.search-box button:hover{
    background: #3730a3;
}


/* Footer */
footer {
  background: #2C3E50; 
  color: white; 
  text-align: center; 
  padding: 25px;
}

footer a {
  color: white; 
  text-decoration: none; 
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* Hover effect untuk tim */
#team .book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Hover effect untuk layanan detail */
#layanan-detail .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Contact Form Styling */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#contact-form .form-group {
    margin-bottom: 20px;
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#contact-form button {
    padding: 12px 25px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

#contact-form button:hover {
    background: #357ABD;
}

#info-contact {
    text-align: center;
    margin-top: 50px;
}

/* Koleksi Grid */
#koleksi-grid .collection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
}

.book-item {
    background:white;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    text-align:center;
    padding:15px;
    cursor:pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow:0 4px 12px rgba(0,0,0,0.2);
}

.book-img {
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:5px;
    margin-bottom:10px;
}

/* Modal */
.modal {
    display:none;
    position:fixed;
    z-index:1000;
    left:0;
    top:0;
    width:100%;
    height:100%;
    overflow:auto;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background:white;
    margin:10% auto;
    padding:20px;
    border-radius:10px;
    max-width:500px;
    text-align:center;
    position:relative;
}

.modal-content .close {
    position:absolute;
    top:10px;
    right:15px;
    font-size:1.5rem;
    cursor:pointer;
}

/* Menu Login / Daftar */
.login-menu {
    text-align: center;
    margin: 40px 0;
}

.login-menu, .menu-buttons button {
    padding: 12px 25px;
    margin: 0 10px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.login-menu, .menu-buttons button:hover {
    background: #357ABD;
}

/* Hidden class untuk toggle form */
.hidden {
    display: none;
}

/* Form Login / Register */
.login-form, .register-form {
    max-width: 400px;
    margin: 20px auto 50px auto;
    padding: 30px 20px;
    background:white;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display:block;
    margin-bottom:8px;
    font-weight:500;
}

input {
    width:100%;
    padding:12px 15px;
    border:1px solid #ccc;
    border-radius:5px;
    font-size:1rem;
}

button[type="submit"] {
    width:100%;
    padding:12px;
    background:#4A90E2;
    color:white;
    border:none;
    border-radius:5px;
    cursor:pointer;
    font-size:1rem;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background:#357ABD;
}

/* ===== FORUM SECTION ===== */

.forum-section{
max-width:900px;
margin:40px auto;
padding:20px;
}

.forum-section h2{
margin-bottom:20px;
color:#4a90e2;
}


/* ===== FILTER ===== */

.forum-controls{
display:flex;
gap:10px;
margin-bottom:20px;
flex-wrap:wrap;
}

.forum-controls select,
.forum-controls input{
padding:8px;
border:1px solid #ccc;
border-radius:5px;
}


/* ===== FORM DISKUSI ===== */

.forum-form{
background:#f9f9f9;
padding:15px;
border-radius:8px;
margin-bottom:30px;
display:flex;
flex-direction:column;
gap:10px;
}

.forum-form input,
.forum-form select,
.forum-form textarea{
padding:10px;
border:1px solid #ccc;
border-radius:5px;
font-size:14px;
}

.forum-form textarea{
min-height:80px;
resize:vertical;
}

#btnKirimDiskusi{
background:#4a90e2;
color:white;
border:none;
padding:10px;
border-radius:5px;
cursor:pointer;
}

#btnKirimDiskusi:hover{
background:#367ed1;
}


/* ===== POST ===== */

.forum-post{
background:white;
border:1px solid #e0e0e0;
border-radius:8px;
padding:15px;
margin-bottom:20px;
}

.post-header{
display:flex;
gap:10px;
flex-wrap:wrap;
font-size:14px;
margin-bottom:8px;
}

.post-nama{
font-weight:bold;
}

.post-kategori{
background:#b9d9ff;
color:#4a90e2;
padding:2px 6px;
border-radius:4px;
font-size:12px;
}

.post-waktu{
color:#777;
font-size:12px;
}

.post-isi{
margin:10px 0;
line-height:1.5;
}


/* ===== POST ACTIONS ===== */

.post-actions{
display:flex;
gap:10px;
margin-top:10px;
}

.post-actions button{
background:#f1f1f1;
border:none;
padding:6px 10px;
border-radius:5px;
cursor:pointer;
}

.post-actions button:hover{
background:#e0e0e0;
}


/* ===== REPLY SECTION ===== */

.reply-section{
margin-top:15px;
border-top:1px solid #eee;
padding-top:10px;
}

.reply-form{
display:flex;
flex-direction:column;
gap:6px;
margin-bottom:10px;
}

.reply-form input,
.reply-form textarea{
padding:8px;
border:1px solid #ccc;
border-radius:5px;
font-size:13px;
}

.reply-form textarea{
min-height:50px;
}

.btn-kirim-reply{
background:#4a90e2;
color:white;
border:none;
padding:6px;
border-radius:5px;
cursor:pointer;
}

.btn-kirim-reply:hover{
background:#367ed1;
}


/* ===== LIST REPLY ===== */

.reply-list{
display:flex;
flex-direction:column;
gap:8px;
}

.reply-item{
background:#f5f5f5;
padding:8px;
border-radius:5px;
font-size:14px;
}

.reply-nama-user{
font-weight:bold;
display:block;
margin-bottom:3px;
}

