/* ==========================================================================
   Connect Tag - Modular Components Design System & Styles
   SEO, AdSense Policy Compliant & Modern Web Standards
   ========================================================================== */

:root {
  --ct-primary: #0077b6;
  --ct-primary-hover: #005b8a;
  --ct-secondary: #25d366;
  --ct-dark-bg: #0d001a;
  --ct-card-bg: #1a0033;
  --ct-text-light: #ffffff;
  --ct-text-muted: #a0a0a0;
  --ct-text-dark: #222222;
  --ct-border: rgba(255, 255, 255, 0.1);
  --ct-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --ct-ad-bg: #f8f9fa;
  --ct-ad-border: #e9ecef;
  --ct-font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  --ct-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   0. Font Optimization & Overrides
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.0/webfonts/fa-brands-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.0/webfonts/fa-regular-400.woff2') format('woff2');
}

/* Cairo Fallback for CLS Optimization */
@font-face {
  font-family: 'Cairo-Fallback';
  src: local('Arial');
  ascent-override: 105%;
  descent-override: 35%;
  line-gap-override: 0%;
  size-adjust: 106%;
}

body {
  font-family: 'Cairo', 'Cairo-Fallback', system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   1. Header Component Styles (<site-header>)
   -------------------------------------------------------------------------- */
site-header {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1000;
  min-height: 80px;
}

.ct-header-navbar {
  background-color: rgba(13, 0, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ct-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10000;
  transition: var(--ct-transition);
}

.ct-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.ct-logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.ct-logo-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ct-logo-brand:hover img {
  transform: scale(1.05);
}

.ct-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.ct-nav-item {
  position: relative;
}

.ct-nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: var(--ct-transition);
  display: inline-block;
}

.ct-nav-link:hover,
.ct-nav-item.active .ct-nav-link {
  color: var(--ct-primary);
  background: rgba(0, 119, 182, 0.1);
}

.ct-nav-cta {
  background: linear-gradient(135deg, #0077b6 0%, #005b8a 100%);
  color: #ffffff !important;
  border-radius: 25px;
  padding: 8px 20px;
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.ct-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.5);
  background: linear-gradient(135deg, #00c3ff 0%, #0088cc 100%);
}

.ct-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ct-border);
  color: #fff;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--ct-transition);
}

.ct-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ct-primary);
}

/* --------------------------------------------------------------------------
   3. Breadcrumb Component Styles (<site-breadcrumb>)
   -------------------------------------------------------------------------- */
site-breadcrumb {
  display: block;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  margin-bottom: 20px;
}

.ct-breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5px;
}

.ct-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  font-size: 14px;
}

.ct-breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666666;
}

.ct-breadcrumb-item a {
  color: var(--ct-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--ct-transition);
}

.ct-breadcrumb-item a:hover {
  color: var(--ct-primary-hover);
  text-decoration: underline;
}

.ct-breadcrumb-separator {
  color: #999999;
  font-size: 11px;
}

.ct-breadcrumb-item.active {
  color: #333333;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Footer Component Styles (<site-footer>)
   -------------------------------------------------------------------------- */
site-footer {
  display: block;
  min-height: 450px;
  content-visibility: auto;
  contain-intrinsic-size: 100% 450px;
  background-color: var(--ct-dark-bg);
  color: var(--ct-text-light);
  margin-top: auto;
}

.ct-footer-main {
  padding: 60px 0 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.ct-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 35px;
  padding: 0 20px;
}

.ct-footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.ct-footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--ct-primary);
  border-radius: 2px;
}

.ct-footer-col p {
  color: var(--ct-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.ct-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ct-footer-links li {
  margin-bottom: 10px;
}

.ct-footer-links a {
  color: var(--ct-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--ct-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ct-footer-links a:hover {
  color: var(--ct-primary);
  transform: translateX(-5px);
}

.ct-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.ct-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 16px;
  transition: var(--ct-transition);
}

.ct-social-btn:hover {
  background: var(--ct-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 119, 182, 0.4);
}

.ct-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.ct-footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.ct-footer-credit-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--ct-primary);
  transition: var(--ct-transition);
}

.ct-footer-credit-link:hover {
  color: var(--ct-primary);
  border-bottom-color: #ffffff;
}

.ct-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ct-footer-legal-links a {
  color: var(--ct-text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: var(--ct-transition);
}

.ct-footer-legal-links a:hover {
  color: var(--ct-primary);
}

/* --------------------------------------------------------------------------
   5. Cookie Consent Component (<cookie-consent>)
   -------------------------------------------------------------------------- */
cookie-consent {
  display: block;
}

.ct-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(13, 0, 26, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ct-primary);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  color: #fff;
  transition: var(--ct-transition);
}

.ct-cookie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;
}

@media (max-width: 768px) {
  .ct-cookie-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 20px;
  }
  .ct-cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .ct-cookie-btn {
    width: 100%;
    order: 2; /* Ensure it stays at the bottom */
  }
  .ct-cookie-text {
    order: 1;
  }
}

