/* ==========================================================================
   Cyber Castellum brand components (site-wide enhancements)
   Brand: Primary #3A9FBA · Secondary #2E3192 · Background #05172C
          Extra #3ABCA6 / #8AD5E9
   Fonts: Schwager Sans (titles) · Calibri (copy) — with web-safe fallbacks
   ========================================================================== */

.ccx, #states-section, .cc-about-certs {
	--cc-primary: #3A9FBA;
	--cc-secondary: #2E3192;
	--cc-bg: #05172C;
	--cc-extra: #3ABCA6;
	--cc-extra-2: #8AD5E9;
	--cc-ink: #05172C;
	--cc-text: #4a5568;
	--cc-muted: #6b7686;
	--cc-line: #e3e8ef;
	--cc-tint: #f3f8fb;
	--cc-grad: linear-gradient(135deg, #8AD5E9 0%, #3A9FBA 45%, #2E3192 100%);
	--cc-shadow: 0 24px 48px -28px rgba(5, 23, 44, .38);
	--cc-ease: cubic-bezier(.22, 1, .36, 1);
	--cc-head: 'Schwager Sans', 'Yantramanav', 'DM Sans', sans-serif;
	--cc-body: Calibri, Carlito, 'DM Sans', sans-serif;
}

.ccx { font-family: var(--cc-body); color: var(--cc-text); font-size: 17px; line-height: 1.6; }
.ccx *, .ccx *::before, .ccx *::after { box-sizing: border-box; }
.ccx h2, .ccx h3, .ccx strong { font-family: var(--cc-head); }
.ccx p { margin: 0; }
.ccx ul { list-style: none; margin: 0; padding: 0; }
.ccx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ccx-grad { background: var(--cc-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ccx .ccx-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.ccx .ccx-head h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; font-weight: 700; color: var(--cc-ink); margin: 0 0 14px; }
.ccx .ccx-head p:not(.ccx-kicker) { font-size: 18px; color: var(--cc-muted); }
.ccx .ccx-kicker {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
	font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cc-primary);
}
.ccx .ccx-kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--cc-grad); }

/* ==========================================================================
   CERTIFICATIONS SHOWCASE
   ========================================================================== */
.ccx-certs {
	position: relative;
	padding: 100px 0;
	background:
		radial-gradient(700px 360px at 100% 0%, rgba(138,213,233,.18), transparent 70%),
		radial-gradient(600px 360px at 0% 100%, rgba(46,49,146,.08), transparent 70%),
		var(--cc-tint);
	overflow: hidden;
}
.ccx-certs__layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.6fr); gap: 56px; align-items: center; }

/* Donut */
.ccx-donut { margin: 0; display: grid; justify-items: center; gap: 26px; position: sticky; top: 120px; }
.ccx-donut__chart { position: relative; width: min(320px, 100%); aspect-ratio: 1; }
.ccx-donut__svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ccx-donut__track { fill: none; stroke: #dde6ef; stroke-width: 14; }
.ccx-donut__seg {
	fill: none; stroke: var(--c); stroke-width: 14;
	stroke-dasharray: var(--len) 100; stroke-dashoffset: var(--off);
	transition: stroke-dasharray 1.4s var(--cc-ease) var(--d), stroke-width .3s;
}
.ccx-donut__seg:hover { stroke-width: 18; }
.ccx-js .ccx-donut:not(.is-in) .ccx-donut__seg { stroke-dasharray: 0 100; }
.ccx-donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.ccx-donut__center strong { font-size: clamp(56px, 7vw, 84px); line-height: 1; background: var(--cc-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ccx-donut__center span { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cc-muted); }
.ccx-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.ccx-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--cc-ink); }
.ccx-legend i { width: 11px; height: 11px; border-radius: 3px; }
.ccx-legend b { color: var(--cc-muted); font-weight: 600; }

