/* 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 adaptive so an unused right column doesn't leave a big gap */
.dropdown-grid.rounded-custom.width-full-3 {
	/* allow grid to adapt to number of items and available space */
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
	width: auto !important;
	gap: 0.5rem !important;
}

/* Neutralize last-item forced spanning from compiled css so image doesn't force layout */
.width-full-3 .dropdown-grid-item.last-item {
	grid-column-start: auto !important;
	grid-column-end: auto !important;
	display: block !important;
	width: auto !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;
	}
}
