:root {
    --container: 1000px;
    --brand: #00387f;
    --accent: #00a6a6;
    --text: #545454;
    --muted: #6b7280;
    --bg: #dedede;
    --surface: #ffffff;
    --card: #ffffff;
    --radius: 12px;
    --shadow: 0 10px 24px rgba(0, 0, 0, .08);
    --border-soft: #e9e9e9;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 4px 14px rgba(0, 0, 0, .06);
}


* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'PT Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.6;
}

.site-title,
.wp-block-site-title a {
    font-weight: 600;
    text-decoration: none;
    color: var(--brand) !important;
}

.wp-block-navigation {
    gap: 18px
}

.wp-block-navigation a {
    color: #64748b;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px
}

.wp-block-navigation a:hover {
    background: #eaeef3;
    color: #0f172a
}

/* Containers and content measurement*/
.wp-block-group>.wp-block-group {
    max-width: var(--container)
}

/* Uniform page cover */
.page-shell {
    padding: .5rem 0 1rem;
}

.page-shell>.inner {
    max-width: var(--container);
    margin: 0 auto;
}

/* General cards matching style */
.page-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-soft);
}

.pad-md {
    padding: 18px;
}

.pad-lg {
    padding: 28px;
}

/* General headings*/
h1 {
    color: var(--brand);
    margin: 0 0 .5rem;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.2;
}

h3 {
    color: var(--accent);
    margin: 1.25rem 0 .5rem
}

p {
    margin: .5rem 0 1rem
}

.page-title {
    margin: 0 0 .75rem;
    font-weight: 700;
    color: var(--brand);
    font-size: clamp(24px, 2.7vw, 32px);
}

.page-sub {
    color: #6b7280;
    margin: .25rem 0 1rem
}

/* General grid tools*/
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}


.home-container {
    padding: 48px 16px
}

/* Virtual project cards*/
.project-card {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 16px 0;
}

/* WP */
.wp-block-buttons .wp-block-button {
    margin-right: .5rem
}

.wp-block-button__link {
    border-radius: 10px;
    padding: .55rem 1rem
}

/* Footer */
footer,
.site-footer {
    color: #6b7280
}
/* Footer quick links */
.footer-links a{
  text-decoration: none;         
  color: var(--color-gray-dark-1);
}

.footer-links a:visited{
  color: var(--color-gray-dark-1);
}

.footer-links a:hover,
.footer-links a:focus{
  text-decoration: underline; 
  color: var(--profile-theme); 
}


.footer-links{
  list-style: none;
  padding-left: 0;
}
.cform .privacy-note {
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-gray-dark-2, #737373);
}

/* Responsiveness */
@media (max-width:1024px) {
    .grid-2 {
        grid-template-columns: 1fr
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:640px) {
    .grid-3 {
        grid-template-columns: 1fr
    }
}

/* === Header consistent with CV === */
.site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #e6edf7;
    backdrop-filter: blur(6px);
}

.site-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Brand left */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
    object-fit: cover
}

.brand-title {
    font-weight: 700;
    color: var(--brand)
}

/* Nav right */
.main-nav {
    display: flex;
    align-items: center;
    gap: 14px
}

.main-nav a {
    color: #475569;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: .18s ease;
}

.main-nav a:hover {
    background: #eef2f7;
    color: #0f172a;
    border-color: #e3e8ef
}

.main-nav a[aria-current="page"] {
    background: #e7f9f8;
    border-color: #b1efe9;
    color: #0f766e;
}

