/* ============================================================
   CDMW ISOLATED SHELL — header / nav / footer / chat fab
   1:1 from cdm.html lines 14-322 and 2413-2575, plus dropdown
   menu styles for the cdmoworld.com mega-nav.
   This file is loaded ONLY by the "CDMW Isolated Page"
   template (page-cdmw-isolated.php). blocks.css already
   contains the section styles. Together they produce a
   theme-free render of cdm.html.
   ============================================================ */

   :root {
	--background:        210 20% 98%;
	--foreground:        230 44% 16%;
	--primary:           230 44% 16%;
	--secondary:         199 92% 56%;
	--hero-bg:           199 92% 35%;
	--muted:             210 20% 96%;
	--muted-foreground:  220 9% 46%;
	--border:            220 13% 91%;
	--slate-300:         215 20% 81%;
	--slate-600:         215 19% 35%;
	--slate-700:         215 25% 27%;
	--slate-900:         222 47% 11%;
	--orange-500:        24 95% 53%;
	--orange-600:        21 90% 48%;
	--lavender:          250 95% 85%;
	--radius:            0.375rem;
	--shadow-subtle:     0 1px 3px 0 rgb(0 0 0 / .05);
	--shadow-card:       0 4px 6px -1px rgb(0 0 0 / .05), 0 2px 4px -2px rgb(0 0 0 / .05);
	--shadow-elevated:   0 10px 15px -3px rgb(0 0 0 / .08), 0 4px 6px -4px rgb(0 0 0 / .05);
	--shadow-xl:         0 20px 25px -5px rgb(0 0 0 / .10), 0 10px 10px -5px rgb(0 0 0 / .04);
	--font-sans:         'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset (scoped to the shell so it can't escape) ---------- */
body.cdmw-shell,
body.cdmw-shell *,
body.cdmw-shell *::before,
body.cdmw-shell *::after {
	box-sizing: border-box;
	/* border: 0 solid #e5e7eb; */
}
html { line-height: 1.5; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body.cdmw-shell {
	margin: 0;
	padding: 0;
	font-family: var(--font-sans);
	color: hsl(var(--foreground));
	background: hsl(var(--background));
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.cdmw-shell a { text-decoration: none; color: inherit; }
body.cdmw-shell img { display: block; }
/* body.cdmw-shell button { font: inherit; cursor: pointer; background: transparent; } */
body.cdmw-shell h1,
body.cdmw-shell h2,
body.cdmw-shell h3,
body.cdmw-shell h4,
body.cdmw-shell h5,
body.cdmw-shell h6,
body.cdmw-shell p { margin: 0; }

/* WordPress admin bar offset (it stays at the top above our chrome) */
body.cdmw-shell.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
	body.cdmw-shell.admin-bar .header { top: 46px; }
}

/* Accessibility helper */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden;
}

/* ---------- Section container ---------- */
.section-container {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1rem;
	width: 100%;
}
@media (min-width: 640px) { .section-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .section-container { padding: 0 2rem; } }

/* =========================================================== */
/*  TOP UTILITY BAR                                             */
/* =========================================================== */
.top-bar {
	background-image: linear-gradient(to right, #334155 0%, #334155 50%, #0f172a 100%);
	color: #fff;
}
.top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 9px;
}
@media (min-width: 768px) { .top-bar-inner { font-size: 10px; } }

