/* ===========================
   CATEGORY
=========================== */
main{

    main{
    padding:90px 15px 140px;
    min-height:100vh;
    overflow-x:hidden;
}

}

.category-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    padding-bottom:20px;
    margin-top:20px;
}

.category-card{

    display:flex;
    flex-direction:column;
    align-items:center;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    border:1px solid #ececec;

    text-decoration:none;

    color:#222;

    box-shadow:0 4px 15px rgba(0,0,0,.08);

    transition:.25s ease;

    cursor:pointer;
}

.category-card:hover{

    transform:translateY(-4px);

    box-shadow:0 10px 25px rgba(0,0,0,.16);

}

.category-card:hover img{

    transform:scale(1.05);

}

.category-card img{

    width:100%;

    aspect-ratio:1/1;

    object-fit:cover;

    display:block;

    transition:.3s;

}

.category-card span{

    padding:12px;

    font-size:15px;

    font-weight:700;

    text-align:center;

    color:#222;

}

/* ===========================
   LIST BOX
=========================== */

.list-box{

    padding:15px;

}

.list-box a{

    display:block;

    padding:15px;

    margin-bottom:10px;

    background:#ffffff;

    border-radius:12px;

    text-decoration:none;

    color:#222;

    font-weight:600;

    box-shadow:0 2px 8px rgba(0,0,0,.08);

}

/* ===========================
   NEWS
=========================== */

.news-engine{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:15px;
}

.news-col{
    flex:1;
    min-width:0;
}

.news-card {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px 12px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}


.news-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}


/* ===========================
   NEWS IMAGE
=========================== */

.news-card > img {
    width: 100%;
    display: block;
    border-radius: 8px;
}


/* ===========================
   NEWS VIDEO
=========================== */

.news-video{
    width:100%;
    overflow:hidden;
    background:#000;
}

.news-video video{
    width:100%;
    height:auto;
    display:block;
}

.news-card .news-external-video,
.news-card .news-video {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}


/* ===========================
   NO MEDIA
=========================== */

.news-no-media{
    width:100%;
    min-height:180px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#f1f1f1;
    color:#888;
    font-size:14px;
    font-weight:600;
}


/* NEWS TITLE */

.news-title {
    padding: 9px 12px 4px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;

    color:#222;
    text-align: left;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;

    overflow: hidden;

    box-sizing: border-box;
}


/* ===========================
   NEWS TIME
=========================== */

.news-meta .news-place,
.news-meta .news-source,
.news-meta .news-time {

    display: flex;

    align-items: center;

    min-width: 0;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    font-size: 15px;

}

.news-meta .news-place {
    flex: 1 1 auto;
}

.news-meta .news-time {
    margin-left: auto;
    flex: 0 0 auto;
    text-align: right;
}

/* ===========================
   MOBILE
=========================== */

@media (max-width:768px){

    .news-engine{
        display:block;
    }

    .news-col{
        width:100%;
        min-width:0;
    }

}

/* ===========================
   ADS
=========================== */

.ads-masonry{
    display:flex;
    gap:15px;
    align-items:flex-start;
}

.ads-column{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:15px;
}

/* Card */

.ad-card{
    background:#fff;
    border:1px solid #e9e9e9;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:0;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    transition:.25s;
}

.ad-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

/* Media */

.ad-media{
    overflow:hidden;
    border-bottom:1px solid #eee;
}

.ad-media img,
.ad-media video{
    width:100%;
    height:auto;
    display:block;
    transition:.3s;
}

.ad-card:hover .ad-media img{
    transform:scale(1.03);
}

/* Text */

.ad-text{
    padding:15px;
    font-size:15px;
    line-height:1.6;
    color:#333;
    word-break:break-word;
    text-align:justify;
}

.ad-bold{
    font-weight:700;
}

.premium-ad{
    background:#fff9d7;
    border:2px solid #d8b400;
    border-radius:8px;
}

/* Footer */

.ad-footer{
    display:flex;
    align-items:center;
    padding:12px 15px;
    border-top:1px solid #eee;
    background:#fafafa;
}

/* Place */

