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

:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --text: #eef4ff;
  --muted: #b9c6dd;
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #6f42c1;
  --secondary-dark: #5a32a3;
  --card: #ffffff;
  --card-text: #162033;
  --border: #dce6f5;
  --surface: #f4f8ff;
  --surface-alt: #eef4ff;
  --shadow: 0 18px 45px rgba(13, 27, 54, 0.10);
  --gradient-main: linear-gradient(135deg, #0b1220 0%, #113566 48%, #6f42c1 100%);
  --gradient-soft: linear-gradient(135deg, #f4f7ff 0%, #eef2ff 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  background: var(--surface);
  color: #162033;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand-mark {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 800;
}
.brand strong { font-weight: 800; }
.brand small, .eyebrow { display: block; color: #c7d7ff; font-size: 0.92rem; }
.main-nav { display: flex; align-items: center; gap: 12px; }
.main-nav a { color: #e8eef8; padding: 10px 12px; border-radius: 10px; transition: 0.2s ease; }
.main-nav a.active, .main-nav a:hover { background: rgba(255,255,255,0.08); }
.nav-toggle { display:none; background:none; color:#fff; border:0; font-size:1.8rem; cursor:pointer; }
.hero-section { background: var(--gradient-main); color: var(--text); padding: 90px 0; }
.hero-grid, .two-col { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; align-items: center; }
.hero-section h1, .page-hero h1 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.2; margin: 12px 0 16px; }
.hero-actions, .admin-links { display:flex; flex-wrap:wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.hero-stats div, .stat-card { background: rgba(255,255,255,0.09); padding: 18px; border-radius: 18px; text-align:center; }
.hero-stats strong, .stat-card strong { display:block; font-size: 1.6rem; color: #fff; font-weight: 800; }
.spotlight-card { background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.14); color: #fff; }
.section, .page-hero { padding: 70px 0; }
.page-hero { background: linear-gradient(135deg, #0b1220 0%, #113566 52%, #6f42c1 100%); color: var(--text); position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 85% 20%, rgba(129, 92, 246, 0.32), transparent 28%), radial-gradient(circle at 15% 85%, rgba(13, 110, 253, 0.22), transparent 24%); pointer-events:none; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: rgba(255,255,255,0.88); }
.page-hero p { color: rgba(238,244,255,0.92); max-width: 760px; }
.section-alt { background: var(--surface-alt); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); margin: 10px 0 0; }
.cards-grid { display:grid; gap: 22px; }
.cards-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--card);
  color: var(--card-text);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.service-icon, .portfolio-badge, .meta-pill {
  display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; border-radius:14px; background:#eef3ff; color:var(--primary-dark); font-weight:800; margin-bottom: 12px;
}
.portfolio-badge, .meta-pill { padding: 8px 14px; min-height:auto; }
.check-list, .info-list, .site-footer ul { list-style:none; padding:0; margin:0; }
.check-list li, .info-list li, .site-footer li { position:relative; padding-right: 22px; margin-bottom: 10px; }
.check-list li::before, .info-list li::before, .site-footer li::before { content:'✓'; position:absolute; right:0; color: var(--primary); font-weight: 800; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:14px; padding: 13px 22px; font-weight:800; border: 1px solid transparent; cursor:pointer; transition: 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color:#fff; }
.btn-primary:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-outline { border-color:#c7d8ea; color:#10203a; background:#fff; }
.hero-section .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-light { background:#fff; color:#0d2039; }
.contact-form { display:grid; gap:14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width:100%; padding:14px 15px; border-radius:14px; border:1px solid #d7e3f0; background:#fff; font:inherit;
}
.alert { border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; }
.alert-success { background:#eef8ff; color:#0d54be; border:1px solid #c6defd; }
.alert-error { background:#fff1f1; color:#bb2e2e; border:1px solid #f2caca; }
.contact-layout, .admin-forms { align-items:flex-start; }
.cta-section { background: linear-gradient(135deg, #0b1220, #113566 58%, #6f42c1); color:#fff; }
.cta-box { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.site-footer { background:#0b1220; color:#dfe8f8; padding-top: 55px; }
.footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); margin-top:24px; padding:18px 0; text-align:center; }
.narrow { width:min(520px, calc(100% - 32px)); }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse: collapse; min-width: 700px; }
th, td { text-align:right; padding:14px; border-bottom: 1px solid #e4edf7; }
.dashboard-top { display:flex; align-items:center; justify-content:space-between; gap: 16px; margin-bottom: 22px; }
.admin-panel .stat-card { background: linear-gradient(135deg, #eef3ff, #f5efff); }
.admin-panel .stat-card strong { color:#10203a; }
.admin-panel .eyebrow { color: #667892; font-weight: 800; text-shadow: none; }
.admin-panel h1, .admin-panel h2 { color: #162033; text-shadow: none; }
.admin-auth-section { min-height: calc(100vh - 220px); display:flex; align-items:center; }
.auth-card h1, .admin-panel h1, .section h1, .section h2, .section h3, .page-hero h1, .page-hero h2, .site-footer h3, .site-footer h4 {
  font-weight: 800;
}
@media (max-width: 920px) {
  .hero-grid, .two-col, .footer-grid, .cards-grid.three { grid-template-columns: 1fr; }
  .cta-box, .dashboard-top { flex-direction:column; align-items:flex-start; }
  .hero-stats { grid-template-columns: 1fr; }
}

body.nav-open { overflow: hidden; }
.mobile-only { display: none !important; }
.admin-header-actions { display:flex; align-items:center; gap:12px; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 11, 24, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 55;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }
.admin-panel .container { width: min(1180px, calc(100% - 24px)); }
.table-card { overflow: hidden; }
.table-wrap { overflow:auto; -webkit-overflow-scrolling: touch; }
.admin-panel table td { vertical-align: top; word-break: break-word; }
.auth-card { padding: 28px; }
@media (min-width: 921px) {
  .main-nav { display:flex !important; }
}
@media (max-width: 920px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  .nav-wrap { min-height: 72px; }
  .site-header { overflow: visible; }
  .brand { min-width: 0; gap: 10px; }
  .brand > div { min-width: 0; }
  .brand strong, .brand small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
  .nav-toggle {
    display:inline-flex; align-items:center; justify-content:center;
    width: 46px; height:46px; border-radius: 14px;
    background: rgba(255,255,255,0.1); color:#fff;
    position: relative; z-index: 62;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 88px 18px 24px;
    background: #0d1c33;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.28s ease, opacity 0.2s ease;
    z-index: 60;
    box-shadow: -18px 0 40px rgba(0,0,0,0.25);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open {
    display:flex !important;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  .main-nav a, .main-nav .btn { width:100%; justify-content:center; }
  .hero-section { padding: 72px 0; }
  .section, .page-hero { padding: 56px 0; }
  .card { padding: 18px; border-radius: 20px; }
  .container, .narrow { width: min(100% - 20px, 1120px); }
  .footer-grid, .hero-grid, .two-col, .cards-grid.three, .cards-grid.two { grid-template-columns: 1fr; }
  .cta-box, .dashboard-top, .hero-actions, .admin-links { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .admin-links .btn, .dashboard-top .btn { width:100%; }
  .admin-auth-section { min-height: auto; }
  .admin-panel .cards-grid.three { gap: 14px; }
  .admin-panel .stat-card strong { font-size: 1.35rem; }
  table { min-width: 100%; }
  .admin-panel table,
  .admin-panel thead,
  .admin-panel tbody,
  .admin-panel th,
  .admin-panel td,
  .admin-panel tr {
    display: block;
    width: 100%;
  }
  .admin-panel thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .admin-panel tbody {
    display: grid;
    gap: 14px;
  }
  .admin-panel tr {
    background: #fff;
    border: 1px solid #e4edf7;
    border-radius: 18px;
    padding: 8px 12px;
    box-shadow: var(--shadow);
  }
  .admin-panel td {
    text-align: right;
    border-bottom: 1px solid #eef3fb;
    padding: 10px 0;
  }
  .admin-panel td:last-child { border-bottom: 0; }
  .admin-panel td::before {
    content: attr(data-label);
    display: block;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
  }
}


/* v1.0.5 mobile drawer rebuild */
.desktop-nav { display:flex; }
.mobile-toggle { display:none; }
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: #0d1c33;
  border-left: 1px solid rgba(255,255,255,0.12);
  box-shadow: -18px 0 40px rgba(0,0,0,0.25);
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: transform .28s ease, opacity .2s ease, visibility .2s ease;
  z-index: 80;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
.mobile-drawer-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drawer-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-drawer-nav {
  display:flex;
  flex-direction:column;
  gap:8px;
  padding: 16px;
}
.mobile-drawer-nav a {
  color:#e8eef8;
  padding:12px 14px;
  border-radius:12px;
}
.mobile-drawer-nav a.active,
.mobile-drawer-nav a:hover { background: rgba(255,255,255,0.08); }
.nav-backdrop { z-index: 70; }
.site-header { z-index: 60; }

@media (min-width: 921px) {
  .mobile-drawer, .nav-backdrop, .mobile-toggle { display:none !important; }
}

@media (max-width: 920px) {
  .desktop-nav, .desktop-only { display:none !important; }
  .mobile-toggle { display:inline-flex !important; align-items:center; justify-content:center; }
  .main-nav { display:none !important; }
  .nav-wrap { min-height:72px; }
  .brand { flex:1; min-width:0; }
  .brand strong, .brand small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}

/* v1.0.7 enhancements */
.stats-grid-four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-links-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.actions-cell { display:flex; flex-wrap:wrap; gap:8px; }
.inline-form { margin:0; }
.inline-form select { min-width: 160px; }
.btn-danger { background:#c1121f; color:#fff; }
.btn-sm { padding: 9px 14px; border-radius: 12px; font-size: .92rem; }
.status-badge {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 800;
}
.badge-new { background:#e8f1ff; color:#0d58ca; }
.badge-progress { background:#f2ebff; color:#6f42c1; }
.badge-done { background:#e9fbef; color:#0b6b3a; }
.checkbox-label {
  display:flex; align-items:center; gap:10px; padding: 10px 0;
}
.checkbox-label input { width:auto; }
.form-actions-row { display:flex; flex-wrap:wrap; gap:10px; }
.form-actions-row.full-span { grid-column: 1 / -1; }
.settings-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-grid label:nth-last-child(2),
.settings-grid textarea,
.settings-grid .full-span { grid-column: 1 / -1; }
.whatsapp-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  background: #1fa855; color:#fff; padding: 12px 16px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 52, 31, 0.24); font-weight: 800;
}
@media (max-width: 920px) {
  .settings-grid { grid-template-columns: 1fr; }
  .actions-cell { flex-direction:column; align-items:stretch; }
  .inline-form select { width:100%; }
  .whatsapp-float { left: 12px; bottom: 12px; padding: 10px 14px; }
}


.admin-note { color:#5b6b88; margin-top:10px; max-width:900px; }
.compact-links { gap:10px; flex-wrap:wrap; }
.page-editor-card { display:grid; gap:20px; }
.page-switcher-form { justify-content:flex-start; }
.panel-separator { border:none; border-top:1px solid #e7ecf6; margin:0; }
.page-content-grid textarea { min-height:110px; }
@media (max-width: 768px) {
  .compact-links { width:100%; }
  .compact-links .btn { width:100%; justify-content:center; }
}


.brand-logo { width: 48px; height: 48px; object-fit: cover; border-radius: 14px; background:#fff; padding:4px; }
.hero-has-media, .page-hero-has-media, .cta-has-media { position: relative; overflow: hidden; }
.hero-has-media::before, .page-hero-has-media::before, .cta-has-media::before {
  content:''; position:absolute; inset:0; background-image: var(--hero-bg, var(--page-hero-bg, var(--cta-bg))); background-size: cover; background-position: center; opacity: .42;
}
.hero-has-media::after, .page-hero-has-media::after, .cta-has-media::after {
  content:''; position:absolute; inset:0; background: linear-gradient(135deg, rgba(11,18,32,.68), rgba(17,53,102,.58) 55%, rgba(111,66,193,.42));
}
.hero-has-media > .container, .page-hero-has-media > .container, .cta-has-media > .container { position:relative; z-index:1; }
.hero-grid-media { grid-template-columns: 1.2fr .8fr; }
.hero-media-card, .section-media-card { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background:#fff; }
.hero-media-card img, .section-media-card img, .info-card-image { width:100%; height:100%; object-fit:cover; }
.hero-media-card { min-height: 420px; }
.section-media-card { min-height: 340px; }
.content-split.with-media { display:grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap:24px; align-items:start; }
.content-split.with-media.reverse { grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); }
.content-split.with-media.reverse > :first-child { order:2; }
.content-split.with-media.reverse > :last-child { order:1; }
.align-center { align-items:center; }
.stacked-cards { grid-template-columns: 1fr; }
.info-card-has-media { overflow:hidden; }
.info-card-image { max-height: 220px; border-radius: 18px; margin-bottom: 18px; }
.gradient-text { background: linear-gradient(45deg, #0D6EFD, #6F42C1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.media-panel-title h2 { margin:0; }
.media-upload-card { border:1px dashed #d8e3f5; border-radius:20px; padding:16px; background:#fbfdff; }
.media-preview-wrap { display:grid; gap:12px; margin-top:12px; }
.media-preview { width:100%; max-width:320px; max-height:220px; object-fit:cover; border-radius:16px; border:1px solid #dbe6f8; }
.logo-preview { width:96px; height:96px; max-height:none; object-fit:contain; background:#fff; padding:6px; }
.inline-check { padding:0; }
@media (max-width: 920px) {
  .hero-grid-media, .content-split.with-media, .content-split.with-media.reverse, .two-col.align-center { grid-template-columns: 1fr; }
  .content-split.with-media.reverse > :first-child, .content-split.with-media.reverse > :last-child { order: initial; }
  .hero-media-card, .section-media-card { min-height: 240px; }
  .brand-logo { width:44px; height:44px; border-radius:12px; }
}


.service-image, .portfolio-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
  border: 1px solid #dbe6f8;
  background: #f8fbff;
}
.portfolio-card.has-cover .portfolio-badge { margin-top: 2px; }
.thumb-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #dbe6f8;
  background: #fff;
}
@media (max-width: 920px) {
  .service-image, .portfolio-image { height: 190px; }
  .thumb-preview { width: 88px; height: 88px; }
}


.section-head .eyebrow {
  font-size: 1rem;
  font-weight: 700;
  color: #6f42c1;
}
.section-dark {
  background: linear-gradient(135deg, #0b1220 0%, #10294d 55%, #5f3aa7 100%);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 84% 18%, rgba(129,92,246,.28), transparent 25%), radial-gradient(circle at 10% 82%, rgba(13,110,253,.18), transparent 22%);
  pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }
.section-dark .section-head .eyebrow,
.section-dark .eyebrow { color: rgba(255,255,255,0.82); }
.section-dark .section-head h2,
.section-dark .section-head h1,
.section-dark .section-head h3,
.section-dark h1,
.section-dark h2 { color: #ffffff; }
.section-dark p:not(.alert p),
.section-dark .muted,
.section-dark .section-copy { color: rgba(232,238,248,.88); }
.section-dark .card { background: rgba(255,255,255,0.96); color: var(--card-text); }
.section-dark .portfolio-badge,
.section-dark .meta-pill,
.section-dark .service-icon { background: #eef3ff; color: var(--primary-dark); }
.section-dark .card h3,
.section-dark .card h4,
.section-dark .card strong,
.section-dark .card .card-title { color: #162033; }
.section-dark .card p,
.section-dark .card span,
.section-dark .card li,
.section-dark .card .muted,
.section-dark .card .section-copy,
.section-dark .testimonial-card p,
.section-dark .testimonial-card span,
.section-dark .portfolio-card p,
.section-dark .service-card p { color: #4a5874 !important; opacity: 1; }
.section-dark .card a:not(.btn):not(.btn-primary):not(.btn-outline):not(.btn-light) { color: var(--primary-dark); }
.section-dark .section-media-card { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.08); }


.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-inline-start:8px;border-radius:999px;background:#ef4444;color:#fff;font-size:.75rem;font-weight:700}
.social-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.social-links a{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.12)}
.testimonial-head{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.testimonial-avatar,.avatar-preview{width:58px;height:58px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid rgba(255,255,255,.14);background:#1f2937}
.admin-filter-bar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.admin-filter-bar input,.admin-filter-bar select{min-width:220px}

/* v1.11.1 UX improvements */
img[loading="lazy"] { content-visibility: auto; }
.table-head-inline { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:14px; }
.sortable-body tr[draggable="true"] { cursor: grab; transition: background-color .2s ease, opacity .2s ease, box-shadow .2s ease; }
.sortable-body tr[draggable="true"]:hover { background:#f8fbff; }
.sortable-body tr.is-dragging { opacity:.55; box-shadow: inset 0 0 0 2px rgba(13,110,253,.18); }
.sortable-body.is-saving { opacity:.75; }
.drag-handle {
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; margin-inline-end:10px;
  border:1px dashed #c7d8ea; border-radius:12px; background:#f8fbff;
  color:#4b5e80; cursor:grab; font-size:1.1rem;
}
.drag-handle:active { cursor:grabbing; }
.sort-order-value { display:inline-flex; min-width:24px; font-weight:800; }
.nav-badge.pulse { animation: navBadgePulse 1.5s infinite; }
@keyframes navBadgePulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); }
  70% { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@media (max-width: 920px) {
  .table-head-inline { flex-direction:column; }
  .drag-handle { width:42px; height:42px; }
}


/* v1.11.2 admin polish, loader, toast, confirm */
.alert { border-radius: 18px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid transparent; }
.alert p { margin: 0; font-weight: 700; }
.alert-success { background: rgba(12, 166, 120, 0.12); border-color: rgba(12, 166, 120, 0.24); color: #0d7a58; }
.alert-error { background: rgba(220, 53, 69, 0.10); border-color: rgba(220, 53, 69, 0.22); color: #ad1f2d; }
.toast-stack {
  position: fixed; top: 92px; left: 20px; z-index: 120;
  display: flex; flex-direction: column; gap: 12px; width: min(360px, calc(100vw - 32px));
}
.toast {
  background: rgba(13, 28, 51, 0.96); color: #fff; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; padding: 14px 16px; box-shadow: 0 18px 45px rgba(13, 27, 54, 0.22);
  transform: translateY(-8px); opacity: 0; transition: 0.25s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.toast-success { border-right: 4px solid #10b981; }
.toast.toast-error { border-right: 4px solid #ef4444; }
.toast strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.toast p { margin: 0; color: #dbe7ff; line-height: 1.7; }
.page-loader {
  position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 13, 27, 0.55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: 0.2s ease;
}
.page-loader.show { opacity: 1; visibility: visible; }
.page-loader-box {
  min-width: 220px; padding: 22px 24px; background: #0d1c33; color: #fff; border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 18px 45px rgba(0,0,0,0.24); text-align: center;
}
.page-loader-box strong, .page-loader-box small { display: block; }
.page-loader-box small { color: #c6d5f3; margin-top: 6px; }
.loader-spinner {
  width: 42px; height: 42px; border-radius: 50%; display: inline-block; margin-bottom: 12px;
  border: 3px solid rgba(255,255,255,0.18); border-top-color: #fff; animation: egysrv-spin 0.75s linear infinite;
}
@keyframes egysrv-spin { to { transform: rotate(360deg); } }
.confirm-modal {
  position: fixed; inset: 0; z-index: 125; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 13, 27, 0.58); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: 0.2s ease;
}
.confirm-modal.show { opacity: 1; visibility: visible; }
.confirm-modal-dialog {
  width: min(460px, calc(100vw - 24px)); background: #fff; color: #162033; border-radius: 24px; padding: 24px;
  box-shadow: 0 18px 45px rgba(13, 27, 54, 0.22);
}
.confirm-modal-dialog h3 { margin: 0 0 10px; }
.confirm-modal-dialog p { margin: 0; color: #55657f; }
.confirm-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.admin-panel .card, .admin-panel .table-card { border: 1px solid rgba(19, 40, 74, 0.08); }
.admin-panel .card h2 { margin-top: 0; }
.admin-filter-bar, .form-actions-row, .table-head-inline { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.form-actions-row .btn, .actions-cell .btn { min-height: 42px; }
.admin-note { color: #6d7d95; }
.inline-form select, .inline-form input, .contact-form select, .contact-form input, .contact-form textarea {
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.inline-form select:focus, .inline-form input:focus, .contact-form select:focus, .contact-form input:focus, .contact-form textarea:focus {
  border-color: rgba(13,110,253,0.45); box-shadow: 0 0 0 4px rgba(13,110,253,0.10); outline: none;
}
.btn.is-loading { opacity: 0.85; pointer-events: none; }
.btn.is-loading::after { content: '...'; margin-inline-start: 4px; }
@media (max-width: 920px) {
  .toast-stack { left: 12px; top: 84px; width: calc(100vw - 24px); }
  .confirm-modal-actions { flex-direction: column-reverse; }
  .confirm-modal-actions .btn { width: 100%; }
  .admin-filter-bar, .form-actions-row, .table-head-inline { flex-direction: column; align-items: stretch; }
}



/* v1.11.4 mobile header reverse + clean release */
.nav-wrap { justify-content: space-between; }
.mobile-toggle { order: 2; }
.brand { order: 1; }

@media (max-width: 920px) {
  .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .brand {
    order: 1;
    flex: 0 1 auto;
    min-width: 0;
    margin-inline-start: 0;
    margin-inline-end: auto;
  }
  .mobile-toggle {
    order: 2;
    margin-inline-start: auto;
    margin-inline-end: 0;
  }
  .mobile-drawer {
    left: 0;
    right: auto;
    border-right: 1px solid rgba(255,255,255,0.12);
    border-left: 0;
    box-shadow: 18px 0 40px rgba(0,0,0,0.25);
    transform: translateX(-105%);
  }
  .mobile-drawer.open {
    transform: translateX(0);
  }
}


@media (min-width: 921px){
  body.site-area .brand{
    grid-column: 1 !important;
    justify-self: start !important;
    text-align: left !important;
  }
  body.site-area .main-nav.desktop-nav{
    grid-column: 2 !important;
    justify-self: center !important;
  }

  body.admin-area .brand{
    grid-column: 1 !important;
    justify-self: start !important;
    text-align: left !important;
  }
}


/* عكس اللوجو */
    align-items:center !important;
    gap:10px !important;
  }

  .site-header .brand > div{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-end !important;
    text-align:right !important;
    line-height:1.1 !important;
  }

  .site-header .nav-wrap{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
  }

  .main-nav.desktop-nav{
    flex:1 !important;
    display:flex !important;
    justify-content:center !important;
    gap:10px !important;
  }

}


/* v1.14.0 header rebuild start */
.site-header .header-side{
  display:flex;
  align-items:center;
}
.site-header .header-center{
  flex:1 1 auto;
  display:flex;
  justify-content:center;
  min-width:0;
}
.site-header .header-actions-side{
  justify-content:flex-start;
}
.site-header .header-brand-side{
  justify-content:flex-end;
}
.site-header .brand{
  display:flex;
  flex-direction:row-reverse;
  align-items:center;
  gap:12px;
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
}
.site-header .brand > div{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:4px;
  text-align:right;
  white-space:nowrap;
}
.site-header .brand strong{
  display:block;
  margin:0;
  line-height:1.05;
}
.site-header .brand small{
  display:block;
  margin:0;
  line-height:1.05;
}
.site-header .site-header-actions{
  display:flex;
  align-items:center;
  white-space:nowrap;
}
.site-header .main-nav.desktop-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:0;
  flex-wrap:nowrap;
}
.site-header .main-nav.desktop-nav a{
  white-space:nowrap;
}

@media (min-width: 921px){
  body.site-area .site-header .container,
  body.admin-area .site-header .container,
  body.admin-area .admin-panel .container{
    width:min(1440px, calc(100% - 36px));
  }

  .site-header .nav-wrap{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:22px;
    min-height:84px;
  }

  .site-header .header-side{
    flex:0 0 auto;
  }

  .site-header .header-center{
    flex:1 1 auto;
    min-width:0;
  }

  .site-header .header-actions-side{
    order:1;
    margin-right:auto;
  }

  .site-header .header-center{
    order:2;
  }

  .site-header .header-brand-side{
    order:3;
    margin-left:auto;
  }

  body.site-area .site-header .main-nav.desktop-nav{
    font-size:.98rem;
  }

  body.site-area .site-header .main-nav.desktop-nav a{
    padding:10px 11px;
  }

  body.admin-area .site-header .admin-desktop-nav{
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:0;
    flex-wrap:nowrap;
  }

  body.admin-area .site-header .admin-desktop-nav a{
    white-space:nowrap;
    padding:9px 8px;
    font-size:.88rem;
  }

  body.admin-area .site-header .header-actions-side .btn{
    padding:10px 14px;
    white-space:nowrap;
  }

  .site-header .mobile-toggle{
    display:none !important;
  }
}

@media (max-width: 920px){
  .site-header .nav-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  .site-header .header-center{
    display:none;
  }
  .site-header .header-actions-side .desktop-only,
  .site-header .header-center .desktop-only,
  .site-header .header-brand-side .desktop-only{
    display:none !important;
  }
  .site-header .header-actions-side{
    order:1;
  }
  .site-header .header-brand-side{
    order:2;
    margin-right:auto;
  }
  .site-header .mobile-toggle{
    display:inline-flex;
  }
}
/* v1.14.0 header rebuild end */



/* v1.14.1 swap logo/button */
@media (min-width: 921px){
  .site-header .header-actions-side{
    order:3 !important;
    margin-left:auto !important;
    margin-right:0 !important;
  }

  .site-header .header-brand-side{
    order:1 !important;
    margin-right:auto !important;
    margin-left:0 !important;
  }
}


/* v1.15.0 radical mobile header rebuild */
@media (max-width: 920px){
  /* isolate mobile header from RTL flex confusion */
  .site-header .container{
    width:100% !important;
    max-width:100% !important;
    padding-left:12px !important;
    padding-right:12px !important;
  }

  .site-header .nav-wrap{
    display:flex !important;
    direction:ltr !important;
    justify-content:space-between !important;
    align-items:center !important;
    width:100% !important;
    gap:0 !important;
    min-height:72px !important;
  }

  .site-header .header-actions-side{
    order:1 !important;
    direction:ltr !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex:0 0 auto !important;
    margin:0 !important;
    width:auto !important;
  }

  .site-header .header-center{
    display:none !important;
    width:0 !important;
    flex:0 0 0 !important;
    overflow:hidden !important;
  }

  .site-header .header-brand-side{
    order:2 !important;
    direction:rtl !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    flex:0 0 auto !important;
    margin:0 !important;
    width:auto !important;
  }

  .site-header .brand{
    direction:rtl !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    max-width:calc(100vw - 96px) !important;
    white-space:nowrap !important;
    margin:0 !important;
  }

  .site-header .brand > div{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-end !important;
    justify-content:center !important;
    text-align:right !important;
    gap:3px !important;
    min-width:0 !important;
  }

  .site-header .brand strong,
  .site-header .brand small{
    white-space:nowrap !important;
  }

  .site-header .mobile-toggle{
    display:inline-flex !important;
    margin:0 !important;
  }

  .site-header .desktop-only{
    display:none !important;
  }
}


/* v1.15.1 desktop homepage polish start */
@media (min-width: 921px) {
  body.site-area .hero-section .container,
  body.site-area .section .container,
  body.site-area .page-hero .container {
    width: min(1360px, calc(100% - 56px)) !important;
  }

  body.site-area .hero-section {
    padding-top: 110px !important;
    padding-bottom: 92px !important;
  }

  body.site-area .hero-grid {
    grid-template-columns: minmax(460px, 0.94fr) minmax(560px, 1.06fr) !important;
    gap: 52px !important;
    align-items: center !important;
  }

  body.site-area .hero-media,
  body.site-area .hero-visual,
  body.site-area .hero-art {
    justify-self: start !important;
  }

  body.site-area .hero-copy {
    max-width: 760px !important;
    justify-self: end !important;
  }

  body.site-area .hero-section h1 {
    font-size: clamp(3.4rem, 4.4vw, 5rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.02em !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
  }

  body.site-area .hero-section p {
    font-size: 1.16rem !important;
    line-height: 2.02 !important;
    max-width: 760px !important;
    color: rgba(232, 238, 248, 0.95) !important;
  }

  body.site-area .hero-actions {
    gap: 16px !important;
    margin-top: 34px !important;
  }

  body.site-area .hero-actions .btn {
    min-width: 190px !important;
    min-height: 58px !important;
    font-size: 1.08rem !important;
    border-radius: 18px !important;
  }

  body.site-area .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 38px !important;
  }

  body.site-area .hero-stats > div,
  body.site-area .stat-card {
    min-height: 124px !important;
    border-radius: 22px !important;
    padding: 24px 22px !important;
  }

  body.site-area .section {
    padding-top: 88px !important;
    padding-bottom: 88px !important;
  }

  body.site-area .section-title,
  body.site-area .section-head {
    margin-bottom: 18px !important;
  }

  body.site-area .cards-grid.three,
  body.site-area .cards-grid.four {
    gap: 26px !important;
  }

  body.site-area .card,
  body.site-area .glass-card,
  body.site-area .service-card,
  body.site-area .portfolio-card,
  body.site-area .testimonial-card {
    border-radius: 26px !important;
  }

  body.site-area .service-card,
  body.site-area .portfolio-card,
  body.site-area .testimonial-card {
    min-height: 100% !important;
  }

  body.site-area .portfolio-card img,
  body.site-area .service-card img {
    border-radius: 22px !important;
  }

  body.site-area .two-col {
    gap: 40px !important;
    align-items: start !important;
  }

  body.site-area .cta-box {
    padding: 34px 36px !important;
    border-radius: 28px !important;
  }

  body.site-area .site-footer .container {
    width: min(1360px, calc(100% - 56px)) !important;
  }
}
/* v1.15.1 desktop homepage polish end */


/* v1.15.2 premium sections start */
@media (min-width: 921px) {
  /* services */
  body.site-area .services-section .cards-grid,
  body.site-area .services-section .cards-grid.three,
  body.site-area #services .cards-grid,
  body.site-area #services .cards-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }

  body.site-area .services-section .card,
  body.site-area .services-section .service-card,
  body.site-area #services .card,
  body.site-area #services .service-card {
    position: relative !important;
    overflow: hidden !important;
    min-height: 100% !important;
    padding: 28px 24px !important;
    border-radius: 28px !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03)) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow:
      0 18px 50px rgba(7, 14, 32, 0.18),
      inset 0 1px 0 rgba(255,255,255,0.08) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
  }

  body.site-area .services-section .card::before,
  body.site-area .services-section .service-card::before,
  body.site-area #services .card::before,
  body.site-area #services .service-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
    opacity: .95 !important;
  }

  body.site-area .services-section .card:hover,
  body.site-area .services-section .service-card:hover,
  body.site-area #services .card:hover,
  body.site-area #services .service-card:hover {
    transform: translateY(-8px) !important;
    box-shadow:
      0 26px 60px rgba(7, 14, 32, 0.24),
      inset 0 1px 0 rgba(255,255,255,0.1) !important;
    border-color: rgba(111, 66, 193, 0.22) !important;
  }

  body.site-area .services-section .card h3,
  body.site-area .services-section .service-card h3,
  body.site-area #services .card h3,
  body.site-area #services .service-card h3 {
    font-size: 1.34rem !important;
    margin-bottom: 12px !important;
    line-height: 1.35 !important;
  }

  body.site-area .services-section .card p,
  body.site-area .services-section .service-card p,
  body.site-area #services .card p,
  body.site-area #services .service-card p {
    font-size: 1rem !important;
    line-height: 1.95 !important;
    color: #6b7280 !important;
    margin-bottom: 18px !important;
  }

  body.site-area .services-section .card .btn,
  body.site-area .services-section .service-card .btn,
  body.site-area #services .card .btn,
  body.site-area #services .service-card .btn {
    margin-top: auto !important;
  }

  /* portfolio / works */
  body.site-area .portfolio-section .cards-grid,
  body.site-area .portfolio-section .cards-grid.three,
  body.site-area #portfolio .cards-grid,
  body.site-area #portfolio .cards-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }

  body.site-area .portfolio-card,
  body.site-area .portfolio-section .card,
  body.site-area #portfolio .card {
    position: relative !important;
    overflow: hidden !important;
    min-height: 100% !important;
    border-radius: 28px !important;
    background: #fff !important;
    border: 1px solid rgba(14, 24, 42, 0.06) !important;
    box-shadow: 0 18px 50px rgba(7, 14, 32, 0.14) !important;
    transition: transform .22s ease, box-shadow .22s ease !important;
  }

  body.site-area .portfolio-card:hover,
  body.site-area .portfolio-section .card:hover,
  body.site-area #portfolio .card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 28px 62px rgba(7, 14, 32, 0.18) !important;
  }

  body.site-area .portfolio-card img,
  body.site-area .portfolio-section .card img,
  body.site-area #portfolio .card img {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    transition: transform .35s ease !important;
  }

  body.site-area .portfolio-card:hover img,
  body.site-area .portfolio-section .card:hover img,
  body.site-area #portfolio .card:hover img {
    transform: scale(1.04) !important;
  }

  body.site-area .portfolio-card .card-body,
  body.site-area .portfolio-section .card .card-body,
  body.site-area #portfolio .card .card-body,
  body.site-area .portfolio-card .content,
  body.site-area .portfolio-section .card .content,
  body.site-area #portfolio .card .content {
    padding: 22px 22px 24px !important;
  }

  body.site-area .portfolio-card h3,
  body.site-area .portfolio-section .card h3,
  body.site-area #portfolio .card h3 {
    font-size: 1.26rem !important;
    margin-bottom: 10px !important;
    line-height: 1.35 !important;
  }

  body.site-area .portfolio-card p,
  body.site-area .portfolio-section .card p,
  body.site-area #portfolio .card p {
    color: #6b7280 !important;
    line-height: 1.9 !important;
    margin-bottom: 16px !important;
  }

  body.site-area .portfolio-card .btn,
  body.site-area .portfolio-section .card .btn,
  body.site-area #portfolio .card .btn {
    white-space: nowrap !important;
  }

  /* section heads */
  body.site-area .services-section .section-head,
  body.site-area .portfolio-section .section-head,
  body.site-area #services .section-head,
  body.site-area #portfolio .section-head {
    margin-bottom: 28px !important;
  }
}
/* v1.15.2 premium sections end */


/* v1.15.3 desktop sections spacing tighten start */
@media (min-width: 921px) {
  body.site-area .services-section .cards-grid,
  body.site-area .services-section .cards-grid.three,
  body.site-area #services .cards-grid,
  body.site-area #services .cards-grid.three,
  body.site-area .portfolio-section .cards-grid,
  body.site-area .portfolio-section .cards-grid.three,
  body.site-area #portfolio .cards-grid,
  body.site-area #portfolio .cards-grid.three {
    gap: 20px !important;
  }

  body.site-area .services-section .card,
  body.site-area .services-section .service-card,
  body.site-area #services .card,
  body.site-area #services .service-card {
    padding: 22px 20px !important;
    border-radius: 24px !important;
  }

  body.site-area .services-section .card h3,
  body.site-area .services-section .service-card h3,
  body.site-area #services .card h3,
  body.site-area #services .service-card h3,
  body.site-area .portfolio-card h3,
  body.site-area .portfolio-section .card h3,
  body.site-area #portfolio .card h3 {
    margin-bottom: 8px !important;
  }

  body.site-area .services-section .card p,
  body.site-area .services-section .service-card p,
  body.site-area #services .card p,
  body.site-area #services .service-card p,
  body.site-area .portfolio-card p,
  body.site-area .portfolio-section .card p,
  body.site-area #portfolio .card p {
    margin-bottom: 12px !important;
    line-height: 1.75 !important;
  }

  body.site-area .portfolio-card .card-body,
  body.site-area .portfolio-section .card .card-body,
  body.site-area #portfolio .card .card-body,
  body.site-area .portfolio-card .content,
  body.site-area .portfolio-section .card .content,
  body.site-area #portfolio .card .content {
    padding: 18px 18px 20px !important;
  }

  body.site-area .services-section .section-head,
  body.site-area .portfolio-section .section-head,
  body.site-area #services .section-head,
  body.site-area #portfolio .section-head {
    margin-bottom: 20px !important;
  }
}
/* v1.15.3 desktop sections spacing tighten end */


/* v1.15.4 cards bottom space fix start */
@media (min-width: 921px) {
  /* services */
  body.site-area .services-section .card,
  body.site-area .services-section .service-card,
  body.site-area #services .card,
  body.site-area #services .service-card,
  body.site-area .portfolio-card,
  body.site-area .portfolio-section .card,
  body.site-area #portfolio .card {
    min-height: unset !important;
    height: auto !important;
  }

  body.site-area .services-section .card .card-body,
  body.site-area .services-section .service-card .card-body,
  body.site-area #services .card .card-body,
  body.site-area #services .service-card .card-body,
  body.site-area .services-section .content,
  body.site-area .services-section .card-content,
  body.site-area #services .content,
  body.site-area #services .card-content,
  body.site-area .portfolio-card .card-body,
  body.site-area .portfolio-section .card .card-body,
  body.site-area #portfolio .card .card-body,
  body.site-area .portfolio-card .content,
  body.site-area .portfolio-section .card .content,
  body.site-area #portfolio .card .content {
    padding-bottom: 14px !important;
  }

  body.site-area .services-section .card p,
  body.site-area .services-section .service-card p,
  body.site-area #services .card p,
  body.site-area #services .service-card p,
  body.site-area .portfolio-card p,
  body.site-area .portfolio-section .card p,
  body.site-area #portfolio .card p {
    margin-bottom: 8px !important;
  }

  body.site-area .services-section .card .btn,
  body.site-area .services-section .service-card .btn,
  body.site-area #services .card .btn,
  body.site-area #services .service-card .btn,
  body.site-area .portfolio-card .btn,
  body.site-area .portfolio-section .card .btn,
  body.site-area #portfolio .card .btn,
  body.site-area .services-section .card a:last-child,
  body.site-area .services-section .service-card a:last-child,
  body.site-area #services .card a:last-child,
  body.site-area #services .service-card a:last-child,
  body.site-area .portfolio-card a:last-child,
  body.site-area .portfolio-section .card a:last-child,
  body.site-area #portfolio .card a:last-child {
    margin-top: 0 !important;
  }
}
/* v1.15.4 cards bottom space fix end */


/* v1.15.5 services redesign start */
@media (min-width: 921px){

  /* layout: reduce left image size and give more space to cards */
  body.site-area .services-section .two-col{
    display: grid !important;
    grid-template-columns: 0.8fr 1.2fr !important;
    gap: 32px !important;
    align-items: start !important;
  }

  /* image block smaller */
  body.site-area .services-section .two-col img,
  body.site-area #services .two-col img{
    max-width: 100% !important;
    transform: scale(0.9) !important;
  }

  /* right side text tighten */
  body.site-area .services-section .section-head,
  body.site-area #services .section-head{
    margin-bottom: 14px !important;
  }

  body.site-area .services-section h2,
  body.site-area #services h2{
    margin-bottom: 10px !important;
  }

  body.site-area .services-section p,
  body.site-area #services p{
    margin-bottom: 18px !important;
    line-height: 1.8 !important;
  }

  /* cards grid stronger */
  body.site-area .services-section .cards-grid,
  body.site-area #services .cards-grid{
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 18px !important;
  }

  /* cards equal height + better structure */
  body.site-area .services-section .card,
  body.site-area .services-section .service-card,
  body.site-area #services .card,
  body.site-area #services .service-card{
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 18px 16px !important;
    min-height: 220px !important;
  }

  /* tighten inside */
  body.site-area .services-section .card h3,
  body.site-area #services .card h3{
    font-size: 1.15rem !important;
    margin-bottom: 6px !important;
  }

  body.site-area .services-section .card p,
  body.site-area #services .card p{
    font-size: 0.95rem !important;
    margin-bottom: 10px !important;
    line-height: 1.7 !important;
  }

  /* button stick bottom */
  body.site-area .services-section .card .btn,
  body.site-area #services .card .btn{
    margin-top: auto !important;
  }

}
/* v1.15.5 services redesign end */



.services-rebuild-section .services-rebuild-wrap{
  display: block;
}
.services-rebuild-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.services-rebuild-card{
  min-height: 0 !important;
  height: auto !important;
}
.services-rebuild-media{
  display: none;
}
.services-rebuild-media-card{
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.services-rebuild-media-card img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
@media (max-width: 920px){
  .services-rebuild-card{
    padding: 18px !important;
  }
}
@media (min-width: 921px){
  body.site-area .services-rebuild-section .container{
    width: min(1360px, calc(100% - 56px)) !important;
  }

  body.site-area .services-rebuild-wrap.has-side-media{
    display: grid !important;
    grid-template-columns: minmax(0, 1.28fr) minmax(270px, 0.72fr) !important;
    gap: 26px !important;
    align-items: start !important;
  }

  body.site-area .services-rebuild-main{
    min-width: 0 !important;
  }

  body.site-area .services-rebuild-head{
    margin-bottom: 18px !important;
    max-width: 820px !important;
  }

  body.site-area .services-rebuild-head h2{
    margin-bottom: 6px !important;
    max-width: 760px !important;
  }

  body.site-area .services-rebuild-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  body.site-area .services-rebuild-card{
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 18px 16px !important;
    border-radius: 22px !important;
    min-height: 0 !important;
    height: auto !important;
  }

  body.site-area .services-rebuild-card .service-image{
    height: 168px !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
  }

  body.site-area .services-rebuild-card h3{
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }

  body.site-area .services-rebuild-card p{
    font-size: .95rem !important;
    line-height: 1.72 !important;
    margin-bottom: 0 !important;
  }

  body.site-area .services-rebuild-media{
    display: block !important;
  }

  body.site-area .services-rebuild-media-card{
    max-width: 100% !important;
    max-height: 320px !important;
    min-height: 0 !important;
    align-self: start !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  body.site-area .services-rebuild-media-card img{
    width: 100% !important;
    height: auto !important;
    max-height: 320px !important;
    object-fit: contain !important;
    display: block !important;
  }
}




@media (min-width: 921px){
  /* home services rebuilt section */
  body.site-area .services-rebuild-media{
    display: none !important;
  }
  body.site-area .services-rebuild-wrap,
  body.site-area .services-rebuild-wrap.has-side-media{
    display: block !important;
    grid-template-columns: none !important;
  }
  body.site-area .services-rebuild-section .container{
    width: min(1360px, calc(100% - 56px)) !important;
  }
  body.site-area .services-rebuild-head{
    max-width: 920px !important;
    margin-bottom: 20px !important;
  }
  body.site-area .services-rebuild-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  /* generic home side media blocks on desktop */
  body.site-area .content-split.with-media > .section-media-card{
    display: none !important;
  }
  body.site-area .content-split.with-media,
  body.site-area .content-split.with-media.reverse{
    display: block !important;
    grid-template-columns: none !important;
  }

  /* portfolio section on homepage only: make cards take full width area */
  body.site-area .section-dark .content-split.with-media.reverse .cards-grid.three,
  body.site-area .section-dark .content-split.with-media .cards-grid.three{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  body.site-area .section .section-head{
    max-width: 920px !important;
  }
}





/* 1) Remove hero side image on home page everywhere */
body.site-area .hero-media,
body.site-area .hero-visual,
body.site-area .hero-art,
body.site-area .hero-media-card {
  display: none !important;
}

/* Reflow hero to single-column content area */
body.site-area .hero-grid,
body.site-area .hero-grid-media {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}
body.site-area .hero-copy {
  max-width: 980px !important;
  justify-self: stretch !important;
}
body.site-area .hero-section .container {
  width: min(1360px, calc(100% - 32px)) !important;
}

/* 2) Remove services side image desktop + mobile */
body.site-area .services-rebuild-media,
body.site-area .services-rebuild-media-card,
body.site-area .services-rebuild-wrap.has-side-media > aside,
body.site-area .services-rebuild-wrap.has-side-media > .section-media-card {
  display: none !important;
}
body.site-area .services-rebuild-wrap,
body.site-area .services-rebuild-wrap.has-side-media {
  display: block !important;
  grid-template-columns: none !important;
}
body.site-area .services-rebuild-head {
  max-width: 920px !important;
}
body.site-area .services-rebuild-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* 3) Remove portfolio side image on mobile only */
@media (max-width: 920px) {
  body.site-area .section-dark .content-split.with-media.reverse > .section-media-card,
  body.site-area .section-dark .content-split.with-media > .section-media-card {
    display: none !important;
  }
  body.site-area .section-dark .content-split.with-media.reverse,
  body.site-area .section-dark .content-split.with-media {
    display: block !important;
    grid-template-columns: none !important;
  }
}

/* 4) Admin: hide upload controls for removed homepage side images where labels/field wrappers still exist */
body.admin-area .page-content-form [data-field="home_hero_image"],
body.admin-area .page-content-form [data-field="home_services_image"],
body.admin-area .page-content-form .field-home-hero-image,
body.admin-area .page-content-form .field-home-services-image,
body.admin-area .page-content-form label[for="home_hero_image"],
body.admin-area .page-content-form label[for="home_services_image"] {
  display: none !important;
}

/* Defensive spacing after removals */
@media (min-width: 921px) {
  body.site-area .hero-section {
    padding-top: 92px !important;
    padding-bottom: 74px !important;
  }
  body.site-area .services-rebuild-section .container,
  body.site-area .section-dark > .container,
  body.site-area .section > .container {
    width: min(1360px, calc(100% - 48px)) !important;
  }
  body.site-area .services-rebuild-grid {
    gap: 18px !important;
  }
}




html,
body{
  overflow-x: hidden !important;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

/* prevent common homepage/media blocks from forcing horizontal scroll */
body.site-area .hero-section,
body.site-area .hero-section .container,
body.site-area .hero-grid,
body.site-area .hero-copy,
body.site-area .services-rebuild-section,
body.site-area .services-rebuild-wrap,
body.site-area .services-rebuild-grid,
body.site-area .section,
body.site-area .section > .container,
body.site-area .cards-grid,
body.site-area .content-split,
body.site-area .content-split.with-media,
body.site-area .content-split.with-media.reverse,
body.site-area .section-media-card,
body.site-area .services-rebuild-media-card{
  max-width: 100% !important;
}

body.site-area img,
body.site-area video,
body.site-area iframe{
  max-width: 100% !important;
  height: auto;
}

/* keep desktop hero inside viewport after previous full-width adjustments */
@media (min-width: 921px){
  body.site-area .hero-section > .container,
  body.site-area .hero-section .container{
    width: min(100%, calc(100vw - 24px)) !important;
    max-width: min(100%, calc(100vw - 24px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  body.site-area .hero-copy{
    min-width: 0 !important;
  }
}





/* v1.17.0 safe homepage restore start */
@media (min-width: 921px){
  body.site-area .hero-section > .container,
  body.site-area .hero-section .container{
    width: min(1360px, calc(100% - 48px)) !important;
    max-width: min(1360px, calc(100% - 48px)) !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  body.site-area .hero-copy{
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* restore normal heading flow to avoid ugly overflow */
  body.site-area .hero-section h1{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.08 !important;
  }

  /* keep description cleaner but not destructive */
  body.site-area .hero-section p{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.9 !important;
  }
}
/* v1.17.0 safe homepage restore end */

/* v1.17.1 clean restore */
.hero-section h1,
.hero-section p{
  white-space: normal !important;
  overflow: visible !important;
}


/* v1.19.0 header final rebuild start */
/* Single source of truth:
   - Mobile stays as currently approved
   - Desktop puts logo before text
*/
@media (max-width: 920px){
  body.site-area .site-header .brand,
  body.admin-area .site-header .brand{
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body.site-area .site-header .brand > div,
  body.admin-area .site-header .brand > div{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 921px){
  body.site-area .site-header .brand,
  body.admin-area .site-header .brand{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body.site-area .site-header .brand > div,
  body.admin-area .site-header .brand > div{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}
/* v1.19.0 header final rebuild end */


/* v1.19.1 mobile header only fix start */
/* Mobile only: menu left, logo mark at the visual far right. Desktop untouched. */
@media (max-width: 920px){
  body.site-area .site-header .brand,
  body.admin-area .site-header .brand{
    flex-direction: row-reverse !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body.site-area .site-header .brand > div,
  body.admin-area .site-header .brand > div{
    align-items: flex-end !important;
    text-align: right !important;
  }

  body.site-area .site-header .header-brand-side,
  body.admin-area .site-header .header-brand-side{
    justify-content: flex-end !important;
  }

  body.site-area .site-header .header-actions-side,
  body.admin-area .site-header .header-actions-side{
    justify-content: flex-start !important;
  }
}
/* v1.19.1 mobile header only fix end */


/* v1.19.3 mobile header restore final start */
/* Mobile only. Desktop untouched. Keep brand as one block on the right, menu on the left. */
@media (max-width: 920px){
  body.site-area .site-header .container.nav-wrap,
  body.admin-area .site-header .container.nav-wrap{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    gap: 0 !important;
  }

  body.site-area .site-header .header-actions-side,
  body.admin-area .site-header .header-actions-side{
    order: 1 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    justify-content: flex-start !important;
  }

  body.site-area .site-header .header-brand-side,
  body.admin-area .site-header .header-brand-side{
    order: 2 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    justify-content: flex-end !important;
  }

  body.site-area .site-header .header-center,
  body.admin-area .site-header .header-center{
    display: none !important;
  }

  body.site-area .site-header .brand,
  body.admin-area .site-header .brand{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    max-width: calc(100vw - 120px) !important;
    white-space: nowrap !important;
  }

  body.site-area .site-header .brand > div,
  body.admin-area .site-header .brand > div{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  body.site-area .site-header .mobile-toggle,
  body.admin-area .site-header .mobile-toggle{
    display: inline-flex !important;
    margin: 0 !important;
  }
}
/* v1.19.3 mobile header restore final end */


/* v1.19.4 services mobile premium start */
@media (max-width: 768px){
  body.site-area .services-rebuild-grid,
  body.site-area .services-section .cards-grid,
  body.site-area #services .cards-grid,
  body.site-area .cards-grid.three{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.site-area .services-rebuild-card,
  body.site-area .service-card{
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px !important;
    border-radius: 18px !important;
    min-height: auto !important;
  }

  body.site-area .services-rebuild-card .service-image,
  body.site-area .service-card .service-image,
  body.site-area .service-image{
    width: 100% !important;
    height: 190px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    margin-bottom: 14px !important;
  }

  body.site-area .services-rebuild-card h3,
  body.site-area .service-card h3{
    font-size: 1.25rem !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
  }

  body.site-area .services-rebuild-card p,
  body.site-area .service-card p{
    font-size: 1rem !important;
    line-height: 1.85 !important;
    white-space: normal !important;
    margin-bottom: 0 !important;
  }
}
/* v1.19.4 services mobile premium end */



/* v1.20.0 conversion boost */
.conversion-cta{
  text-align:center;
  padding:40px 20px;
  background:linear-gradient(135deg,#0d1c33,#142a52);
  color:#fff;
  border-radius:20px;
  margin:30px 0;
}
.conversion-cta h2{font-size:1.6rem;margin-bottom:10px;}
.conversion-cta p{opacity:.9;margin-bottom:15px;}
.service-cta{display:inline-block;}


/* v1.20.1 mobile full width service button */
@media (max-width: 768px){
  .service-cta{
    display: block !important;
    width: 100% !important;
    text-align: center;
    padding: 14px 0 !important;
    border-radius: 14px !important;
    margin-top: 14px !important;
    font-size: 15px !important;
  }
}


/* v1.20.2 contact conversion polish */
.contact-intro{
  text-align:center;
  margin-bottom:20px;
}
.contact-intro h2{
  font-size:1.5rem;
  margin-bottom:6px;
}
.contact-intro p{
  opacity:.8;
}

.whatsapp-btn{
  display:block;
  width:100%;
  margin-top:12px;
  background:#25D366;
  color:#fff;
  text-align:center;
  padding:14px;
  border-radius:12px;
}


/* v1.20.6 polish & UX */

/* success message */
.contact-success{
  text-align:center;
  padding:16px;
  border-radius:12px;
  font-weight:600;
}

/* button loading effect */
.btn:active{
  transform: scale(0.97);
  opacity:0.9;
}

/* smoother cards */
.service-card{
  transition: all 0.2s ease;
}
.service-card:active{
  transform: scale(0.98);
}

/* v1.23.4 service final CTA start */
.service-final-cta{
  text-align:center;
}
.service-final-cta .hero-actions{
  justify-content:center;
}
@media (max-width: 768px){
  .service-final-cta .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }
}
/* v1.23.4 service final CTA end */

/* v1.26.0 service content editor start */
.service-full-content{
  line-height: 1.95;
  color: var(--text-muted);
  white-space: pre-line;
}
.service-full-content + .meta-pill{
  margin-top: 18px;
}
/* v1.26.0 service content editor end */


/* v1.26.4 service page polish start */
.service-readable-content{
  line-height: 2.05;
  font-size: 1.02rem;
}

.service-readable-content br + br{
  display: block;
  margin-top: 14px;
  content: "";
}

.service-visual-card{
  padding: 16px !important;
}

.service-visual-card .info-card-image{
  margin-bottom: 0 !important;
}

.service-final-cta{
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(124, 58, 237, .08));
}

.service-final-cta .hero-actions{
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 768px){
  .service-readable-content{
    font-size: .98rem;
    line-height: 2;
    text-align: right;
  }

  .service-visual-card{
    margin-top: 0;
  }

  .service-final-cta .hero-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* v1.26.4 service page polish end */


/* v1.26.5 smart service content start */
.service-smart-content{
  display: grid;
  gap: 18px;
  line-height: 2;
  color: var(--text-muted);
}

.service-smart-content p{
  margin: 0;
}

.service-smart-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-smart-list li{
  position: relative;
  padding-inline-start: 28px;
  color: var(--text);
  line-height: 1.9;
}

.service-smart-list li::before{
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: #2563eb;
  font-weight: 900;
}

.service-visual-card h3,
.service-visual-card p{
  display: none !important;
}

.service-final-cta .btn-primary{
  white-space: normal;
}

@media (max-width: 768px){
  .service-smart-content{
    gap: 16px;
    font-size: .98rem;
  }

  .service-smart-list{
    gap: 9px;
  }

  .service-smart-list li{
    padding-inline-start: 26px;
  }
}
/* v1.26.5 smart service content end */


/* v1.26.6 service layout optimization start */
.service-detail-stack{
  display: grid;
  gap: 24px;
}

.service-visual-first{
  max-width: 820px;
  width: 100%;
  margin-inline: auto;
}

.service-visual-first .info-card-image{
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  margin-bottom: 0 !important;
}

.service-content-card{
  max-width: 920px;
  width: 100%;
  margin-inline: auto;
}

@media (max-width: 768px){
  .service-detail-stack{
    gap: 18px;
  }

  .service-visual-first{
    padding: 14px !important;
  }

  .service-visual-first .info-card-image{
    max-height: 240px;
  }
}
/* v1.26.6 service layout optimization end */



/* v1.27.0 service sections */
.service-sections{
  display: grid;
  gap: 24px;
}

.service-section h2{
  margin-bottom: 12px;
  font-size: 20px;
}

.service-section p{
  line-height: 2;
  color: var(--text-muted);
}


/* v1.29.0 admin service editor start */
.service-editor-form{
  display: grid;
  gap: 18px;
}

.admin-form-section{
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.72);
  display: grid;
  gap: 14px;
}

.admin-form-section h3{
  margin: 0 0 4px;
  color: #1d4ed8;
  font-size: 1.05rem;
}

.service-editor-form textarea{
  min-height: 120px;
  resize: vertical;
}

.service-editor-form .admin-save-btn{
  width: 100%;
  min-height: 48px;
  font-weight: 800;
}

@media (max-width: 768px){
  .admin-form-section{
    padding: 14px;
    border-radius: 16px;
  }

  .service-editor-form textarea{
    min-height: 110px;
  }
}
/* v1.29.0 admin service editor end */


/* v1.29.1 admin form cleanup start */
.service-editor-form .admin-save-btn{
  margin-top: 8px;
}
.service-editor-form .admin-form-section:last-of-type{
  margin-bottom: 0;
}
/* v1.29.1 admin form cleanup end */

.service-editor-form{display:block!important;}
.admin-save-btn{display:block;width:100%;margin-top:30px;}

/* v1.29.5 save button final start */
.service-editor-form{
  display: block !important;
}
.service-editor-form .admin-save-btn,
.admin-save-btn{
  display: block !important;
  width: 100% !important;
  margin-top: 30px !important;
  clear: both !important;
}
/* v1.29.5 save button final end */

/* v1.29.6 final admin form fix start */
.service-editor-form{
  display: grid !important;
  gap: 18px !important;
}
.service-editor-form .admin-form-section{
  display: grid !important;
  gap: 14px !important;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 18px;
  padding: 18px;
}
.service-editor-form .admin-form-section h3{
  margin: 0;
  color: #1d4ed8;
}
.service-save-row{
  display: grid !important;
  gap: 12px !important;
  margin-top: 8px !important;
}
.service-save-row .admin-save-btn{
  width: 100% !important;
  order: 1 !important;
}
.service-save-row .btn-outline{
  order: 2 !important;
}
/* v1.29.6 final admin form fix end */

/* v1.29.7 service lists start */
.service-section-list{
  margin: 0;
  padding-inline-start: 1.35rem;
  color: var(--text-muted);
  line-height: 2;
}
.service-section-list li{
  margin-bottom: 8px;
}
.service-section-list li:last-child{
  margin-bottom: 0;
}
ol.service-section-list{
  list-style-position: outside;
}
@media (max-width: 768px){
  .service-section-list{
    line-height: 1.95;
    padding-inline-start: 1.2rem;
  }
}
/* v1.29.7 service lists end */


/* egysrv v1.30.4 page order fixes */
.about-content-stack {
  display: grid;
  gap: 24px;
}
.about-visual-first {
  width: 100%;
  min-height: 360px;
}
.about-text-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-layout-info-first {
  align-items: flex-start;
}
.contact-layout-info-first .info-card {
  order: 1;
}
.contact-layout-info-first .contact-card:not(.info-card) {
  order: 2;
}
@media (max-width: 920px) {
  .about-visual-first {
    min-height: 240px;
  }
  .about-text-cards {
    grid-template-columns: 1fr;
  }
}

/* v1.30.8: show about/contact page image as a real visible image, not only as dark background */
.page-cover-image-section { padding: 34px 0 0; background: var(--light); }
.page-cover-image { display:block; width:100%; max-height:420px; object-fit:cover; border-radius:28px; box-shadow: var(--shadow); background:#fff; }
@media (max-width: 768px) {
  .page-cover-image-section { padding: 22px 0 0; }
  .page-cover-image { max-height:280px; border-radius:22px; }
}

/* v1.30.9: separate about/contact cover image from hero and show it inside a clean card like service pages */
.page-cover-image-section {
  padding: 64px 0 0 !important;
  background: var(--surface) !important;
}
.page-cover-image-section .container {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 28px !important;
  padding: 24px !important;
  box-shadow: var(--shadow) !important;
}
.page-cover-image {
  display: block !important;
  width: 100% !important;
  height: 360px !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 22px !important;
  border: 1px solid #dbe6f8 !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}
@media (max-width: 768px) {
  .page-cover-image-section {
    padding: 34px 0 0 !important;
  }
  .page-cover-image-section .container {
    width: min(100% - 40px, 1120px) !important;
    padding: 16px !important;
    border-radius: 24px !important;
  }
  .page-cover-image {
    height: 230px !important;
    border-radius: 18px !important;
  }
}
/* v1.30.9 end */

/* v1.30.11 service details visual width fix start */
.service-details-section .service-visual-card{
  width: 100%;
  display: block;
  box-sizing: border-box;
}
.service-details-section .service-visual-card img{
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0;
  border-radius: 20px;
  object-fit: cover;
}
/* v1.30.11 service details visual width fix end */

/* v1.30.13 portfolio details start */
.portfolio-list-section .portfolio-list-card{
  display:flex;
  flex-direction:column;
  padding:0 !important;
}
.portfolio-card-media{
  display:block;
  overflow:hidden;
  border-radius:24px 24px 0 0;
}
.portfolio-list-card .portfolio-image{
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
}
.portfolio-card-body{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:22px;
  flex:1;
}
.portfolio-card-body h2{
  margin:0;
  font-size:1.25rem;
}
.portfolio-card-body p{
  margin:0;
  color:#5f6f86;
  line-height:1.9;
}
.portfolio-card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:auto;
  padding-top:10px;
}
.project-details-section .project-visual-card img{
  width:100%;
  display:block;
}
.project-info-card .portfolio-badge{
  width:max-content;
  margin-bottom:10px;
}
.project-details-content p{
  line-height:2;
  color:#5f6f86;
}
.project-actions{
  margin-top:18px;
}
/* v1.30.13 portfolio details end */


/* v1.30.15 professional portfolio actions start */
.portfolio-card-actions{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  align-items:stretch;
}
.portfolio-card-actions .btn{
  width:100%;
  justify-content:center;
  text-align:center;
  min-height:48px;
  border-radius:16px;
  font-weight:800;
  line-height:1.2;
  padding:13px 16px;
}
.portfolio-card-actions .portfolio-secondary-action{
  background:#eef4ff;
  color:#0d63d8;
  border:1px solid rgba(13,99,216,.18);
  box-shadow:none;
}
.portfolio-card-actions .portfolio-secondary-action:hover{
  background:linear-gradient(135deg,#1787ff,#6e3fd8);
  color:#fff;
  border-color:transparent;
  transform:translateY(-2px);
}
@media (max-width:520px){
  .portfolio-card-actions{
    grid-template-columns:1fr;
  }
}
/* v1.30.15 professional portfolio actions end */

/* v1.30.16: portfolio cards use one clear details action only */
.portfolio-card-actions.single-action .portfolio-primary-action,
.portfolio-card .portfolio-primary-action {
    width: 100%;
    justify-content: center;
    text-align: center;
}
.section-dark .portfolio-card .portfolio-primary-action {
    display: inline-flex;
    width: auto;
    margin-top: 12px;
}


/* v1.30.17 - Portfolio details buttons full card width */
.portfolio-primary-action,
.portfolio-card-actions.single-action .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.portfolio-card-actions.single-action {
  width: 100%;
}

/* v1.30.18 - Force portfolio details buttons to match services full card width */
body.site-area .portfolio-card .portfolio-primary-action,
body.site-area .portfolio-card .service-cta.portfolio-primary-action,
body.site-area .section-dark .portfolio-card .portfolio-primary-action,
body.site-area .portfolio-card-actions.single-action,
body.site-area .portfolio-card-actions.single-action .btn,
body.site-area .portfolio-card-body .portfolio-primary-action {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-inline: 0 !important;
}
body.site-area .portfolio-card .portfolio-primary-action {
  margin-top: 14px !important;
}

/* v1.30.19 - Fix portfolio page full-width details button visibility */
body.site-area .portfolio-list-section .portfolio-card-actions.single-action {
  display: block !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: auto !important;
  padding-top: 12px !important;
}
body.site-area .portfolio-list-section .portfolio-card-actions.single-action .portfolio-primary-action,
body.site-area .portfolio-list-section .portfolio-card-body .portfolio-primary-action {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
}
/* v1.30.19 end */

/* v1.30.20 - Center service details button text */
body.site-area .service-card .service-cta,
body.site-area .services-section .service-card .service-cta,
body.site-area .services-section .card .service-cta,
body.site-area #services .service-card .service-cta,
body.site-area #services .card .service-cta,
body.site-area .service-card .btn.service-cta,
body.site-area .services-section .card .btn.service-cta,
body.site-area #services .card .btn.service-cta {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-inline: 0 !important;
  line-height: 1.2 !important;
}
/* v1.30.20 end */

/* v1.30.24 Ads and dynamic pages */
.ads-section{padding:28px 0;background:linear-gradient(180deg,rgba(37,99,235,.05),rgba(124,58,237,.04));}
.ads-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;}
.ad-card{display:grid;grid-template-columns:minmax(120px,220px) 1fr;gap:18px;align-items:center;overflow:hidden;}
.ad-media img{width:100%;height:160px;object-fit:cover;border-radius:18px;display:block;}
.ad-content h3{margin:0 0 8px;}
.ad-content p{margin:0 0 14px;color:var(--muted);}
.ad-btn{width:100%;justify-content:center;text-align:center;}
.ad-popup{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:9999;padding:18px;}
.ad-popup.is-visible{display:flex;}
.ad-popup-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(4px);}
.ad-popup-dialog{position:relative;width:min(520px,100%);padding:22px;text-align:center;box-shadow:0 24px 80px rgba(15,23,42,.3);}
.ad-popup-close{position:absolute;top:12px;left:12px;width:36px;height:36px;border:0;border-radius:999px;background:#f1f5f9;cursor:pointer;font-size:24px;line-height:1;}
.ad-popup-image{width:100%;max-height:280px;object-fit:cover;border-radius:18px;margin-bottom:16px;display:block;}
.ad-popup-dialog h3{margin:0 0 8px;}
.ad-popup-dialog p{color:var(--muted);margin:0 0 16px;}
.ad-popup-btn{width:100%;justify-content:center;text-align:center;}
[data-ad-settings]{display:none;padding:14px;margin:12px 0;border:1px solid rgba(148,163,184,.28);border-radius:18px;background:rgba(248,250,252,.7);}
[data-ad-settings].is-visible{display:block;}
.page-hero-dynamic{padding:90px 0;position:relative;overflow:hidden;background:linear-gradient(135deg,#0f172a,#1e293b);color:white;}
.page-hero-dynamic.has-image::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,23,42,.85),rgba(15,23,42,.45)),var(--page-hero-bg) center/cover no-repeat;}
.page-hero-dynamic .container{position:relative;z-index:1;}
.page-hero-dynamic h1{max-width:850px;}
.page-hero-dynamic p{max-width:720px;color:rgba(255,255,255,.82);}
.dynamic-page-card{font-size:1.05rem;line-height:2;}
@media(max-width:700px){.ad-card{grid-template-columns:1fr}.ad-media img{height:190px}}
