/*
Theme Name: IntraMe
Author: IntraMe
Author URI: https://github.com/intrame
Description: A fast, locked three-column corporate intranet and digital workplace theme featuring a fixed navigation sidebar, customizable portal dashboard, and right utility panel.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: intrame
Tags: three-columns, left-sidebar, right-sidebar, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   1. Base Reset & Typography
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background-color: #f1f5f9;
	color: #1e293b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a {
	color: #2563eb;
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover {
	color: #1d4ed8;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

img {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   2. Locked 3-Column Intranet Grid Layout (.intrame-app-container)
   ========================================================================== */
.intrame-app-container {
	display: flex;
	min-height: 100vh;
	width: 100%;
	align-items: stretch;
	background: #f1f5f9;
}

/* Column 1: Fixed Left Navigation Sidebar */
.intrame-left-sidebar,
aside.intrame-left-sidebar {
	width: 240px;
	min-width: 240px;
	max-width: 240px;
	background: #ffffff;
	border-right: 1px solid #e2e8f0;
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.intrame-logo {
	text-align: center;
	padding: 4px 6px 18px;
	margin-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.intrame-logo .custom-logo-link {
	display: inline-block;
	line-height: 1;
	text-decoration: none;
}

.intrame-logo .custom-logo {
	max-width: 175px;
	max-height: 68px;
	width: auto;
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

.intrame-logo .site-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.4px;
	color: #0f172a;
}

.intrame-logo .site-title a {
	color: #0f172a;
	text-decoration: none;
}

/* Fallback Menu Styles (when intrame-left-sidebar.css is not active) */
ul.intrame-menu {
	list-style: none;
	margin: 0 0 15px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

ul.intrame-menu li {
	margin: 0;
	padding: 0;
}

ul.intrame-menu li a {
	display: block;
	padding: 11px 16px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	color: #334155;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
}

ul.intrame-menu li a:hover,
ul.intrame-menu li a:focus-visible {
	border-color: #f56e28;
	color: #c2410c;
	background: #fff7ed;
}

ul.intrame-menu li.current-menu-item a,
ul.intrame-menu li.current_page_item a {
	background: #f56e28;
	border-color: #f56e28;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(245, 110, 40, 0.25);
}

/* Column 2: Center Main Content Canvas */
.intrame-main-content,
main#primary.intrame-main-content {
	flex: 1;
	min-width: 0;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	background: #f1f5f9;
}

main#primary.intrame-main-content:focus {
	outline: none;
}

/* Column 3: Right Utility Sidebar */
.intrame-right-sidebar,
aside.intrame-right-sidebar {
	width: 260px;
	min-width: 260px;
	max-width: 260px;
	background: #ffffff;
	border-left: 1px solid #e2e8f0;
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.intrame-widget {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 20px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.intrame-widget-title {
	font-size: 13.5px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f1f5f9;
}

.intrame-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.intrame-widget li {
	padding: 5px 0;
	border-bottom: 1px solid #f8fafc;
	font-size: 12.5px;
}

.intrame-widget li:last-child {
	border-bottom: none;
}

.intrame-widget a {
	color: #334155;
	text-decoration: none;
}

.intrame-widget a:hover,
.intrame-widget a:focus-visible {
	color: #c2410c;
	text-decoration: underline;
}

/* ==========================================================================
   3. Central Search Bar (searchform.php)
   ========================================================================== */
.intrame-search-box-container {
	width: 100%;
}

.intrame-main-search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 6px 8px 6px 14px;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.intrame-main-search-form:focus-within {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.intrame-main-search-form .search-icon {
	color: #64748b;
	flex-shrink: 0;
}

.intrame-main-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	font-size: 13px;
	color: #1e293b;
	padding: 6px 4px;
}

.intrame-main-search-form input[type="search"]:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
	border-radius: 4px;
}

.intrame-main-search-form .search-submit-btn {
	background: #f56e28;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 8px 20px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.18s ease;
}

.intrame-main-search-form .search-submit-btn:hover,
.intrame-main-search-form .search-submit-btn:focus-visible {
	background: #c2410c;
}

/* ==========================================================================
   4. Front-Page Hero Slider & 3-Column Portal Grid
   ========================================================================== */
.intrame-hero-wrap {
	position: relative;
	height: 235px;
	border-radius: 16px;
	margin-bottom: 18px;
	overflow: hidden;
	background: #0f172a;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.intrame-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease-in-out;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 48px;
	text-align: center;
	z-index: 1;
}

.intrame-hero-slide.is-slide-1 {
	background:
		radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.25), transparent 45%),
		radial-gradient(circle at 15% 85%, rgba(245, 110, 40, 0.22), transparent 45%),
		linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #1d4ed8 100%);
}

