/* ===============================================
   FIRE THEME – Противопожарен инженеринг
   Палитра: пожарно червено / пламъчно оранжево / въглен
   =============================================== */

:root {
	--fire-red: #c8102e;
	--fire-red-dark: #8f0b21;
	--fire-orange: #ff6b1a;
	--fire-amber: #ffb100;
	--charcoal: #1d1f24;
	--smoke: #2b2e35;
}

/* --- Бутoни --- */
.btn.btn-primary,
.btn-outline-fire {
	position: relative;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, color .25s ease, background .25s ease;
}
.btn.btn-primary::after,
.btn-outline-fire::after {
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 50%;
	height: 100%;
	background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
	transform: skewX(-25deg);
	transition: left .55s ease;
	pointer-events: none;
}
.btn.btn-primary:hover::after,
.btn-outline-fire:hover::after {
	left: 130%;
}
.btn.btn-primary {
	background: linear-gradient(135deg, var(--fire-red) 0%, var(--fire-orange) 100%);
	border: 1px solid var(--fire-red);
}
.btn.btn-primary:hover {
	background: linear-gradient(135deg, var(--fire-red) 0%, var(--fire-orange) 60%, #ff7d2e 100%);
	border: 1px solid var(--fire-red);
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 12px 25px -8px rgba(255, 107, 26, 0.55);
}
.btn.btn-primary:active {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px -6px rgba(200, 16, 46, 0.5);
}
.btn-outline-fire {
	border: 2px solid var(--fire-red);
	color: var(--fire-red);
	background: transparent;
	font-size: 0.9em;
}
.btn-outline-fire:hover {
	background: linear-gradient(135deg, var(--fire-red) 0%, var(--fire-orange) 100%);
	border-color: var(--fire-red);
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 12px 25px -8px rgba(255, 107, 26, 0.55);
}
.btn-outline-fire:active {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px -6px rgba(255, 107, 26, 0.5);
}

/* --- Основен акцентен цвят --- */
.bg-primary {
	background: linear-gradient(135deg, var(--fire-red) 0%, var(--fire-red-dark) 100%) !important;
}
.bg-darken {
	background: var(--charcoal) !important;
}

/* --- Навигация --- */
.ftco-navbar-light.navbar-dark.bg-dark {
	background: var(--charcoal) !important;
}
.ftco-navbar-light .nav-item.active > a,
.ftco-navbar-light .nav-item > a:hover {
	color: var(--fire-amber) !important;
}
@media (min-width: 992px) {
	.ftco-navbar-light .navbar-nav > .nav-item {
		display: flex;
		align-items: stretch;
	}
	.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}
.ftco-navbar-light.scrolled {
	background: var(--charcoal) !important;
	box-shadow: 0 2px 12px rgba(0,0,0,0.35) !important;
	border-bottom: 3px solid var(--fire-orange);
}
.ftco-navbar-light.scrolled .nav-link {
	color: #fff !important;
}
.ftco-navbar-light.scrolled .nav-item.active > a,
.ftco-navbar-light.scrolled .nav-item > a:hover {
	color: var(--fire-amber) !important;
}
.ftco-navbar-light.scrolled .navbar-toggler {
	color: #fff !important;
	border-color: rgba(255,255,255,0.4) !important;
}

/* --- Топ бар --- */
.top-mobile .text strong {
	color: var(--fire-red);
	letter-spacing: 1px;
}

/* --- Слайдер --- */
.home-slider .slider-item .overlay {
	background: linear-gradient(90deg, rgba(29, 31, 36, 0.9) 0%, rgba(143, 11, 33, 0.65) 60%, rgba(255, 107, 26, 0.35) 100%);
	opacity: 1;
}

/* --- Заглавие на секция "Защо" --- */
.why-title h2 {
	font-weight: 700;
	color: var(--charcoal);
	position: relative;
	display: inline-block;
	padding-bottom: 15px;
}
.why-title h2:after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 90px;
	height: 4px;
	background: linear-gradient(90deg, var(--fire-red), var(--fire-orange), var(--fire-amber));
	border-radius: 2px;
}
.heading-section h2 {
	position: relative;
}

