/*
Theme Name: Desi ME
Theme URI: https://www.desipatent.com
Description: Desi Europe d.o.o. (Podgorica) theme for desipatent.com. Desi Gold palette, same design language as the Desi EU theme (desiglobal.co.uk).
Author: Desi Europe d.o.o.
Version: 1.1.4
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ============ TOKENS ============ */

:root{
  --primary:#B7A27A;
  --primary-dark:#9A865F;
  --primary-rgb:183,162,122;
  --primary-light:#E6D8BC;
  --gold-grad:linear-gradient(135deg,#D7C39A 0%,#C7B284 55%,#B7A27A 100%);

  --dark:#1f2229;
  --dark-2:#26292f;

  --surface:#ffffff;
  --warm:#faf8f3;

  --text:#111827;
  --ink:#1f2937;
  --muted:#6B7280;
  --border:#e5e7eb;

  --radius:16px;
  --radius-sm:8px;
  --shadow:0 16px 40px rgba(0,0,0,.06);
}

/* ============ BASE ============ */

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

html,body{ margin:0; padding:0; }

body{
  background:linear-gradient(180deg,#f8fafc 0%,#f1ede4 100%);
  font-family:'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; height:auto; display:block; }

a{ text-decoration:none; color:inherit; }

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

.wrap.narrow{ max-width:880px; }

h1,h2,h3,h4{
  font-weight:700;
  line-height:1.25;
  margin:0 0 16px 0;
  color:var(--text);
}

h1{ font-size:40px; }
h2{ font-size:30px; }
h3{ font-size:20px; }
h4{ font-size:17px; }

p{ line-height:1.75; color:var(--ink); margin:0 0 16px 0; }

.eyebrow{
  color:var(--primary-dark);
  font-weight:600;
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin:0 0 10px 0;
}

.screen-reader-text{
  position:absolute !important;
  width:1px; height:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
}

.skip-link:focus{
  left:12px;
  top:12px;
  z-index:3000;
  background:#fff;
  color:var(--text);
  padding:10px 16px;
  border-radius:var(--radius-sm);
}

:focus-visible{ outline:2px solid var(--primary); outline-offset:3px; }

/* ============ HEADER ============ */

header.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--dark);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.admin-bar header.site-header{ top:32px; }

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:14px 20px;
}

.logo img{ height:48px; width:auto; }

.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:transparent;
  cursor:pointer;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0;
}

.menu-toggle span{
  display:block;
  width:20px;
  height:2px;
  border-radius:2px;
  background:#e5e7eb;
  transition:.25s ease;
}

.menu-toggle.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity:0; }
.menu-toggle.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.main-menu ul{
  display:flex;
  align-items:center;
  gap:26px;
  list-style:none;
  margin:0;
  padding:0;
}

.main-menu li{ position:relative; }

.main-menu a{
  display:block;
  font-weight:600;
  font-size:15px;
  color:#e5e7eb;
  padding:6px 0;
  border-bottom:2px solid transparent;
  text-transform:capitalize;
  transition:.2s ease;
}

.main-menu a:hover,
.main-menu .current-menu-item > a,
.main-menu .current-menu-parent > a,
.main-menu .current_page_item > a{
  color:var(--primary-light);
  border-bottom-color:var(--primary);
}

.main-menu .menu-item-has-children > a::after{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-left:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  position:relative;
  top:-3px;
}

.main-menu .sub-menu{
  display:none;
  position:absolute;
  top:100%;
  left:-12px;
  min-width:200px;
  padding:8px;
  background:var(--dark-2);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius-sm);
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  flex-direction:column;
  align-items:stretch;
  gap:2px;
}

.main-menu li:hover > .sub-menu,
.main-menu li:focus-within > .sub-menu{ display:flex; }

.main-menu .sub-menu a{
  padding:9px 12px;
  border-radius:6px;
  border-bottom:none;
  font-weight:500;
}

.main-menu .sub-menu a:hover,
.main-menu .sub-menu .current-menu-item > a{
  background:rgba(var(--primary-rgb),.18);
  color:var(--primary-light);
}

.portal-btn,
.main-menu a.portal-btn{
  display:inline-block;
  background:var(--gold-grad);
  color:#26292f !important;
  padding:10px 20px;
  border-radius:var(--radius-sm);
  border-bottom:none;
  font-weight:600;
}