.top-nav { display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) { .top-nav { gap: 16px; } }
.top-nav a { color: #fff; font-weight: 500; transition: color .2s ease; }
.top-nav a:hover { color: #cbd5e1; }
.top-sep { color: rgba(255,255,255,.3); }

.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }
.hide-md { display: none; }
@media (min-width: 768px) { .hide-md { display: inline; } }

.top-actions { display: flex; align-items: center; gap: 12px; }
.top-actions a { display: flex; align-items: center; gap: 6px; color: #fff; transition: color .2s ease; }
.top-actions a:hover { color: #cbd5e1; }
.top-actions svg {
	width: 12px; height: 12px;
	stroke: currentColor; fill: none;
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
	flex-shrink: 0;
}
.top-actions span { font-weight: 500; }

/* =========================================================== */
/*  MAIN HEADER                                                 */
/* =========================================================== */
.header {
	background: #fff;
	color: hsl(var(--foreground));
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: var(--shadow-subtle);
	border-bottom: 1px solid hsl(var(--border));
}
.header > .section-container { position: relative; z-index: 20; }
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
}

.logo { flex-shrink: 0; display: inline-flex; }
.logo img { height: 40px; width: auto; }
@media (min-width: 768px) { .logo img { height: 48px; } }

.primary-nav {
	display: none;
	align-items: center;
	gap: 4px;
	flex: 1;
	justify-content: center;
}
@media (min-width: 901px) { .primary-nav { display: flex; } }

.primary-nav .nav-item { position: relative; }
.primary-nav .nav-link,
.primary-nav > a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	color: hsl(var(--foreground));
	transition: color .2s ease;
	cursor: pointer;
}
.primary-nav .nav-link:hover,
.primary-nav > a:hover { color: hsl(var(--secondary)); }
.primary-nav svg {
	width: 12px; height: 12px;
	stroke: currentColor; fill: none;
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
	flex-shrink: 0;
	transition: transform .2s ease;
}
.primary-nav .nav-item:hover .nav-link svg,
.primary-nav .nav-item.is-open .nav-link svg { transform: rotate(180deg); }

/* ---------- Mega dropdown panels ---------- */
.nav-mega {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 480px;
	background: #fff;
	border: 1px solid hsl(var(--border));
	border-radius: 10px;
	box-shadow: var(--shadow-elevated);
	padding: 24px;
	display: none;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	z-index: 100;
}
.nav-mega--wide { grid-template-columns: 1fr 1fr 1fr; min-width: 680px; }
.primary-nav .nav-item:hover .nav-mega,
.primary-nav .nav-item:focus-within .nav-mega,
.primary-nav .nav-item.is-open .nav-mega { display: grid; }

.nav-mega__intro { display: flex; flex-direction: column; gap: 8px; }
.nav-mega__eyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: hsl(var(--secondary));
}
.nav-mega__copy {
	font-size: 13px;
	color: hsl(var(--muted-foreground));
	line-height: 1.5;
}
.nav-mega__cta {
	font-size: 13px;
	font-weight: 600;
	color: hsl(var(--foreground));
	margin-top: 4px;
}
.nav-mega__cta:hover { color: hsl(var(--secondary)); }

.nav-mega__group-title {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: hsl(var(--muted-foreground));
	margin-bottom: 8px;
}

.nav-mega__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.nav-mega__list--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 24px;
}
.nav-mega__list a {
	font-size: 14px;
	color: hsl(var(--foreground));
	padding: 4px 0;
	display: inline-block;
	transition: color .2s ease;
}
.nav-mega__list a:hover { color: hsl(var(--secondary)); }

/* ---------- Header right-side actions ---------- */
.header-actions { display: none; align-items: center; gap: 16px; }
@media (min-width: 768px) { .header-actions { display: flex; } }