.intrame-hero-slide.is-slide-2 {
	background:
		radial-gradient(circle at 80% 25%, rgba(45, 212, 191, 0.24), transparent 45%),
		linear-gradient(135deg, #0f172a 0%, #134e4a 58%, #0f766e 100%);
}

.intrame-hero-slide.is-slide-3 {
	background:
		radial-gradient(circle at 80% 25%, rgba(251, 146, 60, 0.24), transparent 45%),
		linear-gradient(135deg, #0f172a 0%, #7c2d12 58%, #c2410c 100%);
}

.intrame-hero-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 28px 28px;
	pointer-events: none;
}

.intrame-hero-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.intrame-hero-inner {
	position: relative;
	z-index: 3;
	max-width: 680px;
}

.intrame-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.24);
	color: #f8fafc;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.intrame-hero-badge .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.intrame-hero-title {
	color: #ffffff;
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 8px;
	line-height: 1.25;
}

.intrame-hero-desc {
	color: #e2e8f0;
	font-size: 13px;
	line-height: 1.55;
	margin: 0 0 16px;
}

.intrame-hero-btn {
	display: inline-block;
	background: #f56e28;
	color: #ffffff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	padding: 9px 22px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(245, 110, 40, 0.35);
}

.intrame-hero-btn:hover,
.intrame-hero-btn:focus-visible {
	background: #c2410c;
	color: #ffffff;
}

.intrame-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.intrame-hero-arrow:hover,
.intrame-hero-arrow:focus-visible {
	background: #f56e28;
	border-color: #ffffff;
}

.intrame-hero-arrow.prev {
	left: 14px;
}

.intrame-hero-arrow.next {
	right: 14px;
}

.intrame-hero-dots {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 6px;
}

.intrame-hero-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.intrame-hero-dot.active {
	width: 24px;
	border-radius: 8px;
	background: #f56e28;
	border-color: #ffffff;
}

.intrame-front-search {
	margin-bottom: 18px;
}

.intrame-portal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-bottom: 18px;
	align-items: stretch;
}

.intrame-portal-col {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
}

.intrame-portal-col-head {
	display: flex;
	align-items: center;
	padding-bottom: 10px;
	border-bottom: 2px solid #cbd5e1;
	margin-bottom: 12px;
}

.intrame-portal-col-title {
	font-size: 14.5px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.intrame-portal-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 13px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
	margin-bottom: 8px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intrame-portal-card:last-child {
	margin-bottom: 0;
}

.intrame-portal-card:hover,
.intrame-portal-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.06);
	border-color: var(--card-accent, #2563eb);
}

.intrame-portal-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--card-accent, #2563eb);
}