.ad-place{
    flex:1;
    text-align:left;

    font-size:13px;
    color:#666;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Contact */

.ad-contact{
    flex:0 0 auto;

    display:flex;
    align-items:center;
    justify-content:center;

    gap:28px;
}

.ad-contact img{
    width:20px;
    height:20px;
    display:block;
}

.ad-contact svg{
    width:17px;
    height:17px;
    display:block;
}

.ad-contact a:hover{
    background:#0d6efd;
    color:#fff;
}

/* Contact Icons */

.ad-contact a{

    width:30px;
    height:30px;

    display:flex;
    justify-content:center;
    align-items:center;

    border-radius:50%;

    background:#fff;

    text-decoration:none;

    font-size:15px;

    border:2px solid;

    transition:.25s;

}

/* Phone */

.phone-icon{
    color:#9b1b30;
    border-color:#9b1b30;
}

/* WhatsApp */

.wa-icon{
    color:#25D366;
    border-color:#25D366;
}

/* Mail */

.mail-icon{
    color:#1877F2;
    border-color:#1877F2;
}

/* Hover */

.phone-icon:hover{
    background:#9b1b30;
    color:#fff;
}

.wa-icon:hover{
    background:#25D366;
    color:#fff;
}

.mail-icon:hover{
    background:#1877F2;
    color:#fff;
}

/* Location */

.loc-icon{
    color:#ff4081;
    margin-right:5px;
}

/* Time */

.ad-time{
    flex:1;
    text-align:right;

    font-size:12px;
    color:#999;

    white-space:nowrap;
}

/* Premium Text Ad */

.premium-ad{
    border-radius:8px;
    border:2px solid #d4a017;
    background:#fff8d6;
    position:relative;
}

.premium-ad::before{
    content:"PREMIUM";
    position:absolute;
    top:0;
    right:0;
    background:#d4a017;
    color:#fff;
    font-size:10px;
    padding:3px 8px;
    border-bottom-left-radius:8px;
    font-weight:bold;
}

.ad-bold{
    font-weight:700;
}

/* ===========================
   NEWS DETAILS
=========================== */

.news-details{

    padding:15px;

}

.details-image{

    margin-bottom:15px;

}

.details-image img{

    width:100%;

    display:block;

    border-radius:15px;

}

.details-title{

    font-size:18px;

    font-weight:700;

    line-height:1.5;

    color:#222;

    margin-bottom:10px;

    text-align:center;

}

.details-meta{

    display:flex;

    justify-content:flex-end;

    font-size:13px;

    color:#777;

    margin-bottom:20px;

}

.details-content{

    font-size:16px;

    line-height:1.9;

    color:#333;

    text-align:justify;

}

.details-source{

    margin-top:25px;

    padding-top:15px;

    border-top:1px solid #e5e5e5;

    font-size:14px;

    color:#666;

}

/* ===========================
   ACTION BAR
=========================== */

.action-bar{
    position:fixed;

    left:12px;
    right:12px;

    bottom:62px;      /* Bottom Nav (50px) + 12px Gap */

    height:50px;

    display:grid;
    grid-template-columns:repeat(3,1fr);

    gap:12px;

    z-index:2000;
}

.action-btn{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;

    height:46px;

    border-radius:14px;

    color:#fff;
    text-decoration:none;

    font-size:15px;
    font-weight:700;

    border:1px solid rgba(255,255,255,.35);

    box-shadow:
        0 2px 6px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.15);

    transition:.25s ease;
}

.action-btn:hover{

        transform:translateY(-2px);

    box-shadow:
        0 5px 12px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.20);

}

.action-btn .icon{

    font-size:18px;

}

.back-btn{
    background:#6D4C41;
}

.post-btn{
    background:#E53935;
}

.ads-btn{
    background:#2E7D32;
}

.action-cell{

    padding:10px;

}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:768px){

    /* News */

    .news-engine{
        display:block;
    }

    .news-col{
        width:100%;
    }

    /* Ads */

    .ads-masonry{
        display:block;
    }

    .action-bar{

        left:12px;
        right:12px;

        bottom:70px;

        gap:8px;

        padding:8px;

    }

    .back-btn,
    .ads-btn{

        min-width:90px;

    }

    .post-btn{

        min-width:140px;

    }

    .action-btn{

        height:44px;

        font-size:14px;

        padding:0 16px;

    }

}

.page-container{

    width:100%;
    max-width:1200px;

    margin:0 auto;

    padding:0;

}

.news-meta{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin:15px 0;
    color:#666;
    font-size:15px;
}

.news-meta span{
    display:flex;
    align-items:center;
    gap:5px;
}

@media (max-width:768px){

    .details-title{
        font-size:16px;
        line-height:1.35;
        text-align:center;
    }

    main p{
        text-align:justify;
        line-height:1.6;
    }

}
@media (max-width:768px){

    .ad-contact{
        gap:22px;
    }

    .ad-contact a{
        width:28px;
        height:28px;
        font-size:14px;
    }

    .ad-contact svg{
        width:16px;
        height:16px;
    }

}
