/* ============================================================
   MKM Theme Control - Frontend Style v2.0
   Exact same CSS as look.php - by Kashi Ahmer (MKM.FAN)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

/* Variables set dynamically via PHP inline style */
:root {
    --c: #e4002b;
    --bg: #f4f4f4;
    --card-bg: #ffffff;
    --text: #1a1a1a;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --header-bg: #333333;
    --header-link: #ffffff;
    --footer-bg: #333333;
    --footer-link: #ffffff;
}

body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

.wrap { max-width: 1150px; margin: 0 auto; padding: 20px 10px 0; }

/* ---- HEADER ---- */
.mkm-site-header {
    background: var(--header-bg);
    color: var(--header-link);
    position: relative; top: 0; z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.mkm-site-header.is-sticky { position: sticky; }
.mkm-header-inner {
    max-width: 1150px; margin: 0 auto; padding: 0 15px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 20px;
}
.mkm-logo { text-decoration: none; display: flex; align-items: center; }
.mkm-logo img { height: 44px; width: auto; }
.mkm-logo span { color: var(--header-link); font-size: 22px; font-weight: 900; white-space: nowrap; }
.mkm-nav { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.mkm-nav a {
    color: var(--header-link); text-decoration: none;
    padding: 6px 14px; border-radius: 6px; font-size: 14px; font-weight: 600;
    transition: background 0.2s;
}
.mkm-nav a:hover { background: rgba(255,255,255,0.15); }
.mkm-header-search form { display: flex; gap: 0; }
.mkm-header-search input {
    border: none; outline: none; padding: 7px 15px; border-radius: 20px 0 0 20px;
    font-size: 13px; width: 180px; background: rgba(255,255,255,0.2); color: var(--header-link);
}
.mkm-header-search input::placeholder { color: rgba(255,255,255,0.6); }
.mkm-header-search button {
    background: var(--c); border: none; color: #fff; padding: 7px 16px;
    border-radius: 0 20px 20px 0; cursor: pointer; font-size: 14px; font-weight: 700;
}
.mkm-hamburger {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 5px;
}
.mkm-hamburger span { display: block; width: 24px; height: 2px; background: var(--header-link); border-radius: 2px; }

/* Mobile Menu */
.mkm-mobile-menu {
    display: none; flex-direction: column; gap: 5px;
    background: var(--header-bg); padding: 15px;
}
.mkm-mobile-menu.open { display: flex; }
.mkm-mobile-menu a { color: var(--header-link); text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* ---- AD BOXES ---- */
.ad-box { text-align: center; margin: 20px 0; max-width: 100%; overflow: hidden; }

/* ---- RICH CONTENT ---- */
.rich-content { line-height: 1.8; font-size: 17px; color: #1a1a1a; word-wrap: break-word; }
.rich-content h1,.rich-content h2,.rich-content h3 { color: #000; margin: 20px 0 12px; font-weight: 800; line-height: 1.3; }
.rich-content h1 { font-size: 26px; }
.rich-content h2 { font-size: 22px; }
.rich-content h3 { font-size: 19px; }
.rich-content p  { margin-bottom: 14px; border:none !important; box-shadow:none !important; }
.rich-content b, .rich-content strong { color: #111; font-weight: 700; }
.rich-content a  { color: var(--c); text-decoration: underline; font-weight: 600; }
.rich-content ul,.rich-content ol { margin-bottom: 15px; padding-left: 25px; }
.rich-content li { margin-bottom: 8px; }
.rich-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }
.rich-content blockquote { border-left: 4px solid var(--c); margin: 15px 0; padding: 10px 20px; background: #f9f9f9; border-radius: 0 8px 8px 0; font-style: italic; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.rich-content table th,.rich-content table td { border: 1px solid #ddd; padding: 10px; text-align: left; }
.rich-content table th { background: #f5f5f5; font-weight: 700; }

/* ---- SLIDER ---- */
.slider-wrapper { position: relative; width: 100%; height: 380px; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.slides { display: flex; width: 500%; height: 100%; animation: slideAnim 25s infinite; }
.slide { width: 20%; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.slide-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 50px 30px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; text-decoration: none; }
.slide-content h2 { margin: 0; font-size: 26px; font-weight: 900; }
@keyframes slideAnim {
    0%,15%  { transform: translateX(0); }
    20%,35% { transform: translateX(-20%); }
    40%,55% { transform: translateX(-40%); }
    60%,75% { transform: translateX(-60%); }
    80%,95% { transform: translateX(-80%); }
    100%    { transform: translateX(0); }
}

/* ---- SEARCH ---- */
.search-container { max-width: 800px; margin: -30px auto 40px; position: relative; z-index: 10; padding: 0 15px; }
.search-box { background: #fff; display: flex; padding: 8px; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.search-box input { flex: 1; border: none; padding: 10px 25px; font-size: 16px; border-radius: 50px; outline: none; }
.search-box button { background: var(--c); color: #fff; border: none; padding: 12px 35px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.search-box button:hover { opacity: 0.85; }

/* ---- SECTION TITLES ---- */
.poster-section-title { font-size: 22px; font-weight: 900; margin: 30px 0 20px; border-left: 5px solid var(--c); padding-left: 15px; text-transform: uppercase; color: #000; }

/* ---- POSTER GRID (5 cols) ---- */
.poster-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 50px; }
.poster-card { 
    background: #fff; border-radius: 12px; overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); text-decoration: none; color: inherit; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column; 
    position: relative;
}
.poster-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.poster-card .img-box { width: 100%; height: 230px; overflow: hidden; position: relative; }
.poster-card .img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.poster-card:hover .img-box img { scale: 1.1; }
.poster-card .title-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; padding: 25px 10px 10px; font-size: 12px; font-weight: 700; text-align: center; }
.poster-card .btn-mini { background: var(--c); color: #fff; text-align: center; font-size: 12px; font-weight: 800; padding: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- STICKY LAYOUT ---- */
.sticky-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin: 50px 0; align-items: start; }
.left-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 25px; }

/* ---- CARD-3 GRID ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.card-3 { 
    background: #fff; border-radius: 16px; overflow: hidden; 
    box-shadow: 0 4px 25px rgba(0,0,0,0.06); text-decoration: none; color: inherit; 
    transition: all 0.4s ease; display: flex; flex-direction: column; 
    border: 1px solid rgba(0,0,0,0.03);
}
.card-3:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.card-3 img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: 0.4s; }
.card-3:hover img { filter: brightness(1.1); }
.card-3-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; gap: 12px; }
.card-3-body h4 { margin: 0; font-size: 17px; font-weight: 800; color: #000; line-height: 1.4; transition: 0.3s; }
.card-3:hover h4 { color: var(--c); }
.card-snippet { font-size: 13px; color: #555; line-height: 1.6; height: 3.2em; overflow: hidden; opacity: 0.8; }
.card-btn { background: var(--c); color: #fff; text-align: center; padding: 14px; border-radius: 10px; font-size: 14px; font-weight: 800; text-transform: uppercase; margin-top: auto; letter-spacing: 1px; }

/* ---- MID BANNER ---- */
.mid-banner { margin: 40px 0; border-radius: 15px; overflow: hidden; position: relative; height: 200px; box-shadow: var(--shadow); display: block; text-decoration: none; }
.mid-banner img { width: 100%; height: 100%; object-fit: cover; }
.mid-banner-text { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; padding: 20px; text-align: center; }
.mid-banner-text h2 { margin: 0; font-size: 24px; font-weight: 900; }

/* ---- SIDEBAR BOX ---- */
.sidebar-box { background: #fff; border-radius: 12px; padding: 25px; box-shadow: var(--shadow); margin-bottom: 30px; }
.sidebar-box h3 { margin-top: 0; font-size: 18px; border-bottom: 3px solid var(--c); padding-bottom: 12px; margin-bottom: 18px; font-weight: 900; color: #000; }
.sb-item { display: block; padding: 12px; background: #f9f9f9; text-decoration: none; color: #333; font-weight: 600; font-size: 14px; border-radius: 8px; border-left: 4px solid var(--c); margin-bottom: 8px; }
.sb-item:hover { background: #f0f0f0; }

/* ---- FAQ ---- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item { border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.faq-q { background: #f9f9f9; padding: 18px; cursor: pointer; font-weight: 700; font-size: 14px; position: relative; }
.faq-q::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--c); }
.faq-a { padding: 18px; font-size: 13px; line-height: 1.6; color: #555; display: none; background: #fff; border-top: 1px solid #eee; }

/* ---- CONTACT HERO ---- */
.contact-hero { border-radius: 18px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); background: var(--c); }
.contact-inner { padding: 45px 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 350px; gap: 40px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px 20px; border: none; border-radius: 10px;
    font-size: 15px; outline: none; background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); font-family: inherit;
}
.contact-form button {
    background: #111; color: #fff; border: none; padding: 16px;
    border-radius: 10px; font-size: 16px; font-weight: 800; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.contact-form button:hover { background: #333; }
.social-links { display: flex; flex-direction: column; gap: 15px; padding-top: 10px; }
.social-link-item {
    display: flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.15); padding: 14px 20px;
    border-radius: 12px; text-decoration: none; color: #fff;
    transition: 0.3s; border: 1px solid rgba(255,255,255,0.2);
}
.social-link-item:hover { background: rgba(255,255,255,0.3); }
.social-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-name { font-weight: 700; font-size: 15px; }

/* ---- FOOTER ---- */
.mkm-footer {
    background: var(--footer-bg);
    color: var(--footer-link);
    padding: 15px 0;
    margin-top: 40px;
}
.mkm-footer-inner { max-width: 1150px; margin: 0 auto; padding: 0 15px; }
.mkm-footer a { color: var(--footer-link); text-decoration: none; font-weight: 600; }
.mkm-footer a:hover { opacity: 0.8; }

/* ---- GLOBAL RESPONSIVE ---- */
img, video, iframe, embed, object { max-width: 100%; height: auto; }
table { max-width: 100%; overflow-x: auto; display: block; }
.ad-box iframe, .ad-box ins, .ad-box img { max-width: 100% !important; height: auto !important; }

@media (max-width: 1000px) {
    .sticky-layout { grid-template-columns: 1fr; }
    .poster-grid { grid-template-columns: repeat(3, 1fr); }
    .faq-grid { grid-template-columns: 1fr; }
    .left-sticky { position: static; }
    .mkm-header-search { display: none; }
}
@media (max-width: 768px) {
    .wrap { padding: 10px 8px 0; }
    .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .slider-wrapper { height: 220px; border-radius: 10px; }
    .slide-content { padding: 25px 15px; }
    .slide-content h2 { font-size: 18px; }
    .search-container { margin: -20px auto 25px; padding: 0 10px; }
    .search-box input { padding: 10px 15px; font-size: 14px; }
    .search-box button { padding: 10px 20px; font-size: 12px; }
    .poster-section-title { font-size: 18px; margin: 20px 0 15px; }
    .poster-card .img-box { height: 180px; }
    .mid-banner { height: 150px; border-radius: 10px; }
    .mid-banner-text h2 { font-size: 18px; }
    .contact-grid { grid-template-columns: 1fr; }
    .mkm-nav { display: none; }
    .mkm-hamburger { display: flex; }
    .mkm-footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
    .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .grid-3 { grid-template-columns: 1fr; }
    .slider-wrapper { height: 180px; }
    .slide-content h2 { font-size: 15px; }
    .poster-card .img-box { height: 160px; }
    .poster-card .title-overlay { font-size: 10px; }
    .mid-banner { height: 120px; }
    .mid-banner-text h2 { font-size: 15px; }
}
/* ---- Pagination FORCE ---- */
.mkm-pagination, .mkm-pagination * { display: block; }
.mkm-pagination ul, .mkm-pagination ul li { display: inline-block !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.mkm-pagination ul { display: flex !important; justify-content: center !important; gap: 8px !important; flex-wrap: wrap !important; margin-top: 40px !important; }
.mkm-pagination li { display: block !important; }
.mkm-pagination a, .mkm-pagination span { 
    display: inline-block !important; 
    padding: 10px 18px !important; 
    background: #fff !important; 
    border: 1px solid #e2e8f0 !important; 
    border-radius: 8px !important; 
    text-decoration: none !important; 
    color: #1e293b !important; 
    font-weight: 700 !important; 
    font-size: 14px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
}
.mkm-pagination .current { background: var(--c) !important; color: #fff !important; border-color: var(--c) !important; }
.mkm-pagination a:hover { background: #f8fafc !important; transform: translateY(-2px) !important; }

/* ---- Buttons ---- */
.poster-card.no-btn .title-overlay { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); }
.poster-card.no-btn .btn-mini { display: none; }
.poster-card.no-btn:hover .title-overlay { background: linear-gradient(transparent, var(--c)); }

.btn-mini { 
    background: var(--c); color: #fff; border: none; 
    padding: 6px 15px; border-radius: 50px; 
    font-weight: 800; font-size: 11px; cursor: pointer; 
    transition: 0.3s; display: inline-block; text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-mini:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.card-btn {
    background: var(--c); color: #fff; border: none;
    padding: 8px 20px; border-radius: 6px;
    font-weight: 800; font-size: 12px; cursor: pointer;
    transition: 0.3s; display: inline-block; text-decoration: none;
}
.card-btn:hover { opacity: 0.9; transform: scale(1.02); }
