/* =========================
RESET
========================= */

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

body{
font-family:Arial,Helvetica,sans-serif;
background:#f5f5f5;
color:#111;
line-height:1.5;
}

a{
text-decoration:none;
color:inherit;
}

img{
display:block;
max-width:100%;
}

/* =========================
HEADER
========================= */

.top-header{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
padding:10px;
background:#fff;
border-bottom:1px solid #ddd;
}

.logo-box {
  width: 230px;
  /* Mencampur warna hitam transparan (opacity 65%) di atas gambar agar tulisan tetap kontras */
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), 
              url("https://raw.githubusercontent.com/joehanz/iklanbaris/refs/heads/main/image/iklanbaris.webp");
  background-size: cover;       /* Memastikan gambar memenuhi seluruh kotak logo */
  background-position: center;   /* Mengatur posisi gambar tepat di tengah kotak */
  background-repeat: no-repeat;  /* Mencegah gambar berulang jika kotak memanjang */
  color: #fff;
  padding: 18px;
}


.logo-box h1{
font-size:42px;
line-height:1;
margin-bottom:8px;
}

.logo-box p{
font-size:15px;
}

.search-box{
flex:1;
display:flex;
gap:0;
height:50px;
}

.search-box input{
flex:1;
border:2px solid #000;
border-right:none;
padding:0 15px;
font-size:15px;
}

.search-box select{
width:220px;
border:2px solid #000;
border-right:none;
padding:0 10px;
}

.search-box button{
width:60px;
border:none;
background:#000;
color:#fff;
font-size:18px;
cursor:pointer;
}

.post-btn{
background:#000;
color:#fff;
padding:15px 25px;
font-weight:bold;
white-space:nowrap;
}

/* =========================
MENU
========================= */

.main-menu{
display:flex;
justify-content:center;
background:#000;
overflow:auto;
}

.main-menu a{
color:#fff;
padding:14px 22px;
white-space:nowrap;
font-size:14px;
}

.main-menu a:hover{
background:#222;
}

/* =========================
HERO
========================= */

.hero{
height:260px;
background-size:cover;
background-position:center;
position:relative;
}

.hero-overlay{
position:absolute;
inset:0;
background:rgba(0,0,0,.45);
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
color:#fff;
padding:20px;
}

.hero-overlay h2{
font-size:56px;
line-height:1.15;
max-width:900px;
margin-bottom:15px;
}

.hero-overlay p{
font-size:32px;
}

/* =========================
STICKY BANNER
========================= */

.sticky-banner{
display:none;
position:fixed;
top:0;
left:0;
right:0;
z-index:999;
background:#fff;
padding:10px;
border-bottom:1px solid #ccc;
box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.sticky-banner.show{
display:flex;
justify-content:center;
}

.banner-728{
width:728px;
height:90px;
background:#fff;
border:2px dashed #777;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
}

/* =========================
LAYOUT
========================= */

.page-wrap{
max-width:1600px;
margin:15px auto;
display:grid;
grid-template-columns:300px 1fr 300px;
gap:15px;
padding:0 10px;
}

/* =========================
SIDEBAR
========================= */

.left-sidebar,
.right-sidebar{
position:sticky;
top:110px;
align-self:start;
}

.ad300{
width:100%;
height:300px;
background:#fff;
border:1px solid #ccc;
display:flex;
align-items:center;
justify-content:center;
font-size:40px;
font-weight:bold;
text-align:center;
margin-bottom:15px;
cursor: pointer;
}

.side-box{
background:#fff;
border:1px solid #ccc;
margin-bottom:15px;
}

.side-box h3{
background:#000;
color:#fff;
padding:10px 12px;
font-size:16px;
}

.side-box ul{
list-style:none;
}

.side-box li{
padding:12px;
border-bottom:1px solid #eee;
}

.mini-list{
padding:10px;
}

/* =========================
CONTENT
========================= */

.content{
background:#fff;
border:1px solid #ccc;
}

.section-title{
background:#000;
color:#fff;
padding:12px;
font-weight:bold;
font-size:20px;
}

.ads-container{
display:flex;
flex-direction:column;
}

/* =========================
CARD IKLAN
========================= */

.ad-card{
display:flex;
gap:15px;
padding:15px;
border-bottom:1px solid #ddd;
background:#fff;
}

.ad-thumb{
width:180px;
height:130px;
flex-shrink:0;
overflow:hidden;
background:#eee;
}

.ad-thumb img{
width:100%;
height:100%;
object-fit:cover;
}

.ad-content{
flex:1;
}

.ad-title{
font-size:28px;
font-weight:bold;
margin-bottom:8px;
}

.ad-desc{
font-size:15px;
margin-bottom:12px;
color:#333;
}

/* =========================
LINK WEBSITE DI DESKRIPSI
========================= */

.ad-desc a{
color:#66ccff;
text-decoration:none;
font-weight:500;
}

.ad-desc a:hover{
color:#7fd3ff;
text-decoration:none;
}

.ad-meta{
display:flex;
flex-wrap:wrap;
gap:25px;
font-size:14px;
margin-bottom:10px;
}

.ad-whatsapp{
display:inline-block;
background:#000;
color:#fff;
padding:8px 15px;
font-weight:bold;
}

/* =========================
PAGINATION
========================= */

.pagination{
display:flex;
justify-content:center;
gap:8px;
padding:25px;
flex-wrap:wrap;
}

.pagination button{
min-width:42px;
height:42px;
border:1px solid #ccc;
background:#fff;
cursor:pointer;
}

.pagination button.active{
background:#000;
color:#fff;
border-color:#000;
}

/* =========================
FOOTER BANNER
========================= */

.footer-banner{
max-width:1600px;
margin:20px auto;
height:90px;
border:2px dashed #888;
display:flex;
align-items:center;
justify-content:center;
background:#fff;
font-weight:bold;
}

/* =========================
FOOTER
========================= */

.footer{
background:#000;
color:#fff;
padding:40px 20px;
}

.footer-grid{
max-width:1600px;
margin:auto;
display:grid;
grid-template-columns:repeat(4,1fr);
gap:30px;
}

.footer h4{
margin-bottom:15px;
}

.footer ul{
list-style:none;
}

.footer li{
margin-bottom:10px;
}

/* =========================
TABLET
========================= */

@media(max-width:1200px){

.page-wrap{
grid-template-columns:260px 1fr;
}

.right-sidebar{
display:none;
}

.hero-overlay h2{
font-size:42px;
}

}

/* =========================
MOBILE
========================= */
@media(max-width:768px){

.top-header{
flex-direction:column;
}

.logo-box{
width:100%;
}

.search-box{
width:100%;
flex-direction:column;
height:auto;
gap:8px;
}

.search-box input,
.search-box select,
.search-box button{
width:100%;
height:50px;
border:2px solid #000;
}

.page-wrap{
grid-template-columns:1fr;
}

.left-sidebar,
.right-sidebar{
display:none;
}

.hero{
height:220px;
}

.hero-overlay h2{
font-size:28px;
}

.hero-overlay p{
font-size:18px;
}

.ad-card{
flex-direction:column;
}

.ad-thumb{
width:100%;
height:220px;
}

.ad-title{
font-size:22px;
}

.banner-728{
width:100%;
}

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

}


/* =========================
PASANG IKLAN
========================= */

.form-page{
max-width:1100px;
margin:30px auto;
padding:0 15px;
}

.form-card{
background:#fff;
border:1px solid #ccc;
box-shadow:0 5px 20px rgba(0,0,0,.08);
overflow:hidden;
}

.form-card h2{
background:#000;
color:#fff;
padding:18px 25px;
font-size:28px;
}

#adForm{
padding:25px;
}

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

