/* RMTV Design System — RadioMayabTV Homepage */
/* Inspired by Newsup/Newsberg demo — orange brand */

/* ===== BODY & GLOBAL BACKGROUND ===== */
html body.custom-background,
body {
    background-color: #e8e8e8 !important;
}
body.custom-background {
    background-color: #e8e8e8 !important;
}

/* ===== MAIN CONTENT AREA — white cards on gray ===== */
.wrapper {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
#content.home {
    background: transparent;
}

/* ===== SECTION HEADERS (orange ribbon style) ===== */
.mg-sec-title {
    border-bottom: 3px solid #ff6f00 !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
}
.mg-sec-title h4 {
    background: #ff6f00 !important;
    color: #fff !important;
    padding: 6px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    border-radius: 2px;
    margin: 0 !important;
    border: none !important;
    letter-spacing: 0.5px;
}

/* ===== POST CARDS ===== */
/* Base card styles (all .mg-blog-post) */
.mg-blog-post {
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    margin-bottom: 20px !important;
    overflow: hidden;
    transition: box-shadow 0.25s, border-color 0.25s;
}
/* White background only for text cards — NOT back-img (carousel uses background-image) */
.mg-blog-post:not(.back-img) {
    background: #fff !important;
}
.mg-blog-post:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.12) !important;
    border-color: #ff6f00 !important;
}
.mg-blog-post .mg-blog-inner {
    padding: 15px 20px;
}

/* ===== CATEGORY BADGES ===== */
.mg-blog-category a,
a.newsup-categories,
.newsup-categories,
.small.single.category a,
.mg-blog-post .mg-blog-category a {
    background: #ff6f00 !important;
    color: #fff !important;
    padding: 3px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border-radius: 2px;
    letter-spacing: 0.6px;
    display: inline-block;
}
.mg-blog-post .mg-blog-category {
    margin-bottom: 8px;
}

/* ===== POST TITLES ===== */
.mg-blog-post .title a,
.mg-blog-post .mg-blog-post-box h4 a,
.mg-blog-post h1 a,
.mg-blog-post h4.title a {
    color: #222 !important;
    font-weight: 700 !important;
    transition: color 0.2s;
}
.mg-blog-post .title a:hover,
.mg-blog-post h4.title a:hover {
    color: #ff6f00 !important;
}

/* ===== SIDEBAR WIDGETS ===== */
.newsup-front-page-content-widget,
#sidebar-1 .widget,
.sidebar .widget {
    background: #fff;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}
#sidebar-1 .widget .mg-sec-title,
.sidebar .widget .mg-sec-title {
    margin-bottom: 12px !important;
}

/* ===== SIDEBAR TABS (Latest/Popular/Trending) ===== */
.mg-tpt-tabs .nav-tabs > li > a,
.mg-tpt-tabs .nav-tabs > li.active > a {
    color: #ff6f00 !important;
    font-weight: 600 !important;
}
.mg-tpt-tabs .nav-tabs > li.active > a {
    border-bottom: 2px solid #ff6f00 !important;
}

/* ===== CATEGORY SECTIONS (our shortcode) ===== */
.rmtv-section {
    background: #fff;
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 22px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.rmtv-section-title {
    border-bottom: 3px solid #ff6f00 !important;
    padding-bottom: 0 !important;
    margin: -16px -18px 15px -18px !important;
    padding: 0 18px !important;
}
.rmtv-section-title span {
    background: #ff6f00;
    color: white;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    border-radius: 2px;
    letter-spacing: 0.5px;
}
.rmtv-cat-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.rmtv-post-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.2s;
}
.rmtv-post-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: #ff6f00;
}
.rmtv-post-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 90px;
    overflow: hidden;
    border-radius: 3px;
    background: #eee;
}
.rmtv-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rmtv-post-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}
.rmtv-post-info h4 a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
.rmtv-post-info h4 a:hover {
    color: #ff6f00;
}
.rmtv-post-excerpt {
    margin: 0;
    font-size: 13px;
    color: #777;
    line-height: 1.45;
}

/* ===== YOUTUBE SECTION ===== */
.rmtv-youtube-section {
    margin-bottom: 22px;
    background: #fff;
    border-radius: 4px;
    padding: 0;
}
.rmtv-youtube-hero {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
}
.rmtv-youtube-hero iframe {
    display: block;
}
.rmtv-youtube-cta {
    text-align: center;
    margin: 8px 0 16px 0;
}

/* ===== PHOTO GALLERY ===== */
.rmtv-section .photo-gallery,
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.photo-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 2px solid #eee;
}
.photo-gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #ff6f00;
}

/* ===== NAVIGATION ===== */
.navbar-nav > .active > a {
    background: #ff6f00 !important;
    color: #fff !important;
    border-radius: 2px;
}
.navbar-nav > li > a:hover {
    color: #ff6f00 !important;
}

/* ===== TICKER ===== */
.mg-latest-news-slider a:hover {
    color: #ff6f00 !important;
}

/* ===== DARK FOOTER AREA ===== */
footer .mg-footer-bottom-area {
    background: #1a1a1a !important;
}
footer .mg-footer-copyright {
    background: #111 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .rmtv-cat-posts {
        grid-template-columns: 1fr;
    }
    .photo-gallery,
    .rmtv-section .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .rmtv-post-thumb {
        width: 100px;
        height: 70px;
    }
    .rmtv-post-info h4 {
        font-size: 14px;
    }
}