/* ==========================================================================
   VOC CERTIFICATES WIDGET CSS
   ========================================================================== */

.voc-certificates-section {
	position: relative;
	background-image: url('../../images/sertifikalarimizbg.png');
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	padding: 70px 4% 80px 4%;
	width: 100%;
}

.voc-certificates-container {
	max-width: 1240px;
	margin: 0 auto;
}

.voc-certificates-header {
	text-align: center;
	margin-bottom: 44px;
}

.voc-certificates-title {
	font-family: 'Playfair Display', serif;
	font-size: 2.8rem;
	font-weight: 700;
	font-style: italic;
	color: #0f2b48;
	letter-spacing: -0.5px;
	margin-bottom: 10px;
	line-height: 1.15;
}

.voc-certificates-subtitle {
	font-size: 1.05rem;
	color: #64748b;
	font-weight: 400;
	max-width: 650px;
	margin: 0 auto;
}

/* 3x2 Grid */
.voc-certificates-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 36px;
}

/* Card Styling */
.voc-cert-card {
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid rgba(15, 43, 72, 0.08);
	padding: 22px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: 0 4px 20px rgba(15, 43, 72, 0.04);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	font-family: 'Outfit', sans-serif;
}

.voc-cert-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(15, 43, 72, 0.1);
	border-color: rgba(15, 43, 72, 0.18);
}

.voc-cert-card.voc-cert-card--no-pdf {
	cursor: default;
}

.voc-cert-card.voc-cert-card--no-pdf:hover {
	transform: none;
	box-shadow: 0 4px 20px rgba(15, 43, 72, 0.04);
	border-color: rgba(15, 43, 72, 0.08);
}

.voc-cert-card__badge-wrapper {
	width: 84px;
	height: 84px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.voc-cert-card__content {
	flex: 1;
	min-width: 0;
}

.voc-cert-card__title {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 6px;
	line-height: 1.25;
	margin-top: 0;
}

.voc-cert-card__title--teal {
	color: #236853;
}

.voc-cert-card__title--dark {
	color: #2d3748;
}

.voc-cert-card__title--blue {
	color: #0f4b81;
}

.voc-cert-card__title--green {
	color: #26734d;
}

.voc-cert-card__desc {
	font-size: 0.83rem;
	color: #52637a;
	line-height: 1.45;
	font-weight: 400;
	margin: 0;
}

.voc-cert-card__doc-wrapper {
	width: 78px;
	height: 104px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.voc-cert-card__doc-wrapper::after {
	content: 'PDF İncele';
	position: absolute;
	inset: 0;
	background: rgba(15, 43, 72, 0.88);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(2px);
	z-index: 5;
}

.voc-cert-card:hover .voc-cert-card__doc-wrapper::after {
	opacity: 1;
}

/* Document Preview Component */
.voc-cert-doc-paper {
	width: 76px;
	height: 102px;
	background: #ffffff;
	border-radius: 4px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
	padding: 5px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	user-select: none;
	transition: transform 0.2s ease;
}

.voc-cert-card:hover .voc-cert-doc-paper {
	transform: scale(1.04);
}

.voc-cert-doc-inner {
	width: 100%;
	height: 100%;
	border-radius: 2px;
	padding: 4px 3px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	text-align: center;
}

.voc-cert-doc-paper--vegan .voc-cert-doc-inner {
	border: 1px solid #80cbc4;
	outline: 1px solid #e0f2f1;
	outline-offset: -3px;
}

.voc-cert-doc-paper--sedex .voc-cert-doc-inner {
	border: 1px solid #ef5350;
	outline: 1px solid #ffebee;
	outline-offset: -3px;
}

.voc-cert-doc-paper--derm .voc-cert-doc-inner,
.voc-cert-doc-paper--iso9001 .voc-cert-doc-inner,
.voc-cert-doc-paper--ce .voc-cert-doc-inner {
	border: 1px solid #64b5f6;
	outline: 1px solid #e3f2fd;
	outline-offset: -3px;
}

.voc-cert-doc-paper--iso14001 .voc-cert-doc-inner {
	border: 1px solid #81c784;
	outline: 1px solid #e8f5e9;
	outline-offset: -3px;
}

.voc-cert-doc-header-text {
	font-size: 6px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.2px;
	text-transform: uppercase;
	margin-top: 1px;
}

.voc-cert-doc-lines {
	width: 85%;
	display: flex;
	flex-direction: column;
	gap: 2.5px;
	margin: 3px 0;
}

.voc-cert-doc-line {
	height: 1.5px;
	background: #e0e0e0;
	border-radius: 1px;
	width: 100%;
}

.voc-cert-doc-line--short {
	width: 60%;
	align-self: center;
}

.voc-cert-doc-footer {
	display: flex;
	align-items: center;
	justify-content: space-around;
	width: 100%;
	margin-bottom: 1px;
}

/* Core Values / Pillars Strip */
.voc-cert-pillars-strip {
	background: #ffffff;
	border-radius: 20px;
	padding: 26px 36px;
	box-shadow: 0 4px 20px rgba(15, 43, 72, 0.05);
	border: 1px solid rgba(15, 43, 72, 0.08);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.voc-cert-pillar-item {
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
}

.voc-cert-pillar-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: -14px;
	top: 15%;
	height: 70%;
	width: 1px;
	background: #e8eef5;
}

.voc-cert-pillar-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #f2f6fa;
	border: 1px solid #dce5f0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: #0f2b48;
	flex-shrink: 0;
}

.voc-cert-pillar-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f2b48;
	margin-bottom: 2px;
	margin-top: 0;
}