.intrame-portal-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.intrame-portal-card-ico {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--card-bg, #eff6ff);
	color: var(--card-accent, #2563eb);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.intrame-portal-card-name {
	font-size: 13.5px;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
}

.intrame-portal-card-desc {
	font-size: 11px;
	color: #475569;
	line-height: 1.4;
	margin: 0;
	padding-left: 42px;
}

/* ==========================================================================
   5. Articles, Pages, Archives, Navigation & Footer
   ========================================================================== */
.intrame-front-post-card,
article.post,
article.page {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 20px 24px;
	margin-bottom: 16px;
}

.intrame-front-post-title,
.entry-title {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px;
}

.intrame-front-post-title a,
.entry-title a {
	color: #0f172a;
	text-decoration: none;
}

.intrame-front-post-title a:hover,
.intrame-front-post-title a:focus-visible,
.entry-title a:hover,
.entry-title a:focus-visible {
	color: #2563eb;
	text-decoration: underline;
}

.intrame-front-post-excerpt p {
	margin: 0;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 12.5px;
	font-weight: 700;
}

.modern-footer {
	margin-top: auto;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 20px;
	text-align: center;
	font-size: 12px;
	color: #475569;
}

.footer-copyright {
	margin: 0;
}

/* ==========================================================================
   6. Responsive Breakpoints & WordPress Core Accessibility Classes
   ========================================================================== */
@media (max-width: 1100px) {
	.intrame-app-container {
		flex-direction: column;
	}

	.intrame-left-sidebar,
	aside.intrame-left-sidebar,
	.intrame-right-sidebar,
	aside.intrame-right-sidebar {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		border-right: none;
		border-left: none;
		border-bottom: 1px solid #e2e8f0;
	}

	.intrame-portal-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.intrame-portal-grid {
		grid-template-columns: 1fr;
	}
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #0f172a;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
	clip: auto !important;
	clip-path: none;
	color: #ffffff;
	display: block;
	font-size: 13px;
	font-weight: 700;
	height: auto;
	left: 12px;
	line-height: normal;
	padding: 12px 18px;
	text-decoration: none;
	top: 12px;
	width: auto;
	z-index: 100000;
}

.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption-text {
	font-size: 12px;
	color: #475569;
	text-align: center;
}

.sticky,
.gallery-caption,
.bypostauthor {
	display: block;
}

/* ==========================================================================
   Footer Social & Website Pills
   ========================================================================== */
.intrame-footer-socials {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.intrame-social-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 13px;
	border-radius: 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.15s ease;
}

.intrame-social-pill:hover,
.intrame-social-pill:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}

.intrame-social-pill.is-website { color: #047857; }
.intrame-social-pill.is-instagram { color: #be185d; }
.intrame-social-pill.is-linkedin { color: #0a66c2; }
.intrame-social-pill.is-twitter { color: #0f172a; }
.intrame-social-pill.is-youtube { color: #b91c1c; }
.intrame-social-pill.is-facebook { color: #1d4ed8; }

/* ==========================================================================
   BuddyPress Modern Profile & Edit Form Styling
   ========================================================================== */
#buddypress.buddypress-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1e293b;
}

#buddypress.buddypress-wrap #item-header {
	background: linear-gradient(135deg, #064e3b 0%, #9a3412 100%);
	border-radius: 14px;
	padding: 20px 24px;
	margin-bottom: 18px;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

#buddypress.buddypress-wrap #cover-image-container,
#buddypress.buddypress-wrap #item-header-cover-image,
#buddypress.buddypress-wrap #item-header {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	position: relative;
	min-height: auto;
}

#buddypress.buddypress-wrap #item-header-avatar {
	margin: 0;
	flex-shrink: 0;
}

#buddypress.buddypress-wrap #item-header-avatar img.avatar {
	width: 78px;
	height: 78px;
	border-radius: 16px;
	object-fit: cover;
	border: 3px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	display: block;
}

#buddypress.buddypress-wrap #item-header-content {
	margin: 0;
	padding: 0;
	flex: 1;
	min-width: 200px;
}

#buddypress.buddypress-wrap #item-header-content h2.user-nicename {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 800;
	color: #ffffff;
}

#buddypress.buddypress-wrap span.activity {
	display: inline-flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #f8fafc;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 20px;
	margin: 0;
}

#buddypress.buddypress-wrap nav#object-nav.main-navs,
#buddypress.buddypress-wrap .item-list-tabs#object-nav {
	border: none;
	background: transparent;
	padding: 0;
	margin: 0 0 10px;
}

#buddypress.buddypress-wrap nav#object-nav ul {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

#buddypress.buddypress-wrap nav#object-nav ul li a {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	font-size: 12.5px;
	font-weight: 700;
	color: #334155;
	text-decoration: none;
}

