

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
        }

        :root {
            --primary: #4361ee;
            --primary-dark: #3a56d4;
            --secondary: #f8f9fa;
            --text: #212529;
            --text-light: #6c757d;
            --border: #e9ecef;
            --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            --success: #28a745;
            --warning: #ffc107;
            --danger: #dc3545;
            --bg-light: #f5f7fb;
            --facebook: #1877f2;
            --instagram: #c13584;
        }

        body {
            background-color: var(--bg-light);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Navbar */

        /* Navbar */
        .navbar {
            background: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 0.8rem 2rem;
            top: 0;
            z-index: 100;
        }

        .navbar-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 700;
            font-size: 1.4rem;
            color: var(--primary);
            text-decoration: none;
        }

        .logo i {
            background: var(--primary);
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-light);
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav-links a:hover, 
        .nav-links a.active {
            color: var(--primary);
        }


        .search-box {
            position: relative;
        }

        .search-box input {
            padding: 0.6rem 1rem 0.6rem 2.5rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.9rem;
            width: 220px;
            transition: all 0.2s;
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
        }

        .search-box i {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
        }




        /* Main Content */
        .container {
            /* max-width: 1400px; */
            /* margin: 2rem auto; */
            padding: 0 2rem;
            /* flex: 1; */
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .header h1 {
            font-size: 1.8rem;
            font-weight: 700;
        }

        .header p {
            color: var(--text-light);
            margin-top: 0.5rem;
        }

        /* Filter Section */
        .filter-section {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--card-shadow);
            margin-bottom: 2rem;
        }

        .filter-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
        }

        .filter-group-btn {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }

        .filter-label {
            font-size: 0.9rem;
            color: var(--text-light);
            margin-bottom: 0.5rem;
            font-weight: 500;
        }


        .filter-control {
            padding: 0.7rem 1rem;
            border: 1px solid #75baff;
            border-radius: 8px;
            font-size: 0.8rem;
            background: #ffffff;
        }

        .apply-filter-btn {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0 1.5rem;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: background 0.2s;
        }

        .apply-filter-btn:hover {
            background: var(--primary-dark);
        }




        /* Ads Grid */
        .ads-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
            align-items: start;
        }



        .post-s-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .post-s-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        }

        .post-s-header {
            display: flex;
            align-items: center;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border);
        }

        .page-img {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            object-fit: cover;
            margin-right: 0.8rem;
        }

        .page-info {
            flex: 1;
        }

        .page-name {
            font-weight: 600;
            font-size: 1rem;
        }


        .page-name a {
    color: var(--primary); /* keeps your theme color */
    text-decoration: underline; /* make it visibly clickable */
    font-weight: 500;           /* slight emphasis */
    transition: color 0.2s ease;
    text-decoration: none;
}

.page-name a:hover {
    color: #435fe6; /* slightly darker on hover */
}

.sponsored-badge {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 0.4rem;
    display: inline-block;
}

.sponsored-badge a {
    color: var(--primary); /* keeps your theme color */
    text-decoration: underline; /* make it visibly clickable */
    font-weight: 500;           /* slight emphasis */
    transition: color 0.2s ease;
    text-decoration: none;
}

.sponsored-badge a:hover {
    color: #435fe6; /* slightly darker on hover */
}



        .post-s-id {
            font-size: 0.85rem;
            color: var(--text-light);
        }

        .post-s-menu {
            position: relative;
        }

        .menu-btn {
            /* background: none; */
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            color: #004f95;
        }

        .menu-btn:hover {
            background: var(--secondary);
        }

        .menu-items {
            position: absolute;
            top: 40px;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            width: 200px;
            z-index: 10;
            display: none;
        }

        .menu-items.show {
            display: block;
        }

        .menu-item {
            padding: 0.8rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            cursor: pointer;
            transition: background 0.2s;
        }

        .menu-item:hover {
            background: var(--secondary);
        }

        .menu-item i {
            width: 20px;
            color: var(--text-light);
        }

        .menu-item.delete {
            color: var(--danger);
        }

        .post-s-content {
            padding: 1.5rem;
        }

        .post-s-text {
            color: var(--text);
            margin-bottom: 1.5rem;
            line-height: 1.5;
            font-size: 1rem;
        }

        .post-s-media-container {
            position: relative;
            margin-bottom: 1.5rem;
            border-radius: 8px;
            overflow: hidden;
        }

        .post-s-media {
            width: 100%;
            display: block;
            max-height: 500px;
            object-fit: contain;
            background: #000;
        }

        .media-slider {
            display: flex;
            overflow-x: auto;
            gap: 10px;
            padding-bottom: 10px;
            margin-top: 10px;
        }

        .media-thumb {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid transparent;
        }

        .media-thumb.active {
            border-color: var(--primary);
        }



.post-s-meta span {
  white-space: nowrap;
}

