/*
Theme Name: GeneratePress Child
Theme URI: https://intrafere.com
Description: Custom child theme for Intrafere Research Group
Author: Intrafere Research Group
Author URI: https://intrafere.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* ========================================
   SITE-WIDE LAYOUT OVERRIDES
   ======================================== */

/* Header Logo and Navigation Spacing - Let container handle positioning */
.site-logo,
.site-branding {
	margin-left: 0 !important; /* No extra margin - container handles positioning */
}

.main-navigation {
	margin-left: 20px !important; /* Small spacing between logo and nav */
}

/* Ensure navigation doesn't touch logo */
.inside-header {
	gap: 0;
}

/* Social Media Sidebar - Collapsible tab in left margin */
.header-social-links {
	position: fixed;
	top: 12.5rem; /* 200px - scales with zoom */
	left: 1.25rem; /* 20px - scales with zoom */
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 0.6875rem; /* 11px */
	background: rgba(74, 111, 165, 0.58); /* less transparent - more visible */
	border: 1px solid rgba(74, 111, 165, 0.5);
	border-radius: 1.3125rem; /* ~21px - scaled up 20% */
	padding: 0.9375rem 0.625rem; /* scaled up ~20% vertical, keep horizontal */
	box-shadow: 0 0.5rem 1.5625rem rgba(45, 65, 86, 0.3);
	width: 4.6875rem; /* 75px - scaled up 20% from 62.5px */
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	align-items: center;
	justify-content: center;
}

.header-social-links.expanded {
	width: 13.75rem; /* 220px - expanded width */
	padding: 1.3125rem 1.0625rem; /* 21px 17px - expanded padding */
	cursor: default;
	align-items: stretch;
	justify-content: flex-start;
}

.header-social-links .social-title {
	font-size: 0.825rem; /* ~13.2px - scaled up 20% from 11px */
	font-weight: 700;
	letter-spacing: 0.03125rem; /* 0.5px - tighter spacing */
	color: #1eff1c;
	text-transform: uppercase;
	text-align: center; /* center in collapsed pill */
	margin: 0;
	position: relative;
	padding-right: 0;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	transition: all 0.3s ease;
}

/* Show short text when collapsed, hide full text */
.header-social-links .social-title .title-full {
	display: none;
}

.header-social-links .social-title .title-short {
	display: inline;
}

/* Expanded state - larger text as prominent header */
.header-social-links.expanded .social-title {
	font-size: 1.0625rem; /* 17px when expanded */
	letter-spacing: 0.0625rem; /* 1px */
	text-align: center; /* center the header */
	padding-right: 1.5rem; /* space for arrow */
	padding-bottom: 0.625rem; /* 10px */
	margin-bottom: 0.75rem; /* 12px */
	border-bottom: 2px solid rgba(45, 65, 86, 0.3); /* separator line under header */
}

/* Show full text when expanded, hide short text */
.header-social-links.expanded .social-title .title-full {
	display: inline;
}

.header-social-links.expanded .social-title .title-short {
	display: none;
}

.header-social-links .social-title::after {
	content: '▼';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.5rem; /* 8px - smaller for collapsed */
	transition: transform 0.3s ease;
	color: #4a6fa5;
	opacity: 0; /* hidden when collapsed */
}

.header-social-links.expanded .social-title::after {
	transform: translateY(-50%) rotate(180deg);
	font-size: 0.75rem; /* 12px when expanded */
	opacity: 1; /* visible when expanded */
}

.header-social-links .social-link {
	display: none; /* hidden when collapsed */
	align-items: center;
	gap: 0.4375rem; /* 7px */
	font-size: 1.0625rem; /* 17px */
	color: #4a6fa5;
	text-decoration: none;
	transition: all 0.3s ease;
	padding: 0.375rem 0.6875rem; /* 6px 11px */
	border-radius: 0.5625rem; /* 9px */
	font-weight: 600;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(74, 111, 165, 0.18);
	opacity: 0;
	transform: translateX(-10px);
}

.header-social-links.expanded .social-link {
	display: flex;
	opacity: 1;
	transform: translateX(0);
}

/* Stagger animation for smooth expansion */
.header-social-links.expanded .social-link:nth-child(2) { transition-delay: 0.05s; }
.header-social-links.expanded .social-link:nth-child(3) { transition-delay: 0.1s; }
.header-social-links.expanded .social-link:nth-child(4) { transition-delay: 0.15s; }
.header-social-links.expanded .social-link:nth-child(5) { transition-delay: 0.2s; }
.header-social-links.expanded .social-link:nth-child(6) { transition-delay: 0.25s; }

.header-social-links .social-link:hover {
	color: #2d4156;
	background: rgba(74, 111, 165, 0.12);
	transform: translateX(4px);
}

.header-social-links .social-icon {
	font-size: 1.25rem; /* 20px */
	font-weight: 700;
	display: inline-block;
	width: 1.375rem; /* 22px */
	text-align: center;
	color: #4a6fa5;
}

/* YouTube play button - matches site blue */
.header-social-links .social-link.youtube .social-icon {
	color: #4a6fa5;
	font-size: 1.125rem; /* 18px */
}

/* Hide social sidebar when viewport too narrow for left margin */
@media (max-width: 1200px) {
	.header-social-links {
		display: none;
	}
}

@media (max-width: 768px) {
	.site-logo,
	.site-branding {
		margin-left: 0 !important; /* No extra margin */
	}
	
	.main-navigation {
		margin-left: 15px !important; /* Small spacing between logo and nav */
	}
	
	/* Hide social links on mobile to save space */
	.header-social-links {
		display: none;
	}
}

/* Body background - soft blue-gray that complements the color scheme */
body {
	background: #e8ecf2 !important;
}

/* Make banner/header match body background */
.site-header,
.site-header .inside-header {
	background: #e8ecf2 !important;
}

/* Center the entire header content - responsive centering */
.site-header {
	text-align: center !important;
	overflow-x: hidden !important; /* Prevent horizontal scrollbar */
}

.inside-header {
	display: inline-flex !important;
	text-align: left !important;
	align-items: center !important;
	justify-content: center !important;
	max-width: 100% !important; /* Prevent overflow */
}

/* Responsive Header Centering - Auto-adjusts margin based on screen width */
/* Uses viewport width (vw) for fluid scaling: ~615px on 30" monitors, scales down for laptops */
/* Calibration: 24vw = 24% of screen width (600px at 2560px, 345px at 1440px) */
@media (min-width: 1024px) and (orientation: landscape) {
	.inside-header {
		margin-left: 24vw !important;
		margin-right: 0 !important;
	}
}

