@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');
:root{--orange:#f69a1a;--orange2:#ffb341;--dark:#223343;--blue:#2a5bf5;--bg:#f5f7fb;--muted:#6b7280;--card:#fff;--border:#e8edf5}
*{box-sizing:border-box} body{margin:0;font-family:'Tajawal',Arial,sans-serif;background:var(--bg);color:var(--dark);direction:rtl}.container{width:min(1180px,92%);margin:auto}.topbar{background:var(--dark);color:#fff;padding:8px 0;font-size:14px}.navbar{background:#fff;box-shadow:0 8px 24px #22334312;position:sticky;top:0;z-index:5}.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0}.brand{display:flex;align-items:center;gap:12px;font-weight:800}.brand img{width:58px;height:58px;border-radius:50%;object-fit:cover}.nav a{color:var(--dark);text-decoration:none;margin:0 8px;font-weight:700}.btn{background:var(--orange);color:#fff;padding:10px 16px;border-radius:12px;text-decoration:none;border:0;display:inline-block;font-weight:800}.btn-dark{background:var(--dark)}.hero{padding:42px 0;background:linear-gradient(135deg,#fff 0%,#fff8ed 45%,#f69a1a22 100%)}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center}.badge{display:inline-flex;align-items:center;gap:8px;background:#fff3df;color:#a65c00;padding:8px 12px;border-radius:999px;font-weight:800}.hero h1{font-size:46px;line-height:1.25;margin:16px 0}.hero p{font-size:19px;color:var(--muted)}.live-card{background:#fff;border:1px solid var(--border);padding:24px;border-radius:24px;box-shadow:0 16px 48px #22334314}.live-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.pulse{width:12px;height:12px;background:#e53935;border-radius:50%;box-shadow:0 0 0 8px #e5393520}.breaking{background:var(--dark);color:#fff;padding:12px 0}.breaking b{background:var(--orange);padding:8px 14px;border-radius:10px;margin-left:10px}.section{padding:38px 0}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#fff;border:1px solid var(--border);border-radius:20px;overflow:hidden;box-shadow:0 10px 28px #2233430c}.card-body{padding:18px}.thumb{height:165px;background:linear-gradient(135deg,var(--dark),var(--orange));display:flex;align-items:center;justify-content:center;color:#fff;font-size:44px}.meta{color:var(--muted);font-size:13px}.card h3{margin:8px 0 10px}.card a{text-decoration:none;color:var(--dark)}.schedule{width:100%;border-collapse:separate;border-spacing:0 10px}.schedule td,.schedule th{padding:14px;background:#fff}.schedule tr td:first-child,.schedule tr th:first-child{border-radius:0 14px 14px 0}.schedule tr td:last-child,.schedule tr th:last-child{border-radius:14px 0 0 14px}.footer{background:var(--dark);color:#dbe4ee;padding:34px 0;margin-top:40px}.footer a{color:#fff}.form-control{width:100%;padding:13px 14px;border:1px solid var(--border);border-radius:12px;margin:6px 0 14px;font-family:inherit}.alert{padding:12px 14px;border-radius:12px;margin:12px 0}.success{background:#e7f7ed;color:#166534}.error{background:#fee2e2;color:#991b1b}.admin-wrap{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:var(--dark);color:#fff;padding:22px}.sidebar a{display:block;color:#fff;text-decoration:none;padding:11px 12px;border-radius:10px;margin:5px 0}.sidebar a:hover{background:#ffffff16}.admin-main{padding:24px}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden}.table th,.table td{padding:12px;border-bottom:1px solid var(--border);text-align:right}.actions{display:flex;gap:8px}.danger{background:#dc2626}.muted{color:var(--muted)}
@media(max-width:850px){.hero-grid,.grid,.admin-wrap{grid-template-columns:1fr}.nav{display:none}.hero h1{font-size:34px}.sidebar{position:static}}


/* ===== UTF-8 Admin Repair Styles ===== */
.admin-topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.admin-topbar h1{margin:0;font-size:30px;font-weight:900;color:#1f3347}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:22px}.stat-card{background:#fff;border:1px solid var(--border);border-radius:20px;padding:22px;box-shadow:0 10px 28px #2233430c}.stat-card span{display:block;color:#64748b;font-weight:800}.stat-card strong{font-size:34px;color:var(--orange)}.admin-page-header{background:linear-gradient(135deg,#ffffff 0%,#fff7ed 100%);border:1px solid #fed7aa;border-radius:22px;padding:22px 24px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 12px 30px rgba(15,23,42,.06)}.admin-page-header h2{margin:0;font-size:26px;color:#1f3347;font-weight:900}.admin-page-header p{margin:7px 0 0;color:#64748b;font-size:14px}.admin-card{background:#fff;border-radius:24px;border:1px solid #e5e7eb;padding:22px;box-shadow:0 18px 45px rgba(15,23,42,.08)}.form-card{max-width:920px}.admin-card-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #eef2f7}.admin-card-title h3{margin:0;color:#1f3347;font-size:20px;font-weight:900}.admin-card-title span{display:inline-block;margin-top:5px;color:#64748b;font-size:13px}.table-responsive{width:100%;overflow-x:auto}.modern-table{width:100%;border-collapse:separate;border-spacing:0 10px;direction:rtl}.modern-table thead th{color:#475569;font-size:13px;font-weight:900;padding:12px 14px;text-align:right;white-space:nowrap}.modern-table tbody tr{background:#f8fafc;transition:.2s ease}.modern-table tbody tr:hover{background:#fff7ed;transform:translateY(-1px)}.modern-table tbody td{padding:14px;color:#1f2937;font-size:14px;vertical-align:middle;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7}.modern-table tbody td:first-child{border-right:1px solid #eef2f7;border-radius:0 16px 16px 0}.modern-table tbody td:last-child{border-left:1px solid #eef2f7;border-radius:16px 0 0 16px}.modern-table small{display:block;color:#64748b;font-size:12px;direction:ltr;text-align:right;margin-top:4px}.program-info{display:flex;align-items:center;gap:12px}.program-avatar{width:42px;height:42px;border-radius:14px;background:#f7941d;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:18px;flex-shrink:0}.program-info strong{display:block;color:#1f3347;font-size:15px;font-weight:900;margin-bottom:3px}.date-text{color:#334155;font-weight:700;direction:ltr;display:inline-block}.actions-col{text-align:center!important}.table-actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:nowrap}.action-btn{border:none;outline:none;padding:9px 14px;border-radius:12px;font-weight:900;font-size:13px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-width:64px;transition:.2s ease}.action-btn.edit{background:#f7941d;color:#fff}.action-btn.edit:hover{background:#e8840f}.action-btn.delete{background:#dc2626;color:#fff}.action-btn.delete:hover{background:#b91c1c}.btn-primary{background:#f7941d;color:#fff;border-radius:14px;padding:12px 18px;font-weight:900;text-decoration:none;border:none;display:inline-flex;align-items:center;justify-content:center}.btn-primary:hover{background:#1f3347;color:#fff}.empty-state{text-align:center;padding:35px 20px}.empty-state h3{margin:0 0 8px;color:#1f3347;font-size:22px}.empty-state p{margin:0 0 18px;color:#64748b}.admin-pagination{margin-top:22px;background:#fff;border:1px solid var(--border);border-radius:16px;padding:14px;display:flex;align-items:center;justify-content:center;gap:12px}.admin-pagination .page-link,.admin-pagination .page-disabled,.admin-pagination .page-info{padding:9px 14px;border-radius:10px;font-weight:700;font-size:14px}.admin-pagination .page-link{background:var(--orange);color:#fff;text-decoration:none}.admin-pagination .page-link:hover{background:var(--dark)}.admin-pagination .page-disabled{background:#eef2f7;color:#94a3b8}.admin-pagination .page-info{background:#fff7ed;color:var(--dark);border:1px solid #fed7aa}.checkbox-line{display:block;margin:10px 0;font-weight:800}@media(max-width:900px){.stats-grid{grid-template-columns:1fr 1fr}.admin-page-header{flex-direction:column;align-items:stretch}.modern-table{min-width:760px}}@media(max-width:600px){.stats-grid{grid-template-columns:1fr}.admin-topbar{flex-direction:column;align-items:stretch}}

.admin-form {
    display: grid;
    gap: 12px;
    max-width: 760px;
}

.admin-form label {
    font-weight: 900;
    color: #1f3347;
    margin-top: 6px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 13px 14px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: #ffffff;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: #f7941d;
    box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.12);
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.checkbox-row input {
    width: auto;
}

/* ================================
   Contact Messages Admin + Clear Mobile Menu
================================ */
.contact-summary-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.contact-summary-box span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    color: #1f3347;
    font-weight: 900;
}
.contact-summary-box strong { color: #f7941d; }
.contact-table .unread-row { background: #fff7ed !important; }
.contact-line { direction: ltr; text-align: right; color: #334155; font-weight: 700; margin: 3px 0; }
.message-preview { direction: rtl !important; text-align: right !important; max-width: 360px; }
.action-btn.neutral { background: #1f3347; color: #ffffff; }
.action-btn.neutral:hover { background: #0f172a; }
.message-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.message-detail-item { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 18px; padding: 16px; }
.message-detail-item.full { grid-column: 1 / -1; }
.message-detail-item span { display: block; color: #64748b; font-size: 13px; font-weight: 900; margin-bottom: 6px; }
.message-detail-item strong { display: block; color: #1f3347; font-size: 16px; }
.message-body-text { white-space: pre-wrap; line-height: 1.9; color: #1f3347; font-weight: 700; }
.message-actions { margin-top: 18px; justify-content: flex-start; }
.mobile-menu-toggle { display: none; }

@media (max-width: 768px) {
    .topbar { font-size: 12px; text-align: center; padding: 7px 0; }
    .navbar { position: sticky; top: 0; z-index: 999; background: #ffffff; border-bottom: 1px solid #e5e7eb; }
    .nav-inner { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; flex-wrap: wrap !important; padding: 10px 12px !important; }
    .brand { display: flex !important; align-items: center !important; gap: 8px !important; max-width: calc(100% - 115px) !important; overflow: hidden !important; text-decoration: none !important; }
    .brand img { width: 44px !important; height: 44px !important; border-radius: 50% !important; object-fit: cover !important; flex-shrink: 0 !important; }
    .brand span { display: block !important; font-size: 14px !important; font-weight: 900 !important; color: #1f3347 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; max-width: 185px !important; }
    .mobile-menu-toggle { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 7px !important; min-width: 98px !important; height: 42px !important; padding: 0 13px !important; border: 0 !important; border-radius: 14px !important; background: #1f3347 !important; color: #ffffff !important; font-family: inherit !important; font-size: 15px !important; font-weight: 900 !important; cursor: pointer !important; box-shadow: 0 8px 18px rgba(31, 51, 71, 0.18) !important; }
    .mobile-menu-toggle .menu-icon { font-size: 22px !important; line-height: 1 !important; color: #ffffff !important; }
    .mobile-menu-toggle .menu-text { color: #ffffff !important; font-weight: 900 !important; }
    .mobile-menu-toggle.is-open { background: #f7941d !important; }
    .nav-live-btn { width: 100% !important; text-align: center !important; justify-content: center !important; margin-top: 8px !important; order: 3 !important; }
    .nav { display: none !important; width: 100% !important; order: 4 !important; margin-top: 10px !important; background: #ffffff !important; border: 1px solid #e5e7eb !important; border-radius: 18px !important; padding: 10px !important; box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08) !important; }
    .nav.is-open { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
    .nav a { display: block !important; padding: 13px 14px !important; border-radius: 13px !important; background: #f8fafc !important; color: #1f3347 !important; text-decoration: none !important; font-size: 15px !important; font-weight: 900 !important; text-align: right !important; border: 1px solid #eef2f7 !important; margin: 0 !important; }
    .nav a:hover, .nav a:focus { background: #fff7ed !important; border-color: #fed7aa !important; color: #f7941d !important; }
    .message-details-grid { grid-template-columns: 1fr; }
    .contact-summary-box { width: 100%; }
    .contact-summary-box span { flex: 1; justify-content: center; }
}

@media (min-width: 769px) {
    .mobile-menu-toggle { display: none !important; }
    .nav { display: flex !important; }
}

/* Footer Custom Design */
.site-footer {
    background: linear-gradient(135deg, #1f3347 0%, #162637 100%);
    color: #ffffff;
    padding: 28px 0;
    margin-top: 45px;
    border-top: 4px solid #f7941d;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-dot {
    width: 14px;
    height: 46px;
    background: #f7941d;
    border-radius: 20px;
    box-shadow: 0 0 18px rgba(247, 148, 29, 0.45);
}

.footer-brand h3 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
}

.footer-brand p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-info {
    text-align: left;
    direction: rtl;
}

.footer-info p {
    margin: 5px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.footer-info strong {
    color: #ffffff;
    font-weight: 800;
}

.footer-info a {
    color: #f7941d;
    text-decoration: none;
    font-weight: 800;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 24px 0;
        text-align: center;
    }

    .footer-inner {
        justify-content: center;
    }

    .footer-brand {
        justify-content: center;
        width: 100%;
    }

    .footer-info {
        text-align: center;
        width: 100%;
    }

    .footer-separator {
        display: none;
    }

    .footer-info a {
        display: block;
        margin-top: 5px;
    }
}

/* === Modern Footer - Radio Misurata === */
.site-footer-modern {
    margin-top: 48px;
    background: linear-gradient(135deg, #13293d 0%, #1f3347 55%, #263f56 100%);
    color: #fff;
    border-top: 4px solid #f7941d;
    padding: 26px 0;
}

.footer-modern-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-modern-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-modern-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(247, 148, 29, 0.16);
    border: 1px solid rgba(247, 148, 29, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.footer-modern-brand h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.footer-modern-brand p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.70);
}

.footer-modern-copy {
    text-align: left;
}

.footer-modern-copy p {
    margin: 5px 0;
    color: rgba(255,255,255,0.76);
    font-size: 13.5px;
}

.developer-credit strong {
    color: #fff;
    font-weight: 800;
}

.developer-credit a {
    display: inline-block;
    margin-right: 10px;
    color: #f7941d;
    font-weight: 800;
    text-decoration: none;
    direction: ltr;
}

.developer-credit a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer-modern {
        padding: 24px 0;
        text-align: center;
    }

    .footer-modern-inner {
        justify-content: center;
    }

    .footer-modern-brand {
        width: 100%;
        justify-content: center;
    }

    .footer-modern-copy {
        width: 100%;
        text-align: center;
    }

    .developer-credit a {
        display: block;
        margin: 6px 0 0;
    }
}

/* تصغير حجم الفوتر فقط بدون تغيير التصميم */
.footer,
.site-footer,
footer {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    margin-top: 25px !important;
}

.footer h1,
.footer h2,
.footer h3,
.site-footer h1,
.site-footer h2,
.site-footer h3,
footer h1,
footer h2,
footer h3 {
    font-size: 17px !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

.footer p,
.site-footer p,
footer p {
    font-size: 13px !important;
    margin-top: 3px !important;
    margin-bottom: 3px !important;
    line-height: 1.5 !important;
}

.footer .container,
.site-footer .container,
footer .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.footer a,
.site-footer a,
footer a {
    font-size: 13px !important;
}

@media (max-width: 768px) {
    .footer,
    .site-footer,
    footer {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .footer h1,
    .footer h2,
    .footer h3,
    .site-footer h1,
    .site-footer h2,
    .site-footer h3,
    footer h1,
    footer h2,
    footer h3 {
        font-size: 15px !important;
    }

    .footer p,
    .site-footer p,
    footer p {
        font-size: 12px !important;
    }
}

/* تحسين عرض صور الأخبار والبرامج */
.thumb {
    overflow: hidden;
    border-radius: 14px;
    background: #f3f5f7;
}

.thumb img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
}

.card .thumb {
    min-height: 180px;
}

@media (max-width: 768px) {
    .thumb img {
        height: 160px;
    }

    .card .thumb {
        min-height: 160px;
    }
}

/* صور الأخبار والبرامج */
.thumb {
    overflow: hidden;
    border-radius: 14px;
    background: #f3f5f7;
    min-height: 180px;
}

.thumb img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
}
