/* Custom overrides for dropdown descriptions added by assistant
	 - Allow multi-line descriptions under .dropdown-link without breaking the flex layout
	 - Keep paragraphs compact and muted so columns keep their width/height
	 - Align text for RTL/normal flows by inheriting the container alignment
*/

.dropdown-grid-item a.dropdown-link {
	/* Make link contents stack nicely when a description <p> is present */
	align-items: flex-start !important;
}

.dropdown-grid-item a.dropdown-link .drop-title {
	display: block;
	margin: 0;
}

.dropdown-grid-item a.dropdown-link p {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	color: #6c757d;
	line-height: 1.3;
	white-space: normal;
}

.dropdown-grid-item a.dropdown-link span {
	/* keep icon aligned with the title/text */
	margin-top: 3px;
	flex-shrink: 0;
}

/* Ensure last-item (image) sits correctly in the grid when columns have different heights */
.width-full-3 .dropdown-grid-item { vertical-align: top; }

/* Small responsive tweak: reduce paragraph size on narrow dropdowns */
@media (max-width: 575px) {
	.dropdown-grid-item a.dropdown-link p { font-size: 0.85rem; }
}

/* Make width-full-3 dropdowns with custom 3-column layout */
.dropdown-grid.rounded-custom.width-full-3 {
	display: grid !important;
	grid-template-columns: 1fr 1fr 1.2fr !important; /* 3 sütun: sol, orta, sağ (daha geniş) */
	width: auto !important;
	gap: 0rem !important;
	overflow: hidden !important;
}

/* Neutralize last-item forced spanning - let it be a normal grid item */
.width-full-3 .dropdown-grid-item.last-item {
	grid-column-start: auto !important;
	grid-column-end: auto !important;
	display: flex !important;
	align-items: stretch !important;
	justify-content: stretch !important;
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	border-radius: 0 16px 16px 0 !important;
}

/* Previously we hid the right-side image column for services while troubleshooting.
	The user requested restoring the original Hizmetlerimiz (services) dropdown layout,
	so don't force-hide the .last-item here. Keep the rule removed so the image shows.
*/

/* Hide the right-side image/empty column only for the SSS (faq) dropdown to remove the gap */
.dropdown-menu.sss-dropdown .width-full .dropdown-grid-item.last-item {
    display: none !important;
}

/* Also shrink the SSS dropdown grid to a single/auto column so the menu doesn't keep a fixed wide container */
.dropdown-menu.sss-dropdown .dropdown-grid.width-full {
	grid-template-columns: 1fr !important;
	width: auto !important;
	gap: 0.25rem !important;
	padding: 0.25rem !important;
}

/* Position the SSS parent so the dropdown positions relative to the SSS link */

.main-menu li.sss-parent{position:relative}
.main-menu li.sss-parent .dropdown-menu.sss-dropdown{left:50% !important;transform:translateX(-50%) !important;right:auto !important}

/* Increase horizontal breathing room inside SSS dropdown */
.dropdown-menu.sss-dropdown .dropdown-link {
	display: flex;
	align-items: flex-start;
	gap: 1rem; /* space between icon and text */
	padding: 0.8rem 1.4rem !important; /* vertical / horizontal padding */
	border-radius: 0.5rem;
}