.ct-cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}

.ct-cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.ct-cookie-text a {
  color: var(--ct-primary);
  text-decoration: underline;
  font-weight: 600;
}

.ct-cookie-btn {
  background: var(--ct-primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ct-transition);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

.ct-cookie-btn:hover {
  background: var(--ct-primary-hover);
  transform: translateY(-2px);
}

/* Back to Top Floating Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--ct-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 5px 20px rgba(0, 119, 182, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--ct-transition);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-5px);
  background: var(--ct-primary-hover);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .ct-mobile-toggle {
    display: block;
  }

  site-header nav {
    display: contents;
  }

  .ct-nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(13, 0, 26, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid var(--ct-border);
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .ct-nav-menu.open {
    display: flex;
    animation: fadeInDown 0.3s ease;
  }

  .ct-nav-link {
    width: 100%;
    text-align: right;
  }

  .ct-footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }

  .ct-footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ct-footer-col h4::after {
    right: 50%;
    margin-right: -20px;
  }

  .ct-footer-links a {
    justify-content: center;
  }

  .ct-social-icons {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   6. Preloader Component Styles (#preloader)
   -------------------------------------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    overflow: hidden;
}

.preloader-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 119, 182, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(37, 211, 102, 0.1) 0%, transparent 40%);
    filter: blur(80px);
    animation: bgMove 10s ease infinite alternate;
}

@keyframes bgMove {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(2%, 2%); }
}

#preloader::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 119, 182, 0.05), transparent);
    animation: scan 3s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { top: -100%; }
    100% { top: 100%; }
}

.preloader-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.loader-logo {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.loader-logo i {
    font-size: 40px;
    color: #0077b6;
    text-shadow: 0 0 20px rgba(0, 119, 182, 0.6);
}

.loader-logo span {
    font-family: 'Cairo', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #0077b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-status {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    height: 20px;
}

.log-success { color: #25d366; }
.log-info { color: #00adef; }

.progress-container {
    width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00adef, #25d366);
    box-shadow: 0 0 15px rgba(0, 119, 182, 0.5);
    transition: width 0.4s ease;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   7. Blog Components Styles
   -------------------------------------------------------------------------- */

/* Article Meta */
.ct-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  color: #777;
  font-size: 14px;
}
.ct-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ct-meta-item i {
  color: var(--ct-primary);
}
.ct-meta-item a {
  color: var(--ct-primary);
  font-weight: 700;
  text-decoration: none;
}

