@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --mp-primary: #1a56db;
    --mp-primary-dark: #1241a8;
    --mp-accent: #f59e0b;
    --mp-dark: #0f172a;
    --mp-text: #334155;
    --mp-muted: #64748b;
    --mp-border: #e2e8f0;
    --mp-bg: #f8fafc;
    --mp-white: #ffffff;
    --mp-radius: 12px;
    --mp-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --mp-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.14);
    --mp-transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Roboto', sans-serif !important;
    color: var(--mp-text);
    background: var(--mp-bg);
}

a { color: var(--mp-primary); }
a:hover { color: var(--mp-primary-dark); text-decoration: none; }

/* ── Top bar ── */
.mp-topbar {
    background: var(--mp-dark);
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 0;
}
.mp-topbar a { color: #cbd5e1; margin-left: 16px; }
.mp-topbar a:hover { color: #fff; }

/* ── Header ── */
.mp-header {
    background: var(--mp-white);
    box-shadow: 0 1px 0 var(--mp-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.mp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}
.mp-logo { text-decoration: none; }
.mp-logo__text {
    font-size: 28px;
    font-weight: 800;
    color: var(--mp-dark);
    letter-spacing: -0.02em;
    line-height: 1;
}
.mp-logo:hover .mp-logo__text { color: var(--mp-primary); }
.mp-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mp-nav a {
    color: var(--mp-dark);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--mp-transition);
    white-space: nowrap;
}
.mp-nav a:hover, .mp-nav a.active {
    background: #eff6ff;
    color: var(--mp-primary);
}
.mp-search-btn {
    background: none;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--mp-muted);
    cursor: pointer;
    transition: var(--mp-transition);
}
.mp-search-btn:hover { border-color: var(--mp-primary); color: var(--mp-primary); }

/* Mobile menu toggle */
.mp-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--mp-dark);
    cursor: pointer;
    padding: 4px 8px;
}

@media (max-width: 991px) {
    .mp-menu-toggle { display: block; }
    .mp-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--mp-white);
        flex-direction: column;
        padding: 12px 16px 20px;
        box-shadow: var(--mp-shadow);
        border-top: 1px solid var(--mp-border);
    }
    .mp-nav.open { display: flex; }
    .mp-nav a { width: 100%; }
}

/* ── Hero / YouTube ── */
.mp-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1a56db 100%);
    color: #fff;
    padding: 48px 0 56px;
}
.mp-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 768px) {
    .mp-hero__grid { grid-template-columns: 1fr; }
}
.mp-hero__badge {
    display: inline-block;
    background: rgba(245,158,11,0.2);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.mp-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 16px;
}
.mp-hero p { color: #94a3b8; font-size: 15px; line-height: 1.7; margin: 0; }
.mp-video-main {
    border-radius: var(--mp-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--mp-shadow-hover);
}
.mp-video-main iframe { width: 100%; height: 100%; border: 0; display: block; }
.mp-video-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.mp-video-thumb {
    flex: 0 0 140px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--mp-transition);
    opacity: 0.7;
}
.mp-video-thumb.active, .mp-video-thumb:hover {
    border-color: var(--mp-accent);
    opacity: 1;
}
.mp-video-thumb iframe { width: 100%; height: 80px; pointer-events: none; display: block; }
.mp-video-thumb span {
    display: block;
    font-size: 11px;
    padding: 4px 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Section ── */
.mp-section { padding: 56px 0; }
.mp-section--gray { background: var(--mp-white); }
.mp-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.mp-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mp-dark);
    margin: 0;
    position: relative;
    padding-left: 16px;
}
.mp-section__title::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 4px;
    background: var(--mp-primary);
    border-radius: 2px;
}

/* ── News cards ── */
.mp-news-grid {
    align-items: flex-start;
}

.mp-news-grid > .mp-news-col {
    margin-bottom: 28px;
}