.dropdown-menu.sss-dropdown .dropdown-link span {
	min-width: 30px; /* reserve space for icon so text lines up */
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.dropdown-menu.sss-dropdown .dropdown-link .drop-title {
	margin: 0;
	font-weight: 600;
	line-height: 1.25;
}

.dropdown-menu.sss-dropdown .dropdown-link p {
	margin: 0.35rem 0 0;
	color: #6c757d;
	font-size: 0.95rem;
	line-height: 1.45;
}

.dropdown-menu.sss-dropdown .dropdown-grid { gap: 0.6rem !important; }

/* Visual alignment fixes for SSS dropdown: left-align content, constrain width, and balance icon/text spacing */
.dropdown-menu.sss-dropdown {
	min-width: 220px !important;
	max-width: 320px !important;
	width: auto !important;
	text-align: left !important;
	padding: 0.35rem !important;
}

.dropdown-menu.sss-dropdown .dropdown-grid {
	padding: 0.25rem 0.25rem !important;
}

.dropdown-menu.sss-dropdown .dropdown-link {
	justify-content: flex-start !important;
	text-align: left !important;
	padding: 0.65rem 1.1rem !important; /* vertical / horizontal */
}

.dropdown-menu.sss-dropdown .dropdown-link span {
	min-width: 34px !important; /* reserve icon column */
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-right: 0.9rem !important;
}

.dropdown-menu.sss-dropdown .dropdown-link .drop-title,
.dropdown-menu.sss-dropdown .dropdown-link p {
	text-align: left !important;
}

/* Make each link block fill available width so alignment is consistent */
.dropdown-menu.sss-dropdown .dropdown-link {
	display: flex !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Slightly reduce the rounded corners/arrow overlap on small screens */
@media (max-width: 576px) {
	.dropdown-menu.sss-dropdown { min-width: 180px !important; max-width: 260px !important; }
	.dropdown-menu.sss-dropdown .dropdown-link { padding: 0.55rem 0.9rem !important; }
}

/* Force single-line titles/descriptions in SSS dropdown and truncate if too long */
.dropdown-menu.sss-dropdown .dropdown-link .drop-title,
.dropdown-menu.sss-dropdown .dropdown-link p {
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

/* Give more width on larger screens so items fit on one line */
@media (min-width: 577px) {
	.dropdown-menu.sss-dropdown { min-width: 300px !important; max-width: 420px !important; }
}

/* Reduce icon/text and vertical spacing inside SSS dropdown */
.dropdown-menu.sss-dropdown {
	padding: 0.25rem 0.6rem !important; /* tighter container */
}

.dropdown-menu.sss-dropdown .dropdown-link {
	gap: 0.55rem !important;          /* smaller space between icon and text */
	padding: 0.45rem 0.9rem !important; /* reduce top/bottom and left/right padding */
	align-items: center !important;
}

.dropdown-menu.sss-dropdown .dropdown-link .drop-title,
.dropdown-menu.sss-dropdown .dropdown-link p {
	line-height: 1 !important;        /* tighter vertical rhythm */
	margin: 0 !important;
}

.dropdown-menu.sss-dropdown .dropdown-link + .dropdown-link {
	margin-top: 0.25rem !important;  /* small vertical gap between items */
}

/* tighten icon column */
.dropdown-menu.sss-dropdown .dropdown-link span {
	min-width: 26px !important;       /* slightly smaller reserved width for icons */
	margin-right: 0.6rem !important;  /* reduce icon-to-text space */
}

/* reduce extra bottom space on the dropdown */
.dropdown-menu.sss-dropdown .dropdown-grid {
	padding-bottom: 0.25rem !important;
}

@media (max-width: 576px) {
	.dropdown-menu.sss-dropdown { min-width: 180px !important; max-width: 300px !important; }
	.dropdown-menu.sss-dropdown .dropdown-link { padding: 0.45rem 0.8rem !important; }
}



/* Remove horizontal gap between icon and text in SSS dropdown */
.dropdown-menu.sss-dropdown .dropdown-link {
	gap: 0 !important;               /* currently zeroed; we'll set a tiny gap below for fine control */
}

.dropdown-menu.sss-dropdown .dropdown-link span {
	margin-right: 0 !important;      /* remove explicit right margin */
	min-width: 0 !important;         /* allow icon to take only its natural width */
	width: auto !important;
}

/* If icons still feel too close, we can add a tiny padding instead of margin (e.g. 6px) */

/* Small (very slight) gap between icon and text to improve readability */
.dropdown-menu.sss-dropdown .dropdown-link {
	gap: 0.35rem !important; /* ~5.6px — small but visible */
}

/* Scroll to Top Button Styles */
.scroll-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	z-index: 999;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
	transition: all 0.3s ease;
	opacity: 0;
	visibility: hidden;
}

.scroll-to-top.active {
	display: flex;
	opacity: 1;
	visibility: visible;
}

.scroll-to-top:hover {
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
	transform: translateY(-3px);
}

.scroll-to-top:active {
	transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.scroll-to-top {
		bottom: 20px;
		right: 20px;
		width: 45px;
		height: 45px;
		font-size: 18px;
	}
}

/* Dark Mode Dropdown Menu Fixes */

/* Bank Account Accordion Styles */
.accordion {
	--bs-accordion-padding-y: 0;
	--bs-accordion-padding-x: 0;
}

.accordion-item {
	border: 1px solid #e9ecef !important;
	background-color: #ffffff;
	transition: all 0.3s ease;
}

.accordion-item:hover {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.accordion-button {
	padding: 1rem 1.25rem;
	background-color: #ffffff;
	color: #212529;
	border: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
	background-color: #f0f4ff;
	color: #0d6efd;
	box-shadow: none;
}

.accordion-button:focus {
	border-color: #0d6efd;
	outline: none;
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.accordion-button:hover {
	background-color: #f8f9ff;
}

.accordion-body {
	padding: 1.5rem 1.25rem;
	background-color: #f8f9fa;
	border-top: 1px solid #e9ecef;
}

.accordion-item .accordion-body .mb-3 {
	margin-bottom: 1.25rem;
}

.accordion-item .accordion-body .mb-3:last-child {
	margin-bottom: 0;
}

.accordion-item .accordion-body p {
	margin-bottom: 0.25rem;
}

.accordion-item .accordion-body .text-muted {
	color: #6c757d !important;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.accordion-item .accordion-body .fw-bold {
	color: #212529;
	font-size: 1rem;
	word-break: break-all;
}

/* Copy Button Styling */
.accordion-body .btn-link {
	padding: 0.25rem 0.5rem !important;
	color: #0d6efd !important;
	text-decoration: none;
	transition: all 0.2s ease;
}

.accordion-body .btn-link:hover {
	color: #0b5ed7 !important;
	transform: scale(1.1);
}

/* Alert Box in Accordion */
.accordion-body .alert {
	margin-top: 1rem;
	margin-bottom: 0;
	padding: 0.75rem 1rem;
	border: 1px solid #bee5eb;
	background-color: #d1ecf1;
	color: #0c5460;
	border-radius: 0.375rem;
}

/* Mobile Responsive Accordion */
@media (max-width: 768px) {
	.accordion-button {
		padding: 0.875rem 1rem;
		font-size: 0.95rem;
	}

	.accordion-body {
		padding: 1.25rem 1rem;
	}

	.accordion-item .accordion-body .fw-bold {
		font-size: 0.95rem;
		word-break: break-word;
	}

	.accordion-body .d-flex {
		flex-wrap: wrap;
	}

	.accordion-body .d-flex .btn-link {
		margin-left: auto;
	}
}

@media (max-width: 576px) {
	.accordion-button {
		padding: 0.75rem 0.875rem;
		font-size: 0.9rem;
	}

	.accordion-body {
		padding: 1rem;
	}

	.accordion-item .accordion-body .mb-3 {
		margin-bottom: 1rem;
	}

	.accordion-body .alert {
		font-size: 0.85rem;
		padding: 0.625rem 0.875rem;
	}
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */

.whatsapp-float {
	position: fixed;
	bottom: 25px;
	left: 25px;
	z-index: 9999;
	animation: pulse-whatsapp 2s infinite;
}

.whatsapp-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	border-radius: 50%;
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
	color: white;
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.whatsapp-button::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.whatsapp-button:hover::before {
	width: 300px;
	height: 300px;
}

.whatsapp-button:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-button i {
	font-size: 32px;
	position: relative;
	z-index: 1;
	animation: shake 1s infinite;
}

/* Pulse Animation */
@keyframes pulse-whatsapp {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

/* Shake Animation */
@keyframes shake {
	0%, 100% {
		transform: rotate(0deg);
	}
	10%, 30%, 50%, 70%, 90% {
		transform: rotate(-10deg);
	}
	20%, 40%, 60%, 80% {
		transform: rotate(10deg);
	}
}

/* Tooltip */
.whatsapp-float::after {
	content: 'WhatsApp Destek';
	position: absolute;
	left: 75px;
	top: 50%;
	transform: translateY(-50%);
	background: #128C7E;
	color: white;
	padding: 8px 15px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover::after {
	opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.whatsapp-float {
		bottom: 20px;
		left: 20px;
	}

	.whatsapp-button {
		width: 55px;
		height: 55px;
	}

	.whatsapp-button i {
		font-size: 28px;
	}

	.whatsapp-float::after {
		display: none; /* Hide tooltip on mobile */
	}
}

@media (max-width: 480px) {
	.whatsapp-float {
		bottom: 15px;
		left: 15px;
	}

	.whatsapp-button {
		width: 50px;
		height: 50px;
	}

	.whatsapp-button i {
		font-size: 26px;
	}
}

/* Navbar toggler icon color fix for sticky header */
.navbar.sticky-header.affix .navbar-toggler,
.navbar.sticky-header.affix .navbar-toggler i {
	color: #0f172a !important;
}

.navbar.sticky-header .navbar-toggler,
.navbar.sticky-header .navbar-toggler i {
	color: #ffffff;
	transition: color 0.3s ease;
}

/* WhatsApp dropdown image - modern vertical banner design */
.services-dropdown .dropdown-grid-item.last-item {
	background: linear-gradient(135deg, #0f4c81 0%, #1e3a8a 50%, #1e40af 100%) !important;
	position: relative !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
}

.services-dropdown .dropdown-grid-item.last-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.3), transparent 60%);
	pointer-events: none;
	z-index: 0;
}

.services-dropdown .dropdown-grid-item.last-item a {
	display: flex !important;
	width: 100% !important;
	height: 100% !important;
	position: relative !important;
	z-index: 1 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.services-dropdown .dropdown-grid-item.last-item img {
	width: 100% !important;
	height: 100% !important;
	min-height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
	filter: brightness(1.05) saturate(1.1) !important;
	display: block !important;
}

.services-dropdown .dropdown-grid-item.last-item:hover img {
	transform: scale(1.03) !important;
	filter: brightness(1.1) saturate(1.15) !important;
}

/* Mobil responsive */
@media (max-width: 991px) {
	.dropdown-grid.rounded-custom.width-full-3 {
		grid-template-columns: 1fr 1fr !important; /* Mobilde 2 sütun - görsel gizli */
	}
	
	.services-dropdown .dropdown-grid-item.last-item {
		display: none !important; /* Mobilde WhatsApp görselini gizle */
	}
	
	/* Offcanvas için eski düzen */
	.offcanvas .dropdown-grid.rounded-custom.width-full-3 {
		display: block !important;
		grid-template-columns: none !important;
	}
	
	.offcanvas .dropdown-grid-item.last-item {
		display: block !important;
		border-radius: 16px !important;
		padding: 15px !important;
		margin-top: 15px !important;
	}
	
	.offcanvas .dropdown-grid-item.last-item img {
		min-height: 250px !important;
		border-radius: 16px !important;
	}
}

/* CTA Subscribe Section - Mobile Responsiveness */
.cta-subscribe .bg-gradient {
	padding-left: 1.5rem !important;
	padding-right: 1.5rem !important;
}

.subscribe-info-wrap {
	padding: 1.5rem 1rem;
}

.subscribe-info-wrap .section-heading {
	padding: 0 0.5rem;
}

.subscribe-info-wrap .section-heading h2 {
	font-size: 1.8rem;
	margin-bottom: 1rem;
}

.subscribe-info-wrap .section-heading h4 {
	margin-bottom: 0.5rem;
}

.subscribe-info-wrap .section-heading p {
	padding: 0 0.5rem;
	margin-bottom: 1rem;
	line-height: 1.6;
}

.subscribe-feature-list {
	padding: 0 0.5rem;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.subscribe-feature-list .nav-item {
	flex: 0 0 100%;
	margin-bottom: 0.5rem;
	text-align: left;
	padding: 0.5rem 0;
}

.subscribe-feature-list .nav-item span {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	font-size: 0.95rem;
	line-height: 1.5;
}

.form-block-banner {
	padding: 0 0.5rem;
}

.form-block-banner .btn {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border-radius: 0.5rem;
}

@media (min-width: 768px) {
	.subscribe-info-wrap {
		padding: 2rem 1.5rem;
	}

	.subscribe-feature-list .nav-item {
		flex: 0 0 48%;
	}
}

/* WhatsApp CTA Card - Register Section Mobile Responsiveness */
.sign-up-in-section .register-wrap {
	padding: 1.5rem 1rem !important;
	margin: 0 auto;
}

.sign-up-in-section .register-wrap h3 {
	font-size: 1.4rem;
	margin-bottom: 1rem;
	line-height: 1.4;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.sign-up-in-section .register-wrap p {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1.25rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.sign-up-in-section .register-wrap .d-grid {
	gap: 0.75rem !important;
}

.sign-up-in-section .register-wrap .btn {
	padding: 0.75rem 1rem !important;
	font-size: 0.95rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.sign-up-in-section .register-wrap .btn-lg {
	padding: 0.875rem 1.25rem !important;
	font-size: 1rem;
}

.sign-up-in-section .register-wrap .btn i {
	flex-shrink: 0;
}

.sign-up-in-section .register-wrap .small {
	font-size: 0.85rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.sign-up-in-section .avatar-lg {
	margin-bottom: 1rem;
}

@media (max-width: 576px) {
	.sign-up-in-section .col-md-12 {
		margin-bottom: 2rem;
	}

	.sign-up-in-section .register-wrap {
		padding: 1.25rem 1rem !important;
		width: 100%;
		max-width: 100%;
	}

	.sign-up-in-section .register-wrap h3 {
		font-size: 1.25rem;
		margin-bottom: 0.75rem;
	}

	.sign-up-in-section .register-wrap p {
		font-size: 0.9rem;
		margin-bottom: 1rem;
	}

	.sign-up-in-section .register-wrap .btn {
		padding: 0.625rem 0.875rem !important;
		font-size: 0.9rem;
		min-height: 40px;
	}

	.sign-up-in-section .register-wrap .btn-lg {
		padding: 0.75rem 1rem !important;
		font-size: 0.95rem;
	}
}

@media (min-width: 768px) {
	.sign-up-in-section .register-wrap {
		padding: 2rem 1.5rem !important;
	}

	.sign-up-in-section .register-wrap h3 {
		font-size: 1.6rem;
	}

	.sign-up-in-section .register-wrap .btn {
		font-size: 1rem;
	}
}

/* CTA Download Buttons - Mobil Only (Tüm sitede uygulanır) */
@media (max-width: 767px) {
	.form-block-banner {
		display: flex !important;
		flex-direction: column;
		gap: 0.75rem;
		width: 100%;
	}

	.form-block-banner a.btn {
		margin: 0 !important;
		width: 100%;
		padding: 0.875rem 1.25rem !important;
		min-height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		white-space: normal;
		word-wrap: break-word;
		font-size: 1rem;
	}

	.form-block-banner a.btn i {
		flex-shrink: 0;
	}
}

/* Web görünümü için normal button styling (Tüm sitede uygulanır) */
@media (min-width: 768px) {
	.form-block-banner {
		display: flex !important;
		flex-direction: row;
		gap: 1rem;
		justify-content: center;
		align-items: center;
	}

	.form-block-banner a.btn {
		margin: 0 !important;
		padding: 0.875rem 1.5rem !important;
		min-height: auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		white-space: nowrap;
		font-size: 1rem;
	}

	.form-block-banner a.btn i {
		flex-shrink: 0;
	}

	/* WhatsApp Destek linki - Web view */
	.form-block-banner a.watch-now-btn {
		margin: 0 !important;
		padding: 0.875rem 1.5rem !important;
		display: inline-flex !important;
		align-items: center !important;
		gap: 0.5rem;
		font-size: 1rem;
		white-space: nowrap;
	}

	.form-block-banner a.watch-now-btn i {
		flex-shrink: 0;
	}
}

/* Mobil view - WhatsApp Destek linki */
@media (max-width: 767px) {
	/* WhatsApp Destek linki - Mobil view */
	.form-block-banner a.watch-now-btn {
		margin: 0 !important;
		padding: 0.875rem 1.25rem !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100%;
		gap: 0.5rem;
		font-size: 1rem;
		white-space: normal;
		word-wrap: break-word;
		min-height: 48px;
		border: 2px solid #25D366;
		border-radius: 0.5rem;
		background: transparent;
	}

	.form-block-banner a.watch-now-btn i {
		flex-shrink: 0;
	}
}