.main-menu a.portal-btn:hover{ filter:brightness(1.06); }

/* Client Portal button always sits at the end of the menu */
.main-menu .menu-item-portal{ order:99; }

/* ============ BUTTONS ============ */

.btn,
.btn-outline{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:13px 26px;
  border-radius:10px;
  font-weight:600;
  font-size:15px;
  line-height:1.2;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
}

.btn{
  background:var(--gold-grad);
  color:#1f2229;
  border:0;
  box-shadow:0 8px 20px rgba(var(--primary-rgb),.30);
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(var(--primary-rgb),.40);
  filter:brightness(1.03);
}

.btn-outline{
  border:1.5px solid var(--primary);
  color:var(--primary-dark);
  background:transparent;
  padding:11.5px 24px;
}

.btn-outline:hover{ background:rgba(var(--primary-rgb),.10); }

.on-dark .btn-outline{ border-color:rgba(255,255,255,.85); color:#fff; }
.on-dark .btn-outline:hover{ background:rgba(255,255,255,.12); }

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.more{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--primary-dark);
  font-weight:600;
  font-size:14px;
}

.more i{ transition:transform .2s ease; }
.more:hover i{ transform:translateX(3px); }

/* ============ SECTIONS ============ */

section{ padding:80px 0; }

.section-alt{ background:var(--surface); }

.section-head{
  max-width:680px;
  margin:0 auto 44px auto;
  text-align:center;
}

.section-head h2::after{
  content:"";
  display:block;
  width:56px;
  height:3px;
  margin:16px auto 0 auto;
  border-radius:3px;
  background:var(--primary);
}

.section-head p{ color:var(--muted); }

.on-dark h2,
.on-dark h1{ color:#fff; }

.on-dark .eyebrow{ color:var(--primary); }

/* ============ GRIDS & CARDS ============ */

.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:56px; align-items:center; }

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:32px 30px;
  box-shadow:var(--shadow);
}

.service-card,
.info-card{
  position:relative;
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:30px 26px;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover,
.info-card:hover{
  border-color:var(--primary);
  box-shadow:0 16px 40px rgba(var(--primary-rgb),.16);
  transform:translateY(-4px);
}

.service-card h3{ margin-bottom:10px; }

.service-card p{
  flex:1;
  font-size:15px;
  line-height:1.7;
  color:var(--muted);
  margin-bottom:14px;
}

.service-card .more::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:var(--radius);
}

.service-card.is-minor{ background:rgba(255,255,255,.55); }
.service-card.is-minor p{ margin-bottom:0; }

.service-icon{
  width:52px;
  height:52px;
  border-radius:12px;
  background:rgba(var(--primary-rgb),.14);
  color:var(--primary-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:21px;
  margin-bottom:18px;
  transition:.25s ease;
}

.service-card:hover .service-icon,
.info-card:hover .service-icon{
  background:var(--primary);
  color:#fff;
}

.info-card p{ font-size:15.5px; margin:0; }

/* ============ HOME: HERO ============ */

.hero{
  position:relative;
  padding:150px 0 140px 0;
  text-align:center;
  color:#fff;
  background:
    linear-gradient(180deg, rgba(20,22,28,.80) 0%, rgba(20,22,28,.62) 50%, rgba(20,22,28,.90) 100%),
    url("images/hero-home.jpg") center 45% / cover no-repeat;
  background-color:var(--dark);
}

.hero h1{
  color:#fff;
  font-size:54px;
  letter-spacing:-.01em;
  max-width:880px;
  margin:0 auto 20px auto;
}

.hero-tags{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px 14px;
  margin:0;
  font-size:17px;
  font-weight:500;
  letter-spacing:.06em;
  color:#e5e7eb;
}

.hero-tags .dot{
  display:inline-block;
  align-self:center;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--primary);
  font-size:0;
  line-height:0;
  overflow:hidden;
}

.hero .actions{ justify-content:center; margin-top:34px; }

.hero::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:1px;
  height:56px;
  background:linear-gradient(rgba(var(--primary-rgb),0), var(--primary));
}

/* ============ HOME: WHO WE ARE ============ */

.offset-wrap{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  padding:34px 0;
}

.offset-card{
  display:flex;
  align-items:center;
  background:#8B8370;
  color:#fff;
  padding:32px 28px;
  font-size:17px;
  line-height:1.6;
  border-radius:6px 6px 40px 6px;
  box-shadow:0 18px 40px rgba(0,0,0,.14);
}

