/*
Theme Name: PCI DSS Custom
Author: OpenAI
Version: 1.0
Text Domain: pci-dss-custom
*/

:root{
  --bg:#0a1020;
  --bg-soft:#0f172a;
  --bg-alt:rgba(15,23,42,.72);
  --bg-radial-1:rgba(59,130,246,.14);
  --bg-radial-2:rgba(37,99,235,.08);
  --card:rgba(17,24,39,.98);
  --card-soft:rgba(17,24,39,.9);
  --line:#1f2937;
  --line-soft:rgba(255,255,255,.05);
  --text:#f8fafc;
  --muted:#94a3b8;
  --text-soft:#cbd5e1;
  --eyebrow:#93c5fd;
  --accent:#3b82f6;
  --accent-hover:#2563eb;
  --header-bg:rgba(10,16,32,.86);
  --header-shadow:0 10px 30px rgba(0,0,0,.16);
  --switcher-bg:rgba(255,255,255,.03);
  --switcher-border:rgba(255,255,255,.08);
  --switcher-hover:rgba(255,255,255,.06);
  --footer-bg:#09101d;
  --shadow:0 18px 50px rgba(0,0,0,.28);
  --max:1180px;
  --radius:18px;
}

html[data-theme="light"]{
  --bg:#f4f8ff;
  --bg-soft:#ffffff;
  --bg-alt:rgba(226,236,255,.58);
  --bg-radial-1:rgba(59,130,246,.14);
  --bg-radial-2:rgba(125,211,252,.18);
  --card:rgba(255,255,255,.96);
  --card-soft:rgba(255,255,255,.92);
  --line:#d7e3f4;
  --line-soft:rgba(15,23,42,.08);
  --text:#0f172a;
  --muted:#475569;
  --text-soft:#334155;
  --eyebrow:#2563eb;
  --header-bg:rgba(255,255,255,.88);
  --header-shadow:0 12px 34px rgba(15,23,42,.08);
  --switcher-bg:rgba(15,23,42,.03);
  --switcher-border:rgba(15,23,42,.09);
  --switcher-hover:rgba(15,23,42,.06);
  --footer-bg:#eaf1fb;
  --shadow:0 16px 40px rgba(15,23,42,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:
    radial-gradient(circle at top right, var(--bg-radial-1), transparent 28%),
    radial-gradient(circle at top left, var(--bg-radial-2), transparent 22%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
  transition:background .25s ease,color .25s ease;
}
img{max-width:100%;display:block}
a{color:inherit}

.site-shell{min-height:100vh;display:flex;flex-direction:column}
.site-main{flex:1}
.container{max-width:var(--max);margin:0 auto;padding:0 24px}

.site-header{
  position:sticky;top:0;z-index:1000;
  display:flex;justify-content:space-between;align-items:center;
  gap:24px;padding:18px 24px;
  background:var(--header-bg);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
  box-shadow:var(--header-shadow);
}
.site-brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}
.brand-mark{
  width:38px;height:38px;border-radius:12px;
  background:linear-gradient(135deg,var(--accent),#60a5fa);
  box-shadow:0 10px 25px rgba(59,130,246,.28);
}
.brand-text{display:flex;flex-direction:column}
.brand-title{font-size:16px;font-weight:700;letter-spacing:.02em}
.brand-subtitle{font-size:12px;color:var(--muted)}
.site-header-tools{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:flex-end}
.header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.site-navigation ul,
.primary-menu{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0}
.site-navigation a{text-decoration:none;color:var(--text-soft);font-size:15px;font-weight:500;transition:.2s ease}
.site-navigation a:hover,
.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a{color:var(--text)}
.site-navigation .menu-item-cta a,
.site-navigation li:last-child a{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:46px;padding:10px 16px;border-radius:12px;
  background:var(--accent);color:#fff;border:1px solid var(--accent);
  box-shadow:0 10px 24px rgba(59,130,246,.28);
}
.site-navigation .menu-item-cta a:hover,
.site-navigation li:last-child a:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.language-switcher{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px;border:1px solid var(--switcher-border);
  border-radius:14px;background:var(--switcher-bg)
}
.language-switcher__link{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:42px;min-height:34px;padding:6px 10px;
  border-radius:10px;text-decoration:none;font-size:13px;font-weight:700;
  color:var(--text-soft);transition:.2s ease
}
.language-switcher__link:hover{background:var(--switcher-hover);color:var(--text)}
.language-switcher__link.is-active{background:var(--accent);color:#fff;box-shadow:0 8px 18px rgba(59,130,246,.25)}
.theme-toggle{
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;
  width:48px;height:48px;border-radius:14px;border:1px solid var(--switcher-border);
  background:var(--switcher-bg);color:var(--text);cursor:pointer;
  box-shadow:var(--shadow);transition:.25s ease;
}
.theme-toggle:hover{transform:translateY(-1px);background:var(--switcher-hover)}
.theme-toggle__sun,.theme-toggle__moon{
  position:absolute;font-size:18px;line-height:1;transition:.25s ease;
}
html[data-theme="dark"] .theme-toggle__sun,
:root .theme-toggle__sun{opacity:1;transform:scale(1) rotate(0deg)}
html[data-theme="dark"] .theme-toggle__moon,
:root .theme-toggle__moon{opacity:0;transform:scale(.6) rotate(-20deg)}
html[data-theme="light"] .theme-toggle__sun{opacity:0;transform:scale(.6) rotate(20deg)}
html[data-theme="light"] .theme-toggle__moon{opacity:1;transform:scale(1) rotate(0deg)}

.hero{padding:108px 0 72px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:56px;align-items:center}
.eyebrow{
  display:inline-block;margin-bottom:16px;
  color:var(--eyebrow);font-size:12px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase
}
.hero h1,.section-title{
  margin:0 0 18px;line-height:1.05;letter-spacing:-.03em;color:var(--text)
}
.hero h1{font-size:58px;max-width:700px}
.hero-copy p{margin:0 0 30px;color:var(--muted);font-size:19px;max-width:620px}
.button-row{display:flex;gap:14px;flex-wrap:wrap}
.cta-row-center,
.articles-footer-row{justify-content:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:12px 20px;border-radius:12px;
  text-decoration:none;font-weight:600;border:1px solid var(--accent);
  background:var(--accent);color:#fff;transition:.25s ease
}
.btn:hover{background:var(--accent-hover);border-color:var(--accent-hover);transform:translateY(-1px)}
.btn-outline{background:transparent;border-color:var(--line);color:var(--text)}
.btn-outline:hover{background:var(--switcher-hover);border-color:var(--accent)}
.stats-row{display:flex;gap:28px;flex-wrap:wrap;margin-top:34px}
.stat-value{font-size:28px;font-weight:700;line-height:1.1}
.stat-label{font-size:14px;color:var(--muted);margin-top:6px}
.panel{
  background:linear-gradient(180deg,var(--card),var(--card-soft));
  border:1px solid var(--line);border-radius:24px;padding:34px;box-shadow:var(--shadow)
}
.panel h3{margin:0 0 18px;font-size:24px}
.checklist{display:grid;gap:14px;color:var(--text)}
.checklist div{display:flex;gap:10px;align-items:flex-start}

.section{padding:92px 0}
.section.alt{background:var(--bg-alt);border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.section-head{max-width:860px;margin:0 auto 42px;text-align:center}
.section-title{font-size:44px}
.section-head p{margin:0;color:var(--muted);font-size:18px}
.grid-3,
.cards-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.card{
  height:100%;padding:28px;border-radius:var(--radius);
  background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);
  transition:.25s ease
}
.card:hover{transform:translateY(-4px);border-color:rgba(59,130,246,.7)}
.card-title{margin:0 0 12px;font-size:22px;font-weight:700;line-height:1.25;color:var(--text)}
.muted{color:var(--muted)}
.icon-chip{
  width:42px;height:42px;border-radius:12px;margin-bottom:16px;
  background:rgba(59,130,246,.14);display:inline-flex;align-items:center;justify-content:center;
  color:var(--eyebrow);font-weight:700;font-size:14px
}
.card h3{margin:0 0 12px;font-size:24px;line-height:1.25;color:var(--text)}
.card p{margin:0;color:var(--muted)}

.page-shell{padding:60px 0 0}
.benefits-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:42px;align-items:start}

.cta-box{
  max-width:900px;margin:0 auto;text-align:center;padding:42px;
  border-radius:28px;border:1px solid rgba(59,130,246,.18);
  background:linear-gradient(180deg,var(--card-soft),var(--bg-soft));box-shadow:var(--shadow)
}
.cta-box p{color:var(--muted);font-size:18px;margin:0 0 26px}

.page-hero{padding:96px 0 40px;text-align:center}
.page-hero h1{margin:0 0 16px;font-size:54px;line-height:1.06;letter-spacing:-.03em;color:var(--text)}
.page-hero p{max-width:780px;margin:0 auto;color:var(--muted);font-size:19px}
.page-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.contact-line{font-size:18px;color:var(--text)}
.contact-line a{text-decoration:none}
.contact-line a:hover{color:var(--accent)}

.site-footer{margin-top:40px;border-top:1px solid var(--line);background:var(--footer-bg)}
.footer-inner{max-width:var(--max);margin:0 auto;padding:56px 24px 26px;display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:36px}
.site-footer h4{margin:0 0 14px;font-size:18px;color:var(--text)}
.site-footer p,.site-footer a{margin:0 0 10px;color:var(--muted);text-decoration:none}
.site-footer a:hover{color:var(--text)}
.footer-menu{list-style:none;margin:0;padding:0}
.footer-menu li{margin:0 0 10px}
.footer-menu a{color:var(--muted);text-decoration:none}
.footer-menu a:hover,.footer-menu .current-menu-item > a{color:var(--text)}
.footer-bottom{max-width:var(--max);margin:0 auto;padding:22px 24px 30px;border-top:1px solid var(--line-soft);color:var(--muted);text-align:center}

@media (max-width: 1024px){
  .site-header,
  .hero-grid,.benefits-grid,.page-grid-2,.footer-inner,
  .grid-3,.cards-3{grid-template-columns:1fr}
  .hero h1{font-size:48px}
  .section-title{font-size:38px}
  .page-hero h1{font-size:44px}
}

@media (max-width: 900px){
  .site-header{flex-direction:column;align-items:flex-start}
  .site-header-tools{width:100%;justify-content:space-between}
}

@media (max-width: 767px){
  .site-header{padding:16px}
  .site-header-tools{align-items:flex-start;gap:14px}
  .header-actions{width:100%;justify-content:space-between}
  .site-navigation ul,
  .primary-menu{flex-wrap:wrap;gap:14px 18px}
  .container{padding:0 18px}
  .hero{padding:82px 0 56px}
  .hero h1{font-size:38px}
  .section{padding:72px 0}
  .section-title{font-size:32px}
  .page-hero{padding:72px 0 28px}
  .page-hero h1{font-size:34px}
  .panel,.card,.cta-box{padding:22px}
}

/* PAGE CONTENT FIX */
.entry-content{
  max-width:800px;
  margin:0 auto;
  font-size:18px;
  line-height:1.7;
}

.entry-content p{
  color:var(--muted);
  margin-bottom:18px;
}

.entry-content h2,
.entry-content h3{
  margin-top:30px;
  margin-bottom:12px;
  color:var(--text);
}

.entry-content ul,
.entry-content ol{
  padding-left:20px;
  margin-bottom:20px;
}

.entry-content li{
  margin-bottom:8px;
}

.entry-content a{
  color:var(--accent);
}

.entry-content strong{
  color:var(--text);
}

.content-box{
  background:var(--card-soft);
  padding:40px;
  border-radius:20px;
  border:1px solid var(--line);
}

/* ARTICLES */
.articles-head{
  margin-bottom:30px;
}

.articles-scroller-wrap{
  position:relative;
}

.articles-scroller{
  display:flex;
  gap:20px;
  overflow-x:auto;
  padding-bottom:10px;
  scroll-snap-type:x mandatory;
}

.article-card{
  min-width:280px;
  text-decoration:none;
}

.article-card-image{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:14px;
  margin-bottom:18px;
  border:1px solid var(--line-soft);
}

.article-card-image-fallback{
  background:linear-gradient(135deg, rgba(59,130,246,.25), rgba(37,99,235,.08));
}

.article-card h3{
  font-size:22px;
}

.article-card p{
  color:var(--muted);
}

.articles-scroller::-webkit-scrollbar{
  height:6px;
}

.articles-scroller::-webkit-scrollbar-track{
  background:transparent;
}

.articles-scroller::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,.32);
  border-radius:10px;
}