.voc-cert-pillar-desc {
	font-size: 0.84rem;
	color: #64748b;
	line-height: 1.4;
	margin: 0;
}

/* PDF Modal Override Base */
.voc-pdf-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.voc-pdf-modal.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.voc-pdf-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 25, 44, 0.75);
	backdrop-filter: blur(6px);
}

.voc-pdf-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 900px;
	height: 88vh;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 10;
	transform: scale(0.95) translateY(16px);
	transition: transform 0.3s ease;
}

.voc-pdf-modal.active .voc-pdf-modal__dialog {
	transform: scale(1) translateY(0);
}

.voc-pdf-modal__header {
	background: #0f2b48;
	color: #ffffff;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.voc-pdf-modal__title-group {
	display: flex;
	align-items: center;
	gap: 14px;
}

.voc-pdf-modal__icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #64b5f6;
	flex-shrink: 0;
}

.voc-pdf-modal__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	margin: 0 0 2px 0;
}

.voc-pdf-modal__subtitle {
	font-size: 0.8rem;
	color: #9cb2cb;
	font-weight: 400;
}

.voc-pdf-modal__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.voc-pdf-modal__download-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #8db580;
	color: #ffffff;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}

.voc-pdf-modal__download-btn:hover {
	background: #7ca570;
	transform: translateY(-1px);
	color: #fff;
}

.voc-pdf-modal__close-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	transition: background 0.2s;
	cursor: pointer;
	border: none;
}

.voc-pdf-modal__close-btn:hover {
	background: rgba(255, 255, 255, 0.25);
}

.voc-pdf-modal__toolbar {
	background: #1e293b;
	color: #cbd5e1;
	padding: 8px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.82rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.voc-pdf-toolbar__left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.voc-pdf-toolbar__tag {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #34d399;
	font-weight: 600;
}

.voc-pdf-toolbar__pages {
	color: #94a3b8;
}

.voc-pdf-toolbar__right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.voc-pdf-toolbar__btn {
	width: 30px;
	height: 30px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	color: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.2s;
	border: none;
}

.voc-pdf-toolbar__btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.voc-pdf-toolbar__zoom-val {
	min-width: 44px;
	text-align: center;
	font-weight: 600;
	color: #f8fafc;
}

.voc-pdf-modal__body {
	flex: 1;
	width: 100%;
	background: #404448;
	position: relative;
	overflow: hidden;
}

.voc-pdf-modal__iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* Media Queries for Responsive Design */
@media (max-width: 1100px) {
	.voc-certificates-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 850px) {
	.voc-cert-pillars-strip {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.voc-cert-pillar-item:not(:last-child)::after {
		display: none;
	}
}

@media (max-width: 768px) {
	.voc-pdf-modal__dialog {
		height: 94vh;
		border-radius: 12px;
	}

	.voc-pdf-modal__header {
		padding: 12px 16px;
	}

	.voc-pdf-modal__title {
		font-size: 1rem;
	}

	.voc-pdf-modal__subtitle {
		display: none;
	}

	.voc-pdf-modal__download-btn span {
		display: none;
	}
}

@media (max-width: 720px) {
	.voc-certificates-grid {
		grid-template-columns: 1fr;
	}

	.voc-certificates-title {
		font-size: 2.2rem;
	}

	.voc-cert-card {
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.voc-cert-card__content {
		width: 100%;
		order: 3;
		margin-top: 10px;
	}
}