.offset-card.card-a{ align-self:end; margin-bottom:-34px; }
.offset-card.card-b{ align-self:start; margin-top:-34px; background:#6F6857; }

.who-list{
  list-style:none;
  margin:20px 0 0 0;
  padding:0;
}

.who-list li{
  display:flex;
  align-items:center;
  gap:14px;
  padding:9px 0;
  font-size:18px;
  font-weight:500;
  color:var(--ink);
}

.who-list .check{
  width:30px;
  height:30px;
  border-radius:50%;
  border:1.5px solid var(--primary);
  color:var(--primary-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-size:13px;
}

/* ============ HOME: WHY US ============ */

.why-band{
  padding:100px 0;
  text-align:center;
  color:#fff;
  background:
    linear-gradient(rgba(20,22,28,.84), rgba(20,22,28,.84)),
    url("images/bg-whyus.jpg") center / cover no-repeat;
  background-color:var(--dark);
}

.why-band .section-head{ margin-bottom:0; }
.why-band h2{ font-size:36px; }

.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  max-width:960px;
  margin:48px auto 0 auto;
}

.stat{ padding:8px 24px; }

.stat + .stat{ border-left:1px solid rgba(var(--primary-rgb),.35); }

.stat .num{
  font-size:54px;
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.01em;
  color:#fff;
}

.stat .label{
  margin-top:12px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--primary);
}

/* ============ HOME: FOUNDER ============ */

.founder-media{ position:relative; }

.founder-media img,
.about-photo img{
  position:relative;
  z-index:1;
  border-radius:var(--radius);
  box-shadow:0 24px 60px rgba(0,0,0,.14);
}

.founder-media::before,
.about-photo::before{
  content:"";
  position:absolute;
  inset:22px -22px -22px 22px;
  border:2px solid var(--primary);
  border-radius:var(--radius);
}

.about-photo{ position:relative; }

.founder-text h3{
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin:26px 0 12px 0;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  list-style:none;
  margin:0;
  padding:0;
}

.chips li{
  padding:8px 18px;
  border-radius:999px;
  background:rgba(var(--primary-rgb),.14);
  color:var(--primary-dark);
  font-weight:700;
  font-size:14px;
  letter-spacing:.06em;
}

.pub-card{
  display:grid;
  grid-template-columns:230px 1fr;
  gap:40px;
  align-items:center;
  margin-top:72px;
  padding:32px;
  background:var(--warm);
  border:1px solid var(--border);
  border-radius:var(--radius);
}

.pub-card img{ border-radius:12px; box-shadow:0 12px 30px rgba(0,0,0,.10); }

.pub-card h3{
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 8px 0;
}

.pub-list{ list-style:none; margin:0; padding:0; }

.pub-list li + li{ border-top:1px solid var(--border); }

.pub-list a{
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px 0;
  font-weight:600;
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
  transition:color .2s ease;
}

.pub-list a:hover{ color:var(--primary-dark); }

.pub-list .fa-book{ color:var(--primary); font-size:18px; width:20px; flex-shrink:0; }

.pub-list .ext{ margin-left:auto; padding-left:10px; color:var(--muted); font-size:13px; }

/* ============ HOME: CONTACT BAND ============ */

.contact-band{
  padding:96px 0;
  text-align:center;
  color:#fff;
  background:
    linear-gradient(90deg, rgba(20,22,28,.92) 0%, rgba(20,22,28,.74) 100%),
    url("images/bg-contact.jpg") center / cover no-repeat;
  background-color:var(--dark);
}

.contact-band .section-head{ margin-bottom:20px; }
.contact-band h2{ font-size:36px; }

.contact-band p{
  max-width:680px;
  margin:0 auto 32px auto;
  font-size:17px;
  color:#e5e7eb;
}

.contact-chips{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
}

.contact-chip{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:14px 22px;
  border-radius:12px;
  border:1px solid rgba(var(--primary-rgb),.55);
  background:rgba(255,255,255,.05);
  color:#fff;
  font-weight:600;
  font-size:16px;
  transition:.2s ease;
}

.contact-chip i{ color:var(--primary); font-size:18px; }

.contact-chip:hover{
  background:rgba(var(--primary-rgb),.18);
  border-color:var(--primary);
}