#buddypress.buddypress-wrap nav#subnav.bp-subnavs,
#buddypress.buddypress-wrap .item-list-tabs#subnav {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 6px;
	margin: 0 0 22px;
}

#buddypress.buddypress-wrap nav#subnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

#buddypress.buddypress-wrap nav#subnav ul li {
	margin: 0;
	float: none;
}

#buddypress.buddypress-wrap nav#subnav ul li a {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #475569;
	text-decoration: none;
	border: none;
	background: transparent;
	transition: all 0.15s ease;
}

#buddypress.buddypress-wrap nav#subnav ul li a:hover {
	background: rgba(255, 255, 255, 0.75);
	color: #0f172a;
}

#buddypress.buddypress-wrap nav#subnav ul li.current a,
#buddypress.buddypress-wrap nav#subnav ul li.selected a {
	background: #f56e28;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(245, 110, 40, 0.28);
}

#buddypress.buddypress-wrap form#profile-edit-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
}

#buddypress.buddypress-wrap form#profile-edit-form > h2,
#buddypress.buddypress-wrap form#profile-edit-form > p,
#buddypress.buddypress-wrap form#profile-edit-form > ul.button-tabs,
#buddypress.buddypress-wrap form#profile-edit-form > .bp-feedback,
#buddypress.buddypress-wrap form#profile-edit-form > .submit,
#buddypress.buddypress-wrap form#profile-edit-form > input[type="hidden"] {
	grid-column: 1 / -1;
}

#buddypress.buddypress-wrap form#profile-edit-form > h2 {
	font-size: 19px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
}

#buddypress.buddypress-wrap form#profile-edit-form > p {
	font-size: 13px;
	color: #64748b;
	margin: -8px 0 6px;
}

#buddypress.buddypress-wrap ul.button-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0 0 6px;
}

#buddypress.buddypress-wrap ul.button-tabs li a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	color: #334155;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

#buddypress.buddypress-wrap ul.button-tabs li.current a {
	background: #064e3b;
	border-color: #064e3b;
	color: #ffffff;
}

#buddypress.buddypress-wrap form#profile-edit-form .editfield {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px 18px;
	margin: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#buddypress.buddypress-wrap form#profile-edit-form .editfield:hover {
	border-color: #cbd5e1;
}

#buddypress.buddypress-wrap form#profile-edit-form .editfield:focus-within {
	background: #ffffff;
	border-color: #f56e28;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

#buddypress.buddypress-wrap form#profile-edit-form .editfield.field_type_textarea,
#buddypress.buddypress-wrap form#profile-edit-form .editfield.field_type_multiselectbox {
	grid-column: 1 / -1;
}

#buddypress.buddypress-wrap form#profile-edit-form .editfield fieldset {
	border: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}

#buddypress.buddypress-wrap form#profile-edit-form .editfield label,
#buddypress.buddypress-wrap form#profile-edit-form .editfield legend {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
	padding: 0;
}

#buddypress.buddypress-wrap form#profile-edit-form .editfield .description {
	margin: 6px 0 0;
	font-size: 11.5px;
	color: #475569;
}

#buddypress.buddypress-wrap .bp-required-field-label {
	background: #fff1f2;
	color: #be123c;
	border: 1px solid #fecdd3;
	font-size: 10.5px;
	font-weight: 700;
	padding: 1px 8px;
	border-radius: 999px;
}

#buddypress.buddypress-wrap form#profile-edit-form input[type="text"],
#buddypress.buddypress-wrap form#profile-edit-form input[type="email"],
#buddypress.buddypress-wrap form#profile-edit-form input[type="tel"],
#buddypress.buddypress-wrap form#profile-edit-form input[type="url"],
#buddypress.buddypress-wrap form#profile-edit-form input[type="number"],
#buddypress.buddypress-wrap form#profile-edit-form input[type="date"],
#buddypress.buddypress-wrap form#profile-edit-form select,
#buddypress.buddypress-wrap form#profile-edit-form textarea {
	width: 100%;
	height: 42px;
	padding: 0 14px;
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	border-radius: 9px;
	font-size: 13.5px;
	font-weight: 500;
	color: #0f172a;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#buddypress.buddypress-wrap form#profile-edit-form textarea {
	height: auto;
	min-height: 96px;
	padding: 10px 14px;
}