/* CTA button */
.btn-cta {
    background: linear-gradient(180deg, #4aa3ff, #1c7bdb);
    color: #fff !important;
    border-radius: 10px;
    padding: .55rem .9rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(28, 123, 219, .22);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Mobile */
.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.nav-toggle i {
    color: #334155
}

@media (max-width:760px) {
    .main-nav {
        position: absolute;
        right: 12px;
        top: 58px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        min-width: 68vw;
        background: #fff;
        border: 1px solid #e6edf7;
        border-radius: 12px;
        padding: 10px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }
}


.site-header-wrap+.page-shell {
    padding-top: 0.25rem;
}

.site-header-wrap+.cv-page {
    padding-top: 0.25rem !important;
}

/*btn download*/
.btn {
    -webkit-font-smoothing: antialiased;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1;
    padding: .78rem 1rem;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .16s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}


.btn-download {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(180deg, #4aa3ff, #1c7bdb);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .5rem .9rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(28, 123, 219, .25);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-download .i {
    display: inline-block
}

.btn-download .size {
    opacity: .85;
    font-weight: 600;
    margin-left: .25rem
}

.btn-download:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
    box-shadow: 0 10px 24px rgba(28, 123, 219, .28)
}

.btn-download:active {
    transform: translateY(0)
}

@media (max-width: 640px) {
    .btn-download {
        width: 100%;
        justify-content: center
    }
    /*.wp-block-group{ margin: 0 0.5rem;}*/
}

.btn-ghost {
    background: #fff;
    color: var(--cv-text);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.btn-ghost:hover {
    transform: translateY(-1px);
}

.btn--sm {
    padding: .55rem .9rem;
    font-size: 13.5px;
}

.btn .ico {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.cv-meta {
    display: block;
    margin-top: .35rem;
    font-size: 12.5px;
    color: var(--cv-muted);
}

.cv-cta {
    margin: 12px 0 0;
}

.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: none;
    gap: .6rem;
    justify-content: center;
    padding: .6rem .8rem;
    backdrop-filter: saturate(180%) blur(6px);
    background: rgba(255, 255, 255, .88);
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.mobile-cta .btn {
    flex: 1;
    justify-content: center;
}

@media (max-width: 768px) {
    .mobile-cta {
        display: flex;
    }
}

[dir="rtl"] .btn {
    direction: rtl;
}


@media print {

    /* إخفاء الهيدر والناف والـ footer في الطباعة */
    .site-header-bar,
    header,
    footer,
    .wp-block-navigation,
    .site-footer {
        display: none !important;
    }

    /* تكبير عرض محتوى السيفي في الصفحة المطبوعة */
    body {
        background: #ffffff !important;
    }

    .wrapper,
    /* الكلاس الذي يحتوي السيفي عندك */
    main {
        max-width: 800px !important;
        margin: 0 auto !important;
        box-shadow: none !important;
    }
}

/* Enhanced Language Switcher with Elegant Effects */
.language-switcher-enhanced {
  display: flex;
  gap: 8px;
  margin-left: 16px;
  align-items: center;
  position: relative;
}

.lang-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.lang-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0073aa, #00a6a6);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.lang-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 115, 170, 0.15);
}

.lang-btn:hover::before {
  opacity: 0.1;
}

.lang-btn.current-lang {
  color: white;
  background: transparent;
  border-color: transparent;
  box-shadow: 0 0 0 2px #0073aa, 0 4px 12px rgba(0, 115, 170, 0.2);
}

.lang-btn.current-lang::before {
  opacity: 1;
  animation: pulseGradient 1.5s infinite alternate;
}

@keyframes pulseGradient {
  from { opacity: 0.9; }
  to { opacity: 1; }
}

/* Ripple effect on click */
.lang-btn:active::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(0, 115, 170, 0.1);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* RTL Support */
[dir="rtl"] .language-switcher-enhanced {
  flex-direction: row-reverse;
  margin-left: 0;
  margin-right: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .lang-btn {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}


/* Download Button — Professional Style */
.btn-download {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  min-height: 36px;
  line-height: 1;
}

.btn-download:hover {
  background: #e0f2fe;
  border-color: #0073aa;
  color: #0073aa;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 115, 170, 0.15);
}

.btn-download:hover .icon {
  stroke: #0073aa;
}

.btn-download .icon {
  width: 18px;
  height: 18px;
  transition: stroke 0.2s ease;
}

.btn-download .btn-text {
  white-space: nowrap;
}

/* RTL Support */
[dir="rtl"] .btn-download {
  flex-direction: row-reverse;
  gap: 8px;
}

/* Focus state for accessibility */
.btn-download:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .btn-download {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}