/* Share Buttons */
.ct-share-container {
  margin-top: 40px;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 15px;
}
.ct-share-title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 16px;
}
.ct-share-grid {
  display: flex;
  gap: 12px;
}
.ct-share-btn {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 20px;
  transition: var(--ct-transition);
}
.ct-share-btn:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.ct-share-btn.whatsapp { background: #25d366; }
.ct-share-btn.facebook { background: #3b5998; }
.ct-share-btn.twitter { background: #000; }
.ct-share-btn.telegram { background: #0088cc; }
.ct-share-btn.native-share { background: #0077b6; }
.ct-share-btn.linkedin { background: #0077b5; }

/* Author Card Simple - Minimalist & Interactive */
.ct-author-card-simple {
  margin-top: 40px;
  padding: 15px 20px;
  background: #f8faff;
  border-radius: 15px;
  border: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none !important;
  color: inherit !important;
  transition: var(--ct-transition);
}
.ct-author-card-simple:hover {
  background: #fff;
  border-color: var(--ct-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 119, 182, 0.08);
}
.ct-author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  background: #fff;
  flex-shrink: 0;
}
.ct-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.ct-author-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.ct-author-label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.ct-author-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1a0033;
}
.ct-author-arrow {
  color: #ccc;
  font-size: 12px;
  transition: var(--ct-transition);
}
.ct-author-card-simple:hover .ct-author-arrow {
  color: var(--ct-primary);
  transform: translateX(-5px);
}

@media (max-width: 768px) {
  .ct-author-card-simple { padding: 12px 15px; margin-top: 30px; }
  .ct-author-avatar { width: 40px; height: 40px; }
  .ct-author-name { font-size: 14px; }
}

/* Article Card */
.ct-article-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  transition: var(--ct-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ct-article-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.ct-card-img img { width: 100%; height: 200px; object-fit: cover; }
.ct-card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.ct-card-date { font-size: 12px; color: #999; margin-bottom: 10px; display: block; }
.ct-card-title { font-size: 18px; margin-bottom: 12px; font-weight: 700; line-height: 1.4; }
.ct-card-title a { color: #333; text-decoration: none; }
.ct-card-title a:hover { color: var(--ct-primary); }
.ct-card-excerpt { font-size: 14px; color: #666; margin-bottom: 20px; line-height: 1.6; }
.ct-card-link { margin-top: auto; font-weight: 700; color: var(--ct-primary); text-decoration: none; }

/* Related Posts Section */
.ct-related-posts { margin-top: 60px; padding-top: 40px; border-top: 1px solid #eee; }
.ct-section-title { font-size: 24px; font-weight: 800; margin-bottom: 30px; text-align: center; }
.ct-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* --------------------------------------------------------------------------
   8. App Components Styles
   -------------------------------------------------------------------------- */

/* App Header */
.ct-app-header { padding: 140px 0 80px; background: #fff; border-bottom: 1px solid #eee; }
.ct-app-logo { width: 120px; height: 120px; border-radius: 25px; margin-bottom: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.ct-app-title { font-size: 36px; font-weight: 800; color: #333; margin-bottom: 15px; }
.ct-app-subtitle { font-size: 18px; color: #777; }

/* Download Buttons */
.ct-app-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 40px; }
.ct-download-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #222;
  color: #fff !important;
  padding: 10px 25px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: var(--ct-transition);
  min-width: 200px;
  text-align: right;
}
.ct-download-btn:hover { transform: translateY(-5px); background: #000; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.ct-download-btn i { font-size: 28px; }
.ct-download-btn .btn-text { display: flex; flex-direction: column; }
.ct-download-btn .small-text { font-size: 11px; opacity: 0.8; }
.ct-download-btn .large-text { font-size: 18px; font-weight: 700; }

.ct-download-btn.google-play { background: #000; }
.ct-download-btn.app-store { background: #000; }
.ct-download-btn.apk { background: #006b98; }

/* Features Grid */
.ct-app-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.ct-feature-card { background: #f0f7f9; padding: 30px; border-radius: 15px; text-align: center; }
.ct-feature-card i { font-size: 32px; color: var(--ct-primary); margin-bottom: 15px; display: block; }
.ct-feature-label { display: block; font-size: 28px; font-weight: bold; color: #e89a2f; margin-bottom: 5px; }
.ct-feature-text { margin: 0; color: #555; }

/* --------------------------------------------------------------------------
   9. Policy & Legal Components Styles
   -------------------------------------------------------------------------- */
.ct-policy-container { padding: 120px 0 80px; background: #fff; }
.ct-policy-header {
  background: #fdfdfd;
  border-bottom: 1px solid #eee;
  padding: 120px 0 50px;
  margin-bottom: 0;
  text-align: center;
}
.ct-policy-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ct-policy-titles h1 { color: #006b98; font-size: 38px; font-weight: 800; margin: 0; }

/* Breadcrumb centering for policy pages */
.ct-policy-container site-breadcrumb {
  text-align: center;
  background: transparent;
  border: none;
  margin-bottom: 30px;
}
.ct-policy-container .ct-breadcrumb-list {
  justify-content: center;
}
.ct-policy-titles .subtitle-en { color: #777; font-size: 20px; margin-top: 5px; opacity: 0.8; }

.ct-policy-content { color: #555; }
.ct-policy-content h2 { color: #333; font-size: 24px; margin-top: 40px; margin-bottom: 20px; font-weight: 700; border-right: 4px solid var(--ct-primary); padding-right: 15px; }
.ct-policy-content p, .ct-policy-content li { line-height: 1.8; font-size: 16px; margin-bottom: 20px; }
.ct-policy-content hr { margin: 50px 0; border-color: #eee; }

[dir="ltr"] .ct-policy-content h2 { border-right: none; border-left: 4px solid var(--ct-primary); padding-right: 0; padding-left: 15px; }

@media (max-width: 768px) {
  .ct-policy-container { padding: 100px 0 60px; }
  .ct-policy-titles h1 { font-size: 24px; }
  .ct-app-header { padding: 100px 0 60px; }
  .ct-app-title { font-size: 28px; }
  .ct-download-btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   14. Code Block Component (<site-code-block>)
   -------------------------------------------------------------------------- */
site-code-block {
  display: block;
  margin: 30px 0;
  direction: ltr; /* Always LTR for code */
}

.ct-code-wrapper {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  border: 1px solid #333;
}

.ct-code-header {
  background: #2d2d2d;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3d3d3d;
}

.ct-code-controls {
  display: flex;
  gap: 8px;
}

.ct-code-controls .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.ct-code-title {
  color: #aaa;
  font-size: 13px;
  font-family: var(--ct-font-family);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ct-copy-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: var(--ct-font-family);
}

.ct-copy-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.ct-copy-btn.copied {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.ct-code-body {
  padding: 0;
  margin: 0;
}

.ct-code-body pre {
  margin: 0;
  padding: 20px;
  background: transparent;
  border: none;
  overflow-x: auto;
}

.ct-code-body code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  color: #d4d4d4;
  font-size: 14px;
  line-height: 1.6;
  background: transparent;
  padding: 0;
}

/* RTL Adjustment for Arabic Text around code */
[dir="rtl"] site-code-block {
  text-align: left;
}