#buddypress.buddypress-wrap form#profile-edit-form input:focus,
#buddypress.buddypress-wrap form#profile-edit-form select:focus,
#buddypress.buddypress-wrap form#profile-edit-form textarea:focus {
	border-color: #f56e28 !important;
	box-shadow: 0 0 0 3px rgba(245, 110, 40, 0.15) !important;
}

#buddypress.buddypress-wrap .field-visibility-settings-notoggle,
#buddypress.buddypress-wrap .field-visibility-settings-toggle,
#buddypress.buddypress-wrap .field-visibility-settings {
	display: none !important;
}

#buddypress.buddypress-wrap form#profile-edit-form .submit {
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: flex-end;
}

#buddypress.buddypress-wrap form#profile-edit-form input[type="submit"],
#buddypress.buddypress-wrap input#profile-group-edit-submit {
	background: #f56e28;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 12px 28px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(245, 110, 40, 0.28);
	transition: background 0.15s ease, transform 0.15s ease;
}

#buddypress.buddypress-wrap form#profile-edit-form input[type="submit"]:hover,
#buddypress.buddypress-wrap input#profile-group-edit-submit:hover {
	background: #c2410c;
	transform: translateY(-1px);
}

#buddypress.buddypress-wrap .profile-fields {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
}

#buddypress.buddypress-wrap .profile-fields td {
	padding: 12px 16px;
	font-size: 13px;
	border-bottom: 1px solid #f1f5f9;
}

#buddypress.buddypress-wrap .profile-fields tr:last-child td {
	border-bottom: none;
}

#buddypress.buddypress-wrap .profile-fields td.label {
	width: 32%;
	background: #f8fafc;
	font-weight: 700;
	color: #334155;
}

#buddypress.buddypress-wrap .profile-fields td.data {
	background: #ffffff;
	color: #0f172a;
	font-weight: 500;
}

@media (max-width: 768px) {
	#buddypress.buddypress-wrap form#profile-edit-form {
		grid-template-columns: 1fr;
	}
}

#buddypress.buddypress-wrap .profile.edit > h2,
#buddypress.buddypress-wrap .profile.edit > h3,
#buddypress.buddypress-wrap .profile.edit > h4,
#buddypress.buddypress-wrap .edit-profile-screen,
#buddypress.buddypress-wrap .profile-group-title,
#buddypress.buddypress-wrap form#profile-edit-form > h2,
#buddypress.buddypress-wrap form#profile-edit-form > h3,
#buddypress.buddypress-wrap form#profile-edit-form > h4,
#buddypress.buddypress-wrap form#profile-edit-form > p:not(.submit) {
	display: none !important;
}

#buddypress.buddypress-wrap form#profile-edit-form .editfield.is-ad-readonly {
	background: #f1f5f9;
	border-color: #e2e8f0;
}

#buddypress.buddypress-wrap form#profile-edit-form .editfield.is-ad-readonly:focus-within {
	background: #f1f5f9;
	border-color: #e2e8f0;
	box-shadow: none;
}

#buddypress.buddypress-wrap form#profile-edit-form .editfield.is-ad-readonly .bp-required-field-label {
	display: none;
}

#buddypress.buddypress-wrap form#profile-edit-form .editfield.is-ad-readonly label::after,
#buddypress.buddypress-wrap form#profile-edit-form .editfield.is-ad-readonly legend::after {
	content: "AD";
	background: #e2e8f0;
	color: #475569;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.4px;
	padding: 1px 7px;
	border-radius: 999px;
}

#buddypress.buddypress-wrap form#profile-edit-form input[readonly],
#buddypress.buddypress-wrap form#profile-edit-form textarea[readonly],
#buddypress.buddypress-wrap form#profile-edit-form select[aria-disabled="true"] {
	background: #e2e8f0 !important;
	border-color: #cbd5e1 !important;
	color: #475569 !important;
	cursor: not-allowed;
	box-shadow: none !important;
}