.mp-news-card {
    background: var(--mp-white);
    border-radius: var(--mp-radius);
    overflow: hidden;
    box-shadow: var(--mp-shadow);
    transition: var(--mp-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    text-decoration: none;
    color: inherit;
}
.mp-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mp-shadow-hover);
}
.mp-news-card__img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.mp-news-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.mp-news-card:hover .mp-news-card__img-wrap img { transform: scale(1.05); }
.mp-news-card__body { padding: 18px 20px 22px; flex: 1; }
.mp-news-card__tag {
    display: inline-block;
    background: #eff6ff;
    color: var(--mp-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.mp-news-card__date {
    display: block;
    font-size: 12px;
    color: var(--mp-muted);
    margin-bottom: 8px;
}
.mp-news-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    color: var(--mp-dark);
}
.mp-news-card:hover .mp-news-card__title { color: var(--mp-primary); }

/* ── Popular slider cards ── */
.mp-popular-grid .mp-popular-card {
    margin: 0;
    height: 100%;
}
.mp-popular-card {
    background: var(--mp-white);
    border-radius: var(--mp-radius);
    overflow: hidden;
    box-shadow: var(--mp-shadow);
    margin: 0 8px;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--mp-transition);
}
.mp-popular-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mp-shadow-hover);
}
.mp-popular-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.mp-popular-card__body { padding: 16px; }
.mp-popular-card__body h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 8px 0 0;
    color: var(--mp-dark);
}
.mp-popular-card:hover h4 { color: var(--mp-primary); }

/* ── Sidebar ── */
.mp-sidebar { position: sticky; top: 90px; }
.mp-sidebar__widget {
    background: var(--mp-white);
    border-radius: var(--mp-radius);
    padding: 24px;
    box-shadow: var(--mp-shadow);
    margin-bottom: 24px;
}
.mp-sidebar__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--mp-dark);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mp-border);
}
.mp-recent-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mp-border);
}
.mp-recent-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.mp-recent-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.mp-recent-item h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px;
}
.mp-recent-item h4 a { color: var(--mp-dark); }
.mp-recent-item time { font-size: 11px; color: var(--mp-muted); }

/* ── Article page ── */
.mp-article { background: var(--mp-white); border-radius: var(--mp-radius); box-shadow: var(--mp-shadow); overflow: hidden; }
.mp-article__header { padding: 32px 32px 0; }
.mp-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--mp-muted);
}
.mp-article__tag {
    background: #eff6ff;
    color: var(--mp-primary);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}
.mp-article__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--mp-dark);
    line-height: 1.3;
    margin: 0 0 24px;
}
.mp-article__img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.mp-article__content {
    padding: 32px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--mp-text);
}
.mp-article__content img { max-width: 100%; height: auto; border-radius: 8px; }
.mp-article__content p { margin-bottom: 1.2em; }

/* ── Buttons ── */
.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--mp-primary);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mp-transition);
    text-transform: none;
    letter-spacing: 0;
    min-width: auto;
    margin: 0;
}
.mp-btn:hover {
    background: var(--mp-primary-dark);
    color: #fff !important;
    transform: none;
}
.mp-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.mp-btn::before { display: none !important; }

/* ── Footer ── */
.mp-footer {
    background: var(--mp-dark);
    color: #94a3b8;
    padding: 56px 0 0;
    margin-top: 0;
}
.mp-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
@media (max-width: 768px) {
    .mp-footer__grid { grid-template-columns: 1fr; }
}
.mp-footer__logo-text {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.mp-footer__brand p { font-size: 14px; line-height: 1.7; max-width: 420px; }
.mp-footer h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}
.mp-footer ul { list-style: none; padding: 0; margin: 0; }
.mp-footer ul li { margin-bottom: 10px; }
.mp-footer ul a { color: #94a3b8; font-size: 14px; }
.mp-footer ul a:hover { color: #fff; }
.mp-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}
.mp-footer__social { display: flex; gap: 12px; }
.mp-footer__social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--mp-transition);
}
.mp-footer__social a:hover { background: var(--mp-primary); }

/* ── Empty state ── */
.mp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--mp-muted);
}
.mp-empty i { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }

/* ── Override old template conflicts ── */
.theme-bg, .theme-color { background: var(--mp-primary) !important; color: var(--mp-primary) !important; }
.header-bottom { box-shadow: none !important; border-top: none !important; }
.footer-area, .footer-bottom-area { background: transparent !important; }
.whats-news-area .whats-news-caption .single-what-news .what-cap { position: static !important; width: 100% !important; padding: 0 !important; }
.whats-news-area .whats-news-caption .single-what-news:hover .what-cap { bottom: auto !important; }