/* Hexagon badges */
.ccx .ccx-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ccx-badge {
	position: relative; overflow: hidden;
	display: grid; justify-items: center; align-content: start; text-align: center; gap: 2px;
	padding: 26px 16px 18px;
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: 20px;
	outline: none;
	transition: transform .45s var(--cc-ease), box-shadow .45s var(--cc-ease), border-color .45s;
}
.ccx-badge::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); transform: scaleX(0); transition: transform .5s var(--cc-ease); }
.ccx-badge:hover, .ccx-badge:focus-visible { transform: translateY(-8px); box-shadow: var(--cc-shadow); border-color: transparent; }
.ccx-badge:hover::after, .ccx-badge:focus-visible::after { transform: scaleX(1); }
.ccx-badge__hex { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 10px; }
.ccx-badge__hex svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .7s var(--cc-ease); }
.ccx-badge__hex path { fill: var(--c); fill-opacity: .12; stroke: var(--c); stroke-width: 3; transition: fill-opacity .45s; }
.ccx-badge:hover .ccx-badge__hex svg { transform: rotate(60deg); }
.ccx-badge:hover .ccx-badge__hex path { fill-opacity: 1; }
.ccx-badge__hex b { position: relative; font-family: var(--cc-head); font-size: 15px; font-weight: 700; color: var(--cc-ink); transition: color .45s; }
.ccx-badge:hover .ccx-badge__hex b { color: #fff; }
.ccx-badge__scope { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-primary); }
.ccx-badge strong { font-size: 19px; line-height: 1.2; color: var(--cc-ink); }
.ccx-badge__issuer { font-size: 14px; line-height: 1.35; color: var(--cc-muted); min-height: 2.7em; }
.ccx-badge__logo { display: grid; place-items: center; width: 100%; height: 54px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--cc-line); }
.ccx-badge__logo img { max-width: 78%; max-height: 42px; width: auto; height: auto; object-fit: contain; opacity: .92; transition: opacity .4s, transform .4s var(--cc-ease); }
.ccx-badge:hover .ccx-badge__logo img { opacity: 1; transform: scale(1.06); }

/* Logo strip */
.ccx-logos {
	margin-top: 64px; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ccx-logos__track { display: flex; width: max-content; gap: 18px; animation: ccx-marquee 40s linear infinite; }
.ccx-logos:hover .ccx-logos__track { animation-play-state: paused; }
.ccx-logos span { display: grid; place-items: center; width: 170px; height: 92px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--cc-line); }
.ccx-logos img { max-width: 100%; max-height: 62px; width: auto; height: auto; object-fit: contain; }

/* ==========================================================================
   HOME PAGE STATS (#states-section .hero-company-box)
   ========================================================================== */
#states-section .hero-company-boxes {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}
#states-section .hero-company-box {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
	width: auto !important; max-width: none !important; margin: 0 !important;
	padding: 30px 26px 28px !important;
	text-align: left;
	border-radius: 22px !important;
	background: #fff !important;
	border: 1px solid var(--cc-line);
	box-shadow: 0 18px 40px -30px rgba(5,23,44,.45) !important;
	transition: transform .45s var(--cc-ease), box-shadow .45s var(--cc-ease), border-color .45s;
}
#states-section .hero-company-box::before {
	content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
	background: var(--cc-grad); transform: scaleX(.22); transform-origin: left;
	transition: transform .6s var(--cc-ease);
}
#states-section .hero-company-box::after {
	content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; z-index: -1;
	border-radius: 50%; background: radial-gradient(circle, rgba(138,213,233,.25), transparent 70%);
	transition: transform .6s var(--cc-ease);
}
#states-section .hero-company-box:hover { transform: translateY(-8px); box-shadow: var(--cc-shadow) !important; border-color: transparent; }
#states-section .hero-company-box:hover::before { transform: scaleX(1); }
#states-section .hero-company-box:hover::after { transform: scale(1.4); }
#states-section .cc-stat-icon {
	display: grid; place-items: center;
	width: 52px; height: 52px; margin-bottom: 20px;
	border-radius: 15px;
	background: var(--cc-grad); color: #fff;
	box-shadow: 0 12px 24px -12px rgba(58,159,186,.9);
	transition: transform .5s var(--cc-ease);
}
#states-section .cc-stat-icon svg { width: 26px; height: 26px; }
#states-section .hero-company-box:hover .cc-stat-icon { transform: rotate(-8deg) scale(1.06); }
#states-section .hero-company-box h2 {
	margin: 0 0 8px !important;
	font-family: var(--cc-head) !important;
	font-size: clamp(36px, 3.6vw, 52px) !important; line-height: 1 !important; font-weight: 700 !important;
	background: var(--cc-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important;
	font-variant-numeric: tabular-nums;
}
#states-section .hero-company-box h4 {
	margin: 0 !important;
	font-family: var(--cc-body) !important;
	font-size: 17px !important; line-height: 1.4 !important; font-weight: 700 !important;
	color: var(--cc-ink) !important;
}
#states-section .hero-company-box p:empty { display: none; }
.cc-stats-js #states-section .hero-company-box:not(.is-in) { opacity: 0; transform: translateY(28px); }
#states-section .hero-company-box.is-in { transition: opacity .8s var(--cc-ease), transform .8s var(--cc-ease), box-shadow .45s, border-color .45s; }