/* --- Карти предимства --- */
.advantage-card {
	background: #fff;
	border-top: 4px solid var(--fire-orange);
	box-shadow: 0 10px 30px -8px rgba(29, 31, 36, 0.15);
	border-radius: 6px;
	padding: 30px 22px;
	height: 100%;
	margin-bottom: 30px;
	text-align: center;
	transition: transform .3s ease, box-shadow .3s ease;
}
.advantage-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px -10px rgba(200, 16, 46, 0.3);
}
.advantage-card .adv-icon {
	font-size: 46px;
	color: var(--fire-red);
	display: block;
	margin-bottom: 15px;
}
.advantage-card h3 {
	font-size: 17px;
	font-weight: 700;
	color: var(--charcoal);
}
.advantage-card p {
	font-size: 14px;
	color: #6c757d;
	margin-bottom: 0;
}

/* --- "Научи повече" съдържание (about.php) --- */
.turkish-content,
.turkish-content h1,
.turkish-content h2,
.turkish-content h3,
.turkish-content h4,
.turkish-content p,
.turkish-content li,
.turkish-content strong,
.turkish-content b,
.turkish-content span {
	color: #fff !important;
}
.turkish-content a {
	color: var(--fire-amber) !important;
	text-decoration: underline;
}

/* --- Секция "Защо турските студенти..." --- */
.why-turkish {
	background: linear-gradient(135deg, var(--charcoal) 0%, var(--smoke) 100%);
	border-left: 5px solid var(--fire-orange);
	border-radius: 6px;
	color: #e9ecef;
}
.why-turkish h3 {
	color: var(--fire-amber);
	font-weight: 700;
}
.fire-list {
	list-style: none;
	padding-left: 0;
}
.fire-list li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 12px;
}
.fire-list li:before {
	content: "\f30f"; /* ionicons flame */
	font-family: "Ionicons";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--fire-orange);
}

/* --- Банер 25 години --- */
.fire-banner {
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: var(--fire-red-dark);
}
.fire-banner .overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(90deg, rgba(143, 11, 33, 0.92), rgba(255, 107, 26, 0.75));
}
.fire-banner .container {
	position: relative;
	z-index: 1;
}
.fire-banner h2 {
	font-weight: 700;
	letter-spacing: 0.5px;
}

/* --- Подзаглавие Сакария --- */
.subheading-fire {
	color: var(--fire-red);
	font-size: 1.15em;
}

/* --- Хора --- */
.person-card {
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 10px 30px -8px rgba(29, 31, 36, 0.12);
	overflow: hidden;
	margin-bottom: 30px;
	height: 100%;
}
.person-card .img-wrap {
	height: auto !important;
}
.person-card .img {
	width: 100%;
	height: 280px;
	background-size: cover;
	background-position: center top;
	background-color: var(--smoke);
}
@media (min-width: 768px) {
	.person-card .img { height: 320px; }
}
@media (min-width: 992px) {
	.person-card .img { height: 360px; }
}
@media (min-width: 1200px) {
	.person-card .img { height: 400px; }
}
@media (max-width: 767.98px) {
	.person-card .img.img-hristov,
	.person-card .img.img-soyhan,
	.person-card .img.img-pehlivan {
		background-size: contain;
		background-position: center center;
		background-color: #fff;
	}
}
.person-card .img-wrap img {
	width: 100%;
	height: auto;
	display: block;
}
.person-card .text {
	padding: 0 20px 25px;
}
.person-card h3 {
	color: var(--fire-red);
	font-weight: 700;
	font-size: 20px;
	margin-bottom: 4px;
}
.person-card .position {
	display: block;
	color: var(--charcoal);
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 10px;
}
.person-card .person-motto {
	color: var(--fire-orange);
	font-size: 14px;
}
.person-card p {
	font-size: 14px;
	color: #6c757d;
}