/* ============ INNER PAGE HERO ============ */

.page-hero{
  padding:110px 0 90px 0;
  text-align:center;
  color:#fff;
  background:
    linear-gradient(180deg, rgba(20,22,28,.80) 0%, rgba(20,22,28,.72) 55%, rgba(20,22,28,.88) 100%),
    var(--hero-img, none) center / cover no-repeat;
  background-color:var(--dark);
}

.page-hero h1{
  color:#fff;
  font-size:44px;
  max-width:920px;
  margin:0 auto 10px auto;
}

.page-hero h1::first-letter{ text-transform:uppercase; }

.page-hero .eyebrow{ color:var(--primary); }
.page-hero .eyebrow a:hover{ color:var(--primary-light); }

.page-hero p{ color:#e5e7eb; max-width:680px; margin:0 auto; }

.post-date{ font-size:14px; letter-spacing:.04em; color:#d1d5db !important; }
.post-date i{ color:var(--primary); margin-right:6px; }

/* ============ SERVICES ============ */

.service-block{ padding:80px 0; }

.service-media{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:340px;
  padding:30px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.service-media img{
  width:auto;
  max-width:100%;
  max-height:380px;
  border-radius:10px;
}

.service-media img[src*="trademark.png"]{ max-width:300px; }

.service-media.photo{ padding:0; overflow:hidden; min-height:0; }
.service-media.photo img{ width:100%; max-height:none; border-radius:0; }

.service-text p{ font-size:16.5px; }

.service-num{
  display:inline-block;
  font-size:14px;
  font-weight:700;
  letter-spacing:.14em;
  color:var(--primary-dark);
  margin-bottom:10px;
}

.service-num::after{
  content:"";
  display:inline-block;
  width:34px;
  height:2px;
  margin-left:12px;
  vertical-align:middle;
  background:var(--primary);
}

[id^="service_"],
#team,
#offices{ scroll-margin-top:100px; }

/* ============ ABOUT & TEAM ============ */

.team-grid{ align-items:stretch; }

.team-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:34px 28px 30px 28px;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.team-card:hover{
  border-color:var(--primary);
  box-shadow:0 16px 40px rgba(var(--primary-rgb),.16);
  transform:translateY(-4px);
}

.team-photo{
  display:block;
  width:150px;
  height:150px;
  margin:0 auto 20px auto;
  padding:4px;
  border-radius:50%;
  background:var(--gold-grad);
}

.team-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  border:3px solid #fff;
}

.team-card h3{ margin-bottom:6px; }
.team-card h3 a:hover{ color:var(--primary-dark); }

.role{
  color:var(--primary-dark);
  font-weight:600;
  font-size:14px;
  margin-bottom:16px;
}

.team-card p{ font-size:15px; color:var(--muted); }

.team-card .more{ margin-top:auto; }

.social-icons{
  display:flex;
  justify-content:center;
  gap:10px;
  margin:0 0 20px 0;
}

.social-icons a{
  width:38px;
  height:38px;
  border-radius:50%;
  border:1.5px solid rgba(var(--primary-rgb),.6);
  color:var(--primary-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  transition:.2s ease;
}

.social-icons a:hover{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}

.member-layout{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:40px;
  align-items:start;
}

.member-card{
  position:sticky;
  top:100px;
  text-align:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px 24px 28px 24px;
  box-shadow:var(--shadow);
}

.member-card img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:20px;
}

.member-card h2{ font-size:22px; margin-bottom:6px; }

.member-card .btn-outline{ width:100%; justify-content:center; }

.content-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:44px 48px;
  box-shadow:var(--shadow);
}

/* ============ ENTRY CONTENT (editor content) ============ */

.entry-content{ font-size:16.5px; }

.entry-content > *:first-child{ margin-top:0; }
.entry-content > *:last-child{ margin-bottom:0; }

.entry-content p{ margin:0 0 18px 0; }

.entry-content h2{ font-size:26px; margin:36px 0 14px 0; }
.entry-content h3{ font-size:21px; margin:30px 0 12px 0; }
.entry-content h4{ font-size:18px; margin:28px 0 10px 0; }

.entry-content ul,
.entry-content ol{
  margin:0 0 18px 0;
  padding-left:22px;
  line-height:1.75;
  color:var(--ink);
}

.entry-content li{ margin-bottom:6px; }
.entry-content li::marker{ color:var(--primary-dark); }

.entry-content a{
  color:var(--primary-dark);
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:rgba(var(--primary-rgb),.45);
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}

.entry-content a:hover{ color:var(--text); text-decoration-color:var(--primary); }

.entry-content blockquote{
  margin:24px 0;
  padding:18px 24px;
  background:var(--warm);
  border-left:3px solid var(--primary);
  border-radius:0 12px 12px 0;
}

.entry-content img{ border-radius:10px; }
.entry-content figure{ margin:0 0 20px 0; }

.entry-content table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 20px 0;
  font-size:15px;
}

