/* Fonts */
@font-face {
    font-family: 'Segoe UI';
    src: local('Segoe UI'), local('SegoeUI'),
        url('../fonts/SegoeUI.woff2') format('woff2'),
        url('../fonts/SegoeUI.woff') format('woff'),
        url('../fonts/SegoeUI.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Segoe UI';
    src: local('Segoe UI Bold'), local('SegoeUI-Bold'),
        url('../fonts/SegoeUI-Bold.woff2') format('woff2'),
        url('../fonts/SegoeUI-Bold.woff') format('woff'),
        url('../fonts/SegoeUI-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Segoe UI';
    src: local('Segoe UI Semibold'), local('SegoeUI-SemiBold'),
        url('../fonts/SegoeUI-SemiBold.woff2') format('woff2'),
        url('../fonts/SegoeUI-SemiBold.woff') format('woff'),
        url('../fonts/SegoeUI-SemiBold.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	background: #f8f9fa;
}

input, select, button {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
header {
	background: linear-gradient(135deg, #003d82 0%, #0066cc 100%);
	color: white;
	padding: 1.5rem 0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.logo {
	font-size: 1.8rem;
	font-weight: bold;
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: white;
}

.logo-icon {
	width: 40px;
	height: 40px;
	background: white;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: #003d82;
}

.search-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.filter-group label {
	font-size: 0.9rem;
	font-weight: 500;
}

.filter-group select,
.filter-group input {
	padding: 0.6rem;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	background: white;
	color: #333;
}

.search-btn {
	padding: 0.6rem 2rem;
	background: #ff8c42;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s;
	margin-top: auto;
}

.search-btn:hover {
	background: #ff7028;
	transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
	background: white;
	padding: 1rem 0;
	border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-content {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: #666;
	list-style: none;
	padding: 0;
	margin: 0;
}

.breadcrumb-content li {
	display: inline;
}

.breadcrumb a {
	color: #0066cc;
	text-decoration: none;
	transition: color 0.3s;
}

.breadcrumb a:hover {
	color: #003d82;
	text-decoration: underline;
}

.breadcrumb-separator {
	color: #999;
}

.breadcrumb-current {
	color: #333;
	font-weight: 500;
}

.breadcrumb a:has(.breadcrumb-current) {
	color: #333;
}

/* Main Content */
main {
	padding: 2rem 0;
}

/* List Page Layout */
.list-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2rem;
	align-items: start;
}

/* Sidebar Filters */
.sidebar-filters {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	position: sticky;
	top: 20px;
}

.sidebar-filters h3 {
	margin-bottom: 1.5rem;
	color: #003d82;
	font-size: 1.2rem;
	border-bottom: 2px solid #0066cc;
	padding-bottom: 0.5rem;
}

.filter-group-checkbox {
	margin-bottom: 1rem;
}

.filter-title {
	font-weight: 600;
	color: #333;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.checkbox-list {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.checkbox-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.9rem;
	color: #555;
	line-height: 1.2;
	padding: 0.2rem 0;
}

.checkbox-item input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: #0066cc;
}

.checkbox-item:hover {
	color: #003d82;
}

.checkbox-item.hidden {
	display: none;
}

.show-more-link {
	color: #0066cc;
	font-size: 0.9rem;
	cursor: pointer;
	margin-top: 0.3rem;
	display: inline-block;
	font-weight: 500;
	text-decoration: none;
}

.show-more-link:hover {
	color: #003d82;
	text-decoration: underline;
}

/* Main Content Area */
.main-content {
	flex: 1;
}

.results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.results-count {
	font-size: 1.2rem;
	color: #666;
}

.results-count strong {
	color: #003d82;
}

.results-count span {
	font-size: 0.95rem;
}

.results-count a {
	color: #0066cc;
	text-decoration: none;
	transition: color 0.3s;
}

.results-count a:hover {
	color: #003d82;
	text-decoration: underline;
}

.formations-grid {
	display: grid;
	gap: 1.5rem;
}

/* Formation Card */
.formation-card {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	cursor: pointer;
	transition: all 0.3s;
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 1.5rem;
	border-left: 4px solid transparent;
	text-decoration: none;
	color: inherit;
}

.formation-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
	border-left-color: #ff8c42;
	color: inherit;
}

.formation-logo {
	width: 80px;
	height: 80px;
	background: white;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	border: 2px solid #e0e0e0;
}

.formation-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 5px;
}

.formation-info {
	flex: 1;
}

.formation-title {
	font-size: 1.3rem;
	font-weight: bold;
	color: #003d82;
	margin-bottom: 0.5rem;
}

.formation-school {
	color: #888;
	font-size: 0.95rem;
	margin-bottom: 0.8rem;
	display: flex;
	align-items: center;
	gap: 5px;
}

.formation-meta {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 0.8rem;
	flex-wrap: wrap;
}

.meta-tag {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	color: #555;
	padding: 0.3rem 0.8rem;
	background: #f0f4f8;
	border-radius: 6px;
}

.meta-tag.location {
	background: #e3f2fd;
	color: #0066cc;
}

.meta-tag.contract {
	background: #fff3e0;
	color: #ff8c42;
}

.meta-tag.diploma {
	background: #f3e5f5;
	color: #7b1fa2;
}

.formation-description {
	color: #666;
	line-height: 1.6;
	font-size: 0.95rem;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
	margin-top: 2rem;
	padding: 1rem 0;
}

.pagination-btn {
	padding: 0.5rem 0.8rem;
	background: white;
	color: #003d82;
	border: 1px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s;
	font-weight: 500;
	font-size: 0.85rem;
	text-decoration: none;
	display: inline-block;
}

.pagination-btn:hover:not(:disabled):not(.disabled) {
	background: #0066cc;
	color: white;
	border-color: #0066cc;
}

.pagination-btn:disabled,
.pagination-btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.pagination-btn.active {
	background: #003d82;
	color: white;
	border-color: #003d82;
	pointer-events: none;
}

.pagination-points {
	padding-left: 1px;
	padding-right: 1px;
	font-size: 14px;
	color: #003d82;
}

/* Footer */
footer {
	background: linear-gradient(135deg, #003d82 0%, #0066cc 100%);
	color: #f0f4f8;
	padding: 3rem 0 1.5rem;
	margin-top: 3rem;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-section h4 {
	color: white;
	font-size: 1.1rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid #ff8c42;
	padding-bottom: 0.5rem;
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	list-style: none;
	padding: 0;
}

.footer-links.city, .footer-links.speciality {
	gap: 0rem;
}

.footer-links li {
	margin: 0;
}

.footer-links a {
	color: #e3f2fd;
	text-decoration: none;
	transition: color 0.3s;
	font-size: 0.95rem;
	display: block;
}

.footer-links a:hover {
	color: #ff8c42;
	padding-left: 5px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: 1.5rem;
	text-align: center;
	color: #e3f2fd;
	font-size: 0.9rem;
}

.footer-bottom a {
	color: #ff8c42;
	text-decoration: none;
}

.footer-bottom a:hover {
	text-decoration: underline;
}

.footer-bottom img {
	opacity: 0.4;
    margin-top: 1rem;
    height: 25px;
}

/* Detail Page */
/*.detail-page {
	display: block;
}*/

.back-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.5rem;
	background: white;
	color: #003d82;
	border: 1px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	font-weight: 500;
	text-decoration: none;
	margin-bottom: 1.5rem;
}

.back-btn:hover {
	background: #f8f9fa;
	border-color: #003d82;
}

.detail-content-wrapper {
	display: block;
}

.detail-main {
	background: white;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	max-width: 1000px;
	margin: 0 auto;
}

.detail-header {
	margin-bottom: 2rem;
}

.detail-header-top {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.detail-logo {
	width: 100px;
	height: 100px;
	background: white;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	border: 2px solid #e0e0e0;
}

.detail-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
}

.detail-header-info {
	flex: 1;
}

.detail-title {
	font-size: 2rem;
	color: #003d82;
	margin-bottom: 1rem;
}

.detail-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.meta-item {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.meta-label {
	/*font-size: 0.85rem;*/
	color: #888;
	/*text-transform: uppercase;*/
	font-weight: 500;
}

.meta-value {
	font-size: 1rem;
	color: #333;
	font-weight: 500;
}

.application-links {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.apply-btn {
	padding: 1rem 1.5rem;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.apply-btn.primary {
	background: #ff8c42;
	color: white;
}

.apply-btn.primary:hover {
	background: #ff7028;
	transform: translateY(-2px);
}

.apply-btn.secondary {
	background: white;
	color: #0066cc;
	border: 2px solid #0066cc;
}

.apply-btn.secondary:hover {
	background: #0066cc;
	color: white;
}

.detail-section {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	/*border-bottom: 1px solid #eee;*/
}

.detail-section:last-child {
	border-bottom: none;
}

.two-columns-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	padding-bottom: 0;
	border-bottom: none;
}

.two-columns-section .detail-section {
	margin-bottom: 0;
	padding-bottom: 0;
}

.articles-section {
	margin-top: 3rem;
	margin-bottom: 0rem;
	padding-bottom: 0rem;
	width: 50%;
	max-width: 50%;
}

.section-title {
	font-size: 1.4rem;
	color: #003d82;
	margin-bottom: 1rem;
}

.specialties {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.specialty-tag {
	padding: 0.5rem 1rem;
	background: #e3f2fd;
	color: #0066cc;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
}

.specialty-tag.features {
	background: #fff3e0;
	color: #ff8c42;
}

.similar-formations {
	display: grid;
	gap: 1rem;
}

.similar-formations .link {
	color: #0066cc;
	font-size: 0.9rem;
	cursor: pointer;
	margin-top: 0.3rem;
	display: inline-block;
	font-weight: 500;
	text-decoration: none;
}

.similar-formations .link:hover {
	color: #003d82;
	text-decoration: underline;
}

.similar-card {
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	border-left: 3px solid transparent;
	line-height: 1.3;
	text-decoration: none;
	color: inherit;
	display: block;
}

.similar-card:hover {
	background: #e3f2fd;
	transform: translateX(5px);
	border-left-color: #0066cc;
	color: inherit;
}

.similar-card h4 {
	color: #003d82;
	margin-bottom: 0.3rem;
	line-height: 1.3;
}

.similar-card-school {
	color: #888;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.similar-card-meta {
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.similar-meta-tag {
	font-size: 0.85rem;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	display: inline-block;
	line-height: 1.2;
}

.similar-meta-tag.location {
	background: #e3f2fd;
	color: #0066cc;
}

.similar-meta-tag.contract {
	background: #fff3e0;
	color: #ff8c42;
}

.similar-meta-tag.diploma {
	background: #f3e5f5;
	color: #7b1fa2;
}

.article-link {
	display: block;
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
	transition: all 0.3s;
	margin-bottom: 0.8rem;
}

.article-link strong {
	color: #003d82;
}

.article-link:hover {
	background: #fff3e0;
	transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
	.list-layout {
		grid-template-columns: 1fr;
	}

	.sidebar-filters {
		display: none;
	}
}

@media (max-width: 768px) {
	.header-content {
		flex-direction: column;
		gap: 1rem;
	}

	.search-filters {
		/*grid-template-columns: 1fr;*/
	}

	.formation-card {
		grid-template-columns: 1fr;
	}

	.formation-logo {
		width: 60px;
		height: 60px;
	}

	.pagination {
		flex-wrap: wrap;
	}

	.detail-header-top {
		flex-direction: column;
	}

	.two-columns-section {
		grid-template-columns: 1fr;
	}

	.articles-section {
		width: 100%;
		max-width: 100%;
	}
	
	.footer-links {
		gap: 0.4rem !important;
	}
}

/* Utility classes for inline styles */
.header-subtitle {
	color: white;
	font-size: 0.9rem;
	margin: 0;
}

.header-subtitle a {
	color: white;
	text-decoration: none;
}

.header-subtitle a:hover {
	text-decoration: underline;
}

.filter-apply-btn {
	width: 100%;
	margin-top: 1rem;
}

.article-description {
	font-size: 0.9rem;
	color: #888;
}

.footer-copyright {
	margin-top: 1rem;
}

.pagination-dots {
	padding: 0 0.5rem;
}

/*------------Return on top-----------------*/
.cd-top {
	display: inline-block;
	height: 40px;
	width: 40px;
	position: fixed;
	bottom: 40px;
	right: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
	/* image replacement properties */
	overflow: hidden;
	text-indent: 100%;
	white-space: nowrap;
	background: #ff8c42 url(../img/cd-top-arrow.svg) no-repeat center 50%;
	visibility: hidden;
	opacity: 0;
	-webkit-transition: opacity .3s 0s, visibility 0s .3s;
	-moz-transition: opacity .3s 0s, visibility 0s .3s;
	transition: opacity .3s 0s, visibility 0s .3s;
	border-radius: 8px;
}
.cd-top.cd-is-visible, .cd-top.cd-fade-out, .cd-top:hover {
	-webkit-transition: opacity .3s 0s, visibility 0s 0s;
	-moz-transition: opacity .3s 0s, visibility 0s 0s;
	transition: opacity .3s 0s, visibility 0s 0s;
}
.cd-top.cd-is-visible {
	/* the button becomes visible */
	visibility: visible;
	opacity: 1;
}
.cd-top.cd-fade-out {
	/* if the user keeps scrolling down, the button is out of focus and becomes less visible */
	opacity: .5;
}
.cd-top:hover {
	background-color: #ff7028;
	opacity: 1;
}
@media only screen and (min-width: 768px) {
	.cd-top {
		right: 20px;
		bottom: 20px;
	}
}
@media only screen and (min-width: 1024px) {
	.cd-top {
		height: 60px;
		width: 60px;
		right: 30px;
		bottom: 30px;
	}
}