/* --- Линия на времето --- */
.fire-timeline {
	position: relative;
	padding: 20px 0;
}
.fire-timeline:before {
	content: "";
	position: absolute;
	left: 90px;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--fire-amber), var(--fire-orange), var(--fire-red));
	border-radius: 2px;
}
.timeline-item {
	position: relative;
	padding-left: 140px;
	margin-bottom: 40px;
}
.timeline-item:after {
	content: "";
	position: absolute;
	left: 84px;
	top: 8px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--fire-red);
	border: 3px solid #fff;
	box-shadow: 0 0 0 3px var(--fire-orange);
}
.timeline-year {
	position: absolute;
	left: 0;
	top: 4px;
	width: 75px;
	text-align: right;
	font-weight: 800;
	color: var(--fire-red);
	font-size: 18px;
}
.timeline-content {
	background: #fff;
	border-left: 4px solid var(--fire-orange);
	border-radius: 6px;
	box-shadow: 0 8px 25px -8px rgba(29, 31, 36, 0.15);
	padding: 20px 25px;
}
.timeline-content h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--charcoal);
	margin-bottom: 8px;
}
.timeline-content p {
	margin-bottom: 0;
	font-size: 15px;
	color: #6c757d;
}
@media (max-width: 767px) {
	.fire-timeline:before { left: 8px; }
	.timeline-item { padding-left: 40px; }
	.timeline-item:after { left: 2px; }
	.timeline-year {
		position: static;
		width: auto;
		text-align: left;
		display: block;
		margin-bottom: 6px;
	}
}

/* --- FAQ акордеон --- */
.faq-item {
	margin-bottom: 12px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 6px 20px -8px rgba(29, 31, 36, 0.15);
}
.faq-question {
	background: linear-gradient(135deg, var(--charcoal), var(--smoke));
	color: #fff;
	padding: 16px 22px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background .3s ease;
}
.faq-question:hover {
	background: linear-gradient(135deg, var(--fire-red-dark), var(--fire-red));
}
.faq-question span {
	color: var(--fire-amber);
	margin-left: 12px;
}
.faq-answer {
	background: #fff;
	border-left: 4px solid var(--fire-orange);
}
.faq-answer p {
	padding: 18px 22px;
	margin-bottom: 0;
	color: #6c757d;
}

/* --- Секции / услуги от шаблона --- */
.services .icon span {
	color: #fff;
}
.services a {
	text-decoration: none;
	opacity: 1;
	transition: opacity 0.2s ease;
}
.services a:hover {
	opacity: 0.82;
	text-decoration: none;
}
.services-2 .icon {
	background: linear-gradient(135deg, var(--fire-red), var(--fire-orange)) !important;
}

/* --- Timeline изображения --- */
.fire-timeline .timeline-content img {
	display: block;
	margin: 10px 0 20px 0;
	border-radius: 6px;
	box-shadow: 0 8px 25px -8px rgba(29, 31, 36, 0.3);
}

/* --- Форма / apply --- */
.ftco-consult .overlay {
	background: linear-gradient(90deg, rgba(29, 31, 36, 0.85), rgba(143, 11, 33, 0.85)) !important;
}
.contact-bg {
	background-size: cover !important;
	background-position: center !important;
	background-attachment: fixed !important;
	background-repeat: no-repeat !important;
	position: relative;
	will-change: transform;
}
/* на мобилни устройства fixed background лагва/скачa */
@media (max-width: 991.98px) {
	.contact-bg {
		background-attachment: scroll !important;
	}
}

/* --- Футър --- */
.ftco-footer {
	background: var(--charcoal) !important;
	border-top: 4px solid var(--fire-orange);
}
.ftco-footer .ftco-footer-widget h2 {
	color: var(--fire-amber);
}
.ftco-footer-social li a {
	background: var(--fire-red) !important;
}

/* --- Научи повече --- */
.learn-more {
	color: var(--fire-red) !important;
	font-size: 22px !important;
}
.learn-more:hover {
	color: var(--fire-orange) !important;
}

/* --- Секция "За програмата" – тъмен overlay (фикс: бял текст на бял фон) --- */
#about {
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: var(--charcoal);
}
#about:before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(90deg, rgba(29, 31, 36, 0.93) 0%, rgba(143, 11, 33, 0.85) 100%);
}
#about .container {
	position: relative;
	z-index: 1;
}
#about .heading-section-white h2 {
	color: #fff;
	font-weight: 700;
	border-left: 5px solid var(--fire-orange);
	padding-left: 18px;
}
#about .heading-section-white p {
	color: rgba(255, 255, 255, 0.9);
}

/* --- Гаранция за четимост на бели секции --- */
.heading-section-white h2,
.heading-section-white p,
.heading-section-white span {
	color: #fff;
}
.ftco-consult .heading-section-white h2 {
	color: var(--fire-amber);
}

