/* ==========================================================================
   Dark Tech Theme - Header & Footer Stylesheet
   ========================================================================== */

:root {
	/* Standard CSS variables (PCRU Theme Colors) */
	--bg-base: #0B0A14;
	--bg-surface: #13112B;
	--bg-surface-2: #1A1633;
	--bg-surface-3: #261F4A;
	--bg-glass: rgba(19, 17, 43, 0.62);
	--bg-glass-strong: rgba(26, 22, 51, 0.78);
	--border-card: rgba(255, 255, 255, 0.08);
	--border-hero: rgba(255, 255, 255, 0.12);
	--border-sidebar: rgba(255, 255, 255, 0.06);
	--border-navbar: rgba(255, 255, 255, 0.10);
	--border-active: rgba(124, 58, 237, 0.20);
	--border-glass: var(--border-card);
	--glass-highlight: rgba(255, 255, 255, 0.14);
	--text-primary: #F0EEFF;
	--text-secondary: #B8B0D8;
	--text-muted: #8A82A8;
	--accent-500: #7C3AED;
	--accent-600: #6D28D9;
	--accent-gold: #A855F7;
	--accent-gradient: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
	--accent-soft: rgba(124, 58, 237, 0.14);
	--accent-aura: rgba(124, 58, 237, 0.24);
	--active-glow: 0 18px 42px rgba(124, 58, 237, 0.10);
	--link: #8B5CF6;
	--success: #22C55E;
	--warning: #F5B942;
	--danger: #EF4444;
	--divider: var(--border-sidebar);
	--shadow-color: rgba(0, 0, 0, 0.48);
	--backdrop-blur: 16px;

	/* Compatibility Aliases for ITF Plugins */
	--itf-bg-base: var(--bg-base);
	--itf-bg-surface: var(--bg-surface);
	--itf-bg-surface-2: var(--bg-surface-2);
	--itf-bg-surface-3: var(--bg-surface-3);
	--itf-text-primary: var(--text-primary);
	--itf-text-secondary: var(--text-secondary);
	--itf-text-tertiary: var(--text-muted);
	--itf-border-subtle: var(--border-sidebar);
	--itf-border-strong: var(--border-card);
	--itf-accent: var(--accent-500);
	--itf-accent-hover: var(--accent-600);
	--itf-accent-soft: var(--accent-soft);
	--itf-accent-gradient: var(--accent-gradient);
	--itf-shadow-sm: 0 2px 8px var(--shadow-color);
	--itf-shadow-md: 0 16px 38px var(--shadow-color);
	--itf-shadow-glow: var(--active-glow);
	--itf-glass-bg: var(--bg-glass);
	--itf-glass-bg-strong: var(--bg-glass-strong);
	--itf-glass-border: var(--border-glass);
	--itf-glass-blur: blur(var(--backdrop-blur));
	--itf-glass-shadow: 0 18px 48px var(--shadow-color), inset 0 1px 0 var(--glass-highlight);

	--itf-bg: var(--itf-bg-base);
	--itf-bg-secondary: var(--itf-bg-surface);
	--itf-card-bg: var(--itf-bg-surface-2);
	--itf-text: var(--itf-text-primary);
	--itf-text-muted: var(--itf-text-secondary);
	--itf-border: var(--itf-border-strong);

	--dark-bg: var(--itf-bg-base);
	--dark-footer-bg: var(--itf-bg-surface-2);
	--dark-topbar-bg: var(--itf-bg-surface);
	--text-white: var(--itf-text-primary);
	--text-gray: var(--itf-text-secondary);
	--border-color: var(--itf-border-strong);
	--accent-primary: var(--itf-accent);
	--accent-secondary: var(--accent-gold);
}

[data-theme="dark"] {
	--bg-base: #0B0A14;
	--bg-surface: #13112B;
	--bg-surface-2: #1A1633;
	--bg-surface-3: #261F4A;
	--bg-glass: rgba(19, 17, 43, 0.62);
	--bg-glass-strong: rgba(26, 22, 51, 0.78);
	--border-card: rgba(255, 255, 255, 0.08);
	--border-hero: rgba(255, 255, 255, 0.12);
	--border-sidebar: rgba(255, 255, 255, 0.06);
	--border-navbar: rgba(255, 255, 255, 0.10);
	--border-active: rgba(124, 58, 237, 0.20);
	--border-glass: var(--border-card);
	--glass-highlight: rgba(255, 255, 255, 0.14);
	--text-primary: #F0EEFF;
	--text-secondary: #B8B0D8;
	--text-muted: #8A82A8;
	--accent-500: #7C3AED;
	--accent-600: #6D28D9;
	--accent-gold: #A855F7;
	--accent-gradient: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
	--accent-soft: rgba(124, 58, 237, 0.14);
	--accent-aura: rgba(124, 58, 237, 0.24);
	--active-glow: 0 18px 42px rgba(124, 58, 237, 0.10);
	--link: #8B5CF6;
	--success: #22C55E;
	--warning: #F5B942;
	--danger: #EF4444;
	--divider: var(--border-sidebar);
	--shadow-color: rgba(0, 0, 0, 0.48);
	--backdrop-blur: 16px;
}

[data-theme="light"] {
	/* Layered Color Tokens (Light Mode) */
	--bg-base: #FAF8FF;
	--bg-surface: #FFFFFF;
	--bg-surface-2: #F0ECFF;
	--bg-surface-3: #E0D8F0;
	--bg-glass: rgba(255, 255, 255, 0.72);
	--bg-glass-strong: rgba(255, 255, 255, 0.88);
	--border-card: rgba(124, 58, 237, 0.12);
	--border-hero: rgba(255, 255, 255, 0.16);
	--border-sidebar: rgba(124, 58, 237, 0.08);
	--border-navbar: rgba(124, 58, 237, 0.14);
	--border-active: rgba(124, 58, 237, 0.18);
	--border-glass: var(--border-card);
	--glass-highlight: rgba(255, 255, 255, 0.82);
	--text-primary: #1A1633;
	--text-secondary: #5B5478;
	--text-muted: #8A82A8;
	--accent-500: #7C3AED;
	--accent-600: #6D28D9;
	--accent-gold: #9333EA;
	--accent-gradient: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
	--accent-soft: rgba(124, 58, 237, 0.11);
	--accent-aura: rgba(124, 58, 237, 0.18);
	--active-glow: 0 18px 42px rgba(124, 58, 237, 0.10);
	--link: #6D28D9;
	--success: #16A34A;
	--warning: #7C3AED;
	--danger: #DC2626;
	--divider: var(--border-sidebar);
	--shadow-color: rgba(80, 40, 150, 0.12);
}

/* --------------------------------------------------------------------------
   1. Base Setup & Reset Elements
   -------------------------------------------------------------------------- */
*, *::before, *::after {
	box-sizing: border-box;
}

body {
	background-color: var(--bg-base);
	background-image: 
		radial-gradient(circle at 8% 12%, rgba(124, 58, 237, 0.16) 0%, transparent 34%),
		radial-gradient(circle at 88% 18%, rgba(168, 85, 247, 0.10) 0%, transparent 32%),
		radial-gradient(circle at 58% 92%, rgba(20, 184, 166, 0.055) 0%, transparent 38%),
		linear-gradient(180deg, var(--bg-base) 0%, var(--bg-base) 100%);
	background-attachment: fixed;
	background-size: cover;
	color: var(--text-primary);
	font-family: var(--itf-font-body, 'Poppins', 'Kanit', 'Sarabun', sans-serif);
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

[data-theme="light"] body {
	background-image: 
		radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.12) 0%, transparent 34%),
		radial-gradient(circle at 86% 18%, rgba(201, 154, 31, 0.10) 0%, transparent 32%),
		radial-gradient(circle at 50% 92%, rgba(14, 165, 233, 0.045) 0%, transparent 42%),
		linear-gradient(180deg, var(--bg-base) 0%, #FFFFFF 48%, var(--bg-base) 100%);
}

body, .site-header, .card, .glass-panel {
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html,
body {
	max-width: 100%;
}

body {
	overflow-wrap: anywhere;
}

.site-header,
.site-footer,
#primary-content,
.content-area,
.entry-content,
.wp-site-blocks,
.widget,
.footer-custom-box-content {
	max-width: 100%;
	min-width: 0;
}

.entry-content *,
.widget *,
.footer-custom-box-content * {
	max-width: 100%;
}

img,
svg,
video,
canvas,
iframe,
embed,
object {
	max-width: 100%;
}

img,
video,
canvas,
iframe {
	height: auto;
}

table {
	width: 100%;
	max-width: 100%;
	table-layout: auto;
	border-collapse: collapse;
}

.entry-content table,
.widget table,
.footer-custom-box-content table {
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

pre,
code {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

input,
select,
textarea,
button {
	max-width: 100%;
}

/* Accessibility: Skip link */
.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--accent-gradient);
	color: #fff;
	padding: 10px 20px;
	z-index: 999999;
	transition: top 0.2s ease;
	text-decoration: none;
	font-weight: 500;
	border-radius: 0 0 5px 5px;
}

.skip-link:focus {
	top: 0;
}

.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;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease, opacity 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.site-title-link,
.footer-widget .widget-title,
.cta-title,
.empty-content-message h1 {
	font-family: var(--itf-font-heading, var(--itf-font-body, 'Poppins', 'Kanit', 'Sarabun', sans-serif));
}

.itf-glass {
	background: var(--itf-glass-bg);
	-webkit-backdrop-filter: var(--itf-glass-blur);
	backdrop-filter: var(--itf-glass-blur);
	border: 1px solid var(--itf-glass-border);
	border-radius: 16px;
	box-shadow: var(--itf-glass-shadow);
}

.itf-glass,
.site-header.is-sticky,
.main-navigation .sub-menu,
.footer-custom-box-content {
	background-image: linear-gradient(135deg, var(--glass-highlight), transparent 42%);
}

[data-theme="dark"] .itf-glass {
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.itf-glass {
		background: var(--itf-bg-surface-2, #1A1A1A);
	}
}

/* Forced Themes for Plugins */
.itf-theme-dark {
	--itf-bg-base: #080B12;
	--itf-bg-surface: #111827;
	--itf-bg-surface-2: #182132;
	--itf-bg-surface-3: #223047;

	--itf-text-primary: #F8FAFC;
	--itf-text-secondary: #CBD5E1;
	--itf-text-tertiary: #94A3B8;

	--itf-border-subtle: rgba(255, 255, 255, 0.06);
	--itf-border-strong: rgba(255, 255, 255, 0.08);

	--itf-accent: #7C3AED;
	--itf-accent-hover: #6D28D9;
	--itf-accent-soft: rgba(124, 58, 237, 0.14);
	--itf-accent-gradient: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);

	--itf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
	--itf-shadow-md: 0 16px 38px rgba(0, 0, 0, 0.48);
	--itf-shadow-glow: 0 18px 42px rgba(124, 58, 237, 0.10);

	--itf-glass-bg: rgba(19, 17, 43, 0.62);
	--itf-glass-bg-strong: rgba(26, 22, 51, 0.78);
	--itf-glass-border: rgba(255, 255, 255, 0.08);
	--itf-glass-blur: blur(16px);
	--itf-glass-shadow: 0 18px 48px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.itf-theme-light {
	--itf-bg-base: #FFFDF8;
	--itf-bg-surface: #FFFFFF;
	--itf-bg-surface-2: #FFF7EA;
	--itf-bg-surface-3: #F2E6D2;

	--itf-text-primary: #182230;
	--itf-text-secondary: #455468;
	--itf-text-tertiary: #9CA3AF;

	--itf-border-subtle: rgba(124, 58, 237, 0.08);
	--itf-border-strong: rgba(124, 58, 237, 0.12);

	--itf-accent: #7C3AED;
	--itf-accent-hover: #6D28D9;
	--itf-accent-soft: rgba(124, 58, 237, 0.11);
	--itf-accent-gradient: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);

	--itf-shadow-sm: 0 2px 8px rgba(80, 40, 150, 0.08);
	--itf-shadow-md: 0 16px 38px rgba(80, 40, 150, 0.12);
	--itf-shadow-glow: 0 18px 42px rgba(124, 58, 237, 0.10);

	--itf-glass-bg: rgba(255, 255, 255, 0.72);
	--itf-glass-bg-strong: rgba(255, 255, 255, 0.88);
	--itf-glass-border: rgba(124, 58, 237, 0.12);
	--itf-glass-blur: blur(16px);
	--itf-glass-shadow: 0 18px 48px rgba(80, 40, 150, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 30px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: none;
	outline: none;
}

.btn-cta {
	background: var(--accent-gradient);
	color: #FFFFFF;
	position: relative;
	overflow: hidden;
	box-shadow: 0 12px 28px var(--accent-aura);
}

.btn-cta::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transform: translateX(-100%);
	transition: transform 0.5s ease;
}

.btn-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 36px var(--accent-aura);
	color: #FFFFFF;
}