/* Portrait/vertical screens and narrow windows - true center, no offset */
@media (orientation: portrait), (max-width: 1023px) {
	.inside-header {
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* Remove white backgrounds from all containers */
.site-content,
main,
article,
.inside-article {
	background: transparent !important;
}

/* COMPREHENSIVE FIX: Remove all white backgrounds and borders from navigation */
.main-navigation,
.main-navigation *,
.main-navigation ul,
.main-navigation ul li,
.main-navigation .main-nav,
.main-navigation .main-nav ul,
.main-navigation .main-nav ul li,
.inside-navigation,
.menu-bar-items,
nav,
nav * {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	border-top: none !important;
	border-bottom: none !important;
	border-left: none !important;
	border-right: none !important;
	box-shadow: none !important;
	outline: none !important;
}

/* PROFESSIONAL TAB STYLING: Make navigation links look like actual tabs */
.main-navigation .main-nav ul li a,
.main-navigation ul li a {
	background: linear-gradient(135deg, #2d4156 0%, #3a5266 100%) !important;
	color: #ffffff !important;
	padding: 14px 24px !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	text-decoration: none !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 2px 8px rgba(45, 65, 86, 0.3) !important;
	border: 2px solid rgba(255, 255, 255, 0.2) !important;
	position: relative !important;
	top: 0.75rem !important; /* 12px - scales with zoom */
}

.main-navigation .main-nav ul li a:hover,
.main-navigation ul li a:hover {
	background: linear-gradient(135deg, #3a5266 0%, #4a6276 100%) !important;
	color: #ffffff !important;
	transform: translateY(-3px) !important;
	box-shadow: 0 4px 12px rgba(45, 65, 86, 0.5) !important;
}

.main-navigation .main-nav ul li a:active,
.main-navigation ul li a:active,
.main-navigation .main-nav ul li.current-menu-item a,
.main-navigation ul li.current-menu-item a {
	background: linear-gradient(135deg, #2d4156 0%, #3a5266 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(45, 65, 86, 0.4) !important;
}

/* DOWNLOAD MOTO TAB - Golden highlight styling */
.main-navigation .main-nav ul li.download-tab a,
.main-navigation ul li.download-tab a {
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
	color: #78350f !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4), 0 2px 8px rgba(217, 119, 6, 0.3) !important;
	border: 2px solid rgba(255, 255, 255, 0.4) !important;
	border-radius: 8px !important;
	position: relative !important;
	overflow: hidden !important;
}

.main-navigation .main-nav ul li.download-tab a::before,
.main-navigation ul li.download-tab a::before {
	content: '' !important;
	position: absolute !important;
	top: -50% !important;
	left: -50% !important;
	width: 200% !important;
	height: 200% !important;
	background: linear-gradient(
		45deg,
		transparent,
		rgba(255, 255, 255, 0.3),
		transparent
	) !important;
	transform: rotate(45deg) !important;
	animation: download-tab-shine 3s infinite !important;
	pointer-events: none !important;
	z-index: 1 !important;
}

@keyframes download-tab-shine {
	0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
	100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.main-navigation .main-nav ul li.download-tab a:hover,
.main-navigation ul li.download-tab a:hover {
	background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%) !important;
	color: #78350f !important;
	box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5), 0 4px 12px rgba(217, 119, 6, 0.4) !important;
	transform: translateY(-3px) scale(1.02) !important;
}

/* CRITICAL: Override GeneratePress narrow content width */
.entry-content {
	background: transparent !important;
	max-width: 100% !important;
	width: 100% !important;
}

.inside-article,
.site-main,
.content-area {
	max-width: 100% !important;
	width: 100% !important;
}

.grid-container {
	max-width: 95vw !important;
	width: 95vw !important;
}

/* ========================================
   HOMEPAGE STYLING
   ======================================== */

/* Professional research site layout - comfortable reading width */
.intrafere-homepage {
	max-width: 95%;
	width: 100%;
	margin: 0 auto;
	padding: 0 2.5%;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Hero Section - Darker, more in between primary and darkest */
.hero-section {
	background: linear-gradient(135deg, #2d4156 0%, #3a5266 100%);
	color: white;
	padding: 80px 60px;
	border-radius: 16px;
	margin-bottom: 60px;
	text-align: center;
	box-shadow: 0 10px 40px rgba(45, 65, 86, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-section h1 {
	font-size: 3em;
	margin-bottom: 20px;
	font-weight: 700;
	letter-spacing: -0.5px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-section p {
	font-size: 1.3em;
	line-height: 1.6;
	max-width: 800px;
	margin: 0 auto;
	opacity: 0.95;
}

.hero-section a {
	color: #5dd9ff !important;
	text-decoration: underline !important;
}

.hero-section a:hover {
	color: #7fe7ff !important;
}

/* Primary Content - Lightest (KEEP EXACT COLOR) */
.company-intro {
	background: linear-gradient(135deg, #4a6fa5 0%, #5a7fb5 100%);
	padding: 70px 60px;
	border-radius: 16px;
	margin-bottom: 60px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 10px 40px rgba(74, 111, 165, 0.25);
	position: relative;
	overflow: hidden;
}

.company-intro::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.company-intro h2 {
	color: #ffffff;
	font-size: 2.2em;
	margin-bottom: 30px;
	font-weight: 700;
	padding-bottom: 15px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.3);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.company-intro p {
	font-size: 1.15em;
	line-height: 1.9;
	color: #e8f0ff;
	margin-bottom: 25px;
}

.company-intro p:last-child {
	margin-bottom: 0;
}

.company-intro a {
	color: #5dd9ff !important;
	text-decoration: underline !important;
}

.company-intro a:hover {
	color: #7fe7ff !important;
}

/* Secondary Content - Darkest with grey-cyan-green tones towards primary */
.moto-section,
.research-preview {
	background: linear-gradient(135deg, #273947 0%, #344856 100%);
	padding: 80px 60px;
	border-radius: 16px;
	margin-bottom: 60px;
	box-shadow: 0 12px 48px rgba(39, 57, 71, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	overflow: hidden;
}

.moto-section::before,
.research-preview::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(90, 127, 181, 0.12) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.moto-section h2,
.research-preview h2 {
	color: #ffffff;
	font-size: 2.5em;
	margin-bottom: 25px;
	font-weight: 700;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.moto-section h3,
.research-preview h3 {
	color: #7fb5c8;
	font-size: 1.7em;
	margin-top: 40px;
	margin-bottom: 20px;
	font-weight: 600;
}

.research-preview h3 {
	font-size: 1.5em;
	margin-top: 30px;
	margin-bottom: 15px;
}

.moto-section > p,
.research-preview p {
	font-size: 1.15em;
	line-height: 1.9;
	color: #d8e5ed;
	margin-bottom: 25px;
}

.moto-section strong {
	color: #a5c9d9;
}

.moto-section a,
.research-preview a {
	color: #5dd9ff !important;
	text-decoration: underline !important;
}

.moto-section a:hover,
.research-preview a:hover {
	color: #7fe7ff !important;
}

.moto-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin: 40px 0;
}

.moto-features.vertical-tabs {
	grid-template-columns: 1fr;
}

.feature-card {
	background: rgba(90, 127, 181, 0.1);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

.feature-card:hover {
	background: rgba(90, 127, 181, 0.18);
	border-color: rgba(127, 181, 200, 0.5);
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(74, 111, 165, 0.3);
}

.feature-card h4 {
	color: #7fb5c8;
	font-size: 1.3em;
	margin-bottom: 15px;
	font-weight: 600;
}

.feature-card p {
	font-size: 1.05em;
	color: #cfdae4;
	margin: 0;
	line-height: 1.7;
}

.cta-buttons {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 40px;
}

.cta-button {
	display: inline-block;
	padding: 16px 32px;
	background: #4a6fa5;
	color: white;
	text-decoration: none;
	border-radius: 10px;
	font-weight: 600;
	font-size: 1.1em;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(74, 111, 165, 0.4);
}

.cta-button:hover {
	background: #5a7fb5;
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(74, 111, 165, 0.5);
	color: white;
}

/* Gold shimmer button styling for special CTAs */
.cta-button.gold-shimmer {
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
	color: #78350f !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4), 0 2px 8px rgba(217, 119, 6, 0.3) !important;
	border: 2px solid rgba(255, 255, 255, 0.3) !important;
	position: relative;
	overflow: hidden;
}

.cta-button.gold-shimmer::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transform: rotate(45deg);
	animation: gold-shimmer-shine 3s infinite;
	pointer-events: none;
}

@keyframes gold-shimmer-shine {
	0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
	100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.cta-button.gold-shimmer:hover {
	background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%) !important;
	color: #78350f !important;
	box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5), 0 4px 12px rgba(217, 119, 6, 0.4) !important;
	transform: translateY(-3px) scale(1.02) !important;
}

.cta-button.secondary {
	background: transparent;
	color: #7fb5c8;
	border: 2px solid #5a7fb5;
	box-shadow: none;
}

.cta-button.secondary:hover {
	background: rgba(90, 127, 181, 0.18);
	border-color: #7fb5c8;
	color: #a5c9d9;
}

.research-preview a {
	display: inline-block;
	margin-top: 20px;
	padding: 14px 28px;
	background: #4a6fa5;
	color: white;
	text-decoration: none;
	border-radius: 10px;
	font-weight: 600;
	font-size: 1.05em;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(74, 111, 165, 0.4);
}

.research-preview a:hover {
	background: #5a7fb5;
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(74, 111, 165, 0.5);
	color: white;
}

/* ========================================
   SECONDARY PAGES (MOTO, About, etc.)
   ======================================== */

/* WordPress Page Title - Center the main page title */
.entry-header .entry-title,
.page .entry-title,
article h1.entry-title {
	text-align: center;
}

/* Secondary Page Container - WIDE like homepage */
.secondary-page {
	max-width: 95%;
	width: 100%;
	margin: 0 auto;
	padding: 0 2.5%;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* For very large screens, cap at same max as homepage */
@media (min-width: 2000px) {
	.intrafere-homepage,
	.secondary-page {
		max-width: 1900px;
		padding: 0 60px;
	}
}

/* Hero Section - Darker middle tone like homepage hero */
.page-hero {
	background: linear-gradient(135deg, #2d4156 0%, #3a5266 100%);
	color: white;
	padding: 80px 60px;
	border-radius: 16px;
	margin-bottom: 60px;
	box-shadow: 0 10px 40px rgba(45, 65, 86, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero h1 {
	font-size: 2.5em;
	font-weight: 700;
	margin-bottom: 24px;
	letter-spacing: -0.5px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-hero p {
	font-size: 1.1em;
	line-height: 1.8;
	opacity: 0.95;
	margin-bottom: 16px;
}

.page-hero p:last-child {
	margin-bottom: 0;
}

.page-hero a {
	color: #5dd9ff !important;
	text-decoration: underline !important;
}

.page-hero a:hover {
	color: #7fe7ff !important;
}

/* Utility: center-align text blocks when needed */
.text-center {
	text-align: center;
}

/* Main Content Section - Darkest grey-cyan-green like homepage secondary */
.page-content-section {
	background: linear-gradient(135deg, #273947 0%, #344856 100%);
	color: #d8e5ed;
	padding: 80px 60px;
	border-radius: 16px;
	margin-bottom: 60px;
	box-shadow: 0 12px 48px rgba(39, 57, 71, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	overflow: hidden;
}

.page-content-section::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(90, 127, 181, 0.12) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.page-content-section h2 {
	color: #ffffff;
	font-size: 2em;
	font-weight: 700;
	margin-bottom: 20px;
	margin-top: 40px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.page-content-section h2:first-child {
	margin-top: 0;
}

.page-content-section h3 {
	color: #7fb5c8;
	font-size: 1.5em;
	font-weight: 600;
	margin-top: 32px;
	margin-bottom: 16px;
}

.page-content-section p {
	font-size: 1.1em;
	line-height: 1.8;
	margin-bottom: 20px;
	color: #d8e5ed;
}

.page-content-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 40px;
	margin-top: 10px;
	margin-bottom: 20px;
}

.page-content-block h3:first-child {
	margin-top: 0;
}

.page-content-section strong {
	color: #a5c9d9;
	font-weight: 600;
}

.page-content-section a {
	color: #5dd9ff !important;
	text-decoration: underline !important;
}

.page-content-section a:hover {
	color: #7fe7ff !important;
}

/* Cards Section - Light background for contrast */
.page-cards-section {
	background: rgba(74, 111, 165, 0.08);
	padding: 60px 50px;
	border-radius: 16px;
	margin-bottom: 60px;
	border: 1px solid rgba(74, 111, 165, 0.15);
}

.page-cards-section h2 {
	text-align: center;
	color: #2d4156;
	font-size: 2.2em;
	font-weight: 700;
	margin-bottom: 50px;
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 35px;
}

.info-card {
	background: #ffffff;
	padding: 40px 35px;
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 2px solid transparent;
	text-align: center;
}

.info-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 36px rgba(74, 111, 165, 0.18);
	border-color: #4a6fa5;
}

.info-card h3 {
	color: #2d4156;
	font-size: 3em;
	font-weight: 600;
	margin-bottom: 18px;
	text-align: center;
}

.info-card p {
	color: #64748b;
	font-size: 2.1em;
	line-height: 1.7;
	margin-bottom: 26px;
	text-align: left;
}

.info-card a {
	display: inline-block;
	background: linear-gradient(135deg, #4a6fa5 0%, #5a7fb5 100%);
	color: #fff;
	padding: 12px 28px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1em;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
}

.info-card a:hover {
	background: linear-gradient(135deg, #3a5d8a 0%, #4a6fa5 100%);
	box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
	transform: translateY(-2px);
	color: #fff;
}

/* Optional compact cards variant for dense card sections */
/* `business-model-cards` kept as legacy alias for older page markup */
.page-cards-section.compact-cards,
.page-cards-section.business-model-cards {
	padding: 44px 36px;
}

.page-cards-section.compact-cards h2,
.page-cards-section.business-model-cards h2 {
	font-size: 1.85em;
	margin-bottom: 30px;
}

.page-cards-section.compact-cards .cards-grid,
.page-cards-section.business-model-cards .cards-grid {
	grid-template-columns: repeat(auto-fill, minmax(230px, 280px));
	justify-content: center;
	gap: 22px;
}

.page-cards-section.compact-cards .info-card,
.page-cards-section.business-model-cards .info-card {
	padding: 24px 22px;
}

.page-cards-section.compact-cards .info-card h3,
.page-cards-section.business-model-cards .info-card h3 {
	font-size: 1.35em;
	margin-bottom: 12px;
}

.page-cards-section.compact-cards .info-card p,
.page-cards-section.business-model-cards .info-card p {
	font-size: 1em;
	line-height: 1.6;
	margin-bottom: 16px;
}

.page-cards-section.compact-cards .info-card a,
.page-cards-section.business-model-cards .info-card a {
	padding: 10px 18px;
	font-size: 0.95em;
}

/* Comparison Section - Hero tone, for sales/feature comparison tables */
.page-comparison-section {
	background: linear-gradient(135deg, #2d4156 0%, #3a5266 100%);
	padding: 80px 60px;
	border-radius: 16px;
	margin-bottom: 60px;
	box-shadow: 0 10px 40px rgba(45, 65, 86, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-comparison-section h2 {
	color: #ffffff;
	font-size: 2em;
	font-weight: 700;
	text-align: center;
	margin-bottom: 12px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.page-comparison-section > p {
	color: #d8e5ed;
	text-align: center;
	font-size: 1.1em;
	line-height: 1.8;
	margin-bottom: 48px;
}

.comparison-table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 12px;
	overflow: hidden;
}

.comparison-table th {
	padding: 22px 28px;
	font-size: 1.05em;
	font-weight: 700;
	text-align: center;
	letter-spacing: 0.3px;
}

.comparison-table th.col-feature {
	background: rgba(0, 0, 0, 0.22);
	color: #a5c9d9;
	text-align: left;
	width: 34%;
}

.comparison-table th.col-opensource {
	background: rgba(0, 0, 0, 0.28);
	color: #8da0ad;
	width: 33%;
}

.comparison-table th.col-custom {
	background: linear-gradient(135deg, rgba(74, 111, 165, 0.45) 0%, rgba(90, 127, 181, 0.45) 100%);
	color: #7fb5c8;
	border-bottom: 2px solid rgba(127, 181, 200, 0.6);
	width: 33%;
}

.comparison-table td {
	padding: 16px 28px;
	font-size: 1em;
	line-height: 1.6;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	vertical-align: middle;
}

.comparison-table tr:hover td {
	background: rgba(255, 255, 255, 0.03);
}

.comparison-table td.col-feature {
	color: #d8e5ed;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.12);
}

.comparison-table td.col-opensource {
	color: #7a919e;
	text-align: center;
	background: rgba(0, 0, 0, 0.1);
}

.comparison-table td.col-custom {
	color: #a5c9d9;
	text-align: center;
	background: rgba(74, 111, 165, 0.1);
}

.comparison-check {
	color: #7fb5c8;
	font-size: 1.15em;
	font-weight: 700;
	margin-right: 6px;
}

.comparison-partial {
	color: #8da0ad;
	font-style: italic;
}

.comparison-no {
	color: #536471;
}

/* CTA Section - Dark like content section */
.page-cta-section {
	background: linear-gradient(135deg, #273947 0%, #344856 100%);
	color: #fff;
	padding: 60px 50px;
	border-radius: 16px;
	text-align: center;
	box-shadow: 0 12px 48px rgba(39, 57, 71, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 60px;
}

.page-cta-section h2 {
	font-size: 2.2em;
	font-weight: 700;
	margin-bottom: 35px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.page-cta-section p {
	font-size: 1.1em;
	line-height: 1.8;
	color: #d8e5ed;
	margin-bottom: 20px;
}

.page-cta-section a {
	color: #5dd9ff !important;
	text-decoration: underline !important;
}

.page-cta-section a:hover {
	color: #7fe7ff !important;
}

.page-cta-section .cta-buttons {
	display: flex;
	gap: 18px;
	justify-content: center;
	flex-wrap: wrap;
}

.page-cta-section .cta-btn {
	display: inline-block;
	padding: 16px 36px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1em;
	transition: all 0.3s ease;
}

.page-cta-section .cta-primary {
	background: linear-gradient(135deg, #4a6fa5 0%, #5a7fb5 100%);
	color: #fff;
	box-shadow: 0 4px 15px rgba(74, 111, 165, 0.4);
}

.page-cta-section .cta-primary:hover {
	background: linear-gradient(135deg, #3a5d8a 0%, #4a6fa5 100%);
	box-shadow: 0 6px 20px rgba(74, 111, 165, 0.5);
	transform: translateY(-3px);
	color: #fff;
}

.page-cta-section .cta-secondary {
	background: transparent;
	color: #7fb5c8;
	border: 2px solid #5a7fb5;
}

.page-cta-section .cta-secondary:hover {
	background: rgba(90, 127, 181, 0.18);
	border-color: #7fb5c8;
	color: #a5c9d9;
	transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet adjustments */
@media (max-width: 1024px) {
	.intrafere-homepage,
	.secondary-page {
		padding: 0 30px;
	}
	
	.hero-section,
	.company-intro,
	.moto-section,
	.research-preview,
	.page-hero,
	.page-content-section,
	.page-cards-section,
	.page-comparison-section,
	.page-cta-section {
		padding: 60px 40px;
	}

	.comparison-table th,
	.comparison-table td {
		padding: 14px 18px;
	}

	.page-content-grid {
		gap: 30px;
	}
}

/* Tablet adjustments */
@media (max-width: 768px) {
	.intrafere-homepage,
	.secondary-page {
		padding: 0 15px;
	}
	
	.hero-section,
	.page-hero {
		padding: 40px 20px;
	}
	
	.hero-section h1,
	.page-hero h1 {
		font-size: 1.9em;
	}
	
	.hero-section p,
	.page-hero p {
		font-size: 1.05em;
	}
	
	.company-intro, 
	.moto-section, 
	.research-preview,
	.page-content-section,
	.page-cards-section,
	.page-comparison-section,
	.page-cta-section {
		padding: 35px 20px;
	}

	.comparison-table th.col-feature,
	.comparison-table td.col-feature {
		display: none;
	}

	.comparison-table th.col-opensource,
	.comparison-table th.col-custom {
		width: 50%;
	}

	.comparison-table th,
	.comparison-table td {
		padding: 12px 14px;
		font-size: 0.9em;
	}
	
	.company-intro h2, 
	.moto-section h2, 
	.research-preview h2,
	.page-content-section h2,
	.page-cards-section h2,
	.page-cta-section h2 {
		font-size: 1.7em;
	}
	
	.research-preview h3,
	.page-content-section h3 {
		font-size: 1.25em;
	}

	.page-content-grid {
		gap: 24px;
	}
	
	.moto-features,
	.cards-grid {
		grid-template-columns: 1fr;
	}
	
	.cta-buttons,
	.page-cta-section .cta-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	
	.cta-btn {
		width: 100%;
		text-align: center;
	}
}

/* Phone adjustments - maximum width for comfortable reading */
/* Catches all phones including larger ones (up to 600px) */
@media (max-width: 600px) {
	.intrafere-homepage,
	.secondary-page {
		padding: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}
	
	.hero-section,
	.page-hero {
		padding: 24px 10px !important;
		border-radius: 0 !important;
		margin: 0 0 20px 0 !important;
	}
	
	.hero-section h1,
	.page-hero h1 {
		font-size: 1.5em !important;
	}
	
	.hero-section p,
	.page-hero p {
		font-size: 0.95em !important;
	}
	
	.company-intro, 
	.moto-section, 
	.research-preview,
	.page-content-section,
	.page-cards-section,
	.page-cta-section {
		padding: 20px 10px !important;
		border-radius: 0 !important;
		margin: 0 0 20px 0 !important;
	}
	
	.company-intro h2, 
	.moto-section h2, 
	.research-preview h2,
	.page-content-section h2,
	.page-cards-section h2,
	.page-cta-section h2 {
		font-size: 1.4em !important;
	}
	
	.moto-section h3,
	.research-preview h3,
	.page-content-section h3 {
		font-size: 1.15em !important;
	}
	
	.company-intro p,
	.moto-section > p,
	.research-preview p,
	.page-content-section p,
	.page-hero p,
	.page-cards-section p,
	.page-cta-section p {
		font-size: 0.95em !important;
		line-height: 1.65 !important;
	}
	
	.feature-card,
	.info-card {
		padding: 15px 10px !important;
		border-radius: 4px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	
	.cards-grid {
		gap: 15px !important;
		padding: 0 !important;
	}
	
	.cta-button,
	.cta-btn,
	.page-cta-section .cta-btn,
	.page-cta-section .cta-primary,
	.page-cta-section .cta-secondary {
		padding: 12px 18px !important;
		font-size: 0.95em !important;
	}
	
	/* Force override all GeneratePress and WordPress constraints on mobile */
	.grid-container,
	.site-content,
	.content-area,
	.site-main,
	.inside-article,
	.entry-content,
	article,
	.post,
	.page,
	.hentry,
	.type-page,
	.single,
	main {
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}
}

/* ========================================
   FOOTER TRADEMARK MARKS
   ======================================== */

.footer-trademark-notice {
	font-size: 11px;
	color: #666;
	letter-spacing: 0.2px;
}

/* ========================================
   FOOTER SECURITY BADGES
   ======================================== */

.footer-security-badges {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 15px 0;
	gap: 15px;
	flex-wrap: wrap;
}

.footer-security-badges .sitelock-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border: none;
	background: none;
	padding: 0;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.footer-security-badges .sitelock-badge:hover {
	transform: scale(1.05);
}

.footer-security-badges img {
	max-height: 70px;
	width: auto;
	display: block;
	border: none;
	background: none;
	box-shadow: none;
}

.footer-security-badges .nvidia-inception-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border: none;
	background: none;
	padding: 0;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.footer-security-badges .nvidia-inception-badge:hover {
	transform: scale(1.05);
}

.footer-security-badges .nvidia-inception-badge img {
	max-height: 88px;
	width: auto;
	display: block;
	border: none;
	background: none;
	box-shadow: none;
}

@media (max-width: 768px) {
	.footer-security-badges {
		flex-direction: column;
		gap: 10px;
		margin: 15px 0;
	}
	
	.footer-security-badges img {
		max-height: 60px;
	}
}

@media (max-width: 480px) {
	.footer-security-badges img {
		max-height: 50px;
	}
}

/* ===================================================================
   MOTO Visualization Styles 
   =================================================================== */

.moto-viz-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 20px;
}

.moto-viz-wrapper .container {
    max-width: 2160px;
    margin: 0 auto;
}

.moto-viz-wrapper header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.moto-viz-wrapper h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #4a9eff;
    text-shadow: 0 2px 10px rgba(74, 158, 255, 0.3);
}

.moto-viz-wrapper .tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
}

.moto-viz-wrapper .tab-button {
    flex: 1;
    padding: 15px 20px;
    background: #2a2a2a;
    border: 2px solid #333;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s;
}

.moto-viz-wrapper .tab-button:hover {
    background: #333;
    border-color: #4a9eff;
}

.moto-viz-wrapper .tab-button.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: #4a9eff;
    color: #fff;
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.3);
}

.moto-viz-wrapper .tab-content {
    display: none;
}

.moto-viz-wrapper .tab-content.active {
    display: block;
}

.moto-viz-wrapper .stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.moto-viz-wrapper .stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.moto-viz-wrapper .stat-label {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 5px;
}

.moto-viz-wrapper .stat-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #4a9eff;
}

.moto-viz-wrapper .highlight {
    color: #4ade80;
}

.moto-viz-wrapper .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1200px) {
    .moto-viz-wrapper .content-grid {
        grid-template-columns: 1fr;
    }
}

.moto-viz-wrapper .log-section,
.moto-viz-wrapper .graph-section {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.moto-viz-wrapper .section-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #4a9eff;
    border-bottom: 2px solid rgba(74, 158, 255, 0.3);
    padding-bottom: 10px;
}

.moto-viz-wrapper .section-subtitle {
    font-size: 0.85em;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

.moto-viz-wrapper .log-container {
    max-height: 800px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85em;
    line-height: 1.4;
}

.moto-viz-wrapper .log-container::-webkit-scrollbar,
.moto-viz-wrapper .raw-log-container::-webkit-scrollbar {
    width: 10px;
}

.moto-viz-wrapper .log-container::-webkit-scrollbar-track,
.moto-viz-wrapper .raw-log-container::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.moto-viz-wrapper .log-container::-webkit-scrollbar-thumb,
.moto-viz-wrapper .raw-log-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

.moto-viz-wrapper .log-entry {
    padding: 4px 8px;
    margin: 2px 0;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.moto-viz-wrapper .log-entry:hover {
    background: rgba(255, 255, 255, 0.05);
}

.moto-viz-wrapper .log-entry.rejection {
    color: #ef4444;
    border-left-color: #ef4444;
}

.moto-viz-wrapper .log-entry.acceptance {
    color: #4ade80;
    border-left-color: #4ade80;
}

.moto-viz-wrapper .log-entry.topic {
    color: #fbbf24;
    border-left-color: #fbbf24;
}

.moto-viz-wrapper .log-entry.process {
    color: #60a5fa;
    border-left-color: #60a5fa;
}

.moto-viz-wrapper .log-entry.first-acceptance {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.2) 0%, transparent 100%);
    border: 1px solid #4ade80;
    border-radius: 4px;
    padding: 8px;
    margin: 8px 0;
    font-weight: bold;
}

.moto-viz-wrapper .timestamp {
    color: #888;
    margin-right: 8px;
    min-width: 90px;
    display: inline-block;
}

.moto-viz-wrapper .icon {
    margin-right: 8px;
}

.moto-viz-wrapper .graph-container {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
}

.moto-viz-wrapper canvas {
    max-width: 100%;
    height: auto;
}

.moto-viz-wrapper .note {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
    margin-top: 10px;
}

.moto-viz-wrapper .phase-table {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.moto-viz-wrapper .phase-table th,
.moto-viz-wrapper .phase-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile-only column balance for phase table */
@media (max-width: 768px) {
	.moto-viz-wrapper .phase-table {
		table-layout: fixed !important;
		font-size: 12px !important;
	}

	.moto-viz-wrapper .phase-table th,
	.moto-viz-wrapper .phase-table td {
		padding: 10px 5px !important;
	}

	.moto-viz-wrapper .phase-table th:nth-child(1),
	.moto-viz-wrapper .phase-table td:nth-child(1) {
		width: 28% !important;
	}

	.moto-viz-wrapper .phase-table th:nth-child(2),
	.moto-viz-wrapper .phase-table td:nth-child(2) {
		width: 14% !important;
		text-align: center !important;
	}

	.moto-viz-wrapper .phase-table th:nth-child(3),
	.moto-viz-wrapper .phase-table td:nth-child(3) {
		width: 58% !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
		hyphens: auto !important;
	}
}

.moto-viz-wrapper .phase-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #4a9eff;
    font-weight: 600;
}

.moto-viz-wrapper .phase-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.moto-viz-wrapper .phase-table .phase-name {
    font-weight: bold;
}

.moto-viz-wrapper .phase-table .struggle-phase {
    color: #ef4444;
}

.moto-viz-wrapper .phase-table .breakthrough-phase {
    color: #4ade80;
}

.moto-viz-wrapper .model-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.moto-viz-wrapper .model-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid rgba(74, 158, 255, 0.2);
}

.moto-viz-wrapper .model-card.model-1 { border-color: rgba(74, 222, 128, 0.5); }
.moto-viz-wrapper .model-card.model-2 { border-color: rgba(96, 165, 250, 0.5); }
.moto-viz-wrapper .model-card.model-3 { border-color: rgba(192, 132, 252, 0.5); }

.moto-viz-wrapper .model-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
}

.moto-viz-wrapper .model-card.model-1 .model-name { color: #4ade80; }
.moto-viz-wrapper .model-card.model-2 .model-name { color: #60a5fa; }
.moto-viz-wrapper .model-card.model-3 .model-name { color: #c084fc; }

.moto-viz-wrapper .model-stat-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.moto-viz-wrapper .model-stat-row:last-child {
    border-bottom: none;
}

.moto-viz-wrapper .model-stat-label {
    color: #888;
}

.moto-viz-wrapper .model-stat-value {
    font-weight: bold;
    color: #4a9eff;
}

.moto-viz-wrapper .legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.moto-viz-wrapper .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.moto-viz-wrapper .legend-color {
    width: 20px;
    height: 3px;
    border-radius: 2px;
}

.moto-viz-wrapper .legend-color.model-1 { background: #4ade80; }
.moto-viz-wrapper .legend-color.model-2 { background: #60a5fa; }
.moto-viz-wrapper .legend-color.model-3 { background: #c084fc; }

.moto-viz-wrapper .sub-tab-nav {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.moto-viz-wrapper .sub-tab-button {
    flex: 1;
    padding: 8px 15px;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #888;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s;
}

.moto-viz-wrapper .sub-tab-button:hover {
    background: #333;
    border-color: #4a9eff;
}

.moto-viz-wrapper .sub-tab-button.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: #4a9eff;
    color: #fff;
}

.moto-viz-wrapper .sub-tab-content {
    display: none;
}

.moto-viz-wrapper .sub-tab-content.active {
    display: block;
}

.moto-viz-wrapper .raw-log-container {
    max-height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85em;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    color: #d4d4d4;
}

.moto-viz-wrapper .info-note {
    background: rgba(251, 146, 60, 0.1);
    border-left: 3px solid #f97316;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #fbbf24;
}

.moto-viz-wrapper .master-tab-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #0a0a0a;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #4a9eff;
}

.moto-viz-wrapper .master-tab-button {
    flex: 1;
    padding: 20px 30px;
    background: #1a1a1a;
    border: 3px solid #333;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.moto-viz-wrapper .master-tab-button:hover {
    background: #2a2a2a;
    border-color: #4a9eff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.2);
}

.moto-viz-wrapper .master-tab-button.active {
    background: linear-gradient(135deg, #4a9eff 0%, #2563eb 100%);
    border-color: #60a5fa;
    color: #fff;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.4);
}

.moto-viz-wrapper .master-tab-content {
    display: none;
}

.moto-viz-wrapper .master-tab-content.active {
    display: block;
}

.moto-viz-wrapper .subtitle {
    font-size: 1.1em;
    color: #888;
    margin-top: 10px;
}

/* MOBILE RESPONSIVE - MASTER TAB BUTTONS */
@media (max-width: 768px) {
    .moto-viz-wrapper .master-tab-nav {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    
    .moto-viz-wrapper .master-tab-button {
        width: 100% !important;
        padding: 12px 15px !important;
    }
}

/* ========================================
   CONTACT FORM STYLING
   ======================================== */

/* Contact Form Container */
.contact-form {
	max-width: 700px;
	margin: 0 auto;
}

.contact-form .form-group {
	margin-bottom: 25px;
}

.contact-form label {
	display: block;
	color: #d8e5ed;
	font-size: 1em;
	font-weight: 600;
	margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 12px 16px;
	font-size: 1em;
	font-family: inherit;
	color: #d8e5ed;
	background: rgba(90, 127, 181, 0.15);
	border: 2px solid rgba(127, 181, 200, 0.3);
	border-radius: 8px;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: #7fb5c8;
	background: rgba(90, 127, 181, 0.2);
	box-shadow: 0 0 0 3px rgba(127, 181, 200, 0.2);
}

.contact-form textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.6;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
	color: rgba(216, 229, 237, 0.5);
}

/* reCAPTCHA Container */
.contact-form .recaptcha-group {
	margin-bottom: 25px;
	padding: 15px 0;
}

.contact-form #recaptcha-container {
	display: flex;
	justify-content: flex-start;
}

/* Form Messages */
.contact-form-message {
	padding: 15px 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 1em;
	line-height: 1.6;
}

.contact-form-message.error {
	background: rgba(239, 68, 68, 0.15);
	border: 2px solid rgba(239, 68, 68, 0.4);
	color: #fee2e2;
}

.contact-form-message.success {
	background: rgba(16, 185, 129, 0.15);
	border: 2px solid rgba(16, 185, 129, 0.4);
	color: #d1fae5;
}

/* Submit Button */
.contact-form .form-submit {
	text-align: center;
	margin-top: 30px;
}

.contact-form #contact-submit-btn {
	display: inline-block;
	padding: 16px 40px;
	font-size: 1.1em;
	font-weight: 600;
	background: linear-gradient(135deg, #4a6fa5 0%, #5a7fb5 100%);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(74, 111, 165, 0.4);
	min-width: 180px;
}

.contact-form #contact-submit-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, #3a5d8a 0%, #4a6fa5 100%);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(74, 111, 165, 0.5);
}

.contact-form #contact-submit-btn:disabled {
	background: rgba(90, 127, 181, 0.5);
	cursor: not-allowed;
	transform: none;
	opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
	.contact-form {
		max-width: 100%;
	}

	.contact-form input[type="text"],
	.contact-form input[type="email"],
	.contact-form textarea {
		font-size: 16px; /* Prevents zoom on iOS */
	}

	.contact-form #contact-submit-btn {
		width: 100%;
		padding: 14px 30px;
	}
}

@media (max-width: 480px) {
	.contact-form .form-group {
		margin-bottom: 20px;
	}

	.contact-form label {
		font-size: 0.95em;
	}

	.contact-form input[type="text"],
	.contact-form input[type="email"],
	.contact-form textarea {
		padding: 10px 14px;
		font-size: 16px;
	}

	.contact-form #recaptcha-container {
		transform: scale(0.85);
		transform-origin: 0 0;
	}
}

/* Centering fix for secondary pages - Relaxed width constraints */
.page-hero h1,
.page-hero p,
.page-content-section h2,
.page-content-section h3,
.page-content-section p,
.page-content-section ul,
.page-content-section ol,
.page-content-grid,
.page-cards-section h2,
.page-cta-section h2,
.page-cta-section p {
    max-width: 1200px; /* Widened from 1000px to reduce dead space */
    margin-left: auto;
    margin-right: auto;
}

.page-content-section ul,
.page-content-section ol {
    list-style-position: inside; /* Pulls bullets inside the content block for better visual alignment */
    padding-left: 0;
}

.page-content-grid {
    /* max-width: 100%; Removed to allow inheritance of 1200px constraint from above group */
    margin-left: auto;
    margin-right: auto;
    display: grid; /* Re-affirm display grid as safe measure */
}

.cards-grid,
.cta-buttons {
	max-width: 100%; /* Allow grid to fill container */
	margin-left: auto;
	margin-right: auto;
}

/* ========================================
   HOMEPAGE HERO CAROUSEL
   ======================================== */

.hero-carousel {
	position: relative;
	width: 100%;
	min-height: 500px;
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 60px;
	background: linear-gradient(135deg, #1a2a3a 0%, #2d4156 50%, #1e3344 100%);
	box-shadow: 0 20px 60px rgba(30, 51, 68, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-container {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 500px;
}

.carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 60px 80px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transform: translateX(30px);
	transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	position: relative;
}

.slide-content {
	flex: 1;
	max-width: 45%; /* Allow larger visuals on desktop */
	z-index: 2;
	padding-right: 20px;
}

.slide-badge {
	display: inline-block;
	background: rgba(127, 181, 200, 0.2);
	color: #7fb5c8;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 20px;
	border: 1px solid rgba(127, 181, 200, 0.3);
}

.carousel-slide h1 {
	color: #ffffff;
	font-size: 2.8em;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 20px 0;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel-slide p {
	color: #d8e5ed;
	font-size: 1.2em;
	line-height: 1.7;
	margin-bottom: 30px;
	max-width: 600px;
}

.slide-cta {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.slide-visual {
	flex-shrink: 0;
	width: 650px;
	height: 650px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(127, 181, 200, 0.1);
	border-radius: 20px;
	z-index: 1;
	overflow: hidden;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
	border: 2px solid rgba(255, 255, 255, 0.15);
	margin-right: 40px; /* Push left to avoid arrow overlap */
}

.slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-visual:hover .slide-image {
	transform: scale(1.03);
}

/* YouTube Preview Specifics */
.youtube-preview .youtube-card {
	position: relative;
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 20px;
	overflow: hidden;
}

.play-button {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	top: auto;
	width: 144px;
	height: 108px;
	background: rgba(255, 0, 0, 0.9);
	border-radius: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 58px;
	z-index: 2;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
	transition: all 0.3s ease;
}

.youtube-card:hover .play-button {
	background: #ff0000;
	transform: translate(-50%, -50%) scale(1.1);
}

/* Visual Icon fallback if needed */
.visual-icon {
	font-size: 120px;
	filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
	animation: float 3s ease-in-out infinite;
}

@media (max-width: 1200px) {
	.slide-visual {
		width: 480px;
		height: 480px;
	}
	.slide-content {
		max-width: 50%;
	}
}

@media (max-width: 1024px) {
	.slide-visual {
		width: 360px;
		height: 360px;
	}
	.slide-content {
		max-width: 55%;
	}
}

@media (max-width: 768px) {
	.slide-visual {
		display: none; /* Hide visual on mobile to save space */
	}
	.slide-content {
		max-width: 100%;
	}
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-15px); }
}

/* Carousel Navigation Dots */
.carousel-nav {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 10;
}

.carousel-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	border: 2px solid rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.carousel-dot:hover {
	background: rgba(255, 255, 255, 0.5);
	transform: scale(1.2);
}

.carousel-dot.active {
	background: #7fb5c8;
	border-color: #7fb5c8;
	transform: scale(1.3);
	box-shadow: 0 0 15px rgba(127, 181, 200, 0.5);
}

/* Progress Bar */
.carousel-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #4a6fa5, #7fb5c8);
	transition: width 5s linear;
}

/* Arrow Controls */
.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #ffffff;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	backdrop-filter: blur(10px);
	padding: 0;
	aspect-ratio: 1;
}

@media (hover: hover) {
	.carousel-arrow:hover {
		background: rgba(127, 181, 200, 0.3);
		border-color: #7fb5c8;
	}
}

.carousel-arrow:active {
	background: rgba(127, 181, 200, 0.4);
	border-color: #7fb5c8;
	transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
	left: 20px;
}

.carousel-arrow.next {
	right: 20px;
}

/* ========================================
   QUICK LINKS NAVIGATION GRID
   ======================================== */

.quick-links-section {
	background: linear-gradient(135deg, #e8ecf2 0%, #dde4ed 100%);
	padding: 70px 60px;
	border-radius: 20px;
	margin-bottom: 60px;
	border: 1px solid rgba(74, 111, 165, 0.15);
}

.quick-links-section h2 {
	text-align: center;
	color: #2d4156;
	font-size: 2.4em;
	font-weight: 700;
	margin-bottom: 50px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-links-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 25px;
}

.quick-link-card {
	background: #ffffff;
	padding: 30px 25px;
	border-radius: 16px;
	text-decoration: none;
	box-shadow: 0 4px 20px rgba(45, 65, 86, 0.08);
	border: 2px solid transparent;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	display: block;
	position: relative;
	overflow: hidden;
}

.quick-link-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, #4a6fa5, #7fb5c8);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.quick-link-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(74, 111, 165, 0.2);
	border-color: #4a6fa5;
}

.quick-link-card:hover::before {
	transform: scaleX(1);
}

.quick-link-card.highlight {
	background: linear-gradient(135deg, #fef9e7 0%, #fff9e6 100%);
	border: 2px solid rgba(251, 191, 36, 0.3);
}

.quick-link-card.highlight:hover {
	border-color: #f59e0b;
	box-shadow: 0 12px 40px rgba(251, 191, 36, 0.2);
}

.quick-link-card.highlight::before {
	background: linear-gradient(90deg, #fbbf24, #f59e0b);
}


.quick-link-card h3 {
	color: #2d4156;
	font-size: 1.2em;
	font-weight: 700;
	margin: 0 0 10px 0;
	transition: color 0.3s ease;
}

.quick-link-card:hover h3 {
	color: #4a6fa5;
}

.quick-link-card p {
	color: #64748b;
	font-size: 0.95em;
	line-height: 1.5;
	margin: 0;
}

/* ========================================
   RESEARCH CARDS SECTION
   ======================================== */

.research-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.research-card {
	background: rgba(90, 127, 181, 0.1);
	padding: 40px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: all 0.3s ease;
}

.research-card:hover {
	background: rgba(90, 127, 181, 0.18);
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.research-tag {
	display: inline-block;
	background: rgba(127, 181, 200, 0.2);
	color: #7fb5c8;
	padding: 6px 14px;
	border-radius: 15px;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 15px;
}

.research-card h3 {
	color: #ffffff;
	font-size: 1.4em;
	font-weight: 700;
	margin: 0 0 15px 0;
	line-height: 1.3;
}

.research-card p {
	color: #d8e5ed;
	font-size: 1em;
	line-height: 1.7;
	margin-bottom: 20px;
}

.research-link {
	color: #7fb5c8 !important;
	font-weight: 600;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	transition: all 0.3s ease;
}

.research-link:hover {
	color: #a5c9d9 !important;
	transform: translateX(5px);
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */

.final-cta-section {
	background: linear-gradient(135deg, #2d4156 0%, #3a5266 50%, #2d4156 100%);
	padding: 80px 60px;
	border-radius: 20px;
	text-align: center;
	margin-bottom: 60px;
	box-shadow: 0 20px 60px rgba(45, 65, 86, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.12);
	position: relative;
	overflow: hidden;
}

.final-cta-section::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(127, 181, 200, 0.1) 0%, transparent 50%);
	animation: pulse-bg 8s ease-in-out infinite;
	pointer-events: none;
}

@keyframes pulse-bg {
	0%, 100% { transform: scale(1); opacity: 0.5; }
	50% { transform: scale(1.1); opacity: 0.8; }
}

.final-cta-section h2 {
	color: #ffffff;
	font-size: 2.5em;
	font-weight: 800;
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.final-cta-section p {
	color: #d8e5ed;
	font-size: 1.2em;
	line-height: 1.6;
	margin-bottom: 35px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 1;
}

.final-cta-section .cta-buttons {
	position: relative;
	z-index: 1;
}

/* ========================================
   CAROUSEL RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
	.hero-carousel {
		min-height: 450px;
	}
	
	.carousel-container,
	.carousel-slide {
		min-height: 450px;
	}
	
	.carousel-slide {
		padding: 50px 60px;
	}
	
	.carousel-slide h1 {
		font-size: 2.2em;
	}
	
	.slide-visual {
		width: 150px;
		height: 150px;
	}
	
	.visual-icon {
		font-size: 60px;
	}
	
	.quick-links-section {
		padding: 50px 40px;
	}
	
	.research-cards {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.hero-carousel {
		min-height: 550px;
		border-radius: 16px;
	}
	
	.carousel-container,
	.carousel-slide {
		min-height: 550px;
	}
	
	.carousel-slide {
		padding: 40px 30px 80px;
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}
	
	.slide-content {
		max-width: 100%;
	}
	
	.carousel-slide h1 {
		font-size: 1.8em;
	}
	
	.carousel-slide p {
		font-size: 1.05em;
		max-width: 100%;
	}
	
	.slide-cta {
		justify-content: center;
	}
	
	.slide-visual {
		display: none;
	}
	
	.carousel-arrow {
		width: 28px;
		height: 28px;
		font-size: 14px;
		opacity: 0.6;
		background: rgba(0, 0, 0, 0.2);
		border: 1px solid rgba(255, 255, 255, 0.3);
	}
	
	.carousel-arrow.prev {
		left: 5px;
	}
	
	.carousel-arrow.next {
		right: 5px;
	}
	
	.quick-links-section {
		padding: 40px 25px;
	}
	
	.quick-links-section h2 {
		font-size: 1.8em;
	}
	
	.quick-links-grid {
		grid-template-columns: 1fr 1fr;
		gap: 15px;
	}
	
	.quick-link-card {
		padding: 20px 15px;
	}
	
	
	.quick-link-card h3 {
		font-size: 1em;
	}
	
	.quick-link-card p {
		font-size: 0.85em;
	}
	
	.research-card {
		padding: 30px 25px;
	}
	
	.final-cta-section {
		padding: 50px 30px;
	}
	
	.final-cta-section h2 {
		font-size: 1.8em;
	}
}

@media (max-width: 600px) {
	.hero-carousel {
		min-height: 520px;
		border-radius: 0;
		margin: 0 0 30px 0;
	}
	
	.carousel-container,
	.carousel-slide {
		min-height: 520px;
	}
	
	.carousel-slide {
		padding: 30px 20px 70px;
	}
	
	.slide-badge {
		font-size: 0.75em;
		padding: 6px 12px;
	}
	
	.carousel-slide h1 {
		font-size: 1.5em;
	}
	
	.carousel-slide p {
		font-size: 0.95em;
	}
	
	.slide-cta {
		flex-direction: column;
		width: 100%;
	}
	
	.slide-cta .cta-button {
		width: 100%;
		text-align: center;
	}
	
	.carousel-dot {
		width: 12px;
		height: 12px;
	}
	
	.quick-links-section {
		padding: 30px 15px;
		border-radius: 0;
		margin: 0 0 20px 0;
	}
	
	.quick-links-grid {
		grid-template-columns: 1fr;
	}
	
	.research-cards {
		gap: 20px;
	}
	
	.research-card {
		padding: 25px 20px;
	}
	
	.research-card h3 {
		font-size: 1.2em;
	}
	
	.final-cta-section {
		padding: 40px 20px;
		border-radius: 0;
		margin: 0 0 20px 0;
	}
	
	.final-cta-section h2 {
		font-size: 1.5em;
	}
	
	.final-cta-section p {
		font-size: 1em;
	}
}