.btn-create {
	flex-shrink: 0;
	background: #f97316;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 9999px;
	transition: background .2s ease;
	white-space: nowrap;
	line-height: 1.5;
	display: inline-flex;
	align-items: center;
}
.btn-create:hover { background: #ea580c; }

.search { position: relative; display: flex; align-items: center; }
.search input {
	height: 40px;
	width: 224px;
	padding: 8px 12px 8px 40px;
	font-size: 16px;
	background: hsl(var(--muted));
	border: 0;
	border-radius: 6px;
	color: hsl(var(--foreground));
	outline: none;
	font-family: inherit;
	transition: box-shadow .2s ease;
}
@media (min-width: 768px) { .search input { font-size: 14px; } }
@media (min-width: 1024px) { .search input { width: 288px; } }
.search input::placeholder { color: hsl(var(--muted-foreground)); }
.search input:focus { box-shadow: 0 0 0 2px hsl(var(--secondary)); }
.search-icon {
	position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
	width: 16px; height: 16px;
	color: hsl(var(--muted-foreground));
	pointer-events: none;
	display: flex;
}
.search-icon svg {
	width: 100%; height: 100%;
	stroke: currentColor; fill: none;
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Mobile-only icon buttons */
.mobile-actions { display: flex; align-items: center; gap: 12px; }
@media (min-width: 901px) { .mobile-actions { display: none; } }
.icon-btn {
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 6px;
	color: hsl(var(--foreground));
	transition: background .2s ease, color .2s ease;
	background: transparent;
	border: 0; cursor: pointer;
}
.icon-btn:hover { background: hsl(var(--secondary) / .1); color: hsl(var(--secondary)); }
.icon-btn svg {
	width: 20px; height: 20px;
	stroke: currentColor; fill: none;
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Mobile primary-nav drawer ---------- */
@media (max-width: 900px) {
	.primary-nav.is-mobile-open {
		display: flex !important;
		position: fixed;
		top: 64px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: #fff;
		padding: 16px;
		gap: 4px;
		box-shadow: var(--shadow-elevated);
		z-index: 60;
		max-height: calc(100vh - 64px);
		overflow-y: auto;
	}
	.primary-nav.is-mobile-open .nav-mega {
		position: static;
		min-width: 0;
		box-shadow: none;
		border: 0;
		padding: 8px 0 16px 16px;
		grid-template-columns: 1fr;
	}
	.primary-nav.is-mobile-open .nav-mega--wide { grid-template-columns: 1fr; min-width: 0; }
	.primary-nav.is-mobile-open .nav-mega__list--two { grid-template-columns: 1fr; }
}

/* =========================================================== */
/*  MAIN CONTENT WRAPPER                                        */
/* =========================================================== */
.cdmw-main { display: block; }

/* =========================================================== */
/*  FOOTER                                                      */
/* =========================================================== */
.site-footer { background: #000; color: #fff; }
.site-footer > .section-container {
	padding-top: 4rem;
	padding-bottom: 4rem;
}
.footer-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 40px;
}
@media (min-width: 768px) {
	.footer-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 32px; }
}
.footer-col__title {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin: 0 0 24px !important;
	color: #38bdf8;
}
.footer-col__list { list-style: none; margin: 0; padding: 0; }
.footer-col__list > li + li { margin-top: 12px; }
.footer-col__list a {
	font-size: 14px;
	color: #fff;
	opacity: .8;
	transition: opacity .2s ease;
}
.footer-col__list a:hover { opacity: 1; }
.footer-col__hiring {
	margin: 16px 0 0;
	font-size: 12px;
	color: #38bdf8;
	font-weight: 500;
}
.footer-bottom {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid #1e293b;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom__logo {
	height: 32px; width: auto;
	/* filter: brightness(0) invert(1); */
	 mix-blend-mode: multiply;
}
.footer-bottom__copy {
	font-size: 14px;
	color: #fff;
	opacity: .6;
	margin: 0;
}

/* Our Partners strip */
.partners { background: #020617; padding: 24px 0; }
.partners__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}
.partners__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #64748b;
}
.partners__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 24px;
}
.partners__card {
	background: rgba(30,41,59,.5);
	border: 1px solid #334155;
	border-radius: 8px;
	padding: 16px 32px;
	min-width: 160px;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: background .2s ease;
	text-decoration: none;
}
.partners__card:hover { background: rgba(51,65,85,.5); }
.partners__card-text {
	font-family: var(--font-sans);
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	letter-spacing: .025em;
}

/* =========================================================== */
/*  FLOATING CHAT BUTTON                                        */
/* =========================================================== */
.chat-fab {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 50;
	width: 56px; height: 56px;
	padding: 1rem;
	border-radius: 9999px;
	background: #0ea5e9;
	color: #fff;
	border: 0;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-elevated);
	transition: transform .15s cubic-bezier(.4,0,.2,1);
}
.chat-fab:hover { transform: scale(1.05); }
.chat-fab svg {
	width: 24px; height: 24px;
	stroke: currentColor; fill: none;
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}


h1.slide-title {
    font-size: 28px !important;
}
	
body.has-cdmw-blocks .hero .slide-title {
font-size: 24px !important;
}

h3.cdmw-hero-card-title {
    font-size: 16px !important;
    letter-spacing: 0px;
}