.post-s-meta {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.4;
  margin-left: 1.4rem; 
}

.post-s-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}



.post-s-platforms {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.3rem;
}

        .post-s-note {
            background: var(--secondary);
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            position: relative;
        }

        .edit-note {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            color: #3f9cef;;
            cursor: pointer;
            font-size: 0.9rem;
        }

        .post-s-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .post-s-folder {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            color: var(--text-light);
            background: var(--secondary);
            padding: 0.4rem 0.8rem;
            border-radius: 20px;
            margin-bottom: 0.9rem; 
        }

        .post-s-details {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.6;
}

.post-s-details a {
  color: var(--primary);
  text-decoration: underline;
  word-break: break-all;
}

.post-s-details img {
  vertical-align: middle;
  height: 19px;
  margin-left: 4px;
}

        .post-s-cta {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
            text-decoration: none;
            display: inline-block;
        }

        .post-s-cta:hover {
            background: var(--primary-dark);
        }

        /* Footer */
        .footer {
            background: white;
            padding: 2rem;
            margin-top: 3rem;
            border-top: 1px solid var(--border);
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .footer-logo {
            font-weight: 700;
            font-size: 1.2rem;
            color: var(--primary);
        }

        .footer-links {
            display: flex;
            gap: 1.5rem;
        }

        .footer-links a {
            text-decoration: none;
            color: var(--text-light);
            font-size: 0.9rem;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: var(--primary);
        }

        .copyright {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        /* Loading and End States */
        .loader {
            display: flex;
            justify-content: center;
            padding: 3rem;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(67, 97, 238, 0.2);
            border-top: 5px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .no-more {
            text-align: center;
            padding: 2rem;
            color: var(--text-light);
            font-size: 1rem;
            font-weight: 500;
        }

        .no-results {
            text-align: center;
            padding: 3rem;
            color: var(--text-light);
            font-size: 1.1rem;
        }

        .no-results i {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--border);
        }

        /* Modal */
.note-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  justify-content: center;
  align-items: center;
}

.note-modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  width: 300px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.note-modal-content h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.note-modal-content input {
  width: 100%;
  padding: 8px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.note-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.save-btn {
  background: #1877f2;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.cancel-btn {
  background: #eee;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.note-status {
  margin-top: 10px;
  font-size: 0.85rem;
  color: green;
}



        .btn {
            padding: 0.7rem 1.5rem;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            border: none;
            font-size: 1rem;
        }

        .btn-cancel {
            background: var(--secondary);
            color: var(--text);
        }

        .btn-save {
            background: var(--primary);
            color: white;
        }


        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 2rem;
        }

        .pagination button {
            background: white;
            border: 1px solid var(--border);
            color: var(--text);
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .pagination button:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .pagination button.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
.media-thumb-wrap {
  position: relative;          /* anchor the icon */
  display: inline-block;
}
.media-thumb-wrap .play-icon {
  position: absolute;
  inset: 0;                    /* stretch full area */
  display: flex;               /* center the icon */
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  text-shadow: 0 0 4px #000;
  pointer-events: none;        /* clicks still hit the <img> */
}

        /* put this with your other styles */
.post-s-textarea {
  width: 100%;
  height: 6rem;        /* ≈4 lines; tweak as you like */
  padding: .75rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: vertical;    /* user can drag taller */
  background: #f7f8fa;
}



/* ========== post-s-footer polish ================================== */
/* ========== Ad-footer polish ================================== */
.post-s-footer{
  display:flex;
  flex-wrap:wrap;
  background: #f7fbff;
  padding:12px 16px;                 /* ← space left/right */
  gap:12px;
  align-items:flex-start;
  font-family:system-ui,sans-serif;
  border-radius:0 0 12px 12px;       /* match card corners if you want */
}

/* text column -------------------------------------------------- */
.footer-text{flex:1 1 200px;font-size:14px;line-height:1.35}
.footer-text .line-1{font-weight:600;color:#333;margin-bottom:2px}
.footer-text .line-2{margin-bottom:2px}
.footer-text .line-3{font-size:12px;color:#666;direction:ltr} /* URL look */


/* star style — already gold in prev CSS ----------------------- */
.stars{color:#f5c016;margin-right:4px;font-size:15px}
.rating{font-weight:600;margin-right:4px}

/* CTA button --------------------------------------------------- */
.cta-btn{
  flex:0 0 auto;
  background:#eee;
  border:none;
  border-radius:8px;
  padding:8px 20px;
  font-weight:600;
  cursor:pointer;
  transition:background .15s;
}
.cta-btn:hover{background:#ddd}

/* mobile: put button on its own row --------------------------- */
@media(max-width:500px){
  .cta-btn{width:100%}
}



.lazy-video {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.lazy-video img { display:block; width:100%; }
.lazy-video .play-icon {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:32px;
  text-shadow:0 0 6px #000;
  pointer-events:none;
}




        .user-profile {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e9ecef;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            cursor: pointer;
            position: relative;
        }

        .user-dropdown {
            position: absolute;
            top: 50px;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            width: 220px;
            z-index: 100;
            display: none;
        }

        .user-dropdown.show {
            display: block;
        }

        .user-dropdown .dropdown-header {
            padding: 1rem;
            border-bottom: 1px solid var(--border);
        }

        .user-dropdown .dropdown-item {
            padding: 0.8rem 1rem;
            text-decoration: none;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 0.8rem;
            transition: background 0.2s;
        }

        .user-dropdown .dropdown-item:hover {
            background: var(--secondary);
        }

        .user-dropdown .dropdown-item i {
            width: 20px;
            color: var(--text-light);
        }






  dialog#moveDlg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: 90vw;
    border: none;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    font-family: system-ui, sans-serif;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
  }

  dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
  }

  .move-header {
    background: #667fff;
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
  }

  .move-body {
    padding: 1rem 1.5rem;
    background: #fff;
  }

  .move-body label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
  }

  .move-body select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1rem;
  }

  .move-footer {
    padding: 1rem 1.5rem;
    background: #f5f5f5;
    text-align: right;
  }

  .move-footer button {
    padding: 8px 16px;
    margin-left: 10px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  #moveConfirmBtn {
    background: #4460F1;
    color: #fff;
  }

  #moveConfirmBtn:disabled {
    background: #ccc;
    cursor: default;
  }

  #moveStatusMsg {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #444;
  }






  dialog#deleteDlg {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    max-width: 90vw;
    border: none;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    font-family: system-ui, sans-serif;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
  }

  #deleteDlg::backdrop {
    background: rgba(0, 0, 0, 0.4);
  }

  .del-header {
    background: #c0392b;
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
  }

  .del-body {
    padding: 1.2rem 1.5rem;
    background: #fff;
    color: #333;
    font-size: 0.95rem;
  }

  .del-footer {
    padding: 1rem 1.5rem;
    background: #f5f5f5;
    text-align: right;
  }

  .del-footer button {
    padding: 8px 16px;
    margin-left: 10px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  #deleteConfirmBtn {
    background: #c0392b;
    color: #fff;
  }

  #deleteConfirmBtn:disabled {
    background: #ccc;
    cursor: default;
  }

    /* small, unobtrusive pending tasks banner */
    .pending-banner {
      display:none;
      margin: 10px auto 0;
      max-width: 1100px;
      border: 1px dashed #93c5fd;
      background: #eff6ff;
      color: #1e3a8a;
      padding: 10px 12px;
      border-radius: 8px;
      font-size: 14px;
    }
    .pending-banner .count {
      font-weight: 700;
      color: #1d4ed8;
    }
    .pending-banner .hint {
      color:#475569;
      margin-left:8px;
      font-size:12px;
    }
    .hidden { display:none !important; }



    /* container */