.entry-content th,
.entry-content td{
  border:1px solid var(--border);
  padding:10px 12px;
  text-align:left;
  vertical-align:top;
}

.entry-content th{ background:var(--warm); }
.entry-content .wp-block-table{ overflow-x:auto; }

.entry-content hr{ border:0; border-top:1px solid var(--border); margin:30px 0; }

.post-featured{ margin:0 0 28px 0; }
/* Square or tall pictures (posters) stay at most 520px high, centred */
.post-featured img{ display:block; width:auto; max-width:100%; height:auto; max-height:520px; margin:0 auto; border-radius:12px; }

/* ============ NEWS & ARTICLES ============ */

.post-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:26px;
}

.post-card{
  position:relative;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.post-card:hover{
  border-color:var(--primary);
  box-shadow:0 16px 40px rgba(var(--primary-rgb),.16);
  transform:translateY(-4px);
}

.post-card-thumb img{ width:100%; aspect-ratio:16 / 9; object-fit:cover; }

.post-card-body{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:28px 28px 26px 28px;
}

.post-meta{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--primary-dark);
}

.post-card h2{ font-size:20px; line-height:1.4; margin-bottom:12px; }
.post-card h2 a:hover{ color:var(--primary-dark); }

.post-card p{ flex:1; font-size:15px; color:var(--muted); }

.post-card .more::after{ content:""; position:absolute; inset:0; }

.navigation.pagination{ margin-top:44px; }

.nav-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}

.nav-links .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  height:44px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:600;
  color:var(--ink);
}

.nav-links a.page-numbers:hover{ border-color:var(--primary); color:var(--primary-dark); }

.nav-links .page-numbers.current{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}

.empty-note{ text-align:center; color:var(--muted); }

.desifeed-notice{
  margin:0 0 24px 0;
  padding:12px 16px;
  border-left:3px solid var(--primary);
  border-radius:0 8px 8px 0;
  background:var(--warm);
  font-size:14px;
}

/* ============ CONTACT PAGE ============ */

.contact-grid{ align-items:stretch; }

.contact-card h2{ font-size:24px; margin-bottom:10px; }

.contact-item{
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px 0;
  border-bottom:1px solid var(--border);
}

.contact-item:last-child{ border-bottom:0; padding-bottom:0; }

.dot{
  width:44px;
  height:44px;
  border-radius:12px;
  background:rgba(var(--primary-rgb),.14);
  color:var(--primary-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-size:17px;
}

.contact-item strong{
  display:block;
  margin-bottom:3px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}

.contact-item a,
.contact-item span{ font-weight:600; color:var(--ink); }

.contact-item a:hover{ color:var(--primary-dark); }

.map-card{ padding:0; overflow:hidden; min-height:420px; }

.map-card iframe{
  display:block;
  width:100%;
  height:100%;
  min-height:420px;
  border:0;
}

.office-card{
  display:flex;
  align-items:center;
  gap:18px;
  padding:26px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.office-card:hover{
  border-color:var(--primary);
  box-shadow:0 16px 40px rgba(var(--primary-rgb),.16);
  transform:translateY(-4px);
}

.office-card h3{ font-size:19px; margin:0 0 2px 0; }
.office-card p{ margin:0; color:var(--muted); }
.office-card .go{ margin-left:auto; color:var(--primary-dark); }

/* ============ FOOTER ============ */

footer.dg-footer{
  background:var(--dark);
  color:#cfd3da;
  border-top:3px solid var(--primary);
}

footer.dg-footer .dg-foot-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr .8fr;
  padding-top:56px;
  padding-bottom:44px;
}

footer.dg-footer .dg-foot-col{
  padding:0 36px;
  border-left:1px solid rgba(var(--primary-rgb),.25);
}

footer.dg-footer .dg-foot-col:first-child{
  padding-left:0;
  border-left:none;
}

footer.dg-footer .dg-foot-logo{
  height:64px;
  width:auto;
  margin-bottom:14px;
}

footer.dg-footer .dg-foot-name{
  font-size:24px;
  font-weight:700;
  color:#fff;
  margin-bottom:10px;
}

footer.dg-footer p{
  max-width:320px;
  margin:0;
  font-size:14px;
  line-height:1.7;
  color:#9ca3af;
}

footer.dg-footer h3{
  margin:6px 0 20px 0;
  font-size:15px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--primary);
}