main.cdmw-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cdmw-hero-arrow {
  position: absolute;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

details.wp-block-details.is-layout-flow.wp-block-details-is-layout-flow {
    display: none;
}

h1.slide-title {
    font-size: 28px !important;
}
	
body.has-cdmw-blocks .hero .slide-title {
font-size: 28px !important;
}

h3.cdmw-hero-card-title {
    font-size: 16px !important;
    letter-spacing: 0px;
}

main.cdmw-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cdmw-hero-arrow {
  position: absolute;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.slider-arrow.prev,
.slider-arrow.next {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

h3.capsule-signup__title {
    color: white;
}

/* Container for the text above the cards */
.studios__head {
  margin-bottom: 3rem;
}

/* Blue sub-label (e.g., "CDMOWORLD STUDIOS") */
.studios__head .label {
  color: #38bdf8;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

/* Main white title */
.studios__head h2 {
  color: hsl(230 44% 16%);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Muted description text */
.studios__head p {
  color: hsl(215 19% 35%);
  font-size: 1.125rem;
  max-width: 800px;
  line-height: 1.6;
}

/* Grid layout with 3 equal columns */
.studios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .studios__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Base Card Styling */
.studio-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Card Media (Image area) */
.studio-card__media {
  height: 240px;
  position: relative;
  display: block;
  overflow: hidden;
}

/* Card Body Content */
.studio-card__body {
  padding: 1.5rem;
  background-color: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Card Category (Blue text) */
.studio-card__category {
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Card Title (Dark navy) */
.studio-card__title {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Card Description (Slate grey) */
.studio-card__description {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Match heading and paragraph colors in the first two cards */
.studio-card.studio-card--featured h3,
.studio-card:not(.studio-card--bright) h3 {
  color: rgb(23, 29, 59) !important;
}

.studio-card.studio-card--featured p,
.studio-card:not(.studio-card--bright) p {
  color: rgb(72, 86, 106) !important;
}

/* Make "Sign Up for Alerts" and "View Reports" button text white */
.studio-btn.studio-btn--blue,
.studio-btn.studio-btn--orange {
  color: #ffffff !important;
}

/* Container adjustments */
#leadSlider, .slides-stage {
    height: auto !important; /* Allow dynamic height based on content */
}

.slide {
    position: relative;
    overflow: hidden;
}

.slide-content {
    display: block;
    padding-top: 60px; /* Increased top spacing */
    box-sizing: border-box;
}

/* Background image coverage */
.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

a.read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #60A5FA; /* Bright Blue */
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 24px; /* Space above button */
    text-decoration: none;
    width: fit-content;
}

/* Arrow inside button */
a.read-btn svg {
    stroke: #60A5FA;
    width: 18px;
    height: 18px;
}

.slider-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px); /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px; /* Circle */
    color: #ffffff;
    z-index: 5;
    transition: all 0.3s ease;
}

.slider-arrow.prev {
    left: 16px; /* Further to the edges */
}

.slider-arrow.next {
    right: 16px; /* Further to the edges */
}

a.read-btn {
    color: #00adee !important;
}

h3.event-live__title {
    color: white !important;
}

.summer-btn {
    background-color: #f3d646 !important; /* Yellow background */
    color: #1a0540 !important;            /* Dark purple text */
    padding: 8px 16px !important;        /* Balanced padding */
    border-radius: 8px !important;       /* Rounded corners */
    font-weight: 700 !important;          /* Bold text */
    font-size: 14px !important;           /* Clear font size */
    display: flex !important;             /* For icon alignment */
    align-items: center !important;      /* Center text and icon vertically */
    gap: 8px !important;                 /* Space between icon and text */
    text-decoration: none !important;    /* Remove underline if it's a link */
    border: none !important;             /* Remove default borders */
    transition: opacity 0.2s ease !important; /* Subtle hover effect transition */
}

/* Optional: Hover state for better UX */
.summer-btn:hover {
    opacity: 0.9 !important;
}

/* Specific icon sizing within the buttons */
.summer-btn svg {
    width: 18px !important;
    height: 18px !important;
}

/* Container - Center everything */
aside.capsule-signup {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
    padding: 20px !important;
    background-color: #171d3b !important;
    border-radius: 8px !important;
}

/* Titles and Text - Centered */
.capsule-signup__title, 
.capsule-signup__dek {
  color: #fff !important;
}

/* Form Layout - Ensure fields stack and take full width */
.tnp-subscription form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}

/* Email Input - Rounded and Clean */
.tnp-email {
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  border: none !important;
  background-color: #ffffff !important;
  color: #333 !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
}

/* Submit Button - Light Blue and Rounded */
.tnp-submit {
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  border: none !important;
  background-color: #53b1f1 !important; /* Target blue color */
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.tnp-submit:hover {
  background-color: #42a0e0 !important;
}

/* Secondary Link - Light Blue and Centered */
.capsule-signup__alt {
  display: block !important;
  /* margin-top: 20px !important; */
  color: #53b1f1 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  text-align: center !important;
}

.capsule-signup__alt:hover {
  text-decoration: underline !important;
}


/* <><><><><><><><><><><><><><>????????????????/////// */
a.expert-feature.smt-\[01\] {
    margin-top: 30px;
}
/* <><><><><><><><><><><><><><>????????????????/////// */