.footer {
  background: #f7f8fb;            /* light */
  border-top: 1px solid #e6e9f2;
  color: #2f3032;
  font-family: Arial, sans-serif;
}
.footer .max-width {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px;
}

/* grid */
.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) {
  .footer-main { grid-template-columns: 1.1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1fr; }
}

/* columns */
.footer-col .footer-title {
  font-weight: 700;
  font-size: 14px;
  color: #1b2a52;
  margin-bottom: 8px;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a {
  color: #1b42cd;                 /* accessible blue on light bg */
  text-decoration: none;
  font-size: 14px;
}
.footer-col a:hover { text-decoration: underline; }

/* brand block */
.footer-brand .site-logo .logo {
  height: 40px;
  display: block;
}
.brand-blurb {
  margin: 10px 0 14px 0;
  color: #545a67;
  font-size: 14px;
}

/* language selector (static) */
.lang-select { position: relative; width: max-content; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e3e7f5;
  padding: 6px 10px; border-radius: 6px; font-size: 13px;
  color: #2f3032; cursor: default;
}
.lang-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1b42cd; display: inline-block;
}
.lang-btn .chev { width: 16px; height: 12px; color: #6c7280; }

/* social */
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: #e9eefc; border-radius: 50%;
}
.social svg { width: 20px; height: 20px; fill: #1b42cd; }

/* bottom */
.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid #e6e9f2;
  padding-top: 16px;
  display: grid;
  gap: 10px;
}
.footer .note {
  margin: 0;
  background: #eef2ff;
  border: 1px solid #dbe4ff;
  color: #28324d;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.footer .copyright {
  font-size: 12px;
  color: #6c7280;
}

/* accessibility focus */
.footer a:focus-visible, .lang-btn:focus-visible {
  outline: 3px solid #a9b9ff;
  outline-offset: 2px;
  border-radius: 4px;
}