/* ==========================================================================
   ABOUT PAGE — certification logos link to the MBE page
   ========================================================================== */
.cc-about-certs a.cc-cert-link { display: block; cursor: pointer; transition: transform .35s var(--cc-ease), filter .35s; }
.cc-about-certs a.cc-cert-link:hover { transform: translateY(-4px); filter: drop-shadow(0 10px 16px rgba(5,23,44,.18)); }
.cc-about-certs a.cc-cert-link:focus-visible { outline: 2px solid #3A9FBA; outline-offset: 4px; }
.cc-about-certs .cc-cert-more { text-align: center; margin-top: 18px; }
.cc-about-certs .cc-cert-more a {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 24px; border-radius: 999px;
	background: linear-gradient(135deg, #8AD5E9, #3A9FBA 45%, #2E3192); color: #fff !important;
	font-weight: 700; text-decoration: none !important;
	box-shadow: 0 14px 30px -14px rgba(58,159,186,.9);
	transition: transform .3s var(--cc-ease);
}
.cc-about-certs .cc-cert-more a:hover { transform: translateY(-3px); }

/* ==========================================================================
   Reveal + motion
   ========================================================================== */
.ccx-js .ccx-reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--cc-ease), transform .9s var(--cc-ease); }
.ccx-js .ccx-reveal.is-in { opacity: 1; transform: none; }
@keyframes ccx-marquee { to { transform: translateX(calc(-50% - 9px)); } }
@media (prefers-reduced-motion: reduce) {
	.ccx *, .ccx *::before, .ccx *::after, #states-section * { animation: none !important; transition: none !important; }
	.ccx-js .ccx-reveal, .cc-stats-js #states-section .hero-company-box { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.ccx-certs__layout { grid-template-columns: 1fr; }
	.ccx-donut { position: static; }
	#states-section .hero-company-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ccx { font-size: 16px; }
	.ccx-wrap { padding: 0 16px; }
	.ccx-certs { padding: 64px 0; }
	.ccx .ccx-head { margin-bottom: 36px; }
	.ccx .ccx-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ccx-badge { padding: 20px 10px 14px; }
	.ccx-badge strong { font-size: 17px; }
	.ccx-badge__issuer { font-size: 13px; }
	.ccx-badge:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.ccx-logos { margin-top: 44px; }
	.ccx-logos span { width: 130px; height: 74px; }
	#states-section .hero-company-boxes { gap: 12px; }
	#states-section .hero-company-box { padding: 22px 16px 20px !important; }
	#states-section .cc-stat-icon { width: 44px; height: 44px; margin-bottom: 14px; }
	#states-section .hero-company-box h4 { font-size: 15px !important; }
}
@media (max-width: 400px) {
	#states-section .hero-company-boxes { grid-template-columns: 1fr; }
}

/* About: the certifications container is a flex row — put the button on its own line below */
.cc-about-certs { flex-wrap: wrap !important; }
.cc-about-certs > .cc-cert-more { flex: 0 0 100%; width: 100%; margin: 0; padding: 4px 16px 48px; }
.cc-about-certs a.cc-cert-heading { text-decoration: none !important; color: inherit; }
.cc-about-certs a.cc-cert-heading:hover { transform: none; filter: none; opacity: .85; }
/* Keep the carousel's own logo sizing (max-height: 100%) working inside the link */
.cc-about-certs .swiper-slide-inner > a.cc-cert-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.cc-about-certs .swiper-slide-inner > a.cc-cert-link:hover { transform: none; filter: none; }