.btn-cta:hover::before {
	transform: translateX(100%);
}

/* Icons styling */
svg.icon {
	display: inline-block;
	vertical-align: middle;
	margin-right: 6px;
}

/* Empty loop page area */
.content-area {
	min-height: 50vh;
	display: block;
	padding: 80px 0;
}

.empty-content-message {
	text-align: center;
	max-width: 600px;
	margin: 80px auto;
	padding: 0 20px;
}

.empty-content-message h1 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 20px;
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.empty-content-message p {
	color: var(--text-gray, #B3B3B3);
	font-size: 16px;
	line-height: 1.6;
}

/* Admin elements styling */
.admin-menu-fallback a,
.admin-widget-placeholder {
	display: block;
	border: 1px dashed var(--itf-border-strong, #2D2D2D);
	padding: 15px;
	border-radius: 8px;
	background-color: var(--itf-bg-surface-2, #1A1A1A);
	color: var(--itf-accent, #7C3AED);
	font-weight: 500;
	text-align: center;
	margin: 10px 0;
}

.admin-widget-placeholder {
	color: var(--text-gray, #B3B3B3);
	text-align: left;
}

.admin-widget-placeholder h4 {
	color: var(--accent-primary, #7C3AED);
	margin: 0 0 10px 0;
}


/* --------------------------------------------------------------------------
   2. Header & Top Bar
   -------------------------------------------------------------------------- */
.site-header {
	width: 100%;
	z-index: 1000;
	background-color: var(--itf-bg-base, #0A0A0A);
	border-bottom: 1px solid var(--border-navbar);
	transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Sticky Header states */
.sticky-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
}

.site-header.is-sticky {
	background: var(--itf-glass-bg-strong);
	border-bottom-color: var(--border-navbar);
	box-shadow: var(--itf-glass-shadow);
	-webkit-backdrop-filter: var(--itf-glass-blur);
	backdrop-filter: var(--itf-glass-blur);
}

.transparent-header {
	position: absolute;
	top: 0;
	left: 0;
	background-color: transparent;
	border-bottom: 1px solid var(--border-hero);
}

.transparent-header.is-sticky {
	position: fixed;
	background-color: rgba(13, 13, 13, 0.95);
}

/* Top Bar Styling */
.top-bar {
	background-color: var(--itf-bg-surface, #121212);
	border-bottom: 1px solid var(--border-navbar);
	padding: 8px 0;
	font-size: 13px;
	color: var(--text-gray, #B3B3B3);
}

.top-bar-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.top-bar-left, .top-bar-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.top-bar-info {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.top-bar-info a:hover {
	color: var(--accent-primary, #7C3AED);
}

.social-links-header {
	display: flex;
	gap: 10px;
}

.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background-color: var(--social-bg, rgba(255, 255, 255, 0.05));
	border: 1px solid var(--border-color, #2A2A2A);
	border-radius: 6px;
	color: var(--text-gray, #B3B3B3);
	transition: all 0.3s ease;
}

.social-icon:hover {
	border-color: var(--border-active);
	color: #FFFFFF;
	background: var(--accent-gradient);
	box-shadow: var(--active-glow);
}

.social-icon .icon-text {
	font-size: 9px;
	font-weight: 700;
}

/* Main Header Container */
.main-header-wrapper {
	padding: 16px 0;
	transition: padding 0.3s ease;
}

.is-sticky .main-header-wrapper {
	padding: 12px 0;
}

.main-header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Logo */
.site-branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.site-branding img {
	max-height: 50px;
	width: auto;
	display: block;
	transition: max-height 0.3s ease, max-width 0.3s ease;
}

.site-title-link {
	display: inline-block;
	min-width: 0;
	max-width: 100%;
}

.site-title {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.5px;
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 250px;
	transition: font-size 0.3s ease, max-width 0.3s ease;
}


/* --------------------------------------------------------------------------
   3. Desktop Navigation Menu & Walker
   -------------------------------------------------------------------------- */
.main-navigation {
	display: flex;
	align-items: center;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 28px;
}

.main-navigation li {
	position: relative;
}

.main-navigation a,
.main-navigation .nav-link {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-primary);
	text-decoration: none;
	position: relative;
	transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .nav-link:hover {
	color: var(--accent-500, #7C3AED);
}

/* Menu Line Animation */
.main-navigation > ul > li > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent-gradient);
	transition: width 0.3s ease;
}

.main-navigation > ul > li:hover > a::after,
.main-navigation > ul > li.current-menu-item > a::after {
	width: 100%;
}

.dropdown-caret {
	display: inline-flex;
	margin-left: 6px;
	transition: transform 0.3s ease;
}

.main-navigation li:hover > a .dropdown-caret {
	transform: rotate(180deg);
}

/* Dropdown Menu (Sub-menu) Styling */
.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--itf-glass-bg-strong);
	border: 1px solid var(--border-navbar);
	border-radius: 8px;
	min-width: 220px;
	flex-direction: column;
	gap: 0;
	padding: 10px 0;
	box-shadow: var(--itf-glass-shadow);
	-webkit-backdrop-filter: var(--itf-glass-blur);
	backdrop-filter: var(--itf-glass-blur);
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 999;
}

.main-navigation .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

.main-navigation li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation .sub-menu li {
	width: 100%;
}

.main-navigation .sub-menu a {
	padding: 10px 20px;
	font-size: 14px;
	color: var(--itf-text-secondary, var(--text-gray, #B3B3B3));
	font-weight: 400;
	justify-content: space-between;
}

.main-navigation .sub-menu a:hover {
	background-color: rgba(124, 58, 237, 0.05);
	color: var(--accent-primary, #7C3AED);
}

.mobile-dropdown-toggle {
	display: none; /* Only show on mobile */
}

/* Right Controls Area */
.header-right-controls {
	display: flex;
	align-items: center;
	gap: 20px;
}

/* Search Trigger button */
.search-trigger {
	background: none;
	border: 1px solid var(--itf-border-strong, #2D2D2D);
	border-radius: 8px;
	width: 42px;
	height: 42px;
	color: var(--itf-text-primary, #FFFFFF);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.search-trigger:hover {
	border-color: var(--border-active);
	color: var(--accent-primary, #7C3AED);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Theme Toggle Switch */
#itf-theme-toggle {
	background: none;
	border: 1px solid var(--itf-border, #2A2A2A);
	border-radius: 8px;
	width: 42px;
	height: 42px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
}

#itf-theme-toggle span {
	font-size: 18px;
	position: absolute;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
	line-height: 1;
}

/* Default state: Moon is active, Sun is hidden */
#itf-theme-toggle .icon-sun {
	opacity: 0;
	transform: translateY(20px) scale(0.5);
}

#itf-theme-toggle .icon-moon {
	opacity: 1;
	transform: translateY(0) scale(1);
	color: var(--warning);
}

/* Light mode state: Sun is active, Moon is hidden */
#itf-theme-toggle.is-light .icon-sun {
	opacity: 1;
	transform: translateY(0) scale(1);
	color: var(--warning);
}

#itf-theme-toggle.is-light .icon-moon {
	opacity: 0;
	transform: translateY(-20px) scale(0.5);
}

#itf-theme-toggle:hover {
	border-color: var(--itf-accent, #7C3AED);
	box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

/* Focus styles for accessibility */
#itf-theme-toggle:focus-visible {
	border-color: var(--itf-accent, #7C3AED);
	box-shadow: 0 0 0 2px var(--itf-accent, #7C3AED);
}

/* Header highlight bar */
.header-highlight-bar {
	background-color: rgba(124, 58, 237, 0.05);
	border-top: 1px solid var(--border-color, #2A2A2A);
	border-bottom: 1px solid var(--border-color, #2A2A2A);
	padding: 12px 0;
}

.highlight-container {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 30px;
}


/* --------------------------------------------------------------------------
   4. Hamburger Icon & Mobile Drawer
   -------------------------------------------------------------------------- */
.mobile-menu-trigger {
	display: none;
	background: none;
	border: none;
	padding: 10px;
	cursor: pointer;
	z-index: 1100;
	outline: none;
}

.hamburger-box {
	width: 24px;
	height: 18px;
	display: inline-block;
	position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
	width: 24px;
	height: 2px;
	background-color: var(--text-white, #FFFFFF);
	position: absolute;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.hamburger-inner {
	top: 50%;
	transform: translateY(-50%);
}

.hamburger-inner::before {
	content: '';
	top: -8px;
}

.hamburger-inner::after {
	content: '';
	bottom: -8px;
}

/* Hamburger Active state */
.mobile-menu-trigger[aria-expanded="true"] .hamburger-inner {
	background-color: transparent;
}

.mobile-menu-trigger[aria-expanded="true"] .hamburger-inner::before {
	transform: rotate(45deg);
	top: 0;
}

.mobile-menu-trigger[aria-expanded="true"] .hamburger-inner::after {
	transform: rotate(-45deg);
	bottom: 0;
}

/* Mobile Drawer (Slide-in menu) */
.mobile-menu-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0.4s ease;
}

.mobile-menu-drawer.is-active {
	visibility: visible;
	pointer-events: auto;
}

.drawer-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.mobile-menu-drawer.is-active .drawer-backdrop {
	opacity: 1;
}

.drawer-content {
	position: absolute;
	top: 0;
	right: 0;
	width: min(320px, 100%);
	height: 100%;
	background: var(--itf-glass-bg-strong);
	border-left: 1px solid var(--itf-glass-border);
	padding: 30px;
	display: flex;
	flex-direction: column;
	box-shadow: var(--itf-glass-shadow);
	-webkit-backdrop-filter: var(--itf-glass-blur);
	backdrop-filter: var(--itf-glass-blur);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateX(100%);
}

.mobile-menu-drawer.is-active .drawer-content {
	transform: translateX(0);
}

/* Scroll Lock for body on drawer/search open */
body.drawer-open,
body.search-open {
	overflow: hidden;
}

.drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
	gap: 15px;
}

.drawer-logo {
	min-width: 0;
	flex-grow: 1;
}

.drawer-logo img {
	max-height: 40px;
	width: auto;
	display: block;
}

.drawer-logo .site-title {
	font-size: 20px;
	font-weight: 800;
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 180px;
	display: block;
}

.drawer-close {
	background: none;
	border: none;
	color: var(--itf-text-primary, #FFFFFF);
	cursor: pointer;
	padding: 5px;
}

.drawer-close:hover {
	color: var(--accent-primary, #7C3AED);
}

.mobile-drawer-nav {
	flex-grow: 1;
	overflow-y: auto;
}

.mobile-drawer-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.mobile-drawer-nav li {
	position: relative;
}

.mobile-drawer-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 16px;
	font-weight: 500;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile dropdown walker trigger button */
.mobile-drawer-nav li.has-dropdown > a {
	padding-right: 40px;
}

.mobile-drawer-nav .mobile-dropdown-toggle {
	display: flex;
	position: absolute;
	right: 0;
	top: 5px;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-color, #2A2A2A);
	border-radius: 4px;
	color: var(--itf-text-primary, #FFFFFF);
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mobile-drawer-nav .mobile-dropdown-toggle:hover {
	border-color: var(--border-active);
	color: var(--accent-primary, #7C3AED);
}

.mobile-drawer-nav .mobile-dropdown-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.mobile-drawer-nav .sub-menu {
	display: block !important;
	position: static !important;
	float: none !important;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.35s ease;
	padding-left: 20px;
	margin-top: 0;
	background: none;
	border: none;
	box-shadow: none;
	width: 100%;
}

.mobile-drawer-nav .sub-menu.is-open {
	margin-top: 10px;
}

.mobile-drawer-nav .sub-menu li {
	margin-bottom: 10px;
}

.mobile-drawer-nav .sub-menu a {
	font-size: 14px;
	font-weight: 400;
	color: var(--itf-text-secondary, var(--text-gray, #B3B3B3));
	border-bottom: none;
	padding: 5px 0;
}

.drawer-footer {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid var(--border-color, #2A2A2A);
}

.btn-drawer-cta {
	width: 100%;
	margin-bottom: 20px;
}

.drawer-socials {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.drawer-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-color, #2A2A2A);
	border-radius: 6px;
	color: var(--text-gray, #B3B3B3);
	transition: all 0.3s ease;
}

.drawer-social-icon:hover {
	border-color: var(--border-active);
	color: #FFFFFF;
	background: var(--accent-gradient);
}


/* --------------------------------------------------------------------------
   5. Search Overlay/Modal
   -------------------------------------------------------------------------- */
.search-overlay-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s ease;
}

.search-overlay-modal.is-active {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.search-overlay-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--search-overlay-bg, rgba(13, 13, 13, 0.98));
	backdrop-filter: blur(10px);
}

.search-overlay-close {
	position: absolute;
	top: 30px;
	right: 30px;
	background: none;
	border: none;
	color: var(--text-white, #FFFFFF);
	cursor: pointer;
	padding: 10px;
	transition: transform 0.3s ease;
}

.search-overlay-close:hover {
	transform: rotate(90deg);
	color: var(--accent-primary, #7C3AED);
}

.search-overlay-content {
	position: relative;
	width: 100%;
	max-width: 800px;
	padding: 0 20px;
	z-index: 2;
}

.search-overlay-modal .search-form {
	display: flex;
	position: relative;
	width: 100%;
}

.search-overlay-modal .search-field {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 2px solid var(--border-color, #2A2A2A);
	padding: 15px 60px 15px 0;
	font-size: 24px;
	color: var(--itf-text-primary, #FFFFFF);
	outline: none;
	font-family: inherit;
	transition: border-bottom-color 0.3s ease;
}

.search-overlay-modal .search-field:focus {
	border-bottom-color: var(--accent-primary, #7C3AED);
}

.search-overlay-modal .search-submit {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--itf-text-primary, #FFFFFF);
	cursor: pointer;
	padding: 10px;
}

.search-overlay-modal .search-submit:hover {
	color: var(--accent-primary, #7C3AED);
}


/* --------------------------------------------------------------------------
   6. Footer & Widgets
   -------------------------------------------------------------------------- */
.site-footer {
	background-color: var(--itf-bg-surface-2, #1A1A1A);
	border-top: 1px solid var(--border-sidebar);
	position: relative;
}

/* Footer CTA Banner (Bold Orange) */
.footer-cta-banner {
	background: var(--accent-gradient);
	position: relative;
	padding: 60px 0;
	z-index: 2;
	overflow: hidden;
}

.footer-cta-banner::before {
	content: '';
	position: absolute;
	top: -50%;
	left: 0;
	width: 100%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
	transform: translateX(-30%);
	pointer-events: none;
}

.footer-cta-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
}

.footer-cta-text {
	max-width: 700px;
}

.cta-title {
	font-size: 30px;
	font-weight: 700;
	color: #FFFFFF;
	margin: 0 0 10px 0;
	letter-spacing: -0.5px;
}

.cta-desc {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}

.btn-footer-banner {
	background: #FFFFFF;
	color: var(--accent-secondary, #6D28D9);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-footer-banner:hover {
	background: var(--dark-bg, #0D0D0D);
	color: #FFFFFF;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer Content Area */
.footer-widgets-area {
	padding: var(--footer-area-padding-y, 80px) 0;
	width: 100%;
	max-width: 100%;
}

.footer-widgets-area-full {
	width: 100%;
	max-width: 100%;
	margin-right: 0;
	margin-left: 0;
}

.footer-grid-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}

.footer-wide-container {
	display: flex;
	justify-content: center;
	padding-right: var(--footer-area-padding-x, 12px);
	padding-left: var(--footer-area-padding-x, 12px);
}

.footer-wide-container-full {
	width: 100%;
	max-width: 100%;
	margin-right: 0;
	margin-left: 0;
	box-sizing: border-box;
}

.footer-column {
	display: flex;
	flex-direction: column;
	position: relative;
	min-height: 44px;
}

.footer-wide-column {
	width: 100%;
	max-width: none;
}

.footer-column:hover .footer-edit-tool,
.footer-copyright:hover .footer-edit-tool,
.footer-navigation:hover .footer-edit-tool,
.footer-edit-tool:focus-visible {
	opacity: 1;
	transform: translateY(0);
}

.footer-edit-tool {
	position: absolute;
	top: -12px;
	right: 0;
	z-index: 5;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--itf-accent-gradient, linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%));
	color: #FFFFFF;
	border: 1px solid var(--border-active);
	box-shadow: var(--itf-shadow-md, 0 8px 24px rgba(0, 0, 0, 0.45)), var(--active-glow);
	opacity: 0.78;
	transform: translateY(2px);
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-edit-tool span {
	font-size: 0;
	line-height: 1;
}

.footer-edit-tool span::before {
	content: "\270E";
	font-size: 15px;
	font-weight: 700;
}

.footer-edit-tool:hover,
.footer-edit-tool:focus-visible {
	color: #FFFFFF;
	box-shadow: 0 10px 28px rgba(124, 58, 237, 0.35), var(--itf-shadow-md, 0 8px 24px rgba(0, 0, 0, 0.45));
}

/* Widget Styles */
.footer-widget {
	margin-bottom: 30px;
}

.footer-widget:last-child {
	margin-bottom: 0;
}

.footer-widget .widget-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--itf-text-primary, #FFFFFF);
	margin: 0 0 24px 0;
	position: relative;
	padding-bottom: 10px;
}

.footer-widget .widget-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--accent-gradient);
}

.footer-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-widget ul a {
	color: var(--text-gray, #B3B3B3);
	font-size: 14px;
}

.footer-widget ul a:hover {
	color: var(--accent-primary, #7C3AED);
	padding-left: 5px;
}

.footer-widget p {
	color: var(--text-gray, #B3B3B3);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 20px 0;
}

.footer-custom-box {
	background: var(--itf-glass-bg);
	-webkit-backdrop-filter: var(--itf-glass-blur);
	backdrop-filter: var(--itf-glass-blur);
	border: 1px solid var(--border-sidebar);
	border-radius: 12px;
	box-shadow: var(--itf-shadow-sm);
	padding: var(--footer-box-padding, 20px);
}

.footer-wide-content {
	width: 100%;
	max-width: var(--footer-content-max-width, 1200px);
	margin-right: auto;
	margin-left: auto;
	box-sizing: border-box;
}

.footer-wide-content[style*="none"] {
	max-width: none;
}

.footer-wide-container-full .footer-wide-content-fill {
	width: 100%;
	max-width: none;
}

.footer-wide-content .footer-custom-box-content {
	width: 100%;
}

.footer-custom-box,
.footer-custom-box-content,
.footer-custom-box-content * {
	text-align: left !important;
}

.footer-custom-box-content :is(ul, ol) {
	padding-left: 1.25rem !important;
	list-style-position: outside !important;
}

.footer-custom-box-content :is(a, img, .wp-block-button, .wp-block-buttons) {
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.footer-custom-box-content > style {
	display: none;
}

.footer-custom-box-content p:last-child {
	margin-bottom: 0;
}

.footer-custom-box-link {
	display: inline-flex;
	align-items: center;
	margin-top: 16px;
	color: var(--itf-accent, #7C3AED);
	font-size: 14px;
	font-weight: 700;
}

.footer-custom-box-link:hover {
	color: var(--itf-accent-hover, #9333EA);
	transform: translateX(3px);
}

.site-footer .admin-widget-placeholder,
.site-footer .wp-block-search,
.site-footer .wp-block-group.has-background {
	background: var(--itf-glass-bg);
	-webkit-backdrop-filter: var(--itf-glass-blur);
	backdrop-filter: var(--itf-glass-blur);
	border: 1px solid var(--border-sidebar);
	border-radius: 12px;
	box-shadow: var(--itf-shadow-sm);
}

/* Footer Bottom Bar */
.footer-bottom-bar {
	border-top: 1px solid var(--border-sidebar);
	padding: 24px 0;
	font-size: 14px;
	color: var(--text-gray, #B3B3B3);
}

.footer-bottom-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-copyright,
.footer-navigation {
	position: relative;
}

.footer-edit-tool-inline {
	top: 50%;
	right: auto;
	left: 0;
	transform: translateY(calc(-50% + 2px));
}

.footer-copyright:hover .footer-edit-tool-inline,
.footer-navigation:hover .footer-edit-tool-inline,
.footer-edit-tool-inline:focus-visible {
	transform: translateY(-50%);
}

.footer-links-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 24px;
}

.footer-links-menu a {
	color: var(--text-gray, #B3B3B3);
}

.footer-links-menu a:hover {
	color: var(--accent-primary, #7C3AED);
}


/* --------------------------------------------------------------------------
   7. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 46px;
	height: 46px;
	background: var(--accent-gradient);
	color: #FFFFFF;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 999;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}


/* --------------------------------------------------------------------------
   8. Responsive Media Queries
   -------------------------------------------------------------------------- */

/* Breakpoint: Desktop (992px) */
@media (max-width: 991px) {
	.main-navigation {
		display: none; /* Hide desktop nav */
	}

	.mobile-menu-trigger {
		display: block; /* Show hamburger button */
	}

	.header-right-controls {
		gap: 15px;
	}

	.btn-header-cta {
		display: none; /* Hide header CTA link and only show in drawer */
	}

	.footer-cta-container {
		flex-direction: column;
		text-align: center;
	}

	.footer-grid-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}

	.footer-wide-content {
		max-width: min(var(--footer-content-max-width, 1200px), 100%);
	}
}

/* Breakpoint: Tablet (768px) */
@media (max-width: 767px) {
	.top-bar {
		display: none; /* Hide top bar on mobile/tablet */
	}

	.site-title {
		font-size: 20px;
		max-width: 160px;
	}

	.site-branding img {
		max-height: 40px;
	}

	.footer-widgets-area {
		padding: 60px 0;
	}

	.footer-grid-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.footer-bottom-container {
		flex-direction: column;
		gap: 15px;
		align-items: flex-start !important;
		text-align: left !important;
	}

	.footer-copyright,
	.footer-navigation,
	.footer-nav,
	.footer-links-menu {
		width: 100%;
		justify-content: flex-start !important;
		text-align: left !important;
	}

	.footer-edit-tool {
		top: -10px;
		right: 0;
	}

	.footer-edit-tool-inline {
		top: -34px;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
	}

	.footer-copyright:hover .footer-edit-tool-inline,
	.footer-navigation:hover .footer-edit-tool-inline,
	.footer-edit-tool-inline:focus-visible {
		transform: translateX(-50%);
	}

	.footer-links-menu {
		justify-content: flex-start !important;
		flex-wrap: wrap;
	}

	.cta-title {
		font-size: 24px;
	}

	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
	}
}

/* Breakpoint: Mobile (480px) */
@media (max-width: 480px) {
	.site-branding img {
		max-height: 35px;
		max-width: 120px;
	}

	.site-title {
		font-size: 18px;
		max-width: 120px;
	}

	.header-right-controls {
		gap: 8px;
	}

	.drawer-content {
		padding: 20px;
	}

	.drawer-header {
		margin-bottom: 25px;
	}
}

/* --------------------------------------------------------------------------
   8. Light Mode & Card UI Adjustments
   -------------------------------------------------------------------------- */
.light-theme,
[data-theme="light"] {
	background-color: var(--itf-bg-base, #F8F9FA);
	color: var(--itf-text-primary, #111111);
}

.light-theme a,
[data-theme="light"] a {
	color: var(--itf-text-primary, #111111);
}

.light-theme a:hover,
[data-theme="light"] a:hover {
	color: var(--accent-primary, #7C3AED);
}

.light-theme .main-navigation a,
[data-theme="light"] .main-navigation a {
	color: var(--itf-text-primary, #111111);
}

.light-theme .main-navigation a:hover,
.light-theme .main-navigation li.current-menu-item > a,
[data-theme="light"] .main-navigation a:hover,
[data-theme="light"] .main-navigation li.current-menu-item > a {
	color: var(--accent-primary, #7C3AED);
}

.light-theme .site-title-link,
[data-theme="light"] .site-title-link {
	color: var(--itf-text-primary, #111111);
}

.light-theme .hamburger-inner,
.light-theme .hamburger-inner::before,
.light-theme .hamburger-inner::after,
[data-theme="light"] .hamburger-inner,
[data-theme="light"] .hamburger-inner::before,
[data-theme="light"] .hamburger-inner::after {
	background-color: #1A1A1A;
}

.light-theme .search-overlay-close,
.light-theme .search-overlay-modal .search-field,
[data-theme="light"] .search-overlay-close,
[data-theme="light"] .search-overlay-modal .search-field {
	color: var(--itf-text-primary, #111111);
}

.light-theme .search-overlay-modal .search-field,
[data-theme="light"] .search-overlay-modal .search-field {
	border-bottom-color: var(--itf-border-subtle, #E9ECEF);
}

.light-theme .footer-column h4,
[data-theme="light"] .footer-column h4 {
	color: var(--itf-text-primary, #111111);
}

.light-theme .footer-bottom-bar,
[data-theme="light"] .footer-bottom-bar {
	background-color: var(--itf-bg-surface-2, #F1F3F5);
	border-top: 1px solid var(--itf-border-subtle, #E9ECEF);
}

.light-theme .back-to-top,
[data-theme="light"] .back-to-top {
	background: var(--itf-accent-gradient);
	color: #FFFFFF;
	border: 1px solid var(--border-active);
	box-shadow: var(--itf-shadow-glow);
}

.light-theme .back-to-top:hover,
[data-theme="light"] .back-to-top:hover {
	background: var(--accent-gradient);
	color: #FFFFFF;
	border-color: transparent;
}

/* Sub-menu Light Theme Support */
.light-theme .main-navigation .sub-menu,
[data-theme="light"] .main-navigation .sub-menu {
	background-color: var(--itf-glass-bg-strong);
	border-color: var(--itf-glass-border);
	box-shadow: var(--itf-glass-shadow);
}

.light-theme .main-navigation .sub-menu a,
[data-theme="light"] .main-navigation .sub-menu a {
	color: var(--itf-text-secondary, #495057);
}

.light-theme .main-navigation .sub-menu a:hover,
[data-theme="light"] .main-navigation .sub-menu a:hover {
	background-color: var(--itf-accent-soft, rgba(124, 58, 237, 0.08));
	color: var(--itf-accent, #7C3AED);
}

/* Mobile Drawer Sub-menu Light Theme Support */
.light-theme .mobile-drawer-nav .sub-menu a,
[data-theme="light"] .mobile-drawer-nav .sub-menu a {
	color: var(--itf-text-secondary, #495057);
	border-bottom: none;
}

.light-theme .mobile-drawer-nav .sub-menu a:hover,
[data-theme="light"] .mobile-drawer-nav .sub-menu a:hover {
	color: var(--itf-accent, #7C3AED);
}

/* ==========================================================================
   ITF Custom Single Post & Page Templates
   ========================================================================== */

/* Outer Wrapper & Container */
.itf-custom-single-wrapper,
.itf-custom-page-wrapper {
    background: var(--itf-bg-base, #0A0A0A);
    color: var(--itf-text-primary, #FFFFFF);
    padding: 60px 0;
    min-height: 80vh;
    font-family: var(--itf-font-body, 'Poppins', 'Kanit', 'Sarabun', sans-serif);
}

.itf-custom-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 20px;
}

.itf-force-content-width .itf-custom-single-wrapper .itf-custom-container,
.itf-force-content-width .itf-custom-page-wrapper .itf-custom-container {
    width: min(100%, var(--itf-content-max-width, 900px));
    max-width: min(100%, var(--itf-content-max-width, 900px));
}

.itf-force-content-width .itf-custom-single-wrapper .itf-post-contententry,
.itf-force-content-width .itf-custom-page-wrapper .itf-page-contententry {
    width: 100%;
    max-width: 100%;
}

.itf-force-content-width .itf-custom-single-wrapper .itf-post-contententry > *,
.itf-force-content-width .itf-custom-page-wrapper .itf-page-contententry > * {
    max-width: 100% !important;
}

.itf-force-content-width .itf-custom-single-wrapper .itf-post-contententry :is(table, img, iframe, video, embed, object, pre, .wp-block, .wp-block-group, .wp-block-columns, .wp-block-media-text),
.itf-force-content-width .itf-custom-page-wrapper .itf-page-contententry :is(table, img, iframe, video, embed, object, pre, .wp-block, .wp-block-group, .wp-block-columns, .wp-block-media-text) {
    max-width: 100% !important;
    width: 100% !important;
}

/* Glassmorphic Post/Page Article Card */
.itf-custom-post,
.itf-custom-page {
    background: var(--itf-glass-bg, rgba(255, 255, 255, 0.06)) !important;
    border: 1px solid var(--itf-glass-border, rgba(255, 255, 255, 0.14)) !important;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--itf-glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.45)) !important;
    backdrop-filter: var(--itf-glass-blur, blur(16px));
    -webkit-backdrop-filter: var(--itf-glass-blur, blur(16px));
    margin-bottom: 40px;
}

/* Hero Header / Featured Image */
.itf-post-header,
.itf-page-header {
    position: relative;
    width: 100%;
}

.itf-post-hero-banner,
.itf-page-hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.itf-post-hero-img,
.itf-page-hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.itf-post-hero-overlay,
.itf-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.85) 100%);
}

/* Header Text & Meta Details */
.itf-post-header-meta,
.itf-page-header-meta {
    padding: 36px 36px 20px 36px;
    position: relative;
    z-index: 2;
}

/* If post has no featured image, or hero is hidden, adjust background gradient for header */
.itf-custom-post.no-hero .itf-post-header-meta,
.itf-custom-page.no-hero .itf-page-header-meta,
.itf-custom-post:not(.has-post-thumbnail) .itf-post-header-meta,
.itf-custom-page:not(.has-post-thumbnail) .itf-page-header-meta {
    background: linear-gradient(135deg, var(--itf-accent-soft, rgba(124, 58, 237, 0.08)) 0%, transparent 100%);
    border-bottom: 1px solid var(--itf-border-subtle, #1E1E1E);
    padding-top: 48px;
}

/* Categories Badge */
.itf-post-categories {
    margin-bottom: 16px;
}

.itf-post-categories a {
    display: inline-block;
    background: var(--itf-accent-gradient, linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%));
    color: #FFFFFF !important;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.itf-post-categories a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* Titles */
.itf-post-title,
.itf-page-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px 0;
    color: var(--itf-text-primary, #FFFFFF) !important;
    letter-spacing: -0.5px;
}

/* Meta Details Row */
.itf-post-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--itf-text-secondary, #B3B3B3);
    border-bottom: 1px solid var(--itf-border-subtle, #1E1E1E);
    padding-bottom: 20px;
}

.itf-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.itf-meta-item i {
    color: var(--itf-accent, #7C3AED); /* Accent color for icons */
}

/* Post Content Body */
.itf-post-contententry,
.itf-page-contententry {
    padding: 36px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--itf-text-secondary, #B3B3B3);
}

.itf-post-contententry p,
.itf-page-contententry p {
    margin-bottom: 24px;
}

.itf-post-contententry h2,
.itf-page-contententry h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--itf-text-primary, #FFFFFF) !important;
}

.itf-post-contententry h3,
.itf-page-contententry h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--itf-text-primary, #FFFFFF) !important;
}

/* Anchor styling inside post contents */
.itf-post-contententry a,
.itf-page-contententry a {
    color: var(--itf-accent, #7C3AED) !important;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.itf-post-contententry a:hover,
.itf-page-contententry a:hover {
    color: var(--itf-accent-hover, #9333EA) !important;
}

/* Blockquotes */
.itf-post-contententry blockquote,
.itf-page-contententry blockquote {
    border-left: 4px solid var(--itf-accent, #7C3AED);
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 24px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
}

.itf-post-contententry blockquote p,
.itf-page-contententry blockquote p {
    font-style: italic;
    margin-bottom: 0;
    color: var(--itf-text-secondary, #B3B3B3);
}

/* Images and figures inside contents */
.itf-post-contententry img,
.itf-page-contententry img {
    border-radius: 16px;
    border: 1px solid var(--itf-border-subtle, #1E1E1E);
    box-shadow: var(--itf-shadow-md, 0 8px 24px rgba(0, 0, 0, 0.6));
}

/* Tags in footer */
.itf-post-footer {
    padding: 0 36px 36px 36px;
    border-top: 1px solid var(--itf-border-subtle, #1E1E1E);
}

.itf-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 24px;
}

.itf-tags-label {
    font-size: 13px;
    color: var(--itf-text-tertiary, #808080);
    margin-right: 8px;
}

.itf-post-tags a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--itf-border-strong, #2D2D2D);
    color: var(--itf-text-secondary, #B3B3B3) !important;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.itf-post-tags a:hover {
    background: var(--itf-accent-soft, rgba(124, 58, 237, 0.1));
    border-color: var(--itf-accent, #7C3AED);
    color: var(--itf-accent, #7C3AED) !important;
}

/* Navigation Links */
.itf-post-navigation {
    margin-bottom: 40px;
}

.itf-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.itf-nav-previous a,
.itf-nav-next a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--itf-glass-bg, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--itf-glass-border, rgba(255, 255, 255, 0.14));
    padding: 20px 24px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--itf-text-secondary, #B3B3B3) !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--itf-glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.45));
}

.itf-nav-previous a {
    justify-content: flex-start;
}

.itf-nav-next a {
    justify-content: flex-end;
    text-align: right;
}

.itf-nav-previous a:hover,
.itf-nav-next a:hover {
    background: var(--itf-accent-soft, rgba(124, 58, 237, 0.1));
    border-color: var(--itf-accent, #7C3AED);
    color: var(--itf-text-primary, #FFFFFF) !important;
    transform: translateY(-2px);
    box-shadow: var(--itf-shadow-glow, 0 0 15px rgba(124, 58, 237, 0.15));
}

.itf-nav-previous a i,
.itf-nav-next a i {
    font-size: 16px;
    color: var(--itf-accent, #7C3AED);
    transition: transform 0.3s ease;
}

.itf-nav-previous a:hover i {
    transform: translateX(-4px);
}

.itf-nav-next a:hover i {
    transform: translateX(4px);
}

/* Comments Area */
.itf-post-comments-area,
.itf-page-comments-area {
    background: var(--itf-glass-bg, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--itf-glass-border, rgba(255, 255, 255, 0.14));
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--itf-glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.45));
    backdrop-filter: var(--itf-glass-blur, blur(16px));
    -webkit-backdrop-filter: var(--itf-glass-blur, blur(16px));
}

/* Comment Form & Input Fields */
#respond {
    margin-top: 30px;
}

#reply-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--itf-text-primary, #FFFFFF);
    margin-bottom: 20px;
}

#commentform p {
    margin-bottom: 16px;
}

#commentform label {
    display: block;
    font-size: 13px;
    color: var(--itf-text-secondary, #B3B3B3);
    margin-bottom: 6px;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--itf-border-strong, #2D2D2D);
    color: var(--itf-text-primary, #FFFFFF);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--itf-accent, #7C3AED);
    outline: none;
    box-shadow: 0 0 0 3px var(--itf-accent-soft, rgba(124, 58, 237, 0.15));
}

#commentform input[type="submit"] {
    background: var(--itf-accent-gradient, linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%));
    border: none;
    color: #FFFFFF;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

#commentform input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.comment-list li.comment {
    border-bottom: 1px solid var(--itf-border-subtle, #1E1E1E);
    padding: 24px 0;
}

.comment-list li.comment:last-child {
    border-bottom: none;
}

.comment-body {
    position: relative;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--itf-border-strong, #2D2D2D);
}

.comment-author .fn {
    font-weight: 700;
    color: var(--itf-text-primary, #FFFFFF);
    font-style: normal;
}

.comment-metadata a {
    font-size: 12px;
    color: var(--itf-text-secondary, #B3B3B3) !important;
    text-decoration: none !important;
}

.comment-content {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--itf-text-secondary, #B3B3B3);
    margin-bottom: 12px;
}

.reply a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--itf-border-strong, #2D2D2D);
    color: var(--itf-text-secondary, #B3B3B3) !important;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.reply a:hover {
    background: var(--itf-accent-soft, rgba(124, 58, 237, 0.1));
    border-color: var(--itf-accent, #7C3AED);
    color: var(--itf-accent, #7C3AED) !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .itf-custom-single-wrapper,
    .itf-custom-page-wrapper {
        padding: 30px 0;
    }
    
    .itf-post-hero-banner,
    .itf-page-hero-banner {
        height: 250px;
    }
    
    .itf-post-header-meta,
    .itf-page-header-meta {
        padding: 24px 20px 16px 20px;
    }
    
    .itf-post-title,
    .itf-page-title {
        font-size: 26px;
    }
    
    .itf-post-contententry,
    .itf-page-contententry {
        padding: 24px 20px;
    }
    
    .itf-post-footer {
        padding: 0 20px 24px 20px;
    }
    
    .itf-nav-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .itf-post-comments-area,
    .itf-page-comments-area {
        padding: 24px 20px;
    }
}

/* --------------------------------------------------------------------------
   9. Theme Color Polish Layer
   -------------------------------------------------------------------------- */
.site-header,
.site-header.is-sticky,
.top-bar,
.main-header-wrapper,
.header-highlight-bar,
.site-footer,
.footer-cta-banner,
.footer-widgets-area,
.footer-bottom-bar,
.footer-custom-box,
.footer-custom-box-content,
.site-footer .admin-widget-placeholder,
.site-footer .wp-block-search,
.site-footer .wp-block-group.has-background {
	border-radius: 0 !important;
}

.social-icon:hover,
.search-trigger:hover,
#itf-theme-toggle:hover,
.mobile-dropdown-toggle:hover,
.drawer-close:hover,
.footer-links-menu a:hover,
.top-bar-info a:hover,
.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
	color: var(--accent-primary);
}

.search-trigger:hover,
#itf-theme-toggle:hover,
#itf-theme-toggle:focus-visible,
.mobile-dropdown-toggle:hover,
.drawer-close:hover {
	border-color: var(--border-active);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.main-navigation .sub-menu a:hover,
.header-highlight-bar,
.itf-post-tags a:hover,
.itf-nav-previous a:hover,
.itf-nav-next a:hover,
.reply a:hover {
	background-color: var(--accent-soft);
}

.social-icon:hover,
.back-to-top,
.itf-post-categories a,
#commentform input[type="submit"] {
	background: var(--accent-gradient);
	box-shadow: 0 14px 34px var(--accent-aura);
}

.back-to-top:hover,
.itf-post-categories a:hover,
#commentform input[type="submit"]:hover {
	box-shadow: 0 18px 42px var(--accent-aura);
}

.itf-custom-post,
.itf-custom-page,
.itf-post-comments-area,
.itf-page-comments-area,
.itf-nav-previous a,
.itf-nav-next a {
	background: var(--itf-glass-bg) !important;
	background-image: linear-gradient(135deg, var(--glass-highlight), transparent 44%) !important;
	border-color: var(--border-card) !important;
	box-shadow: var(--itf-glass-shadow) !important;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea,
.itf-post-tags a,
.reply a {
	background: var(--itf-glass-bg) !important;
	border-color: var(--border-card) !important;
	color: var(--itf-text-primary) !important;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
	border-color: var(--border-active) !important;
	box-shadow: 0 0 0 3px var(--itf-accent-soft) !important;
}

.itf-meta-item i,
.itf-post-contententry a,
.itf-page-contententry a,
.itf-nav-previous a i,
.itf-nav-next a i {
	color: var(--itf-accent) !important;
}

/* --------------------------------------------------------------------------
   10. SEC Purple Theme Redesign Layer
   -------------------------------------------------------------------------- */
:root {
	--sec-primary: #6d28d9;
	--sec-primary-2: #9333ea;
	--sec-primary-3: #c084fc;
	--sec-ink: #20113d;
	--sec-muted: #6b5d86;
	--sec-page: #fbf9ff;
	--sec-surface: #ffffff;
	--sec-surface-soft: #f3ecff;
	--sec-line: rgba(109, 40, 217, 0.16);
	--sec-shadow: 0 18px 48px rgba(88, 28, 135, 0.12);
	--sec-radius: 8px;
}

:root[data-theme="dark"] {
	--sec-ink: #f7f2ff;
	--sec-muted: #d7c7ef;
	--sec-page: #140820;
	--sec-surface: #211031;
	--sec-surface-soft: #2b1640;
	--sec-line: rgba(216, 180, 254, 0.18);
	--sec-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

body {
	background:
		linear-gradient(180deg, rgba(109, 40, 217, 0.08), transparent 260px),
		var(--sec-page) !important;
	color: var(--sec-ink);
	font-family: var(--sec-font-body, "Sarabun", sans-serif);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.widget-title {
	font-family: var(--sec-font-heading, "Kanit", sans-serif);
	letter-spacing: 0;
}

.topbar {
	background: linear-gradient(90deg, #4c1d95, #7e22ce);
	color: #f8f2ff;
	font-size: 13px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.topbar .container {
	min-height: 38px;
}

.topbar-left,
.topbar-right,
.social-links-header {
	display: flex;
	align-items: center;
	gap: 14px;
}

.topbar a,
.topbar-text {
	color: #f8f2ff;
	text-decoration: none;
}

.topbar a:hover {
	color: #ffffff;
}

.site-header {
	background: rgba(255, 255, 255, 0.92) !important;
	border-bottom: 1px solid var(--sec-line);
	box-shadow: 0 8px 28px rgba(88, 28, 135, 0.08);
	backdrop-filter: blur(16px);
}

[data-theme="dark"] .site-header {
	background: rgba(33, 16, 49, 0.92) !important;
}

.site-header .navbar {
	min-height: 82px;
	padding: 12px 0;
}

.navbar-brand {
	display: flex;
	align-items: center;
	min-width: 168px;
	font-size: 24px;
	font-weight: 700;
}

.navbar-brand a {
	color: var(--sec-ink);
	text-decoration: none;
}

.custom-logo {
	max-height: 62px;
	width: auto;
}

.main-navigation .navbar-nav,
#primary-menu,
#mobile-primary-menu {
	gap: 4px;
}

.main-navigation a,
.navbar-nav .nav-link {
	color: var(--sec-ink) !important;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 14px !important;
	border-radius: var(--sec-radius);
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.main-navigation a:hover,
.navbar-nav .nav-link:hover,
.navbar-nav .current-menu-item > .nav-link {
	background: var(--sec-surface-soft);
	color: var(--sec-primary) !important;
	transform: translateY(-1px);
}

.dropdown-menu {
	background: var(--sec-surface) !important;
	border: 1px solid var(--sec-line) !important;
	border-radius: var(--sec-radius) !important;
	box-shadow: var(--sec-shadow);
	padding: 8px;
}

.dropdown-item {
	color: var(--sec-ink) !important;
	border-radius: 6px;
}

.dropdown-item:hover {
	background: var(--sec-surface-soft) !important;
	color: var(--sec-primary) !important;
}

.header-controls .btn,
.search-toggle,
.theme-toggle-btn,
.navbar-toggler {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sec-line) !important;
	border-radius: var(--sec-radius) !important;
	color: var(--sec-primary) !important;
	background: var(--sec-surface) !important;
}

.header-controls .btn:hover,
.search-toggle:hover,
.theme-toggle-btn:hover,
.navbar-toggler:hover {
	background: var(--sec-surface-soft) !important;
	box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.12);
}

.cta-btn,
.btn-primary {
	background: linear-gradient(135deg, var(--sec-primary), var(--sec-primary-2)) !important;
	border-color: transparent !important;
	color: #ffffff !important;
	border-radius: var(--sec-radius) !important;
	font-weight: 700;
	box-shadow: 0 12px 28px rgba(109, 40, 217, 0.22);
}

.highlight-widget-bar {
	background: var(--sec-surface-soft);
	border-bottom: 1px solid var(--sec-line);
	color: var(--sec-ink);
	font-size: 14px;
}

.highlight-widget-bar .widget,
.highlight-widget-bar p {
	margin: 0;
}

.site-main {
	min-height: 46vh;
}

.site-main > .container,
.dynamic-content-entry {
	max-width: var(--sec-content-width, 980px);
}

.dynamic-content-entry {
	margin: 0 auto;
	background: var(--sec-surface);
	border: 1px solid var(--sec-line);
	border-radius: var(--sec-radius);
	box-shadow: var(--sec-shadow);
	padding: clamp(24px, 4vw, 48px);
}

.dynamic-content-entry > *:last-child {
	margin-bottom: 0;
}

.offcanvas {
	background: var(--sec-surface) !important;
	color: var(--sec-ink);
}

.offcanvas-header {
	border-bottom: 1px solid var(--sec-line);
}

#mobile-primary-menu .nav-link {
	margin-bottom: 6px;
}

.modal-content {
	background: var(--sec-surface) !important;
	border: 1px solid var(--sec-line) !important;
	border-radius: var(--sec-radius) !important;
	box-shadow: var(--sec-shadow);
}

.search-form .form-control {
	background: var(--sec-page);
	border-color: var(--sec-line);
	color: var(--sec-ink);
}

.search-form .form-control:focus {
	border-color: var(--sec-primary-2);
	box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.14);
}

.site-footer {
	background:
		linear-gradient(135deg, rgba(76, 29, 149, 0.98), rgba(109, 40, 217, 0.96)),
		#4c1d95 !important;
	color: #f7f2ff;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer a,
.site-footer .widget,
.site-footer .site-info {
	color: #f7f2ff;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.footer-widget {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--sec-radius);
	padding: 20px;
	min-height: 100%;
}

.footer-widget .widget-title {
	color: #ffffff;
	font-size: 18px;
	margin-bottom: 14px;
}

.footer-bottom {
	border-color: rgba(255, 255, 255, 0.18) !important;
	color: #eadcff;
	font-size: 14px;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
	list-style: none;
	padding: 0;
}

.footer-menu li {
	display: inline-flex;
}

#backToTop {
	right: 24px;
	bottom: 24px;
	width: 46px;
	height: 46px;
	border-radius: 50% !important;
}

@media (max-width: 1199.98px) {
	.site-header .navbar {
		min-height: 72px;
	}

	.header-controls {
		gap: 8px !important;
	}
}

@media (max-width: 767.98px) {
	.dynamic-content-entry {
		padding: 22px;
	}

	.footer-menu {
		justify-content: center;
	}

	.footer-widget {
		padding: 18px;
	}
}

/* ==========================================
   Clean Navbar Overrides
   ========================================== */
.site-header {
	background: #ffffff !important;
	border-bottom: 1px solid rgba(109, 40, 217, 0.12) !important;
	box-shadow: 0 4px 20px rgba(88, 28, 135, 0.06) !important;
}

[data-theme="dark"] .site-header {
	background: #140820 !important;
	border-bottom: 1px solid rgba(216, 180, 254, 0.12) !important;
}

.text-purple {
	color: #6d28d9 !important;
}

[data-theme="dark"] .text-purple {
	color: #c084fc !important;
}

.site-header .navbar-nav {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
}

.site-header .nav-item {
	white-space: nowrap !important;
	flex-shrink: 0 !important;
}

.site-header .nav-link,
.site-header .main-navigation a {
	color: #20113d !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	padding: 8px 16px !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	white-space: nowrap !important;
	display: inline-block !important;
	width: auto !important;
}

[data-theme="dark"] .site-header .nav-link,
[data-theme="dark"] .site-header .main-navigation a {
	color: #f7f2ff !important;
}

.site-header .nav-link:hover,
.site-header .main-navigation a:hover,
.site-header .current-menu-item > .nav-link {
	background-color: #f3ecff !important;
	color: #6d28d9 !important;
}

[data-theme="dark"] .site-header .nav-link:hover,
[data-theme="dark"] .site-header .main-navigation a:hover,
[data-theme="dark"] .site-header .current-menu-item > .nav-link {
	background-color: #2b1640 !important;
	color: #c084fc !important;
}

.btn-outline-purple {
	color: #6d28d9 !important;
	border-color: rgba(109, 40, 217, 0.2) !important;
	background: transparent !important;
}

.btn-outline-purple:hover {
	background-color: #f3ecff !important;
	color: #6d28d9 !important;
}

[data-theme="dark"] .btn-outline-purple {
	color: #c084fc !important;
	border-color: rgba(216, 180, 254, 0.2) !important;
}

[data-theme="dark"] .btn-outline-purple:hover {
	background-color: #2b1640 !important;
	color: #c084fc !important;
}

/* ==========================================
   SEC Light Purple UI Refresh
   Primary: #51189B
   ========================================== */
:root,
:root[data-theme="light"],
[data-theme="light"] {
	--sec-primary: #51189B;
	--sec-primary-2: #6F25BF;
	--sec-primary-3: #8F4DDA;
	--sec-primary-soft: #F2EAFF;
	--sec-primary-softer: #F9F5FF;
	--sec-ink: #20142F;
	--sec-muted: #655672;
	--sec-page: #FBF8FF;
	--sec-surface: #FFFFFF;
	--sec-line: rgba(81, 24, 155, 0.14);
	--sec-line-strong: rgba(81, 24, 155, 0.24);
	--sec-shadow: 0 16px 42px rgba(81, 24, 155, 0.10);
	--sec-shadow-soft: 0 8px 26px rgba(81, 24, 155, 0.08);
	--accent-500: var(--sec-primary);
	--accent-600: var(--sec-primary-2);
	--accent-gradient: linear-gradient(135deg, #51189B 0%, #7B35C8 100%);
	--accent-soft: rgba(81, 24, 155, 0.10);
	--accent-aura: rgba(81, 24, 155, 0.22);
	--itf-accent: var(--sec-primary);
	--itf-accent-hover: var(--sec-primary-2);
	--itf-accent-soft: rgba(81, 24, 155, 0.10);
	--itf-bg-base: var(--sec-page);
	--itf-bg-surface: var(--sec-surface);
	--itf-bg-surface-2: var(--sec-primary-soft);
	--itf-text-primary: var(--sec-ink);
	--itf-text-secondary: var(--sec-muted);
	--itf-border-strong: var(--sec-line);
}

html[data-theme="light"] body,
body {
	background:
		linear-gradient(180deg, rgba(81, 24, 155, 0.075) 0, rgba(255, 255, 255, 0) 320px),
		var(--sec-page) !important;
	color: var(--sec-ink) !important;
}

.topbar {
	background: #51189B !important;
	border-bottom: 0 !important;
	color: #FFFFFF !important;
	font-size: 13.5px;
}

.topbar .container {
	min-height: 36px;
}

.topbar-left,
.topbar-right {
	min-width: 0;
}

.topbar-text,
.topbar-contact,
.topbar a {
	color: rgba(255, 255, 255, 0.92) !important;
}

.topbar-contact:hover,
.topbar a:hover {
	color: #FFFFFF !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.social-links-header {
	gap: 8px;
}

.social-icon {
	width: auto;
	min-width: 30px;
	height: 28px;
	padding: 0 8px;
	background: rgba(255, 255, 255, 0.12) !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 6px !important;
	color: #FFFFFF !important;
}

.social-icon:hover {
	background: #FFFFFF !important;
	color: #51189B !important;
	box-shadow: none !important;
}

.site-header,
[data-theme="dark"] .site-header {
	background: rgba(255, 255, 255, 0.96) !important;
	border-bottom: 1px solid var(--sec-line) !important;
	box-shadow: var(--sec-shadow-soft) !important;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.site-header .navbar {
	min-height: 76px;
	padding: 10px 0 !important;
}

.navbar-brand {
	min-width: 150px;
	max-width: 260px;
	color: var(--sec-primary) !important;
}

.navbar-brand .text-purple,
.text-purple,
[data-theme="dark"] .text-purple {
	color: var(--sec-primary) !important;
}

.custom-logo {
	max-height: 58px;
	width: auto;
}

.site-header .navbar-nav,
.site-header #primary-menu {
	gap: 4px !important;
}

.site-header .nav-link,
.site-header .main-navigation a,
[data-theme="dark"] .site-header .nav-link,
[data-theme="dark"] .site-header .main-navigation a {
	color: var(--sec-ink) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.35;
	padding: 9px 13px !important;
	border-radius: 8px !important;
}

.site-header .nav-link:hover,
.site-header .main-navigation a:hover,
.site-header .current-menu-item > .nav-link,
.site-header .current-menu-ancestor > .nav-link,
[data-theme="dark"] .site-header .nav-link:hover,
[data-theme="dark"] .site-header .main-navigation a:hover,
[data-theme="dark"] .site-header .current-menu-item > .nav-link {
	background: var(--sec-primary-soft) !important;
	color: var(--sec-primary) !important;
	transform: none !important;
}

.main-navigation > ul > li > a::after {
	display: none !important;
}

.dropdown-menu,
.main-navigation .sub-menu {
	background: #FFFFFF !important;
	border: 1px solid var(--sec-line) !important;
	border-radius: 8px !important;
	box-shadow: var(--sec-shadow) !important;
	padding: 8px !important;
}

.dropdown-item,
.main-navigation .sub-menu a {
	color: var(--sec-ink) !important;
	border-radius: 6px !important;
}

.dropdown-item:hover,
.main-navigation .sub-menu a:hover {
	background: var(--sec-primary-soft) !important;
	color: var(--sec-primary) !important;
}

.header-controls .btn,
.search-toggle,
.navbar-toggler,
.btn-outline-purple,
[data-theme="dark"] .btn-outline-purple {
	width: 42px;
	height: 42px;
	padding: 0 !important;
	border: 1px solid var(--sec-line-strong) !important;
	border-radius: 8px !important;
	background: #FFFFFF !important;
	color: var(--sec-primary) !important;
	box-shadow: none !important;
}

.header-controls .btn:hover,
.search-toggle:hover,
.navbar-toggler:hover,
.btn-outline-purple:hover,
[data-theme="dark"] .btn-outline-purple:hover {
	background: var(--sec-primary-soft) !important;
	color: var(--sec-primary) !important;
	box-shadow: 0 0 0 4px rgba(81, 24, 155, 0.10) !important;
}

.header-controls .btn[title],
.site-info .btn[title] {
	width: auto !important;
	height: auto !important;
	min-height: 34px;
	gap: 6px;
	border-radius: 8px !important;
	background: #fffaf0 !important;
	color: #8a5800 !important;
	border-color: rgba(180, 120, 0, 0.28) !important;
}

.header-controls .sec-header-cta {
	width: auto !important;
	height: 42px !important;
	padding: 0 18px !important;
	border: 0 !important;
	background: linear-gradient(135deg, #51189B, #7B35C8) !important;
	color: #FFFFFF !important;
	font-weight: 700;
	box-shadow: 0 12px 28px rgba(81, 24, 155, 0.18) !important;
}

.header-controls .sec-header-cta:hover {
	background: linear-gradient(135deg, #431281, #6824AD) !important;
	color: #FFFFFF !important;
	box-shadow: 0 14px 30px rgba(81, 24, 155, 0.24) !important;
}

.highlight-widget-bar {
	background: #F2EAFF !important;
	border-bottom: 1px solid var(--sec-line) !important;
	color: var(--sec-ink) !important;
}

.offcanvas,
.modal-content {
	background: #FFFFFF !important;
	color: var(--sec-ink) !important;
	border-color: var(--sec-line) !important;
}

.offcanvas-header,
.modal-header {
	border-bottom-color: var(--sec-line) !important;
}

#mobile-primary-menu {
	display: block !important;
}

#mobile-primary-menu .nav-link,
#mobile-primary-menu a {
	display: flex !important;
	width: 100% !important;
	margin-bottom: 6px;
	color: var(--sec-ink) !important;
}

.search-form .form-control,
input[type="search"],
input[type="text"],
input[type="email"],
textarea,
select {
	background: #FFFFFF !important;
	border-color: var(--sec-line) !important;
	color: var(--sec-ink) !important;
	border-radius: 8px;
}

.search-form .form-control:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
	border-color: var(--sec-primary) !important;
	box-shadow: 0 0 0 4px rgba(81, 24, 155, 0.12) !important;
}

.btn-primary,
#commentform input[type="submit"],
#backToTop {
	background: linear-gradient(135deg, #51189B, #7B35C8) !important;
	border-color: transparent !important;
	color: #FFFFFF !important;
	box-shadow: 0 12px 26px rgba(81, 24, 155, 0.20) !important;
}

.site-footer,
[data-theme="dark"] .site-footer {
	background:
		linear-gradient(180deg, #FFFFFF 0%, #F6F0FF 100%) !important;
	border-top: 1px solid var(--sec-line) !important;
	color: var(--sec-ink) !important;
	position: relative;
}

.site-footer::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #51189B, #8F4DDA);
}

.site-footer a,
.site-footer .widget,
.site-footer .site-info,
[data-theme="dark"] .site-footer a,
[data-theme="dark"] .site-footer .widget,
[data-theme="dark"] .site-footer .site-info {
	color: var(--sec-ink) !important;
}

.site-footer a:hover {
	color: var(--sec-primary) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer .footer-widget,
.site-footer .footer-widget.card,
[data-theme="dark"] .site-footer .footer-widget.card {
	background: #FFFFFF !important;
	border: 1px solid var(--sec-line) !important;
	border-radius: 8px !important;
	box-shadow: var(--sec-shadow-soft) !important;
	color: var(--sec-ink) !important;
}

.site-footer .footer-widget.card:hover {
	transform: translateY(-2px);
	box-shadow: var(--sec-shadow) !important;
}

.site-footer .widget-title,
[data-theme="dark"] .site-footer .widget-title {
	color: var(--sec-primary) !important;
	font-size: 18px !important;
	font-weight: 700 !important;
}

.widget-title-indicator {
	background: #51189B !important;
}

.footer-custom-box-content,
[data-theme="dark"] .footer-custom-box-content {
	background: transparent !important;
	background-image: none !important;
	color: var(--sec-muted) !important;
	font-size: 14.5px;
	line-height: 1.75;
}

.footer-custom-box-content a,
[data-theme="dark"] .footer-custom-box-content a {
	color: var(--sec-primary) !important;
}

.footer-bottom,
[data-theme="dark"] .footer-bottom {
	border-top-color: var(--sec-line) !important;
	color: var(--sec-muted) !important;
}

.footer-menu {
	gap: 8px 14px;
}

.footer-menu a {
	display: inline-flex;
	padding: 4px 0;
	color: var(--sec-muted) !important;
}

#backToTop {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 46px;
	height: 46px;
	z-index: 1000;
	border-radius: 50% !important;
}

@media (max-width: 991.98px) {
	.site-header .navbar {
		min-height: 68px;
	}

	.navbar-brand {
		min-width: 0;
		max-width: calc(100vw - 150px);
	}

	.custom-logo {
		max-height: 50px;
	}

	.header-controls .btn[title] {
		display: none !important;
	}
}

@media (max-width: 575.98px) {
	.topbar {
		display: none !important;
	}

	.header-controls {
		gap: 6px !important;
	}

	.header-controls .sec-header-cta {
		display: none !important;
	}

	.footer-bottom .site-info {
		justify-content: center;
	}
}

/* ==========================================
   Modern Footer UI Redesign
   ========================================== */
.site-footer {
	background: linear-gradient(180deg, #f8f5ff 0%, #ede4ff 100%) !important;
	border-top: 1px solid rgba(109, 40, 217, 0.14) !important;
	color: #20113d !important;
	position: relative;
}

[data-theme="dark"] .site-footer {
	background: linear-gradient(180deg, #180a29 0%, #0d0417 100%) !important;
	border-top: 1px solid rgba(216, 180, 254, 0.14) !important;
	color: #f7f2ff !important;
}

.site-footer .footer-widget.card {
	background: rgba(255, 255, 255, 0.8) !important;
	border: 1px solid rgba(109, 40, 217, 0.1) !important;
	backdrop-filter: blur(12px);
	transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.site-footer .footer-widget.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(109, 40, 217, 0.12) !important;
}

[data-theme="dark"] .site-footer .footer-widget.card {
	background: rgba(33, 16, 49, 0.65) !important;
	border: 1px solid rgba(216, 180, 254, 0.12) !important;
}

[data-theme="dark"] .site-footer .footer-widget.card:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

.widget-title-indicator {
	display: inline-block;
	width: 4px;
	height: 18px;
	background: linear-gradient(180deg, #6d28d9 0%, #9333ea 100%);
	border-radius: 4px;
}

.site-footer .widget-title {
	font-size: 18px !important;
	color: #4c1d95 !important;
	letter-spacing: -0.2px;
}

[data-theme="dark"] .site-footer .widget-title {
	color: #e9d5ff !important;
}

.footer-custom-box-content {
	font-size: 14.5px;
	line-height: 1.7;
	color: #4a3e68;
}

[data-theme="dark"] .footer-custom-box-content {
	color: #d8ceee;
}

.footer-custom-box-content a {
	color: #6d28d9;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-custom-box-content a:hover {
	color: #9333ea;
	text-decoration: underline;
}

[data-theme="dark"] .footer-custom-box-content a {
	color: #c084fc;
}

[data-theme="dark"] .footer-custom-box-content a:hover {
	color: #e9d5ff;
}

.footer-custom-box-content ul {
	list-style: none !important;
	padding-left: 0 !important;
	margin-bottom: 0;
}

.footer-custom-box-content ul li {
	margin-bottom: 8px;
}

.footer-bottom {
	border-top-color: rgba(109, 40, 217, 0.12) !important;
	font-size: 13.5px;
	color: #6b5d86;
}

[data-theme="dark"] .footer-bottom {
	border-top-color: rgba(216, 180, 254, 0.12) !important;
	color: #bfaedc;
}

/* ==========================================
   Full-Width Purple Footer Override
   Outer footer owns the full viewport background.
   ========================================== */
html body .site-footer,
html body footer.site-footer,
html[data-theme="light"] body .site-footer,
html[data-theme="light"] body footer.site-footer,
html[data-theme="dark"] body .site-footer,
html[data-theme="dark"] body footer.site-footer {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-top: clamp(42px, 5vw, 72px) !important;
	padding-bottom: clamp(24px, 3vw, 38px) !important;
	background: #51189B !important;
	background-image: linear-gradient(180deg, #51189B 0%, #42127F 100%) !important;
	color: #FFFFFF !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	position: relative;
	left: auto;
	right: auto;
}

html body .site-footer::before,
html body .site-footer::after {
	display: none !important;
	content: none !important;
}

html body .site-footer > .container,
html body .site-footer > .container-fluid {
	width: 100% !important;
	max-width: 1240px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: clamp(18px, 3vw, 32px) !important;
	padding-right: clamp(18px, 3vw, 32px) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

html body .site-footer .footer-boxes {
	margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem)) !important;
	margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem)) !important;
	margin-bottom: clamp(28px, 4vw, 48px) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

html body .site-footer .footer-widget,
html body .site-footer .footer-widget.card,
html body .site-footer .widget,
html body .site-footer .wp-block-group,
html body .site-footer .wp-block-group.has-background,
html body .site-footer .admin-widget-placeholder {
	background: transparent !important;
	background-image: none !important;
	color: rgba(255, 255, 255, 0.86) !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	transform: none !important;
}

html body .site-footer .footer-widget.card:hover {
	transform: none !important;
	box-shadow: none !important;
}

html body .site-footer .widget-title,
html body .site-footer .footer-widget .widget-title,
html body .site-footer h1,
html body .site-footer h2,
html body .site-footer h3,
html body .site-footer h4,
html body .site-footer h5,
html body .site-footer h6 {
	color: #FFFFFF !important;
}

html body .site-footer .widget-title-indicator {
	background: rgba(255, 255, 255, 0.72) !important;
}

html body .site-footer,
html body .site-footer p,
html body .site-footer li,
html body .site-footer span,
html body .site-footer .footer-custom-box-content,
html body .site-footer .site-info {
	color: rgba(255, 255, 255, 0.84) !important;
}

html body .site-footer a,
html body .site-footer .footer-custom-box-content a,
html body .site-footer .footer-menu a {
	color: #FFFFFF !important;
	text-decoration: none !important;
}

html body .site-footer a:hover,
html body .site-footer .footer-custom-box-content a:hover,
html body .site-footer .footer-menu a:hover {
	color: #F0E7FF !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

html body .site-footer .footer-custom-box-content {
	background: transparent !important;
	background-image: none !important;
	font-size: 14.5px;
	line-height: 1.75;
}

html body .site-footer .footer-custom-box-content ul,
html body .site-footer .footer-widget ul {
	list-style: none !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
}

html body .site-footer .footer-bottom {
	margin: 0 !important;
	padding-top: 24px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.20) !important;
	background: transparent !important;
	color: rgba(255, 255, 255, 0.78) !important;
}

html body .site-footer .footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 16px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

html body .site-footer .site-info {
	min-width: 0;
}

html body .site-footer .site-info .btn {
	background: rgba(255, 255, 255, 0.12) !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	color: #FFFFFF !important;
	box-shadow: none !important;
}

html body #page {
	overflow-x: hidden;
}

html body .site-main,
html body #primary-content,
html body .content-area {
	margin-bottom: 0 !important;
}

@media (max-width: 767.98px) {
	html body .site-footer {
		padding-top: 38px !important;
		padding-bottom: 28px !important;
	}

	html body .site-footer .footer-boxes {
		margin-bottom: 28px !important;
	}

	html body .site-footer .footer-bottom .row {
		row-gap: 14px;
	}

	html body .site-footer .footer-menu {
		justify-content: center;
	}

	html body .site-footer .site-info {
		justify-content: center;
		text-align: center;
	}
}

/* ==========================================
   Glass Content Surface
   ========================================== */
html body .site-main,
html body .content-area,
html body #primary-content {
	background: transparent !important;
}

html body .dynamic-content-entry,
html body .itf-custom-post,
html body .itf-custom-page,
html body .itf-post-contententry,
html body .itf-page-contententry,
html body article.page,
html body article.post {
	background: rgba(255, 255, 255, 0.68) !important;
	background-image:
		linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)) !important;
	border: 1px solid rgba(81, 24, 155, 0.16) !important;
	border-radius: 12px !important;
	box-shadow: 0 22px 56px rgba(81, 24, 155, 0.12) !important;
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	color: var(--sec-ink, #20142F) !important;
}

html body .dynamic-content-entry,
html body .itf-post-contententry,
html body .itf-page-contententry {
	padding: clamp(24px, 4vw, 48px) !important;
}

html body .itf-custom-post,
html body .itf-custom-page,
html body article.page,
html body article.post {
	overflow: hidden;
}

html body .entry-content,
html body .itf-post-contententry,
html body .itf-page-contententry {
	color: var(--sec-ink, #20142F) !important;
}

html body .entry-content :is(.wp-block-group, .wp-block-columns, .wp-block-media-text),
html body .dynamic-content-entry :is(.wp-block-group, .wp-block-columns, .wp-block-media-text) {
	background-color: transparent;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	html body .dynamic-content-entry,
	html body .itf-custom-post,
	html body .itf-custom-page,
	html body .itf-post-contententry,
	html body .itf-page-contententry,
	html body article.page,
	html body article.post {
		background: rgba(255, 255, 255, 0.94) !important;
	}
}

@media (max-width: 767.98px) {
	html body .dynamic-content-entry,
	html body .itf-post-contententry,
	html body .itf-page-contententry {
		padding: 22px !important;
		border-radius: 10px !important;
	}
}

/* ==========================================
   Modern University Footer Glassmorphism
   ========================================== */
html body .site-footer,
html body footer.site-footer,
html[data-theme="light"] body .site-footer,
html[data-theme="dark"] body .site-footer {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
		#16072A !important;
	color: #FFFFFF !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: hidden;
}

html body .site-footer > .container,
html body .site-footer > .container-fluid {
	width: 100% !important;
	max-width: 1240px !important;
	margin: 0 auto !important;
	padding: clamp(44px, 5vw, 64px) clamp(18px, 3vw, 32px) clamp(24px, 3vw, 32px) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

html body .site-footer .footer-boxes {
	--bs-gutter-x: 1.25rem;
	--bs-gutter-y: 1.25rem;
	margin-bottom: clamp(30px, 4vw, 44px) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

html body .site-footer .footer-boxes > [class*="col"] {
	display: flex;
	min-width: 0;
}

html body .site-footer .footer-widget,
html body .site-footer .footer-widget.card,
html body .site-footer .footer-boxes .widget,
html body .site-footer .footer-boxes .wp-block-group,
html body .site-footer .footer-boxes .wp-block-group.has-background,
html body .site-footer .footer-boxes .admin-widget-placeholder {
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: clamp(20px, 2.4vw, 28px) !important;
	background: rgba(255, 255, 255, 0.06) !important;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)) !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-radius: 18px !important;
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: rgba(255, 255, 255, 0.72) !important;
	transform: none !important;
	overflow-wrap: anywhere;
}

html body .site-footer .footer-widget.card:hover {
	transform: none !important;
	box-shadow:
		0 10px 34px rgba(0, 0, 0, 0.20),
		inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

html body .site-footer .widget-title,
html body .site-footer .footer-widget .widget-title,
html body .site-footer .footer-boxes h1,
html body .site-footer .footer-boxes h2,
html body .site-footer .footer-boxes h3,
html body .site-footer .footer-boxes h4,
html body .site-footer .footer-boxes h5,
html body .site-footer .footer-boxes h6 {
	color: #FFFFFF !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
}

html body .site-footer .widget-title-indicator {
	width: 4px;
	height: 18px;
	background: #D7B6FF !important;
	box-shadow: none !important;
}

html body .site-footer .footer-custom-box-content,
html body .site-footer .footer-widget p,
html body .site-footer .footer-widget li,
html body .site-footer .footer-widget span,
html body .site-footer .footer-boxes .widget,
html body .site-footer .footer-boxes .widget p,
html body .site-footer .footer-boxes .widget li {
	color: rgba(255, 255, 255, 0.72) !important;
}

html body .site-footer .footer-custom-box-content a,
html body .site-footer .footer-widget a,
html body .site-footer .footer-boxes .widget a {
	color: rgba(255, 255, 255, 0.78) !important;
	text-decoration: none !important;
}

html body .site-footer .footer-custom-box-content a:hover,
html body .site-footer .footer-widget a:hover,
html body .site-footer .footer-boxes .widget a:hover {
	color: #FFFFFF !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

html body .site-footer .footer-custom-box-content ul,
html body .site-footer .footer-widget ul,
html body .site-footer .footer-boxes .widget ul {
	list-style: none !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
	margin-bottom: 0 !important;
}

html body .site-footer .footer-custom-box-content li,
html body .site-footer .footer-widget li,
html body .site-footer .footer-boxes .widget li {
	margin-bottom: 8px;
}

html body .site-footer .footer-bottom {
	width: 100% !important;
	margin: 0 !important;
	padding: 22px 0 0 !important;
	background: transparent !important;
	border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
	color: rgba(255, 255, 255, 0.70) !important;
}

html body .site-footer .footer-bottom .site-info,
html body .site-footer .footer-bottom p,
html body .site-footer .footer-bottom span {
	color: rgba(255, 255, 255, 0.70) !important;
}

html body .site-footer .footer-bottom a,
html body .site-footer .footer-menu a {
	color: rgba(255, 255, 255, 0.75) !important;
	text-decoration: none !important;
}

html body .site-footer .footer-bottom a:hover,
html body .site-footer .footer-menu a:hover {
	color: #FFFFFF !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

html body .site-footer .footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 16px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

html body .site-footer .site-info .btn {
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	color: rgba(255, 255, 255, 0.86) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	html body .site-footer .footer-widget,
	html body .site-footer .footer-widget.card,
	html body .site-footer .footer-boxes .widget,
	html body .site-footer .footer-boxes .wp-block-group {
		background: rgba(255, 255, 255, 0.10) !important;
	}
}

@media (max-width: 991.98px) {
	html body .site-footer > .container,
	html body .site-footer > .container-fluid {
		padding-top: 44px !important;
	}
}

@media (max-width: 767.98px) {
	html body .site-footer > .container,
	html body .site-footer > .container-fluid {
		padding: 36px 18px 26px !important;
	}

	html body .site-footer .footer-boxes {
		--bs-gutter-y: 1rem;
		margin-bottom: 28px !important;
	}

	html body .site-footer .footer-widget,
	html body .site-footer .footer-widget.card,
	html body .site-footer .footer-boxes .widget,
	html body .site-footer .footer-boxes .wp-block-group {
		padding: 20px !important;
		border-radius: 16px !important;
	}

	html body .site-footer .footer-bottom .row {
		row-gap: 14px;
	}

	html body .site-footer .footer-menu,
	html body .site-footer .site-info {
		justify-content: center;
		text-align: center;
	}
}

/* ==========================================
   Compact Footer Vertical Spacing
   ========================================== */
html body .site-footer,
html body footer.site-footer,
html body footer.site-footer.py-5,
html[data-theme="light"] body .site-footer,
html[data-theme="dark"] body .site-footer {
	height: auto !important;
	min-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
}

html body .site-footer > .container,
html body .site-footer > .container-fluid {
	padding-top: 32px !important;
	padding-bottom: 22px !important;
}

html body .site-footer .footer-boxes,
html body .site-footer .footer-boxes.mb-5 {
	margin-top: 0 !important;
	margin-bottom: 22px !important;
	row-gap: 18px !important;
}

html body .site-footer .footer-widget,
html body .site-footer .footer-widget.card,
html body .site-footer .footer-boxes .widget,
html body .site-footer .footer-boxes .wp-block-group {
	margin-top: 0 !important;
	padding: 24px !important;
}

html body .site-footer .footer-bottom {
	margin-top: 0 !important;
	padding-top: 16px !important;
	padding-bottom: 0 !important;
}

html body .site-footer .footer-bottom .row {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

@media (max-width: 767.98px) {
	html body .site-footer > .container,
	html body .site-footer > .container-fluid {
		padding-top: 24px !important;
		padding-bottom: 20px !important;
	}

	html body .site-footer .footer-boxes,
	html body .site-footer .footer-boxes.mb-5 {
		margin-bottom: 18px !important;
		row-gap: 14px !important;
	}

	html body .site-footer .footer-widget,
	html body .site-footer .footer-widget.card,
	html body .site-footer .footer-boxes .widget,
	html body .site-footer .footer-boxes .wp-block-group {
		padding: 20px !important;
	}

	html body .site-footer .footer-bottom {
		padding-top: 14px !important;
	}
}

/* ==========================================
   Footer Admin Layout Controls
   Uses settings from Appearance > Footer management.
   ========================================== */
html body .site-footer .sec-footer-inner {
	padding-top: var(--sec-footer-pt, 32px) !important;
	padding-bottom: var(--sec-footer-pb, 22px) !important;
}

html body .site-footer.footer-layout-boxed > .sec-footer-inner {
	width: 100% !important;
	max-width: 1240px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: clamp(18px, 3vw, 32px) !important;
	padding-right: clamp(18px, 3vw, 32px) !important;
}

html body .site-footer.footer-layout-full > .sec-footer-inner {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: clamp(18px, 3vw, 40px) !important;
	padding-right: clamp(18px, 3vw, 40px) !important;
}

html body .site-footer.footer-layout-full .footer-boxes {
	width: 100% !important;
	max-width: none !important;
}

html body .site-footer.footer-layout-boxed .footer-boxes {
	max-width: none !important;
}

html body .site-footer > .sec-footer-inner {
	padding-top: var(--sec-footer-pt, 32px) !important;
	padding-bottom: var(--sec-footer-pb, 22px) !important;
}

/* Footer copyright alignment from admin setting. */
html body .site-footer .footer-bottom.footer-copyright-align-left .site-info {
	justify-content: flex-start !important;
	text-align: left !important;
}

html body .site-footer .footer-bottom.footer-copyright-align-center .row {
	justify-content: center !important;
}

html body .site-footer .footer-bottom.footer-copyright-align-center .row > div:first-child {
	width: 100% !important;
	flex: 0 0 100% !important;
	max-width: 100% !important;
}

html body .site-footer .footer-bottom.footer-copyright-align-center .site-info {
	justify-content: center !important;
	text-align: center !important;
}

html body .site-footer .footer-bottom.footer-copyright-align-center .row > div:last-child {
	width: 100% !important;
	flex: 0 0 100% !important;
	max-width: 100% !important;
	margin-top: 10px;
	text-align: center !important;
}

html body .site-footer .footer-bottom.footer-copyright-align-center .footer-menu {
	justify-content: center !important;
}

html body .site-footer .footer-bottom.footer-copyright-align-right .row {
	flex-direction: row-reverse;
}

html body .site-footer .footer-bottom.footer-copyright-align-right .site-info {
	justify-content: flex-end !important;
	text-align: right !important;
}

html body .site-footer .footer-bottom.footer-copyright-align-right .footer-menu {
	justify-content: flex-start !important;
}

@media (max-width: 767.98px) {
	html body .site-footer .footer-bottom.footer-copyright-align-left .site-info,
	html body .site-footer .footer-bottom.footer-copyright-align-right .site-info {
		justify-content: center !important;
		text-align: center !important;
	}

	html body .site-footer .footer-bottom.footer-copyright-align-right .row {
		flex-direction: column;
	}
}

/* ==========================================
   Footer Final Compact Spacing
   Keep design/content, tighten only vertical rhythm.
   ========================================== */
html,
html body,
html body #page {
	min-height: 0 !important;
}

html body .site-footer,
html body footer.site-footer,
html body footer.site-footer.mt-auto {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

html body .site-footer > .sec-footer-inner {
	padding-top: var(--sec-footer-pt, 24px) !important;
	padding-bottom: var(--sec-footer-pb, 16px) !important;
}

html body .site-footer .footer-boxes,
html body .site-footer .footer-boxes.mb-5,
html body .site-footer .row.footer-boxes.g-4.mb-5 {
	margin-top: 0 !important;
	margin-bottom: 16px !important;
	--bs-gutter-y: 16px;
}

html body .site-footer .footer-widget,
html body .site-footer .footer-widget.card,
html body .site-footer .footer-widget.card.h-100.p-4 {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 18px !important;
}

html body .site-footer .footer-widget .widget-title,
html body .site-footer .footer-widget .widget-title.mb-3 {
	margin-top: 0 !important;
	margin-bottom: 10px !important;
}

html body .site-footer .footer-custom-box-content p,
html body .site-footer .footer-widget p {
	margin-top: 0 !important;
	margin-bottom: 8px !important;
}

html body .site-footer .footer-custom-box-content p:last-child,
html body .site-footer .footer-widget p:last-child,
html body .site-footer .footer-custom-box-content ul:last-child,
html body .site-footer .footer-widget ul:last-child {
	margin-bottom: 0 !important;
}

html body .site-footer .footer-bottom,
html body .site-footer .footer-bottom.pt-4 {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 12px !important;
	padding-bottom: 0 !important;
}

html body .site-footer .footer-bottom .row,
html body .site-footer .footer-bottom .row.align-items-center {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	row-gap: 8px;
}

html body .site-footer .footer-bottom .mb-3 {
	margin-bottom: 0 !important;
}

html body .site-footer .site-info,
html body .site-footer .footer-menu {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

html body .site-footer .footer-menu a {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

html body .content-area,
html body .site-main,
html body #primary-content,
html body main {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

@media (max-width: 767.98px) {
	html body .site-footer > .sec-footer-inner {
		padding-top: var(--sec-footer-pt, 20px) !important;
		padding-bottom: var(--sec-footer-pb, 14px) !important;
	}

	html body .site-footer .footer-boxes,
	html body .site-footer .footer-boxes.mb-5,
	html body .site-footer .row.footer-boxes.g-4.mb-5 {
		margin-bottom: 14px !important;
		--bs-gutter-y: 12px;
	}

	html body .site-footer .footer-widget,
	html body .site-footer .footer-widget.card,
	html body .site-footer .footer-widget.card.h-100.p-4 {
		padding: 16px !important;
	}

	html body .site-footer .footer-bottom,
	html body .site-footer .footer-bottom.pt-4 {
		padding-top: 10px !important;
	}
}

/* ==========================================
   Footer No-Card Layout
   Keep columns/content, remove visual cards.
   ========================================== */
html body .site-footer .footer-widget,
html body .site-footer .footer-widget.card,
html body .site-footer .footer-widget.card.h-100.p-4,
html body .site-footer .footer-boxes .widget,
html body .site-footer .footer-boxes .wp-block-group,
html body .site-footer .footer-boxes .wp-block-group.has-background,
html body .site-footer .footer-boxes .admin-widget-placeholder {
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	padding: 0 !important;
}

html body .site-footer .footer-widget.card:hover {
	transform: none !important;
	box-shadow: none !important;
}

html body .site-footer .footer-boxes {
	--bs-gutter-x: 2rem;
	--bs-gutter-y: 1.25rem;
}

@media (max-width: 767.98px) {
	html body .site-footer .footer-boxes {
		--bs-gutter-x: 1rem;
		--bs-gutter-y: 1rem;
	}
}
