:root {
    --brand: #4f46e5;
    --dark: #1e1b2e;
}
body { font-family: var(--site-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif); color: #333; }
h1 { font-size: calc(2.25rem * var(--heading-scale, 1)); }
h2 { font-size: calc(1.875rem * var(--heading-scale, 1)); }
h3 { font-size: calc(1.5rem * var(--heading-scale, 1)); }
h4 { font-size: calc(1.25rem * var(--heading-scale, 1)); }
h5 { font-size: calc(1.125rem * var(--heading-scale, 1)); }
h6 { font-size: calc(1rem * var(--heading-scale, 1)); }
.display-5 { font-size: calc(3rem * var(--heading-scale, 1)); }
a { color: var(--brand); }

.topbar { background: var(--dark); color: #fff; }

/* ---------- Breaking News Ticker ---------- */
.breaking-news { background: #d92626; color: #fff; overflow: hidden; }
.breaking-news .container { padding-top: 8px; padding-bottom: 8px; }
.breaking-label {
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-right: 14px;
    flex-shrink: 0;
}
.breaking-ticker-wrap { overflow: hidden; flex: 1; }
.breaking-ticker {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    animation: breaking-scroll 30s linear infinite;
    width: max-content;
}
.breaking-ticker a { color: #fff; text-decoration: none; font-size: 0.85rem; }
.breaking-ticker a:hover { text-decoration: underline; }
.breaking-news:hover .breaking-ticker { animation-play-state: paused; }
@keyframes breaking-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.site-header { box-shadow: 0 2px 10px rgba(0,0,0,0.06); z-index: 1030; }
.navbar-nav .nav-link { font-weight: 500; color: #333 !important; padding: 0.75rem 0.9rem !important; }
.navbar-nav .nav-link:hover { color: var(--brand) !important; }

/* ---------- Mega Menu (desktop: hover) ---------- */
@media (min-width: 992px) {
    .mega-item { position: relative; }
    .mega-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 640px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        padding: 20px;
        z-index: 1050;
    }
    .mega-item:hover .mega-dropdown { display: block; }
    .mega-dropdown.simple-dropdown { width: 200px; padding: 10px 16px; }
    .mega-dropdown.simple-dropdown a { color: #333; }
    .mega-dropdown.simple-dropdown a:hover { color: var(--brand); }
    /* small hover-bridge so the dropdown doesn't disappear moving cursor down */
    .mega-item::after {
        content: '';
        position: absolute;
        left: 0; right: 0; top: 100%;
        height: 12px;
    }
}
@media (max-width: 991.98px) {
    .mega-dropdown { display: block; position: static; box-shadow: none; padding: 10px 0 10px 15px; }
    .mega-dropdown-inner { border-left: 2px solid #eee; padding-left: 10px; }
}

.mega-post-card { display: block; }
.mega-post-card img,
.mega-post-placeholder {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #f1f1f5;
}
.mega-post-placeholder { display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 1.3rem; }
.mega-post-title { font-size: 0.8rem; color: #333; line-height: 1.3; }

.mega-col-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 700;
}
.mega-child-list { display: flex; flex-direction: column; gap: 6px; border-right: 1px solid #eee; padding-right: 12px; }
.mega-child-list a { color: #333; text-decoration: none; font-size: 0.85rem; padding: 4px 0; }
.mega-child-list a:hover { color: var(--brand); }
@media (max-width: 991.98px) {
    .mega-child-list { border-right: none; padding-right: 0; }
}

/* ---------- Hero / Cards ---------- */
.hero-section { background: linear-gradient(135deg, var(--brand), var(--dark)); color: #fff; padding: 70px 0; }

/* ---------- Homepage Carousel + Trending List ---------- */
.hero-carousel-section { padding: 24px 0; background: #f7f7fb; }
.hero-carousel { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.hero-carousel-img { height: 420px; object-fit: cover; }
.hero-carousel-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 30px 24px 18px; text-align: left;
}
.hero-carousel-caption h2 { color: #fff; font-size: 1.4rem; font-weight: 700; margin: 0; line-height: 1.3; }
.hero-carousel .carousel-indicators { margin-bottom: 8px; }

.trending-list {
    background: #fff; border-radius: 12px; padding: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); height: 420px; overflow-y: auto;
}
.trending-list-heading {
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--brand); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--brand);
}
.trending-item {
    display: flex; gap: 12px; align-items: center; text-decoration: none;
    padding: 10px 0; border-bottom: 1px solid #f0f0f5;
}
.trending-item:last-child { border-bottom: none; }
.trending-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.trending-item-title { font-size: 0.88rem; color: #1e1b2e; font-weight: 600; line-height: 1.35; }
@media (max-width: 991.98px) {
    .hero-carousel-img { height: 280px; }
    .trending-list { height: auto; }
}

/* ---------- Bottom Showcase (title-over-image boxes) ---------- */
.showcase-section { background: #f7f7fb; }
.showcase-box {
    position: relative; display: block; border-radius: 10px; overflow: hidden;
    aspect-ratio: 1 / 1; text-decoration: none;
}
.showcase-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.showcase-box:hover img { transform: scale(1.06); }
.showcase-box-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; top: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    display: flex; align-items: flex-end; padding: 12px;
}
.showcase-box-title { color: #fff; font-size: 0.85rem; font-weight: 700; line-height: 1.3; }
.blog-card { border: none; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; height: 100%; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.blog-card img { height: 200px; object-fit: cover; width: 100%; }
.blog-card .card-body { padding: 1.2rem; }
.blog-card .badge-category { font-size: 0.7rem; }
.blog-card .card-title a { color: #1e1b2e; text-decoration: none; }
.blog-card .card-title a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-links li i { color: rgba(255,255,255,0.5); margin-right: 6px; }
.footer-social {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.footer-social:hover { background: var(--brand); color: #fff; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 1040;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    text-decoration: none;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- Sidebar ---------- */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.sidebar-widget .widget-title {
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand);
    display: inline-block;
}
.enquiry-widget { background: linear-gradient(135deg, var(--brand), var(--dark)); color: #fff; }
.enquiry-widget .widget-title { border-bottom-color: rgba(255,255,255,0.4); color: #fff; }
.sidebar-post-item {
    display: flex; gap: 10px; align-items: flex-start;
    text-decoration: none; margin-bottom: 14px;
}
.sidebar-post-item:last-child { margin-bottom: 0; }
.sidebar-post-item img,
.sidebar-post-placeholder {
    width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #f1f1f5;
}
.sidebar-post-placeholder { display: flex; align-items: center; justify-content: center; color: #bbb; }
.sidebar-post-title { font-size: 0.85rem; color: #1e1b2e; font-weight: 600; line-height: 1.3; }
.sidebar-post-date { font-size: 0.72rem; color: #999; margin-top: 3px; }
.sidebar-custom-content img { max-width: 100%; height: auto; border-radius: 8px; }
.sidebar-custom-content { font-size: 0.88rem; color: #444; }

/* ---------- Share Buttons ---------- */
.share-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: 0.8rem; color: #888; font-weight: 600; margin-right: 2px; }
.share-btn, .share-btn-sm {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #f1f0f7; color: #555;
    text-decoration: none; transition: 0.15s;
}
.share-btn { width: 38px; height: 38px; font-size: 1rem; }
.share-btn-sm { width: 28px; height: 28px; font-size: 0.8rem; }
.share-btn:hover, .share-btn-sm:hover { background: var(--brand); color: #fff; }
.share-buttons-compact { border-top: 1px solid #f0f0f5; margin-top: 10px; padding-top: 10px; }