/* --- Заглавия на секции – огнен акцент --- */
.ftco-section .heading-section > h2:first-child,
.ftco-section .heading-section h2.text-center {
	font-weight: 700;
	color: var(--charcoal);
	padding-bottom: 15px;
	position: relative;
}
.ftco-section .heading-section h2.text-center:after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 90px;
	height: 4px;
	background: linear-gradient(90deg, var(--fire-red), var(--fire-orange), var(--fire-amber));
	border-radius: 2px;
}

/* --- Карти с изображения (ВСУ) --- */
.course .img {
	border-radius: 6px;
	box-shadow: 0 8px 25px -8px rgba(29, 31, 36, 0.25);
}
.course .text p {
	color: var(--charcoal);
	font-weight: 500;
}

/* --- Изображения в секциите --- */
.image-responsive {
	border-radius: 8px;
	box-shadow: 0 12px 35px -10px rgba(29, 31, 36, 0.3);
}

/* --- Слайдер текст --- */
.home-slider .slider-text h1 {
	font-weight: 800;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.home-slider .slider-text p {
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* --- Хедър CTA бутони --- */
.header-cta-wrap {
	gap: 0.5rem;
}
.header-cta-btn {
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	padding: 0.75rem 0.75rem !important;
}
@media (min-width: 768px) {
	.header-cta-btn {
		font-size: 1.05rem;
		white-space: nowrap;
		padding: 1rem 1.5rem !important;
	}
	.topper .header-cta-btn {
		width: auto;
	}
}

/* --- Мобилна оптимизация --- */

/* Fixed apply button for mobile */
#fixedbutton {
	position: fixed;
	bottom: 16px;
	right: 16px;
	z-index: 999;
	margin: 0;
}
#fixedbutton .btn {
	box-shadow: 0 6px 20px -4px rgba(200, 16, 46, 0.5);
	white-space: nowrap;
}
#fixedbutton .text-mobile {
	font-weight: 600;
}

/* Mobile header: stack logo and CTA buttons vertically */
@media (max-width: 991.98px) {
	.bg-top .row.no-gutters {
		flex-direction: column !important;
		align-items: stretch !important;
	}
	.bg-top .col-md-5 {
		order: 1;
		position: relative;
		z-index: 1;
		display: flex !important;
		justify-content: center !important;
		padding-top: 1rem;
		padding-bottom: 0.5rem;
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
	}
	.bg-top .col-md-5 img {
		max-width: 280px !important;
		width: 100% !important;
		height: auto !important;
	}
	.bg-top .col-lg-7 {
		order: 2;
		position: relative;
		z-index: 2;
		display: flex !important;
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
		padding: 0 15px 1rem;
		overflow: visible;
	}
	.bg-top .col-lg-7 > .row {
		margin: 0;
		width: 100%;
	}
	.topper.mobi-minus {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		justify-content: center !important;
		position: static !important;
	}
	.header-cta-wrap {
		flex-wrap: wrap !important;
		justify-content: center !important;
		gap: 0.5rem !important;
		width: 100%;
		position: static !important;
	}
	.header-cta-btn {
		flex: 1 1 auto;
		min-width: 140px;
		font-size: 0.9rem !important;
		padding: 0.6rem 1rem !important;
		white-space: normal !important;
		position: static !important;
	}
}

/* Very narrow screens (Fold 5 cover ~344px, small phones) */
@media (max-width: 400px) {
	.bg-top .col-md-5 img {
		max-width: 220px !important;
	}
	.top-mobile .text strong {
		font-size: 14px;
	}
	.header-cta-btn {
		min-width: 120px;
		font-size: 0.85rem !important;
		padding: 0.5rem 0.75rem !important;
	}
	#fixedbutton {
		bottom: 10px;
		right: 10px;
	}
	#fixedbutton .btn {
		font-size: 0.9rem;
		padding: 0.6rem 1rem !important;
	}
}

/* Fold 5 cover screen and similar ultra-narrow */
@media (max-width: 344px) {
	.bg-top .col-md-5 img {
		max-width: 180px !important;
	}
	.top-mobile .text strong {
		font-size: 13px;
		letter-spacing: 0.5px;
	}
	.header-cta-btn {
		min-width: 100px;
		font-size: 0.8rem !important;
	}
}
