/*
Theme Name: EBS Theme
Theme URI: https://emiratesbusinesssetup.com/
Author: Emirates Business Setup
Description: Standalone WordPress theme for blog, pages, and 404. Header and footer come from public_html/includes — do not paste nav/footer chrome here.
Version: 1.1.07
Text Domain: ebs-theme
*/

:root{
  --bg:#0b1029;
  --bg2:#141c4a;
  --navy:#101638;
  --card:#161e46;
  --card-border:rgba(255,255,255,.09);
  --cb:rgba(255,255,255,.09);
  --red:#e05252;
  --red-deep:#c94444;
  --gold:#d4a843;
  --white:#ffffff;
  --muted:#9aa3c7;
  --green:#25D366;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.ebs-wp{
  margin:0;
  background-color:#0b1029;
  background:linear-gradient(160deg,var(--bg) 0%,var(--bg2) 60%,var(--bg) 100%);
  color:var(--white);
  font-family:Poppins,'Helvetica Neue',Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
nav .nav-menu a {
  text-decoration: none;
}
.ebs-main img,.ebs-main svg{max-width:100%;height:auto}
.ebs-main a{text-decoration:none;color:inherit}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.wrap--wide{max-width:1200px}

.ebs-main{padding:56px 0 80px;min-height:50vh}
.ebs-pagehead{max-width:720px;margin-bottom:40px}
.ebs-pagehead--article{max-width:none;margin-bottom:28px}
.ebs-pagehead .eyebrow{
  font-size:12px;
  font-weight:800;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--red);
  margin:0 0 14px;
}
.ebs-pagehead h1{
  font-size:clamp(28px,4vw,40px);
  font-weight:800;
  letter-spacing:-.01em;
  line-height:1.15;
  margin:0 0 12px;
}
.ebs-pagehead p{color:var(--muted);font-size:15.5px;line-height:1.7;margin:0}

.ebs-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.ebs-card{
  display:flex;
  flex-direction:column;
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  overflow:hidden;
  transition:border-color .15s,transform .15s;
}
.ebs-card:hover{border-color:rgba(224,82,82,.5);transform:translateY(-3px)}
.ebs-card-thumb{display:block;aspect-ratio:16/10;background:var(--navy);overflow:hidden}
.ebs-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ebs-card-placeholder{
  display:block;
  width:100%;
  height:100%;
  min-height:100%;
  background:linear-gradient(135deg,var(--navy) 0%,rgba(224,82,82,.18) 100%);
}
.ebs-card-body{padding:22px 20px 24px;display:flex;flex-direction:column;flex:1}
.ebs-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--muted);margin-bottom:10px}
.ebs-chip{
  display:inline-flex;
  background:rgba(224,82,82,.15);
  border:1px solid rgba(224,82,82,.35);
  color:var(--red);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:3px 8px;
  border-radius:999px;
}
.ebs-card h2{font-size:17px;font-weight:800;line-height:1.3;margin:0 0 8px}
.ebs-card p{font-size:13.5px;color:var(--muted);line-height:1.65;margin:0 0 16px;flex:1}
.ebs-card .ebs-more{color:var(--red);font-weight:800;font-size:13.5px}

.ebs-empty{color:var(--muted);font-size:15px}

.ebs-pagination,.ebs-main .navigation.pagination{
  margin-top: 40px;
  background: none;
  border: 0;
}
.ebs-pagination .nav-links,.ebs-pagination ul.page-numbers,.ebs-main .navigation.pagination .nav-links{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;list-style:none;margin:0;padding:0
}

.ebs-pagination .page-numbers li, .ebs-main .navigation.pagination .page-numbers li{
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.ebs-pagination li .page-numbers, .ebs-main .navigation.pagination li .page-numbers {
  display: flex;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  align-items: center;
  justify-content: center;
}
.ebs-pagination .page-numbers.current,
.ebs-pagination a.page-numbers:hover,
.ebs-main .navigation.pagination .page-numbers.current,
.ebs-main .navigation.pagination a.page-numbers:hover{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
}

.ebs-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:48px;
  align-items:start;
}
.ebs-article{max-width:none;min-width:0}
.ebs-crumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  font-size:13px;
  color:var(--muted);
  margin-bottom:22px;
  z-index: 1;
}
.ebs-crumbs a{color:var(--red);font-weight:600}
.ebs-crumbs a:hover{color:#fff}
.ebs-crumbs span:last-child{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:min(100%,42ch);
}
.ebs-article-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;color:var(--muted);margin:0}
.ebs-article-hero{border-radius:18px;overflow:hidden;margin:0 0 32px;border:1px solid var(--card-border);background:var(--navy)}
.ebs-article-hero img{width:100%;height:auto;display:block}