.form-group label{
display:block;
font-weight:bold;
margin-bottom:8px;
font-size:15px;
}

.form-group input,
.form-group select,
.form-group textarea{
width:100%;
padding:14px;
border:1px solid #bbb;
font-size:15px;
background:#fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
outline:none;
border-color:#000;
}

.form-group textarea{
height:180px;
resize:none;
}

.char-count{
margin-top:8px;
text-align:right;
font-size:13px;
color:#666;
}

.help{
margin-top:8px;
font-size:13px;
color:#666;
}

.preview-box{
display:flex;
justify-content:center;
align-items:center;
background:#f7f7f7;
border:2px dashed #ccc;
min-height:300px;
margin-bottom:25px;
overflow:hidden;
}

.preview-box img{
max-width:100%;
max-height:500px;
display:block;
}

.submit-btn{
width:100%;
height:60px;
border:none;
background:#000;
color:#fff;
font-size:18px;
font-weight:bold;
cursor:pointer;
}

.submit-btn:hover{
opacity:.9;
}

.status-box{
margin-top:20px;
padding:15px;
background:#f5f5f5;
border-left:4px solid #000;
}

/* =========================
LAYOUT DUA KOLOM
========================= */

.form-row{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

@media(max-width:768px){

.form-row{
grid-template-columns:1fr;
}

.form-card h2{
font-size:22px;
}

}

.form-layout{
display:grid;
grid-template-columns:420px 1fr;
gap:25px;
}

.upload-side{
background:#fafafa;
padding:20px;
border:1px solid #ddd;
}

.data-side{
background:#fff;
}

.upload-title{
display:block;
font-weight:bold;
margin-bottom:10px;
}

.preview-box{
margin-top:15px;
min-height:400px;
background:#fff;
border:2px dashed #bbb;
display:flex;
align-items:center;
justify-content:center;
}

.preview-box img{
width:100%;
height:auto;
display:block;
}

.form-row{
display:grid;
grid-template-columns:1fr 1fr;
gap:15px;
}

@media(max-width:900px){

.form-layout{
grid-template-columns:1fr;
}

.form-row{
grid-template-columns:1fr;
}

}


#mobileAds{
display:none;
}

@media(max-width:768px){

#mobileAds{
display:flex;
gap:12px;
overflow-x:auto;
padding:15px 10px;
margin:20px 0;
scroll-behavior:smooth;
}

#mobileAds::-webkit-scrollbar{
display:none;
}

#mobileAds .ad300{
width:300px;
min-width:300px;
height:300px;
margin:0;
flex-shrink:0;
}

#mobileAds img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

}


.sticky-post-btn{
box-shadow:0 6px 0 #333, 0 10px 20px rgba(0,0,0,.25);
background:#000;
color:#fff;
padding:15px 25px;
font-weight:bold;
white-space:nowrap;
  
}

.wa-icon{
width:20px;
height:20px;
object-fit:contain;
}

.wa-icon{
width:20px;
height:20px;
display:block;
flex-shrink:0;
}


.contact-buttons{

display:flex;
flex-wrap:wrap;
gap:10px;

}

.call-btn,
.wa-btn,
.manage-btn{

flex:1 1 80px;

display:flex;
align-items:center;
justify-content:center;

gap:4px;

padding:2px;

border-radius:4px;

text-decoration:none;

}