footer.dg-footer a{ color:#e5e7eb; transition:.2s ease; }
footer.dg-footer a:hover{ color:var(--primary); }

footer.dg-footer .dg-foot-list,
footer.dg-footer .dg-foot-links{
  list-style:none;
  margin:0;
  padding:0;
}

footer.dg-footer .dg-foot-list li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
  font-size:14px;
  line-height:1.6;
}

footer.dg-footer .dg-foot-list i{
  width:16px;
  margin-top:4px;
  text-align:center;
  color:var(--primary);
}

footer.dg-footer .dg-foot-links li{ margin-bottom:10px; font-size:14px; }

footer.dg-footer .dg-foot-links a::before{
  content:"\203A";
  margin-right:8px;
  color:var(--primary);
}

footer.dg-footer .dg-foot-bottom{
  padding:18px 0;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:13px;
  color:#8b919c;
  text-align:center;
}

footer.dg-footer .footer-domain{ color:var(--primary); font-weight:600; }

/* ============ BACK TO TOP & SCROLL PROGRESS ============ */

#backToTop{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:900;
  width:46px;
  height:46px;
  border:0;
  border-radius:50%;
  background:var(--gold-grad);
  color:#1f2229;
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:.3s ease;
}

#backToTop.show{ opacity:1; visibility:visible; transform:none; }

#scrollProgress{
  position:fixed;
  top:0;
  left:0;
  z-index:2001;
  width:0;
  height:3px;
  background:var(--gold-grad);
  pointer-events:none;
}

.admin-bar #scrollProgress{ top:32px; }

/* ============ RESPONSIVE ============ */

@media (min-width:1025px) and (hover:hover){
  .why-band{ background-attachment:fixed; }
}

@media (max-width:1100px){
  .menu-toggle{ display:flex; }

  .main-menu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    max-height:calc(100vh - 80px);
    overflow-y:auto;
    background:var(--dark);
    border-top:1px solid rgba(255,255,255,.08);
    box-shadow:0 24px 40px rgba(0,0,0,.35);
  }

  .main-menu.active{ display:block; }

  .main-menu ul{
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:8px 20px 22px 20px;
  }

  .main-menu a{
    padding:13px 0;
    border-bottom:1px solid rgba(255,255,255,.07);
  }

  .main-menu a:hover,
  .main-menu .current-menu-item > a,
  .main-menu .current-menu-parent > a,
  .main-menu .current_page_item > a{ border-bottom-color:rgba(255,255,255,.07); }

  .main-menu .menu-item-has-children > a::after{ display:none; }

  .main-menu .sub-menu{
    display:flex;
    position:static;
    min-width:0;
    padding:0 0 0 16px;
    background:transparent;
    border:none;
    box-shadow:none;
  }

  .main-menu .sub-menu a{ padding:11px 0; border-radius:0; border-bottom:1px solid rgba(255,255,255,.07); }
  .main-menu .sub-menu a:hover{ background:transparent; }

  .main-menu a.portal-btn{
    margin-top:16px;
    text-align:center;
    padding:12px 20px;
  }
}