.articles-scroller-wrap:after{
  content:"";
  position:absolute;
  right:0;
  top:0;
  width:60px;
  height:100%;
  background:linear-gradient(to left, var(--bg), transparent);
  pointer-events:none;
}


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

.language-picker-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.language-picker{
  min-width:170px;
  height:48px;
  padding:0 42px 0 14px;
  border-radius:14px;
  border:1px solid var(--switcher-border);
  background:var(--switcher-bg);
  color:var(--text);
  font-size:14px;
  font-weight:600;
  outline:none;
  cursor:pointer;
  box-shadow:var(--shadow);
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  transition:.25s ease;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 12px) 20px;
  background-size:6px 6px,6px 6px;
  background-repeat:no-repeat;
}

.language-picker:hover,
.language-picker:focus{
  background-color:var(--switcher-hover);
  border-color:var(--accent);
}

.language-picker option{
  color:#0f172a;
}

@media (max-width: 767px){
  .language-picker{
    min-width:150px;
    max-width:100%;
  }
}


/* Article cards height and spacing fix */
.articles-scroller{
  align-items:stretch;
}

.article-card{
  flex:0 0 280px;
  display:flex;
  flex-direction:column;
  align-self:stretch;
  min-height:520px;
}

.article-card h3{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.5em;
}