.ebs-content{
  font-size:16.5px;
  line-height:1.85;
  color:rgba(255,255,255,.82);
  overflow:hidden;
}
.ebs-content > *:first-child{margin-top:0}
.ebs-content p,.ebs-content ul,.ebs-content ol{margin:0 0 20px}
.ebs-content h2{font-size:26px;font-weight:800;color:#fff;margin:40px 0 14px;letter-spacing:-.01em;line-height:1.25}
.ebs-content h3{font-size:19px;font-weight:800;color:#fff;margin:28px 0 10px;line-height:1.3}
.ebs-content h4{font-size:16px;font-weight:700;color:#fff;margin:22px 0 8px}
.ebs-content a{color:var(--red);font-weight:600}
.ebs-content a:hover{color:#fff}
.ebs-content ul,.ebs-content ol{padding-left:22px}
.ebs-content li{margin-bottom:8px}
.ebs-content blockquote{
  margin:24px 0;
  padding:14px 20px;
  border-left:3px solid var(--red);
  background:rgba(255,255,255,.04);
  border-radius:0 12px 12px 0;
  color:#fff;
  font-style:italic;
}
.ebs-content table{width:100%;border-collapse:collapse;margin:0 0 24px;font-size:14px}
.ebs-content th,.ebs-content td{border:1px solid var(--card-border);padding:10px 12px;text-align:left}
.ebs-content th{background:rgba(255,255,255,.04);color:#fff}

.ebs-content img,
.ebs-content .wp-block-image img,
.ebs-content .wp-caption img{
  max-width:100%;
  height:auto;
  display:block;
  border-radius:14px;
}
.ebs-content figure,
.ebs-content .wp-block-image,
.ebs-content .wp-caption,
.ebs-content .wp-block-gallery{
  margin:28px 0;
  max-width:100%;
}
.ebs-content figcaption,
.ebs-content .wp-caption-text,
.ebs-content .wp-element-caption{
  font-size:12.5px;
  color:var(--muted);
  margin-top:8px;
  text-align:center;
}
.ebs-content .aligncenter{margin-left:auto;margin-right:auto}
.ebs-content .alignleft{float:left;margin:6px 24px 16px 0;max-width:46%}
.ebs-content .alignright{float:right;margin:6px 0 16px 24px;max-width:46%}
.ebs-content .alignwide,
.ebs-content .alignfull{max-width:100%}
.ebs-content .wp-block-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ebs-content .wp-block-gallery img{width:100%;height:auto}
.ebs-content iframe,
.ebs-content video,
.ebs-content .wp-block-embed__wrapper{
  max-width:100%;
  border-radius:14px;
}
.ebs-content pre,.ebs-content code{font-family:ui-monospace,Consolas,monospace}
.ebs-content pre{
  background:var(--navy);
  border:1px solid var(--card-border);
  border-radius:12px;
  padding:16px;
  overflow:auto;
  color:#fff;
}

.ebs-tags{display:flex;flex-wrap:wrap;gap:8px;margin:32px 0 0}
.ebs-tags a{
  display:inline-flex;
  padding:6px 12px;
  border:1px solid var(--card-border);
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  color:var(--muted);
}
.ebs-tags a:hover{border-color:var(--red);color:#fff}

.ebs-post-nav{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:44px;
  padding-top:24px;
  border-top:1px solid var(--card-border);
  background: inherit;
}
.ebs-post-nav a{
  display:block;
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:14px;
  padding:16px 18px;
  color:#fff;
  font-weight:600;
  font-size:14px;
  line-height:1.4;
}
.ebs-post-nav a:hover{border-color:var(--red)}
.ebs-post-nav span{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:800;margin-bottom:6px}
.ebs-post-nav .ebs-next{text-align:right}

.ebs-sidebar{position:sticky;top:88px}
.ebs-side-block,.ebs-side-cta{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:22px 20px;
  margin-bottom:16px;
}
.ebs-side-block h2,.ebs-side-cta h2{
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin:0 0 16px;
  color:#fff;
}
.ebs-related{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.ebs-related a{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;align-items:center}
.ebs-related-thumb{
  display:block;
  width:84px;
  height:64px;
  border-radius:10px;
  overflow:hidden;
  background:var(--navy);
}
.ebs-related-thumb img,.ebs-related-thumb .ebs-card-placeholder{width:100%;height:100%;object-fit:cover;display:block}
.ebs-related-date{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}
.ebs-related-title{display:block;font-size:13.5px;font-weight:600;line-height:1.35;color:#fff}
.ebs-related a:hover .ebs-related-title{color:var(--red)}
.ebs-side-cta p{font-size:13.5px;color:var(--muted);line-height:1.65;margin:0 0 16px}
.ebs-side-cta .ebs-btn{width:100%;justify-content:center;margin-bottom:8px}

.ebs-404{text-align:center;padding:40px 0 20px}
.ebs-404 h1{font-size:clamp(32px,5vw,48px);margin:0 0 14px}
.ebs-404 p{color:var(--muted);font-size:16px;margin:0 0 28px}
.ebs-404-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.ebs-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 26px;
  border-radius:12px;
  font-weight:700;
  font-size:14px;
}
.ebs-btn-red{background:var(--red);color:#fff;box-shadow:0 8px 22px rgba(224,82,82,.3)}
.ebs-btn-wa{background:var(--green);color:#fff;box-shadow:0 8px 22px rgba(37,211,102,.28)}
.ebs-btn-outline{border:1.5px solid rgba(255,255,255,.28);color:#fff}

@media(max-width:980px){
  .ebs-layout{grid-template-columns:1fr;gap:32px}
  .ebs-sidebar{position:static}
}
@media(max-width:900px){
  .ebs-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .ebs-main{padding:36px 0 64px}
  .ebs-grid{grid-template-columns:1fr}
  .ebs-content .alignleft,.ebs-content .alignright{float:none;margin:16px 0;max-width:100%}
  .ebs-post-nav{grid-template-columns:1fr}
  .ebs-post-nav .ebs-next{text-align:left}
  .ebs-content .wp-block-gallery{grid-template-columns:1fr}
}