@media (max-width:1024px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:900px){
  section,
  .service-block{ padding:64px 0; }

  .grid-2,
  .grid-3{ grid-template-columns:1fr; gap:36px; }

  .grid-3.team-grid,
  .grid-3.cards-3{ gap:24px; }

  .hero{ padding:100px 0 96px 0; }
  .hero h1{ font-size:38px; }

  .page-hero{ padding:80px 0 64px 0; }
  .page-hero h1{ font-size:32px; }

  .offset-wrap{ grid-template-columns:1fr; gap:16px; padding:0; }
  .offset-card.card-a,
  .offset-card.card-b{ margin:0; align-self:auto; }

  .stats{ grid-template-columns:1fr; gap:28px; }
  .stat + .stat{ border-left:none; border-top:1px solid rgba(var(--primary-rgb),.35); padding-top:28px; }

  .founder-media::before,
  .about-photo::before{ inset:14px -10px -14px 10px; }

  .pub-card{ grid-template-columns:1fr; gap:24px; margin-top:56px; padding:24px; }
  .pub-card img{ max-width:260px; }

  .member-layout{ grid-template-columns:1fr; gap:28px; }
  .member-card{ position:static; max-width:420px; width:100%; margin:0 auto; }

  .content-card{ padding:32px 28px; }

  .service-media{ min-height:0; }

  footer.dg-footer .dg-foot-grid{ grid-template-columns:1fr; gap:32px; }
  footer.dg-footer .dg-foot-col{ padding:0; border-left:none; }
  footer.dg-footer .dg-foot-col + .dg-foot-col{
    border-top:1px solid rgba(var(--primary-rgb),.25);
    padding-top:28px;
  }
}

@media (min-width:901px){
  .service-split.reverse .service-media{ order:2; }

  /* Single service pages: image stays at the top while the text scrolls */
  .service-split.align-top{ align-items:start; }
  .service-split.align-top .service-media{ position:sticky; top:110px; }
}

@media (max-width:782px){
  .admin-bar header.site-header{ top:46px; }
  .admin-bar #scrollProgress{ top:46px; }
}

@media (max-width:600px){
  .admin-bar header.site-header{ top:0; }

  section,
  .service-block{ padding:56px 0; }

  h2{ font-size:26px; }

  .logo img{ height:40px; }

  .grid-4{ grid-template-columns:1fr; }

  .hero{ padding:84px 0 84px 0; }
  .hero h1{ font-size:32px; }
  .hero-tags{ font-size:15px; }

  .why-band,
  .contact-band{ padding:72px 0; }
  .why-band h2,
  .contact-band h2{ font-size:30px; }
  .stat .num{ font-size:44px; }

  .post-grid{ grid-template-columns:1fr; }

  .content-card{ padding:26px 20px; }
  .card{ padding:26px 22px; }

  .contact-chip{ width:100%; justify-content:center; }

  #backToTop{ right:16px; bottom:16px; }
}

/* ============ IMAGES INSIDE NEWS AND ARTICLES ============ */
/* The text comes from desipatent.tr, so WordPress does not load its image and gallery styles here. */

.entry-content .wp-block-image{ margin:0 0 20px 0; }
.entry-content .wp-block-image img{ max-width:100%; height:auto; }

.entry-content .aligncenter{ margin-left:auto; margin-right:auto; text-align:center; }
.entry-content .aligncenter img{ margin-left:auto; margin-right:auto; }
.entry-content .alignleft{ float:left; max-width:50%; margin:4px 24px 16px 0; }
.entry-content .alignright{ float:right; max-width:50%; margin:4px 0 16px 24px; }
.entry-content::after{ content:""; display:table; clear:both; }

.entry-content figcaption{
  margin-top:8px;
  font-size:13px;
  line-height:1.5;
  color:var(--muted);
  text-align:center;
}

.entry-content .wp-block-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
  margin:0 0 20px 0;
}

.entry-content .wp-block-gallery.columns-2{ grid-template-columns:repeat(2, 1fr); }
.entry-content .wp-block-gallery.columns-3{ grid-template-columns:repeat(3, 1fr); }
.entry-content .wp-block-gallery.columns-4{ grid-template-columns:repeat(4, 1fr); }

.entry-content .wp-block-gallery .wp-block-image{ margin:0; }
.entry-content .wp-block-gallery img{ width:100%; border-radius:10px; }
.entry-content .wp-block-gallery.is-cropped img{ aspect-ratio:4 / 3; object-fit:cover; }
.entry-content .wp-block-gallery > figcaption{ grid-column:1 / -1; }

@media (max-width:600px){
  .entry-content .wp-block-gallery,
  .entry-content .wp-block-gallery[class*="columns-"]{ grid-template-columns:repeat(2, 1fr); }
  .entry-content .alignleft,
  .entry-content .alignright{ float:none; max-width:100%; margin:0 0 20px 0; }
}