.article-card p{
  display:-webkit-box;
  -webkit-line-clamp:6;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.55;
  min-height:9.3em;
}

.articles-footer-row{
  margin-top:28px;
}

.articles-scroller-wrap{
  margin-bottom:10px;
}


/* Articles section visual cleanup */
.articles-scroller-wrap:after{
  display:none;
}

.articles-scroller{
  padding-right:20px;
  scroll-padding-right:20px;
}

.article-card{
  scroll-snap-align:start;
}

.articles-section .section-head{
  margin-bottom:34px;
}


/* Front page articles: clean desktop layout without cut-off */
@media (min-width: 1100px){
  .articles-scroller-wrap{
    overflow:visible;
    margin-bottom:0;
  }

  .articles-scroller{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px;
    overflow:visible;
    padding-right:0;
    padding-bottom:0;
    scroll-snap-type:none;
  }

  .article-card{
    flex:none;
    min-width:0;
    width:100%;
    min-height:520px;
  }

  .articles-scroller::-webkit-scrollbar{
    display:none;
  }

  .articles-footer-row{
    margin-top:32px;
  }
}


/* Brand logo refresh */
.site-brand{
  gap:14px;
}

.brand-mark{
  width:48px;
  height:48px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  box-shadow:none;
}

.brand-mark-svg{
  width:48px;
  height:48px;
  display:block;
  flex-shrink:0;
}

.brand-title{
  font-size:17px;
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.1;
}

.brand-subtitle{
  font-size:12px;
  color:var(--muted);
  line-height:1.25;
}

html[data-theme="light"] .brand-subtitle{
  color:#475569;
}
