/*
Theme Name: ABC Premium Professional
Theme URI: https://afghanbc.ru/
Author: Afghan Business Centre
Description: Responsive multilingual custom theme for Afghan Business Centre.
Version: 15.0.0
Text Domain: abc-premium-professional
*/
:root{--blue:#073f98;--royal:#075be8;--navy:#071b42;--bg:#f5f7fb;--line:#e3e8f1;--muted:#667085}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:#101828;font-family:Arial,"Helvetica Neue",sans-serif}a{text-decoration:none;color:inherit}.wrap{width:min(1200px,calc(100% - 40px));margin:auto}
.site-header{background:#fff;position:relative;z-index:20;border-bottom:1px solid #eef1f6}.header-inner{height:112px;display:flex;align-items:center;gap:28px}.brand{display:block;width:220px;flex:0 0 220px}.brand img,.brand .custom-logo{display:block;width:100%;max-width:220px;height:auto;max-height:86px;object-fit:contain;object-position:left center}.desktop-nav{display:flex;align-items:center;gap:28px;margin-left:auto;font-weight:700;font-size:14px}.langs{display:flex;background:#f1f4f9;border-radius:9px;overflow:hidden;white-space:nowrap}.langs a{padding:11px 15px;font-size:13px}.langs .active{background:var(--blue);color:#fff}.hamb{font-size:27px;color:#071b42}
.hero{height:530px;background:url("assets/hero-clean.jpg") center/cover no-repeat;color:#fff;position:relative;display:flex;align-items:center}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,31,84,.05),rgba(0,35,100,.12),rgba(0,31,84,.05))}.hero-inner{position:relative;text-align:center;max-width:700px}.eyebrow{font-size:21px;margin-bottom:12px}.hero h1{font-size:56px;line-height:1.05;margin:0 auto 18px;max-width:680px}.hero p{font-size:18px;line-height:1.55;max-width:610px;margin:0 auto 28px}.hero-actions{display:flex;justify-content:center;gap:14px}.button{min-width:190px;padding:15px 25px;border-radius:7px;font-weight:700}.solid{background:var(--royal);border:1px solid var(--royal)}.ghost{border:1px solid #fff;background:#06357855}.dots{margin-top:30px}.dots i{display:inline-block;width:11px;height:11px;background:#fff;border-radius:50%;margin:0 5px;opacity:.55}.dots i:first-child{opacity:1}
.quick{margin-top:-34px;position:relative;z-index:5;background:#fff;border-radius:22px;box-shadow:0 10px 30px #09244d16;display:grid;grid-template-columns:repeat(6,1fr);overflow:hidden}.quick a{height:125px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid var(--line);font-weight:700}.quick b{font-size:34px;color:var(--blue);font-weight:400;margin-bottom:10px}
.activities-section{padding:72px 0 55px}.section-title{text-align:center;max-width:700px;margin:0 auto 30px}.section-title span{color:var(--royal);font-weight:800;text-transform:uppercase;font-size:13px;letter-spacing:.08em}.section-title h2{font-size:38px;color:var(--blue);margin:8px 0}.section-title p{color:var(--muted);font-size:17px}.activity-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.activity-card{background:#fff;border:1px solid var(--line);border-radius:18px;min-height:190px;padding:28px;display:grid;grid-template-columns:76px 1fr;gap:20px;box-shadow:0 5px 18px #0c2c5a0c;transition:.2s}.activity-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #0c2c5a16}.activity-icon{width:70px;height:70px;border-radius:18px;background:#edf4ff;color:var(--blue);display:grid;place-items:center;font-size:34px}.activity-card h3{font-size:21px;color:var(--blue);margin:2px 0 8px}.activity-card p{color:#475467;line-height:1.55;margin:0 0 14px;font-size:14px}.activity-card a{color:var(--royal);font-weight:800;font-size:13px}
.content-grid{display:grid;grid-template-columns:1.7fr .8fr;gap:20px;padding-bottom:55px}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 5px 18px #0c2c5a0c}.panel h2{color:var(--blue);font-size:24px;margin:0 0 20px}.news-row{display:grid;grid-template-columns:190px 1fr;gap:18px;padding:18px 0;border-top:1px solid var(--line)}.news-row:first-of-type{border-top:0;padding-top:0}.news-img{display:block;height:135px;border-radius:12px;background-size:cover;background-position:center}.placeholder{background:linear-gradient(135deg,#0b4fa7,#dbe9ff)}.news-row small{color:var(--royal);font-weight:800}.news-row h3{margin:7px 0;font-size:18px}.news-row p{color:#475467;line-height:1.5}.text-link{color:var(--royal);font-weight:800}.side-stack{display:grid;gap:20px;align-content:start}.event{display:grid;grid-template-columns:70px 1fr;gap:14px;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:12px}.event strong{background:var(--blue);color:#fff;font-size:28px;display:grid;place-items:center}.event div{padding:18px 10px}.event b,.event span{display:block}.event span{font-size:12px;color:var(--muted);margin-top:8px}.contact-card p{padding:8px 0;border-bottom:1px solid var(--line)}
footer{background:linear-gradient(120deg,#063b8f,#034caf);color:#fff;padding:38px 0}.footer-grid{display:grid;grid-template-columns:240px 1fr 1fr;gap:40px;align-items:center}.footer-logo img,.footer-logo .custom-logo{max-width:200px;height:auto}
[dir=rtl] .desktop-nav{margin-left:0;margin-right:auto}[dir=rtl] .brand img,[dir=rtl] .brand .custom-logo{object-position:right center}
@media(max-width:900px){.desktop-nav{display:none}.header-inner{height:96px}.brand{width:190px;flex-basis:190px}.hero{height:520px}.hero h1{font-size:44px}.activity-grid{grid-template-columns:1fr}.content-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}}
@media(max-width:600px){
 .wrap{width:min(100% - 24px,1200px)}.site-header{position:relative}.header-inner{height:104px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.brand{width:auto;min-width:0;flex-basis:auto}.brand img,.brand .custom-logo{width:auto;max-width:165px;max-height:72px}.langs a{padding:9px 8px;font-size:11px}.hamb{font-size:24px}
 .hero{height:540px;background-position:center center}.hero-inner{padding:0 10px}.eyebrow{font-size:17px}.hero h1{font-size:36px;line-height:1.08}.hero p{font-size:15px}.hero-actions{flex-direction:column;max-width:330px;margin:auto}.button{width:100%}
 .quick{grid-template-columns:repeat(3,1fr);margin-top:-30px;border-radius:20px}.quick a{height:105px;font-size:13px;border-bottom:1px solid var(--line)}.quick b{font-size:29px}
 .activities-section{padding:55px 0 38px}.section-title h2{font-size:32px}.section-title p{font-size:15px}.activity-grid{gap:14px}.activity-card{min-height:220px;padding:24px 20px;grid-template-columns:1fr;text-align:center}.activity-icon{width:76px;height:76px;margin:auto;font-size:36px}.activity-card h3{font-size:23px}.activity-card p{font-size:15px}.activity-card a{font-size:14px}
 .panel{padding:18px}.news-row{grid-template-columns:1fr}.news-img{height:210px}.footer-grid{text-align:center}.footer-logo{margin:auto}
}


/* v3 — keep and display ALL existing WordPress news/posts in a clean archive grid */
.content-grid{
  grid-template-columns:1fr !important;
}
.side-stack{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.all-news-panel{
  padding:28px;
}
.all-news-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.news-card-full{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(12,44,90,.08);
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.news-card-image{
  width:100%;
  aspect-ratio:16/10;
  background-size:cover;
  background-position:center;
  display:block;
}
.news-card-content{
  padding:18px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.news-card-content small{
  color:var(--royal);
  font-weight:800;
  font-size:12px;
}
.news-card-content h3{
  font-size:18px;
  line-height:1.4;
  margin:8px 0 10px;
}
.news-card-content p{
  color:#475467;
  line-height:1.55;
  margin:0 0 14px;
  font-size:14px;
}
.news-card-content .text-link{
  margin-top:auto;
}
@media(max-width:900px){
  .all-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .side-stack{grid-template-columns:1fr;}
}
@media(max-width:600px){
  .all-news-panel{padding:16px;}
  .all-news-grid{grid-template-columns:1fr;gap:14px;}
  .news-card-content h3{font-size:20px;}
}


/* v4 — activities cards removed by request */
.activities-section,
.activity-grid,
.activity-card {
  display:none !important;
}


/* v10 — safe ALL NEWS view using ?abc_all_news=1 (no custom rewrite route). */
.all-news-page{background:#f5f7fb;padding:38px 0 65px;min-height:70vh}
.all-news-top{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.all-news-top h1{margin:0;color:var(--blue);font-size:36px}
.all-news-back{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--blue);font-size:24px;box-shadow:0 4px 14px rgba(8,38,85,.08)}
.all-news-page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.all-news-page-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 6px 18px rgba(12,44,90,.07)}
.all-news-page-image{width:100%;aspect-ratio:16/10;background-size:cover;background-position:center;background-color:#eaf2ff}
.all-news-page-image.placeholder{background:linear-gradient(135deg,#0b4fa7,#e6efff)}
.all-news-page-content{padding:18px}
.all-news-page-date{color:var(--royal);font-size:12px;font-weight:800;margin-bottom:8px}
.all-news-page-card h2{font-size:20px;line-height:1.4;margin:0 0 10px;color:#101828}
.all-news-page-card p{color:#475467;line-height:1.6;font-size:14px;margin:0}
@media(max-width:900px){.all-news-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .all-news-page{padding:22px 0 42px}
  .all-news-top h1{font-size:28px}
  .all-news-page-grid{grid-template-columns:1fr;gap:14px}
  .all-news-page-card h2{font-size:21px}
}


/* v11 — preserve the user's ORIGINAL full news text on the all-news page. */
.all-news-full-content{
  color:#344054;
  font-size:15px;
  line-height:1.75;
}
.all-news-full-content p{
  margin:0 0 1em;
}
.all-news-full-content h2,
.all-news-full-content h3,
.all-news-full-content h4{
  color:#123e85;
  line-height:1.3;
  margin:1.2em 0 .55em;
}
.all-news-full-content img{
  max-width:100%;
  height:auto;
  border-radius:10px;
  margin:10px 0;
}
.all-news-full-content a{
  color:var(--royal);
  text-decoration:underline;
  text-underline-offset:2px;
}
.all-news-full-content ul,
.all-news-full-content ol{
  padding-inline-start:1.35em;
}
@media(max-width:600px){
  .all-news-full-content{
    font-size:16px;
    line-height:1.8;
  }
}


/* v12 — restore ALL news on homepage and show the user's ORIGINAL full text. */
#news .all-news-grid,
#news .news-grid,
#news .news-list{
  width:100%;
}
.homepage-news-full-content{
  color:#344054;
  font-size:15px;
  line-height:1.75;
}
.homepage-news-full-content p{
  margin:0 0 1em;
}
.homepage-news-full-content h2,
.homepage-news-full-content h3,
.homepage-news-full-content h4{
  color:#123e85;
  line-height:1.3;
  margin:1.15em 0 .55em;
}
.homepage-news-full-content img{
  max-width:100%;
  height:auto;
  border-radius:10px;
  margin:10px 0;
}
.homepage-news-full-content a{
  color:var(--royal);
  text-decoration:underline;
  text-underline-offset:2px;
}
.homepage-news-full-content ul,
.homepage-news-full-content ol{
  padding-inline-start:1.35em;
}
@media(max-width:600px){
  .homepage-news-full-content{
    font-size:16px;
    line-height:1.8;
  }
}

.abc-contact-details p{margin:0 0 7px;line-height:1.55}
.abc-contact-details a{color:inherit;text-decoration:none}

/* v15 — hard-limit WordPress custom logo so it can never expand the header. */
.site-header .brand > a.custom-logo-link{
  display:flex !important;
  align-items:center !important;
  width:220px !important;
  max-width:220px !important;
  height:86px !important;
  max-height:86px !important;
  overflow:hidden !important;
}
.site-header .brand > a.custom-logo-link img.custom-logo,
.site-header .brand img.custom-logo{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:220px !important;
  max-height:86px !important;
  object-fit:contain !important;
  object-position:left center !important;
}
.footer-logo a.custom-logo-link{
  display:inline-flex !important;
  align-items:center !important;
  max-width:200px !important;
  max-height:80px !important;
  overflow:hidden !important;
}
.footer-logo a.custom-logo-link img.custom-logo,
.footer-logo img.custom-logo{
  width:auto !important;
  height:auto !important;
  max-width:200px !important;
  max-height:80px !important;
  object-fit:contain !important;
}
@media(max-width:600px){
  .site-header .brand > a.custom-logo-link{
    width:150px !important;
    max-width:150px !important;
    height:68px !important;
    max-height:68px !important;
  }
  .site-header .brand > a.custom-logo-link img.custom-logo,
  .site-header .brand img.custom-logo{
    width:auto !important;
    height:auto !important;
    max-width:150px !important;
    max-height:68px !important;
  }
}
