/* ========================================================================
   PROFESSIONAL PROFILE PRINT STYLES
   Designed for Executive CV/Resume Printing
   Shared by all team member profile pages
   ======================================================================== */

@media print {
	/* ================================
	   RESET & BASE CONFIGURATION
	   ================================ */
	
	* {
		box-sizing: border-box;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		color-adjust: exact !important;
	}

	html,
	body {
		margin: 0;
		padding: 0;
		width: 210mm;
		height: 297mm;
		background: #ffffff;
		color: #000000;
		font-family: 'Georgia', 'Times New Roman', serif;
		font-size: 10pt;
		line-height: 1.5;
	}

	/* Hide web-only elements */
	header,
	.page-title-area,
	footer,
	.go-top,
	button,
	.btn,
	nav,
	.navbar,
	.header-area,
	.top-header-area,
	.nav-area {
		display: none !important;
	}

	/* ================================
	   PAGE LAYOUT & SPACING
	   ================================ */
	
	@page {
		size: A4 portrait;
		margin: 15mm 12mm 15mm 12mm;
	}

	.profile-details-area {
		padding: 0 !important;
		margin: 0 !important;
		background: #ffffff !important;
	}

	.container {
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		width: 100% !important;
	}

	.row {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 15mm !important;
		margin: 0 !important;
		width: 100% !important;
	}

	/* ================================
	   SIDEBAR COLUMN (Left)
	   ================================ */
	
	.col-lg-4 {
		flex: 0 0 65mm !important;
		max-width: 65mm !important;
		width: 65mm !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.profile-sidebar {
		position: static !important;
		background: #f8f9fa;
		padding: 12mm 8mm;
		border-radius: 3mm;
	}

	.profile-img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		border-radius: 2mm !important;
		margin-bottom: 6mm !important;
		box-shadow: 0 1mm 3mm rgba(0, 0, 0, 0.15) !important;
		page-break-inside: avoid;
	}

	.profile-sidebar h3 {
		font-size: 13pt !important;
		font-weight: 700 !important;
		margin: 0 0 2mm 0 !important;
		color: #0056b3 !important;
		line-height: 1.3 !important;
	}

	.profile-sidebar .text-muted {
		font-size: 9pt !important;
		color: #555555 !important;
		margin-bottom: 5mm !important;
		font-style: italic;
		display: block;
	}

	/* ================================
	   CONTACT BOX STYLING
	   ================================ */
	
	.contact-box {
		background: #ffffff !important;
		padding: 6mm !important;
		margin: 5mm 0 !important;
		border-radius: 2mm !important;
		border: 0.5pt solid #dee2e6 !important;
		page-break-inside: avoid;
	}

	.contact-box ul {
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}

	.contact-box li {
		margin: 0 0 3mm 0 !important;
		padding: 0 !important;
		font-size: 8pt !important;
		line-height: 1.4 !important;
		color: #333333 !important;
		display: flex !important;
		align-items: flex-start !important;
	}

	.contact-box li:last-child {
		margin-bottom: 0 !important;
	}

	.contact-box i {
		font-size: 9pt !important;
		color: #0056b3 !important;
		margin-right: 3mm !important;
		flex-shrink: 0;
		width: 5mm;
		display: inline-block;
	}

	.contact-box a {
		color: #0056b3 !important;
		text-decoration: none !important;
		word-break: break-word;
	}

	/* ================================
	   SKILLS & LANGUAGES
	   ================================ */
	
	.mt-4 h5,
	.profile-sidebar h5 {
		font-size: 10pt !important;
		font-weight: 700 !important;
		margin: 5mm 0 3mm 0 !important;
		color: #0056b3 !important;
		text-transform: uppercase;
		letter-spacing: 0.3pt;
	}

	.skill-badge {
		background: #e9ecef !important;
		color: #333333 !important;
		padding: 2mm 3mm !important;
		margin: 1mm 1mm 1mm 0 !important;
		border-radius: 1.5mm !important;
		font-size: 7.5pt !important;
		font-weight: 500 !important;
		display: inline-block !important;
		page-break-inside: avoid;
		border: 0.3pt solid #ced4da !important;
	}

	/* ================================
	   MAIN CONTENT COLUMN (Right)
	   ================================ */
	
	.col-lg-8 {
		flex: 1 !important;
		max-width: calc(100% - 80mm) !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.ps-lg-4 {
		padding: 0 !important;
		margin: 0 !important;
	}

	/* ================================
	   SECTION HEADINGS
	   ================================ */
	
	.section-heading {
		font-size: 12pt !important;
		font-weight: 700 !important;
		color: #0056b3 !important;
		margin: 8mm 0 4mm 0 !important;
		padding-bottom: 2mm !important;
		border-bottom: 1.5pt solid #0056b3 !important;
		text-transform: uppercase;
		letter-spacing: 0.5pt;
		page-break-after: avoid;
	}

	.section-heading:first-child {
		margin-top: 0 !important;
	}

	.section-heading::after {
		display: none !important;
	}

	/* ================================
	   PARAGRAPHS & TEXT
	   ================================ */
	
	p {
		font-size: 9pt !important;
		line-height: 1.6 !important;
		margin: 0 0 4mm 0 !important;
		color: #333333 !important;
		text-align: justify;
		orphans: 3;
		widows: 3;
	}

	strong {
		font-weight: 700;
		color: #000000;
	}

	/* ================================
	   EXPERIENCE ITEMS
	   ================================ */
	
	.experience-item {
		margin-bottom: 6mm !important;
		padding: 0 !important;
		border: none !important;
		page-break-inside: avoid;
	}

	.experience-item::before {
		display: none !important;
	}

	.experience-item h4 {
		font-size: 10.5pt !important;
		font-weight: 700 !important;
		margin: 0 0 1mm 0 !important;
		color: #000000 !important;
		line-height: 1.3;
	}

	.experience-item .company {
		font-size: 9pt !important;
		font-weight: 600 !important;
		color: #0056b3 !important;
		margin-bottom: 1mm !important;
		display: block;
	}

	.experience-item .date {
		font-size: 8pt !important;
		color: #666666 !important;
		margin-bottom: 2mm !important;
		display: block;
		font-style: italic;
	}

	.experience-item p {
		font-size: 9pt !important;
		margin: 2mm 0 0 0 !important;
		line-height: 1.5 !important;
		color: #444444 !important;
	}

	/* ================================
	   UTILITY CLASSES OVERRIDE
	   ================================ */
	
	.mb-5,
	.mb-3 {
		margin-bottom: 4mm !important;
	}

	.mt-5,
	.mt-4 {
		margin-top: 6mm !important;
	}

	.mb-1 {
		margin-bottom: 1mm !important;
	}

	.fw-bold {
		font-weight: 700 !important;
	}

	/* ================================
	   PAGE BREAK CONTROL
	   ================================ */
	
	.experience-item,
	.contact-box,
	.skill-badge,
	.profile-img {
		page-break-inside: avoid;
	}

	h3,
	.section-heading {
		page-break-after: avoid;
	}

	/* ================================
	   PRINT OPTIMIZATION
	   ================================ */
	
	/* Ensure links are visible in print */
	a[href^="http"]:not([href*="binaxpay.com"])::after {
		content: " (" attr(href) ")";
		font-size: 7pt;
		color: #666666;
	}

	/* Remove link underlines for cleaner print */
	a {
		text-decoration: none !important;
	}

	/* Optimize images for print */
	img {
		max-width: 100% !important;
		height: auto !important;
		image-rendering: crisp-edges;
	}
}
